daily update
[binutils-gdb.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for 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
43 do
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
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo 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.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if 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
97 fi
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
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
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
152 done
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
187 case `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= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_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.
231 as_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.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if 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
277 fi
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
283 if 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
381 fi
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.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${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.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="libbfd.c"
424 # Factoring default headers for most tests.
425 ac_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
461 ac_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'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
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.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
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
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
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=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
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" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
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"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
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 ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
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=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
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=*)
614 libexecdir=$ac_optarg ;;
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=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
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 \
635 | --no-cr | --no-c | -n)
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=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
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=*)
661 program_prefix=$ac_optarg ;;
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=*)
668 program_suffix=$ac_optarg ;;
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=*)
685 program_transform_name=$ac_optarg ;;
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=*)
695 sbindir=$ac_optarg ;;
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=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
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=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
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; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
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" ;;
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=*)
767 x_includes=$ac_optarg ;;
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=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
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
791 *)
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}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
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; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
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
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
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; }; };;
828 esac
829 done
830
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.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if 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
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
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 ||
865 echo 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'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
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; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if 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.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE. See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
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
954 Installation 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]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine 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
981
982 cat <<\_ACEOF
983
984 Program 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
988
989 System 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
994 fi
995
996 if test -n "$ac_init_help"; then
997
998 cat <<\_ACEOF
999
1000 Optional Features:
1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=no]
1007 --disable-largefile omit support for large files
1008 --enable-static[=PKGS]
1009 build static libraries [default=yes]
1010 --enable-fast-install[=PKGS]
1011 optimize for fast installation [default=yes]
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
1016 --enable-secureplt Default to creating read-only plt entries
1017 --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1018 --enable-werror treat compile warnings as errors
1019 --enable-build-warnings enable build-time compiler warnings
1020 --enable-maintainer-mode enable make rules and dependencies not useful
1021 (and sometimes confusing) to the casual installer
1022 --enable-install-libbfd controls installation of libbfd and related headers
1023 --disable-nls do not use Native Language Support
1024
1025 Optional Packages:
1026 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1027 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
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]
1031 --with-mmap try using mmap for BFD input files if available
1032 --with-separate-debug-dir=DIR
1033 Look for global separate debug info in DIR
1034 [default=LIBDIR/debug]
1035 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1036 Binutils"
1037 --with-bugurl=URL Direct users to URL to report a bug
1038
1039 Some 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
1048 Use these variables to override the choices made by `configure' or to help
1049 it to find libraries and programs with nonstandard names/locations.
1050
1051 _ACEOF
1052 fi
1053
1054 if 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
1061 if 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'`
1065 else
1066 ac_dir_suffix= ac_top_builddir=
1067 fi
1068
1069 case $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 ;;
1083 esac
1084
1085 # Do not use `cd foo && pwd` to compute absolute paths, because
1086 # the directories may not exist.
1087 case `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;;
1095 esac
1096 case $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;;
1104 esac
1105 case $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;;
1113 esac
1114 case $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;;
1122 esac
1123
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
1139 cd $ac_popdir
1140 done
1141 fi
1142
1143 test -n "$ac_init_help" && exit 0
1144 if $ac_init_version; then
1145 cat <<\_ACEOF
1146
1147 Copyright (C) 2003 Free Software Foundation, Inc.
1148 This configure script is free software; the Free Software Foundation
1149 gives unlimited permission to copy, distribute and modify it.
1150 _ACEOF
1151 exit 0
1152 fi
1153 exec 5>config.log
1154 cat >&5 <<_ACEOF
1155 This file contains any messages produced by compilers while
1156 running configure, to aid debugging if configure makes a mistake.
1157
1158 It was created by $as_me, which was
1159 generated by GNU Autoconf 2.59. Invocation command line was
1160
1161 $ $0 $@
1162
1163 _ACEOF
1164 {
1165 cat <<_ASUNAME
1166 ## --------- ##
1167 ## Platform. ##
1168 ## --------- ##
1169
1170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1174 uname -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`
1182 hostinfo = `(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
1189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 for as_dir in $PATH
1191 do
1192 IFS=$as_save_IFS
1193 test -z "$as_dir" && as_dir=.
1194 echo "PATH: $as_dir"
1195 done
1196
1197 } >&5
1198
1199 cat >&5 <<_ACEOF
1200
1201
1202 ## ----------- ##
1203 ## Core tests. ##
1204 ## ----------- ##
1205
1206 _ACEOF
1207
1208
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.
1214 ac_configure_args=
1215 ac_configure_args0=
1216 ac_configure_args1=
1217 ac_sep=
1218 ac_must_keep_next=false
1219 for ac_pass in 1 2
1220 do
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
1256 done
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.
1265 trap '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
1339 for ac_signal in 1 2 13 15; do
1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 done
1342 ac_signal=0
1343
1344 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1345 rm -rf conftest* confdefs.h
1346 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1347 echo >confdefs.h
1348
1349 # Predefined preprocessor variables.
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 _ACEOF
1359
1360
1361 cat >>confdefs.h <<_ACEOF
1362 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 _ACEOF
1364
1365
1366 cat >>confdefs.h <<_ACEOF
1367 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 _ACEOF
1369
1370
1371 cat >>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.
1378 if 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
1384 fi
1385 for 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
1388 echo "$as_me: loading site script $ac_site_file" >&6;}
1389 sed 's/^/| /' "$ac_site_file" >&5
1390 . "$ac_site_file"
1391 fi
1392 done
1393
1394 if 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
1399 echo "$as_me: loading cache $cache_file" >&6;}
1400 case $cache_file in
1401 [\\/]* | ?:[\\/]* ) . $cache_file;;
1402 *) . ./$cache_file;;
1403 esac
1404 fi
1405 else
1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1407 echo "$as_me: creating cache $cache_file" >&6;}
1408 >$cache_file
1409 fi
1410
1411 # Check that the precious variables saved in the cache have kept the same
1412 # value.
1413 ac_cache_corrupted=false
1414 for 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
1423 echo "$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
1427 echo "$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
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
1437 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1438 ac_cache_corrupted=:
1439 else
1440 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1441 echo "$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
1445 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1446 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1447 echo "$as_me: current value: \`$ac_new_val'" >&2;}
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
1462 done
1463 if $ac_cache_corrupted; then
1464 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1465 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1466 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1467 echo "$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
1469 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1470 { (exit 1); exit 1; }; }
1471 fi
1472
1473 ac_ext=c
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502 ac_aux_dir=
1503 for 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
1517 done
1518 if test -z "$ac_aux_dir"; then
1519 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1520 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1521 { (exit 1); exit 1; }; }
1522 fi
1523 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1524 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1525 ac_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
1530 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1531 { (exit 1); exit 1; }; }
1532
1533 echo "$as_me:$LINENO: checking build system type" >&5
1534 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1535 if test "${ac_cv_build+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538 ac_cv_build_alias=$build_alias
1539 test -z "$ac_cv_build_alias" &&
1540 ac_cv_build_alias=`$ac_config_guess`
1541 test -z "$ac_cv_build_alias" &&
1542 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1543 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1544 { (exit 1); exit 1; }; }
1545 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1546 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1548 { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1552 echo "${ECHO_T}$ac_cv_build" >&6
1553 build=$ac_cv_build
1554 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking host system type" >&5
1560 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1561 if test "${ac_cv_host+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 ac_cv_host_alias=$host_alias
1565 test -z "$ac_cv_host_alias" &&
1566 ac_cv_host_alias=$ac_cv_build_alias
1567 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1568 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1570 { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1574 echo "${ECHO_T}$ac_cv_host" >&6
1575 host=$ac_cv_host
1576 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 echo "$as_me:$LINENO: checking target system type" >&5
1582 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1583 if test "${ac_cv_target+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 ac_cv_target_alias=$target_alias
1587 test "x$ac_cv_target_alias" = "x" &&
1588 ac_cv_target_alias=$ac_cv_host_alias
1589 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1590 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1591 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1592 { (exit 1); exit 1; }; }
1593
1594 fi
1595 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1596 echo "${ECHO_T}$ac_cv_target" >&6
1597 target=$ac_cv_target
1598 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 target_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.
1605 test -n "$target_alias" &&
1606 test "$program_prefix$program_suffix$program_transform_name" = \
1607 NONENONEs,x,x, &&
1608 program_prefix=${target_alias}-
1609 ac_ext=c
1610 ac_cpp='$CPP $CPPFLAGS'
1611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1614 if 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.
1616 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_CC+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622 if test -n "$CC"; then
1623 ac_cv_prog_CC="$CC" # Let the user override the test.
1624 else
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 for as_dir in $PATH
1627 do
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
1636 done
1637 done
1638
1639 fi
1640 fi
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648 fi
1649
1650 fi
1651 if 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.
1654 set dummy gcc; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 if test -n "$ac_ct_CC"; then
1661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
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
1674 done
1675 done
1676
1677 fi
1678 fi
1679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1680 if test -n "$ac_ct_CC"; then
1681 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1682 echo "${ECHO_T}$ac_ct_CC" >&6
1683 else
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688 CC=$ac_ct_CC
1689 else
1690 CC="$ac_cv_prog_CC"
1691 fi
1692
1693 if 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.
1696 set dummy ${ac_tool_prefix}cc; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
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
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730 fi
1731 if 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.
1734 set dummy cc; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
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
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768 CC=$ac_ct_CC
1769 else
1770 CC="$ac_cv_prog_CC"
1771 fi
1772
1773 fi
1774 if test -z "$CC"; then
1775 # Extract the first word of "cc", so it can be a program name with args.
1776 set dummy cc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$CC"; then
1783 ac_cv_prog_CC="$CC" # Let the user override the test.
1784 else
1785 ac_prog_rejected=no
1786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787 for as_dir in $PATH
1788 do
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
1801 done
1802 done
1803
1804 if 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
1815 fi
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if 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.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
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
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 test -n "$CC" && break
1868 done
1869 fi
1870 if test -z "$CC"; then
1871 ac_ct_CC=$CC
1872 for ac_prog in cl
1873 do
1874 # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
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
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 test -n "$ac_ct_CC" && break
1910 done
1911
1912 CC=$ac_ct_CC
1913 fi
1914
1915 fi
1916
1917
1918 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1919 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1920 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: no acceptable C compiler found in \$PATH
1923 See \`config.log' for more details." >&2;}
1924 { (exit 1); exit 1; }; }; }
1925
1926 # Provide some information about the compiler.
1927 echo "$as_me:$LINENO:" \
1928 "checking for C compiler version" >&5
1929 ac_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
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1952
1953 int
1954 main ()
1955 {
1956
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 ac_clean_files_save=$ac_clean_files
1962 ac_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.
1966 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1967 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1968 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1969 if { (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.
1980 ac_cv_exeext=
1981 # b.out is created by i960 compilers.
1982 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1983 do
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
2005 done
2006 else
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: C compiler cannot create executables
2015 See \`config.log' for more details." >&2;}
2016 { (exit 77); exit 77; }; }; }
2017 fi
2018
2019 ac_exeext=$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_file" >&5
2021 echo "${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.
2025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2026 echo $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.
2029 if 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
2041 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2042 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2044 If you meant to cross compile, use \`--host'.
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot run C compiled programs.
2047 If you meant to cross compile, use \`--host'.
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }; }
2050 fi
2051 fi
2052 fi
2053 echo "$as_me:$LINENO: result: yes" >&5
2054 echo "${ECHO_T}yes" >&6
2055
2056 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2057 ac_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.
2060 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2061 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2062 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2063 echo "${ECHO_T}$cross_compiling" >&6
2064
2065 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2066 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2067 if { (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'.
2076 for 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
2085 done
2086 else
2087 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }; }
2094 fi
2095
2096 rm -f conftest$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2098 echo "${ECHO_T}$ac_cv_exeext" >&6
2099
2100 rm -f conftest.$ac_ext
2101 EXEEXT=$ac_cv_exeext
2102 ac_exeext=$EXEEXT
2103 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2104 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2105 if test "${ac_cv_objext+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114
2115 int
2116 main ()
2117 {
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 rm -f conftest.o conftest.obj
2124 if { (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
2135 done
2136 else
2137 echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2141 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }; }
2147 fi
2148
2149 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2150 fi
2151 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2152 echo "${ECHO_T}$ac_cv_objext" >&6
2153 OBJEXT=$ac_cv_objext
2154 ac_objext=$OBJEXT
2155 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2156 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2157 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160 cat >conftest.$ac_ext <<_ACEOF
2161 /* confdefs.h. */
2162 _ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2166
2167 int
2168 main ()
2169 {
2170 #ifndef __GNUC__
2171 choke me
2172 #endif
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (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); } &&
2187 { ac_try='test -z "$ac_c_werror_flag"
2188 || test ! -s conftest.err'
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
2201 else
2202 echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_compiler_gnu=no
2206 fi
2207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2209
2210 fi
2211 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2213 GCC=`test $ac_compiler_gnu = yes && echo yes`
2214 ac_test_CFLAGS=${CFLAGS+set}
2215 ac_save_CFLAGS=$CFLAGS
2216 CFLAGS="-g"
2217 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2218 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2219 if test "${ac_cv_prog_cc_g+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h. */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2228
2229 int
2230 main ()
2231 {
2232
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (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); } &&
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
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
2260 else
2261 echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 ac_cv_prog_cc_g=no
2265 fi
2266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif 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
2278 else
2279 if test "$GCC" = yes; then
2280 CFLAGS="-O2"
2281 else
2282 CFLAGS=
2283 fi
2284 fi
2285 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2286 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2287 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 ac_cv_prog_cc_stdc=no
2291 ac_save_CC=$CC
2292 cat >conftest.$ac_ext <<_ACEOF
2293 /* confdefs.h. */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>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. */
2303 struct buf { int x; };
2304 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2305 static char *e (p, i)
2306 char **p;
2307 int i;
2308 {
2309 return p[i];
2310 }
2311 static 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. */
2328 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2329
2330 int test (int i, double x);
2331 struct s1 {int (*f) (int a);};
2332 struct s2 {int (*f) (double a);};
2333 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2334 int argc;
2335 char **argv;
2336 int
2337 main ()
2338 {
2339 return 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__
2351 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2352 do
2353 CC="$ac_save_CC $ac_arg"
2354 rm -f conftest.$ac_objext
2355 if { (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); } &&
2363 { ac_try='test -z "$ac_c_werror_flag"
2364 || test ! -s conftest.err'
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
2377 break
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.err conftest.$ac_objext
2384 done
2385 rm -f conftest.$ac_ext conftest.$ac_objext
2386 CC=$ac_save_CC
2387
2388 fi
2389
2390 case "x$ac_cv_prog_cc_stdc" in
2391 x|xno)
2392 echo "$as_me:$LINENO: result: none needed" >&5
2393 echo "${ECHO_T}none needed" >&6 ;;
2394 *)
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2397 CC="$CC $ac_cv_prog_cc_stdc" ;;
2398 esac
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.
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #ifndef __cplusplus
2406 choke me
2407 #endif
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (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); } &&
2418 { ac_try='test -z "$ac_c_werror_flag"
2419 || test ! -s conftest.err'
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);'
2438 do
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 $ac_declaration
2446 #include <stdlib.h>
2447 int
2448 main ()
2449 {
2450 exit (42);
2451 ;
2452 return 0;
2453 }
2454 _ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (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); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
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 :
2478 else
2479 echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 continue
2483 fi
2484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485 cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h. */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2491 $ac_declaration
2492 int
2493 main ()
2494 {
2495 exit (42);
2496 ;
2497 return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (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); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
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
2523 else
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 rm -f conftest*
2531 if test -n "$ac_declaration"; then
2532 echo '#ifdef __cplusplus' >>confdefs.h
2533 echo $ac_declaration >>confdefs.h
2534 echo '#endif' >>confdefs.h
2535 fi
2536
2537 else
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 fi
2542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543 ac_ext=c
2544 ac_cpp='$CPP $CPPFLAGS'
2545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2548
2549
2550 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2551 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2552 if test "${ac_cv_search_strerror+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 ac_func_search_save_LIBS=$LIBS
2556 ac_cv_search_strerror=no
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2563
2564 /* Override any gcc2 internal prototype to avoid an error. */
2565 #ifdef __cplusplus
2566 extern "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. */
2570 char strerror ();
2571 int
2572 main ()
2573 {
2574 strerror ();
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext conftest$ac_exeext
2580 if { (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); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
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
2601 ac_cv_search_strerror="none required"
2602 else
2603 echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 fi
2607 rm -f conftest.err conftest.$ac_objext \
2608 conftest$ac_exeext conftest.$ac_ext
2609 if 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
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2618
2619 /* Override any gcc2 internal prototype to avoid an error. */
2620 #ifdef __cplusplus
2621 extern "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. */
2625 char strerror ();
2626 int
2627 main ()
2628 {
2629 strerror ();
2630 ;
2631 return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext conftest$ac_exeext
2635 if { (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); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
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"
2657 break
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662 fi
2663 rm -f conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2665 done
2666 fi
2667 LIBS=$ac_func_search_save_LIBS
2668 fi
2669 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2670 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2671 if test "$ac_cv_search_strerror" != no; then
2672 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2673
2674 fi
2675
2676
2677 am__api_version="1.9"
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
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"
2689 # OS/2's system install, which has a completely different semantic
2690 # ./install, which can be erroneously created by make from ./install.sh.
2691 # Reject install programs that cannot install multiple files.
2692 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2693 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2694 if test -z "$INSTALL"; then
2695 if test "${ac_cv_path_install+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2700 do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704 case $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
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2719 :
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 :
2724 else
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
2737 fi
2738 fi
2739 done
2740 done
2741 ;;
2742 esac
2743 done
2744
2745 rm -rf conftest.one conftest.two conftest.dir
2746
2747 fi
2748 if test "${ac_cv_path_install+set}" = set; then
2749 INSTALL=$ac_cv_path_install
2750 else
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
2753 # break other packages using the cache if that directory is
2754 # removed, or if the value is a relative name.
2755 INSTALL=$ac_install_sh
2756 fi
2757 fi
2758 echo "$as_me:$LINENO: result: $INSTALL" >&5
2759 echo "${ECHO_T}$INSTALL" >&6
2760
2761 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2762 # It thinks the first close brace ends the variable substitution.
2763 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2764
2765 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2766
2767 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2768
2769 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2770 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2771 # Just in case
2772 sleep 1
2773 echo timestamp > conftest.file
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).
2779 if (
2780 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2781 if test "$*" = "X"; then
2782 # -L didn't work.
2783 set X `ls -t $srcdir/configure conftest.file`
2784 fi
2785 rm -f conftest.file
2786 if test "$*" != "X $srcdir/configure conftest.file" \
2787 && test "$*" != "X conftest.file $srcdir/configure"; then
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".
2793 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2794 alias in your environment" >&5
2795 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2796 alias in your environment" >&2;}
2797 { (exit 1); exit 1; }; }
2798 fi
2799
2800 test "$2" = conftest.file
2801 )
2802 then
2803 # Ok.
2804 :
2805 else
2806 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2807 Check your system clock" >&5
2808 echo "$as_me: error: newly created file is older than distributed files!
2809 Check your system clock" >&2;}
2810 { (exit 1); exit 1; }; }
2811 fi
2812 echo "$as_me:$LINENO: result: yes" >&5
2813 echo "${ECHO_T}yes" >&6
2814 test "$program_prefix" != NONE &&
2815 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2816 # Use a double $ so make ignores it.
2817 test "$program_suffix" != NONE &&
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.
2821 cat <<\_ACEOF >conftest.sed
2822 s/[\\$]/&&/g;s/;s,x,x,$//
2823 _ACEOF
2824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2825 rm conftest.sed
2826
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2831 # Use eval to expand $SHELL
2832 if eval "$MISSING --run true"; then
2833 am_missing_run="$MISSING --run "
2834 else
2835 am_missing_run=
2836 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2837 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2838 fi
2839
2840 if 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 --'
2856 else
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
2871 fi
2872
2873 for ac_prog in gawk mawk nawk awk
2874 do
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_AWK+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882 if test -n "$AWK"; then
2883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
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
2896 done
2897 done
2898
2899 fi
2900 fi
2901 AWK=$ac_cv_prog_AWK
2902 if test -n "$AWK"; then
2903 echo "$as_me:$LINENO: result: $AWK" >&5
2904 echo "${ECHO_T}$AWK" >&6
2905 else
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910 test -n "$AWK" && break
2911 done
2912
2913 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2915 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2916 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 cat >conftest.make <<\_ACEOF
2920 all:
2921 @echo 'ac_maketemp="$(MAKE)"'
2922 _ACEOF
2923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2924 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2925 if test -n "$ac_maketemp"; then
2926 eval ac_cv_prog_make_${ac_make}_set=yes
2927 else
2928 eval ac_cv_prog_make_${ac_make}_set=no
2929 fi
2930 rm -f conftest.make
2931 fi
2932 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935 SET_MAKE=
2936 else
2937 echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 SET_MAKE="MAKE=${MAKE-make}"
2940 fi
2941
2942 rm -rf .tst 2>/dev/null
2943 mkdir .tst 2>/dev/null
2944 if test -d .tst; then
2945 am__leading_dot=.
2946 else
2947 am__leading_dot=_
2948 fi
2949 rmdir .tst 2>/dev/null
2950
2951 DEPDIR="${am__leading_dot}deps"
2952
2953 ac_config_commands="$ac_config_commands depfiles"
2954
2955
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959 @echo done
2960 .PHONY: am__doit
2961 END
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "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'.
2975 if 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
2979 fi
2980 # Now try BSD make style include.
2981 if 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
2988 fi
2989
2990
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2994
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997 enableval="$enable_dependency_tracking"
2998
2999 fi;
3000 if test "x$enable_dependency_tracking" != xno; then
3001 am_depcomp="$ac_aux_dir/depcomp"
3002 AMDEPBACKSLASH='\'
3003 fi
3004
3005
3006 if test "x$enable_dependency_tracking" != xno; then
3007 AMDEP_TRUE=
3008 AMDEP_FALSE='#'
3009 else
3010 AMDEP_TRUE='#'
3011 AMDEP_FALSE=
3012 fi
3013
3014
3015
3016 # test to see if srcdir already configured
3017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3018 test -f $srcdir/config.status; then
3019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3021 { (exit 1); exit 1; }; }
3022 fi
3023
3024 # test whether we have cygpath
3025 if 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
3031 fi
3032
3033
3034 # Define the identity of the package.
3035 PACKAGE=bfd
3036 VERSION=2.19.51
3037
3038
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE "$PACKAGE"
3041 _ACEOF
3042
3043
3044 cat >>confdefs.h <<_ACEOF
3045 #define VERSION "$VERSION"
3046 _ACEOF
3047
3048 # Some tools Automake needs.
3049
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063
3064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3065
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.
3070 if 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.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_STRIP+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
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
3093 done
3094 done
3095
3096 fi
3097 fi
3098 STRIP=$ac_cv_prog_STRIP
3099 if test -n "$STRIP"; then
3100 echo "$as_me:$LINENO: result: $STRIP" >&5
3101 echo "${ECHO_T}$STRIP" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 fi
3106
3107 fi
3108 if 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.
3111 set dummy strip; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
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
3131 done
3132 done
3133
3134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3135 fi
3136 fi
3137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3140 echo "${ECHO_T}$ac_ct_STRIP" >&6
3141 else
3142 echo "$as_me:$LINENO: result: no" >&5
3143 echo "${ECHO_T}no" >&6
3144 fi
3145
3146 STRIP=$ac_ct_STRIP
3147 else
3148 STRIP="$ac_cv_prog_STRIP"
3149 fi
3150
3151 fi
3152 INSTALL_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
3158 AMTAR=${AMTAR-"${am_missing_run}tar"}
3159
3160 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3161
3162
3163
3164
3165 depcc="$CC" am_compiler_list=
3166
3167 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3168 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3169 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
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
3252 else
3253 am_cv_CC_dependencies_compiler_type=none
3254 fi
3255
3256 fi
3257 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3258 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3260
3261
3262
3263 if
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='#'
3268 else
3269 am__fastdepCC_TRUE='#'
3270 am__fastdepCC_FALSE=
3271 fi
3272
3273
3274
3275
3276 if 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.
3278 set dummy ${ac_tool_prefix}ar; ac_word=$2
3279 echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281 if test "${ac_cv_prog_AR+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 if test -n "$AR"; then
3285 ac_cv_prog_AR="$AR" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
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
3298 done
3299 done
3300
3301 fi
3302 fi
3303 AR=$ac_cv_prog_AR
3304 if test -n "$AR"; then
3305 echo "$as_me:$LINENO: result: $AR" >&5
3306 echo "${ECHO_T}$AR" >&6
3307 else
3308 echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6
3310 fi
3311
3312 fi
3313 if 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.
3316 set dummy ar; ac_word=$2
3317 echo "$as_me:$LINENO: checking for $ac_word" >&5
3318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3319 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -n "$ac_ct_AR"; then
3323 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
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
3336 done
3337 done
3338
3339 fi
3340 fi
3341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3342 if test -n "$ac_ct_AR"; then
3343 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3344 echo "${ECHO_T}$ac_ct_AR" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6
3348 fi
3349
3350 AR=$ac_ct_AR
3351 else
3352 AR="$ac_cv_prog_AR"
3353 fi
3354
3355 if 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.
3357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_RANLIB+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$RANLIB"; then
3364 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
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
3377 done
3378 done
3379
3380 fi
3381 fi
3382 RANLIB=$ac_cv_prog_RANLIB
3383 if test -n "$RANLIB"; then
3384 echo "$as_me:$LINENO: result: $RANLIB" >&5
3385 echo "${ECHO_T}$RANLIB" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390
3391 fi
3392 if test -z "$ac_cv_prog_RANLIB"; then
3393 ac_ct_RANLIB=$RANLIB
3394 # Extract the first word of "ranlib", so it can be a program name with args.
3395 set dummy ranlib; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 if test -n "$ac_ct_RANLIB"; then
3402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
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
3415 done
3416 done
3417
3418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3419 fi
3420 fi
3421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3422 if test -n "$ac_ct_RANLIB"; then
3423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430 RANLIB=$ac_ct_RANLIB
3431 else
3432 RANLIB="$ac_cv_prog_RANLIB"
3433 fi
3434
3435
3436 # Check whether --enable-shared or --disable-shared was given.
3437 if test "${enable_shared+set}" = set; then
3438 enableval="$enable_shared"
3439 p=${PACKAGE-default}
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
3456 else
3457 enable_shared=no
3458 fi;
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if 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.
3475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_prog_CC+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
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
3495 done
3496 done
3497
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 echo "$as_me:$LINENO: result: $CC" >&5
3503 echo "${ECHO_T}$CC" >&6
3504 else
3505 echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 fi
3510 if 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.
3513 set dummy gcc; ac_word=$2
3514 echo "$as_me:$LINENO: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -n "$ac_ct_CC"; then
3520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
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
3533 done
3534 done
3535
3536 fi
3537 fi
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547 CC=$ac_ct_CC
3548 else
3549 CC="$ac_cv_prog_CC"
3550 fi
3551
3552 if 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.
3555 set dummy ${ac_tool_prefix}cc; ac_word=$2
3556 echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3558 if test "${ac_cv_prog_CC+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
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
3575 done
3576 done
3577
3578 fi
3579 fi
3580 CC=$ac_cv_prog_CC
3581 if test -n "$CC"; then
3582 echo "$as_me:$LINENO: result: $CC" >&5
3583 echo "${ECHO_T}$CC" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 fi
3590 if 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.
3593 set dummy cc; ac_word=$2
3594 echo "$as_me:$LINENO: checking for $ac_word" >&5
3595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
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
3613 done
3614 done
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3621 echo "${ECHO_T}$ac_ct_CC" >&6
3622 else
3623 echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3625 fi
3626
3627 CC=$ac_ct_CC
3628 else
3629 CC="$ac_cv_prog_CC"
3630 fi
3631
3632 fi
3633 if test -z "$CC"; then
3634 # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_CC+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644 ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
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
3660 done
3661 done
3662
3663 if 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
3674 fi
3675 fi
3676 fi
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 echo "$as_me:$LINENO: result: $CC" >&5
3680 echo "${ECHO_T}$CC" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 fi
3687 if 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.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
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
3712 done
3713 done
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 echo "$as_me:$LINENO: result: $CC" >&5
3720 echo "${ECHO_T}$CC" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724 fi
3725
3726 test -n "$CC" && break
3727 done
3728 fi
3729 if test -z "$CC"; then
3730 ac_ct_CC=$CC
3731 for ac_prog in cl
3732 do
3733 # Extract the first word of "$ac_prog", so it can be a program name with args.
3734 set dummy $ac_prog; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 if test -n "$ac_ct_CC"; then
3741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
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
3754 done
3755 done
3756
3757 fi
3758 fi
3759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3762 echo "${ECHO_T}$ac_ct_CC" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768 test -n "$ac_ct_CC" && break
3769 done
3770
3771 CC=$ac_ct_CC
3772 fi
3773
3774 fi
3775
3776
3777 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3778 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }; }
3784
3785 # Provide some information about the compiler.
3786 echo "$as_me:$LINENO:" \
3787 "checking for C compiler version" >&5
3788 ac_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); }
3804
3805 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816
3817 int
3818 main ()
3819 {
3820 #ifndef __GNUC__
3821 choke me
3822 #endif
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext
3829 if { (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); } &&
3837 { ac_try='test -z "$ac_c_werror_flag"
3838 || test ! -s conftest.err'
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
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 ac_compiler_gnu=no
3856 fi
3857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3859
3860 fi
3861 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 CFLAGS="-g"
3867 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3869 if test "${ac_cv_prog_cc_g+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878
3879 int
3880 main ()
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (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); } &&
3896 { ac_try='test -z "$ac_c_werror_flag"
3897 || test ! -s conftest.err'
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
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ac_cv_prog_cc_g=no
3915 fi
3916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif 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
3928 else
3929 if test "$GCC" = yes; then
3930 CFLAGS="-O2"
3931 else
3932 CFLAGS=
3933 fi
3934 fi
3935 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3936 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3937 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940 ac_cv_prog_cc_stdc=no
3941 ac_save_CC=$CC
3942 cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h. */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>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. */
3953 struct buf { int x; };
3954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3955 static char *e (p, i)
3956 char **p;
3957 int i;
3958 {
3959 return p[i];
3960 }
3961 static 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 }
3970
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. */
3978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3979
3980 int test (int i, double x);
3981 struct s1 {int (*f) (int a);};
3982 struct s2 {int (*f) (double a);};
3983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984 int argc;
3985 char **argv;
3986 int
3987 main ()
3988 {
3989 return 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__
4001 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4002 do
4003 CC="$ac_save_CC $ac_arg"
4004 rm -f conftest.$ac_objext
4005 if { (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); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
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
4027 break
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 fi
4033 rm -f conftest.err conftest.$ac_objext
4034 done
4035 rm -f conftest.$ac_ext conftest.$ac_objext
4036 CC=$ac_save_CC
4037
4038 fi
4039
4040 case "x$ac_cv_prog_cc_stdc" in
4041 x|xno)
4042 echo "$as_me:$LINENO: result: none needed" >&5
4043 echo "${ECHO_T}none needed" >&6 ;;
4044 *)
4045 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4046 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4047 CC="$CC $ac_cv_prog_cc_stdc" ;;
4048 esac
4049
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.
4054 cat >conftest.$ac_ext <<_ACEOF
4055 #ifndef __cplusplus
4056 choke me
4057 #endif
4058 _ACEOF
4059 rm -f conftest.$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4062 ac_status=$?
4063 grep -v '^ *+' conftest.er1 >conftest.err
4064 rm -f conftest.er1
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_c_werror_flag"
4069 || test ! -s conftest.err'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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);'
4088 do
4089 cat >conftest.$ac_ext <<_ACEOF
4090 /* confdefs.h. */
4091 _ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4095 $ac_declaration
4096 #include <stdlib.h>
4097 int
4098 main ()
4099 {
4100 exit (42);
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (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); } &&
4114 { ac_try='test -z "$ac_c_werror_flag"
4115 || test ! -s conftest.err'
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 :
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132 continue
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h. */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_declaration
4142 int
4143 main ()
4144 {
4145 exit (42);
4146 ;
4147 return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>conftest.er1
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); } &&
4159 { ac_try='test -z "$ac_c_werror_flag"
4160 || test ! -s conftest.err'
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); }; } &&
4166 { ac_try='test -s conftest.$ac_objext'
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
4172 break
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 rm -f conftest*
4181 if test -n "$ac_declaration"; then
4182 echo '#ifdef __cplusplus' >>confdefs.h
4183 echo $ac_declaration >>confdefs.h
4184 echo '#endif' >>confdefs.h
4185 fi
4186
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 fi
4192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
4199
4200 cat >>confdefs.h <<\_ACEOF
4201 #define _GNU_SOURCE 1
4202 _ACEOF
4203
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4211 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4212 # On Suns, sometimes $CPP names a directory.
4213 if test -n "$CPP" && test -d "$CPP"; then
4214 CPP=
4215 fi
4216 if test -z "$CPP"; then
4217 if test "${ac_cv_prog_CPP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
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
4224 for ac_c_preproc_warn_flag in '' yes
4225 do
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
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>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
4245 if { (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
4259 else
4260 ac_cpp_err=yes
4261 fi
4262 if test -z "$ac_cpp_err"; then
4263 :
4264 else
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 # Broken: fails on valid input.
4269 continue
4270 fi
4271 rm -f conftest.err conftest.$ac_ext
4272
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
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4282 _ACEOF
4283 if { (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
4297 else
4298 ac_cpp_err=yes
4299 fi
4300 if test -z "$ac_cpp_err"; then
4301 # Broken: success on invalid input.
4302 continue
4303 else
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 # Passes both tests.
4308 ac_preproc_ok=:
4309 break
4310 fi
4311 rm -f conftest.err conftest.$ac_ext
4312
4313 done
4314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4315 rm -f conftest.err conftest.$ac_ext
4316 if $ac_preproc_ok; then
4317 break
4318 fi
4319
4320 done
4321 ac_cv_prog_CPP=$CPP
4322
4323 fi
4324 CPP=$ac_cv_prog_CPP
4325 else
4326 ac_cv_prog_CPP=$CPP
4327 fi
4328 echo "$as_me:$LINENO: result: $CPP" >&5
4329 echo "${ECHO_T}$CPP" >&6
4330 ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
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
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>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
4352 if { (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
4366 else
4367 ac_cpp_err=yes
4368 fi
4369 if test -z "$ac_cpp_err"; then
4370 :
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 # Broken: fails on valid input.
4376 continue
4377 fi
4378 rm -f conftest.err conftest.$ac_ext
4379
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
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (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
4404 else
4405 ac_cpp_err=yes
4406 fi
4407 if test -z "$ac_cpp_err"; then
4408 # Broken: success on invalid input.
4409 continue
4410 else
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4417 fi
4418 rm -f conftest.err conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then
4424 :
4425 else
4426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429 See \`config.log' for more details." >&5
4430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431 See \`config.log' for more details." >&2;}
4432 { (exit 1); exit 1; }; }; }
4433 fi
4434
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440
4441
4442 echo "$as_me:$LINENO: checking for egrep" >&5
4443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444 if test "${ac_cv_prog_egrep+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
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
4451 fi
4452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454 EGREP=$ac_cv_prog_egrep
4455
4456
4457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459 if test "${ac_cv_header_stdc+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4472
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (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
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4511
4512 if 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
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <string.h>
4521
4522 _ACEOF
4523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524 $EGREP "memchr" >/dev/null 2>&1; then
4525 :
4526 else
4527 ac_cv_header_stdc=no
4528 fi
4529 rm -f conftest*
4530
4531 fi
4532
4533 if 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
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4541 #include <stdlib.h>
4542
4543 _ACEOF
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "free" >/dev/null 2>&1; then
4546 :
4547 else
4548 ac_cv_header_stdc=no
4549 fi
4550 rm -f conftest*
4551
4552 fi
4553
4554 if 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 :
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>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
4576
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int
4579 main ()
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
4589 rm -f conftest$ac_exeext
4590 if { (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 :
4601 else
4602 echo "$as_me: program exited with status $ac_status" >&5
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 ( exit $ac_status )
4607 ac_cv_header_stdc=no
4608 fi
4609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 fi
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615 if test $ac_cv_header_stdc = yes; then
4616
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4620
4621 fi
4622
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634 inttypes.h stdint.h unistd.h
4635 do
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 $ac_includes_default
4649
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (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"
4675 else
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 eval "$as_ac_Header=no"
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685 if 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
4689
4690 fi
4691
4692 done
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
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4703 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4704 else
4705 # Is the header compilable?
4706 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4707 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 $ac_includes_default
4715 #include <minix/config.h>
4716 _ACEOF
4717 rm -f conftest.$ac_objext
4718 if { (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
4740 else
4741 echo "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 ac_header_compiler=no
4745 fi
4746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4748 echo "${ECHO_T}$ac_header_compiler" >&6
4749
4750 # Is the header present?
4751 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4752 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <minix/config.h>
4760 _ACEOF
4761 if { (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
4775 else
4776 ac_cpp_err=yes
4777 fi
4778 if test -z "$ac_cpp_err"; then
4779 ac_header_preproc=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_header_preproc=no
4785 fi
4786 rm -f conftest.err conftest.$ac_ext
4787 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4788 echo "${ECHO_T}$ac_header_preproc" >&6
4789
4790 # So? What about this header?
4791 case $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
4794 echo "$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
4796 echo "$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
4801 echo "$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
4803 echo "$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
4805 echo "$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
4807 echo "$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
4809 echo "$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
4811 echo "$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 ;;
4821 esac
4822 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4823 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4824 if test "${ac_cv_header_minix_config_h+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 ac_cv_header_minix_config_h=$ac_header_preproc
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4830 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4831
4832 fi
4833 if test $ac_cv_header_minix_config_h = yes; then
4834 MINIX=yes
4835 else
4836 MINIX=
4837 fi
4838
4839
4840 if test "$MINIX" = yes; then
4841
4842 cat >>confdefs.h <<\_ACEOF
4843 #define _POSIX_SOURCE 1
4844 _ACEOF
4845
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define _POSIX_1_SOURCE 2
4849 _ACEOF
4850
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define _MINIX 1
4854 _ACEOF
4855
4856 fi
4857
4858
4859
4860 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4861 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4862 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871
4872 # define __EXTENSIONS__ 1
4873 $ac_includes_default
4874 int
4875 main ()
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (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
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 ac_cv_safe_to_define___extensions__=no
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4914 echo "${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
4919
4920 cat >>confdefs.h <<\_ACEOF
4921 #define _ALL_SOURCE 1
4922 _ACEOF
4923
4924 cat >>confdefs.h <<\_ACEOF
4925 #define _GNU_SOURCE 1
4926 _ACEOF
4927
4928 cat >>confdefs.h <<\_ACEOF
4929 #define _POSIX_PTHREAD_SEMANTICS 1
4930 _ACEOF
4931
4932 cat >>confdefs.h <<\_ACEOF
4933 #define _TANDEM_SOURCE 1
4934 _ACEOF
4935
4936
4937
4938 case "${target}" in
4939 sparc-*-solaris*|i[3-7]86-*-solaris*)
4940 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4941 # are mutually exclusive; and without procfs support, the elf module
4942 # cannot provide certain routines such as elfcore_write_prpsinfo
4943 # or elfcore_write_prstatus. So unless the user explicitly requested
4944 # large-file support through the --enable-largefile switch, disable
4945 # large-file support in favor of procfs support.
4946 if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then
4947 enable_largefile="no"
4948 fi
4949 ;;
4950 esac
4951
4952 # Check whether --enable-largefile or --disable-largefile was given.
4953 if test "${enable_largefile+set}" = set; then
4954 enableval="$enable_largefile"
4955
4956 fi;
4957 if test "$enable_largefile" != no; then
4958
4959 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4960 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4961 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 ac_cv_sys_largefile_CC=no
4965 if test "$GCC" != yes; then
4966 ac_save_CC=$CC
4967 while :; do
4968 # IRIX 6.2 and later do not support large files by default,
4969 # so use the C compiler's -n32 option if that helps.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 /* confdefs.h. */
4972 _ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <sys/types.h>
4977 /* Check that off_t can represent 2**63 - 1 correctly.
4978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4979 since some C++ compilers masquerading as C compilers
4980 incorrectly reject 9223372036854775807. */
4981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4983 && LARGE_OFF_T % 2147483647 == 1)
4984 ? 1 : -1];
4985 int
4986 main ()
4987 {
4988
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -z "$ac_c_werror_flag"
5003 || test ! -s conftest.err'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; } &&
5009 { ac_try='test -s conftest.$ac_objext'
5010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 (eval $ac_try) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; }; then
5015 break
5016 else
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5019
5020 fi
5021 rm -f conftest.err conftest.$ac_objext
5022 CC="$CC -n32"
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>conftest.er1
5026 ac_status=$?
5027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } &&
5032 { ac_try='test -z "$ac_c_werror_flag"
5033 || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_sys_largefile_CC=' -n32'; break
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050 fi
5051 rm -f conftest.err conftest.$ac_objext
5052 break
5053 done
5054 CC=$ac_save_CC
5055 rm -f conftest.$ac_ext
5056 fi
5057 fi
5058 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5059 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
5060 if test "$ac_cv_sys_largefile_CC" != no; then
5061 CC=$CC$ac_cv_sys_largefile_CC
5062 fi
5063
5064 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5065 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
5066 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 while :; do
5070 ac_cv_sys_file_offset_bits=no
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <sys/types.h>
5078 /* Check that off_t can represent 2**63 - 1 correctly.
5079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5080 since some C++ compilers masquerading as C compilers
5081 incorrectly reject 9223372036854775807. */
5082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5084 && LARGE_OFF_T % 2147483647 == 1)
5085 ? 1 : -1];
5086 int
5087 main ()
5088 {
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 break
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 fi
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #define _FILE_OFFSET_BITS 64
5130 #include <sys/types.h>
5131 /* Check that off_t can represent 2**63 - 1 correctly.
5132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5133 since some C++ compilers masquerading as C compilers
5134 incorrectly reject 9223372036854775807. */
5135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5137 && LARGE_OFF_T % 2147483647 == 1)
5138 ? 1 : -1];
5139 int
5140 main ()
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest.$ac_objext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149 (eval $ac_compile) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -z "$ac_c_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_sys_file_offset_bits=64; break
5170 else
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 fi
5175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5176 break
5177 done
5178 fi
5179 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5180 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5181 if test "$ac_cv_sys_file_offset_bits" != no; then
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5185 _ACEOF
5186
5187 fi
5188 rm -f conftest*
5189 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5190 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5191 if test "${ac_cv_sys_large_files+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194 while :; do
5195 ac_cv_sys_large_files=no
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <sys/types.h>
5203 /* Check that off_t can represent 2**63 - 1 correctly.
5204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5205 since some C++ compilers masquerading as C compilers
5206 incorrectly reject 9223372036854775807. */
5207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5209 && LARGE_OFF_T % 2147483647 == 1)
5210 ? 1 : -1];
5211 int
5212 main ()
5213 {
5214
5215 ;
5216 return 0;
5217 }
5218 _ACEOF
5219 rm -f conftest.$ac_objext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 fi
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #define _LARGE_FILES 1
5255 #include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5263 ? 1 : -1];
5264 int
5265 main ()
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5274 (eval $ac_compile) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -z "$ac_c_werror_flag"
5282 || test ! -s conftest.err'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 (eval $ac_try) 2>&5
5285 ac_status=$?
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; } &&
5288 { ac_try='test -s conftest.$ac_objext'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5294 ac_cv_sys_large_files=1; break
5295 else
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5298
5299 fi
5300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5301 break
5302 done
5303 fi
5304 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5305 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5306 if test "$ac_cv_sys_large_files" != no; then
5307
5308 cat >>confdefs.h <<_ACEOF
5309 #define _LARGE_FILES $ac_cv_sys_large_files
5310 _ACEOF
5311
5312 fi
5313 rm -f conftest*
5314 fi
5315
5316
5317 case `pwd` in
5318 *\ * | *\ *)
5319 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5320 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5321 esac
5322
5323
5324
5325 macro_version='2.2.6'
5326 macro_revision='1.3012'
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 ltmain="$ac_aux_dir/ltmain.sh"
5341
5342 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5343 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5344 if test "${lt_cv_path_SED+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 # Loop through the user's path and test for sed and gsed.
5348 # Then use that list of sed's as ones to test for truncation.
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for lt_ac_prog in sed gsed; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5357 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5358 fi
5359 done
5360 done
5361 done
5362 IFS=$as_save_IFS
5363 lt_ac_max=0
5364 lt_ac_count=0
5365 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5366 # along with /bin/sed that truncates output.
5367 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5368 test ! -f $lt_ac_sed && continue
5369 cat /dev/null > conftest.in
5370 lt_ac_count=0
5371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5372 # Check for GNU sed and select it if it is found.
5373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5374 lt_cv_path_SED=$lt_ac_sed
5375 break
5376 fi
5377 while true; do
5378 cat conftest.in conftest.in >conftest.tmp
5379 mv conftest.tmp conftest.in
5380 cp conftest.in conftest.nl
5381 echo >>conftest.nl
5382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5383 cmp -s conftest.out conftest.nl || break
5384 # 10000 chars as input seems more than enough
5385 test $lt_ac_count -gt 10 && break
5386 lt_ac_count=`expr $lt_ac_count + 1`
5387 if test $lt_ac_count -gt $lt_ac_max; then
5388 lt_ac_max=$lt_ac_count
5389 lt_cv_path_SED=$lt_ac_sed
5390 fi
5391 done
5392 done
5393
5394 fi
5395
5396 SED=$lt_cv_path_SED
5397
5398 echo "$as_me:$LINENO: result: $SED" >&5
5399 echo "${ECHO_T}$SED" >&6
5400
5401 test -z "$SED" && SED=sed
5402 Xsed="$SED -e 1s/^X//"
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 echo "$as_me:$LINENO: checking for fgrep" >&5
5415 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5416 if test "${ac_cv_prog_fgrep+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5420 then ac_cv_prog_fgrep='grep -F'
5421 else ac_cv_prog_fgrep='fgrep'
5422 fi
5423 fi
5424 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5425 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5426 FGREP=$ac_cv_prog_fgrep
5427
5428
5429 test -z "$GREP" && GREP=grep
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5450 if test "${with_gnu_ld+set}" = set; then
5451 withval="$with_gnu_ld"
5452 test "$withval" = no || with_gnu_ld=yes
5453 else
5454 with_gnu_ld=no
5455 fi;
5456 ac_prog=ld
5457 if test "$GCC" = yes; then
5458 # Check if gcc -print-prog-name=ld gives a path.
5459 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5460 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5461 case $host in
5462 *-*-mingw*)
5463 # gcc leaves a trailing carriage return which upsets mingw
5464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5465 *)
5466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5467 esac
5468 case $ac_prog in
5469 # Accept absolute paths.
5470 [\\/]* | ?:[\\/]*)
5471 re_direlt='/[^/][^/]*/\.\./'
5472 # Canonicalize the pathname of ld
5473 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5474 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5475 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5476 done
5477 test -z "$LD" && LD="$ac_prog"
5478 ;;
5479 "")
5480 # If it fails, then pretend we aren't using GCC.
5481 ac_prog=ld
5482 ;;
5483 *)
5484 # If it is relative, then search for the first ld in PATH.
5485 with_gnu_ld=unknown
5486 ;;
5487 esac
5488 elif test "$with_gnu_ld" = yes; then
5489 echo "$as_me:$LINENO: checking for GNU ld" >&5
5490 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5491 else
5492 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5493 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5494 fi
5495 if test "${lt_cv_path_LD+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 if test -z "$LD"; then
5499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5500 for ac_dir in $PATH; do
5501 IFS="$lt_save_ifs"
5502 test -z "$ac_dir" && ac_dir=.
5503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5504 lt_cv_path_LD="$ac_dir/$ac_prog"
5505 # Check to see if the program is GNU ld. I'd rather use --version,
5506 # but apparently some variants of GNU ld only accept -v.
5507 # Break only if it was the GNU/non-GNU ld that we prefer.
5508 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 test "$with_gnu_ld" != no && break
5511 ;;
5512 *)
5513 test "$with_gnu_ld" != yes && break
5514 ;;
5515 esac
5516 fi
5517 done
5518 IFS="$lt_save_ifs"
5519 else
5520 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5521 fi
5522 fi
5523
5524 LD="$lt_cv_path_LD"
5525 if test -n "$LD"; then
5526 echo "$as_me:$LINENO: result: $LD" >&5
5527 echo "${ECHO_T}$LD" >&6
5528 else
5529 echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5531 fi
5532 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5533 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5534 { (exit 1); exit 1; }; }
5535 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5536 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5537 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5541 case `$LD -v 2>&1 </dev/null` in
5542 *GNU* | *'with BFD'*)
5543 lt_cv_prog_gnu_ld=yes
5544 ;;
5545 *)
5546 lt_cv_prog_gnu_ld=no
5547 ;;
5548 esac
5549 fi
5550 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5551 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5552 with_gnu_ld=$lt_cv_prog_gnu_ld
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5563 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5564 if test "${lt_cv_path_NM+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test -n "$NM"; then
5568 # Let the user override the test.
5569 lt_cv_path_NM="$NM"
5570 else
5571 lt_nm_to_check="${ac_tool_prefix}nm"
5572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5573 lt_nm_to_check="$lt_nm_to_check nm"
5574 fi
5575 for lt_tmp_nm in $lt_nm_to_check; do
5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5578 IFS="$lt_save_ifs"
5579 test -z "$ac_dir" && ac_dir=.
5580 tmp_nm="$ac_dir/$lt_tmp_nm"
5581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5582 # Check to see if the nm accepts a BSD-compat flag.
5583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5584 # nm: unknown option "B" ignored
5585 # Tru64's nm complains that /dev/null is an invalid object file
5586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5587 */dev/null* | *'Invalid file or object type'*)
5588 lt_cv_path_NM="$tmp_nm -B"
5589 break
5590 ;;
5591 *)
5592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5593 */dev/null*)
5594 lt_cv_path_NM="$tmp_nm -p"
5595 break
5596 ;;
5597 *)
5598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5599 continue # so that we can try to find one that supports BSD flags
5600 ;;
5601 esac
5602 ;;
5603 esac
5604 fi
5605 done
5606 IFS="$lt_save_ifs"
5607 done
5608 : ${lt_cv_path_NM=no}
5609 fi
5610 fi
5611 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5612 echo "${ECHO_T}$lt_cv_path_NM" >&6
5613 if test "$lt_cv_path_NM" != "no"; then
5614 NM="$lt_cv_path_NM"
5615 else
5616 # Didn't find any BSD compatible name lister, look for dumpbin.
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622 echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641 done
5642 done
5643
5644 fi
5645 fi
5646 DUMPBIN=$ac_cv_prog_DUMPBIN
5647 if test -n "$DUMPBIN"; then
5648 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5649 echo "${ECHO_T}$DUMPBIN" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5653 fi
5654
5655 test -n "$DUMPBIN" && break
5656 done
5657 fi
5658 if test -z "$DUMPBIN"; then
5659 ac_ct_DUMPBIN=$DUMPBIN
5660 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5661 do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 else
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685
5686 fi
5687 fi
5688 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689 if test -n "$ac_ct_DUMPBIN"; then
5690 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5691 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5692 else
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697 test -n "$ac_ct_DUMPBIN" && break
5698 done
5699 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5700
5701 DUMPBIN=$ac_ct_DUMPBIN
5702 fi
5703
5704
5705 if test "$DUMPBIN" != ":"; then
5706 NM="$DUMPBIN"
5707 fi
5708 fi
5709 test -z "$NM" && NM=nm
5710
5711
5712
5713
5714
5715
5716 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5717 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5718 if test "${lt_cv_nm_interface+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
5723 (eval echo "\"\$as_me:5723: $ac_compile\"" >&5)
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:5726: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:5729: output\"" >&5)
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5733 fi
5734 rm -f conftest*
5735 fi
5736 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5737 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5738
5739 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5740 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5741 LN_S=$as_ln_s
5742 if test "$LN_S" = "ln -s"; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5745 else
5746 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5747 echo "${ECHO_T}no, using $LN_S" >&6
5748 fi
5749
5750 # find the maximum length of command line arguments
5751 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5752 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5753 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 i=0
5757 teststring="ABCD"
5758
5759 case $build_os in
5760 msdosdjgpp*)
5761 # On DJGPP, this test can blow up pretty badly due to problems in libc
5762 # (any single argument exceeding 2000 bytes causes a buffer overrun
5763 # during glob expansion). Even if it were fixed, the result of this
5764 # check would be larger than it should be.
5765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5766 ;;
5767
5768 gnu*)
5769 # Under GNU Hurd, this test is not required because there is
5770 # no limit to the length of command line arguments.
5771 # Libtool will interpret -1 as no limit whatsoever
5772 lt_cv_sys_max_cmd_len=-1;
5773 ;;
5774
5775 cygwin* | mingw* | cegcc*)
5776 # On Win9x/ME, this test blows up -- it succeeds, but takes
5777 # about 5 minutes as the teststring grows exponentially.
5778 # Worse, since 9x/ME are not pre-emptively multitasking,
5779 # you end up with a "frozen" computer, even though with patience
5780 # the test eventually succeeds (with a max line length of 256k).
5781 # Instead, let's just punt: use the minimum linelength reported by
5782 # all of the supported platforms: 8192 (on NT/2K/XP).
5783 lt_cv_sys_max_cmd_len=8192;
5784 ;;
5785
5786 amigaos*)
5787 # On AmigaOS with pdksh, this test takes hours, literally.
5788 # So we just punt and use a minimum line length of 8192.
5789 lt_cv_sys_max_cmd_len=8192;
5790 ;;
5791
5792 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5793 # This has been around since 386BSD, at least. Likely further.
5794 if test -x /sbin/sysctl; then
5795 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5796 elif test -x /usr/sbin/sysctl; then
5797 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5798 else
5799 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5800 fi
5801 # And add a safety zone
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 ;;
5805
5806 interix*)
5807 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5808 lt_cv_sys_max_cmd_len=196608
5809 ;;
5810
5811 osf*)
5812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5814 # nice to cause kernel panics so lets avoid the loop below.
5815 # First set a reasonable default.
5816 lt_cv_sys_max_cmd_len=16384
5817 #
5818 if test -x /sbin/sysconfig; then
5819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5820 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5821 esac
5822 fi
5823 ;;
5824 sco3.2v5*)
5825 lt_cv_sys_max_cmd_len=102400
5826 ;;
5827 sysv5* | sco5v6* | sysv4.2uw2*)
5828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5829 if test -n "$kargmax"; then
5830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5831 else
5832 lt_cv_sys_max_cmd_len=32768
5833 fi
5834 ;;
5835 *)
5836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5837 if test -n "$lt_cv_sys_max_cmd_len"; then
5838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5840 else
5841 # Make teststring a little bigger before we do anything with it.
5842 # a 1K string should be a reasonable start.
5843 for i in 1 2 3 4 5 6 7 8 ; do
5844 teststring=$teststring$teststring
5845 done
5846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5847 # If test is not a shell built-in, we'll probably end up computing a
5848 # maximum length that is only half of the actual maximum length, but
5849 # we can't tell.
5850 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5851 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5852 test $i != 17 # 1/2 MB should be enough
5853 do
5854 i=`expr $i + 1`
5855 teststring=$teststring$teststring
5856 done
5857 # Only check the string length outside the loop.
5858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5859 teststring=
5860 # Add a significant safety factor because C++ compilers can tack on
5861 # massive amounts of additional arguments before passing them to the
5862 # linker. It appears as though 1/2 is a usable value.
5863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5864 fi
5865 ;;
5866 esac
5867
5868 fi
5869
5870 if test -n $lt_cv_sys_max_cmd_len ; then
5871 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5872 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5873 else
5874 echo "$as_me:$LINENO: result: none" >&5
5875 echo "${ECHO_T}none" >&6
5876 fi
5877 max_cmd_len=$lt_cv_sys_max_cmd_len
5878
5879
5880
5881
5882
5883
5884 : ${CP="cp -f"}
5885 : ${MV="mv -f"}
5886 : ${RM="rm -f"}
5887
5888 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5889 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5890 # Try some XSI features
5891 xsi_shell=no
5892 ( _lt_dummy="a/b/c"
5893 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5894 = c,a/b,, \
5895 && eval 'test $(( 1 + 1 )) -eq 2 \
5896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5897 && xsi_shell=yes
5898 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5899 echo "${ECHO_T}$xsi_shell" >&6
5900
5901
5902 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5903 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5904 lt_shell_append=no
5905 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5906 >/dev/null 2>&1 \
5907 && lt_shell_append=yes
5908 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5909 echo "${ECHO_T}$lt_shell_append" >&6
5910
5911
5912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5913 lt_unset=unset
5914 else
5915 lt_unset=false
5916 fi
5917
5918
5919
5920
5921
5922 # test EBCDIC or ASCII
5923 case `echo X|tr X '\101'` in
5924 A) # ASCII based system
5925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5926 lt_SP2NL='tr \040 \012'
5927 lt_NL2SP='tr \015\012 \040\040'
5928 ;;
5929 *) # EBCDIC based system
5930 lt_SP2NL='tr \100 \n'
5931 lt_NL2SP='tr \r\n \100\100'
5932 ;;
5933 esac
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5944 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5945 if test "${lt_cv_ld_reload_flag+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 lt_cv_ld_reload_flag='-r'
5949 fi
5950 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5951 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5952 reload_flag=$lt_cv_ld_reload_flag
5953 case $reload_flag in
5954 "" | " "*) ;;
5955 *) reload_flag=" $reload_flag" ;;
5956 esac
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958 case $host_os in
5959 darwin*)
5960 if test "$GCC" = yes; then
5961 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5962 else
5963 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5964 fi
5965 ;;
5966 esac
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$OBJDUMP"; then
5985 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000
6001 fi
6002 fi
6003 OBJDUMP=$ac_cv_prog_OBJDUMP
6004 if test -n "$OBJDUMP"; then
6005 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6006 echo "${ECHO_T}$OBJDUMP" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6
6010 fi
6011
6012 fi
6013 if test -z "$ac_cv_prog_OBJDUMP"; then
6014 ac_ct_OBJDUMP=$OBJDUMP
6015 # Extract the first word of "objdump", so it can be a program name with args.
6016 set dummy objdump; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038
6039 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6040 fi
6041 fi
6042 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6043 if test -n "$ac_ct_OBJDUMP"; then
6044 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6045 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6046 else
6047 echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6
6049 fi
6050
6051 OBJDUMP=$ac_ct_OBJDUMP
6052 else
6053 OBJDUMP="$ac_cv_prog_OBJDUMP"
6054 fi
6055
6056 test -z "$OBJDUMP" && OBJDUMP=objdump
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6067 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6068 if test "${lt_cv_deplibs_check_method+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 lt_cv_file_magic_cmd='$MAGIC_CMD'
6072 lt_cv_file_magic_test_file=
6073 lt_cv_deplibs_check_method='unknown'
6074 # Need to set the preceding variable on all platforms that support
6075 # interlibrary dependencies.
6076 # 'none' -- dependencies not supported.
6077 # `unknown' -- same as none, but documents that we really don't know.
6078 # 'pass_all' -- all dependencies passed with no checks.
6079 # 'test_compile' -- check by making test program.
6080 # 'file_magic [[regex]]' -- check by looking for files in library path
6081 # which responds to the $file_magic_cmd with a given extended regex.
6082 # If you have `file' or equivalent on your system and you're not sure
6083 # whether `pass_all' will *always* work, you probably want this one.
6084
6085 case $host_os in
6086 aix[4-9]*)
6087 lt_cv_deplibs_check_method=pass_all
6088 ;;
6089
6090 beos*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094 bsdi[45]*)
6095 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6096 lt_cv_file_magic_cmd='/usr/bin/file -L'
6097 lt_cv_file_magic_test_file=/shlib/libc.so
6098 ;;
6099
6100 cygwin*)
6101 # func_win32_libid is a shell function defined in ltmain.sh
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6104 ;;
6105
6106 mingw* | pw32*)
6107 # Base MSYS/MinGW do not provide the 'file' command needed by
6108 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6109 # unless we find 'file', for example because we are cross-compiling.
6110 if ( file / ) >/dev/null 2>&1; then
6111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6112 lt_cv_file_magic_cmd='func_win32_libid'
6113 else
6114 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6115 lt_cv_file_magic_cmd='$OBJDUMP -f'
6116 fi
6117 ;;
6118
6119 cegcc)
6120 # use the weaker test based on 'objdump'. See mingw*.
6121 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6123 ;;
6124
6125 darwin* | rhapsody*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 freebsd* | dragonfly*)
6130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6131 case $host_cpu in
6132 i*86 )
6133 # Not sure whether the presence of OpenBSD here was a mistake.
6134 # Let's accept both of them until this is cleared up.
6135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6136 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6138 ;;
6139 esac
6140 else
6141 lt_cv_deplibs_check_method=pass_all
6142 fi
6143 ;;
6144
6145 gnu*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 hpux10.20* | hpux11*)
6150 lt_cv_file_magic_cmd=/usr/bin/file
6151 case $host_cpu in
6152 ia64*)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6155 ;;
6156 hppa*64*)
6157 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]'
6158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6159 ;;
6160 *)
6161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6163 ;;
6164 esac
6165 ;;
6166
6167 interix[3-9]*)
6168 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6170 ;;
6171
6172 irix5* | irix6* | nonstopux*)
6173 case $LD in
6174 *-32|*"-32 ") libmagic=32-bit;;
6175 *-n32|*"-n32 ") libmagic=N32;;
6176 *-64|*"-64 ") libmagic=64-bit;;
6177 *) libmagic=never-match;;
6178 esac
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
6181
6182 # This must be Linux ELF.
6183 linux* | k*bsd*-gnu)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186
6187 netbsd*)
6188 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6190 else
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6192 fi
6193 ;;
6194
6195 newos6*)
6196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6197 lt_cv_file_magic_cmd=/usr/bin/file
6198 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6199 ;;
6200
6201 *nto* | *qnx*)
6202 lt_cv_deplibs_check_method=pass_all
6203 ;;
6204
6205 openbsd*)
6206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6207 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6208 else
6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6210 fi
6211 ;;
6212
6213 osf3* | osf4* | osf5*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217 rdos*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 solaris*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224
6225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228
6229 sysv4 | sysv4.3*)
6230 case $host_vendor in
6231 motorola)
6232 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]'
6233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6234 ;;
6235 ncr)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238 sequent)
6239 lt_cv_file_magic_cmd='/bin/file'
6240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6241 ;;
6242 sni)
6243 lt_cv_file_magic_cmd='/bin/file'
6244 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6245 lt_cv_file_magic_test_file=/lib/libc.so
6246 ;;
6247 siemens)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250 pc)
6251 lt_cv_deplibs_check_method=pass_all
6252 ;;
6253 esac
6254 ;;
6255
6256 tpf*)
6257 lt_cv_deplibs_check_method=pass_all
6258 ;;
6259 esac
6260
6261 fi
6262 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6263 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6264 file_magic_cmd=$lt_cv_file_magic_cmd
6265 deplibs_check_method=$lt_cv_deplibs_check_method
6266 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ar; ac_word=$2
6282 echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6284 if test "${ac_cv_prog_AR+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 if test -n "$AR"; then
6288 ac_cv_prog_AR="$AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_AR="${ac_tool_prefix}ar"
6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303
6304 fi
6305 fi
6306 AR=$ac_cv_prog_AR
6307 if test -n "$AR"; then
6308 echo "$as_me:$LINENO: result: $AR" >&5
6309 echo "${ECHO_T}$AR" >&6
6310 else
6311 echo "$as_me:$LINENO: result: no" >&5
6312 echo "${ECHO_T}no" >&6
6313 fi
6314
6315 fi
6316 if test -z "$ac_cv_prog_AR"; then
6317 ac_ct_AR=$AR
6318 # Extract the first word of "ar", so it can be a program name with args.
6319 set dummy ar; ac_word=$2
6320 echo "$as_me:$LINENO: checking for $ac_word" >&5
6321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6322 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 if test -n "$ac_ct_AR"; then
6326 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335 ac_cv_prog_ac_ct_AR="ar"
6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341
6342 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6343 fi
6344 fi
6345 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6346 if test -n "$ac_ct_AR"; then
6347 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6348 echo "${ECHO_T}$ac_ct_AR" >&6
6349 else
6350 echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6
6352 fi
6353
6354 AR=$ac_ct_AR
6355 else
6356 AR="$ac_cv_prog_AR"
6357 fi
6358
6359 test -z "$AR" && AR=ar
6360 test -z "$AR_FLAGS" && AR_FLAGS=cru
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}strip; ac_word=$2
6375 echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377 if test "${ac_cv_prog_STRIP+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 if test -n "$STRIP"; then
6381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396
6397 fi
6398 fi
6399 STRIP=$ac_cv_prog_STRIP
6400 if test -n "$STRIP"; then
6401 echo "$as_me:$LINENO: result: $STRIP" >&5
6402 echo "${ECHO_T}$STRIP" >&6
6403 else
6404 echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6
6406 fi
6407
6408 fi
6409 if test -z "$ac_cv_prog_STRIP"; then
6410 ac_ct_STRIP=$STRIP
6411 # Extract the first word of "strip", so it can be a program name with args.
6412 set dummy strip; ac_word=$2
6413 echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_STRIP="strip"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434
6435 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6436 fi
6437 fi
6438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439 if test -n "$ac_ct_STRIP"; then
6440 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6441 echo "${ECHO_T}$ac_ct_STRIP" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444 echo "${ECHO_T}no" >&6
6445 fi
6446
6447 STRIP=$ac_ct_STRIP
6448 else
6449 STRIP="$ac_cv_prog_STRIP"
6450 fi
6451
6452 test -z "$STRIP" && STRIP=:
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6464 if test "${ac_cv_prog_RANLIB+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483
6484 fi
6485 fi
6486 RANLIB=$ac_cv_prog_RANLIB
6487 if test -n "$RANLIB"; then
6488 echo "$as_me:$LINENO: result: $RANLIB" >&5
6489 echo "${ECHO_T}$RANLIB" >&6
6490 else
6491 echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6
6493 fi
6494
6495 fi
6496 if test -z "$ac_cv_prog_RANLIB"; then
6497 ac_ct_RANLIB=$RANLIB
6498 # Extract the first word of "ranlib", so it can be a program name with args.
6499 set dummy ranlib; ac_word=$2
6500 echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6502 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if test -n "$ac_ct_RANLIB"; then
6506 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_RANLIB="ranlib"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521
6522 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6523 fi
6524 fi
6525 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6526 if test -n "$ac_ct_RANLIB"; then
6527 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6528 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6529 else
6530 echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6
6532 fi
6533
6534 RANLIB=$ac_ct_RANLIB
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6537 fi
6538
6539 test -z "$RANLIB" && RANLIB=:
6540
6541
6542
6543
6544
6545
6546 # Determine commands to create old-style static archives.
6547 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6548 old_postinstall_cmds='chmod 644 $oldlib'
6549 old_postuninstall_cmds=
6550
6551 if test -n "$RANLIB"; then
6552 case $host_os in
6553 openbsd*)
6554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6555 ;;
6556 *)
6557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6558 ;;
6559 esac
6560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6561 fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596 # If no C compiler was specified, use CC.
6597 LTCC=${LTCC-"$CC"}
6598
6599 # If no C compiler flags were specified, use CFLAGS.
6600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6601
6602 # Allow CC to be a program name with arguments.
6603 compiler=$CC
6604
6605
6606 # Check for command to grab the raw symbol name followed by C symbol from nm.
6607 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 else
6612
6613 # These are sane defaults that work on at least a few old systems.
6614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6615
6616 # Character class describing NM global symbol codes.
6617 symcode='[BCDEGRST]'
6618
6619 # Regexp to match symbols that can be accessed directly from C.
6620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6621
6622 # Define system-specific variables.
6623 case $host_os in
6624 aix*)
6625 symcode='[BCDT]'
6626 ;;
6627 cygwin* | mingw* | pw32* | cegcc*)
6628 symcode='[ABCDGISTW]'
6629 ;;
6630 hpux*)
6631 if test "$host_cpu" = ia64; then
6632 symcode='[ABCDEGRST]'
6633 fi
6634 ;;
6635 irix* | nonstopux*)
6636 symcode='[BCDEGRST]'
6637 ;;
6638 osf*)
6639 symcode='[BCDEGQRST]'
6640 ;;
6641 solaris*)
6642 symcode='[BDRT]'
6643 ;;
6644 sco3.2v5*)
6645 symcode='[DT]'
6646 ;;
6647 sysv4.2uw2*)
6648 symcode='[DT]'
6649 ;;
6650 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6651 symcode='[ABDT]'
6652 ;;
6653 sysv4)
6654 symcode='[DFNSTU]'
6655 ;;
6656 esac
6657
6658 # If we're using GNU nm, then use its standard symbol codes.
6659 case `$NM -V 2>&1` in
6660 *GNU* | *'with BFD'*)
6661 symcode='[ABCDGIRSTW]' ;;
6662 esac
6663
6664 # Transform an extracted symbol line into a proper C declaration.
6665 # Some systems (esp. on ia64) link data and code symbols differently,
6666 # so use this general approach.
6667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6668
6669 # Transform an extracted symbol line into symbol name and symbol address
6670 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6671 lt_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'"
6672
6673 # Handle CRLF in mingw tool chain
6674 opt_cr=
6675 case $build_os in
6676 mingw*)
6677 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6678 ;;
6679 esac
6680
6681 # Try without a prefix underscore, then with it.
6682 for ac_symprfx in "" "_"; do
6683
6684 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6685 symxfrm="\\1 $ac_symprfx\\2 \\2"
6686
6687 # Write the raw and C identifiers.
6688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689 # Fake it for dumpbin and say T for any non-static function
6690 # and D for any global variable.
6691 # Also find C++ and __fastcall symbols from MSVC++,
6692 # which start with @ or ?.
6693 lt_cv_sys_global_symbol_pipe="$AWK '"\
6694 " {last_section=section; section=\$ 3};"\
6695 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6696 " \$ 0!~/External *\|/{next};"\
6697 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6698 " {if(hide[section]) next};"\
6699 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6700 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6701 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6702 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6703 " ' prfx=^$ac_symprfx"
6704 else
6705 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6706 fi
6707
6708 # Check to see that the pipe works correctly.
6709 pipe_works=no
6710
6711 rm -f conftest*
6712 cat > conftest.$ac_ext <<_LT_EOF
6713 #ifdef __cplusplus
6714 extern "C" {
6715 #endif
6716 char nm_test_var;
6717 void nm_test_func(void);
6718 void nm_test_func(void){}
6719 #ifdef __cplusplus
6720 }
6721 #endif
6722 int main(){nm_test_var='a';nm_test_func();return(0);}
6723 _LT_EOF
6724
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726 (eval $ac_compile) 2>&5
6727 ac_status=$?
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; then
6730 # Now try to grab the symbols.
6731 nlist=conftest.nm
6732 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6733 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && test -s "$nlist"; then
6737 # Try sorting and uniquifying the output.
6738 if sort "$nlist" | uniq > "$nlist"T; then
6739 mv -f "$nlist"T "$nlist"
6740 else
6741 rm -f "$nlist"T
6742 fi
6743
6744 # Make sure that we snagged all the symbols we need.
6745 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6746 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6747 cat <<_LT_EOF > conftest.$ac_ext
6748 #ifdef __cplusplus
6749 extern "C" {
6750 #endif
6751
6752 _LT_EOF
6753 # Now generate the symbol file.
6754 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6755
6756 cat <<_LT_EOF >> conftest.$ac_ext
6757
6758 /* The mapping between symbol names and symbols. */
6759 const struct {
6760 const char *name;
6761 void *address;
6762 }
6763 lt__PROGRAM__LTX_preloaded_symbols[] =
6764 {
6765 { "@PROGRAM@", (void *) 0 },
6766 _LT_EOF
6767 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6768 cat <<\_LT_EOF >> conftest.$ac_ext
6769 {0, (void *) 0}
6770 };
6771
6772 /* This works around a problem in FreeBSD linker */
6773 #ifdef FREEBSD_WORKAROUND
6774 static const void *lt_preloaded_setup() {
6775 return lt__PROGRAM__LTX_preloaded_symbols;
6776 }
6777 #endif
6778
6779 #ifdef __cplusplus
6780 }
6781 #endif
6782 _LT_EOF
6783 # Now try linking the two files.
6784 mv conftest.$ac_objext conftstm.$ac_objext
6785 lt_save_LIBS="$LIBS"
6786 lt_save_CFLAGS="$CFLAGS"
6787 LIBS="conftstm.$ac_objext"
6788 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>&5
6791 ac_status=$?
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6794 pipe_works=yes
6795 fi
6796 LIBS="$lt_save_LIBS"
6797 CFLAGS="$lt_save_CFLAGS"
6798 else
6799 echo "cannot find nm_test_func in $nlist" >&5
6800 fi
6801 else
6802 echo "cannot find nm_test_var in $nlist" >&5
6803 fi
6804 else
6805 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6806 fi
6807 else
6808 echo "$progname: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6810 fi
6811 rm -rf conftest* conftst*
6812
6813 # Do not use the global_symbol_pipe unless it works.
6814 if test "$pipe_works" = yes; then
6815 break
6816 else
6817 lt_cv_sys_global_symbol_pipe=
6818 fi
6819 done
6820
6821 fi
6822
6823 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6824 lt_cv_sys_global_symbol_to_cdecl=
6825 fi
6826 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6827 echo "$as_me:$LINENO: result: failed" >&5
6828 echo "${ECHO_T}failed" >&6
6829 else
6830 echo "$as_me:$LINENO: result: ok" >&5
6831 echo "${ECHO_T}ok" >&6
6832 fi
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then
6857 enableval="$enable_libtool_lock"
6858
6859 fi;
6860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6861
6862 # Some flags need to be propagated to the compiler or linker for good
6863 # libtool support.
6864 case $host in
6865 ia64-*-hpux*)
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *ELF-32*)
6875 HPUX_IA64_MODE="32"
6876 ;;
6877 *ELF-64*)
6878 HPUX_IA64_MODE="64"
6879 ;;
6880 esac
6881 fi
6882 rm -rf conftest*
6883 ;;
6884 *-*-irix6*)
6885 # Find out which ABI we are using.
6886 echo '#line 6886 "configure"' > conftest.$ac_ext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6894 *32-bit*)
6895 LD="${LD-ld} -melf32bsmip"
6896 ;;
6897 *N32*)
6898 LD="${LD-ld} -melf32bmipn32"
6899 ;;
6900 *64-bit*)
6901 LD="${LD-ld} -melf64bmip"
6902 ;;
6903 esac
6904 else
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *32-bit*)
6907 LD="${LD-ld} -32"
6908 ;;
6909 *N32*)
6910 LD="${LD-ld} -n32"
6911 ;;
6912 *64-bit*)
6913 LD="${LD-ld} -64"
6914 ;;
6915 esac
6916 fi
6917 fi
6918 rm -rf conftest*
6919 ;;
6920
6921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926 (eval $ac_compile) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; then
6930 case `/usr/bin/file conftest.o` in
6931 *32-bit*)
6932 case $host in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6935 ;;
6936 x86_64-*linux*)
6937 LD="${LD-ld} -m elf_i386"
6938 ;;
6939 ppc64-*linux*|powerpc64-*linux*)
6940 LD="${LD-ld} -m elf32ppclinux"
6941 ;;
6942 s390x-*linux*)
6943 LD="${LD-ld} -m elf_s390"
6944 ;;
6945 sparc64-*linux*)
6946 LD="${LD-ld} -m elf32_sparc"
6947 ;;
6948 esac
6949 ;;
6950 *64-bit*)
6951 case $host in
6952 x86_64-*kfreebsd*-gnu)
6953 LD="${LD-ld} -m elf_x86_64_fbsd"
6954 ;;
6955 x86_64-*linux*)
6956 LD="${LD-ld} -m elf_x86_64"
6957 ;;
6958 ppc*-*linux*|powerpc*-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6960 ;;
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6963 ;;
6964 sparc*-*linux*)
6965 LD="${LD-ld} -m elf64_sparc"
6966 ;;
6967 esac
6968 ;;
6969 esac
6970 fi
6971 rm -rf conftest*
6972 ;;
6973
6974 *-*-sco3.2v5*)
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS="$CFLAGS"
6977 CFLAGS="$CFLAGS -belf"
6978 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6979 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6980 if test "${lt_cv_cc_needs_belf+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995
6996 int
6997 main ()
6998 {
6999
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext conftest$ac_exeext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006 (eval $ac_link) 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -z "$ac_c_werror_flag"
7014 || test ! -s conftest.err'
7015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 (eval $ac_try) 2>&5
7017 ac_status=$?
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }; } &&
7020 { ac_try='test -s conftest$ac_exeext'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; }; then
7026 lt_cv_cc_needs_belf=yes
7027 else
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031 lt_cv_cc_needs_belf=no
7032 fi
7033 rm -f conftest.err conftest.$ac_objext \
7034 conftest$ac_exeext conftest.$ac_ext
7035 ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040
7041 fi
7042 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7043 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7044 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7045 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7046 CFLAGS="$SAVE_CFLAGS"
7047 fi
7048 ;;
7049 sparc*-*solaris*)
7050 # Find out which ABI we are using.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 case `/usr/bin/file conftest.o` in
7058 *64-bit*)
7059 case $lt_cv_prog_gnu_ld in
7060 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7061 *)
7062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063 LD="${LD-ld} -64"
7064 fi
7065 ;;
7066 esac
7067 ;;
7068 esac
7069 fi
7070 rm -rf conftest*
7071 ;;
7072 esac
7073
7074 need_locks="$enable_libtool_lock"
7075
7076
7077 case $host_os in
7078 rhapsody* | darwin*)
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7081 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7082 echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 if test -n "$DSYMUTIL"; then
7088 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101 done
7102 done
7103
7104 fi
7105 fi
7106 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7107 if test -n "$DSYMUTIL"; then
7108 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7109 echo "${ECHO_T}$DSYMUTIL" >&6
7110 else
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7113 fi
7114
7115 fi
7116 if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119 set dummy dsymutil; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141
7142 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7143 fi
7144 fi
7145 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7148 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7149 else
7150 echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152 fi
7153
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155 else
7156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7157 fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7162 echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7164 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 if test -n "$NMEDIT"; then
7168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183
7184 fi
7185 fi
7186 NMEDIT=$ac_cv_prog_NMEDIT
7187 if test -n "$NMEDIT"; then
7188 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7189 echo "${ECHO_T}$NMEDIT" >&6
7190 else
7191 echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6
7193 fi
7194
7195 fi
7196 if test -z "$ac_cv_prog_NMEDIT"; then
7197 ac_ct_NMEDIT=$NMEDIT
7198 # Extract the first word of "nmedit", so it can be a program name with args.
7199 set dummy nmedit; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 if test -n "$ac_ct_NMEDIT"; then
7206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221
7222 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7223 fi
7224 fi
7225 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7226 if test -n "$ac_ct_NMEDIT"; then
7227 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7228 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7229 else
7230 echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7232 fi
7233
7234 NMEDIT=$ac_ct_NMEDIT
7235 else
7236 NMEDIT="$ac_cv_prog_NMEDIT"
7237 fi
7238
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7242 echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7244 if test "${ac_cv_prog_LIPO+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 if test -n "$LIPO"; then
7248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7249 else
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253 IFS=$as_save_IFS
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259 break 2
7260 fi
7261 done
7262 done
7263
7264 fi
7265 fi
7266 LIPO=$ac_cv_prog_LIPO
7267 if test -n "$LIPO"; then
7268 echo "$as_me:$LINENO: result: $LIPO" >&5
7269 echo "${ECHO_T}$LIPO" >&6
7270 else
7271 echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6
7273 fi
7274
7275 fi
7276 if test -z "$ac_cv_prog_LIPO"; then
7277 ac_ct_LIPO=$LIPO
7278 # Extract the first word of "lipo", so it can be a program name with args.
7279 set dummy lipo; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285 if test -n "$ac_ct_LIPO"; then
7286 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_ac_ct_LIPO="lipo"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299 done
7300 done
7301
7302 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7303 fi
7304 fi
7305 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7306 if test -n "$ac_ct_LIPO"; then
7307 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7308 echo "${ECHO_T}$ac_ct_LIPO" >&6
7309 else
7310 echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6
7312 fi
7313
7314 LIPO=$ac_ct_LIPO
7315 else
7316 LIPO="$ac_cv_prog_LIPO"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}otool; ac_word=$2
7322 echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324 if test "${ac_cv_prog_OTOOL+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 if test -n "$OTOOL"; then
7328 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343
7344 fi
7345 fi
7346 OTOOL=$ac_cv_prog_OTOOL
7347 if test -n "$OTOOL"; then
7348 echo "$as_me:$LINENO: result: $OTOOL" >&5
7349 echo "${ECHO_T}$OTOOL" >&6
7350 else
7351 echo "$as_me:$LINENO: result: no" >&5
7352 echo "${ECHO_T}no" >&6
7353 fi
7354
7355 fi
7356 if test -z "$ac_cv_prog_OTOOL"; then
7357 ac_ct_OTOOL=$OTOOL
7358 # Extract the first word of "otool", so it can be a program name with args.
7359 set dummy otool; ac_word=$2
7360 echo "$as_me:$LINENO: checking for $ac_word" >&5
7361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7362 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 if test -n "$ac_ct_OTOOL"; then
7366 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_ac_ct_OTOOL="otool"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379 done
7380 done
7381
7382 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7383 fi
7384 fi
7385 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7386 if test -n "$ac_ct_OTOOL"; then
7387 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7388 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7389 else
7390 echo "$as_me:$LINENO: result: no" >&5
7391 echo "${ECHO_T}no" >&6
7392 fi
7393
7394 OTOOL=$ac_ct_OTOOL
7395 else
7396 OTOOL="$ac_cv_prog_OTOOL"
7397 fi
7398
7399 if test -n "$ac_tool_prefix"; then
7400 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7402 echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7404 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 if test -n "$OTOOL64"; then
7408 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423
7424 fi
7425 fi
7426 OTOOL64=$ac_cv_prog_OTOOL64
7427 if test -n "$OTOOL64"; then
7428 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7429 echo "${ECHO_T}$OTOOL64" >&6
7430 else
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433 fi
7434
7435 fi
7436 if test -z "$ac_cv_prog_OTOOL64"; then
7437 ac_ct_OTOOL64=$OTOOL64
7438 # Extract the first word of "otool64", so it can be a program name with args.
7439 set dummy otool64; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 if test -n "$ac_ct_OTOOL64"; then
7446 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_ac_ct_OTOOL64="otool64"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459 done
7460 done
7461
7462 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7463 fi
7464 fi
7465 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7466 if test -n "$ac_ct_OTOOL64"; then
7467 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7468 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7469 else
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472 fi
7473
7474 OTOOL64=$ac_ct_OTOOL64
7475 else
7476 OTOOL64="$ac_cv_prog_OTOOL64"
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7506 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7507 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 lt_cv_apple_cc_single_mod=no
7511 if test -z "${LT_MULTI_MODULE}"; then
7512 # By default we will add the -single_module flag. You can override
7513 # by either setting the environment variable LT_MULTI_MODULE
7514 # non-empty at configure time, or by adding -multi_module to the
7515 # link flags.
7516 rm -rf libconftest.dylib*
7517 echo "int foo(void){return 1;}" > conftest.c
7518 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519 -dynamiclib -Wl,-single_module conftest.c" >&5
7520 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7522 _lt_result=$?
7523 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7524 lt_cv_apple_cc_single_mod=yes
7525 else
7526 cat conftest.err >&5
7527 fi
7528 rm -rf libconftest.dylib*
7529 rm -f conftest.*
7530 fi
7531 fi
7532 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7533 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7534 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7535 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7536 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 lt_cv_ld_exported_symbols_list=no
7540 save_LDFLAGS=$LDFLAGS
7541 echo "_main" > conftest.sym
7542 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549
7550 int
7551 main ()
7552 {
7553
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 rm -f conftest.$ac_objext conftest$ac_exeext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag"
7568 || test ! -s conftest.err'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 (eval $ac_try) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest$ac_exeext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 (eval $ac_try) 2>&5
7577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 lt_cv_ld_exported_symbols_list=yes
7581 else
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 lt_cv_ld_exported_symbols_list=no
7586 fi
7587 rm -f conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 LDFLAGS="$save_LDFLAGS"
7590
7591 fi
7592 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7593 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7594 case $host_os in
7595 rhapsody* | darwin1.[012])
7596 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7597 darwin1.*)
7598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7599 darwin*) # darwin 5.x on
7600 # if running on 10.5 or later, the deployment target defaults
7601 # to the OS version, if on x86, and 10.4, the deployment
7602 # target defaults to 10.4. Don't you love it?
7603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7606 10.[012]*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 10.*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 esac
7611 ;;
7612 esac
7613 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7614 _lt_dar_single_mod='$single_module'
7615 fi
7616 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7617 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7618 else
7619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7620 fi
7621 if test "$DSYMUTIL" != ":"; then
7622 _lt_dsymutil='~$DSYMUTIL $lib || :'
7623 else
7624 _lt_dsymutil=
7625 fi
7626 ;;
7627 esac
7628
7629
7630 for ac_header in dlfcn.h
7631 do
7632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h. */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645
7646 #include <$ac_header>
7647 _ACEOF
7648 rm -f conftest.$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 eval "$as_ac_Header=yes"
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 eval "$as_ac_Header=no"
7676 fi
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7682 cat >>confdefs.h <<_ACEOF
7683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 _ACEOF
7685
7686 fi
7687
7688 done
7689
7690
7691
7692 # Set options
7693
7694
7695
7696 enable_dlopen=no
7697
7698
7699 enable_win32_dll=no
7700
7701
7702
7703 # Check whether --enable-static or --disable-static was given.
7704 if test "${enable_static+set}" = set; then
7705 enableval="$enable_static"
7706 p=${PACKAGE-default}
7707 case $enableval in
7708 yes) enable_static=yes ;;
7709 no) enable_static=no ;;
7710 *)
7711 enable_static=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7715 IFS="$lt_save_ifs"
7716 if test "X$pkg" = "X$p"; then
7717 enable_static=yes
7718 fi
7719 done
7720 IFS="$lt_save_ifs"
7721 ;;
7722 esac
7723 else
7724 enable_static=yes
7725 fi;
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735 # Check whether --with-pic or --without-pic was given.
7736 if test "${with_pic+set}" = set; then
7737 withval="$with_pic"
7738 pic_mode="$withval"
7739 else
7740 pic_mode=default
7741 fi;
7742
7743 test -z "$pic_mode" && pic_mode=default
7744
7745
7746
7747
7748
7749
7750
7751 # Check whether --enable-fast-install or --disable-fast-install was given.
7752 if test "${enable_fast_install+set}" = set; then
7753 enableval="$enable_fast_install"
7754 p=${PACKAGE-default}
7755 case $enableval in
7756 yes) enable_fast_install=yes ;;
7757 no) enable_fast_install=no ;;
7758 *)
7759 enable_fast_install=no
7760 # Look at the argument we got. We use all the common list separators.
7761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7762 for pkg in $enableval; do
7763 IFS="$lt_save_ifs"
7764 if test "X$pkg" = "X$p"; then
7765 enable_fast_install=yes
7766 fi
7767 done
7768 IFS="$lt_save_ifs"
7769 ;;
7770 esac
7771 else
7772 enable_fast_install=yes
7773 fi;
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 # This can be used to rebuild libtool when needed
7785 LIBTOOL_DEPS="$ltmain"
7786
7787 # Always use our own libtool.
7788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 test -z "$LN_S" && LN_S="ln -s"
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829 if test -n "${ZSH_VERSION+set}" ; then
7830 setopt NO_GLOB_SUBST
7831 fi
7832
7833 echo "$as_me:$LINENO: checking for objdir" >&5
7834 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7835 if test "${lt_cv_objdir+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 rm -f .libs 2>/dev/null
7839 mkdir .libs 2>/dev/null
7840 if test -d .libs; then
7841 lt_cv_objdir=.libs
7842 else
7843 # MS-DOS does not allow filenames that begin with a dot.
7844 lt_cv_objdir=_libs
7845 fi
7846 rmdir .libs 2>/dev/null
7847 fi
7848 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7849 echo "${ECHO_T}$lt_cv_objdir" >&6
7850 objdir=$lt_cv_objdir
7851
7852
7853
7854
7855
7856 cat >>confdefs.h <<_ACEOF
7857 #define LT_OBJDIR "$lt_cv_objdir/"
7858 _ACEOF
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 case $host_os in
7877 aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7884 fi
7885 ;;
7886 esac
7887
7888 # Sed substitution that helps us do robust quoting. It backslashifies
7889 # metacharacters that are still active within double-quoted strings.
7890 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7891
7892 # Same as above, but do not quote variable references.
7893 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7894
7895 # Sed substitution to delay expansion of an escaped shell variable in a
7896 # double_quote_subst'ed string.
7897 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7898
7899 # Sed substitution to delay expansion of an escaped single quote.
7900 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7901
7902 # Sed substitution to avoid accidental globbing in evaled expressions
7903 no_glob_subst='s/\*/\\\*/g'
7904
7905 # Global variables:
7906 ofile=libtool
7907 can_build_shared=yes
7908
7909 # All known linkers require a `.a' archive for static linking (except MSVC,
7910 # which needs '.lib').
7911 libext=a
7912
7913 with_gnu_ld="$lt_cv_prog_gnu_ld"
7914
7915 old_CC="$CC"
7916 old_CFLAGS="$CFLAGS"
7917
7918 # Set sane defaults for various variables
7919 test -z "$CC" && CC=cc
7920 test -z "$LTCC" && LTCC=$CC
7921 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922 test -z "$LD" && LD=ld
7923 test -z "$ac_objext" && ac_objext=o
7924
7925 for cc_temp in $compiler""; do
7926 case $cc_temp in
7927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7929 \-*) ;;
7930 *) break;;
7931 esac
7932 done
7933 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7934
7935
7936 # Only perform the check for file, if the check method requires it
7937 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7938 case $deplibs_check_method in
7939 file_magic*)
7940 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7941 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946 case $MAGIC_CMD in
7947 [\\/*] | ?:[\\/]*)
7948 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7949 ;;
7950 *)
7951 lt_save_MAGIC_CMD="$MAGIC_CMD"
7952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7953 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7954 for ac_dir in $ac_dummy; do
7955 IFS="$lt_save_ifs"
7956 test -z "$ac_dir" && ac_dir=.
7957 if test -f $ac_dir/${ac_tool_prefix}file; then
7958 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7959 if test -n "$file_magic_test_file"; then
7960 case $deplibs_check_method in
7961 "file_magic "*)
7962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7965 $EGREP "$file_magic_regex" > /dev/null; then
7966 :
7967 else
7968 cat <<_LT_EOF 1>&2
7969
7970 *** Warning: the command libtool uses to detect shared libraries,
7971 *** $file_magic_cmd, produces output that libtool cannot recognize.
7972 *** The result is that libtool may fail to recognize shared libraries
7973 *** as such. This will affect the creation of libtool libraries that
7974 *** depend on shared libraries, but programs linked with such libtool
7975 *** libraries will work regardless of this problem. Nevertheless, you
7976 *** may want to report the problem to your system manager and/or to
7977 *** bug-libtool@gnu.org
7978
7979 _LT_EOF
7980 fi ;;
7981 esac
7982 fi
7983 break
7984 fi
7985 done
7986 IFS="$lt_save_ifs"
7987 MAGIC_CMD="$lt_save_MAGIC_CMD"
7988 ;;
7989 esac
7990 fi
7991
7992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7993 if test -n "$MAGIC_CMD"; then
7994 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7995 echo "${ECHO_T}$MAGIC_CMD" >&6
7996 else
7997 echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6
7999 fi
8000
8001
8002
8003
8004
8005 if test -z "$lt_cv_path_MAGIC_CMD"; then
8006 if test -n "$ac_tool_prefix"; then
8007 echo "$as_me:$LINENO: checking for file" >&5
8008 echo $ECHO_N "checking for file... $ECHO_C" >&6
8009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 case $MAGIC_CMD in
8013 [\\/*] | ?:[\\/]*)
8014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8015 ;;
8016 *)
8017 lt_save_MAGIC_CMD="$MAGIC_CMD"
8018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8020 for ac_dir in $ac_dummy; do
8021 IFS="$lt_save_ifs"
8022 test -z "$ac_dir" && ac_dir=.
8023 if test -f $ac_dir/file; then
8024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8025 if test -n "$file_magic_test_file"; then
8026 case $deplibs_check_method in
8027 "file_magic "*)
8028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8031 $EGREP "$file_magic_regex" > /dev/null; then
8032 :
8033 else
8034 cat <<_LT_EOF 1>&2
8035
8036 *** Warning: the command libtool uses to detect shared libraries,
8037 *** $file_magic_cmd, produces output that libtool cannot recognize.
8038 *** The result is that libtool may fail to recognize shared libraries
8039 *** as such. This will affect the creation of libtool libraries that
8040 *** depend on shared libraries, but programs linked with such libtool
8041 *** libraries will work regardless of this problem. Nevertheless, you
8042 *** may want to report the problem to your system manager and/or to
8043 *** bug-libtool@gnu.org
8044
8045 _LT_EOF
8046 fi ;;
8047 esac
8048 fi
8049 break
8050 fi
8051 done
8052 IFS="$lt_save_ifs"
8053 MAGIC_CMD="$lt_save_MAGIC_CMD"
8054 ;;
8055 esac
8056 fi
8057
8058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8059 if test -n "$MAGIC_CMD"; then
8060 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8061 echo "${ECHO_T}$MAGIC_CMD" >&6
8062 else
8063 echo "$as_me:$LINENO: result: no" >&5
8064 echo "${ECHO_T}no" >&6
8065 fi
8066
8067
8068 else
8069 MAGIC_CMD=:
8070 fi
8071 fi
8072
8073 fi
8074 ;;
8075 esac
8076
8077 # Use C for the default configuration in the libtool script
8078
8079 lt_save_CC="$CC"
8080 ac_ext=c
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085
8086
8087 # Source file extension for C test sources.
8088 ac_ext=c
8089
8090 # Object file extension for compiled C test sources.
8091 objext=o
8092 objext=$objext
8093
8094 # Code to be used in simple compile tests
8095 lt_simple_compile_test_code="int some_variable = 0;"
8096
8097 # Code to be used in simple link tests
8098 lt_simple_link_test_code='int main(){return(0);}'
8099
8100
8101
8102
8103
8104
8105
8106 # If no C compiler was specified, use CC.
8107 LTCC=${LTCC-"$CC"}
8108
8109 # If no C compiler flags were specified, use CFLAGS.
8110 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8111
8112 # Allow CC to be a program name with arguments.
8113 compiler=$CC
8114
8115 # Save the default compiler, since it gets overwritten when the other
8116 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8117 compiler_DEFAULT=$CC
8118
8119 # save warnings/boilerplate of simple test code
8120 ac_outfile=conftest.$ac_objext
8121 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8122 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8123 _lt_compiler_boilerplate=`cat conftest.err`
8124 $RM conftest*
8125
8126 ac_outfile=conftest.$ac_objext
8127 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8128 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8129 _lt_linker_boilerplate=`cat conftest.err`
8130 $RM -r conftest*
8131
8132
8133 ## CAVEAT EMPTOR:
8134 ## There is no encapsulation within the following macros, do not change
8135 ## the running order or otherwise move them around unless you know exactly
8136 ## what you are doing...
8137 if test -n "$compiler"; then
8138
8139 lt_prog_compiler_no_builtin_flag=
8140
8141 if test "$GCC" = yes; then
8142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8143
8144 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8145 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149 lt_cv_prog_compiler_rtti_exceptions=no
8150 ac_outfile=conftest.$ac_objext
8151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8152 lt_compiler_flag="-fno-rtti -fno-exceptions"
8153 # Insert the option either (1) after the last *FLAGS variable, or
8154 # (2) before a word containing "conftest.", or (3) at the end.
8155 # Note that $ac_compile itself does not contain backslashes and begins
8156 # with a dollar sign (not a hyphen), so the echo should work correctly.
8157 # The option is referenced via a variable to avoid confusing sed.
8158 lt_compile=`echo "$ac_compile" | $SED \
8159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161 -e 's:$: $lt_compiler_flag:'`
8162 (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
8163 (eval "$lt_compile" 2>conftest.err)
8164 ac_status=$?
8165 cat conftest.err >&5
8166 echo "$as_me:8166: \$? = $ac_status" >&5
8167 if (exit $ac_status) && test -s "$ac_outfile"; then
8168 # The compiler can only warn and ignore the option if not recognized
8169 # So say no if there are warnings other than the usual output.
8170 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8173 lt_cv_prog_compiler_rtti_exceptions=yes
8174 fi
8175 fi
8176 $RM conftest*
8177
8178 fi
8179 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8180 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8181
8182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8183 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8184 else
8185 :
8186 fi
8187
8188 fi
8189
8190
8191
8192
8193
8194
8195 lt_prog_compiler_wl=
8196 lt_prog_compiler_pic=
8197 lt_prog_compiler_static=
8198
8199 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8200 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8201
8202 if test "$GCC" = yes; then
8203 lt_prog_compiler_wl='-Wl,'
8204 lt_prog_compiler_static='-static'
8205
8206 case $host_os in
8207 aix*)
8208 # All AIX code is PIC.
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
8212 fi
8213 ;;
8214
8215 amigaos*)
8216 case $host_cpu in
8217 powerpc)
8218 # see comment about AmigaOS4 .so support
8219 lt_prog_compiler_pic='-fPIC'
8220 ;;
8221 m68k)
8222 # FIXME: we need at least 68020 code to build shared libraries, but
8223 # adding the `-m68020' flag to GCC prevents building anything better,
8224 # like `-m68040'.
8225 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8226 ;;
8227 esac
8228 ;;
8229
8230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8231 # PIC is the default for these OSes.
8232 ;;
8233
8234 mingw* | cygwin* | pw32* | os2* | cegcc*)
8235 # This hack is so that the source file can tell whether it is being
8236 # built for inclusion in a dll (and should export symbols for example).
8237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8238 # (--disable-auto-import) libraries
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8240 ;;
8241
8242 darwin* | rhapsody*)
8243 # PIC is the default on this platform
8244 # Common symbols not allowed in MH_DYLIB files
8245 lt_prog_compiler_pic='-fno-common'
8246 ;;
8247
8248 hpux*)
8249 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8250 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8251 # sets the default TLS model and affects inlining.
8252 case $host_cpu in
8253 hppa*64*)
8254 # +Z the default
8255 ;;
8256 *)
8257 lt_prog_compiler_pic='-fPIC'
8258 ;;
8259 esac
8260 ;;
8261
8262 interix[3-9]*)
8263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8264 # Instead, we relocate shared libraries at runtime.
8265 ;;
8266
8267 msdosdjgpp*)
8268 # Just because we use GCC doesn't mean we suddenly get shared libraries
8269 # on systems that don't support them.
8270 lt_prog_compiler_can_build_shared=no
8271 enable_shared=no
8272 ;;
8273
8274 *nto* | *qnx*)
8275 # QNX uses GNU C++, but need to define -shared option too, otherwise
8276 # it will coredump.
8277 lt_prog_compiler_pic='-fPIC -shared'
8278 ;;
8279
8280 sysv4*MP*)
8281 if test -d /usr/nec; then
8282 lt_prog_compiler_pic=-Kconform_pic
8283 fi
8284 ;;
8285
8286 *)
8287 lt_prog_compiler_pic='-fPIC'
8288 ;;
8289 esac
8290 else
8291 # PORTME Check for flag to pass linker flags through the system compiler.
8292 case $host_os in
8293 aix*)
8294 lt_prog_compiler_wl='-Wl,'
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 now supports IA64 processor
8297 lt_prog_compiler_static='-Bstatic'
8298 else
8299 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8300 fi
8301 ;;
8302
8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 lt_prog_compiler_pic='-DDLL_EXPORT'
8307 ;;
8308
8309 hpux9* | hpux10* | hpux11*)
8310 lt_prog_compiler_wl='-Wl,'
8311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8312 # not for PA HP-UX.
8313 case $host_cpu in
8314 hppa*64*|ia64*)
8315 # +Z the default
8316 ;;
8317 *)
8318 lt_prog_compiler_pic='+Z'
8319 ;;
8320 esac
8321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8322 lt_prog_compiler_static='${wl}-a ${wl}archive'
8323 ;;
8324
8325 irix5* | irix6* | nonstopux*)
8326 lt_prog_compiler_wl='-Wl,'
8327 # PIC (with -KPIC) is the default.
8328 lt_prog_compiler_static='-non_shared'
8329 ;;
8330
8331 linux* | k*bsd*-gnu)
8332 case $cc_basename in
8333 # old Intel for x86_64 which still supported -KPIC.
8334 ecc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-static'
8338 ;;
8339 # icc used to be incompatible with GCC.
8340 # ICC 10 doesn't accept -KPIC any more.
8341 icc* | ifort*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8345 ;;
8346 # Lahey Fortran 8.1.
8347 lf95*)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='--shared'
8350 lt_prog_compiler_static='--static'
8351 ;;
8352 pgcc* | pgf77* | pgf90* | pgf95*)
8353 # Portland Group compilers (*not* the Pentium gcc compiler,
8354 # which looks to be a dead project)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-fpic'
8357 lt_prog_compiler_static='-Bstatic'
8358 ;;
8359 ccc*)
8360 lt_prog_compiler_wl='-Wl,'
8361 # All Alpha code is PIC.
8362 lt_prog_compiler_static='-non_shared'
8363 ;;
8364 xl*)
8365 # IBM XL C 8.0/Fortran 10.1 on PPC
8366 lt_prog_compiler_wl='-Wl,'
8367 lt_prog_compiler_pic='-qpic'
8368 lt_prog_compiler_static='-qstaticlink'
8369 ;;
8370 *)
8371 case `$CC -V 2>&1 | sed 5q` in
8372 *Sun\ C*)
8373 # Sun C 5.9
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 lt_prog_compiler_wl='-Wl,'
8377 ;;
8378 *Sun\ F*)
8379 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8380 lt_prog_compiler_pic='-KPIC'
8381 lt_prog_compiler_static='-Bstatic'
8382 lt_prog_compiler_wl=''
8383 ;;
8384 esac
8385 ;;
8386 esac
8387 ;;
8388
8389 newsos6)
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 *nto* | *qnx*)
8395 # QNX uses GNU C++, but need to define -shared option too, otherwise
8396 # it will coredump.
8397 lt_prog_compiler_pic='-fPIC -shared'
8398 ;;
8399
8400 osf3* | osf4* | osf5*)
8401 lt_prog_compiler_wl='-Wl,'
8402 # All OSF/1 code is PIC.
8403 lt_prog_compiler_static='-non_shared'
8404 ;;
8405
8406 rdos*)
8407 lt_prog_compiler_static='-non_shared'
8408 ;;
8409
8410 solaris*)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 case $cc_basename in
8414 f77* | f90* | f95*)
8415 lt_prog_compiler_wl='-Qoption ld ';;
8416 *)
8417 lt_prog_compiler_wl='-Wl,';;
8418 esac
8419 ;;
8420
8421 sunos4*)
8422 lt_prog_compiler_wl='-Qoption ld '
8423 lt_prog_compiler_pic='-PIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 ;;
8426
8427 sysv4 | sysv4.2uw2* | sysv4.3*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432
8433 sysv4*MP*)
8434 if test -d /usr/nec ;then
8435 lt_prog_compiler_pic='-Kconform_pic'
8436 lt_prog_compiler_static='-Bstatic'
8437 fi
8438 ;;
8439
8440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-KPIC'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
8445
8446 unicos*)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_can_build_shared=no
8449 ;;
8450
8451 uts4*)
8452 lt_prog_compiler_pic='-pic'
8453 lt_prog_compiler_static='-Bstatic'
8454 ;;
8455
8456 *)
8457 lt_prog_compiler_can_build_shared=no
8458 ;;
8459 esac
8460 fi
8461
8462 case $host_os in
8463 # For platforms which do not support PIC, -DPIC is meaningless:
8464 *djgpp*)
8465 lt_prog_compiler_pic=
8466 ;;
8467 *)
8468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8469 ;;
8470 esac
8471 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8472 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8473
8474
8475
8476
8477
8478
8479 #
8480 # Check to make sure the PIC flag actually works.
8481 #
8482 if test -n "$lt_prog_compiler_pic"; then
8483 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8485 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 lt_cv_prog_compiler_pic_works=no
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8491 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 # The option is referenced via a variable to avoid confusing sed.
8497 lt_compile=`echo "$ac_compile" | $SED \
8498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500 -e 's:$: $lt_compiler_flag:'`
8501 (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
8502 (eval "$lt_compile" 2>conftest.err)
8503 ac_status=$?
8504 cat conftest.err >&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 if (exit $ac_status) && test -s "$ac_outfile"; then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings other than the usual output.
8509 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_pic_works=yes
8513 fi
8514 fi
8515 $RM conftest*
8516
8517 fi
8518 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8519 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8520
8521 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8522 case $lt_prog_compiler_pic in
8523 "" | " "*) ;;
8524 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8525 esac
8526 else
8527 lt_prog_compiler_pic=
8528 lt_prog_compiler_can_build_shared=no
8529 fi
8530
8531 fi
8532
8533
8534
8535
8536
8537
8538 #
8539 # Check to make sure the static flag actually works.
8540 #
8541 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8542 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8543 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8544 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 lt_cv_prog_compiler_static_works=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_cv_prog_compiler_static_works=yes
8561 fi
8562 else
8563 lt_cv_prog_compiler_static_works=yes
8564 fi
8565 fi
8566 $RM -r conftest*
8567 LDFLAGS="$save_LDFLAGS"
8568
8569 fi
8570 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8571 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8572
8573 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8574 :
8575 else
8576 lt_prog_compiler_static=
8577 fi
8578
8579
8580
8581
8582
8583
8584
8585 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8586 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8587 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 lt_cv_prog_compiler_c_o=no
8591 $RM -r conftest 2>/dev/null
8592 mkdir conftest
8593 cd conftest
8594 mkdir out
8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8596
8597 lt_compiler_flag="-o out/conftest2.$ac_objext"
8598 # Insert the option either (1) after the last *FLAGS variable, or
8599 # (2) before a word containing "conftest.", or (3) at the end.
8600 # Note that $ac_compile itself does not contain backslashes and begins
8601 # with a dollar sign (not a hyphen), so the echo should work correctly.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607 (eval "$lt_compile" 2>out/conftest.err)
8608 ac_status=$?
8609 cat out/conftest.err >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8612 then
8613 # The compiler can only warn and ignore the option if not recognized
8614 # So say no if there are warnings
8615 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8618 lt_cv_prog_compiler_c_o=yes
8619 fi
8620 fi
8621 chmod u+w . 2>&5
8622 $RM conftest*
8623 # SGI C++ compiler will create directory out/ii_files/ for
8624 # template instantiation
8625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8626 $RM out/* && rmdir out
8627 cd ..
8628 $RM -r conftest
8629 $RM conftest*
8630
8631 fi
8632 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8634
8635
8636
8637
8638
8639
8640 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8641 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8642 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 lt_cv_prog_compiler_c_o=no
8646 $RM -r conftest 2>/dev/null
8647 mkdir conftest
8648 cd conftest
8649 mkdir out
8650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8651
8652 lt_compiler_flag="-o out/conftest2.$ac_objext"
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 lt_compile=`echo "$ac_compile" | $SED \
8658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8660 -e 's:$: $lt_compiler_flag:'`
8661 (eval echo "\"\$as_me:8661: $lt_compile\"" >&5)
8662 (eval "$lt_compile" 2>out/conftest.err)
8663 ac_status=$?
8664 cat out/conftest.err >&5
8665 echo "$as_me:8665: \$? = $ac_status" >&5
8666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8667 then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings
8670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_c_o=yes
8674 fi
8675 fi
8676 chmod u+w . 2>&5
8677 $RM conftest*
8678 # SGI C++ compiler will create directory out/ii_files/ for
8679 # template instantiation
8680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8681 $RM out/* && rmdir out
8682 cd ..
8683 $RM -r conftest
8684 $RM conftest*
8685
8686 fi
8687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8688 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8689
8690
8691
8692
8693 hard_links="nottested"
8694 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8695 # do not overwrite the value of need_locks provided by the user
8696 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8697 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8698 hard_links=yes
8699 $RM conftest*
8700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8701 touch conftest.a
8702 ln conftest.a conftest.b 2>&5 || hard_links=no
8703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8704 echo "$as_me:$LINENO: result: $hard_links" >&5
8705 echo "${ECHO_T}$hard_links" >&6
8706 if test "$hard_links" = no; then
8707 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8708 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8709 need_locks=warn
8710 fi
8711 else
8712 need_locks=no
8713 fi
8714
8715
8716
8717
8718
8719
8720 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8721 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8722
8723 runpath_var=
8724 allow_undefined_flag=
8725 always_export_symbols=no
8726 archive_cmds=
8727 archive_expsym_cmds=
8728 compiler_needs_object=no
8729 enable_shared_with_static_runtimes=no
8730 export_dynamic_flag_spec=
8731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8732 hardcode_automatic=no
8733 hardcode_direct=no
8734 hardcode_direct_absolute=no
8735 hardcode_libdir_flag_spec=
8736 hardcode_libdir_flag_spec_ld=
8737 hardcode_libdir_separator=
8738 hardcode_minus_L=no
8739 hardcode_shlibpath_var=unsupported
8740 inherit_rpath=no
8741 link_all_deplibs=unknown
8742 module_cmds=
8743 module_expsym_cmds=
8744 old_archive_from_new_cmds=
8745 old_archive_from_expsyms_cmds=
8746 thread_safe_flag_spec=
8747 whole_archive_flag_spec=
8748 # include_expsyms should be a list of space-separated symbols to be *always*
8749 # included in the symbol list
8750 include_expsyms=
8751 # exclude_expsyms can be an extended regexp of symbols to exclude
8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8754 # as well as any symbol that contains `d'.
8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8757 # platforms (ab)use it in PIC code, but their linkers get confused if
8758 # the symbol is explicitly referenced. Since portable code cannot
8759 # rely on this symbol name, it's probably fine to never include it in
8760 # preloaded symbol tables.
8761 # Exclude shared library initialization/finalization symbols.
8762 extract_expsyms_cmds=
8763
8764 case $host_os in
8765 cygwin* | mingw* | pw32* | cegcc*)
8766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8767 # When not using gcc, we currently assume that we are using
8768 # Microsoft Visual C++.
8769 if test "$GCC" != yes; then
8770 with_gnu_ld=no
8771 fi
8772 ;;
8773 interix*)
8774 # we just hope/assume this is gcc and not c89 (= MSVC++)
8775 with_gnu_ld=yes
8776 ;;
8777 openbsd*)
8778 with_gnu_ld=no
8779 ;;
8780 esac
8781
8782 ld_shlibs=yes
8783 if test "$with_gnu_ld" = yes; then
8784 # If archive_cmds runs LD, not CC, wlarc should be empty
8785 wlarc='${wl}'
8786
8787 # Set some defaults for GNU ld with shared library support. These
8788 # are reset later if shared libraries are not supported. Putting them
8789 # here allows them to be overridden if necessary.
8790 runpath_var=LD_RUN_PATH
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 export_dynamic_flag_spec='${wl}--export-dynamic'
8793 # ancient GNU ld didn't support --whole-archive et. al.
8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796 else
8797 whole_archive_flag_spec=
8798 fi
8799 supports_anon_versioning=no
8800 case `$LD -v 2>&1` in
8801 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8802 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8803 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8804 *\ 2.11.*) ;; # other 2.11 versions
8805 *) supports_anon_versioning=yes ;;
8806 esac
8807
8808 # See if GNU ld supports shared libraries.
8809 case $host_os in
8810 aix[3-9]*)
8811 # On AIX/PPC, the GNU linker is very broken
8812 if test "$host_cpu" != ia64; then
8813 ld_shlibs=no
8814 cat <<_LT_EOF 1>&2
8815
8816 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8817 *** to be unable to reliably create shared libraries on AIX.
8818 *** Therefore, libtool is disabling shared libraries support. If you
8819 *** really care for shared libraries, you may want to modify your PATH
8820 *** so that a non-GNU linker is found, and then restart.
8821
8822 _LT_EOF
8823 fi
8824 ;;
8825
8826 amigaos*)
8827 case $host_cpu in
8828 powerpc)
8829 # see comment about AmigaOS4 .so support
8830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831 archive_expsym_cmds=''
8832 ;;
8833 m68k)
8834 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)'
8835 hardcode_libdir_flag_spec='-L$libdir'
8836 hardcode_minus_L=yes
8837 ;;
8838 esac
8839 ;;
8840
8841 beos*)
8842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8843 allow_undefined_flag=unsupported
8844 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8845 # support --undefined. This deserves some investigation. FIXME
8846 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847 else
8848 ld_shlibs=no
8849 fi
8850 ;;
8851
8852 cygwin* | mingw* | pw32* | cegcc*)
8853 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8854 # as there is no search path for DLLs.
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 allow_undefined_flag=unsupported
8857 always_export_symbols=no
8858 enable_shared_with_static_runtimes=yes
8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8860
8861 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 # If the export-symbols file already is a .def file (1st line
8864 # is EXPORTS), use it as is; otherwise, prepend...
8865 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8866 cp $export_symbols $output_objdir/$soname.def;
8867 else
8868 echo EXPORTS > $output_objdir/$soname.def;
8869 cat $export_symbols >> $output_objdir/$soname.def;
8870 fi~
8871 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 interix[3-9]*)
8878 hardcode_direct=no
8879 hardcode_shlibpath_var=no
8880 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8881 export_dynamic_flag_spec='${wl}-E'
8882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8883 # Instead, shared libraries are loaded at an image base (0x10000000 by
8884 # default) and relocated if they conflict, which is a slow very memory
8885 # consuming and fragmenting process. To avoid this, we pick a random,
8886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8889 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'
8890 ;;
8891
8892 gnu* | linux* | tpf* | k*bsd*-gnu)
8893 tmp_diet=no
8894 if test "$host_os" = linux-dietlibc; then
8895 case $cc_basename in
8896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8897 esac
8898 fi
8899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8900 && test "$tmp_diet" = no
8901 then
8902 tmp_addflag=
8903 tmp_sharedflag='-shared'
8904 case $cc_basename,$host_cpu in
8905 pgcc*) # Portland Group C compiler
8906 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'
8907 tmp_addflag=' $pic_flag'
8908 ;;
8909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8910 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'
8911 tmp_addflag=' $pic_flag -Mnomain' ;;
8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8913 tmp_addflag=' -i_dynamic' ;;
8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8915 tmp_addflag=' -i_dynamic -nofor_main' ;;
8916 ifc* | ifort*) # Intel Fortran compiler
8917 tmp_addflag=' -nofor_main' ;;
8918 lf95*) # Lahey Fortran 8.1
8919 whole_archive_flag_spec=
8920 tmp_sharedflag='--shared' ;;
8921 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8922 tmp_sharedflag='-qmkshrobj'
8923 tmp_addflag= ;;
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
8941
8942 case $cc_basename in
8943 xlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 fi
8955 ;;
8956 esac
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 fi
8970 ;;
8971
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978 *** create shared libraries on Solaris systems. Therefore, libtool
8979 *** is disabling shared libraries support. We urge you to upgrade GNU
8980 *** binutils to release 2.9.1 or newer. Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8983
8984 _LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8998
8999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000 *** reliably create shared libraries on SCO systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9005
9006 _LT_EOF
9007 ;;
9008 *)
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9075 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'
9076 else
9077 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'
9078 fi
9079 aix_use_runtimelinking=no
9080
9081 # Test if we are trying to use run time linking or normal
9082 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083 # need to do runtime linking.
9084 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9085 for ld_flag in $LDFLAGS; do
9086 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087 aix_use_runtimelinking=yes
9088 break
9089 fi
9090 done
9091 ;;
9092 esac
9093
9094 exp_sym_flag='-bexport'
9095 no_entry_flag='-bnoentry'
9096 fi
9097
9098 # When large executables or shared objects are built, AIX ld can
9099 # have problems creating the table of contents. If linking a library
9100 # or program results in "error TOC overflow" add -mminimal-toc to
9101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104 archive_cmds=''
9105 hardcode_direct=yes
9106 hardcode_direct_absolute=yes
9107 hardcode_libdir_separator=':'
9108 link_all_deplibs=yes
9109 file_list_spec='${wl}-f,'
9110
9111 if test "$GCC" = yes; then
9112 case $host_os in aix4.[012]|aix4.[012].*)
9113 # We only want to do this on AIX 4.2 and lower, the check
9114 # below for broken collect2 doesn't work under 4.3+
9115 collect2name=`${CC} -print-prog-name=collect2`
9116 if test -f "$collect2name" &&
9117 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9118 then
9119 # We have reworked collect2
9120 :
9121 else
9122 # We have old collect2
9123 hardcode_direct=unsupported
9124 # It fails to find uninstalled libraries when the uninstalled
9125 # path is not listed in the libpath. Setting hardcode_minus_L
9126 # to unsupported forces relinking
9127 hardcode_minus_L=yes
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_libdir_separator=
9130 fi
9131 ;;
9132 esac
9133 shared_flag='-shared'
9134 if test "$aix_use_runtimelinking" = yes; then
9135 shared_flag="$shared_flag "'${wl}-G'
9136 fi
9137 else
9138 # not using gcc
9139 if test "$host_cpu" = ia64; then
9140 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9141 # chokes on -Wl,-G. The following line is correct:
9142 shared_flag='-G'
9143 else
9144 if test "$aix_use_runtimelinking" = yes; then
9145 shared_flag='${wl}-G'
9146 else
9147 shared_flag='${wl}-bM:SRE'
9148 fi
9149 fi
9150 fi
9151
9152 export_dynamic_flag_spec='${wl}-bexpall'
9153 # It seems that -bexpall does not export symbols beginning with
9154 # underscore (_), so it is better to generate a list of symbols to export.
9155 always_export_symbols=yes
9156 if test "$aix_use_runtimelinking" = yes; then
9157 # Warning - without using the other runtime loading flags (-brtl),
9158 # -berok will link without error, but may produce a broken library.
9159 allow_undefined_flag='-berok'
9160 # Determine the default libpath from the value encoded in an
9161 # empty executable.
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168
9169 int
9170 main ()
9171 {
9172
9173 ;
9174 return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199
9200 lt_aix_libpath_sed='
9201 /Import File Strings/,/^$/ {
9202 /^0/ {
9203 s/^0 *\(.*\)$/\1/
9204 p
9205 }
9206 }'
9207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9208 # Check for a 64-bit object if we didn't find anything.
9209 if test -z "$aix_libpath"; then
9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9211 fi
9212 else
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 fi
9217 rm -f conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9220
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 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"
9223 else
9224 if test "$host_cpu" = ia64; then
9225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226 allow_undefined_flag="-z nodefs"
9227 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"
9228 else
9229 # Determine the default libpath from the value encoded in an
9230 # empty executable.
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237
9238 int
9239 main ()
9240 {
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest.$ac_objext conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } &&
9255 { ac_try='test -z "$ac_c_werror_flag"
9256 || test ! -s conftest.err'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest$ac_exeext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 (eval $ac_try) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268
9269 lt_aix_libpath_sed='
9270 /Import File Strings/,/^$/ {
9271 /^0/ {
9272 s/^0 *\(.*\)$/\1/
9273 p
9274 }
9275 }'
9276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9277 # Check for a 64-bit object if we didn't find anything.
9278 if test -z "$aix_libpath"; then
9279 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9280 fi
9281 else
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 fi
9286 rm -f conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9289
9290 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9291 # Warning - without using the other run time loading flags,
9292 # -berok will link without error, but may produce a broken library.
9293 no_undefined_flag=' ${wl}-bernotok'
9294 allow_undefined_flag=' ${wl}-berok'
9295 # Exported symbols can be pulled into shared objects from archives
9296 whole_archive_flag_spec='$convenience'
9297 archive_cmds_need_lc=yes
9298 # This is similar to how AIX traditionally builds its shared libraries.
9299 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'
9300 fi
9301 fi
9302 ;;
9303
9304 amigaos*)
9305 case $host_cpu in
9306 powerpc)
9307 # see comment about AmigaOS4 .so support
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds=''
9310 ;;
9311 m68k)
9312 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)'
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 ;;
9316 esac
9317 ;;
9318
9319 bsdi[45]*)
9320 export_dynamic_flag_spec=-rdynamic
9321 ;;
9322
9323 cygwin* | mingw* | pw32* | cegcc*)
9324 # When not using gcc, we currently assume that we are using
9325 # Microsoft Visual C++.
9326 # hardcode_libdir_flag_spec is actually meaningless, as there is
9327 # no search path for DLLs.
9328 hardcode_libdir_flag_spec=' '
9329 allow_undefined_flag=unsupported
9330 # Tell ltmain to make .lib files, not .a files.
9331 libext=lib
9332 # Tell ltmain to make .dll files, not .so files.
9333 shrext_cmds=".dll"
9334 # FIXME: Setting linknames here is a bad hack.
9335 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9336 # The linker will automatically build a .lib file if we build a DLL.
9337 old_archive_from_new_cmds='true'
9338 # FIXME: Should let the user specify the lib program.
9339 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9340 fix_srcfile_path='`cygpath -w "$srcfile"`'
9341 enable_shared_with_static_runtimes=yes
9342 ;;
9343
9344 darwin* | rhapsody*)
9345
9346
9347 archive_cmds_need_lc=no
9348 hardcode_direct=no
9349 hardcode_automatic=yes
9350 hardcode_shlibpath_var=unsupported
9351 whole_archive_flag_spec=''
9352 link_all_deplibs=yes
9353 allow_undefined_flag="$_lt_dar_allow_undefined"
9354 case $cc_basename in
9355 ifort*) _lt_dar_can_shared=yes ;;
9356 *) _lt_dar_can_shared=$GCC ;;
9357 esac
9358 if test "$_lt_dar_can_shared" = "yes"; then
9359 output_verbose_link_cmd=echo
9360 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9361 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9362 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}"
9363 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}"
9364
9365 else
9366 ld_shlibs=no
9367 fi
9368
9369 ;;
9370
9371 dgux*)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_libdir_flag_spec='-L$libdir'
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 freebsd1*)
9378 ld_shlibs=no
9379 ;;
9380
9381 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9382 # support. Future versions do this automatically, but an explicit c++rt0.o
9383 # does not break anything, and helps significantly (at the cost of a little
9384 # extra space).
9385 freebsd2.2*)
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9393 freebsd2*)
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9395 hardcode_direct=yes
9396 hardcode_minus_L=yes
9397 hardcode_shlibpath_var=no
9398 ;;
9399
9400 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9401 freebsd* | dragonfly*)
9402 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_direct=yes
9405 hardcode_shlibpath_var=no
9406 ;;
9407
9408 hpux9*)
9409 if test "$GCC" = yes; then
9410 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'
9411 else
9412 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'
9413 fi
9414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415 hardcode_libdir_separator=:
9416 hardcode_direct=yes
9417
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9421 export_dynamic_flag_spec='${wl}-E'
9422 ;;
9423
9424 hpux10*)
9425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9426 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427 else
9428 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9429 fi
9430 if test "$with_gnu_ld" = no; then
9431 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432 hardcode_libdir_flag_spec_ld='+b $libdir'
9433 hardcode_libdir_separator=:
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 export_dynamic_flag_spec='${wl}-E'
9437 # hardcode_minus_L: Not really in the search PATH,
9438 # but as the default location of the library.
9439 hardcode_minus_L=yes
9440 fi
9441 ;;
9442
9443 hpux11*)
9444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9445 case $host_cpu in
9446 hppa*64*)
9447 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 ;;
9449 ia64*)
9450 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9451 ;;
9452 *)
9453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454 ;;
9455 esac
9456 else
9457 case $host_cpu in
9458 hppa*64*)
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 ;;
9461 ia64*)
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9463 ;;
9464 *)
9465 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9466 ;;
9467 esac
9468 fi
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9472
9473 case $host_cpu in
9474 hppa*64*|ia64*)
9475 hardcode_direct=no
9476 hardcode_shlibpath_var=no
9477 ;;
9478 *)
9479 hardcode_direct=yes
9480 hardcode_direct_absolute=yes
9481 export_dynamic_flag_spec='${wl}-E'
9482
9483 # hardcode_minus_L: Not really in the search PATH,
9484 # but as the default location of the library.
9485 hardcode_minus_L=yes
9486 ;;
9487 esac
9488 fi
9489 ;;
9490
9491 irix5* | irix6* | nonstopux*)
9492 if test "$GCC" = yes; then
9493 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'
9494 # Try to use the -exported_symbol ld option, if it does not
9495 # work, assume that -exports_file does not work either and
9496 # implicitly export all symbols.
9497 save_LDFLAGS="$LDFLAGS"
9498 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9499 cat >conftest.$ac_ext <<_ACEOF
9500 int foo(void) {}
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag"
9512 || test ! -s conftest.err'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514 (eval $ac_try) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; } &&
9518 { ac_try='test -s conftest$ac_exeext'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5
9521 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 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'
9525
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 fi
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LDFLAGS="$save_LDFLAGS"
9534 else
9535 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'
9536 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'
9537 fi
9538 archive_cmds_need_lc='no'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9540 hardcode_libdir_separator=:
9541 inherit_rpath=yes
9542 link_all_deplibs=yes
9543 ;;
9544
9545 netbsd*)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9548 else
9549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 newsos6)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_direct=yes
9559 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9560 hardcode_libdir_separator=:
9561 hardcode_shlibpath_var=no
9562 ;;
9563
9564 *nto* | *qnx*)
9565 ;;
9566
9567 openbsd*)
9568 if test -f /usr/libexec/ld.so; then
9569 hardcode_direct=yes
9570 hardcode_shlibpath_var=no
9571 hardcode_direct_absolute=yes
9572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9576 export_dynamic_flag_spec='${wl}-E'
9577 else
9578 case $host_os in
9579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_libdir_flag_spec='-R$libdir'
9582 ;;
9583 *)
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 ;;
9587 esac
9588 fi
9589 else
9590 ld_shlibs=no
9591 fi
9592 ;;
9593
9594 os2*)
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_minus_L=yes
9597 allow_undefined_flag=unsupported
9598 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'
9599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9600 ;;
9601
9602 osf3*)
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 else
9607 allow_undefined_flag=' -expect_unresolved \*'
9608 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'
9609 fi
9610 archive_cmds_need_lc='no'
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 hardcode_libdir_separator=:
9613 ;;
9614
9615 osf4* | osf5*) # as osf3* with the addition of -msym flag
9616 if test "$GCC" = yes; then
9617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618 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'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 else
9621 allow_undefined_flag=' -expect_unresolved \*'
9622 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'
9623 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~
9624 $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'
9625
9626 # Both c and cxx compiler support -rpath directly
9627 hardcode_libdir_flag_spec='-rpath $libdir'
9628 fi
9629 archive_cmds_need_lc='no'
9630 hardcode_libdir_separator=:
9631 ;;
9632
9633 solaris*)
9634 no_undefined_flag=' -z defs'
9635 if test "$GCC" = yes; then
9636 wlarc='${wl}'
9637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9640 else
9641 case `$CC -V 2>&1` in
9642 *"Compilers 5.0"*)
9643 wlarc=''
9644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9647 ;;
9648 *)
9649 wlarc='${wl}'
9650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9653 ;;
9654 esac
9655 fi
9656 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9658 case $host_os in
9659 solaris2.[0-5] | solaris2.[0-5].*) ;;
9660 *)
9661 # The compiler driver will combine and reorder linker options,
9662 # but understands `-z linker_flag'. GCC discards it without `$wl',
9663 # but is careful enough not to reorder.
9664 # Supported since Solaris 2.6 (maybe 2.5.1?)
9665 if test "$GCC" = yes; then
9666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9667 else
9668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9669 fi
9670 ;;
9671 esac
9672 link_all_deplibs=yes
9673 ;;
9674
9675 sunos4*)
9676 if test "x$host_vendor" = xsequent; then
9677 # Use $CC to link under sequent, because it throws in some extra .o
9678 # files that make .init and .fini sections work.
9679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9682 fi
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_direct=yes
9685 hardcode_minus_L=yes
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4)
9690 case $host_vendor in
9691 sni)
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=yes # is this really true???
9694 ;;
9695 siemens)
9696 ## LD is ld it makes a PLAMLIB
9697 ## CC just makes a GrossModule.
9698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9699 reload_cmds='$CC -r -o $output$reload_objs'
9700 hardcode_direct=no
9701 ;;
9702 motorola)
9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9705 ;;
9706 esac
9707 runpath_var='LD_RUN_PATH'
9708 hardcode_shlibpath_var=no
9709 ;;
9710
9711 sysv4.3*)
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_shlibpath_var=no
9714 export_dynamic_flag_spec='-Bexport'
9715 ;;
9716
9717 sysv4*MP*)
9718 if test -d /usr/nec; then
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 runpath_var=LD_RUN_PATH
9722 hardcode_runpath_var=yes
9723 ld_shlibs=yes
9724 fi
9725 ;;
9726
9727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9728 no_undefined_flag='${wl}-z,text'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 runpath_var='LD_RUN_PATH'
9732
9733 if test "$GCC" = yes; then
9734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 fi
9740 ;;
9741
9742 sysv5* | sco3.2v5* | sco5v6*)
9743 # Note: We can NOT use -z defs as we might desire, because we do not
9744 # link with -lc, and that would cause any symbols used from libc to
9745 # always be unresolved, which means just about no library would
9746 # ever link correctly. If we're not using GNU ld we use -z text
9747 # though, which does catch some bad symbols but isn't as heavy-handed
9748 # as -z defs.
9749 no_undefined_flag='${wl}-z,text'
9750 allow_undefined_flag='${wl}-z,nodefs'
9751 archive_cmds_need_lc=no
9752 hardcode_shlibpath_var=no
9753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9754 hardcode_libdir_separator=':'
9755 link_all_deplibs=yes
9756 export_dynamic_flag_spec='${wl}-Bexport'
9757 runpath_var='LD_RUN_PATH'
9758
9759 if test "$GCC" = yes; then
9760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 fi
9766 ;;
9767
9768 uts4*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 *)
9775 ld_shlibs=no
9776 ;;
9777 esac
9778
9779 if test x$host_vendor = xsni; then
9780 case $host in
9781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9782 export_dynamic_flag_spec='${wl}-Blargedynsym'
9783 ;;
9784 esac
9785 fi
9786 fi
9787
9788 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9789 echo "${ECHO_T}$ld_shlibs" >&6
9790 test "$ld_shlibs" = no && can_build_shared=no
9791
9792 with_gnu_ld=$with_gnu_ld
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808 #
9809 # Do we need to explicitly link libc?
9810 #
9811 case "x$archive_cmds_need_lc" in
9812 x|xyes)
9813 # Assume -lc should be added
9814 archive_cmds_need_lc=yes
9815
9816 if test "$enable_shared" = yes && test "$GCC" = yes; then
9817 case $archive_cmds in
9818 *'~'*)
9819 # FIXME: we may have to deal with multi-command sequences.
9820 ;;
9821 '$CC '*)
9822 # Test whether the compiler implicitly links with -lc since on some
9823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9824 # to ld, don't add -lc before -lgcc.
9825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9827 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 $RM conftest*
9831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834 (eval $ac_compile) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } 2>conftest.err; then
9838 soname=conftest
9839 lib=conftest
9840 libobjs=conftest.$ac_objext
9841 deplibs=
9842 wl=$lt_prog_compiler_wl
9843 pic_flag=$lt_prog_compiler_pic
9844 compiler_flags=-v
9845 linker_flags=-v
9846 verstring=
9847 output_objdir=.
9848 libname=conftest
9849 lt_save_allow_undefined_flag=$allow_undefined_flag
9850 allow_undefined_flag=
9851 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9852 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }
9856 then
9857 lt_cv_archive_cmds_need_lc=no
9858 else
9859 lt_cv_archive_cmds_need_lc=yes
9860 fi
9861 allow_undefined_flag=$lt_save_allow_undefined_flag
9862 else
9863 cat conftest.err 1>&5
9864 fi
9865 $RM conftest*
9866
9867 fi
9868 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9869 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9870 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9871 ;;
9872 esac
9873 fi
9874 ;;
9875 esac
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
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10035
10036 if test "$GCC" = yes; then
10037 case $host_os in
10038 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10039 *) lt_awk_arg="/^libraries:/" ;;
10040 esac
10041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10042 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10043 # if the path contains ";" then we assume it to be the separator
10044 # otherwise default to the standard path separator (i.e. ":") - it is
10045 # assumed that no part of a normal pathname contains ";" but that should
10046 # okay in the real world where ";" in dirpaths is itself problematic.
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10048 else
10049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10050 fi
10051 # Ok, now we have the path, separated by spaces, we can step through it
10052 # and add multilib dir if necessary.
10053 lt_tmp_lt_search_path_spec=
10054 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10055 for lt_sys_path in $lt_search_path_spec; do
10056 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10058 else
10059 test -d "$lt_sys_path" && \
10060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10061 fi
10062 done
10063 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10064 BEGIN {RS=" "; FS="/|\n";} {
10065 lt_foo="";
10066 lt_count=0;
10067 for (lt_i = NF; lt_i > 0; lt_i--) {
10068 if ($lt_i != "" && $lt_i != ".") {
10069 if ($lt_i == "..") {
10070 lt_count++;
10071 } else {
10072 if (lt_count == 0) {
10073 lt_foo="/" $lt_i lt_foo;
10074 } else {
10075 lt_count--;
10076 }
10077 }
10078 }
10079 }
10080 if (lt_foo != "") { lt_freq[lt_foo]++; }
10081 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10082 }'`
10083 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10084 else
10085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10086 fi
10087 library_names_spec=
10088 libname_spec='lib$name'
10089 soname_spec=
10090 shrext_cmds=".so"
10091 postinstall_cmds=
10092 postuninstall_cmds=
10093 finish_cmds=
10094 finish_eval=
10095 shlibpath_var=
10096 shlibpath_overrides_runpath=unknown
10097 version_type=none
10098 dynamic_linker="$host_os ld.so"
10099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10100 need_lib_prefix=unknown
10101 hardcode_into_libs=no
10102
10103 # when you set need_version to no, make sure it does not cause -set_version
10104 # flags to be left without arguments
10105 need_version=unknown
10106
10107 case $host_os in
10108 aix3*)
10109 version_type=linux
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10111 shlibpath_var=LIBPATH
10112
10113 # AIX 3 has no versioning support, so we append a major version to the name.
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 ;;
10116
10117 aix[4-9]*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 hardcode_into_libs=yes
10122 if test "$host_cpu" = ia64; then
10123 # AIX 5 supports IA64
10124 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 else
10127 # With GCC up to 2.95.x, collect2 would create an import file
10128 # for dependence libraries. The import file would start with
10129 # the line `#! .'. This would cause the generated library to
10130 # depend on `.', always an invalid library. This was fixed in
10131 # development snapshots of GCC prior to 3.0.
10132 case $host_os in
10133 aix4 | aix4.[01] | aix4.[01].*)
10134 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10135 echo ' yes '
10136 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10137 :
10138 else
10139 can_build_shared=no
10140 fi
10141 ;;
10142 esac
10143 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10144 # soname into executable. Probably we can add versioning support to
10145 # collect2, so additional links can be useful in future.
10146 if test "$aix_use_runtimelinking" = yes; then
10147 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10148 # instead of lib<name>.a to let people know that these are not
10149 # typical AIX shared libraries.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 else
10152 # We preserve .a as extension for shared libraries through AIX4.2
10153 # and later when we are not doing run time linking.
10154 library_names_spec='${libname}${release}.a $libname.a'
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 fi
10157 shlibpath_var=LIBPATH
10158 fi
10159 ;;
10160
10161 amigaos*)
10162 case $host_cpu in
10163 powerpc)
10164 # Since July 2007 AmigaOS4 officially supports .so libraries.
10165 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 ;;
10168 m68k)
10169 library_names_spec='$libname.ixlibrary $libname.a'
10170 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10171 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'
10172 ;;
10173 esac
10174 ;;
10175
10176 beos*)
10177 library_names_spec='${libname}${shared_ext}'
10178 dynamic_linker="$host_os ld.so"
10179 shlibpath_var=LIBRARY_PATH
10180 ;;
10181
10182 bsdi[45]*)
10183 version_type=linux
10184 need_version=no
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10188 shlibpath_var=LD_LIBRARY_PATH
10189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10191 # the default ld.so.conf also contains /usr/contrib/lib and
10192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10193 # libtool to hard-code these into programs
10194 ;;
10195
10196 cygwin* | mingw* | pw32* | cegcc*)
10197 version_type=windows
10198 shrext_cmds=".dll"
10199 need_version=no
10200 need_lib_prefix=no
10201
10202 case $GCC,$host_os in
10203 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10204 library_names_spec='$libname.dll.a'
10205 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10206 postinstall_cmds='base_file=`basename \${file}`~
10207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10208 dldir=$destdir/`dirname \$dlpath`~
10209 test -d \$dldir || mkdir -p \$dldir~
10210 $install_prog $dir/$dlname \$dldir/$dlname~
10211 chmod a+x \$dldir/$dlname~
10212 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10213 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10214 fi'
10215 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216 dlpath=$dir/\$dldll~
10217 $RM \$dlpath'
10218 shlibpath_overrides_runpath=yes
10219
10220 case $host_os in
10221 cygwin*)
10222 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10225 ;;
10226 mingw* | cegcc*)
10227 # MinGW DLLs use traditional 'lib' prefix
10228 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10230 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10231 # It is most probably a Windows format PATH printed by
10232 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10233 # path with ; separators, and with drive letters. We can handle the
10234 # drive letters (cygwin fileutils understands them), so leave them,
10235 # especially as we might pass files found there to a mingw objdump,
10236 # which wouldn't understand a cygwinified path. Ahh.
10237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10238 else
10239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10240 fi
10241 ;;
10242 pw32*)
10243 # pw32 DLLs use 'pw' prefix rather than 'lib'
10244 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245 ;;
10246 esac
10247 ;;
10248
10249 *)
10250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10251 ;;
10252 esac
10253 dynamic_linker='Win32 ld.exe'
10254 # FIXME: first we should search . and the directory the executable is in
10255 shlibpath_var=PATH
10256 ;;
10257
10258 darwin* | rhapsody*)
10259 dynamic_linker="$host_os dyld"
10260 version_type=darwin
10261 need_lib_prefix=no
10262 need_version=no
10263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10264 soname_spec='${libname}${release}${major}$shared_ext'
10265 shlibpath_overrides_runpath=yes
10266 shlibpath_var=DYLD_LIBRARY_PATH
10267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10268
10269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271 ;;
10272
10273 dgux*)
10274 version_type=linux
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 ;;
10281
10282 freebsd1*)
10283 dynamic_linker=no
10284 ;;
10285
10286 freebsd* | dragonfly*)
10287 # DragonFly does not have aout. When/if they implement a new
10288 # versioning mechanism, adjust this.
10289 if test -x /usr/bin/objformat; then
10290 objformat=`/usr/bin/objformat`
10291 else
10292 case $host_os in
10293 freebsd[123]*) objformat=aout ;;
10294 *) objformat=elf ;;
10295 esac
10296 fi
10297 version_type=freebsd-$objformat
10298 case $version_type in
10299 freebsd-elf*)
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 need_version=no
10302 need_lib_prefix=no
10303 ;;
10304 freebsd-*)
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10306 need_version=yes
10307 ;;
10308 esac
10309 shlibpath_var=LD_LIBRARY_PATH
10310 case $host_os in
10311 freebsd2*)
10312 shlibpath_overrides_runpath=yes
10313 ;;
10314 freebsd3.[01]* | freebsdelf3.[01]*)
10315 shlibpath_overrides_runpath=yes
10316 hardcode_into_libs=yes
10317 ;;
10318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10320 shlibpath_overrides_runpath=no
10321 hardcode_into_libs=yes
10322 ;;
10323 *) # from 4.6 on, and DragonFly
10324 shlibpath_overrides_runpath=yes
10325 hardcode_into_libs=yes
10326 ;;
10327 esac
10328 ;;
10329
10330 gnu*)
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 hardcode_into_libs=yes
10338 ;;
10339
10340 hpux9* | hpux10* | hpux11*)
10341 # Give a soname corresponding to the major version so that dld.sl refuses to
10342 # link against other versions.
10343 version_type=sunos
10344 need_lib_prefix=no
10345 need_version=no
10346 case $host_cpu in
10347 ia64*)
10348 shrext_cmds='.so'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.so"
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 if test "X$HPUX_IA64_MODE" = X32; then
10356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10357 else
10358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10359 fi
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 ;;
10362 hppa*64*)
10363 shrext_cmds='.sl'
10364 hardcode_into_libs=yes
10365 dynamic_linker="$host_os dld.sl"
10366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10372 ;;
10373 *)
10374 shrext_cmds='.sl'
10375 dynamic_linker="$host_os dld.sl"
10376 shlibpath_var=SHLIB_PATH
10377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 ;;
10381 esac
10382 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10383 postinstall_cmds='chmod 555 $lib'
10384 ;;
10385
10386 interix[3-9]*)
10387 version_type=linux
10388 need_lib_prefix=no
10389 need_version=no
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=no
10395 hardcode_into_libs=yes
10396 ;;
10397
10398 irix5* | irix6* | nonstopux*)
10399 case $host_os in
10400 nonstopux*) version_type=nonstopux ;;
10401 *)
10402 if test "$lt_cv_prog_gnu_ld" = yes; then
10403 version_type=linux
10404 else
10405 version_type=irix
10406 fi ;;
10407 esac
10408 need_lib_prefix=no
10409 need_version=no
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10412 case $host_os in
10413 irix5* | nonstopux*)
10414 libsuff= shlibsuff=
10415 ;;
10416 *)
10417 case $LD in # libtool.m4 will add one of these switches to LD
10418 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10419 libsuff= shlibsuff= libmagic=32-bit;;
10420 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10421 libsuff=32 shlibsuff=N32 libmagic=N32;;
10422 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10423 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10424 *) libsuff= shlibsuff= libmagic=never-match;;
10425 esac
10426 ;;
10427 esac
10428 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10429 shlibpath_overrides_runpath=no
10430 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10431 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10432 hardcode_into_libs=yes
10433 ;;
10434
10435 # No shared lib support for Linux oldld, aout, or coff.
10436 linux*oldld* | linux*aout* | linux*coff*)
10437 dynamic_linker=no
10438 ;;
10439
10440 # This must be Linux ELF.
10441 linux* | k*bsd*-gnu)
10442 version_type=linux
10443 need_lib_prefix=no
10444 need_version=no
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450
10451 # Some binutils ld are patched to set DT_RUNPATH
10452 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 lt_cv_shlibpath_overrides_runpath=no
10456 save_LDFLAGS=$LDFLAGS
10457 save_libdir=$libdir
10458 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10459 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466
10467 int
10468 main ()
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10478 ac_status=$?
10479 grep -v '^ *+' conftest.er1 >conftest.err
10480 rm -f conftest.er1
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag"
10485 || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10498 lt_cv_shlibpath_overrides_runpath=yes
10499 fi
10500
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10504
10505 fi
10506 rm -f conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LDFLAGS=$save_LDFLAGS
10509 libdir=$save_libdir
10510
10511 fi
10512
10513 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10514
10515 # This implies no fast_install, which is unacceptable.
10516 # Some rework will be needed to allow for fast_install
10517 # before this can be enabled.
10518 hardcode_into_libs=yes
10519
10520 # Append ld.so.conf contents to the search path
10521 if test -f /etc/ld.so.conf; then
10522 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' ' '`
10523 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10524 fi
10525
10526 # We used to test for /lib/ld.so.1 and disable shared libraries on
10527 # powerpc, because MkLinux only supported shared libraries with the
10528 # GNU dynamic linker. Since this was broken with cross compilers,
10529 # most powerpc-linux boxes support dynamic linking these days and
10530 # people can always --disable-shared, the test was removed, and we
10531 # assume the GNU/Linux dynamic linker is in use.
10532 dynamic_linker='GNU/Linux ld.so'
10533 ;;
10534
10535 netbsd*)
10536 version_type=sunos
10537 need_lib_prefix=no
10538 need_version=no
10539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 dynamic_linker='NetBSD (a.out) ld.so'
10543 else
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 dynamic_linker='NetBSD ld.elf_so'
10547 fi
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10551 ;;
10552
10553 newsos6)
10554 version_type=linux
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=yes
10558 ;;
10559
10560 *nto* | *qnx*)
10561 version_type=qnx
10562 need_lib_prefix=no
10563 need_version=no
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=no
10568 hardcode_into_libs=yes
10569 dynamic_linker='ldqnx.so'
10570 ;;
10571
10572 openbsd*)
10573 version_type=sunos
10574 sys_lib_dlsearch_path_spec="/usr/lib"
10575 need_lib_prefix=no
10576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10577 case $host_os in
10578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10579 *) need_version=no ;;
10580 esac
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 case $host_os in
10586 openbsd2.[89] | openbsd2.[89].*)
10587 shlibpath_overrides_runpath=no
10588 ;;
10589 *)
10590 shlibpath_overrides_runpath=yes
10591 ;;
10592 esac
10593 else
10594 shlibpath_overrides_runpath=yes
10595 fi
10596 ;;
10597
10598 os2*)
10599 libname_spec='$name'
10600 shrext_cmds=".dll"
10601 need_lib_prefix=no
10602 library_names_spec='$libname${shared_ext} $libname.a'
10603 dynamic_linker='OS/2 ld.exe'
10604 shlibpath_var=LIBPATH
10605 ;;
10606
10607 osf3* | osf4* | osf5*)
10608 version_type=osf
10609 need_lib_prefix=no
10610 need_version=no
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10615 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10616 ;;
10617
10618 rdos*)
10619 dynamic_linker=no
10620 ;;
10621
10622 solaris*)
10623 version_type=linux
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 # ldd complains unless libraries are executable
10632 postinstall_cmds='chmod +x $lib'
10633 ;;
10634
10635 sunos4*)
10636 version_type=sunos
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 if test "$with_gnu_ld" = yes; then
10642 need_lib_prefix=no
10643 fi
10644 need_version=yes
10645 ;;
10646
10647 sysv4 | sysv4.3*)
10648 version_type=linux
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 case $host_vendor in
10653 sni)
10654 shlibpath_overrides_runpath=no
10655 need_lib_prefix=no
10656 runpath_var=LD_RUN_PATH
10657 ;;
10658 siemens)
10659 need_lib_prefix=no
10660 ;;
10661 motorola)
10662 need_lib_prefix=no
10663 need_version=no
10664 shlibpath_overrides_runpath=no
10665 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10666 ;;
10667 esac
10668 ;;
10669
10670 sysv4*MP*)
10671 if test -d /usr/nec ;then
10672 version_type=linux
10673 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10674 soname_spec='$libname${shared_ext}.$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 fi
10677 ;;
10678
10679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10680 version_type=freebsd-elf
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 hardcode_into_libs=yes
10688 if test "$with_gnu_ld" = yes; then
10689 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10690 else
10691 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10692 case $host_os in
10693 sco3.2v5*)
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10695 ;;
10696 esac
10697 fi
10698 sys_lib_dlsearch_path_spec='/usr/lib'
10699 ;;
10700
10701 tpf*)
10702 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=no
10709 hardcode_into_libs=yes
10710 ;;
10711
10712 uts4*)
10713 version_type=linux
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 ;;
10718
10719 *)
10720 dynamic_linker=no
10721 ;;
10722 esac
10723 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10724 echo "${ECHO_T}$dynamic_linker" >&6
10725 test "$dynamic_linker" = no && can_build_shared=no
10726
10727 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10728 if test "$GCC" = yes; then
10729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10730 fi
10731
10732 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10733 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10734 fi
10735 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10736 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10737 fi
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
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10826 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10827 hardcode_action=
10828 if test -n "$hardcode_libdir_flag_spec" ||
10829 test -n "$runpath_var" ||
10830 test "X$hardcode_automatic" = "Xyes" ; then
10831
10832 # We can hardcode non-existent directories.
10833 if test "$hardcode_direct" != no &&
10834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10835 # have to relink, otherwise we might link with an installed library
10836 # when we should be linking with a yet-to-be-installed one
10837 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10838 test "$hardcode_minus_L" != no; then
10839 # Linking always hardcodes the temporary library directory.
10840 hardcode_action=relink
10841 else
10842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10843 hardcode_action=immediate
10844 fi
10845 else
10846 # We cannot hardcode anything, or else we can only hardcode existing
10847 # directories.
10848 hardcode_action=unsupported
10849 fi
10850 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10851 echo "${ECHO_T}$hardcode_action" >&6
10852
10853 if test "$hardcode_action" = relink ||
10854 test "$inherit_rpath" = yes; then
10855 # Fast installation is not supported
10856 enable_fast_install=no
10857 elif test "$shlibpath_overrides_runpath" = yes ||
10858 test "$enable_shared" = no; then
10859 # Fast installation is not necessary
10860 enable_fast_install=needless
10861 fi
10862
10863
10864
10865
10866
10867
10868 if test "x$enable_dlopen" != xyes; then
10869 enable_dlopen=unknown
10870 enable_dlopen_self=unknown
10871 enable_dlopen_self_static=unknown
10872 else
10873 lt_cv_dlopen=no
10874 lt_cv_dlopen_libs=
10875
10876 case $host_os in
10877 beos*)
10878 lt_cv_dlopen="load_add_on"
10879 lt_cv_dlopen_libs=
10880 lt_cv_dlopen_self=yes
10881 ;;
10882
10883 mingw* | pw32* | cegcc*)
10884 lt_cv_dlopen="LoadLibrary"
10885 lt_cv_dlopen_libs=
10886 ;;
10887
10888 cygwin*)
10889 lt_cv_dlopen="dlopen"
10890 lt_cv_dlopen_libs=
10891 ;;
10892
10893 darwin*)
10894 # if libdl is installed we need to link against it
10895 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10896 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10897 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 ac_check_lib_save_LIBS=$LIBS
10901 LIBS="-ldl $LIBS"
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908
10909 /* Override any gcc2 internal prototype to avoid an error. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 /* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10915 char dlopen ();
10916 int
10917 main ()
10918 {
10919 dlopen ();
10920 ;
10921 return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10926 (eval $ac_link) 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag"
10934 || test ! -s conftest.err'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest$ac_exeext'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_lib_dl_dlopen=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_lib_dl_dlopen=no
10952 fi
10953 rm -f conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10956 fi
10957 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10959 if test $ac_cv_lib_dl_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10961 else
10962
10963 lt_cv_dlopen="dyld"
10964 lt_cv_dlopen_libs=
10965 lt_cv_dlopen_self=yes
10966
10967 fi
10968
10969 ;;
10970
10971 *)
10972 echo "$as_me:$LINENO: checking for shl_load" >&5
10973 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10974 if test "${ac_cv_func_shl_load+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10985 #define shl_load innocuous_shl_load
10986
10987 /* System header to define __stub macros and hopefully few prototypes,
10988 which can conflict with char shl_load (); below.
10989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10990 <limits.h> exists even on freestanding compilers. */
10991
10992 #ifdef __STDC__
10993 # include <limits.h>
10994 #else
10995 # include <assert.h>
10996 #endif
10997
10998 #undef shl_load
10999
11000 /* Override any gcc2 internal prototype to avoid an error. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 {
11004 #endif
11005 /* We use char because int might match the return type of a gcc2
11006 builtin and then its argument prototype would still apply. */
11007 char shl_load ();
11008 /* The GNU C library defines this for functions which it implements
11009 to always fail with ENOSYS. Some functions are actually named
11010 something starting with __ and the normal name is an alias. */
11011 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11012 choke me
11013 #else
11014 char (*f) () = shl_load;
11015 #endif
11016 #ifdef __cplusplus
11017 }
11018 #endif
11019
11020 int
11021 main ()
11022 {
11023 return f != shl_load;
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 rm -f conftest.$ac_objext conftest$ac_exeext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11030 (eval $ac_link) 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_func_shl_load=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_func_shl_load=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 fi
11060 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11061 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11062 if test $ac_cv_func_shl_load = yes; then
11063 lt_cv_dlopen="shl_load"
11064 else
11065 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11066 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11067 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 ac_check_lib_save_LIBS=$LIBS
11071 LIBS="-ldld $LIBS"
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078
11079 /* Override any gcc2 internal prototype to avoid an error. */
11080 #ifdef __cplusplus
11081 extern "C"
11082 #endif
11083 /* We use char because int might match the return type of a gcc2
11084 builtin and then its argument prototype would still apply. */
11085 char shl_load ();
11086 int
11087 main ()
11088 {
11089 shl_load ();
11090 ;
11091 return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext conftest$ac_exeext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest$ac_exeext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
11116 ac_cv_lib_dld_shl_load=yes
11117 else
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_lib_dld_shl_load=no
11122 fi
11123 rm -f conftest.err conftest.$ac_objext \
11124 conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11126 fi
11127 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11128 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11129 if test $ac_cv_lib_dld_shl_load = yes; then
11130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11131 else
11132 echo "$as_me:$LINENO: checking for dlopen" >&5
11133 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11134 if test "${ac_cv_func_dlopen+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11145 #define dlopen innocuous_dlopen
11146
11147 /* System header to define __stub macros and hopefully few prototypes,
11148 which can conflict with char dlopen (); below.
11149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11150 <limits.h> exists even on freestanding compilers. */
11151
11152 #ifdef __STDC__
11153 # include <limits.h>
11154 #else
11155 # include <assert.h>
11156 #endif
11157
11158 #undef dlopen
11159
11160 /* Override any gcc2 internal prototype to avoid an error. */
11161 #ifdef __cplusplus
11162 extern "C"
11163 {
11164 #endif
11165 /* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11167 char dlopen ();
11168 /* The GNU C library defines this for functions which it implements
11169 to always fail with ENOSYS. Some functions are actually named
11170 something starting with __ and the normal name is an alias. */
11171 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11172 choke me
11173 #else
11174 char (*f) () = dlopen;
11175 #endif
11176 #ifdef __cplusplus
11177 }
11178 #endif
11179
11180 int
11181 main ()
11182 {
11183 return f != dlopen;
11184 ;
11185 return 0;
11186 }
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try='test -z "$ac_c_werror_flag"
11198 || test ! -s conftest.err'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; } &&
11204 { ac_try='test -s conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_dlopen=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_cv_func_dlopen=no
11216 fi
11217 rm -f conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 fi
11220 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11221 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11222 if test $ac_cv_func_dlopen = yes; then
11223 lt_cv_dlopen="dlopen"
11224 else
11225 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldl $LIBS"
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238
11239 /* Override any gcc2 internal prototype to avoid an error. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11245 char dlopen ();
11246 int
11247 main ()
11248 {
11249 dlopen ();
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_cv_lib_dl_dlopen=yes
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 ac_cv_lib_dl_dlopen=no
11282 fi
11283 rm -f conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285 LIBS=$ac_check_lib_save_LIBS
11286 fi
11287 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11288 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11289 if test $ac_cv_lib_dl_dlopen = yes; then
11290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11291 else
11292 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11293 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11294 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-lsvld $LIBS"
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305
11306 /* Override any gcc2 internal prototype to avoid an error. */
11307 #ifdef __cplusplus
11308 extern "C"
11309 #endif
11310 /* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11312 char dlopen ();
11313 int
11314 main ()
11315 {
11316 dlopen ();
11317 ;
11318 return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11323 (eval $ac_link) 2>conftest.er1
11324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } &&
11330 { ac_try='test -z "$ac_c_werror_flag"
11331 || test ! -s conftest.err'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; } &&
11337 { ac_try='test -s conftest$ac_exeext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11340 ac_status=$?
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_lib_svld_dlopen=yes
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_lib_svld_dlopen=no
11349 fi
11350 rm -f conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11355 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11356 if test $ac_cv_lib_svld_dlopen = yes; then
11357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11358 else
11359 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11360 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11361 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldld $LIBS"
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h. */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372
11373 /* Override any gcc2 internal prototype to avoid an error. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 #endif
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379 char dld_link ();
11380 int
11381 main ()
11382 {
11383 dld_link ();
11384 ;
11385 return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11390 (eval $ac_link) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_lib_dld_dld_link=yes
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 ac_cv_lib_dld_dld_link=no
11416 fi
11417 rm -f conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419 LIBS=$ac_check_lib_save_LIBS
11420 fi
11421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11422 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11423 if test $ac_cv_lib_dld_dld_link = yes; then
11424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11425 fi
11426
11427
11428 fi
11429
11430
11431 fi
11432
11433
11434 fi
11435
11436
11437 fi
11438
11439
11440 fi
11441
11442 ;;
11443 esac
11444
11445 if test "x$lt_cv_dlopen" != xno; then
11446 enable_dlopen=yes
11447 else
11448 enable_dlopen=no
11449 fi
11450
11451 case $lt_cv_dlopen in
11452 dlopen)
11453 save_CPPFLAGS="$CPPFLAGS"
11454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11455
11456 save_LDFLAGS="$LDFLAGS"
11457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11458
11459 save_LIBS="$LIBS"
11460 LIBS="$lt_cv_dlopen_libs $LIBS"
11461
11462 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11463 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11464 if test "${lt_cv_dlopen_self+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467 if test "$cross_compiling" = yes; then :
11468 lt_cv_dlopen_self=cross
11469 else
11470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11471 lt_status=$lt_dlunknown
11472 cat > conftest.$ac_ext <<_LT_EOF
11473 #line 11473 "configure"
11474 #include "confdefs.h"
11475
11476 #if HAVE_DLFCN_H
11477 #include <dlfcn.h>
11478 #endif
11479
11480 #include <stdio.h>
11481
11482 #ifdef RTLD_GLOBAL
11483 # define LT_DLGLOBAL RTLD_GLOBAL
11484 #else
11485 # ifdef DL_GLOBAL
11486 # define LT_DLGLOBAL DL_GLOBAL
11487 # else
11488 # define LT_DLGLOBAL 0
11489 # endif
11490 #endif
11491
11492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11493 find out it does not work in some platform. */
11494 #ifndef LT_DLLAZY_OR_NOW
11495 # ifdef RTLD_LAZY
11496 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11497 # else
11498 # ifdef DL_LAZY
11499 # define LT_DLLAZY_OR_NOW DL_LAZY
11500 # else
11501 # ifdef RTLD_NOW
11502 # define LT_DLLAZY_OR_NOW RTLD_NOW
11503 # else
11504 # ifdef DL_NOW
11505 # define LT_DLLAZY_OR_NOW DL_NOW
11506 # else
11507 # define LT_DLLAZY_OR_NOW 0
11508 # endif
11509 # endif
11510 # endif
11511 # endif
11512 #endif
11513
11514 void fnord() { int i=42;}
11515 int main ()
11516 {
11517 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11518 int status = $lt_dlunknown;
11519
11520 if (self)
11521 {
11522 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11523 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11524 /* dlclose (self); */
11525 }
11526 else
11527 puts (dlerror ());
11528
11529 return status;
11530 }
11531 _LT_EOF
11532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11533 (eval $ac_link) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11537 (./conftest; exit; ) >&5 2>/dev/null
11538 lt_status=$?
11539 case x$lt_status in
11540 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11541 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11542 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11543 esac
11544 else :
11545 # compilation failed
11546 lt_cv_dlopen_self=no
11547 fi
11548 fi
11549 rm -fr conftest*
11550
11551
11552 fi
11553 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11554 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11555
11556 if test "x$lt_cv_dlopen_self" = xyes; then
11557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11558 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11559 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11560 if test "${lt_cv_dlopen_self_static+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563 if test "$cross_compiling" = yes; then :
11564 lt_cv_dlopen_self_static=cross
11565 else
11566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11567 lt_status=$lt_dlunknown
11568 cat > conftest.$ac_ext <<_LT_EOF
11569 #line 11569 "configure"
11570 #include "confdefs.h"
11571
11572 #if HAVE_DLFCN_H
11573 #include <dlfcn.h>
11574 #endif
11575
11576 #include <stdio.h>
11577
11578 #ifdef RTLD_GLOBAL
11579 # define LT_DLGLOBAL RTLD_GLOBAL
11580 #else
11581 # ifdef DL_GLOBAL
11582 # define LT_DLGLOBAL DL_GLOBAL
11583 # else
11584 # define LT_DLGLOBAL 0
11585 # endif
11586 #endif
11587
11588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11589 find out it does not work in some platform. */
11590 #ifndef LT_DLLAZY_OR_NOW
11591 # ifdef RTLD_LAZY
11592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11593 # else
11594 # ifdef DL_LAZY
11595 # define LT_DLLAZY_OR_NOW DL_LAZY
11596 # else
11597 # ifdef RTLD_NOW
11598 # define LT_DLLAZY_OR_NOW RTLD_NOW
11599 # else
11600 # ifdef DL_NOW
11601 # define LT_DLLAZY_OR_NOW DL_NOW
11602 # else
11603 # define LT_DLLAZY_OR_NOW 0
11604 # endif
11605 # endif
11606 # endif
11607 # endif
11608 #endif
11609
11610 void fnord() { int i=42;}
11611 int main ()
11612 {
11613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11614 int status = $lt_dlunknown;
11615
11616 if (self)
11617 {
11618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11619 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11620 /* dlclose (self); */
11621 }
11622 else
11623 puts (dlerror ());
11624
11625 return status;
11626 }
11627 _LT_EOF
11628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11629 (eval $ac_link) 2>&5
11630 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11633 (./conftest; exit; ) >&5 2>/dev/null
11634 lt_status=$?
11635 case x$lt_status in
11636 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11637 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11638 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11639 esac
11640 else :
11641 # compilation failed
11642 lt_cv_dlopen_self_static=no
11643 fi
11644 fi
11645 rm -fr conftest*
11646
11647
11648 fi
11649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11650 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11651 fi
11652
11653 CPPFLAGS="$save_CPPFLAGS"
11654 LDFLAGS="$save_LDFLAGS"
11655 LIBS="$save_LIBS"
11656 ;;
11657 esac
11658
11659 case $lt_cv_dlopen_self in
11660 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11661 *) enable_dlopen_self=unknown ;;
11662 esac
11663
11664 case $lt_cv_dlopen_self_static in
11665 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11666 *) enable_dlopen_self_static=unknown ;;
11667 esac
11668 fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686 striplib=
11687 old_striplib=
11688 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11689 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11690 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11691 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11692 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11693 echo "$as_me:$LINENO: result: yes" >&5
11694 echo "${ECHO_T}yes" >&6
11695 else
11696 # FIXME - insert some real tests, host_os isn't really good enough
11697 case $host_os in
11698 darwin*)
11699 if test -n "$STRIP" ; then
11700 striplib="$STRIP -x"
11701 old_striplib="$STRIP -S"
11702 echo "$as_me:$LINENO: result: yes" >&5
11703 echo "${ECHO_T}yes" >&6
11704 else
11705 echo "$as_me:$LINENO: result: no" >&5
11706 echo "${ECHO_T}no" >&6
11707 fi
11708 ;;
11709 *)
11710 echo "$as_me:$LINENO: result: no" >&5
11711 echo "${ECHO_T}no" >&6
11712 ;;
11713 esac
11714 fi
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 # Report which library types will actually be built
11728 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11729 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11730 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11731 echo "${ECHO_T}$can_build_shared" >&6
11732
11733 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11734 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11735 test "$can_build_shared" = "no" && enable_shared=no
11736
11737 # On AIX, shared libraries and static libraries use the same namespace, and
11738 # are all built from PIC.
11739 case $host_os in
11740 aix3*)
11741 test "$enable_shared" = yes && enable_static=no
11742 if test -n "$RANLIB"; then
11743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11744 postinstall_cmds='$RANLIB $lib'
11745 fi
11746 ;;
11747
11748 aix[4-9]*)
11749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11750 test "$enable_shared" = yes && enable_static=no
11751 fi
11752 ;;
11753 esac
11754 echo "$as_me:$LINENO: result: $enable_shared" >&5
11755 echo "${ECHO_T}$enable_shared" >&6
11756
11757 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11758 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11759 # Make sure either enable_shared or enable_static is yes.
11760 test "$enable_shared" = yes || enable_static=yes
11761 echo "$as_me:$LINENO: result: $enable_static" >&5
11762 echo "${ECHO_T}$enable_static" >&6
11763
11764
11765
11766
11767 fi
11768 ac_ext=c
11769 ac_cpp='$CPP $CPPFLAGS'
11770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11773
11774 CC="$lt_save_CC"
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 ac_config_commands="$ac_config_commands libtool"
11789
11790
11791
11792
11793 # Only expand once:
11794
11795
11796
11797 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
11798 if test "${enable_64_bit_bfd+set}" = set; then
11799 enableval="$enable_64_bit_bfd"
11800 case "${enableval}" in
11801 yes) want64=true ;;
11802 no) want64=false ;;
11803 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
11804 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
11805 { (exit 1); exit 1; }; } ;;
11806 esac
11807 else
11808 want64=false
11809 fi;
11810 # Check whether --enable-targets or --disable-targets was given.
11811 if test "${enable_targets+set}" = set; then
11812 enableval="$enable_targets"
11813 case "${enableval}" in
11814 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11815 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11816 { (exit 1); exit 1; }; }
11817 ;;
11818 no) enable_targets= ;;
11819 *) enable_targets=$enableval ;;
11820 esac
11821 fi;
11822 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
11823 if test "${enable_commonbfdlib+set}" = set; then
11824 enableval="$enable_commonbfdlib"
11825 case "${enableval}" in
11826 yes) commonbfdlib=true ;;
11827 no) commonbfdlib=false ;;
11828 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
11829 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
11830 { (exit 1); exit 1; }; } ;;
11831 esac
11832 fi;
11833
11834 # Check whether --with-mmap or --without-mmap was given.
11835 if test "${with_mmap+set}" = set; then
11836 withval="$with_mmap"
11837 case "${withval}" in
11838 yes) want_mmap=true ;;
11839 no) want_mmap=false ;;
11840 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
11841 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
11842 { (exit 1); exit 1; }; } ;;
11843 esac
11844 else
11845 want_mmap=false
11846 fi;
11847 # Check whether --enable-secureplt or --disable-secureplt was given.
11848 if test "${enable_secureplt+set}" = set; then
11849 enableval="$enable_secureplt"
11850 case "${enableval}" in
11851 yes) use_secureplt=true ;;
11852 no) use_secureplt=false ;;
11853 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
11854 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
11855 { (exit 1); exit 1; }; } ;;
11856 esac
11857 else
11858 use_secureplt=false
11859 fi; if test $use_secureplt = true; then
11860
11861 cat >>confdefs.h <<\_ACEOF
11862 #define USE_SECUREPLT 1
11863 _ACEOF
11864
11865 fi
11866
11867 DEBUGDIR=${libdir}/debug
11868
11869 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
11870 if test "${with_separate_debug_dir+set}" = set; then
11871 withval="$with_separate_debug_dir"
11872 DEBUGDIR="${withval}"
11873 fi;
11874
11875
11876 # Check to see if we should allow the generation of
11877 # symbols with the ELF standard's STT_COMMON type.
11878 # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given.
11879 if test "${enable_elf_stt_common+set}" = set; then
11880 enableval="$enable_elf_stt_common"
11881 case "${enableval}" in
11882 yes) want_elf_stt_common=true ;;
11883 no) want_elf_stt_common=false ;;
11884 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5
11885 echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;}
11886 { (exit 1); exit 1; }; } ;;
11887 esac
11888 else
11889 # We have to choose a default behaviour. For native builds we could
11890 # test whether the loader supports the STT_COMMON type, but that would
11891 # mean that built binaries could not be exported to older systems where
11892 # the loader does not support it. So by default we always choose to
11893 # disable this feature.
11894 want_elf_stt_common=false
11895 fi; if test $want_elf_stt_common = true; then
11896
11897 cat >>confdefs.h <<\_ACEOF
11898 #define USE_STT_COMMON 1
11899 _ACEOF
11900
11901 fi
11902
11903
11904
11905 # Check whether --with-pkgversion or --without-pkgversion was given.
11906 if test "${with_pkgversion+set}" = set; then
11907 withval="$with_pkgversion"
11908 case "$withval" in
11909 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
11910 echo "$as_me: error: package version not specified" >&2;}
11911 { (exit 1); exit 1; }; } ;;
11912 no) PKGVERSION= ;;
11913 *) PKGVERSION="($withval) " ;;
11914 esac
11915 else
11916 PKGVERSION="(GNU Binutils) "
11917
11918 fi;
11919
11920
11921
11922
11923 # Check whether --with-bugurl or --without-bugurl was given.
11924 if test "${with_bugurl+set}" = set; then
11925 withval="$with_bugurl"
11926 case "$withval" in
11927 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
11928 echo "$as_me: error: bug URL not specified" >&2;}
11929 { (exit 1); exit 1; }; } ;;
11930 no) BUGURL=
11931 ;;
11932 *) BUGURL="$withval"
11933 ;;
11934 esac
11935 else
11936 BUGURL="http://www.sourceware.org/bugzilla/"
11937
11938 fi;
11939 case ${BUGURL} in
11940 "")
11941 REPORT_BUGS_TO=
11942 REPORT_BUGS_TEXI=
11943 ;;
11944 *)
11945 REPORT_BUGS_TO="<$BUGURL>"
11946 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11947 ;;
11948 esac;
11949
11950
11951
11952
11953
11954 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11955
11956 # Check whether --enable-werror or --disable-werror was given.
11957 if test "${enable_werror+set}" = set; then
11958 enableval="$enable_werror"
11959 case "${enableval}" in
11960 yes | y) ERROR_ON_WARNING="yes" ;;
11961 no | n) ERROR_ON_WARNING="no" ;;
11962 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11963 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11964 { (exit 1); exit 1; }; } ;;
11965 esac
11966 fi;
11967
11968 # Enable -Wno-format by default when using gcc on mingw
11969 case "${host}" in
11970 *-*-mingw32*)
11971 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11972 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11973 fi
11974 ;;
11975 *) ;;
11976 esac
11977
11978 # Enable -Werror by default when using gcc
11979 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11980 ERROR_ON_WARNING=yes
11981 fi
11982
11983 NO_WERROR=
11984 if test "${ERROR_ON_WARNING}" = yes ; then
11985 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11986 NO_WERROR="-Wno-error"
11987 fi
11988
11989 if test "${GCC}" = yes ; then
11990 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11991 fi
11992
11993 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11994 if test "${enable_build_warnings+set}" = set; then
11995 enableval="$enable_build_warnings"
11996 case "${enableval}" in
11997 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11998 no) if test "${GCC}" = yes ; then
11999 WARN_CFLAGS="-w"
12000 fi;;
12001 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12002 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12003 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12004 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12005 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12006 esac
12007 fi;
12008
12009 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12010 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12011 fi
12012
12013
12014
12015
12016
12017 ac_config_headers="$ac_config_headers config.h:config.in"
12018
12019
12020 if test -z "$target" ; then
12021 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
12022 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
12023 { (exit 1); exit 1; }; }
12024 fi
12025
12026 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12027 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12028 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12029 if test "${enable_maintainer_mode+set}" = set; then
12030 enableval="$enable_maintainer_mode"
12031 USE_MAINTAINER_MODE=$enableval
12032 else
12033 USE_MAINTAINER_MODE=no
12034 fi;
12035 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12036 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12037
12038
12039 if test $USE_MAINTAINER_MODE = yes; then
12040 MAINTAINER_MODE_TRUE=
12041 MAINTAINER_MODE_FALSE='#'
12042 else
12043 MAINTAINER_MODE_TRUE='#'
12044 MAINTAINER_MODE_FALSE=
12045 fi
12046
12047 MAINT=$MAINTAINER_MODE_TRUE
12048
12049
12050
12051
12052 if false; then
12053 GENINSRC_NEVER_TRUE=
12054 GENINSRC_NEVER_FALSE='#'
12055 else
12056 GENINSRC_NEVER_TRUE='#'
12057 GENINSRC_NEVER_FALSE=
12058 fi
12059
12060 case ${build_alias} in
12061 "") build_noncanonical=${build} ;;
12062 *) build_noncanonical=${build_alias} ;;
12063 esac
12064
12065 case ${host_alias} in
12066 "") host_noncanonical=${build_noncanonical} ;;
12067 *) host_noncanonical=${host_alias} ;;
12068 esac
12069
12070 case ${target_alias} in
12071 "") target_noncanonical=${host_noncanonical} ;;
12072 *) target_noncanonical=${target_alias} ;;
12073 esac
12074
12075 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
12076 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
12077 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
12078 if test "${enable_install_libbfd+set}" = set; then
12079 enableval="$enable_install_libbfd"
12080 install_libbfd_p=$enableval
12081 else
12082 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12083 install_libbfd_p=yes
12084 else
12085 install_libbfd_p=no
12086 fi
12087 fi;
12088 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
12089 echo "${ECHO_T}$install_libbfd_p" >&6
12090
12091
12092 if test $install_libbfd_p = yes; then
12093 INSTALL_LIBBFD_TRUE=
12094 INSTALL_LIBBFD_FALSE='#'
12095 else
12096 INSTALL_LIBBFD_TRUE='#'
12097 INSTALL_LIBBFD_FALSE=
12098 fi
12099
12100 # Need _noncanonical variables for this.
12101
12102
12103
12104
12105 # libbfd.a is a host library containing target dependent code
12106 bfdlibdir='$(libdir)'
12107 bfdincludedir='$(includedir)'
12108 if test "${host}" != "${target}"; then
12109 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12110 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12111 fi
12112
12113
12114
12115
12116
12117
12118 host64=false
12119 target64=false
12120 bfd_default_target_size=32
12121
12122 # host stuff:
12123
12124 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id"
12125 # If we haven't got the data from the intl directory,
12126 # assume NLS is disabled.
12127 USE_NLS=no
12128 LIBINTL=
12129 LIBINTL_DEP=
12130 INCINTL=
12131 XGETTEXT=
12132 GMSGFMT=
12133 POSUB=
12134
12135 if test -f ../intl/config.intl; then
12136 . ../intl/config.intl
12137 fi
12138 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12139 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12140 if test x"$USE_NLS" != xyes; then
12141 echo "$as_me:$LINENO: result: no" >&5
12142 echo "${ECHO_T}no" >&6
12143 else
12144 echo "$as_me:$LINENO: result: yes" >&5
12145 echo "${ECHO_T}yes" >&6
12146
12147 cat >>confdefs.h <<\_ACEOF
12148 #define ENABLE_NLS 1
12149 _ACEOF
12150
12151
12152 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12153 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12154 # Look for .po and .gmo files in the source directory.
12155 CATALOGS=
12156 XLINGUAS=
12157 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12158 # If there aren't any .gmo files the shell will give us the
12159 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12160 # weeded out.
12161 case "$cat" in *\**)
12162 continue;;
12163 esac
12164 # The quadruple backslash is collapsed to a double backslash
12165 # by the backticks, then collapsed again by the double quotes,
12166 # leaving us with one backslash in the sed expression (right
12167 # before the dot that mustn't act as a wildcard).
12168 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12169 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12170 # The user is allowed to set LINGUAS to a list of languages to
12171 # install catalogs for. If it's empty that means "all of them."
12172 if test "x$LINGUAS" = x; then
12173 CATALOGS="$CATALOGS $cat"
12174 XLINGUAS="$XLINGUAS $lang"
12175 else
12176 case "$LINGUAS" in *$lang*)
12177 CATALOGS="$CATALOGS $cat"
12178 XLINGUAS="$XLINGUAS $lang"
12179 ;;
12180 esac
12181 fi
12182 done
12183 LINGUAS="$XLINGUAS"
12184 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12185 echo "${ECHO_T}$LINGUAS" >&6
12186
12187
12188 DATADIRNAME=share
12189
12190 INSTOBJEXT=.mo
12191
12192 GENCAT=gencat
12193
12194 CATOBJEXT=.gmo
12195
12196 fi
12197
12198 MKINSTALLDIRS=
12199 if test -n "$ac_aux_dir"; then
12200 case "$ac_aux_dir" in
12201 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12202 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12203 esac
12204 fi
12205 if test -z "$MKINSTALLDIRS"; then
12206 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12207 fi
12208
12209
12210
12211 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12212 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12213 # Check whether --enable-nls or --disable-nls was given.
12214 if test "${enable_nls+set}" = set; then
12215 enableval="$enable_nls"
12216 USE_NLS=$enableval
12217 else
12218 USE_NLS=yes
12219 fi;
12220 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12221 echo "${ECHO_T}$USE_NLS" >&6
12222
12223
12224
12225
12226
12227
12228 # Prepare PATH_SEPARATOR.
12229 # The user is always right.
12230 if test "${PATH_SEPARATOR+set}" != set; then
12231 echo "#! /bin/sh" >conf$$.sh
12232 echo "exit 0" >>conf$$.sh
12233 chmod +x conf$$.sh
12234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12235 PATH_SEPARATOR=';'
12236 else
12237 PATH_SEPARATOR=:
12238 fi
12239 rm -f conf$$.sh
12240 fi
12241
12242 # Find out how to test for executable files. Don't use a zero-byte file,
12243 # as systems may use methods other than mode bits to determine executability.
12244 cat >conf$$.file <<_ASEOF
12245 #! /bin/sh
12246 exit 0
12247 _ASEOF
12248 chmod +x conf$$.file
12249 if test -x conf$$.file >/dev/null 2>&1; then
12250 ac_executable_p="test -x"
12251 else
12252 ac_executable_p="test -f"
12253 fi
12254 rm -f conf$$.file
12255
12256 # Extract the first word of "msgfmt", so it can be a program name with args.
12257 set dummy msgfmt; ac_word=$2
12258 echo "$as_me:$LINENO: checking for $ac_word" >&5
12259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12260 if test "${ac_cv_path_MSGFMT+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 case "$MSGFMT" in
12264 [\\/]* | ?:[\\/]*)
12265 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12266 ;;
12267 *)
12268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12269 for ac_dir in $PATH; do
12270 IFS="$ac_save_IFS"
12271 test -z "$ac_dir" && ac_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12274 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12277 break 2
12278 fi
12279 fi
12280 done
12281 done
12282 IFS="$ac_save_IFS"
12283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12284 ;;
12285 esac
12286 fi
12287 MSGFMT="$ac_cv_path_MSGFMT"
12288 if test "$MSGFMT" != ":"; then
12289 echo "$as_me:$LINENO: result: $MSGFMT" >&5
12290 echo "${ECHO_T}$MSGFMT" >&6
12291 else
12292 echo "$as_me:$LINENO: result: no" >&5
12293 echo "${ECHO_T}no" >&6
12294 fi
12295
12296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12297 set dummy gmsgfmt; ac_word=$2
12298 echo "$as_me:$LINENO: checking for $ac_word" >&5
12299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12300 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 case $GMSGFMT in
12304 [\\/]* | ?:[\\/]*)
12305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12306 ;;
12307 *)
12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12309 for as_dir in $PATH
12310 do
12311 IFS=$as_save_IFS
12312 test -z "$as_dir" && as_dir=.
12313 for ac_exec_ext in '' $ac_executable_extensions; do
12314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12317 break 2
12318 fi
12319 done
12320 done
12321
12322 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12323 ;;
12324 esac
12325 fi
12326 GMSGFMT=$ac_cv_path_GMSGFMT
12327
12328 if test -n "$GMSGFMT"; then
12329 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12330 echo "${ECHO_T}$GMSGFMT" >&6
12331 else
12332 echo "$as_me:$LINENO: result: no" >&5
12333 echo "${ECHO_T}no" >&6
12334 fi
12335
12336
12337
12338 # Prepare PATH_SEPARATOR.
12339 # The user is always right.
12340 if test "${PATH_SEPARATOR+set}" != set; then
12341 echo "#! /bin/sh" >conf$$.sh
12342 echo "exit 0" >>conf$$.sh
12343 chmod +x conf$$.sh
12344 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12345 PATH_SEPARATOR=';'
12346 else
12347 PATH_SEPARATOR=:
12348 fi
12349 rm -f conf$$.sh
12350 fi
12351
12352 # Find out how to test for executable files. Don't use a zero-byte file,
12353 # as systems may use methods other than mode bits to determine executability.
12354 cat >conf$$.file <<_ASEOF
12355 #! /bin/sh
12356 exit 0
12357 _ASEOF
12358 chmod +x conf$$.file
12359 if test -x conf$$.file >/dev/null 2>&1; then
12360 ac_executable_p="test -x"
12361 else
12362 ac_executable_p="test -f"
12363 fi
12364 rm -f conf$$.file
12365
12366 # Extract the first word of "xgettext", so it can be a program name with args.
12367 set dummy xgettext; ac_word=$2
12368 echo "$as_me:$LINENO: checking for $ac_word" >&5
12369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12370 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373 case "$XGETTEXT" in
12374 [\\/]* | ?:[\\/]*)
12375 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12376 ;;
12377 *)
12378 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12379 for ac_dir in $PATH; do
12380 IFS="$ac_save_IFS"
12381 test -z "$ac_dir" && ac_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12384 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12385 (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
12386 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12387 break 2
12388 fi
12389 fi
12390 done
12391 done
12392 IFS="$ac_save_IFS"
12393 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12394 ;;
12395 esac
12396 fi
12397 XGETTEXT="$ac_cv_path_XGETTEXT"
12398 if test "$XGETTEXT" != ":"; then
12399 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12400 echo "${ECHO_T}$XGETTEXT" >&6
12401 else
12402 echo "$as_me:$LINENO: result: no" >&5
12403 echo "${ECHO_T}no" >&6
12404 fi
12405
12406 rm -f messages.po
12407
12408
12409 # Prepare PATH_SEPARATOR.
12410 # The user is always right.
12411 if test "${PATH_SEPARATOR+set}" != set; then
12412 echo "#! /bin/sh" >conf$$.sh
12413 echo "exit 0" >>conf$$.sh
12414 chmod +x conf$$.sh
12415 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12416 PATH_SEPARATOR=';'
12417 else
12418 PATH_SEPARATOR=:
12419 fi
12420 rm -f conf$$.sh
12421 fi
12422
12423 # Find out how to test for executable files. Don't use a zero-byte file,
12424 # as systems may use methods other than mode bits to determine executability.
12425 cat >conf$$.file <<_ASEOF
12426 #! /bin/sh
12427 exit 0
12428 _ASEOF
12429 chmod +x conf$$.file
12430 if test -x conf$$.file >/dev/null 2>&1; then
12431 ac_executable_p="test -x"
12432 else
12433 ac_executable_p="test -f"
12434 fi
12435 rm -f conf$$.file
12436
12437 # Extract the first word of "msgmerge", so it can be a program name with args.
12438 set dummy msgmerge; ac_word=$2
12439 echo "$as_me:$LINENO: checking for $ac_word" >&5
12440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12441 if test "${ac_cv_path_MSGMERGE+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 case "$MSGMERGE" in
12445 [\\/]* | ?:[\\/]*)
12446 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12447 ;;
12448 *)
12449 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12450 for ac_dir in $PATH; do
12451 IFS="$ac_save_IFS"
12452 test -z "$ac_dir" && ac_dir=.
12453 for ac_exec_ext in '' $ac_executable_extensions; do
12454 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12455 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12456 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12457 break 2
12458 fi
12459 fi
12460 done
12461 done
12462 IFS="$ac_save_IFS"
12463 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12464 ;;
12465 esac
12466 fi
12467 MSGMERGE="$ac_cv_path_MSGMERGE"
12468 if test "$MSGMERGE" != ":"; then
12469 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
12470 echo "${ECHO_T}$MSGMERGE" >&6
12471 else
12472 echo "$as_me:$LINENO: result: no" >&5
12473 echo "${ECHO_T}no" >&6
12474 fi
12475
12476
12477 if test "$GMSGFMT" != ":"; then
12478 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12479 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12480 : ;
12481 else
12482 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12483 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12484 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
12485 GMSGFMT=":"
12486 fi
12487 fi
12488
12489 if test "$XGETTEXT" != ":"; then
12490 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12491 (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
12492 : ;
12493 else
12494 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
12495 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
12496 XGETTEXT=":"
12497 fi
12498 rm -f messages.po
12499 fi
12500
12501 ac_config_commands="$ac_config_commands default-1"
12502
12503
12504
12505 # Permit host specific settings.
12506 . ${srcdir}/configure.host
12507
12508
12509 # Find a good install program. We prefer a C program (faster),
12510 # so one script is as good as another. But avoid the broken or
12511 # incompatible versions:
12512 # SysV /etc/install, /usr/sbin/install
12513 # SunOS /usr/etc/install
12514 # IRIX /sbin/install
12515 # AIX /bin/install
12516 # AmigaOS /C/install, which installs bootblocks on floppy discs
12517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12520 # OS/2's system install, which has a completely different semantic
12521 # ./install, which can be erroneously created by make from ./install.sh.
12522 # Reject install programs that cannot install multiple files.
12523 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12525 if test -z "$INSTALL"; then
12526 if test "${ac_cv_path_install+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530 for as_dir in $PATH
12531 do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 # Account for people who put trailing slashes in PATH elements.
12535 case $as_dir/ in
12536 ./ | .// | /cC/* | \
12537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12539 /usr/ucb/* ) ;;
12540 *)
12541 # OSF1 and SCO ODT 3.0 have their own names for install.
12542 # Don't use installbsd from OSF since it installs stuff as root
12543 # by default.
12544 for ac_prog in ginstall scoinst install; do
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12547 if test $ac_prog = install &&
12548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12549 # AIX install. It has an incompatible calling convention.
12550 :
12551 elif test $ac_prog = install &&
12552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12553 # program-specific install script used by HP pwplus--don't use.
12554 :
12555 else
12556 rm -rf conftest.one conftest.two conftest.dir
12557 echo one > conftest.one
12558 echo two > conftest.two
12559 mkdir conftest.dir
12560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12561 test -s conftest.one && test -s conftest.two &&
12562 test -s conftest.dir/conftest.one &&
12563 test -s conftest.dir/conftest.two
12564 then
12565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12566 break 3
12567 fi
12568 fi
12569 fi
12570 done
12571 done
12572 ;;
12573 esac
12574 done
12575
12576 rm -rf conftest.one conftest.two conftest.dir
12577
12578 fi
12579 if test "${ac_cv_path_install+set}" = set; then
12580 INSTALL=$ac_cv_path_install
12581 else
12582 # As a last resort, use the slow shell script. Don't cache a
12583 # value for INSTALL within a source directory, because that will
12584 # break other packages using the cache if that directory is
12585 # removed, or if the value is a relative name.
12586 INSTALL=$ac_install_sh
12587 fi
12588 fi
12589 echo "$as_me:$LINENO: result: $INSTALL" >&5
12590 echo "${ECHO_T}$INSTALL" >&6
12591
12592 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12593 # It thinks the first close brace ends the variable substitution.
12594 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12595
12596 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12597
12598 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12599
12600
12601 BFD_HOST_64BIT_LONG=0
12602 BFD_HOST_64BIT_LONG_LONG=0
12603 BFD_HOST_64_BIT_DEFINED=0
12604 BFD_HOST_64_BIT=
12605 BFD_HOST_U_64_BIT=
12606 BFD_HOSTPTR_T="unsigned long"
12607
12608 echo "$as_me:$LINENO: checking for long long" >&5
12609 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12610 if test "${ac_cv_type_long_long+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 $ac_includes_default
12620 int
12621 main ()
12622 {
12623 if ((long long *) 0)
12624 return 0;
12625 if (sizeof (long long))
12626 return 0;
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag"
12641 || test ! -s conftest.err'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12644 ac_status=$?
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; } &&
12647 { ac_try='test -s conftest.$ac_objext'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; }; then
12653 ac_cv_type_long_long=yes
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_cv_type_long_long=no
12659 fi
12660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661 fi
12662 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12663 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12664
12665 echo "$as_me:$LINENO: checking size of long long" >&5
12666 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12667 if test "${ac_cv_sizeof_long_long+set}" = set; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12669 else
12670 if test "$ac_cv_type_long_long" = yes; then
12671 # The cast to unsigned long works around a bug in the HP C Compiler
12672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12674 # This bug is HP SR number 8606223364.
12675 if test "$cross_compiling" = yes; then
12676 # Depending upon the size, compute the lo and hi bounds.
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 $ac_includes_default
12684 int
12685 main ()
12686 {
12687 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12688 test_array [0] = 0
12689
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12696 (eval $ac_compile) 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest.$ac_objext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_lo=0 ac_mid=0
12717 while :; do
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 int
12726 main ()
12727 {
12728 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12729 test_array [0] = 0
12730
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 rm -f conftest.$ac_objext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12737 (eval $ac_compile) 2>conftest.er1
12738 ac_status=$?
12739 grep -v '^ *+' conftest.er1 >conftest.err
12740 rm -f conftest.er1
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag"
12745 || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_hi=$ac_mid; break
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 ac_lo=`expr $ac_mid + 1`
12763 if test $ac_lo -le $ac_mid; then
12764 ac_lo= ac_hi=
12765 break
12766 fi
12767 ac_mid=`expr 2 '*' $ac_mid + 1`
12768 fi
12769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12770 done
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 $ac_includes_default
12782 int
12783 main ()
12784 {
12785 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12786 test_array [0] = 0
12787
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12794 (eval $ac_compile) 2>conftest.er1
12795 ac_status=$?
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -z "$ac_c_werror_flag"
12802 || test ! -s conftest.err'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; } &&
12808 { ac_try='test -s conftest.$ac_objext'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814 ac_hi=-1 ac_mid=-1
12815 while :; do
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h. */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 $ac_includes_default
12823 int
12824 main ()
12825 {
12826 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12827 test_array [0] = 0
12828
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_lo=$ac_mid; break
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_hi=`expr '(' $ac_mid ')' - 1`
12861 if test $ac_mid -le $ac_hi; then
12862 ac_lo= ac_hi=
12863 break
12864 fi
12865 ac_mid=`expr 2 '*' $ac_mid`
12866 fi
12867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12868 done
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873 ac_lo= ac_hi=
12874 fi
12875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876 fi
12877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12878 # Binary search between lo and hi bounds.
12879 while test "x$ac_lo" != "x$ac_hi"; do
12880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h. */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 $ac_includes_default
12888 int
12889 main ()
12890 {
12891 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12892 test_array [0] = 0
12893
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900 (eval $ac_compile) 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } &&
12907 { ac_try='test -z "$ac_c_werror_flag"
12908 || test ! -s conftest.err'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } &&
12914 { ac_try='test -s conftest.$ac_objext'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
12920 ac_hi=$ac_mid
12921 else
12922 echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925 ac_lo=`expr '(' $ac_mid ')' + 1`
12926 fi
12927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12928 done
12929 case $ac_lo in
12930 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12931 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12932 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12934 See \`config.log' for more details." >&5
12935 echo "$as_me: error: cannot compute sizeof (long long), 77
12936 See \`config.log' for more details." >&2;}
12937 { (exit 1); exit 1; }; }; } ;;
12938 esac
12939 else
12940 if test "$cross_compiling" = yes; then
12941 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12942 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12943 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12944 See \`config.log' for more details." >&5
12945 echo "$as_me: error: cannot run test program while cross compiling
12946 See \`config.log' for more details." >&2;}
12947 { (exit 1); exit 1; }; }; }
12948 else
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h. */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 $ac_includes_default
12956 long longval () { return (long) (sizeof (long long)); }
12957 unsigned long ulongval () { return (long) (sizeof (long long)); }
12958 #include <stdio.h>
12959 #include <stdlib.h>
12960 int
12961 main ()
12962 {
12963
12964 FILE *f = fopen ("conftest.val", "w");
12965 if (! f)
12966 exit (1);
12967 if (((long) (sizeof (long long))) < 0)
12968 {
12969 long i = longval ();
12970 if (i != ((long) (sizeof (long long))))
12971 exit (1);
12972 fprintf (f, "%ld\n", i);
12973 }
12974 else
12975 {
12976 unsigned long i = ulongval ();
12977 if (i != ((long) (sizeof (long long))))
12978 exit (1);
12979 fprintf (f, "%lu\n", i);
12980 }
12981 exit (ferror (f) || fclose (f) != 0);
12982
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989 (eval $ac_link) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; }; then
12998 ac_cv_sizeof_long_long=`cat conftest.val`
12999 else
13000 echo "$as_me: program exited with status $ac_status" >&5
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 ( exit $ac_status )
13005 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13006 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13007 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13008 See \`config.log' for more details." >&5
13009 echo "$as_me: error: cannot compute sizeof (long long), 77
13010 See \`config.log' for more details." >&2;}
13011 { (exit 1); exit 1; }; }; }
13012 fi
13013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 fi
13016 rm -f conftest.val
13017 else
13018 ac_cv_sizeof_long_long=0
13019 fi
13020 fi
13021 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13022 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13023 cat >>confdefs.h <<_ACEOF
13024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13025 _ACEOF
13026
13027
13028 echo "$as_me:$LINENO: checking for void *" >&5
13029 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13030 if test "${ac_cv_type_void_p+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13040 int
13041 main ()
13042 {
13043 if ((void * *) 0)
13044 return 0;
13045 if (sizeof (void *))
13046 return 0;
13047 ;
13048 return 0;
13049 }
13050 _ACEOF
13051 rm -f conftest.$ac_objext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try='test -s conftest.$ac_objext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073 ac_cv_type_void_p=yes
13074 else
13075 echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078 ac_cv_type_void_p=no
13079 fi
13080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13081 fi
13082 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13083 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13084
13085 echo "$as_me:$LINENO: checking size of void *" >&5
13086 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13087 if test "${ac_cv_sizeof_void_p+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090 if test "$ac_cv_type_void_p" = yes; then
13091 # The cast to unsigned long works around a bug in the HP C Compiler
13092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13094 # This bug is HP SR number 8606223364.
13095 if test "$cross_compiling" = yes; then
13096 # Depending upon the size, compute the lo and hi bounds.
13097 cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h. */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 int
13105 main ()
13106 {
13107 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13108 test_array [0] = 0
13109
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 ac_lo=0 ac_mid=0
13137 while :; do
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 int
13146 main ()
13147 {
13148 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13149 test_array [0] = 0
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13157 (eval $ac_compile) 2>conftest.er1
13158 ac_status=$?
13159 grep -v '^ *+' conftest.er1 >conftest.err
13160 rm -f conftest.er1
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -z "$ac_c_werror_flag"
13165 || test ! -s conftest.err'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 ac_hi=$ac_mid; break
13178 else
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 ac_lo=`expr $ac_mid + 1`
13183 if test $ac_lo -le $ac_mid; then
13184 ac_lo= ac_hi=
13185 break
13186 fi
13187 ac_mid=`expr 2 '*' $ac_mid + 1`
13188 fi
13189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13190 done
13191 else
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 cat >conftest.$ac_ext <<_ACEOF
13196 /* confdefs.h. */
13197 _ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 int
13203 main ()
13204 {
13205 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13206 test_array [0] = 0
13207
13208 ;
13209 return 0;
13210 }
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -z "$ac_c_werror_flag"
13222 || test ! -s conftest.err'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest.$ac_objext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 ac_hi=-1 ac_mid=-1
13235 while :; do
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 int
13244 main ()
13245 {
13246 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13247 test_array [0] = 0
13248
13249 ;
13250 return 0;
13251 }
13252 _ACEOF
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_lo=$ac_mid; break
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_hi=`expr '(' $ac_mid ')' - 1`
13281 if test $ac_mid -le $ac_hi; then
13282 ac_lo= ac_hi=
13283 break
13284 fi
13285 ac_mid=`expr 2 '*' $ac_mid`
13286 fi
13287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 done
13289 else
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293 ac_lo= ac_hi=
13294 fi
13295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296 fi
13297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13298 # Binary search between lo and hi bounds.
13299 while test "x$ac_lo" != "x$ac_hi"; do
13300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 $ac_includes_default
13308 int
13309 main ()
13310 {
13311 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13312 test_array [0] = 0
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 rm -f conftest.$ac_objext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320 (eval $ac_compile) 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_c_werror_flag"
13328 || test ! -s conftest.err'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest.$ac_objext'
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_hi=$ac_mid
13341 else
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 ac_lo=`expr '(' $ac_mid ')' + 1`
13346 fi
13347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13348 done
13349 case $ac_lo in
13350 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13351 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13352 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13353 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13354 See \`config.log' for more details." >&5
13355 echo "$as_me: error: cannot compute sizeof (void *), 77
13356 See \`config.log' for more details." >&2;}
13357 { (exit 1); exit 1; }; }; } ;;
13358 esac
13359 else
13360 if test "$cross_compiling" = yes; then
13361 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13362 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13364 See \`config.log' for more details." >&5
13365 echo "$as_me: error: cannot run test program while cross compiling
13366 See \`config.log' for more details." >&2;}
13367 { (exit 1); exit 1; }; }; }
13368 else
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13376 long longval () { return (long) (sizeof (void *)); }
13377 unsigned long ulongval () { return (long) (sizeof (void *)); }
13378 #include <stdio.h>
13379 #include <stdlib.h>
13380 int
13381 main ()
13382 {
13383
13384 FILE *f = fopen ("conftest.val", "w");
13385 if (! f)
13386 exit (1);
13387 if (((long) (sizeof (void *))) < 0)
13388 {
13389 long i = longval ();
13390 if (i != ((long) (sizeof (void *))))
13391 exit (1);
13392 fprintf (f, "%ld\n", i);
13393 }
13394 else
13395 {
13396 unsigned long i = ulongval ();
13397 if (i != ((long) (sizeof (void *))))
13398 exit (1);
13399 fprintf (f, "%lu\n", i);
13400 }
13401 exit (ferror (f) || fclose (f) != 0);
13402
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_sizeof_void_p=`cat conftest.val`
13419 else
13420 echo "$as_me: program exited with status $ac_status" >&5
13421 echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424 ( exit $ac_status )
13425 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13426 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot compute sizeof (void *), 77
13430 See \`config.log' for more details." >&2;}
13431 { (exit 1); exit 1; }; }; }
13432 fi
13433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13434 fi
13435 fi
13436 rm -f conftest.val
13437 else
13438 ac_cv_sizeof_void_p=0
13439 fi
13440 fi
13441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13442 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13443 cat >>confdefs.h <<_ACEOF
13444 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13445 _ACEOF
13446
13447
13448 echo "$as_me:$LINENO: checking for long" >&5
13449 echo $ECHO_N "checking for long... $ECHO_C" >&6
13450 if test "${ac_cv_type_long+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452 else
13453 cat >conftest.$ac_ext <<_ACEOF
13454 /* confdefs.h. */
13455 _ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13459 $ac_includes_default
13460 int
13461 main ()
13462 {
13463 if ((long *) 0)
13464 return 0;
13465 if (sizeof (long))
13466 return 0;
13467 ;
13468 return 0;
13469 }
13470 _ACEOF
13471 rm -f conftest.$ac_objext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13473 (eval $ac_compile) 2>conftest.er1
13474 ac_status=$?
13475 grep -v '^ *+' conftest.er1 >conftest.err
13476 rm -f conftest.er1
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } &&
13480 { ac_try='test -z "$ac_c_werror_flag"
13481 || test ! -s conftest.err'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; } &&
13487 { ac_try='test -s conftest.$ac_objext'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }; then
13493 ac_cv_type_long=yes
13494 else
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_cv_type_long=no
13499 fi
13500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13501 fi
13502 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13503 echo "${ECHO_T}$ac_cv_type_long" >&6
13504
13505 echo "$as_me:$LINENO: checking size of long" >&5
13506 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13507 if test "${ac_cv_sizeof_long+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510 if test "$ac_cv_type_long" = yes; then
13511 # The cast to unsigned long works around a bug in the HP C Compiler
13512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13514 # This bug is HP SR number 8606223364.
13515 if test "$cross_compiling" = yes; then
13516 # Depending upon the size, compute the lo and hi bounds.
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13524 int
13525 main ()
13526 {
13527 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13528 test_array [0] = 0
13529
13530 ;
13531 return 0;
13532 }
13533 _ACEOF
13534 rm -f conftest.$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13537 ac_status=$?
13538 grep -v '^ *+' conftest.er1 >conftest.err
13539 rm -f conftest.er1
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13553 ac_status=$?
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_lo=0 ac_mid=0
13557 while :; do
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 int
13566 main ()
13567 {
13568 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13569 test_array [0] = 0
13570
13571 ;
13572 return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>conftest.er1
13578 ac_status=$?
13579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest.$ac_objext'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_hi=$ac_mid; break
13598 else
13599 echo "$as_me: failed program was:" >&5
13600 sed 's/^/| /' conftest.$ac_ext >&5
13601
13602 ac_lo=`expr $ac_mid + 1`
13603 if test $ac_lo -le $ac_mid; then
13604 ac_lo= ac_hi=
13605 break
13606 fi
13607 ac_mid=`expr 2 '*' $ac_mid + 1`
13608 fi
13609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13610 done
13611 else
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 $ac_includes_default
13622 int
13623 main ()
13624 {
13625 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13626 test_array [0] = 0
13627
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest.$ac_objext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_hi=-1 ac_mid=-1
13655 while :; do
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 $ac_includes_default
13663 int
13664 main ()
13665 {
13666 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13667 test_array [0] = 0
13668
13669 ;
13670 return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
13676 ac_status=$?
13677 grep -v '^ *+' conftest.er1 >conftest.err
13678 rm -f conftest.er1
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_lo=$ac_mid; break
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700 ac_hi=`expr '(' $ac_mid ')' - 1`
13701 if test $ac_mid -le $ac_hi; then
13702 ac_lo= ac_hi=
13703 break
13704 fi
13705 ac_mid=`expr 2 '*' $ac_mid`
13706 fi
13707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13708 done
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 ac_lo= ac_hi=
13714 fi
13715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13716 fi
13717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718 # Binary search between lo and hi bounds.
13719 while test "x$ac_lo" != "x$ac_hi"; do
13720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13728 int
13729 main ()
13730 {
13731 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13732 test_array [0] = 0
13733
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag"
13748 || test ! -s conftest.err'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; } &&
13754 { ac_try='test -s conftest.$ac_objext'
13755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13760 ac_hi=$ac_mid
13761 else
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 ac_lo=`expr '(' $ac_mid ')' + 1`
13766 fi
13767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13768 done
13769 case $ac_lo in
13770 ?*) ac_cv_sizeof_long=$ac_lo;;
13771 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13772 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13774 See \`config.log' for more details." >&5
13775 echo "$as_me: error: cannot compute sizeof (long), 77
13776 See \`config.log' for more details." >&2;}
13777 { (exit 1); exit 1; }; }; } ;;
13778 esac
13779 else
13780 if test "$cross_compiling" = yes; then
13781 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13782 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13783 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13784 See \`config.log' for more details." >&5
13785 echo "$as_me: error: cannot run test program while cross compiling
13786 See \`config.log' for more details." >&2;}
13787 { (exit 1); exit 1; }; }; }
13788 else
13789 cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h. */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h. */
13795 $ac_includes_default
13796 long longval () { return (long) (sizeof (long)); }
13797 unsigned long ulongval () { return (long) (sizeof (long)); }
13798 #include <stdio.h>
13799 #include <stdlib.h>
13800 int
13801 main ()
13802 {
13803
13804 FILE *f = fopen ("conftest.val", "w");
13805 if (! f)
13806 exit (1);
13807 if (((long) (sizeof (long))) < 0)
13808 {
13809 long i = longval ();
13810 if (i != ((long) (sizeof (long))))
13811 exit (1);
13812 fprintf (f, "%ld\n", i);
13813 }
13814 else
13815 {
13816 unsigned long i = ulongval ();
13817 if (i != ((long) (sizeof (long))))
13818 exit (1);
13819 fprintf (f, "%lu\n", i);
13820 }
13821 exit (ferror (f) || fclose (f) != 0);
13822
13823 ;
13824 return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_cv_sizeof_long=`cat conftest.val`
13839 else
13840 echo "$as_me: program exited with status $ac_status" >&5
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13843
13844 ( exit $ac_status )
13845 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13846 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13847 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13848 See \`config.log' for more details." >&5
13849 echo "$as_me: error: cannot compute sizeof (long), 77
13850 See \`config.log' for more details." >&2;}
13851 { (exit 1); exit 1; }; }; }
13852 fi
13853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13854 fi
13855 fi
13856 rm -f conftest.val
13857 else
13858 ac_cv_sizeof_long=0
13859 fi
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13862 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13863 cat >>confdefs.h <<_ACEOF
13864 #define SIZEOF_LONG $ac_cv_sizeof_long
13865 _ACEOF
13866
13867
13868
13869 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13870 host64=true
13871 fi
13872
13873 if test "x${ac_cv_sizeof_long}" = "x8"; then
13874 BFD_HOST_64BIT_LONG=1
13875 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13876 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13877 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13878 BFD_HOST_64BIT_LONG_LONG=1
13879 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13880 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13881 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13882 BFD_HOSTPTR_T="unsigned long long"
13883 fi
13884 fi
13885
13886 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13887 BFD_HOST_64_BIT_DEFINED=1
13888 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13889 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13890 fi
13891
13892
13893
13894
13895
13896
13897
13898
13899 # Put a plausible default for CC_FOR_BUILD in Makefile.
13900 if test -z "$CC_FOR_BUILD"; then
13901 if test "x$cross_compiling" = "xno"; then
13902 CC_FOR_BUILD='$(CC)'
13903 else
13904 CC_FOR_BUILD=gcc
13905 fi
13906 fi
13907
13908 # Also set EXEEXT_FOR_BUILD.
13909 if test "x$cross_compiling" = "xno"; then
13910 EXEEXT_FOR_BUILD='$(EXEEXT)'
13911 else
13912 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
13913 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
13914 if test "${bfd_cv_build_exeext+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 rm -f conftest*
13918 echo 'int main () { return 0; }' > conftest.c
13919 bfd_cv_build_exeext=
13920 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13921 for file in conftest.*; do
13922 case $file in
13923 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13924 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13925 esac
13926 done
13927 rm -f conftest*
13928 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13929 fi
13930 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
13931 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
13932 EXEEXT_FOR_BUILD=""
13933 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13934 fi
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
13945 do
13946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948 echo "$as_me:$LINENO: checking for $ac_header" >&5
13949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 fi
13953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955 else
13956 # Is the header compilable?
13957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 #include <$ac_header>
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -z "$ac_c_werror_flag"
13978 || test ! -s conftest.err'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13981 ac_status=$?
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; } &&
13984 { ac_try='test -s conftest.$ac_objext'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; }; then
13990 ac_header_compiler=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_header_compiler=no
13996 fi
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999 echo "${ECHO_T}$ac_header_compiler" >&6
14000
14001 # Is the header present?
14002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <$ac_header>
14011 _ACEOF
14012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } >/dev/null; then
14020 if test -s conftest.err; then
14021 ac_cpp_err=$ac_c_preproc_warn_flag
14022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14023 else
14024 ac_cpp_err=
14025 fi
14026 else
14027 ac_cpp_err=yes
14028 fi
14029 if test -z "$ac_cpp_err"; then
14030 ac_header_preproc=yes
14031 else
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_header_preproc=no
14036 fi
14037 rm -f conftest.err conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14039 echo "${ECHO_T}$ac_header_preproc" >&6
14040
14041 # So? What about this header?
14042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14043 yes:no: )
14044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14048 ac_header_preproc=yes
14049 ;;
14050 no:yes:* )
14051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14058 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14063 (
14064 cat <<\_ASBOX
14065 ## ------------------------------------------ ##
14066 ## Report this to the AC_PACKAGE_NAME lists. ##
14067 ## ------------------------------------------ ##
14068 _ASBOX
14069 ) |
14070 sed "s/^/$as_me: WARNING: /" >&2
14071 ;;
14072 esac
14073 echo "$as_me:$LINENO: checking for $ac_header" >&5
14074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14076 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078 eval "$as_ac_Header=\$ac_header_preproc"
14079 fi
14080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14082
14083 fi
14084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14085 cat >>confdefs.h <<_ACEOF
14086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14087 _ACEOF
14088
14089 fi
14090
14091 done
14092
14093
14094
14095
14096 for ac_header in fcntl.h sys/file.h sys/time.h
14097 do
14098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo "$as_me:$LINENO: checking for $ac_header" >&5
14101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 fi
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107 else
14108 # Is the header compilable?
14109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #include <$ac_header>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_header_compiler=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ac_header_compiler=no
14148 fi
14149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6
14152
14153 # Is the header present?
14154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <$ac_header>
14163 _ACEOF
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null; then
14172 if test -s conftest.err; then
14173 ac_cpp_err=$ac_c_preproc_warn_flag
14174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14175 else
14176 ac_cpp_err=
14177 fi
14178 else
14179 ac_cpp_err=yes
14180 fi
14181 if test -z "$ac_cpp_err"; then
14182 ac_header_preproc=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 ac_header_preproc=no
14188 fi
14189 rm -f conftest.err conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6
14192
14193 # So? What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195 yes:no: )
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14200 ac_header_preproc=yes
14201 ;;
14202 no:yes:* )
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14215 (
14216 cat <<\_ASBOX
14217 ## ------------------------------------------ ##
14218 ## Report this to the AC_PACKAGE_NAME lists. ##
14219 ## ------------------------------------------ ##
14220 _ASBOX
14221 ) |
14222 sed "s/^/$as_me: WARNING: /" >&2
14223 ;;
14224 esac
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 eval "$as_ac_Header=\$ac_header_preproc"
14231 fi
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234
14235 fi
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 fi
14242
14243 done
14244
14245
14246
14247 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14248
14249 acx_cv_header_stdint=stddef.h
14250 acx_cv_header_stdint_kind="(already complete)"
14251 for i in stdint.h $inttype_headers; do
14252 unset ac_cv_type_uintptr_t
14253 unset ac_cv_type_uintmax_t
14254 unset ac_cv_type_int_least32_t
14255 unset ac_cv_type_int_fast32_t
14256 unset ac_cv_type_uint64_t
14257 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
14258 echo "$as_me:$LINENO: checking for uintmax_t" >&5
14259 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
14260 if test "${ac_cv_type_uintmax_t+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 else
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <sys/types.h>
14270 #include <$i>
14271
14272 int
14273 main ()
14274 {
14275 if ((uintmax_t *) 0)
14276 return 0;
14277 if (sizeof (uintmax_t))
14278 return 0;
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 rm -f conftest.$ac_objext
14284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag"
14293 || test ! -s conftest.err'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
14305 ac_cv_type_uintmax_t=yes
14306 else
14307 echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310 ac_cv_type_uintmax_t=no
14311 fi
14312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14313 fi
14314 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
14315 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
14316 if test $ac_cv_type_uintmax_t = yes; then
14317 acx_cv_header_stdint=$i
14318 else
14319 continue
14320 fi
14321
14322 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14323 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14324 if test "${ac_cv_type_uintptr_t+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <sys/types.h>
14334 #include <$i>
14335
14336 int
14337 main ()
14338 {
14339 if ((uintptr_t *) 0)
14340 return 0;
14341 if (sizeof (uintptr_t))
14342 return 0;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest.$ac_objext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14366 ac_status=$?
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_type_uintptr_t=yes
14370 else
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_cv_type_uintptr_t=no
14375 fi
14376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14379 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14380 if test $ac_cv_type_uintptr_t = yes; then
14381 :
14382 else
14383 acx_cv_header_stdint_kind="(mostly complete)"
14384 fi
14385
14386 echo "$as_me:$LINENO: checking for int_least32_t" >&5
14387 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
14388 if test "${ac_cv_type_int_least32_t+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391 cat >conftest.$ac_ext <<_ACEOF
14392 /* confdefs.h. */
14393 _ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <sys/types.h>
14398 #include <$i>
14399
14400 int
14401 main ()
14402 {
14403 if ((int_least32_t *) 0)
14404 return 0;
14405 if (sizeof (int_least32_t))
14406 return 0;
14407 ;
14408 return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14424 ac_status=$?
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try='test -s conftest.$ac_objext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_type_int_least32_t=yes
14434 else
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_cv_type_int_least32_t=no
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441 fi
14442 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
14443 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
14444 if test $ac_cv_type_int_least32_t = yes; then
14445 :
14446 else
14447 acx_cv_header_stdint_kind="(mostly complete)"
14448 fi
14449
14450 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
14451 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
14452 if test "${ac_cv_type_int_fast32_t+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14461 #include <sys/types.h>
14462 #include <$i>
14463
14464 int
14465 main ()
14466 {
14467 if ((int_fast32_t *) 0)
14468 return 0;
14469 if (sizeof (int_fast32_t))
14470 return 0;
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } &&
14484 { ac_try='test -z "$ac_c_werror_flag"
14485 || test ! -s conftest.err'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; }; then
14497 ac_cv_type_int_fast32_t=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_type_int_fast32_t=no
14503 fi
14504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
14507 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
14508 if test $ac_cv_type_int_fast32_t = yes; then
14509 :
14510 else
14511 acx_cv_header_stdint_kind="(mostly complete)"
14512 fi
14513
14514 echo "$as_me:$LINENO: checking for uint64_t" >&5
14515 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14516 if test "${ac_cv_type_uint64_t+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519 cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h. */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 #include <sys/types.h>
14526 #include <$i>
14527
14528 int
14529 main ()
14530 {
14531 if ((uint64_t *) 0)
14532 return 0;
14533 if (sizeof (uint64_t))
14534 return 0;
14535 ;
14536 return 0;
14537 }
14538 _ACEOF
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag"
14549 || test ! -s conftest.err'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_cv_type_uint64_t=yes
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14565
14566 ac_cv_type_uint64_t=no
14567 fi
14568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14569 fi
14570 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14571 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14572 if test $ac_cv_type_uint64_t = yes; then
14573 :
14574 else
14575 acx_cv_header_stdint_kind="(lacks uint64_t)"
14576 fi
14577
14578 break
14579 done
14580 if test "$acx_cv_header_stdint" = stddef.h; then
14581 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14582 for i in stdint.h $inttype_headers; do
14583 unset ac_cv_type_uintptr_t
14584 unset ac_cv_type_uint32_t
14585 unset ac_cv_type_uint64_t
14586 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
14587 echo "$as_me:$LINENO: checking for uint32_t" >&5
14588 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14589 if test "${ac_cv_type_uint32_t+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 #include <sys/types.h>
14599 #include <$i>
14600
14601 int
14602 main ()
14603 {
14604 if ((uint32_t *) 0)
14605 return 0;
14606 if (sizeof (uint32_t))
14607 return 0;
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_type_uint32_t=yes
14635 else
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 ac_cv_type_uint32_t=no
14640 fi
14641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642 fi
14643 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14644 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14645 if test $ac_cv_type_uint32_t = yes; then
14646 acx_cv_header_stdint=$i
14647 else
14648 continue
14649 fi
14650
14651 echo "$as_me:$LINENO: checking for uint64_t" >&5
14652 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14653 if test "${ac_cv_type_uint64_t+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 else
14656 cat >conftest.$ac_ext <<_ACEOF
14657 /* confdefs.h. */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14662 #include <sys/types.h>
14663 #include <$i>
14664
14665 int
14666 main ()
14667 {
14668 if ((uint64_t *) 0)
14669 return 0;
14670 if (sizeof (uint64_t))
14671 return 0;
14672 ;
14673 return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14678 (eval $ac_compile) 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14689 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try='test -s conftest.$ac_objext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_type_uint64_t=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_cv_type_uint64_t=no
14704 fi
14705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14706 fi
14707 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14708 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14709
14710 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14711 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14712 if test "${ac_cv_type_uintptr_t+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h. */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721 #include <sys/types.h>
14722 #include <$i>
14723
14724 int
14725 main ()
14726 {
14727 if ((uintptr_t *) 0)
14728 return 0;
14729 if (sizeof (uintptr_t))
14730 return 0;
14731 ;
14732 return 0;
14733 }
14734 _ACEOF
14735 rm -f conftest.$ac_objext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14737 (eval $ac_compile) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag"
14745 || test ! -s conftest.err'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_type_uintptr_t=yes
14758 else
14759 echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762 ac_cv_type_uintptr_t=no
14763 fi
14764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14765 fi
14766 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14767 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14768
14769 break
14770 done
14771 fi
14772 if test "$acx_cv_header_stdint" = stddef.h; then
14773 acx_cv_header_stdint_kind="(u_intXX_t style)"
14774 for i in sys/types.h $inttype_headers; do
14775 unset ac_cv_type_u_int32_t
14776 unset ac_cv_type_u_int64_t
14777 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
14778 echo "$as_me:$LINENO: checking for u_int32_t" >&5
14779 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14780 if test "${ac_cv_type_u_int32_t+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 cat >conftest.$ac_ext <<_ACEOF
14784 /* confdefs.h. */
14785 _ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14790 #include <$i>
14791
14792 int
14793 main ()
14794 {
14795 if ((u_int32_t *) 0)
14796 return 0;
14797 if (sizeof (u_int32_t))
14798 return 0;
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
14812 { ac_try='test -z "$ac_c_werror_flag"
14813 || test ! -s conftest.err'
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_type_u_int32_t=yes
14826 else
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830 ac_cv_type_u_int32_t=no
14831 fi
14832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14833 fi
14834 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14835 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14836 if test $ac_cv_type_u_int32_t = yes; then
14837 acx_cv_header_stdint=$i
14838 else
14839 continue
14840 fi
14841
14842 echo "$as_me:$LINENO: checking for u_int64_t" >&5
14843 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14844 if test "${ac_cv_type_u_int64_t+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14854 #include <$i>
14855
14856 int
14857 main ()
14858 {
14859 if ((u_int64_t *) 0)
14860 return 0;
14861 if (sizeof (u_int64_t))
14862 return 0;
14863 ;
14864 return 0;
14865 }
14866 _ACEOF
14867 rm -f conftest.$ac_objext
14868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14869 (eval $ac_compile) 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -z "$ac_c_werror_flag"
14877 || test ! -s conftest.err'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14880 ac_status=$?
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; } &&
14883 { ac_try='test -s conftest.$ac_objext'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; }; then
14889 ac_cv_type_u_int64_t=yes
14890 else
14891 echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_cv_type_u_int64_t=no
14895 fi
14896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14899 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
14900
14901 break
14902 done
14903 fi
14904 if test "$acx_cv_header_stdint" = stddef.h; then
14905 acx_cv_header_stdint_kind="(using manual detection)"
14906 fi
14907
14908 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
14909 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
14910 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
14911 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
14912 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
14913
14914 # ----------------- Summarize what we found so far
14915
14916 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
14917 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
14918
14919 case `$as_basename bfd_stdint.h ||
14920 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
14921 Xbfd_stdint.h : 'X\(//\)$' \| \
14922 Xbfd_stdint.h : 'X\(/\)$' \| \
14923 . : '\(.\)' 2>/dev/null ||
14924 echo X/bfd_stdint.h |
14925 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14926 /^X\/\(\/\/\)$/{ s//\1/; q; }
14927 /^X\/\(\/\).*/{ s//\1/; q; }
14928 s/.*/./; q'` in
14929 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14930 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14931 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
14932 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
14933 *) ;;
14934 esac
14935
14936 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
14937 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
14938
14939 # ----------------- done included file, check C basic types --------
14940
14941 # Lacking an uintptr_t? Test size of void *
14942 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
14943 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
14944 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14945 if test "${ac_cv_type_void_p+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 $ac_includes_default
14955 int
14956 main ()
14957 {
14958 if ((void * *) 0)
14959 return 0;
14960 if (sizeof (void *))
14961 return 0;
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_cv_type_void_p=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_cv_type_void_p=no
14994 fi
14995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14996 fi
14997 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14998 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14999
15000 echo "$as_me:$LINENO: checking size of void *" >&5
15001 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15002 if test "${ac_cv_sizeof_void_p+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 if test "$ac_cv_type_void_p" = yes; then
15006 # The cast to unsigned long works around a bug in the HP C Compiler
15007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15009 # This bug is HP SR number 8606223364.
15010 if test "$cross_compiling" = yes; then
15011 # Depending upon the size, compute the lo and hi bounds.
15012 cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h. */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 $ac_includes_default
15019 int
15020 main ()
15021 {
15022 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15023 test_array [0] = 0
15024
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_lo=0 ac_mid=0
15052 while :; do
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h. */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 $ac_includes_default
15060 int
15061 main ()
15062 {
15063 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15064 test_array [0] = 0
15065
15066 ;
15067 return 0;
15068 }
15069 _ACEOF
15070 rm -f conftest.$ac_objext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15072 (eval $ac_compile) 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag"
15080 || test ! -s conftest.err'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15083 ac_status=$?
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 ac_hi=$ac_mid; break
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 ac_lo=`expr $ac_mid + 1`
15098 if test $ac_lo -le $ac_mid; then
15099 ac_lo= ac_hi=
15100 break
15101 fi
15102 ac_mid=`expr 2 '*' $ac_mid + 1`
15103 fi
15104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105 done
15106 else
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 cat >conftest.$ac_ext <<_ACEOF
15111 /* confdefs.h. */
15112 _ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 $ac_includes_default
15117 int
15118 main ()
15119 {
15120 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15121 test_array [0] = 0
15122
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 ac_hi=-1 ac_mid=-1
15150 while :; do
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15158 int
15159 main ()
15160 {
15161 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15162 test_array [0] = 0
15163
15164 ;
15165 return 0;
15166 }
15167 _ACEOF
15168 rm -f conftest.$ac_objext
15169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15170 (eval $ac_compile) 2>conftest.er1
15171 ac_status=$?
15172 grep -v '^ *+' conftest.er1 >conftest.err
15173 rm -f conftest.er1
15174 cat conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -z "$ac_c_werror_flag"
15178 || test ! -s conftest.err'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 ac_lo=$ac_mid; break
15191 else
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195 ac_hi=`expr '(' $ac_mid ')' - 1`
15196 if test $ac_mid -le $ac_hi; then
15197 ac_lo= ac_hi=
15198 break
15199 fi
15200 ac_mid=`expr 2 '*' $ac_mid`
15201 fi
15202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15203 done
15204 else
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ac_lo= ac_hi=
15209 fi
15210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15211 fi
15212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213 # Binary search between lo and hi bounds.
15214 while test "x$ac_lo" != "x$ac_hi"; do
15215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15223 int
15224 main ()
15225 {
15226 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15227 test_array [0] = 0
15228
15229 ;
15230 return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>conftest.er1
15236 ac_status=$?
15237 grep -v '^ *+' conftest.er1 >conftest.err
15238 rm -f conftest.er1
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -z "$ac_c_werror_flag"
15243 || test ! -s conftest.err'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; } &&
15249 { ac_try='test -s conftest.$ac_objext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_hi=$ac_mid
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_lo=`expr '(' $ac_mid ')' + 1`
15261 fi
15262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15263 done
15264 case $ac_lo in
15265 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15266 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15267 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15269 See \`config.log' for more details." >&5
15270 echo "$as_me: error: cannot compute sizeof (void *), 77
15271 See \`config.log' for more details." >&2;}
15272 { (exit 1); exit 1; }; }; } ;;
15273 esac
15274 else
15275 if test "$cross_compiling" = yes; then
15276 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15277 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15279 See \`config.log' for more details." >&5
15280 echo "$as_me: error: cannot run test program while cross compiling
15281 See \`config.log' for more details." >&2;}
15282 { (exit 1); exit 1; }; }; }
15283 else
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 $ac_includes_default
15291 long longval () { return (long) (sizeof (void *)); }
15292 unsigned long ulongval () { return (long) (sizeof (void *)); }
15293 #include <stdio.h>
15294 #include <stdlib.h>
15295 int
15296 main ()
15297 {
15298
15299 FILE *f = fopen ("conftest.val", "w");
15300 if (! f)
15301 exit (1);
15302 if (((long) (sizeof (void *))) < 0)
15303 {
15304 long i = longval ();
15305 if (i != ((long) (sizeof (void *))))
15306 exit (1);
15307 fprintf (f, "%ld\n", i);
15308 }
15309 else
15310 {
15311 unsigned long i = ulongval ();
15312 if (i != ((long) (sizeof (void *))))
15313 exit (1);
15314 fprintf (f, "%lu\n", i);
15315 }
15316 exit (ferror (f) || fclose (f) != 0);
15317
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_sizeof_void_p=`cat conftest.val`
15334 else
15335 echo "$as_me: program exited with status $ac_status" >&5
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ( exit $ac_status )
15340 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15341 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15343 See \`config.log' for more details." >&5
15344 echo "$as_me: error: cannot compute sizeof (void *), 77
15345 See \`config.log' for more details." >&2;}
15346 { (exit 1); exit 1; }; }; }
15347 fi
15348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 fi
15351 rm -f conftest.val
15352 else
15353 ac_cv_sizeof_void_p=0
15354 fi
15355 fi
15356 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15357 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15358 cat >>confdefs.h <<_ACEOF
15359 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15360 _ACEOF
15361
15362 ;;
15363 esac
15364
15365 # Lacking an uint64_t? Test size of long
15366 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15367 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
15368 echo $ECHO_N "checking for long... $ECHO_C" >&6
15369 if test "${ac_cv_type_long+set}" = set; then
15370 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 else
15372 cat >conftest.$ac_ext <<_ACEOF
15373 /* confdefs.h. */
15374 _ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 $ac_includes_default
15379 int
15380 main ()
15381 {
15382 if ((long *) 0)
15383 return 0;
15384 if (sizeof (long))
15385 return 0;
15386 ;
15387 return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15392 (eval $ac_compile) 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } &&
15399 { ac_try='test -z "$ac_c_werror_flag"
15400 || test ! -s conftest.err'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; } &&
15406 { ac_try='test -s conftest.$ac_objext'
15407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; }; then
15412 ac_cv_type_long=yes
15413 else
15414 echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ac_cv_type_long=no
15418 fi
15419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15420 fi
15421 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15422 echo "${ECHO_T}$ac_cv_type_long" >&6
15423
15424 echo "$as_me:$LINENO: checking size of long" >&5
15425 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15426 if test "${ac_cv_sizeof_long+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429 if test "$ac_cv_type_long" = yes; then
15430 # The cast to unsigned long works around a bug in the HP C Compiler
15431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15433 # This bug is HP SR number 8606223364.
15434 if test "$cross_compiling" = yes; then
15435 # Depending upon the size, compute the lo and hi bounds.
15436 cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h. */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 $ac_includes_default
15443 int
15444 main ()
15445 {
15446 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15447 test_array [0] = 0
15448
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 rm -f conftest.$ac_objext
15454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15455 (eval $ac_compile) 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } &&
15462 { ac_try='test -z "$ac_c_werror_flag"
15463 || test ! -s conftest.err'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15466 ac_status=$?
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; } &&
15469 { ac_try='test -s conftest.$ac_objext'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 ac_lo=0 ac_mid=0
15476 while :; do
15477 cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h. */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 $ac_includes_default
15484 int
15485 main ()
15486 {
15487 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15488 test_array [0] = 0
15489
15490 ;
15491 return 0;
15492 }
15493 _ACEOF
15494 rm -f conftest.$ac_objext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest.$ac_objext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_hi=$ac_mid; break
15517 else
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ac_lo=`expr $ac_mid + 1`
15522 if test $ac_lo -le $ac_mid; then
15523 ac_lo= ac_hi=
15524 break
15525 fi
15526 ac_mid=`expr 2 '*' $ac_mid + 1`
15527 fi
15528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15529 done
15530 else
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 $ac_includes_default
15541 int
15542 main ()
15543 {
15544 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15545 test_array [0] = 0
15546
15547 ;
15548 return 0;
15549 }
15550 _ACEOF
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>conftest.er1
15554 ac_status=$?
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -z "$ac_c_werror_flag"
15561 || test ! -s conftest.err'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_hi=-1 ac_mid=-1
15574 while :; do
15575 cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h. */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 $ac_includes_default
15582 int
15583 main ()
15584 {
15585 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15586 test_array [0] = 0
15587
15588 ;
15589 return 0;
15590 }
15591 _ACEOF
15592 rm -f conftest.$ac_objext
15593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15594 (eval $ac_compile) 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
15601 { ac_try='test -z "$ac_c_werror_flag"
15602 || test ! -s conftest.err'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_lo=$ac_mid; break
15615 else
15616 echo "$as_me: failed program was:" >&5
15617 sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 ac_hi=`expr '(' $ac_mid ')' - 1`
15620 if test $ac_mid -le $ac_hi; then
15621 ac_lo= ac_hi=
15622 break
15623 fi
15624 ac_mid=`expr 2 '*' $ac_mid`
15625 fi
15626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15627 done
15628 else
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15631
15632 ac_lo= ac_hi=
15633 fi
15634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15635 fi
15636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15637 # Binary search between lo and hi bounds.
15638 while test "x$ac_lo" != "x$ac_hi"; do
15639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 $ac_includes_default
15647 int
15648 main ()
15649 {
15650 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15651 test_array [0] = 0
15652
15653 ;
15654 return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
15666 { ac_try='test -z "$ac_c_werror_flag"
15667 || test ! -s conftest.err'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; } &&
15673 { ac_try='test -s conftest.$ac_objext'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_hi=$ac_mid
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_lo=`expr '(' $ac_mid ')' + 1`
15685 fi
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 done
15688 case $ac_lo in
15689 ?*) ac_cv_sizeof_long=$ac_lo;;
15690 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15691 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15693 See \`config.log' for more details." >&5
15694 echo "$as_me: error: cannot compute sizeof (long), 77
15695 See \`config.log' for more details." >&2;}
15696 { (exit 1); exit 1; }; }; } ;;
15697 esac
15698 else
15699 if test "$cross_compiling" = yes; then
15700 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15701 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15702 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15703 See \`config.log' for more details." >&5
15704 echo "$as_me: error: cannot run test program while cross compiling
15705 See \`config.log' for more details." >&2;}
15706 { (exit 1); exit 1; }; }; }
15707 else
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 long longval () { return (long) (sizeof (long)); }
15716 unsigned long ulongval () { return (long) (sizeof (long)); }
15717 #include <stdio.h>
15718 #include <stdlib.h>
15719 int
15720 main ()
15721 {
15722
15723 FILE *f = fopen ("conftest.val", "w");
15724 if (! f)
15725 exit (1);
15726 if (((long) (sizeof (long))) < 0)
15727 {
15728 long i = longval ();
15729 if (i != ((long) (sizeof (long))))
15730 exit (1);
15731 fprintf (f, "%ld\n", i);
15732 }
15733 else
15734 {
15735 unsigned long i = ulongval ();
15736 if (i != ((long) (sizeof (long))))
15737 exit (1);
15738 fprintf (f, "%lu\n", i);
15739 }
15740 exit (ferror (f) || fclose (f) != 0);
15741
15742 ;
15743 return 0;
15744 }
15745 _ACEOF
15746 rm -f conftest$ac_exeext
15747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15748 (eval $ac_link) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_sizeof_long=`cat conftest.val`
15758 else
15759 echo "$as_me: program exited with status $ac_status" >&5
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 ( exit $ac_status )
15764 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15765 echo "$as_me: error: in \`$ac_pwd':" >&2;}
15766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15767 See \`config.log' for more details." >&5
15768 echo "$as_me: error: cannot compute sizeof (long), 77
15769 See \`config.log' for more details." >&2;}
15770 { (exit 1); exit 1; }; }; }
15771 fi
15772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15773 fi
15774 fi
15775 rm -f conftest.val
15776 else
15777 ac_cv_sizeof_long=0
15778 fi
15779 fi
15780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15781 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15782 cat >>confdefs.h <<_ACEOF
15783 #define SIZEOF_LONG $ac_cv_sizeof_long
15784 _ACEOF
15785
15786 ;;
15787 esac
15788
15789 if test $acx_cv_header_stdint = stddef.h; then
15790 # Lacking a good header? Test size of everything and deduce all types.
15791 echo "$as_me:$LINENO: checking for int" >&5
15792 echo $ECHO_N "checking for int... $ECHO_C" >&6
15793 if test "${ac_cv_type_int+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h. */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 $ac_includes_default
15803 int
15804 main ()
15805 {
15806 if ((int *) 0)
15807 return 0;
15808 if (sizeof (int))
15809 return 0;
15810 ;
15811 return 0;
15812 }
15813 _ACEOF
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15817 ac_status=$?
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag"
15824 || test ! -s conftest.err'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_cv_type_int=yes
15837 else
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 ac_cv_type_int=no
15842 fi
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15844 fi
15845 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15846 echo "${ECHO_T}$ac_cv_type_int" >&6
15847
15848 echo "$as_me:$LINENO: checking size of int" >&5
15849 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15850 if test "${ac_cv_sizeof_int+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853 if test "$ac_cv_type_int" = yes; then
15854 # The cast to unsigned long works around a bug in the HP C Compiler
15855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15857 # This bug is HP SR number 8606223364.
15858 if test "$cross_compiling" = yes; then
15859 # Depending upon the size, compute the lo and hi bounds.
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 int
15868 main ()
15869 {
15870 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15871 test_array [0] = 0
15872
15873 ;
15874 return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879 (eval $ac_compile) 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } &&
15886 { ac_try='test -z "$ac_c_werror_flag"
15887 || test ! -s conftest.err'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_lo=0 ac_mid=0
15900 while :; do
15901 cat >conftest.$ac_ext <<_ACEOF
15902 /* confdefs.h. */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h. */
15907 $ac_includes_default
15908 int
15909 main ()
15910 {
15911 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15912 test_array [0] = 0
15913
15914 ;
15915 return 0;
15916 }
15917 _ACEOF
15918 rm -f conftest.$ac_objext
15919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15920 (eval $ac_compile) 2>conftest.er1
15921 ac_status=$?
15922 grep -v '^ *+' conftest.er1 >conftest.err
15923 rm -f conftest.er1
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); } &&
15927 { ac_try='test -z "$ac_c_werror_flag"
15928 || test ! -s conftest.err'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; } &&
15934 { ac_try='test -s conftest.$ac_objext'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_hi=$ac_mid; break
15941 else
15942 echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_lo=`expr $ac_mid + 1`
15946 if test $ac_lo -le $ac_mid; then
15947 ac_lo= ac_hi=
15948 break
15949 fi
15950 ac_mid=`expr 2 '*' $ac_mid + 1`
15951 fi
15952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15953 done
15954 else
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 cat >conftest.$ac_ext <<_ACEOF
15959 /* confdefs.h. */
15960 _ACEOF
15961 cat confdefs.h >>conftest.$ac_ext
15962 cat >>conftest.$ac_ext <<_ACEOF
15963 /* end confdefs.h. */
15964 $ac_includes_default
15965 int
15966 main ()
15967 {
15968 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15969 test_array [0] = 0
15970
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 rm -f conftest.$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15988 ac_status=$?
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_hi=-1 ac_mid=-1
15998 while :; do
15999 cat >conftest.$ac_ext <<_ACEOF
16000 /* confdefs.h. */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16005 $ac_includes_default
16006 int
16007 main ()
16008 {
16009 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16010 test_array [0] = 0
16011
16012 ;
16013 return 0;
16014 }
16015 _ACEOF
16016 rm -f conftest.$ac_objext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018 (eval $ac_compile) 2>conftest.er1
16019 ac_status=$?
16020 grep -v '^ *+' conftest.er1 >conftest.err
16021 rm -f conftest.er1
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag"
16026 || test ! -s conftest.err'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_lo=$ac_mid; break
16039 else
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 ac_hi=`expr '(' $ac_mid ')' - 1`
16044 if test $ac_mid -le $ac_hi; then
16045 ac_lo= ac_hi=
16046 break
16047 fi
16048 ac_mid=`expr 2 '*' $ac_mid`
16049 fi
16050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16051 done
16052 else
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16055
16056 ac_lo= ac_hi=
16057 fi
16058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16059 fi
16060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061 # Binary search between lo and hi bounds.
16062 while test "x$ac_lo" != "x$ac_hi"; do
16063 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16064 cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h. */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h. */
16070 $ac_includes_default
16071 int
16072 main ()
16073 {
16074 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16075 test_array [0] = 0
16076
16077 ;
16078 return 0;
16079 }
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag"
16091 || test ! -s conftest.err'
16092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 ac_hi=$ac_mid
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108 ac_lo=`expr '(' $ac_mid ')' + 1`
16109 fi
16110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16111 done
16112 case $ac_lo in
16113 ?*) ac_cv_sizeof_int=$ac_lo;;
16114 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16115 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16117 See \`config.log' for more details." >&5
16118 echo "$as_me: error: cannot compute sizeof (int), 77
16119 See \`config.log' for more details." >&2;}
16120 { (exit 1); exit 1; }; }; } ;;
16121 esac
16122 else
16123 if test "$cross_compiling" = yes; then
16124 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16125 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16127 See \`config.log' for more details." >&5
16128 echo "$as_me: error: cannot run test program while cross compiling
16129 See \`config.log' for more details." >&2;}
16130 { (exit 1); exit 1; }; }; }
16131 else
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 $ac_includes_default
16139 long longval () { return (long) (sizeof (int)); }
16140 unsigned long ulongval () { return (long) (sizeof (int)); }
16141 #include <stdio.h>
16142 #include <stdlib.h>
16143 int
16144 main ()
16145 {
16146
16147 FILE *f = fopen ("conftest.val", "w");
16148 if (! f)
16149 exit (1);
16150 if (((long) (sizeof (int))) < 0)
16151 {
16152 long i = longval ();
16153 if (i != ((long) (sizeof (int))))
16154 exit (1);
16155 fprintf (f, "%ld\n", i);
16156 }
16157 else
16158 {
16159 unsigned long i = ulongval ();
16160 if (i != ((long) (sizeof (int))))
16161 exit (1);
16162 fprintf (f, "%lu\n", i);
16163 }
16164 exit (ferror (f) || fclose (f) != 0);
16165
16166 ;
16167 return 0;
16168 }
16169 _ACEOF
16170 rm -f conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_sizeof_int=`cat conftest.val`
16182 else
16183 echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 ( exit $ac_status )
16188 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16189 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16191 See \`config.log' for more details." >&5
16192 echo "$as_me: error: cannot compute sizeof (int), 77
16193 See \`config.log' for more details." >&2;}
16194 { (exit 1); exit 1; }; }; }
16195 fi
16196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16197 fi
16198 fi
16199 rm -f conftest.val
16200 else
16201 ac_cv_sizeof_int=0
16202 fi
16203 fi
16204 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16205 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16206 cat >>confdefs.h <<_ACEOF
16207 #define SIZEOF_INT $ac_cv_sizeof_int
16208 _ACEOF
16209
16210
16211 echo "$as_me:$LINENO: checking for short" >&5
16212 echo $ECHO_N "checking for short... $ECHO_C" >&6
16213 if test "${ac_cv_type_short+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 cat >conftest.$ac_ext <<_ACEOF
16217 /* confdefs.h. */
16218 _ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16223 int
16224 main ()
16225 {
16226 if ((short *) 0)
16227 return 0;
16228 if (sizeof (short))
16229 return 0;
16230 ;
16231 return 0;
16232 }
16233 _ACEOF
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>conftest.er1
16237 ac_status=$?
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } &&
16243 { ac_try='test -z "$ac_c_werror_flag"
16244 || test ! -s conftest.err'
16245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246 (eval $ac_try) 2>&5
16247 ac_status=$?
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); }; } &&
16250 { ac_try='test -s conftest.$ac_objext'
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; }; then
16256 ac_cv_type_short=yes
16257 else
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16260
16261 ac_cv_type_short=no
16262 fi
16263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16264 fi
16265 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16266 echo "${ECHO_T}$ac_cv_type_short" >&6
16267
16268 echo "$as_me:$LINENO: checking size of short" >&5
16269 echo $ECHO_N "checking size of short... $ECHO_C" >&6
16270 if test "${ac_cv_sizeof_short+set}" = set; then
16271 echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273 if test "$ac_cv_type_short" = yes; then
16274 # The cast to unsigned long works around a bug in the HP C Compiler
16275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16277 # This bug is HP SR number 8606223364.
16278 if test "$cross_compiling" = yes; then
16279 # Depending upon the size, compute the lo and hi bounds.
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 $ac_includes_default
16287 int
16288 main ()
16289 {
16290 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16291 test_array [0] = 0
16292
16293 ;
16294 return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_lo=0 ac_mid=0
16320 while :; do
16321 cat >conftest.$ac_ext <<_ACEOF
16322 /* confdefs.h. */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16328 int
16329 main ()
16330 {
16331 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16332 test_array [0] = 0
16333
16334 ;
16335 return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext
16339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16340 (eval $ac_compile) 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
16347 { ac_try='test -z "$ac_c_werror_flag"
16348 || test ! -s conftest.err'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_hi=$ac_mid; break
16361 else
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 ac_lo=`expr $ac_mid + 1`
16366 if test $ac_lo -le $ac_mid; then
16367 ac_lo= ac_hi=
16368 break
16369 fi
16370 ac_mid=`expr 2 '*' $ac_mid + 1`
16371 fi
16372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16373 done
16374 else
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 $ac_includes_default
16385 int
16386 main ()
16387 {
16388 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16389 test_array [0] = 0
16390
16391 ;
16392 return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16397 (eval $ac_compile) 2>conftest.er1
16398 ac_status=$?
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -z "$ac_c_werror_flag"
16405 || test ! -s conftest.err'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_hi=-1 ac_mid=-1
16418 while :; do
16419 cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h. */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 $ac_includes_default
16426 int
16427 main ()
16428 {
16429 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16430 test_array [0] = 0
16431
16432 ;
16433 return 0;
16434 }
16435 _ACEOF
16436 rm -f conftest.$ac_objext
16437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16438 (eval $ac_compile) 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } &&
16445 { ac_try='test -z "$ac_c_werror_flag"
16446 || test ! -s conftest.err'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; } &&
16452 { ac_try='test -s conftest.$ac_objext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 ac_lo=$ac_mid; break
16459 else
16460 echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463 ac_hi=`expr '(' $ac_mid ')' - 1`
16464 if test $ac_mid -le $ac_hi; then
16465 ac_lo= ac_hi=
16466 break
16467 fi
16468 ac_mid=`expr 2 '*' $ac_mid`
16469 fi
16470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16471 done
16472 else
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 ac_lo= ac_hi=
16477 fi
16478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16481 # Binary search between lo and hi bounds.
16482 while test "x$ac_lo" != "x$ac_hi"; do
16483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 int
16492 main ()
16493 {
16494 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16495 test_array [0] = 0
16496
16497 ;
16498 return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag"
16511 || test ! -s conftest.err'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; } &&
16517 { ac_try='test -s conftest.$ac_objext'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_hi=$ac_mid
16524 else
16525 echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ac_lo=`expr '(' $ac_mid ')' + 1`
16529 fi
16530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16531 done
16532 case $ac_lo in
16533 ?*) ac_cv_sizeof_short=$ac_lo;;
16534 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16537 See \`config.log' for more details." >&5
16538 echo "$as_me: error: cannot compute sizeof (short), 77
16539 See \`config.log' for more details." >&2;}
16540 { (exit 1); exit 1; }; }; } ;;
16541 esac
16542 else
16543 if test "$cross_compiling" = yes; then
16544 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16545 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16546 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16547 See \`config.log' for more details." >&5
16548 echo "$as_me: error: cannot run test program while cross compiling
16549 See \`config.log' for more details." >&2;}
16550 { (exit 1); exit 1; }; }; }
16551 else
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 long longval () { return (long) (sizeof (short)); }
16560 unsigned long ulongval () { return (long) (sizeof (short)); }
16561 #include <stdio.h>
16562 #include <stdlib.h>
16563 int
16564 main ()
16565 {
16566
16567 FILE *f = fopen ("conftest.val", "w");
16568 if (! f)
16569 exit (1);
16570 if (((long) (sizeof (short))) < 0)
16571 {
16572 long i = longval ();
16573 if (i != ((long) (sizeof (short))))
16574 exit (1);
16575 fprintf (f, "%ld\n", i);
16576 }
16577 else
16578 {
16579 unsigned long i = ulongval ();
16580 if (i != ((long) (sizeof (short))))
16581 exit (1);
16582 fprintf (f, "%lu\n", i);
16583 }
16584 exit (ferror (f) || fclose (f) != 0);
16585
16586 ;
16587 return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_sizeof_short=`cat conftest.val`
16602 else
16603 echo "$as_me: program exited with status $ac_status" >&5
16604 echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16606
16607 ( exit $ac_status )
16608 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16609 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16611 See \`config.log' for more details." >&5
16612 echo "$as_me: error: cannot compute sizeof (short), 77
16613 See \`config.log' for more details." >&2;}
16614 { (exit 1); exit 1; }; }; }
16615 fi
16616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16617 fi
16618 fi
16619 rm -f conftest.val
16620 else
16621 ac_cv_sizeof_short=0
16622 fi
16623 fi
16624 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16625 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16626 cat >>confdefs.h <<_ACEOF
16627 #define SIZEOF_SHORT $ac_cv_sizeof_short
16628 _ACEOF
16629
16630
16631 echo "$as_me:$LINENO: checking for char" >&5
16632 echo $ECHO_N "checking for char... $ECHO_C" >&6
16633 if test "${ac_cv_type_char+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 $ac_includes_default
16643 int
16644 main ()
16645 {
16646 if ((char *) 0)
16647 return 0;
16648 if (sizeof (char))
16649 return 0;
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_char=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_type_char=no
16682 fi
16683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16686 echo "${ECHO_T}$ac_cv_type_char" >&6
16687
16688 echo "$as_me:$LINENO: checking size of char" >&5
16689 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16690 if test "${ac_cv_sizeof_char+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 if test "$ac_cv_type_char" = yes; then
16694 # The cast to unsigned long works around a bug in the HP C Compiler
16695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16697 # This bug is HP SR number 8606223364.
16698 if test "$cross_compiling" = yes; then
16699 # Depending upon the size, compute the lo and hi bounds.
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h. */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16706 $ac_includes_default
16707 int
16708 main ()
16709 {
16710 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16711 test_array [0] = 0
16712
16713 ;
16714 return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16719 (eval $ac_compile) 2>conftest.er1
16720 ac_status=$?
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_lo=0 ac_mid=0
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h. */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 $ac_includes_default
16748 int
16749 main ()
16750 {
16751 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16752 test_array [0] = 0
16753
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_hi=$ac_mid; break
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 ac_lo=`expr $ac_mid + 1`
16786 if test $ac_lo -le $ac_mid; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid + 1`
16791 fi
16792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16793 done
16794 else
16795 echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798 cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h. */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16804 $ac_includes_default
16805 int
16806 main ()
16807 {
16808 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16809 test_array [0] = 0
16810
16811 ;
16812 return 0;
16813 }
16814 _ACEOF
16815 rm -f conftest.$ac_objext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_hi=-1 ac_mid=-1
16838 while :; do
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16846 int
16847 main ()
16848 {
16849 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16850 test_array [0] = 0
16851
16852 ;
16853 return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_lo=$ac_mid; break
16879 else
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_hi=`expr '(' $ac_mid ')' - 1`
16884 if test $ac_mid -le $ac_hi; then
16885 ac_lo= ac_hi=
16886 break
16887 fi
16888 ac_mid=`expr 2 '*' $ac_mid`
16889 fi
16890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16891 done
16892 else
16893 echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896 ac_lo= ac_hi=
16897 fi
16898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16899 fi
16900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901 # Binary search between lo and hi bounds.
16902 while test "x$ac_lo" != "x$ac_hi"; do
16903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 $ac_includes_default
16911 int
16912 main ()
16913 {
16914 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16915 test_array [0] = 0
16916
16917 ;
16918 return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16923 (eval $ac_compile) 2>conftest.er1
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_hi=$ac_mid
16944 else
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 ac_lo=`expr '(' $ac_mid ')' + 1`
16949 fi
16950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16951 done
16952 case $ac_lo in
16953 ?*) ac_cv_sizeof_char=$ac_lo;;
16954 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16955 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16957 See \`config.log' for more details." >&5
16958 echo "$as_me: error: cannot compute sizeof (char), 77
16959 See \`config.log' for more details." >&2;}
16960 { (exit 1); exit 1; }; }; } ;;
16961 esac
16962 else
16963 if test "$cross_compiling" = yes; then
16964 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16965 echo "$as_me: error: in \`$ac_pwd':" >&2;}
16966 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16967 See \`config.log' for more details." >&5
16968 echo "$as_me: error: cannot run test program while cross compiling
16969 See \`config.log' for more details." >&2;}
16970 { (exit 1); exit 1; }; }; }
16971 else
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 long longval () { return (long) (sizeof (char)); }
16980 unsigned long ulongval () { return (long) (sizeof (char)); }
16981 #include <stdio.h>
16982 #include <stdlib.h>
16983 int
16984 main ()
16985 {
16986
16987 FILE *f = fopen ("conftest.val", "w");
16988 if (! f)
16989 exit (1);
16990 if (((long) (sizeof (char))) < 0)
16991 {
16992 long i = longval ();
16993 if (i != ((long) (sizeof (char))))
16994 exit (1);
16995 fprintf (f, "%ld\n", i);
16996 }
16997 else
16998 {
16999 unsigned long i = ulongval ();
17000 if (i != ((long) (sizeof (char))))
17001 exit (1);
17002 fprintf (f, "%lu\n", i);
17003 }
17004 exit (ferror (f) || fclose (f) != 0);
17005
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 rm -f conftest$ac_exeext
17011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17012 (eval $ac_link) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_sizeof_char=`cat conftest.val`
17022 else
17023 echo "$as_me: program exited with status $ac_status" >&5
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027 ( exit $ac_status )
17028 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17029 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17031 See \`config.log' for more details." >&5
17032 echo "$as_me: error: cannot compute sizeof (char), 77
17033 See \`config.log' for more details." >&2;}
17034 { (exit 1); exit 1; }; }; }
17035 fi
17036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17037 fi
17038 fi
17039 rm -f conftest.val
17040 else
17041 ac_cv_sizeof_char=0
17042 fi
17043 fi
17044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17045 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17046 cat >>confdefs.h <<_ACEOF
17047 #define SIZEOF_CHAR $ac_cv_sizeof_char
17048 _ACEOF
17049
17050
17051
17052 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
17053 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
17054 case "$ac_cv_sizeof_char" in
17055 1) acx_cv_type_int8_t=char ;;
17056 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
17057 echo "$as_me: error: no 8-bit type" >&2;}
17058 { (exit please report a bug); exit please report a bug; }; }
17059 esac
17060 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
17061 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
17062
17063 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
17064 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
17065 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
17066 2:*) acx_cv_type_int16_t=int ;;
17067 *:2) acx_cv_type_int16_t=short ;;
17068 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
17069 echo "$as_me: error: no 16-bit type" >&2;}
17070 { (exit please report a bug); exit please report a bug; }; }
17071 esac
17072 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
17073 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
17074
17075 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
17076 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
17077 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
17078 4:*) acx_cv_type_int32_t=int ;;
17079 *:4) acx_cv_type_int32_t=long ;;
17080 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
17081 echo "$as_me: error: no 32-bit type" >&2;}
17082 { (exit please report a bug); exit please report a bug; }; }
17083 esac
17084 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
17085 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
17086 fi
17087
17088 # These tests are here to make the output prettier
17089
17090 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
17091 case "$ac_cv_sizeof_long" in
17092 8) acx_cv_type_int64_t=long ;;
17093 esac
17094 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
17095 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
17096 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
17097 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
17098 fi
17099
17100 # Now we can use the above types
17101
17102 if test "$ac_cv_type_uintptr_t" != yes; then
17103 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
17104 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
17105 case $ac_cv_sizeof_void_p in
17106 2) acx_cv_type_intptr_t=int16_t ;;
17107 4) acx_cv_type_intptr_t=int32_t ;;
17108 8) acx_cv_type_intptr_t=int64_t ;;
17109 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
17110 echo "$as_me: error: no equivalent for intptr_t" >&2;}
17111 { (exit please report a bug); exit please report a bug; }; }
17112 esac
17113 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
17114 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
17115 fi
17116
17117 # ----------------- done all checks, emit header -------------
17118 ac_config_commands="$ac_config_commands bfd_stdint.h"
17119
17120
17121
17122 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17123 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17124 if test "${ac_cv_header_time+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <sys/types.h>
17134 #include <sys/time.h>
17135 #include <time.h>
17136
17137 int
17138 main ()
17139 {
17140 if ((struct tm *) 0)
17141 return 0;
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_header_time=yes
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_cv_header_time=no
17174 fi
17175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17176 fi
17177 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17178 echo "${ECHO_T}$ac_cv_header_time" >&6
17179 if test $ac_cv_header_time = yes; then
17180
17181 cat >>confdefs.h <<\_ACEOF
17182 #define TIME_WITH_SYS_TIME 1
17183 _ACEOF
17184
17185 fi
17186
17187
17188
17189
17190
17191
17192 ac_header_dirent=no
17193 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17194 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17195 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
17196 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
17197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 #include <sys/types.h>
17207 #include <$ac_hdr>
17208
17209 int
17210 main ()
17211 {
17212 if ((DIR *) 0)
17213 return 0;
17214 ;
17215 return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17220 (eval $ac_compile) 2>conftest.er1
17221 ac_status=$?
17222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); } &&
17227 { ac_try='test -z "$ac_c_werror_flag"
17228 || test ! -s conftest.err'
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240 eval "$as_ac_Header=yes"
17241 else
17242 echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 eval "$as_ac_Header=no"
17246 fi
17247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17248 fi
17249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17252 cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
17254 _ACEOF
17255
17256 ac_header_dirent=$ac_hdr; break
17257 fi
17258
17259 done
17260 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17261 if test $ac_header_dirent = dirent.h; then
17262 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17263 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17264 if test "${ac_cv_search_opendir+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 else
17267 ac_func_search_save_LIBS=$LIBS
17268 ac_cv_search_opendir=no
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275
17276 /* Override any gcc2 internal prototype to avoid an error. */
17277 #ifdef __cplusplus
17278 extern "C"
17279 #endif
17280 /* We use char because int might match the return type of a gcc2
17281 builtin and then its argument prototype would still apply. */
17282 char opendir ();
17283 int
17284 main ()
17285 {
17286 opendir ();
17287 ;
17288 return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>conftest.er1
17294 ac_status=$?
17295 grep -v '^ *+' conftest.er1 >conftest.err
17296 rm -f conftest.er1
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -z "$ac_c_werror_flag"
17301 || test ! -s conftest.err'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; } &&
17307 { ac_try='test -s conftest$ac_exeext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_cv_search_opendir="none required"
17314 else
17315 echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318 fi
17319 rm -f conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
17321 if test "$ac_cv_search_opendir" = no; then
17322 for ac_lib in dir; do
17323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17324 cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h. */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330
17331 /* Override any gcc2 internal prototype to avoid an error. */
17332 #ifdef __cplusplus
17333 extern "C"
17334 #endif
17335 /* We use char because int might match the return type of a gcc2
17336 builtin and then its argument prototype would still apply. */
17337 char opendir ();
17338 int
17339 main ()
17340 {
17341 opendir ();
17342 ;
17343 return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17348 (eval $ac_link) 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest$ac_exeext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_search_opendir="-l$ac_lib"
17369 break
17370 else
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374 fi
17375 rm -f conftest.err conftest.$ac_objext \
17376 conftest$ac_exeext conftest.$ac_ext
17377 done
17378 fi
17379 LIBS=$ac_func_search_save_LIBS
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17382 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17383 if test "$ac_cv_search_opendir" != no; then
17384 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17385
17386 fi
17387
17388 else
17389 echo "$as_me:$LINENO: checking for library containing opendir" >&5
17390 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
17391 if test "${ac_cv_search_opendir+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17393 else
17394 ac_func_search_save_LIBS=$LIBS
17395 ac_cv_search_opendir=no
17396 cat >conftest.$ac_ext <<_ACEOF
17397 /* confdefs.h. */
17398 _ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402
17403 /* Override any gcc2 internal prototype to avoid an error. */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 /* We use char because int might match the return type of a gcc2
17408 builtin and then its argument prototype would still apply. */
17409 char opendir ();
17410 int
17411 main ()
17412 {
17413 opendir ();
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17420 (eval $ac_link) 2>conftest.er1
17421 ac_status=$?
17422 grep -v '^ *+' conftest.er1 >conftest.err
17423 rm -f conftest.er1
17424 cat conftest.err >&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } &&
17427 { ac_try='test -z "$ac_c_werror_flag"
17428 || test ! -s conftest.err'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17431 ac_status=$?
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; } &&
17434 { ac_try='test -s conftest$ac_exeext'
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_search_opendir="none required"
17441 else
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445 fi
17446 rm -f conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17448 if test "$ac_cv_search_opendir" = no; then
17449 for ac_lib in x; do
17450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17451 cat >conftest.$ac_ext <<_ACEOF
17452 /* confdefs.h. */
17453 _ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457
17458 /* Override any gcc2 internal prototype to avoid an error. */
17459 #ifdef __cplusplus
17460 extern "C"
17461 #endif
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17464 char opendir ();
17465 int
17466 main ()
17467 {
17468 opendir ();
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_c_werror_flag"
17483 || test ! -s conftest.err'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest$ac_exeext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 ac_cv_search_opendir="-l$ac_lib"
17496 break
17497 else
17498 echo "$as_me: failed program was:" >&5
17499 sed 's/^/| /' conftest.$ac_ext >&5
17500
17501 fi
17502 rm -f conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17504 done
17505 fi
17506 LIBS=$ac_func_search_save_LIBS
17507 fi
17508 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
17509 echo "${ECHO_T}$ac_cv_search_opendir" >&6
17510 if test "$ac_cv_search_opendir" != no; then
17511 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
17512
17513 fi
17514
17515 fi
17516
17517 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
17518 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
17519 if test "${gcc_cv_header_string+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17528 #include <string.h>
17529 #include <strings.h>
17530 int
17531 main ()
17532 {
17533
17534 ;
17535 return 0;
17536 }
17537 _ACEOF
17538 rm -f conftest.$ac_objext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17540 (eval $ac_compile) 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
17547 { ac_try='test -z "$ac_c_werror_flag"
17548 || test ! -s conftest.err'
17549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17550 (eval $ac_try) 2>&5
17551 ac_status=$?
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; } &&
17554 { ac_try='test -s conftest.$ac_objext'
17555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17556 (eval $ac_try) 2>&5
17557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; }; then
17560 gcc_cv_header_string=yes
17561 else
17562 echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 gcc_cv_header_string=no
17566 fi
17567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17568 fi
17569 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
17570 echo "${ECHO_T}$gcc_cv_header_string" >&6
17571 if test $gcc_cv_header_string = yes; then
17572
17573 cat >>confdefs.h <<\_ACEOF
17574 #define STRING_WITH_STRINGS 1
17575 _ACEOF
17576
17577 fi
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
17588 do
17589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17590 echo "$as_me:$LINENO: checking for $ac_func" >&5
17591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17592 if eval "test \"\${$as_ac_var+set}\" = set"; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17603 #define $ac_func innocuous_$ac_func
17604
17605 /* System header to define __stub macros and hopefully few prototypes,
17606 which can conflict with char $ac_func (); below.
17607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17608 <limits.h> exists even on freestanding compilers. */
17609
17610 #ifdef __STDC__
17611 # include <limits.h>
17612 #else
17613 # include <assert.h>
17614 #endif
17615
17616 #undef $ac_func
17617
17618 /* Override any gcc2 internal prototype to avoid an error. */
17619 #ifdef __cplusplus
17620 extern "C"
17621 {
17622 #endif
17623 /* We use char because int might match the return type of a gcc2
17624 builtin and then its argument prototype would still apply. */
17625 char $ac_func ();
17626 /* The GNU C library defines this for functions which it implements
17627 to always fail with ENOSYS. Some functions are actually named
17628 something starting with __ and the normal name is an alias. */
17629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17630 choke me
17631 #else
17632 char (*f) () = $ac_func;
17633 #endif
17634 #ifdef __cplusplus
17635 }
17636 #endif
17637
17638 int
17639 main ()
17640 {
17641 return f != $ac_func;
17642 ;
17643 return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648 (eval $ac_link) 2>conftest.er1
17649 ac_status=$?
17650 grep -v '^ *+' conftest.er1 >conftest.err
17651 rm -f conftest.er1
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); } &&
17655 { ac_try='test -z "$ac_c_werror_flag"
17656 || test ! -s conftest.err'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; } &&
17662 { ac_try='test -s conftest$ac_exeext'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17669 else
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17672
17673 eval "$as_ac_var=no"
17674 fi
17675 rm -f conftest.err conftest.$ac_objext \
17676 conftest$ac_exeext conftest.$ac_ext
17677 fi
17678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17680 if test `eval echo '${'$as_ac_var'}'` = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17683 _ACEOF
17684
17685 fi
17686 done
17687
17688
17689 for ac_func in strtoull
17690 do
17691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17692 echo "$as_me:$LINENO: checking for $ac_func" >&5
17693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17694 if eval "test \"\${$as_ac_var+set}\" = set"; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h. */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h. */
17703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17705 #define $ac_func innocuous_$ac_func
17706
17707 /* System header to define __stub macros and hopefully few prototypes,
17708 which can conflict with char $ac_func (); below.
17709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17710 <limits.h> exists even on freestanding compilers. */
17711
17712 #ifdef __STDC__
17713 # include <limits.h>
17714 #else
17715 # include <assert.h>
17716 #endif
17717
17718 #undef $ac_func
17719
17720 /* Override any gcc2 internal prototype to avoid an error. */
17721 #ifdef __cplusplus
17722 extern "C"
17723 {
17724 #endif
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727 char $ac_func ();
17728 /* The GNU C library defines this for functions which it implements
17729 to always fail with ENOSYS. Some functions are actually named
17730 something starting with __ and the normal name is an alias. */
17731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17732 choke me
17733 #else
17734 char (*f) () = $ac_func;
17735 #endif
17736 #ifdef __cplusplus
17737 }
17738 #endif
17739
17740 int
17741 main ()
17742 {
17743 return f != $ac_func;
17744 ;
17745 return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext conftest$ac_exeext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17750 (eval $ac_link) 2>conftest.er1
17751 ac_status=$?
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest$ac_exeext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 eval "$as_ac_var=yes"
17771 else
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 eval "$as_ac_var=no"
17776 fi
17777 rm -f conftest.err conftest.$ac_objext \
17778 conftest$ac_exeext conftest.$ac_ext
17779 fi
17780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17785 _ACEOF
17786
17787 fi
17788 done
17789
17790
17791 echo "$as_me:$LINENO: checking whether basename is declared" >&5
17792 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
17793 if test "${ac_cv_have_decl_basename+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 else
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 $ac_includes_default
17803 int
17804 main ()
17805 {
17806 #ifndef basename
17807 char *p = (char *) basename;
17808 #endif
17809
17810 ;
17811 return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag"
17824 || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_have_decl_basename=yes
17837 else
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_cv_have_decl_basename=no
17842 fi
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 fi
17845 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
17846 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
17847 if test $ac_cv_have_decl_basename = yes; then
17848
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_DECL_BASENAME 1
17851 _ACEOF
17852
17853
17854 else
17855 cat >>confdefs.h <<_ACEOF
17856 #define HAVE_DECL_BASENAME 0
17857 _ACEOF
17858
17859
17860 fi
17861
17862
17863 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
17864 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
17865 if test "${ac_cv_have_decl_ftello+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17867 else
17868 cat >conftest.$ac_ext <<_ACEOF
17869 /* confdefs.h. */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 $ac_includes_default
17875 int
17876 main ()
17877 {
17878 #ifndef ftello
17879 char *p = (char *) ftello;
17880 #endif
17881
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17888 (eval $ac_compile) 2>conftest.er1
17889 ac_status=$?
17890 grep -v '^ *+' conftest.er1 >conftest.err
17891 rm -f conftest.er1
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); } &&
17895 { ac_try='test -z "$ac_c_werror_flag"
17896 || test ! -s conftest.err'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; } &&
17902 { ac_try='test -s conftest.$ac_objext'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; }; then
17908 ac_cv_have_decl_ftello=yes
17909 else
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 ac_cv_have_decl_ftello=no
17914 fi
17915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17916 fi
17917 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
17918 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
17919 if test $ac_cv_have_decl_ftello = yes; then
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_DECL_FTELLO 1
17923 _ACEOF
17924
17925
17926 else
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_DECL_FTELLO 0
17929 _ACEOF
17930
17931
17932 fi
17933
17934
17935 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
17936 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
17937 if test "${ac_cv_have_decl_ftello64+set}" = set; then
17938 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h. */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946 $ac_includes_default
17947 int
17948 main ()
17949 {
17950 #ifndef ftello64
17951 char *p = (char *) ftello64;
17952 #endif
17953
17954 ;
17955 return 0;
17956 }
17957 _ACEOF
17958 rm -f conftest.$ac_objext
17959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17960 (eval $ac_compile) 2>conftest.er1
17961 ac_status=$?
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -f conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -z "$ac_c_werror_flag"
17968 || test ! -s conftest.err'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest.$ac_objext'
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; }; then
17980 ac_cv_have_decl_ftello64=yes
17981 else
17982 echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985 ac_cv_have_decl_ftello64=no
17986 fi
17987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988 fi
17989 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
17990 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
17991 if test $ac_cv_have_decl_ftello64 = yes; then
17992
17993 cat >>confdefs.h <<_ACEOF
17994 #define HAVE_DECL_FTELLO64 1
17995 _ACEOF
17996
17997
17998 else
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_DECL_FTELLO64 0
18001 _ACEOF
18002
18003
18004 fi
18005
18006
18007 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
18008 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
18009 if test "${ac_cv_have_decl_fseeko+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012 cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h. */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18018 $ac_includes_default
18019 int
18020 main ()
18021 {
18022 #ifndef fseeko
18023 char *p = (char *) fseeko;
18024 #endif
18025
18026 ;
18027 return 0;
18028 }
18029 _ACEOF
18030 rm -f conftest.$ac_objext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18032 (eval $ac_compile) 2>conftest.er1
18033 ac_status=$?
18034 grep -v '^ *+' conftest.er1 >conftest.err
18035 rm -f conftest.er1
18036 cat conftest.err >&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -z "$ac_c_werror_flag"
18040 || test ! -s conftest.err'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; } &&
18046 { ac_try='test -s conftest.$ac_objext'
18047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18048 (eval $ac_try) 2>&5
18049 ac_status=$?
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_have_decl_fseeko=yes
18053 else
18054 echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18056
18057 ac_cv_have_decl_fseeko=no
18058 fi
18059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18060 fi
18061 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
18062 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
18063 if test $ac_cv_have_decl_fseeko = yes; then
18064
18065 cat >>confdefs.h <<_ACEOF
18066 #define HAVE_DECL_FSEEKO 1
18067 _ACEOF
18068
18069
18070 else
18071 cat >>confdefs.h <<_ACEOF
18072 #define HAVE_DECL_FSEEKO 0
18073 _ACEOF
18074
18075
18076 fi
18077
18078
18079 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
18080 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
18081 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h. */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 int
18092 main ()
18093 {
18094 #ifndef fseeko64
18095 char *p = (char *) fseeko64;
18096 #endif
18097
18098 ;
18099 return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18104 (eval $ac_compile) 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
18111 { ac_try='test -z "$ac_c_werror_flag"
18112 || test ! -s conftest.err'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest.$ac_objext'
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_have_decl_fseeko64=yes
18125 else
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 ac_cv_have_decl_fseeko64=no
18130 fi
18131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18132 fi
18133 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
18134 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
18135 if test $ac_cv_have_decl_fseeko64 = yes; then
18136
18137 cat >>confdefs.h <<_ACEOF
18138 #define HAVE_DECL_FSEEKO64 1
18139 _ACEOF
18140
18141
18142 else
18143 cat >>confdefs.h <<_ACEOF
18144 #define HAVE_DECL_FSEEKO64 0
18145 _ACEOF
18146
18147
18148 fi
18149
18150
18151
18152
18153 case "${host}" in
18154 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
18155
18156 cat >>confdefs.h <<\_ACEOF
18157 #define USE_BINARY_FOPEN 1
18158 _ACEOF
18159 ;;
18160 esac
18161
18162 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
18163 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
18164 if test "${ac_cv_have_decl_ffs+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 $ac_includes_default
18174 int
18175 main ()
18176 {
18177 #ifndef ffs
18178 char *p = (char *) ffs;
18179 #endif
18180
18181 ;
18182 return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18187 (eval $ac_compile) 2>conftest.er1
18188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_cv_have_decl_ffs=yes
18208 else
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 ac_cv_have_decl_ffs=no
18213 fi
18214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18215 fi
18216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
18217 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
18218 if test $ac_cv_have_decl_ffs = yes; then
18219
18220 cat >>confdefs.h <<_ACEOF
18221 #define HAVE_DECL_FFS 1
18222 _ACEOF
18223
18224
18225 else
18226 cat >>confdefs.h <<_ACEOF
18227 #define HAVE_DECL_FFS 0
18228 _ACEOF
18229
18230
18231 fi
18232
18233
18234 echo "$as_me:$LINENO: checking whether free is declared" >&5
18235 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
18236 if test "${ac_cv_have_decl_free+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239 cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h. */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 $ac_includes_default
18246 int
18247 main ()
18248 {
18249 #ifndef free
18250 char *p = (char *) free;
18251 #endif
18252
18253 ;
18254 return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_cv_have_decl_free=yes
18280 else
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18283
18284 ac_cv_have_decl_free=no
18285 fi
18286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18287 fi
18288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
18289 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
18290 if test $ac_cv_have_decl_free = yes; then
18291
18292 cat >>confdefs.h <<_ACEOF
18293 #define HAVE_DECL_FREE 1
18294 _ACEOF
18295
18296
18297 else
18298 cat >>confdefs.h <<_ACEOF
18299 #define HAVE_DECL_FREE 0
18300 _ACEOF
18301
18302
18303 fi
18304
18305
18306 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
18307 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
18308 if test "${ac_cv_have_decl_getenv+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 $ac_includes_default
18318 int
18319 main ()
18320 {
18321 #ifndef getenv
18322 char *p = (char *) getenv;
18323 #endif
18324
18325 ;
18326 return 0;
18327 }
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18331 (eval $ac_compile) 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag"
18339 || test ! -s conftest.err'
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; } &&
18345 { ac_try='test -s conftest.$ac_objext'
18346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18347 (eval $ac_try) 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_cv_have_decl_getenv=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356 ac_cv_have_decl_getenv=no
18357 fi
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 fi
18360 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
18361 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
18362 if test $ac_cv_have_decl_getenv = yes; then
18363
18364 cat >>confdefs.h <<_ACEOF
18365 #define HAVE_DECL_GETENV 1
18366 _ACEOF
18367
18368
18369 else
18370 cat >>confdefs.h <<_ACEOF
18371 #define HAVE_DECL_GETENV 0
18372 _ACEOF
18373
18374
18375 fi
18376
18377
18378 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
18379 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
18380 if test "${ac_cv_have_decl_malloc+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 $ac_includes_default
18390 int
18391 main ()
18392 {
18393 #ifndef malloc
18394 char *p = (char *) malloc;
18395 #endif
18396
18397 ;
18398 return 0;
18399 }
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18403 (eval $ac_compile) 2>conftest.er1
18404 ac_status=$?
18405 grep -v '^ *+' conftest.er1 >conftest.err
18406 rm -f conftest.er1
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag"
18411 || test ! -s conftest.err'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; } &&
18417 { ac_try='test -s conftest.$ac_objext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423 ac_cv_have_decl_malloc=yes
18424 else
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18427
18428 ac_cv_have_decl_malloc=no
18429 fi
18430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 fi
18432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
18433 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
18434 if test $ac_cv_have_decl_malloc = yes; then
18435
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_DECL_MALLOC 1
18438 _ACEOF
18439
18440
18441 else
18442 cat >>confdefs.h <<_ACEOF
18443 #define HAVE_DECL_MALLOC 0
18444 _ACEOF
18445
18446
18447 fi
18448
18449
18450 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
18451 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
18452 if test "${ac_cv_have_decl_realloc+set}" = set; then
18453 echo $ECHO_N "(cached) $ECHO_C" >&6
18454 else
18455 cat >conftest.$ac_ext <<_ACEOF
18456 /* confdefs.h. */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 $ac_includes_default
18462 int
18463 main ()
18464 {
18465 #ifndef realloc
18466 char *p = (char *) realloc;
18467 #endif
18468
18469 ;
18470 return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest.$ac_objext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18475 (eval $ac_compile) 2>conftest.er1
18476 ac_status=$?
18477 grep -v '^ *+' conftest.er1 >conftest.err
18478 rm -f conftest.er1
18479 cat conftest.err >&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try='test -z "$ac_c_werror_flag"
18483 || test ! -s conftest.err'
18484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18486 ac_status=$?
18487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); }; } &&
18489 { ac_try='test -s conftest.$ac_objext'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; }; then
18495 ac_cv_have_decl_realloc=yes
18496 else
18497 echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500 ac_cv_have_decl_realloc=no
18501 fi
18502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18503 fi
18504 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
18505 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
18506 if test $ac_cv_have_decl_realloc = yes; then
18507
18508 cat >>confdefs.h <<_ACEOF
18509 #define HAVE_DECL_REALLOC 1
18510 _ACEOF
18511
18512
18513 else
18514 cat >>confdefs.h <<_ACEOF
18515 #define HAVE_DECL_REALLOC 0
18516 _ACEOF
18517
18518
18519 fi
18520
18521
18522 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
18523 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
18524 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 $ac_includes_default
18534 int
18535 main ()
18536 {
18537 #ifndef stpcpy
18538 char *p = (char *) stpcpy;
18539 #endif
18540
18541 ;
18542 return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext
18546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18547 (eval $ac_compile) 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } &&
18554 { ac_try='test -z "$ac_c_werror_flag"
18555 || test ! -s conftest.err'
18556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557 (eval $ac_try) 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest.$ac_objext'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 ac_cv_have_decl_stpcpy=yes
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 ac_cv_have_decl_stpcpy=no
18573 fi
18574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18575 fi
18576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
18577 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
18578 if test $ac_cv_have_decl_stpcpy = yes; then
18579
18580 cat >>confdefs.h <<_ACEOF
18581 #define HAVE_DECL_STPCPY 1
18582 _ACEOF
18583
18584
18585 else
18586 cat >>confdefs.h <<_ACEOF
18587 #define HAVE_DECL_STPCPY 0
18588 _ACEOF
18589
18590
18591 fi
18592
18593
18594 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
18595 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
18596 if test "${ac_cv_have_decl_strstr+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599 cat >conftest.$ac_ext <<_ACEOF
18600 /* confdefs.h. */
18601 _ACEOF
18602 cat confdefs.h >>conftest.$ac_ext
18603 cat >>conftest.$ac_ext <<_ACEOF
18604 /* end confdefs.h. */
18605 $ac_includes_default
18606 int
18607 main ()
18608 {
18609 #ifndef strstr
18610 char *p = (char *) strstr;
18611 #endif
18612
18613 ;
18614 return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619 (eval $ac_compile) 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag"
18627 || test ! -s conftest.err'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_have_decl_strstr=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 ac_cv_have_decl_strstr=no
18645 fi
18646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18647 fi
18648 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
18649 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
18650 if test $ac_cv_have_decl_strstr = yes; then
18651
18652 cat >>confdefs.h <<_ACEOF
18653 #define HAVE_DECL_STRSTR 1
18654 _ACEOF
18655
18656
18657 else
18658 cat >>confdefs.h <<_ACEOF
18659 #define HAVE_DECL_STRSTR 0
18660 _ACEOF
18661
18662
18663 fi
18664
18665
18666 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18667 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
18668 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h. */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18677 $ac_includes_default
18678 int
18679 main ()
18680 {
18681 #ifndef snprintf
18682 char *p = (char *) snprintf;
18683 #endif
18684
18685 ;
18686 return 0;
18687 }
18688 _ACEOF
18689 rm -f conftest.$ac_objext
18690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18691 (eval $ac_compile) 2>conftest.er1
18692 ac_status=$?
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
18698 { ac_try='test -z "$ac_c_werror_flag"
18699 || test ! -s conftest.err'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 ac_cv_have_decl_snprintf=yes
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_cv_have_decl_snprintf=no
18717 fi
18718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18719 fi
18720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18721 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
18722 if test $ac_cv_have_decl_snprintf = yes; then
18723
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_DECL_SNPRINTF 1
18726 _ACEOF
18727
18728
18729 else
18730 cat >>confdefs.h <<_ACEOF
18731 #define HAVE_DECL_SNPRINTF 0
18732 _ACEOF
18733
18734
18735 fi
18736
18737
18738 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18739 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
18740 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h. */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 $ac_includes_default
18750 int
18751 main ()
18752 {
18753 #ifndef vsnprintf
18754 char *p = (char *) vsnprintf;
18755 #endif
18756
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18763 (eval $ac_compile) 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } &&
18770 { ac_try='test -z "$ac_c_werror_flag"
18771 || test ! -s conftest.err'
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; } &&
18777 { ac_try='test -s conftest.$ac_objext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_have_decl_vsnprintf=yes
18784 else
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_cv_have_decl_vsnprintf=no
18789 fi
18790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18793 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
18794 if test $ac_cv_have_decl_vsnprintf = yes; then
18795
18796 cat >>confdefs.h <<_ACEOF
18797 #define HAVE_DECL_VSNPRINTF 1
18798 _ACEOF
18799
18800
18801 else
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_DECL_VSNPRINTF 0
18804 _ACEOF
18805
18806
18807 fi
18808
18809
18810
18811 # Link in zlib if we can. This allows us to read compressed debug sections.
18812 # This is used only by compress.c.
18813 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
18814 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
18815 if test "${ac_cv_search_zlibVersion+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818 ac_func_search_save_LIBS=$LIBS
18819 ac_cv_search_zlibVersion=no
18820 cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826
18827 /* Override any gcc2 internal prototype to avoid an error. */
18828 #ifdef __cplusplus
18829 extern "C"
18830 #endif
18831 /* We use char because int might match the return type of a gcc2
18832 builtin and then its argument prototype would still apply. */
18833 char zlibVersion ();
18834 int
18835 main ()
18836 {
18837 zlibVersion ();
18838 ;
18839 return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844 (eval $ac_link) 2>conftest.er1
18845 ac_status=$?
18846 grep -v '^ *+' conftest.er1 >conftest.err
18847 rm -f conftest.er1
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
18851 { ac_try='test -z "$ac_c_werror_flag"
18852 || test ! -s conftest.err'
18853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854 (eval $ac_try) 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18861 ac_status=$?
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_cv_search_zlibVersion="none required"
18865 else
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 fi
18870 rm -f conftest.err conftest.$ac_objext \
18871 conftest$ac_exeext conftest.$ac_ext
18872 if test "$ac_cv_search_zlibVersion" = no; then
18873 for ac_lib in z; do
18874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881
18882 /* Override any gcc2 internal prototype to avoid an error. */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 /* We use char because int might match the return type of a gcc2
18887 builtin and then its argument prototype would still apply. */
18888 char zlibVersion ();
18889 int
18890 main ()
18891 {
18892 zlibVersion ();
18893 ;
18894 return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
18906 { ac_try='test -z "$ac_c_werror_flag"
18907 || test ! -s conftest.err'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_cv_search_zlibVersion="-l$ac_lib"
18920 break
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 fi
18926 rm -f conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 done
18929 fi
18930 LIBS=$ac_func_search_save_LIBS
18931 fi
18932 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
18933 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
18934 if test "$ac_cv_search_zlibVersion" != no; then
18935 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
18936
18937 for ac_header in zlib.h
18938 do
18939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18941 echo "$as_me:$LINENO: checking for $ac_header" >&5
18942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 fi
18946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18948 else
18949 # Is the header compilable?
18950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18952 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h. */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 $ac_includes_default
18959 #include <$ac_header>
18960 _ACEOF
18961 rm -f conftest.$ac_objext
18962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18963 (eval $ac_compile) 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
18970 { ac_try='test -z "$ac_c_werror_flag"
18971 || test ! -s conftest.err'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest.$ac_objext'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); }; }; then
18983 ac_header_compiler=yes
18984 else
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 ac_header_compiler=no
18989 fi
18990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18992 echo "${ECHO_T}$ac_header_compiler" >&6
18993
18994 # Is the header present?
18995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h. */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h. */
19003 #include <$ac_header>
19004 _ACEOF
19005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } >/dev/null; then
19013 if test -s conftest.err; then
19014 ac_cpp_err=$ac_c_preproc_warn_flag
19015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19016 else
19017 ac_cpp_err=
19018 fi
19019 else
19020 ac_cpp_err=yes
19021 fi
19022 if test -z "$ac_cpp_err"; then
19023 ac_header_preproc=yes
19024 else
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028 ac_header_preproc=no
19029 fi
19030 rm -f conftest.err conftest.$ac_ext
19031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19032 echo "${ECHO_T}$ac_header_preproc" >&6
19033
19034 # So? What about this header?
19035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19036 yes:no: )
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19041 ac_header_preproc=yes
19042 ;;
19043 no:yes:* )
19044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19056 (
19057 cat <<\_ASBOX
19058 ## ------------------------------------------ ##
19059 ## Report this to the AC_PACKAGE_NAME lists. ##
19060 ## ------------------------------------------ ##
19061 _ASBOX
19062 ) |
19063 sed "s/^/$as_me: WARNING: /" >&2
19064 ;;
19065 esac
19066 echo "$as_me:$LINENO: checking for $ac_header" >&5
19067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071 eval "$as_ac_Header=\$ac_header_preproc"
19072 fi
19073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19075
19076 fi
19077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19080 _ACEOF
19081
19082 fi
19083
19084 done
19085
19086 fi
19087
19088
19089 # If we are configured native, pick a core file support file.
19090 COREFILE=
19091 COREFLAG=
19092 TRAD_HEADER=
19093 if test "${target}" = "${host}"; then
19094 case "${host}" in
19095 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
19096 COREFILE=''
19097 ;;
19098 alpha*-*-linux-*)
19099 COREFILE=trad-core.lo
19100 TRAD_HEADER='"hosts/alphalinux.h"'
19101 ;;
19102 alpha*-*-netbsd* | alpha*-*-openbsd*)
19103 COREFILE=netbsd-core.lo
19104 ;;
19105 alpha*-*-*) COREFILE=osf-core.lo ;;
19106 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
19107 COREFILE='' ;;
19108 arm-*-netbsd* | arm-*-openbsd*)
19109 COREFILE=netbsd-core.lo
19110 ;;
19111 arm-*-riscix) COREFILE=trad-core.lo ;;
19112 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
19113 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
19114 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
19115 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
19116 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
19117 hppa*-*-netbsd* | hppa*-*-openbsd*)
19118 COREFILE=netbsd-core.lo
19119 ;;
19120
19121 i370-*-*)
19122 COREFILE=trad-core.lo
19123 TRAD_HEADER='"hosts/i370linux.h"'
19124 ;;
19125
19126 i[3-7]86-sequent-bsd*)
19127 COREFILE=trad-core.lo
19128 TRAD_HEADER='"hosts/symmetry.h"'
19129 ;;
19130 i[3-7]86-sequent-sysv4*) ;;
19131 i[3-7]86-sequent-sysv*)
19132 COREFILE=trad-core.lo
19133 TRAD_HEADER='"hosts/symmetry.h"'
19134 ;;
19135 i[3-7]86-*-bsdi)
19136 COREFILE=
19137 ;;
19138 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*)
19139 COREFILE=trad-core.lo
19140 TRAD_HEADER='"hosts/i386bsd.h"'
19141 ;;
19142 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
19143 COREFILE=''
19144 TRAD_HEADER='"hosts/i386bsd.h"'
19145 ;;
19146 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
19147 COREFILE=netbsd-core.lo
19148 ;;
19149 i[3-7]86-esix-sysv3*)
19150 COREFILE=trad-core.lo
19151 TRAD_HEADER='"hosts/esix.h"'
19152 ;;
19153 i[3-7]86-*-sco3.2v5*)
19154 COREFILE=sco5-core.lo
19155 ;;
19156 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
19157 COREFILE=trad-core.lo
19158 TRAD_HEADER='"hosts/i386sco.h"'
19159 ;;
19160 i[3-7]86-*-mach3*)
19161 COREFILE=trad-core.lo
19162 TRAD_HEADER='"hosts/i386mach3.h"'
19163 ;;
19164 i[3-7]86-*-linux-*)
19165 COREFILE=trad-core.lo
19166 TRAD_HEADER='"hosts/i386linux.h"'
19167 ;;
19168 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
19169 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
19170 i860-*-mach3* | i860-*-osf1*)
19171 COREFILE=trad-core.lo
19172 TRAD_HEADER='"hosts/i860mach3.h"'
19173 ;;
19174 mips-*-netbsd* | mips*-*-openbsd*)
19175 COREFILE=netbsd-core.lo
19176 ;;
19177 mips-dec-*)
19178 COREFILE=trad-core.lo
19179 TRAD_HEADER='"hosts/decstation.h"'
19180 ;;
19181 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
19182 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
19183 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
19184 mips-*-sysv4*) ;;
19185 mips-*-sysv* | mips-*-riscos*)
19186 COREFILE=trad-core.lo
19187 TRAD_HEADER='"hosts/riscos.h"'
19188 ;;
19189 mips-sony-bsd*)
19190 COREFILE=trad-core.lo
19191 TRAD_HEADER='"hosts/news-mips.h"'
19192 ;;
19193 m68*-bull*-sysv*)
19194 COREFILE=trad-core.lo
19195 TRAD_HEADER='"hosts/dpx2.h"'
19196 ;;
19197 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
19198 m68*-hp-bsd*)
19199 COREFILE=trad-core.lo
19200 TRAD_HEADER='"hosts/hp300bsd.h"'
19201 ;;
19202 m68*-*-linux-*)
19203 COREFILE=trad-core.lo
19204 TRAD_HEADER='"hosts/m68klinux.h"'
19205 ;;
19206 m68*-motorola-sysv*)
19207 COREFILE=trad-core.lo
19208 TRAD_HEADER='"hosts/delta68.h"'
19209 ;;
19210 m68*-sony-*)
19211 COREFILE=trad-core.lo
19212 TRAD_HEADER='"hosts/news.h"'
19213 ;;
19214 m68*-*-netbsd* | m68*-*-openbsd*)
19215 COREFILE=netbsd-core.lo
19216 ;;
19217 m68*-apple-aux*)
19218 COREFILE=trad-core.lo
19219 TRAD_HEADER='"hosts/m68kaux.h"'
19220 ;;
19221 m88*-*-sysv4*)
19222 ;;
19223 m88*-motorola-sysv*)
19224 COREFILE=ptrace-core.lo
19225 ;;
19226 m88*-*-mach3*)
19227 COREFILE=trad-core.lo
19228 TRAD_HEADER='"hosts/m88kmach3.h"'
19229 ;;
19230 m88*-*-openbsd*)
19231 COREFILE=netbsd-core.lo
19232 ;;
19233 ns32k-pc532-mach)
19234 COREFILE=trad-core.lo
19235 TRAD_HEADER='"hosts/pc532mach.h"'
19236 ;;
19237 ns32k-*-netbsd* | ns32k-*-openbsd*)
19238 COREFILE=netbsd-core.lo
19239 ;;
19240 rs6000-*-lynx*)
19241 COREFILE=lynx-core.lo
19242 ;;
19243 rs6000-*-aix5.* | powerpc-*-aix5.*)
19244 COREFILE=rs6000-core.lo
19245 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
19246 ;;
19247 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
19248 COREFILE=rs6000-core.lo
19249 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
19250 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
19251 # have c_impl as a member of struct core_dumpx
19252 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
19253 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <core.h>
19261 int
19262 main ()
19263 {
19264 struct core_dumpx c; c.c_impl = 0;
19265 ;
19266 return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19271 (eval $ac_compile) 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag"
19279 || test ! -s conftest.err'
19280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281 (eval $ac_try) 2>&5
19282 ac_status=$?
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19291
19292 cat >>confdefs.h <<\_ACEOF
19293 #define HAVE_ST_C_IMPL 1
19294 _ACEOF
19295
19296 echo "$as_me:$LINENO: result: yes" >&5
19297 echo "${ECHO_T}yes" >&6
19298 else
19299 echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 echo "$as_me:$LINENO: result: no" >&5
19303 echo "${ECHO_T}no" >&6
19304 fi
19305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 ;;
19307 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
19308 rs6000-*-*) COREFILE=rs6000-core.lo ;;
19309 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
19310 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
19311 powerpc-*-beos*) ;;
19312 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
19313 COREFILE='' ;;
19314 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
19315 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
19316 s390*-*-*) COREFILE=trad-core.lo ;;
19317 sh*-*-netbsd* | sh*-*-openbsd*)
19318 COREFILE=netbsd-core.lo
19319 ;;
19320 sparc-*-netbsd* | sparc*-*-openbsd*)
19321 COREFILE=netbsd-core.lo
19322 ;;
19323 tahoe-*-*)
19324 COREFILE=trad-core.lo
19325 TRAD_HEADER='"hosts/tahoe.h"'
19326 ;;
19327 vax-*-netbsd* | vax-*-openbsd*)
19328 COREFILE=netbsd-core.lo
19329 ;;
19330 vax-*-ultrix2*)
19331 COREFILE=trad-core.lo
19332 TRAD_HEADER='"hosts/vaxult2.h"'
19333 ;;
19334 vax-*-ultrix*)
19335 COREFILE=trad-core.lo
19336 TRAD_HEADER='"hosts/vaxult2.h"'
19337 ;;
19338 vax-*-linux-*)
19339 COREFILE=trad-core.lo
19340 TRAD_HEADER='"hosts/vaxlinux.h"'
19341 ;;
19342 vax-*-*)
19343 COREFILE=trad-core.lo
19344 TRAD_HEADER='"hosts/vaxbsd.h"'
19345 ;;
19346 x86_64-*-netbsd* | x86_64-*-openbsd*)
19347 COREFILE=netbsd-core.lo
19348 ;;
19349 esac
19350
19351 case "$COREFILE" in
19352 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
19353 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
19354 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
19355 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
19356 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
19357 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
19358 osf-core.lo) COREFLAG=-DOSF_CORE ;;
19359 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
19360 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
19361 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
19362 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
19363 esac
19364
19365 # ELF corefile support has several flavors, but all of
19366 # them use something called <sys/procfs.h>
19367
19368 for ac_header in sys/procfs.h
19369 do
19370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19372 echo "$as_me:$LINENO: checking for $ac_header" >&5
19373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 fi
19377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19379 else
19380 # Is the header compilable?
19381 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19384 /* confdefs.h. */
19385 _ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19389 $ac_includes_default
19390 #include <$ac_header>
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19394 (eval $ac_compile) 2>conftest.er1
19395 ac_status=$?
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
19401 { ac_try='test -z "$ac_c_werror_flag"
19402 || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_header_compiler=yes
19415 else
19416 echo "$as_me: failed program was:" >&5
19417 sed 's/^/| /' conftest.$ac_ext >&5
19418
19419 ac_header_compiler=no
19420 fi
19421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19423 echo "${ECHO_T}$ac_header_compiler" >&6
19424
19425 # Is the header present?
19426 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19428 cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h. */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h. */
19434 #include <$ac_header>
19435 _ACEOF
19436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19438 ac_status=$?
19439 grep -v '^ *+' conftest.er1 >conftest.err
19440 rm -f conftest.er1
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } >/dev/null; then
19444 if test -s conftest.err; then
19445 ac_cpp_err=$ac_c_preproc_warn_flag
19446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19447 else
19448 ac_cpp_err=
19449 fi
19450 else
19451 ac_cpp_err=yes
19452 fi
19453 if test -z "$ac_cpp_err"; then
19454 ac_header_preproc=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_header_preproc=no
19460 fi
19461 rm -f conftest.err conftest.$ac_ext
19462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19463 echo "${ECHO_T}$ac_header_preproc" >&6
19464
19465 # So? What about this header?
19466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19467 yes:no: )
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19472 ac_header_preproc=yes
19473 ;;
19474 no:yes:* )
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 (
19488 cat <<\_ASBOX
19489 ## ------------------------------------------ ##
19490 ## Report this to the AC_PACKAGE_NAME lists. ##
19491 ## ------------------------------------------ ##
19492 _ASBOX
19493 ) |
19494 sed "s/^/$as_me: WARNING: /" >&2
19495 ;;
19496 esac
19497 echo "$as_me:$LINENO: checking for $ac_header" >&5
19498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19501 else
19502 eval "$as_ac_Header=\$ac_header_preproc"
19503 fi
19504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506
19507 fi
19508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19511 _ACEOF
19512
19513 fi
19514
19515 done
19516
19517 if test "$ac_cv_header_sys_procfs_h" = yes; then
19518 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
19519 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
19520 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523 cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h. */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529
19530 #define _SYSCALL32
19531 #include <sys/procfs.h>
19532 int
19533 main ()
19534 {
19535 prstatus_t avar
19536 ;
19537 return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19542 (eval $ac_compile) 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } &&
19549 { ac_try='test -z "$ac_c_werror_flag"
19550 || test ! -s conftest.err'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; }; then
19562 bfd_cv_have_sys_procfs_type_prstatus_t=yes
19563 else
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 bfd_cv_have_sys_procfs_type_prstatus_t=no
19568
19569 fi
19570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19571 fi
19572
19573 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
19574
19575 cat >>confdefs.h <<\_ACEOF
19576 #define HAVE_PRSTATUS_T 1
19577 _ACEOF
19578
19579 fi
19580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
19581 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
19582
19583 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
19584 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
19585 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 cat >conftest.$ac_ext <<_ACEOF
19589 /* confdefs.h. */
19590 _ACEOF
19591 cat confdefs.h >>conftest.$ac_ext
19592 cat >>conftest.$ac_ext <<_ACEOF
19593 /* end confdefs.h. */
19594
19595 #define _SYSCALL32
19596 #include <sys/procfs.h>
19597 int
19598 main ()
19599 {
19600 prstatus32_t avar
19601 ;
19602 return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19607 (eval $ac_compile) 2>conftest.er1
19608 ac_status=$?
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); } &&
19614 { ac_try='test -z "$ac_c_werror_flag"
19615 || test ! -s conftest.err'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; }; then
19627 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
19628 else
19629 echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632 bfd_cv_have_sys_procfs_type_prstatus32_t=no
19633
19634 fi
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636 fi
19637
19638 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
19639
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_PRSTATUS32_T 1
19642 _ACEOF
19643
19644 fi
19645 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
19646 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
19647
19648 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
19649 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19650 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653 cat >conftest.$ac_ext <<_ACEOF
19654 /* confdefs.h. */
19655 _ACEOF
19656 cat confdefs.h >>conftest.$ac_ext
19657 cat >>conftest.$ac_ext <<_ACEOF
19658 /* end confdefs.h. */
19659
19660 #define _SYSCALL32
19661 #include <sys/procfs.h>
19662 int
19663 main ()
19664 {
19665 prstatus_t avar; void* aref = (void*) &avar.pr_who
19666 ;
19667 return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672 (eval $ac_compile) 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
19693 else
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
19698
19699 fi
19700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19701 fi
19702
19703 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
19704
19705 cat >>confdefs.h <<\_ACEOF
19706 #define HAVE_PRSTATUS_T_PR_WHO 1
19707 _ACEOF
19708
19709 fi
19710 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
19711 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
19712
19713 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
19714 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
19715 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724
19725 #define _SYSCALL32
19726 #include <sys/procfs.h>
19727 int
19728 main ()
19729 {
19730 prstatus32_t avar; void* aref = (void*) &avar.pr_who
19731 ;
19732 return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737 (eval $ac_compile) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest.$ac_objext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
19763
19764 fi
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 fi
19767
19768 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
19769
19770 cat >>confdefs.h <<\_ACEOF
19771 #define HAVE_PRSTATUS32_T_PR_WHO 1
19772 _ACEOF
19773
19774 fi
19775 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
19776 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
19777
19778 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19779 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19780 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789
19790 #define _SYSCALL32
19791 #include <sys/procfs.h>
19792 int
19793 main ()
19794 {
19795 pstatus_t avar
19796 ;
19797 return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802 (eval $ac_compile) 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag"
19810 || test ! -s conftest.err'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19823 else
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 bfd_cv_have_sys_procfs_type_pstatus_t=no
19828
19829 fi
19830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19831 fi
19832
19833 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19834
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_PSTATUS_T 1
19837 _ACEOF
19838
19839 fi
19840 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19841 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19842
19843 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
19844 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
19845 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 else
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854
19855 #define _SYSCALL32
19856 #include <sys/procfs.h>
19857 int
19858 main ()
19859 {
19860 pxstatus_t avar
19861 ;
19862 return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19867 (eval $ac_compile) 2>conftest.er1
19868 ac_status=$?
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } &&
19874 { ac_try='test -z "$ac_c_werror_flag"
19875 || test ! -s conftest.err'
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 bfd_cv_have_sys_procfs_type_pxstatus_t=no
19893
19894 fi
19895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19896 fi
19897
19898 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
19899
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_PXSTATUS_T 1
19902 _ACEOF
19903
19904 fi
19905 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
19906 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
19907
19908 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
19909 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
19910 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 else
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919
19920 #define _SYSCALL32
19921 #include <sys/procfs.h>
19922 int
19923 main ()
19924 {
19925 pstatus32_t avar
19926 ;
19927 return 0;
19928 }
19929 _ACEOF
19930 rm -f conftest.$ac_objext
19931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932 (eval $ac_compile) 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
19939 { ac_try='test -z "$ac_c_werror_flag"
19940 || test ! -s conftest.err'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
19953 else
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957 bfd_cv_have_sys_procfs_type_pstatus32_t=no
19958
19959 fi
19960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19961 fi
19962
19963 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
19964
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_PSTATUS32_T 1
19967 _ACEOF
19968
19969 fi
19970 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
19971 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
19972
19973 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
19974 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
19975 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 else
19978 cat >conftest.$ac_ext <<_ACEOF
19979 /* confdefs.h. */
19980 _ACEOF
19981 cat confdefs.h >>conftest.$ac_ext
19982 cat >>conftest.$ac_ext <<_ACEOF
19983 /* end confdefs.h. */
19984
19985 #define _SYSCALL32
19986 #include <sys/procfs.h>
19987 int
19988 main ()
19989 {
19990 prpsinfo_t avar
19991 ;
19992 return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19997 (eval $ac_compile) 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } &&
20004 { ac_try='test -z "$ac_c_werror_flag"
20005 || test ! -s conftest.err'
20006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007 (eval $ac_try) 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; } &&
20011 { ac_try='test -s conftest.$ac_objext'
20012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013 (eval $ac_try) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }; }; then
20017 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
20023
20024 fi
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20026 fi
20027
20028 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
20029
20030 cat >>confdefs.h <<\_ACEOF
20031 #define HAVE_PRPSINFO_T 1
20032 _ACEOF
20033
20034 fi
20035 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
20036 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
20037
20038 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
20039 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
20040 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042 else
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h. */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049
20050 #define _SYSCALL32
20051 #include <sys/procfs.h>
20052 int
20053 main ()
20054 {
20055 prpsinfo32_t avar
20056 ;
20057 return 0;
20058 }
20059 _ACEOF
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_c_werror_flag"
20070 || test ! -s conftest.err'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
20083 else
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
20088
20089 fi
20090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091 fi
20092
20093 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
20094
20095 cat >>confdefs.h <<\_ACEOF
20096 #define HAVE_PRPSINFO32_T 1
20097 _ACEOF
20098
20099 fi
20100 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
20101 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
20102
20103 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
20104 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
20105 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107 else
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h. */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114
20115 #define _SYSCALL32
20116 #include <sys/procfs.h>
20117 int
20118 main ()
20119 {
20120 psinfo_t avar
20121 ;
20122 return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20127 (eval $ac_compile) 2>conftest.er1
20128 ac_status=$?
20129 grep -v '^ *+' conftest.er1 >conftest.err
20130 rm -f conftest.er1
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); } &&
20134 { ac_try='test -z "$ac_c_werror_flag"
20135 || test ! -s conftest.err'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; } &&
20141 { ac_try='test -s conftest.$ac_objext'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; }; then
20147 bfd_cv_have_sys_procfs_type_psinfo_t=yes
20148 else
20149 echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20151
20152 bfd_cv_have_sys_procfs_type_psinfo_t=no
20153
20154 fi
20155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20156 fi
20157
20158 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
20159
20160 cat >>confdefs.h <<\_ACEOF
20161 #define HAVE_PSINFO_T 1
20162 _ACEOF
20163
20164 fi
20165 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
20166 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
20167
20168 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
20169 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
20170 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
20171 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 else
20173 cat >conftest.$ac_ext <<_ACEOF
20174 /* confdefs.h. */
20175 _ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179
20180 #define _SYSCALL32
20181 #include <sys/procfs.h>
20182 int
20183 main ()
20184 {
20185 psinfo32_t avar
20186 ;
20187 return 0;
20188 }
20189 _ACEOF
20190 rm -f conftest.$ac_objext
20191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20192 (eval $ac_compile) 2>conftest.er1
20193 ac_status=$?
20194 grep -v '^ *+' conftest.er1 >conftest.err
20195 rm -f conftest.er1
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } &&
20199 { ac_try='test -z "$ac_c_werror_flag"
20200 || test ! -s conftest.err'
20201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202 (eval $ac_try) 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
20207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20208 (eval $ac_try) 2>&5
20209 ac_status=$?
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); }; }; then
20212 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
20213 else
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217 bfd_cv_have_sys_procfs_type_psinfo32_t=no
20218
20219 fi
20220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20221 fi
20222
20223 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
20224
20225 cat >>confdefs.h <<\_ACEOF
20226 #define HAVE_PSINFO32_T 1
20227 _ACEOF
20228
20229 fi
20230 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
20231 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
20232
20233 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
20234 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
20235 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244
20245 #define _SYSCALL32
20246 #include <sys/procfs.h>
20247 int
20248 main ()
20249 {
20250 lwpstatus_t avar
20251 ;
20252 return 0;
20253 }
20254 _ACEOF
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
20283
20284 fi
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20286 fi
20287
20288 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
20289
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_LWPSTATUS_T 1
20292 _ACEOF
20293
20294 fi
20295 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
20296 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
20297
20298 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
20299 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
20300 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309
20310 #define _SYSCALL32
20311 #include <sys/procfs.h>
20312 int
20313 main ()
20314 {
20315 lwpxstatus_t avar
20316 ;
20317 return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20322 (eval $ac_compile) 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
20329 { ac_try='test -z "$ac_c_werror_flag"
20330 || test ! -s conftest.err'
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } &&
20336 { ac_try='test -s conftest.$ac_objext'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
20348
20349 fi
20350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20351 fi
20352
20353 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
20354
20355 cat >>confdefs.h <<\_ACEOF
20356 #define HAVE_LWPXSTATUS_T 1
20357 _ACEOF
20358
20359 fi
20360 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
20361 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
20362
20363 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
20364 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
20365 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374
20375 #define _SYSCALL32
20376 #include <sys/procfs.h>
20377 int
20378 main ()
20379 {
20380 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
20381 ;
20382 return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387 (eval $ac_compile) 2>conftest.er1
20388 ac_status=$?
20389 grep -v '^ *+' conftest.er1 >conftest.err
20390 rm -f conftest.er1
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag"
20395 || test ! -s conftest.err'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest.$ac_objext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
20413
20414 fi
20415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20416 fi
20417
20418 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
20419
20420 cat >>confdefs.h <<\_ACEOF
20421 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
20422 _ACEOF
20423
20424 fi
20425 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
20426 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
20427
20428 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
20429 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
20430 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
20431 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 else
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439
20440 #define _SYSCALL32
20441 #include <sys/procfs.h>
20442 int
20443 main ()
20444 {
20445 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
20446 ;
20447 return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20452 (eval $ac_compile) 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag"
20460 || test ! -s conftest.err'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; } &&
20466 { ac_try='test -s conftest.$ac_objext'
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; }; then
20472 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
20473 else
20474 echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
20478
20479 fi
20480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20481 fi
20482
20483 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
20484
20485 cat >>confdefs.h <<\_ACEOF
20486 #define HAVE_LWPSTATUS_T_PR_REG 1
20487 _ACEOF
20488
20489 fi
20490 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
20491 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
20492
20493 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
20494 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
20495 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h. */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504
20505 #define _SYSCALL32
20506 #include <sys/procfs.h>
20507 int
20508 main ()
20509 {
20510 win32_pstatus_t avar
20511 ;
20512 return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20517 (eval $ac_compile) 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
20524 { ac_try='test -z "$ac_c_werror_flag"
20525 || test ! -s conftest.err'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20528 ac_status=$?
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; } &&
20531 { ac_try='test -s conftest.$ac_objext'
20532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20537 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
20538 else
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
20543
20544 fi
20545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20546 fi
20547
20548 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_WIN32_PSTATUS_T 1
20552 _ACEOF
20553
20554 fi
20555 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
20556 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
20557
20558 fi
20559 fi
20560
20561
20562 if test -n "$TRAD_HEADER"; then
20563
20564 cat >>confdefs.h <<_ACEOF
20565 #define TRAD_HEADER $TRAD_HEADER
20566 _ACEOF
20567
20568 fi
20569
20570 # Horrible hacks to build DLLs on Windows.
20571 WIN32LDFLAGS=
20572 WIN32LIBADD=
20573 case "${host}" in
20574 *-*-cygwin*)
20575 if test "$enable_shared" = "yes"; then
20576 WIN32LDFLAGS="-no-undefined"
20577 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
20578 fi
20579 ;;
20580 *-*-linux*)
20581 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
20582 # libiberty.a.
20583 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
20584 if test -n "$x"; then
20585 WIN32LIBADD="-L../libiberty/pic -liberty"
20586 fi
20587 ;;
20588 esac
20589
20590
20591
20592 # target stuff:
20593
20594 # Canonicalize the secondary target names.
20595 if test -n "$enable_targets" ; then
20596 for targ in `echo $enable_targets | sed 's/,/ /g'`
20597 do
20598 result=`$ac_config_sub $targ 2>/dev/null`
20599 if test -n "$result" ; then
20600 canon_targets="$canon_targets $result"
20601 else
20602 # Allow targets that config.sub doesn't recognize, like "all".
20603 canon_targets="$canon_targets $targ"
20604 fi
20605 done
20606 fi
20607
20608 all_targets=false
20609 defvec=
20610 selvecs=
20611 assocvecs=
20612 selarchs=
20613 TDEFINES=
20614 for targ in $target $canon_targets
20615 do
20616 if test "x$targ" = "xall"; then
20617 all_targets=true
20618 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
20619 else
20620 . $srcdir/config.bfd
20621 if test "x$targ" = "x$target"; then
20622 defvec=$targ_defvec
20623 fi
20624 selvecs="$selvecs $targ_defvec $targ_selvecs"
20625 selarchs="$selarchs $targ_archs"
20626 TDEFINES="$TDEFINES $targ_cflags"
20627 fi
20628 done
20629
20630
20631 # This processing still needs to be done if we're to decide properly whether
20632 # 64-bit support needs to be compiled in. Currently, it will be included if
20633 # the default or any other explicitly requested target requires it; it
20634 # will not be included on a 32-bit host if no 64-bit target is requested, and
20635 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
20636 # used.
20637
20638 # uniq the default and selected vectors in all the configured targets.
20639 f=""
20640 for i in $selvecs ; do
20641 case " $f " in
20642 *" $i "*) ;;
20643 *) f="$f $i" ;;
20644 esac
20645 done
20646 selvecs="$f"
20647
20648
20649 # uniq the associated vectors in all the configured targets.
20650 f=""
20651 for i in $assocvecs ; do
20652 case " $f " in
20653 *" $i "*) ;;
20654 *) f="$f $i" ;;
20655 esac
20656 done
20657 assocvecs="$f"
20658
20659
20660 # uniq the architectures in all the configured targets.
20661 f=""
20662 for i in $selarchs ; do
20663 case " $f " in
20664 *" $i "*) ;;
20665 *) f="$f $i" ;;
20666 esac
20667 done
20668 selarchs="$f"
20669
20670 # Target backend .o files.
20671 tb=
20672
20673 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
20674
20675 for vec in $selvecs
20676 do
20677 target_size=32
20678 case "$vec" in
20679 # This list is alphabetized to make it easy to compare
20680 # with the two vector lists in targets.c. For the same reason,
20681 # use one entry per line, even though this leads to long lines.
20682 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
20683 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20684 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
20685 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20686 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
20687 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
20688 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20689 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
20690 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20691 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
20692 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20693 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
20694 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20695 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
20696 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20697 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
20698 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
20699 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20700 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
20701 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20702 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
20703 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
20704 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
20705 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
20706 bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;;
20707 bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;;
20708 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20709 bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20710 bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
20711 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20712 bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20713 bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
20714 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
20715 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
20716 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20717 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
20718 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20719 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20720 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20721 bfd_elf32_bigarm_symbian_vec)
20722 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20723 bfd_elf32_bigarm_vxworks_vec)
20724 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20725 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20726 bfd_elf32_bigmips_vxworks_vec)
20727 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20728 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
20729 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
20730 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20731 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
20732 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
20733 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
20734 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
20735 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
20736 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20737 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
20738 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
20739 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20740 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20741 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
20742 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
20743 bfd_elf32_i386_dragonfly_vec)
20744 tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20745 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20746 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20747 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
20748 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20749 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
20750 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
20751 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
20752 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
20753 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
20754 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
20755 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20756 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
20757 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
20758 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
20759 bfd_elf32_littlearm_symbian_vec)
20760 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20761 bfd_elf32_littlearm_vxworks_vec)
20762 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20763 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
20764 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20765 bfd_elf32_littlemips_vxworks_vec)
20766 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20767 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
20768 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20769 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20770 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20771 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
20772 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20773 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
20774 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
20775 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
20776 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20777 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
20778 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20779 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
20780 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
20781 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
20782 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
20783 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
20784 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20785 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20786 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20787 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
20788 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
20789 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
20790 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20791 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
20792 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20793 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20794 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
20795 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
20796 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20797 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
20798 # FIXME: We include cofflink.lo not because it's needed for
20799 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
20800 # which needs it but does not list it. Should be fixed in right place.
20801 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20802 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20803 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20804 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
20805 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20806 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
20807 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20808 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20809 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20810 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20811 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20812 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20813 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20814 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
20815 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
20816 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20817 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
20818 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
20819 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20820 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
20821 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
20822 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
20823 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
20824 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
20825 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
20826 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20827 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
20828 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20829 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
20830 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20831 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 ;;
20832 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20833 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
20834 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20835 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20836 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
20837 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20838 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 ;;
20839 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
20840 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
20841 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
20842 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
20843 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20844 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20845 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20846 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20847 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20848 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
20849 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20850 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
20851 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 ;;
20852 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 ;;
20853 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20854 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
20855 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
20856 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20857 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20858 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
20859 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
20860 cris_aout_vec) tb="$tb aout-cris.lo" ;;
20861 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
20862 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20863 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20864 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
20865 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
20866 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
20867 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
20868 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
20869 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
20870 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
20871 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
20872 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
20873 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
20874 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
20875 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
20876 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
20877 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
20878 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
20879 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
20880 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
20881 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
20882 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
20883 i386msdos_vec) tb="$tb i386msdos.lo" ;;
20884 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
20885 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
20886 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
20887 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
20888 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20889 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
20890 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
20891 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20892 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
20893 ieee_vec) tb="$tb ieee.lo" ;;
20894 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
20895 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
20896 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
20897 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
20898 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
20899 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
20900 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
20901 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
20902 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
20903 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
20904 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
20905 mach_o_be_vec) tb="$tb mach-o.lo" ;;
20906 mach_o_le_vec) tb="$tb mach-o.lo" ;;
20907 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
20908 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20909 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
20910 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20911 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
20912 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
20913 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
20914 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
20915 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
20916 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
20917 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
20918 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
20919 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
20920 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
20921 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
20922 pef_vec) tb="$tb pef.lo" ;;
20923 pef_xlib_vec) tb="$tb pef.lo" ;;
20924 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
20925 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20926 ppcboot_vec) tb="$tb ppcboot.lo" ;;
20927 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
20928 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
20929 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
20930 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20931 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20932 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20933 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
20934 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20935 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
20936 som_vec) tb="$tb som.lo" ;;
20937 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
20938 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
20939 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
20940 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
20941 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
20942 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
20943 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
20944 sym_vec) tb="$tb xsym.lo" ;;
20945 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
20946 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
20947 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
20948 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
20949 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
20950 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
20951 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
20952 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
20953 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
20954 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
20955 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
20956 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
20957 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
20958 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
20959 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
20960 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
20961 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
20962 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
20963 versados_vec) tb="$tb versados.lo" ;;
20964 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
20965 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
20966 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
20967 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
20968 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
20969 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
20970
20971 # These appear out of order in targets.c
20972 srec_vec) tb="$tb srec.lo" ;;
20973 symbolsrec_vec) tb="$tb srec.lo" ;;
20974 tekhex_vec) tb="$tb tekhex.lo" ;;
20975 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
20976 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
20977
20978 "") ;;
20979 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
20980 echo "$as_me: error: *** unknown target vector $vec" >&2;}
20981 { (exit 1); exit 1; }; } ;;
20982 esac
20983
20984 if test ${target_size} = 64; then
20985 target64=true
20986 fi
20987 if test x"${vec}" = x"${defvec}"; then
20988 bfd_default_target_size=${target_size}
20989 fi
20990 done
20991
20992 # Target architecture .o files.
20993 # A couple of CPUs use shorter file names to avoid problems on DOS
20994 # filesystems.
20995 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
20996
20997 # Weed out duplicate .o files.
20998 f=""
20999 for i in $tb ; do
21000 case " $f " in
21001 *" $i "*) ;;
21002 *) f="$f $i" ;;
21003 esac
21004 done
21005 tb="$f"
21006
21007 f=""
21008 for i in $ta ; do
21009 case " $f " in
21010 *" $i "*) ;;
21011 *) f="$f $i" ;;
21012 esac
21013 done
21014 ta="$f"
21015
21016 bfd_backends="$tb"
21017 bfd_machines="$ta"
21018
21019 if test x${all_targets} = xtrue ; then
21020 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
21021 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
21022 selvecs=
21023 havevecs=
21024 selarchs=
21025 test -n "$assocvecs" &&
21026 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21027 else # all_targets is true
21028 # Only set these if they will be nonempty, for the clever echo.
21029 havevecs=
21030 assocvecs=
21031 test -n "$selvecs" &&
21032 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
21033 test -n "$selvecs" &&
21034 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21035 test -n "$selarchs" &&
21036 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
21037 fi # all_targets is true
21038
21039 case ${host64}-${target64}-${want64} in
21040 *true*)
21041 wordsize=64
21042 bfd64_libs='$(BFD64_LIBS)'
21043 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
21044 if test $BFD_HOST_64_BIT_DEFINED = 0; then
21045 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
21046 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
21048 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
21049 fi
21050 if test -n "$GCC" ; then
21051 bad_64bit_gcc=no;
21052 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
21053 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
21054 # Add more tests for gcc versions with non-working 64-bit support here.
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 :__GNUC__:__GNUC_MINOR__:__i386__:
21062 _ACEOF
21063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21064 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
21065 bad_64bit_gcc=yes;
21066 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
21067 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
21068 else
21069 echo "$as_me:$LINENO: result: no" >&5
21070 echo "${ECHO_T}no" >&6
21071 fi
21072 rm -f conftest*
21073
21074 if test $bad_64bit_gcc = yes ; then
21075 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
21076 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
21077 { (exit 1); exit 1; }; }
21078 fi
21079 fi
21080 ;;
21081 false-false-false)
21082 wordsize=32
21083 all_backends='$(BFD32_BACKENDS)'
21084 ;;
21085 esac
21086
21087
21088
21089
21090
21091
21092
21093
21094 # Determine the host dependant file_ptr a.k.a. off_t type. In order
21095 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
21096 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
21097 # Hopefully a reasonable assumption since fseeko et.al. should be
21098 # upward compatible.
21099
21100
21101
21102
21103
21104 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
21105 do
21106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21107 echo "$as_me:$LINENO: checking for $ac_func" >&5
21108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21109 if eval "test \"\${$as_ac_var+set}\" = set"; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21120 #define $ac_func innocuous_$ac_func
21121
21122 /* System header to define __stub macros and hopefully few prototypes,
21123 which can conflict with char $ac_func (); below.
21124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125 <limits.h> exists even on freestanding compilers. */
21126
21127 #ifdef __STDC__
21128 # include <limits.h>
21129 #else
21130 # include <assert.h>
21131 #endif
21132
21133 #undef $ac_func
21134
21135 /* Override any gcc2 internal prototype to avoid an error. */
21136 #ifdef __cplusplus
21137 extern "C"
21138 {
21139 #endif
21140 /* We use char because int might match the return type of a gcc2
21141 builtin and then its argument prototype would still apply. */
21142 char $ac_func ();
21143 /* The GNU C library defines this for functions which it implements
21144 to always fail with ENOSYS. Some functions are actually named
21145 something starting with __ and the normal name is an alias. */
21146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21147 choke me
21148 #else
21149 char (*f) () = $ac_func;
21150 #endif
21151 #ifdef __cplusplus
21152 }
21153 #endif
21154
21155 int
21156 main ()
21157 {
21158 return f != $ac_func;
21159 ;
21160 return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21165 (eval $ac_link) 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest$ac_exeext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 eval "$as_ac_var=yes"
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 eval "$as_ac_var=no"
21191 fi
21192 rm -f conftest.err conftest.$ac_objext \
21193 conftest$ac_exeext conftest.$ac_ext
21194 fi
21195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21197 if test `eval echo '${'$as_ac_var'}'` = yes; then
21198 cat >>confdefs.h <<_ACEOF
21199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21200 _ACEOF
21201
21202 fi
21203 done
21204
21205 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
21206 echo "$as_me:$LINENO: checking for off_t" >&5
21207 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21208 if test "${ac_cv_type_off_t+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211 cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h. */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h. */
21217 $ac_includes_default
21218 int
21219 main ()
21220 {
21221 if ((off_t *) 0)
21222 return 0;
21223 if (sizeof (off_t))
21224 return 0;
21225 ;
21226 return 0;
21227 }
21228 _ACEOF
21229 rm -f conftest.$ac_objext
21230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21231 (eval $ac_compile) 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
21238 { ac_try='test -z "$ac_c_werror_flag"
21239 || test ! -s conftest.err'
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 ac_cv_type_off_t=yes
21252 else
21253 echo "$as_me: failed program was:" >&5
21254 sed 's/^/| /' conftest.$ac_ext >&5
21255
21256 ac_cv_type_off_t=no
21257 fi
21258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21261 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21262
21263 echo "$as_me:$LINENO: checking size of off_t" >&5
21264 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21265 if test "${ac_cv_sizeof_off_t+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268 if test "$ac_cv_type_off_t" = yes; then
21269 # The cast to unsigned long works around a bug in the HP C Compiler
21270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21272 # This bug is HP SR number 8606223364.
21273 if test "$cross_compiling" = yes; then
21274 # Depending upon the size, compute the lo and hi bounds.
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h. */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 $ac_includes_default
21282 int
21283 main ()
21284 {
21285 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21286 test_array [0] = 0
21287
21288 ;
21289 return 0;
21290 }
21291 _ACEOF
21292 rm -f conftest.$ac_objext
21293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21294 (eval $ac_compile) 2>conftest.er1
21295 ac_status=$?
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
21301 { ac_try='test -z "$ac_c_werror_flag"
21302 || test ! -s conftest.err'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; } &&
21308 { ac_try='test -s conftest.$ac_objext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21314 ac_lo=0 ac_mid=0
21315 while :; do
21316 cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h. */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 $ac_includes_default
21323 int
21324 main ()
21325 {
21326 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21327 test_array [0] = 0
21328
21329 ;
21330 return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21335 (eval $ac_compile) 2>conftest.er1
21336 ac_status=$?
21337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
21342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
21350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_hi=$ac_mid; break
21356 else
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_lo=`expr $ac_mid + 1`
21361 if test $ac_lo -le $ac_mid; then
21362 ac_lo= ac_hi=
21363 break
21364 fi
21365 ac_mid=`expr 2 '*' $ac_mid + 1`
21366 fi
21367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21368 done
21369 else
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21372
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 int
21381 main ()
21382 {
21383 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21384 test_array [0] = 0
21385
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21392 (eval $ac_compile) 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } &&
21399 { ac_try='test -z "$ac_c_werror_flag"
21400 || test ! -s conftest.err'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest.$ac_objext'
21407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21408 (eval $ac_try) 2>&5
21409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; }; then
21412 ac_hi=-1 ac_mid=-1
21413 while :; do
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 int
21422 main ()
21423 {
21424 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21425 test_array [0] = 0
21426
21427 ;
21428 return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21433 (eval $ac_compile) 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } &&
21440 { ac_try='test -z "$ac_c_werror_flag"
21441 || test ! -s conftest.err'
21442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443 (eval $ac_try) 2>&5
21444 ac_status=$?
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); }; } &&
21447 { ac_try='test -s conftest.$ac_objext'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; }; then
21453 ac_lo=$ac_mid; break
21454 else
21455 echo "$as_me: failed program was:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21457
21458 ac_hi=`expr '(' $ac_mid ')' - 1`
21459 if test $ac_mid -le $ac_hi; then
21460 ac_lo= ac_hi=
21461 break
21462 fi
21463 ac_mid=`expr 2 '*' $ac_mid`
21464 fi
21465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21466 done
21467 else
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471 ac_lo= ac_hi=
21472 fi
21473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21474 fi
21475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21476 # Binary search between lo and hi bounds.
21477 while test "x$ac_lo" != "x$ac_hi"; do
21478 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 $ac_includes_default
21486 int
21487 main ()
21488 {
21489 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21490 test_array [0] = 0
21491
21492 ;
21493 return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21498 (eval $ac_compile) 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
21505 { ac_try='test -z "$ac_c_werror_flag"
21506 || test ! -s conftest.err'
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest.$ac_objext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 ac_hi=$ac_mid
21519 else
21520 echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523 ac_lo=`expr '(' $ac_mid ')' + 1`
21524 fi
21525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21526 done
21527 case $ac_lo in
21528 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21529 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21530 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21532 See \`config.log' for more details." >&5
21533 echo "$as_me: error: cannot compute sizeof (off_t), 77
21534 See \`config.log' for more details." >&2;}
21535 { (exit 1); exit 1; }; }; } ;;
21536 esac
21537 else
21538 if test "$cross_compiling" = yes; then
21539 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21540 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21541 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21542 See \`config.log' for more details." >&5
21543 echo "$as_me: error: cannot run test program while cross compiling
21544 See \`config.log' for more details." >&2;}
21545 { (exit 1); exit 1; }; }; }
21546 else
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 long longval () { return (long) (sizeof (off_t)); }
21555 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21556 #include <stdio.h>
21557 #include <stdlib.h>
21558 int
21559 main ()
21560 {
21561
21562 FILE *f = fopen ("conftest.val", "w");
21563 if (! f)
21564 exit (1);
21565 if (((long) (sizeof (off_t))) < 0)
21566 {
21567 long i = longval ();
21568 if (i != ((long) (sizeof (off_t))))
21569 exit (1);
21570 fprintf (f, "%ld\n", i);
21571 }
21572 else
21573 {
21574 unsigned long i = ulongval ();
21575 if (i != ((long) (sizeof (off_t))))
21576 exit (1);
21577 fprintf (f, "%lu\n", i);
21578 }
21579 exit (ferror (f) || fclose (f) != 0);
21580
21581 ;
21582 return 0;
21583 }
21584 _ACEOF
21585 rm -f conftest$ac_exeext
21586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21587 (eval $ac_link) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 ac_cv_sizeof_off_t=`cat conftest.val`
21597 else
21598 echo "$as_me: program exited with status $ac_status" >&5
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 ( exit $ac_status )
21603 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21604 echo "$as_me: error: in \`$ac_pwd':" >&2;}
21605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21606 See \`config.log' for more details." >&5
21607 echo "$as_me: error: cannot compute sizeof (off_t), 77
21608 See \`config.log' for more details." >&2;}
21609 { (exit 1); exit 1; }; }; }
21610 fi
21611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21612 fi
21613 fi
21614 rm -f conftest.val
21615 else
21616 ac_cv_sizeof_off_t=0
21617 fi
21618 fi
21619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21620 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21621 cat >>confdefs.h <<_ACEOF
21622 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21623 _ACEOF
21624
21625
21626 fi
21627 echo "$as_me:$LINENO: checking file_ptr type" >&5
21628 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
21629 bfd_file_ptr="long"
21630 bfd_ufile_ptr="unsigned long"
21631 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
21632 -o x"${ac_cv_sizeof_off_t}" = x8; then
21633 bfd_file_ptr=BFD_HOST_64_BIT
21634 bfd_ufile_ptr=BFD_HOST_U_64_BIT
21635 fi
21636 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
21637 echo "${ECHO_T}$bfd_file_ptr" >&6
21638
21639
21640
21641
21642 tdefaults=""
21643 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
21644 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
21645 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
21646 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
21647 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
21648
21649
21650
21651
21652 for ac_header in stdlib.h unistd.h
21653 do
21654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21656 echo "$as_me:$LINENO: checking for $ac_header" >&5
21657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 fi
21661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21663 else
21664 # Is the header compilable?
21665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21667 cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h. */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 $ac_includes_default
21674 #include <$ac_header>
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678 (eval $ac_compile) 2>conftest.er1
21679 ac_status=$?
21680 grep -v '^ *+' conftest.er1 >conftest.err
21681 rm -f conftest.er1
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
21685 { ac_try='test -z "$ac_c_werror_flag"
21686 || test ! -s conftest.err'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_header_compiler=yes
21699 else
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21702
21703 ac_header_compiler=no
21704 fi
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21706 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707 echo "${ECHO_T}$ac_header_compiler" >&6
21708
21709 # Is the header present?
21710 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <$ac_header>
21719 _ACEOF
21720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21722 ac_status=$?
21723 grep -v '^ *+' conftest.er1 >conftest.err
21724 rm -f conftest.er1
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } >/dev/null; then
21728 if test -s conftest.err; then
21729 ac_cpp_err=$ac_c_preproc_warn_flag
21730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21731 else
21732 ac_cpp_err=
21733 fi
21734 else
21735 ac_cpp_err=yes
21736 fi
21737 if test -z "$ac_cpp_err"; then
21738 ac_header_preproc=yes
21739 else
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_header_preproc=no
21744 fi
21745 rm -f conftest.err conftest.$ac_ext
21746 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21747 echo "${ECHO_T}$ac_header_preproc" >&6
21748
21749 # So? What about this header?
21750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 yes:no: )
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21756 ac_header_preproc=yes
21757 ;;
21758 no:yes:* )
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21771 (
21772 cat <<\_ASBOX
21773 ## ------------------------------------------ ##
21774 ## Report this to the AC_PACKAGE_NAME lists. ##
21775 ## ------------------------------------------ ##
21776 _ASBOX
21777 ) |
21778 sed "s/^/$as_me: WARNING: /" >&2
21779 ;;
21780 esac
21781 echo "$as_me:$LINENO: checking for $ac_header" >&5
21782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21784 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 else
21786 eval "$as_ac_Header=\$ac_header_preproc"
21787 fi
21788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21790
21791 fi
21792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21795 _ACEOF
21796
21797 fi
21798
21799 done
21800
21801
21802 for ac_func in getpagesize
21803 do
21804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21805 echo "$as_me:$LINENO: checking for $ac_func" >&5
21806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21807 if eval "test \"\${$as_ac_var+set}\" = set"; then
21808 echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810 cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h. */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h. */
21816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21818 #define $ac_func innocuous_$ac_func
21819
21820 /* System header to define __stub macros and hopefully few prototypes,
21821 which can conflict with char $ac_func (); below.
21822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21823 <limits.h> exists even on freestanding compilers. */
21824
21825 #ifdef __STDC__
21826 # include <limits.h>
21827 #else
21828 # include <assert.h>
21829 #endif
21830
21831 #undef $ac_func
21832
21833 /* Override any gcc2 internal prototype to avoid an error. */
21834 #ifdef __cplusplus
21835 extern "C"
21836 {
21837 #endif
21838 /* We use char because int might match the return type of a gcc2
21839 builtin and then its argument prototype would still apply. */
21840 char $ac_func ();
21841 /* The GNU C library defines this for functions which it implements
21842 to always fail with ENOSYS. Some functions are actually named
21843 something starting with __ and the normal name is an alias. */
21844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21845 choke me
21846 #else
21847 char (*f) () = $ac_func;
21848 #endif
21849 #ifdef __cplusplus
21850 }
21851 #endif
21852
21853 int
21854 main ()
21855 {
21856 return f != $ac_func;
21857 ;
21858 return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863 (eval $ac_link) 2>conftest.er1
21864 ac_status=$?
21865 grep -v '^ *+' conftest.er1 >conftest.err
21866 rm -f conftest.er1
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } &&
21870 { ac_try='test -z "$ac_c_werror_flag"
21871 || test ! -s conftest.err'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; } &&
21877 { ac_try='test -s conftest$ac_exeext'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; }; then
21883 eval "$as_ac_var=yes"
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 eval "$as_ac_var=no"
21889 fi
21890 rm -f conftest.err conftest.$ac_objext \
21891 conftest$ac_exeext conftest.$ac_ext
21892 fi
21893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21895 if test `eval echo '${'$as_ac_var'}'` = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21898 _ACEOF
21899
21900 fi
21901 done
21902
21903 echo "$as_me:$LINENO: checking for working mmap" >&5
21904 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21905 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21906 echo $ECHO_N "(cached) $ECHO_C" >&6
21907 else
21908 if test "$cross_compiling" = yes; then
21909 ac_cv_func_mmap_fixed_mapped=no
21910 else
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 $ac_includes_default
21918 /* malloc might have been renamed as rpl_malloc. */
21919 #undef malloc
21920
21921 /* Thanks to Mike Haertel and Jim Avera for this test.
21922 Here is a matrix of mmap possibilities:
21923 mmap private not fixed
21924 mmap private fixed at somewhere currently unmapped
21925 mmap private fixed at somewhere already mapped
21926 mmap shared not fixed
21927 mmap shared fixed at somewhere currently unmapped
21928 mmap shared fixed at somewhere already mapped
21929 For private mappings, we should verify that changes cannot be read()
21930 back from the file, nor mmap's back from the file at a different
21931 address. (There have been systems where private was not correctly
21932 implemented like the infamous i386 svr4.0, and systems where the
21933 VM page cache was not coherent with the file system buffer cache
21934 like early versions of FreeBSD and possibly contemporary NetBSD.)
21935 For shared mappings, we should conversely verify that changes get
21936 propagated back to all the places they're supposed to be.
21937
21938 Grep wants private fixed already mapped.
21939 The main things grep needs to know about mmap are:
21940 * does it exist and is it safe to write into the mmap'd area
21941 * how to use it (BSD variants) */
21942
21943 #include <fcntl.h>
21944 #include <sys/mman.h>
21945
21946 #if !STDC_HEADERS && !HAVE_STDLIB_H
21947 char *malloc ();
21948 #endif
21949
21950 /* This mess was copied from the GNU getpagesize.h. */
21951 #if !HAVE_GETPAGESIZE
21952 /* Assume that all systems that can run configure have sys/param.h. */
21953 # if !HAVE_SYS_PARAM_H
21954 # define HAVE_SYS_PARAM_H 1
21955 # endif
21956
21957 # ifdef _SC_PAGESIZE
21958 # define getpagesize() sysconf(_SC_PAGESIZE)
21959 # else /* no _SC_PAGESIZE */
21960 # if HAVE_SYS_PARAM_H
21961 # include <sys/param.h>
21962 # ifdef EXEC_PAGESIZE
21963 # define getpagesize() EXEC_PAGESIZE
21964 # else /* no EXEC_PAGESIZE */
21965 # ifdef NBPG
21966 # define getpagesize() NBPG * CLSIZE
21967 # ifndef CLSIZE
21968 # define CLSIZE 1
21969 # endif /* no CLSIZE */
21970 # else /* no NBPG */
21971 # ifdef NBPC
21972 # define getpagesize() NBPC
21973 # else /* no NBPC */
21974 # ifdef PAGESIZE
21975 # define getpagesize() PAGESIZE
21976 # endif /* PAGESIZE */
21977 # endif /* no NBPC */
21978 # endif /* no NBPG */
21979 # endif /* no EXEC_PAGESIZE */
21980 # else /* no HAVE_SYS_PARAM_H */
21981 # define getpagesize() 8192 /* punt totally */
21982 # endif /* no HAVE_SYS_PARAM_H */
21983 # endif /* no _SC_PAGESIZE */
21984
21985 #endif /* no HAVE_GETPAGESIZE */
21986
21987 int
21988 main ()
21989 {
21990 char *data, *data2, *data3;
21991 int i, pagesize;
21992 int fd;
21993
21994 pagesize = getpagesize ();
21995
21996 /* First, make a file with some known garbage in it. */
21997 data = (char *) malloc (pagesize);
21998 if (!data)
21999 exit (1);
22000 for (i = 0; i < pagesize; ++i)
22001 *(data + i) = rand ();
22002 umask (0);
22003 fd = creat ("conftest.mmap", 0600);
22004 if (fd < 0)
22005 exit (1);
22006 if (write (fd, data, pagesize) != pagesize)
22007 exit (1);
22008 close (fd);
22009
22010 /* Next, try to mmap the file at a fixed address which already has
22011 something else allocated at it. If we can, also make sure that
22012 we see the same garbage. */
22013 fd = open ("conftest.mmap", O_RDWR);
22014 if (fd < 0)
22015 exit (1);
22016 data2 = (char *) malloc (2 * pagesize);
22017 if (!data2)
22018 exit (1);
22019 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22020 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22021 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22022 exit (1);
22023 for (i = 0; i < pagesize; ++i)
22024 if (*(data + i) != *(data2 + i))
22025 exit (1);
22026
22027 /* Finally, make sure that changes to the mapped area do not
22028 percolate back to the file as seen by read(). (This is a bug on
22029 some variants of i386 svr4.0.) */
22030 for (i = 0; i < pagesize; ++i)
22031 *(data2 + i) = *(data2 + i) + 1;
22032 data3 = (char *) malloc (pagesize);
22033 if (!data3)
22034 exit (1);
22035 if (read (fd, data3, pagesize) != pagesize)
22036 exit (1);
22037 for (i = 0; i < pagesize; ++i)
22038 if (*(data + i) != *(data3 + i))
22039 exit (1);
22040 close (fd);
22041 exit (0);
22042 }
22043 _ACEOF
22044 rm -f conftest$ac_exeext
22045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22046 (eval $ac_link) 2>&5
22047 ac_status=$?
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22052 ac_status=$?
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 ac_cv_func_mmap_fixed_mapped=yes
22056 else
22057 echo "$as_me: program exited with status $ac_status" >&5
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061 ( exit $ac_status )
22062 ac_cv_func_mmap_fixed_mapped=no
22063 fi
22064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 fi
22067 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22068 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22069 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22070
22071 cat >>confdefs.h <<\_ACEOF
22072 #define HAVE_MMAP 1
22073 _ACEOF
22074
22075 fi
22076 rm -f conftest.mmap
22077
22078
22079
22080 for ac_func in madvise mprotect
22081 do
22082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22083 echo "$as_me:$LINENO: checking for $ac_func" >&5
22084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22085 if eval "test \"\${$as_ac_var+set}\" = set"; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22096 #define $ac_func innocuous_$ac_func
22097
22098 /* System header to define __stub macros and hopefully few prototypes,
22099 which can conflict with char $ac_func (); below.
22100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22101 <limits.h> exists even on freestanding compilers. */
22102
22103 #ifdef __STDC__
22104 # include <limits.h>
22105 #else
22106 # include <assert.h>
22107 #endif
22108
22109 #undef $ac_func
22110
22111 /* Override any gcc2 internal prototype to avoid an error. */
22112 #ifdef __cplusplus
22113 extern "C"
22114 {
22115 #endif
22116 /* We use char because int might match the return type of a gcc2
22117 builtin and then its argument prototype would still apply. */
22118 char $ac_func ();
22119 /* The GNU C library defines this for functions which it implements
22120 to always fail with ENOSYS. Some functions are actually named
22121 something starting with __ and the normal name is an alias. */
22122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22123 choke me
22124 #else
22125 char (*f) () = $ac_func;
22126 #endif
22127 #ifdef __cplusplus
22128 }
22129 #endif
22130
22131 int
22132 main ()
22133 {
22134 return f != $ac_func;
22135 ;
22136 return 0;
22137 }
22138 _ACEOF
22139 rm -f conftest.$ac_objext conftest$ac_exeext
22140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22141 (eval $ac_link) 2>conftest.er1
22142 ac_status=$?
22143 grep -v '^ *+' conftest.er1 >conftest.err
22144 rm -f conftest.er1
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } &&
22148 { ac_try='test -z "$ac_c_werror_flag"
22149 || test ! -s conftest.err'
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; } &&
22155 { ac_try='test -s conftest$ac_exeext'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; }; then
22161 eval "$as_ac_var=yes"
22162 else
22163 echo "$as_me: failed program was:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22165
22166 eval "$as_ac_var=no"
22167 fi
22168 rm -f conftest.err conftest.$ac_objext \
22169 conftest$ac_exeext conftest.$ac_ext
22170 fi
22171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22173 if test `eval echo '${'$as_ac_var'}'` = yes; then
22174 cat >>confdefs.h <<_ACEOF
22175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22176 _ACEOF
22177
22178 fi
22179 done
22180
22181 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
22182 true+yes )
22183 cat >>confdefs.h <<\_ACEOF
22184 #define USE_MMAP 1
22185 _ACEOF
22186 ;;
22187 esac
22188
22189 rm -f doc/config.status
22190 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
22191
22192
22193 ac_config_commands="$ac_config_commands default"
22194
22195
22196
22197
22198
22199
22200 cat >confcache <<\_ACEOF
22201 # This file is a shell script that caches the results of configure
22202 # tests run on this system so they can be shared between configure
22203 # scripts and configure runs, see configure's option --config-cache.
22204 # It is not useful on other systems. If it contains results you don't
22205 # want to keep, you may remove or edit it.
22206 #
22207 # config.status only pays attention to the cache file if you give it
22208 # the --recheck option to rerun configure.
22209 #
22210 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22211 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22212 # following values.
22213
22214 _ACEOF
22215
22216 # The following way of writing the cache mishandles newlines in values,
22217 # but we know of no workaround that is simple, portable, and efficient.
22218 # So, don't put newlines in cache variables' values.
22219 # Ultrix sh set writes to stderr and can't be redirected directly,
22220 # and sets the high bit in the cache file unless we assign to the vars.
22221 {
22222 (set) 2>&1 |
22223 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22224 *ac_space=\ *)
22225 # `set' does not quote correctly, so add quotes (double-quote
22226 # substitution turns \\\\ into \\, and sed turns \\ into \).
22227 sed -n \
22228 "s/'/'\\\\''/g;
22229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22230 ;;
22231 *)
22232 # `set' quotes correctly as required by POSIX, so do not add quotes.
22233 sed -n \
22234 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22235 ;;
22236 esac;
22237 } |
22238 sed '
22239 t clear
22240 : clear
22241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22242 t end
22243 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22244 : end' >>confcache
22245 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22246 if test -w $cache_file; then
22247 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22248 cat confcache >$cache_file
22249 else
22250 echo "not updating unwritable cache $cache_file"
22251 fi
22252 fi
22253 rm -f confcache
22254
22255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22256 # Let make expand exec_prefix.
22257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22258
22259 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22260 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22261 # trailing colons and then remove the whole line if VPATH becomes empty
22262 # (actually we leave an empty line to preserve line numbers).
22263 if test "x$srcdir" = x.; then
22264 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22265 s/:*\$(srcdir):*/:/;
22266 s/:*\${srcdir}:*/:/;
22267 s/:*@srcdir@:*/:/;
22268 s/^\([^=]*=[ ]*\):*/\1/;
22269 s/:*$//;
22270 s/^[^=]*=[ ]*$//;
22271 }'
22272 fi
22273
22274 DEFS=-DHAVE_CONFIG_H
22275
22276 ac_libobjs=
22277 ac_ltlibobjs=
22278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22279 # 1. Remove the extension, and $U if already installed.
22280 ac_i=`echo "$ac_i" |
22281 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22282 # 2. Add them.
22283 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22284 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22285 done
22286 LIBOBJS=$ac_libobjs
22287
22288 LTLIBOBJS=$ac_ltlibobjs
22289
22290
22291 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22292 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22293 Usually this means the macro was only invoked conditionally." >&5
22294 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&2;}
22296 { (exit 1); exit 1; }; }
22297 fi
22298 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22299 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22300 Usually this means the macro was only invoked conditionally." >&5
22301 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&2;}
22303 { (exit 1); exit 1; }; }
22304 fi
22305 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22306 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22307 Usually this means the macro was only invoked conditionally." >&5
22308 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22309 Usually this means the macro was only invoked conditionally." >&2;}
22310 { (exit 1); exit 1; }; }
22311 fi
22312 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
22313 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
22314 Usually this means the macro was only invoked conditionally." >&5
22315 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
22316 Usually this means the macro was only invoked conditionally." >&2;}
22317 { (exit 1); exit 1; }; }
22318 fi
22319 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
22320 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
22321 Usually this means the macro was only invoked conditionally." >&5
22322 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
22323 Usually this means the macro was only invoked conditionally." >&2;}
22324 { (exit 1); exit 1; }; }
22325 fi
22326
22327 : ${CONFIG_STATUS=./config.status}
22328 ac_clean_files_save=$ac_clean_files
22329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22330 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22331 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22332 cat >$CONFIG_STATUS <<_ACEOF
22333 #! $SHELL
22334 # Generated by $as_me.
22335 # Run this file to recreate the current configuration.
22336 # Compiler output produced by configure, useful for debugging
22337 # configure, is in config.log if it exists.
22338
22339 debug=false
22340 ac_cs_recheck=false
22341 ac_cs_silent=false
22342 SHELL=\${CONFIG_SHELL-$SHELL}
22343 _ACEOF
22344
22345 cat >>$CONFIG_STATUS <<\_ACEOF
22346 ## --------------------- ##
22347 ## M4sh Initialization. ##
22348 ## --------------------- ##
22349
22350 # Be Bourne compatible
22351 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22352 emulate sh
22353 NULLCMD=:
22354 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22355 # is contrary to our usage. Disable this feature.
22356 alias -g '${1+"$@"}'='"$@"'
22357 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22358 set -o posix
22359 fi
22360 DUALCASE=1; export DUALCASE # for MKS sh
22361
22362 # Support unset when possible.
22363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22364 as_unset=unset
22365 else
22366 as_unset=false
22367 fi
22368
22369
22370 # Work around bugs in pre-3.0 UWIN ksh.
22371 $as_unset ENV MAIL MAILPATH
22372 PS1='$ '
22373 PS2='> '
22374 PS4='+ '
22375
22376 # NLS nuisances.
22377 for as_var in \
22378 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22379 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22380 LC_TELEPHONE LC_TIME
22381 do
22382 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22383 eval $as_var=C; export $as_var
22384 else
22385 $as_unset $as_var
22386 fi
22387 done
22388
22389 # Required to use basename.
22390 if expr a : '\(a\)' >/dev/null 2>&1; then
22391 as_expr=expr
22392 else
22393 as_expr=false
22394 fi
22395
22396 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22397 as_basename=basename
22398 else
22399 as_basename=false
22400 fi
22401
22402
22403 # Name of the executable.
22404 as_me=`$as_basename "$0" ||
22405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22406 X"$0" : 'X\(//\)$' \| \
22407 X"$0" : 'X\(/\)$' \| \
22408 . : '\(.\)' 2>/dev/null ||
22409 echo X/"$0" |
22410 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22411 /^X\/\(\/\/\)$/{ s//\1/; q; }
22412 /^X\/\(\/\).*/{ s//\1/; q; }
22413 s/.*/./; q'`
22414
22415
22416 # PATH needs CR, and LINENO needs CR and PATH.
22417 # Avoid depending upon Character Ranges.
22418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22421 as_cr_digits='0123456789'
22422 as_cr_alnum=$as_cr_Letters$as_cr_digits
22423
22424 # The user is always right.
22425 if test "${PATH_SEPARATOR+set}" != set; then
22426 echo "#! /bin/sh" >conf$$.sh
22427 echo "exit 0" >>conf$$.sh
22428 chmod +x conf$$.sh
22429 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22430 PATH_SEPARATOR=';'
22431 else
22432 PATH_SEPARATOR=:
22433 fi
22434 rm -f conf$$.sh
22435 fi
22436
22437
22438 as_lineno_1=$LINENO
22439 as_lineno_2=$LINENO
22440 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22441 test "x$as_lineno_1" != "x$as_lineno_2" &&
22442 test "x$as_lineno_3" = "x$as_lineno_2" || {
22443 # Find who we are. Look in the path if we contain no path at all
22444 # relative or not.
22445 case $0 in
22446 *[\\/]* ) as_myself=$0 ;;
22447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22448 for as_dir in $PATH
22449 do
22450 IFS=$as_save_IFS
22451 test -z "$as_dir" && as_dir=.
22452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22453 done
22454
22455 ;;
22456 esac
22457 # We did not find ourselves, most probably we were run as `sh COMMAND'
22458 # in which case we are not to be found in the path.
22459 if test "x$as_myself" = x; then
22460 as_myself=$0
22461 fi
22462 if test ! -f "$as_myself"; then
22463 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22464 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22465 { (exit 1); exit 1; }; }
22466 fi
22467 case $CONFIG_SHELL in
22468 '')
22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22471 do
22472 IFS=$as_save_IFS
22473 test -z "$as_dir" && as_dir=.
22474 for as_base in sh bash ksh sh5; do
22475 case $as_dir in
22476 /*)
22477 if ("$as_dir/$as_base" -c '
22478 as_lineno_1=$LINENO
22479 as_lineno_2=$LINENO
22480 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22481 test "x$as_lineno_1" != "x$as_lineno_2" &&
22482 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22483 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22484 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22485 CONFIG_SHELL=$as_dir/$as_base
22486 export CONFIG_SHELL
22487 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22488 fi;;
22489 esac
22490 done
22491 done
22492 ;;
22493 esac
22494
22495 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22496 # uniformly replaced by the line number. The first 'sed' inserts a
22497 # line-number line before each line; the second 'sed' does the real
22498 # work. The second script uses 'N' to pair each line-number line
22499 # with the numbered line, and appends trailing '-' during
22500 # substitution so that $LINENO is not a special case at line end.
22501 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22502 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22503 sed '=' <$as_myself |
22504 sed '
22505 N
22506 s,$,-,
22507 : loop
22508 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22509 t loop
22510 s,-$,,
22511 s,^['$as_cr_digits']*\n,,
22512 ' >$as_me.lineno &&
22513 chmod +x $as_me.lineno ||
22514 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22515 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22516 { (exit 1); exit 1; }; }
22517
22518 # Don't try to exec as it changes $[0], causing all sort of problems
22519 # (the dirname of $[0] is not the place where we might find the
22520 # original and so on. Autoconf is especially sensible to this).
22521 . ./$as_me.lineno
22522 # Exit status is that of the last command.
22523 exit
22524 }
22525
22526
22527 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22528 *c*,-n*) ECHO_N= ECHO_C='
22529 ' ECHO_T=' ' ;;
22530 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22531 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22532 esac
22533
22534 if expr a : '\(a\)' >/dev/null 2>&1; then
22535 as_expr=expr
22536 else
22537 as_expr=false
22538 fi
22539
22540 rm -f conf$$ conf$$.exe conf$$.file
22541 echo >conf$$.file
22542 if ln -s conf$$.file conf$$ 2>/dev/null; then
22543 # We could just check for DJGPP; but this test a) works b) is more generic
22544 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22545 if test -f conf$$.exe; then
22546 # Don't use ln at all; we don't have any links
22547 as_ln_s='cp -p'
22548 else
22549 as_ln_s='ln -s'
22550 fi
22551 elif ln conf$$.file conf$$ 2>/dev/null; then
22552 as_ln_s=ln
22553 else
22554 as_ln_s='cp -p'
22555 fi
22556 rm -f conf$$ conf$$.exe conf$$.file
22557
22558 if mkdir -p . 2>/dev/null; then
22559 as_mkdir_p=:
22560 else
22561 test -d ./-p && rmdir ./-p
22562 as_mkdir_p=false
22563 fi
22564
22565 as_executable_p="test -f"
22566
22567 # Sed expression to map a string onto a valid CPP name.
22568 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22569
22570 # Sed expression to map a string onto a valid variable name.
22571 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22572
22573
22574 # IFS
22575 # We need space, tab and new line, in precisely that order.
22576 as_nl='
22577 '
22578 IFS=" $as_nl"
22579
22580 # CDPATH.
22581 $as_unset CDPATH
22582
22583 exec 6>&1
22584
22585 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22586 # report actual input values of CONFIG_FILES etc. instead of their
22587 # values after options handling. Logging --version etc. is OK.
22588 exec 5>>config.log
22589 {
22590 echo
22591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22592 ## Running $as_me. ##
22593 _ASBOX
22594 } >&5
22595 cat >&5 <<_CSEOF
22596
22597 This file was extended by $as_me, which was
22598 generated by GNU Autoconf 2.59. Invocation command line was
22599
22600 CONFIG_FILES = $CONFIG_FILES
22601 CONFIG_HEADERS = $CONFIG_HEADERS
22602 CONFIG_LINKS = $CONFIG_LINKS
22603 CONFIG_COMMANDS = $CONFIG_COMMANDS
22604 $ $0 $@
22605
22606 _CSEOF
22607 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22608 echo >&5
22609 _ACEOF
22610
22611 # Files that config.status was made for.
22612 if test -n "$ac_config_files"; then
22613 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22614 fi
22615
22616 if test -n "$ac_config_headers"; then
22617 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22618 fi
22619
22620 if test -n "$ac_config_links"; then
22621 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22622 fi
22623
22624 if test -n "$ac_config_commands"; then
22625 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22626 fi
22627
22628 cat >>$CONFIG_STATUS <<\_ACEOF
22629
22630 ac_cs_usage="\
22631 \`$as_me' instantiates files from templates according to the
22632 current configuration.
22633
22634 Usage: $0 [OPTIONS] [FILE]...
22635
22636 -h, --help print this help, then exit
22637 -V, --version print version number, then exit
22638 -q, --quiet do not print progress messages
22639 -d, --debug don't remove temporary files
22640 --recheck update $as_me by reconfiguring in the same conditions
22641 --file=FILE[:TEMPLATE]
22642 instantiate the configuration file FILE
22643 --header=FILE[:TEMPLATE]
22644 instantiate the configuration header FILE
22645
22646 Configuration files:
22647 $config_files
22648
22649 Configuration headers:
22650 $config_headers
22651
22652 Configuration commands:
22653 $config_commands
22654
22655 Report bugs to <bug-autoconf@gnu.org>."
22656 _ACEOF
22657
22658 cat >>$CONFIG_STATUS <<_ACEOF
22659 ac_cs_version="\\
22660 config.status
22661 configured by $0, generated by GNU Autoconf 2.59,
22662 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22663
22664 Copyright (C) 2003 Free Software Foundation, Inc.
22665 This config.status script is free software; the Free Software Foundation
22666 gives unlimited permission to copy, distribute and modify it."
22667 srcdir=$srcdir
22668 INSTALL="$INSTALL"
22669 _ACEOF
22670
22671 cat >>$CONFIG_STATUS <<\_ACEOF
22672 # If no file are specified by the user, then we need to provide default
22673 # value. By we need to know if files were specified by the user.
22674 ac_need_defaults=:
22675 while test $# != 0
22676 do
22677 case $1 in
22678 --*=*)
22679 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22680 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22681 ac_shift=:
22682 ;;
22683 -*)
22684 ac_option=$1
22685 ac_optarg=$2
22686 ac_shift=shift
22687 ;;
22688 *) # This is not an option, so the user has probably given explicit
22689 # arguments.
22690 ac_option=$1
22691 ac_need_defaults=false;;
22692 esac
22693
22694 case $ac_option in
22695 # Handling of the options.
22696 _ACEOF
22697 cat >>$CONFIG_STATUS <<\_ACEOF
22698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22699 ac_cs_recheck=: ;;
22700 --version | --vers* | -V )
22701 echo "$ac_cs_version"; exit 0 ;;
22702 --he | --h)
22703 # Conflict between --help and --header
22704 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22705 Try \`$0 --help' for more information." >&5
22706 echo "$as_me: error: ambiguous option: $1
22707 Try \`$0 --help' for more information." >&2;}
22708 { (exit 1); exit 1; }; };;
22709 --help | --hel | -h )
22710 echo "$ac_cs_usage"; exit 0 ;;
22711 --debug | --d* | -d )
22712 debug=: ;;
22713 --file | --fil | --fi | --f )
22714 $ac_shift
22715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22716 ac_need_defaults=false;;
22717 --header | --heade | --head | --hea )
22718 $ac_shift
22719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22720 ac_need_defaults=false;;
22721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22723 ac_cs_silent=: ;;
22724
22725 # This is an error.
22726 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22727 Try \`$0 --help' for more information." >&5
22728 echo "$as_me: error: unrecognized option: $1
22729 Try \`$0 --help' for more information." >&2;}
22730 { (exit 1); exit 1; }; } ;;
22731
22732 *) ac_config_targets="$ac_config_targets $1" ;;
22733
22734 esac
22735 shift
22736 done
22737
22738 ac_configure_extra_args=
22739
22740 if $ac_cs_silent; then
22741 exec 6>/dev/null
22742 ac_configure_extra_args="$ac_configure_extra_args --silent"
22743 fi
22744
22745 _ACEOF
22746 cat >>$CONFIG_STATUS <<_ACEOF
22747 if \$ac_cs_recheck; then
22748 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22749 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22750 fi
22751
22752 _ACEOF
22753
22754 cat >>$CONFIG_STATUS <<_ACEOF
22755 #
22756 # INIT-COMMANDS section.
22757 #
22758
22759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22760
22761
22762 # The HP-UX ksh and POSIX shell print the target directory to stdout
22763 # if CDPATH is set.
22764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22765
22766 sed_quote_subst='$sed_quote_subst'
22767 double_quote_subst='$double_quote_subst'
22768 delay_variable_subst='$delay_variable_subst'
22769 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22770 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22771 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22772 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22773 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22774 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22775 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22776 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22777 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22778 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22779 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22780 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22781 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22782 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22783 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22784 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22785 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22786 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22787 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22788 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22789 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22790 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22791 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22792 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22793 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22794 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22795 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22796 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22797 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22798 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22799 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22800 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22801 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22802 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22803 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22804 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22805 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22806 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22807 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22808 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22809 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22810 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22811 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22812 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22813 lt_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"`'
22814 lt_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"`'
22815 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22816 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22817 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22818 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22819 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22820 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22821 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22822 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22823 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22824 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22825 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22826 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22827 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22828 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22829 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22830 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22831 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22832 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22833 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22834 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22835 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22836 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22837 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22838 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22839 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22840 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22841 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22842 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22843 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22844 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22845 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22846 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22847 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22848 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22849 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22850 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22851 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22852 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22853 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22854 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22855 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22856 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22857 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22858 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22859 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22860 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22861 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22862 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22863 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22864 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22865 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22866 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22867 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22868 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22869 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22870 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22871 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22872 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22873 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22874 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22875 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22876 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22877 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22878 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22879 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22880 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22881 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22882 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22883 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22884 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22885 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22886 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22887
22888 LTCC='$LTCC'
22889 LTCFLAGS='$LTCFLAGS'
22890 compiler='$compiler_DEFAULT'
22891
22892 # Quote evaled strings.
22893 for var in SED \
22894 GREP \
22895 EGREP \
22896 FGREP \
22897 LD \
22898 NM \
22899 LN_S \
22900 lt_SP2NL \
22901 lt_NL2SP \
22902 reload_flag \
22903 OBJDUMP \
22904 deplibs_check_method \
22905 file_magic_cmd \
22906 AR \
22907 AR_FLAGS \
22908 STRIP \
22909 RANLIB \
22910 CC \
22911 CFLAGS \
22912 compiler \
22913 lt_cv_sys_global_symbol_pipe \
22914 lt_cv_sys_global_symbol_to_cdecl \
22915 lt_cv_sys_global_symbol_to_c_name_address \
22916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22917 SHELL \
22918 ECHO \
22919 lt_prog_compiler_no_builtin_flag \
22920 lt_prog_compiler_wl \
22921 lt_prog_compiler_pic \
22922 lt_prog_compiler_static \
22923 lt_cv_prog_compiler_c_o \
22924 need_locks \
22925 DSYMUTIL \
22926 NMEDIT \
22927 LIPO \
22928 OTOOL \
22929 OTOOL64 \
22930 shrext_cmds \
22931 export_dynamic_flag_spec \
22932 whole_archive_flag_spec \
22933 compiler_needs_object \
22934 with_gnu_ld \
22935 allow_undefined_flag \
22936 no_undefined_flag \
22937 hardcode_libdir_flag_spec \
22938 hardcode_libdir_flag_spec_ld \
22939 hardcode_libdir_separator \
22940 fix_srcfile_path \
22941 exclude_expsyms \
22942 include_expsyms \
22943 file_list_spec \
22944 variables_saved_for_relink \
22945 libname_spec \
22946 library_names_spec \
22947 soname_spec \
22948 finish_eval \
22949 old_striplib \
22950 striplib; do
22951 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22952 *[\\\\\\\`\\"\\\$]*)
22953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22954 ;;
22955 *)
22956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22957 ;;
22958 esac
22959 done
22960
22961 # Double-quote double-evaled strings.
22962 for var in reload_cmds \
22963 old_postinstall_cmds \
22964 old_postuninstall_cmds \
22965 old_archive_cmds \
22966 extract_expsyms_cmds \
22967 old_archive_from_new_cmds \
22968 old_archive_from_expsyms_cmds \
22969 archive_cmds \
22970 archive_expsym_cmds \
22971 module_cmds \
22972 module_expsym_cmds \
22973 export_symbols_cmds \
22974 prelink_cmds \
22975 postinstall_cmds \
22976 postuninstall_cmds \
22977 finish_cmds \
22978 sys_lib_search_path_spec \
22979 sys_lib_dlsearch_path_spec; do
22980 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22981 *[\\\\\\\`\\"\\\$]*)
22982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22983 ;;
22984 *)
22985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22986 ;;
22987 esac
22988 done
22989
22990 # Fix-up fallback echo if it was mangled by the above quoting rules.
22991 case \$lt_ECHO in
22992 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22993 ;;
22994 esac
22995
22996 ac_aux_dir='$ac_aux_dir'
22997 xsi_shell='$xsi_shell'
22998 lt_shell_append='$lt_shell_append'
22999
23000 # See if we are running on zsh, and set the options which allow our
23001 # commands through without removal of \ escapes INIT.
23002 if test -n "\${ZSH_VERSION+set}" ; then
23003 setopt NO_GLOB_SUBST
23004 fi
23005
23006
23007 PACKAGE='$PACKAGE'
23008 VERSION='$VERSION'
23009 TIMESTAMP='$TIMESTAMP'
23010 RM='$RM'
23011 ofile='$ofile'
23012
23013
23014
23015 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23016 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
23017 # from automake.
23018 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23019 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23020 LINGUAS="${LINGUAS-%UNSET%}"
23021
23022
23023 GCC="$GCC"
23024 CC="$CC"
23025 acx_cv_header_stdint="$acx_cv_header_stdint"
23026 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23027 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23028 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23029 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23030 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23031 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23032 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23033 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23034 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23035 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23036 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23037 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23038 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23039
23040
23041
23042 _ACEOF
23043
23044
23045
23046 cat >>$CONFIG_STATUS <<\_ACEOF
23047 for ac_config_target in $ac_config_targets
23048 do
23049 case "$ac_config_target" in
23050 # Handling of arguments.
23051 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23052 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23053 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
23054 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
23055 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23056 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23057 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23058 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
23059 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23060 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23063 { (exit 1); exit 1; }; };;
23064 esac
23065 done
23066
23067 # If the user did not use the arguments to specify the items to instantiate,
23068 # then the envvar interface is used. Set only those that are not.
23069 # We use the long form for the default assignment because of an extremely
23070 # bizarre bug on SunOS 4.1.3.
23071 if $ac_need_defaults; then
23072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23075 fi
23076
23077 # Have a temporary directory for convenience. Make it in the build tree
23078 # simply because there is no reason to put it here, and in addition,
23079 # creating and moving files from /tmp can sometimes cause problems.
23080 # Create a temporary directory, and hook for its removal unless debugging.
23081 $debug ||
23082 {
23083 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23084 trap '{ (exit 1); exit 1; }' 1 2 13 15
23085 }
23086
23087 # Create a (secure) tmp directory for tmp files.
23088
23089 {
23090 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23091 test -n "$tmp" && test -d "$tmp"
23092 } ||
23093 {
23094 tmp=./confstat$$-$RANDOM
23095 (umask 077 && mkdir $tmp)
23096 } ||
23097 {
23098 echo "$me: cannot create a temporary directory in ." >&2
23099 { (exit 1); exit 1; }
23100 }
23101
23102 _ACEOF
23103
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105
23106 #
23107 # CONFIG_FILES section.
23108 #
23109
23110 # No need to generate the scripts if there are no CONFIG_FILES.
23111 # This happens for instance when ./config.status config.h
23112 if test -n "\$CONFIG_FILES"; then
23113 # Protect against being on the right side of a sed subst in config.status.
23114 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23115 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23116 s,@SHELL@,$SHELL,;t t
23117 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23118 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23119 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23120 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23121 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23122 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23123 s,@exec_prefix@,$exec_prefix,;t t
23124 s,@prefix@,$prefix,;t t
23125 s,@program_transform_name@,$program_transform_name,;t t
23126 s,@bindir@,$bindir,;t t
23127 s,@sbindir@,$sbindir,;t t
23128 s,@libexecdir@,$libexecdir,;t t
23129 s,@datadir@,$datadir,;t t
23130 s,@sysconfdir@,$sysconfdir,;t t
23131 s,@sharedstatedir@,$sharedstatedir,;t t
23132 s,@localstatedir@,$localstatedir,;t t
23133 s,@libdir@,$libdir,;t t
23134 s,@includedir@,$includedir,;t t
23135 s,@oldincludedir@,$oldincludedir,;t t
23136 s,@infodir@,$infodir,;t t
23137 s,@mandir@,$mandir,;t t
23138 s,@build_alias@,$build_alias,;t t
23139 s,@host_alias@,$host_alias,;t t
23140 s,@target_alias@,$target_alias,;t t
23141 s,@DEFS@,$DEFS,;t t
23142 s,@ECHO_C@,$ECHO_C,;t t
23143 s,@ECHO_N@,$ECHO_N,;t t
23144 s,@ECHO_T@,$ECHO_T,;t t
23145 s,@LIBS@,$LIBS,;t t
23146 s,@build@,$build,;t t
23147 s,@build_cpu@,$build_cpu,;t t
23148 s,@build_vendor@,$build_vendor,;t t
23149 s,@build_os@,$build_os,;t t
23150 s,@host@,$host,;t t
23151 s,@host_cpu@,$host_cpu,;t t
23152 s,@host_vendor@,$host_vendor,;t t
23153 s,@host_os@,$host_os,;t t
23154 s,@target@,$target,;t t
23155 s,@target_cpu@,$target_cpu,;t t
23156 s,@target_vendor@,$target_vendor,;t t
23157 s,@target_os@,$target_os,;t t
23158 s,@CC@,$CC,;t t
23159 s,@CFLAGS@,$CFLAGS,;t t
23160 s,@LDFLAGS@,$LDFLAGS,;t t
23161 s,@CPPFLAGS@,$CPPFLAGS,;t t
23162 s,@ac_ct_CC@,$ac_ct_CC,;t t
23163 s,@EXEEXT@,$EXEEXT,;t t
23164 s,@OBJEXT@,$OBJEXT,;t t
23165 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23166 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23167 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23168 s,@CYGPATH_W@,$CYGPATH_W,;t t
23169 s,@PACKAGE@,$PACKAGE,;t t
23170 s,@VERSION@,$VERSION,;t t
23171 s,@ACLOCAL@,$ACLOCAL,;t t
23172 s,@AUTOCONF@,$AUTOCONF,;t t
23173 s,@AUTOMAKE@,$AUTOMAKE,;t t
23174 s,@AUTOHEADER@,$AUTOHEADER,;t t
23175 s,@MAKEINFO@,$MAKEINFO,;t t
23176 s,@install_sh@,$install_sh,;t t
23177 s,@STRIP@,$STRIP,;t t
23178 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23179 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
23180 s,@mkdir_p@,$mkdir_p,;t t
23181 s,@AWK@,$AWK,;t t
23182 s,@SET_MAKE@,$SET_MAKE,;t t
23183 s,@am__leading_dot@,$am__leading_dot,;t t
23184 s,@AMTAR@,$AMTAR,;t t
23185 s,@am__tar@,$am__tar,;t t
23186 s,@am__untar@,$am__untar,;t t
23187 s,@DEPDIR@,$DEPDIR,;t t
23188 s,@am__include@,$am__include,;t t
23189 s,@am__quote@,$am__quote,;t t
23190 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
23191 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
23192 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
23193 s,@CCDEPMODE@,$CCDEPMODE,;t t
23194 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
23195 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
23196 s,@AR@,$AR,;t t
23197 s,@ac_ct_AR@,$ac_ct_AR,;t t
23198 s,@RANLIB@,$RANLIB,;t t
23199 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23200 s,@CPP@,$CPP,;t t
23201 s,@EGREP@,$EGREP,;t t
23202 s,@LIBTOOL@,$LIBTOOL,;t t
23203 s,@SED@,$SED,;t t
23204 s,@FGREP@,$FGREP,;t t
23205 s,@GREP@,$GREP,;t t
23206 s,@LD@,$LD,;t t
23207 s,@DUMPBIN@,$DUMPBIN,;t t
23208 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
23209 s,@NM@,$NM,;t t
23210 s,@LN_S@,$LN_S,;t t
23211 s,@OBJDUMP@,$OBJDUMP,;t t
23212 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
23213 s,@lt_ECHO@,$lt_ECHO,;t t
23214 s,@DSYMUTIL@,$DSYMUTIL,;t t
23215 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
23216 s,@NMEDIT@,$NMEDIT,;t t
23217 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
23218 s,@LIPO@,$LIPO,;t t
23219 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
23220 s,@OTOOL@,$OTOOL,;t t
23221 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
23222 s,@OTOOL64@,$OTOOL64,;t t
23223 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
23224 s,@DEBUGDIR@,$DEBUGDIR,;t t
23225 s,@PKGVERSION@,$PKGVERSION,;t t
23226 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
23227 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
23228 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23229 s,@NO_WERROR@,$NO_WERROR,;t t
23230 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23231 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23232 s,@MAINT@,$MAINT,;t t
23233 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
23234 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
23235 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
23236 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
23237 s,@host_noncanonical@,$host_noncanonical,;t t
23238 s,@target_noncanonical@,$target_noncanonical,;t t
23239 s,@bfdlibdir@,$bfdlibdir,;t t
23240 s,@bfdincludedir@,$bfdincludedir,;t t
23241 s,@USE_NLS@,$USE_NLS,;t t
23242 s,@LIBINTL@,$LIBINTL,;t t
23243 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23244 s,@INCINTL@,$INCINTL,;t t
23245 s,@XGETTEXT@,$XGETTEXT,;t t
23246 s,@GMSGFMT@,$GMSGFMT,;t t
23247 s,@POSUB@,$POSUB,;t t
23248 s,@CATALOGS@,$CATALOGS,;t t
23249 s,@DATADIRNAME@,$DATADIRNAME,;t t
23250 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23251 s,@GENCAT@,$GENCAT,;t t
23252 s,@CATOBJEXT@,$CATOBJEXT,;t t
23253 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
23254 s,@MSGFMT@,$MSGFMT,;t t
23255 s,@MSGMERGE@,$MSGMERGE,;t t
23256 s,@HDEFINES@,$HDEFINES,;t t
23257 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
23258 s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t
23259 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
23260 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
23261 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
23262 s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t
23263 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
23264 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
23265 s,@COREFILE@,$COREFILE,;t t
23266 s,@COREFLAG@,$COREFLAG,;t t
23267 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
23268 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
23269 s,@TDEFINES@,$TDEFINES,;t t
23270 s,@wordsize@,$wordsize,;t t
23271 s,@bfd64_libs@,$bfd64_libs,;t t
23272 s,@all_backends@,$all_backends,;t t
23273 s,@bfd_backends@,$bfd_backends,;t t
23274 s,@bfd_machines@,$bfd_machines,;t t
23275 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
23276 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
23277 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
23278 s,@tdefaults@,$tdefaults,;t t
23279 s,@datarootdir@,$datarootdir,;t t
23280 s,@docdir@,$docdir,;t t
23281 s,@htmldir@,$htmldir,;t t
23282 s,@LIBOBJS@,$LIBOBJS,;t t
23283 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23284 CEOF
23285
23286 _ACEOF
23287
23288 cat >>$CONFIG_STATUS <<\_ACEOF
23289 # Split the substitutions into bite-sized pieces for seds with
23290 # small command number limits, like on Digital OSF/1 and HP-UX.
23291 ac_max_sed_lines=48
23292 ac_sed_frag=1 # Number of current file.
23293 ac_beg=1 # First line for current file.
23294 ac_end=$ac_max_sed_lines # Line after last line for current file.
23295 ac_more_lines=:
23296 ac_sed_cmds=
23297 while $ac_more_lines; do
23298 if test $ac_beg -gt 1; then
23299 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23300 else
23301 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23302 fi
23303 if test ! -s $tmp/subs.frag; then
23304 ac_more_lines=false
23305 else
23306 # The purpose of the label and of the branching condition is to
23307 # speed up the sed processing (if there are no `@' at all, there
23308 # is no need to browse any of the substitutions).
23309 # These are the two extra sed commands mentioned above.
23310 (echo ':t
23311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23312 if test -z "$ac_sed_cmds"; then
23313 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23314 else
23315 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23316 fi
23317 ac_sed_frag=`expr $ac_sed_frag + 1`
23318 ac_beg=$ac_end
23319 ac_end=`expr $ac_end + $ac_max_sed_lines`
23320 fi
23321 done
23322 if test -z "$ac_sed_cmds"; then
23323 ac_sed_cmds=cat
23324 fi
23325 fi # test -n "$CONFIG_FILES"
23326
23327 _ACEOF
23328 cat >>$CONFIG_STATUS <<\_ACEOF
23329 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23331 case $ac_file in
23332 - | *:- | *:-:* ) # input from stdin
23333 cat >$tmp/stdin
23334 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23336 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23338 * ) ac_file_in=$ac_file.in ;;
23339 esac
23340
23341 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23342 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23344 X"$ac_file" : 'X\(//\)[^/]' \| \
23345 X"$ac_file" : 'X\(//\)$' \| \
23346 X"$ac_file" : 'X\(/\)' \| \
23347 . : '\(.\)' 2>/dev/null ||
23348 echo X"$ac_file" |
23349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23351 /^X\(\/\/\)$/{ s//\1/; q; }
23352 /^X\(\/\).*/{ s//\1/; q; }
23353 s/.*/./; q'`
23354 { if $as_mkdir_p; then
23355 mkdir -p "$ac_dir"
23356 else
23357 as_dir="$ac_dir"
23358 as_dirs=
23359 while test ! -d "$as_dir"; do
23360 as_dirs="$as_dir $as_dirs"
23361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23363 X"$as_dir" : 'X\(//\)[^/]' \| \
23364 X"$as_dir" : 'X\(//\)$' \| \
23365 X"$as_dir" : 'X\(/\)' \| \
23366 . : '\(.\)' 2>/dev/null ||
23367 echo X"$as_dir" |
23368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23370 /^X\(\/\/\)$/{ s//\1/; q; }
23371 /^X\(\/\).*/{ s//\1/; q; }
23372 s/.*/./; q'`
23373 done
23374 test ! -n "$as_dirs" || mkdir $as_dirs
23375 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23377 { (exit 1); exit 1; }; }; }
23378
23379 ac_builddir=.
23380
23381 if test "$ac_dir" != .; then
23382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23383 # A "../" for each directory in $ac_dir_suffix.
23384 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23385 else
23386 ac_dir_suffix= ac_top_builddir=
23387 fi
23388
23389 case $srcdir in
23390 .) # No --srcdir option. We are building in place.
23391 ac_srcdir=.
23392 if test -z "$ac_top_builddir"; then
23393 ac_top_srcdir=.
23394 else
23395 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23396 fi ;;
23397 [\\/]* | ?:[\\/]* ) # Absolute path.
23398 ac_srcdir=$srcdir$ac_dir_suffix;
23399 ac_top_srcdir=$srcdir ;;
23400 *) # Relative path.
23401 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23402 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23403 esac
23404
23405 # Do not use `cd foo && pwd` to compute absolute paths, because
23406 # the directories may not exist.
23407 case `pwd` in
23408 .) ac_abs_builddir="$ac_dir";;
23409 *)
23410 case "$ac_dir" in
23411 .) ac_abs_builddir=`pwd`;;
23412 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23413 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23414 esac;;
23415 esac
23416 case $ac_abs_builddir in
23417 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23418 *)
23419 case ${ac_top_builddir}. in
23420 .) ac_abs_top_builddir=$ac_abs_builddir;;
23421 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23422 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23423 esac;;
23424 esac
23425 case $ac_abs_builddir in
23426 .) ac_abs_srcdir=$ac_srcdir;;
23427 *)
23428 case $ac_srcdir in
23429 .) ac_abs_srcdir=$ac_abs_builddir;;
23430 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23431 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23432 esac;;
23433 esac
23434 case $ac_abs_builddir in
23435 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23436 *)
23437 case $ac_top_srcdir in
23438 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23439 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23440 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23441 esac;;
23442 esac
23443
23444
23445 case $INSTALL in
23446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23447 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23448 esac
23449
23450 if test x"$ac_file" != x-; then
23451 { echo "$as_me:$LINENO: creating $ac_file" >&5
23452 echo "$as_me: creating $ac_file" >&6;}
23453 rm -f "$ac_file"
23454 fi
23455 # Let's still pretend it is `configure' which instantiates (i.e., don't
23456 # use $as_me), people would be surprised to read:
23457 # /* config.h. Generated by config.status. */
23458 if test x"$ac_file" = x-; then
23459 configure_input=
23460 else
23461 configure_input="$ac_file. "
23462 fi
23463 configure_input=$configure_input"Generated from `echo $ac_file_in |
23464 sed 's,.*/,,'` by configure."
23465
23466 # First look for the input files in the build tree, otherwise in the
23467 # src tree.
23468 ac_file_inputs=`IFS=:
23469 for f in $ac_file_in; do
23470 case $f in
23471 -) echo $tmp/stdin ;;
23472 [\\/$]*)
23473 # Absolute (can't be DOS-style, as IFS=:)
23474 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23475 echo "$as_me: error: cannot find input file: $f" >&2;}
23476 { (exit 1); exit 1; }; }
23477 echo "$f";;
23478 *) # Relative
23479 if test -f "$f"; then
23480 # Build tree
23481 echo "$f"
23482 elif test -f "$srcdir/$f"; then
23483 # Source tree
23484 echo "$srcdir/$f"
23485 else
23486 # /dev/null tree
23487 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23488 echo "$as_me: error: cannot find input file: $f" >&2;}
23489 { (exit 1); exit 1; }; }
23490 fi;;
23491 esac
23492 done` || { (exit 1); exit 1; }
23493 _ACEOF
23494 cat >>$CONFIG_STATUS <<_ACEOF
23495 sed "$ac_vpsub
23496 $extrasub
23497 _ACEOF
23498 cat >>$CONFIG_STATUS <<\_ACEOF
23499 :t
23500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23501 s,@configure_input@,$configure_input,;t t
23502 s,@srcdir@,$ac_srcdir,;t t
23503 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23504 s,@top_srcdir@,$ac_top_srcdir,;t t
23505 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23506 s,@builddir@,$ac_builddir,;t t
23507 s,@abs_builddir@,$ac_abs_builddir,;t t
23508 s,@top_builddir@,$ac_top_builddir,;t t
23509 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23510 s,@INSTALL@,$ac_INSTALL,;t t
23511 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23512 rm -f $tmp/stdin
23513 if test x"$ac_file" != x-; then
23514 mv $tmp/out $ac_file
23515 else
23516 cat $tmp/out
23517 rm -f $tmp/out
23518 fi
23519
23520 done
23521 _ACEOF
23522 cat >>$CONFIG_STATUS <<\_ACEOF
23523
23524 #
23525 # CONFIG_HEADER section.
23526 #
23527
23528 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23529 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23530 #
23531 # ac_d sets the value in "#define NAME VALUE" lines.
23532 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23533 ac_dB='[ ].*$,\1#\2'
23534 ac_dC=' '
23535 ac_dD=',;t'
23536 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23537 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23538 ac_uB='$,\1#\2define\3'
23539 ac_uC=' '
23540 ac_uD=',;t'
23541
23542 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23544 case $ac_file in
23545 - | *:- | *:-:* ) # input from stdin
23546 cat >$tmp/stdin
23547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23551 * ) ac_file_in=$ac_file.in ;;
23552 esac
23553
23554 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23555 echo "$as_me: creating $ac_file" >&6;}
23556
23557 # First look for the input files in the build tree, otherwise in the
23558 # src tree.
23559 ac_file_inputs=`IFS=:
23560 for f in $ac_file_in; do
23561 case $f in
23562 -) echo $tmp/stdin ;;
23563 [\\/$]*)
23564 # Absolute (can't be DOS-style, as IFS=:)
23565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23566 echo "$as_me: error: cannot find input file: $f" >&2;}
23567 { (exit 1); exit 1; }; }
23568 # Do quote $f, to prevent DOS paths from being IFS'd.
23569 echo "$f";;
23570 *) # Relative
23571 if test -f "$f"; then
23572 # Build tree
23573 echo "$f"
23574 elif test -f "$srcdir/$f"; then
23575 # Source tree
23576 echo "$srcdir/$f"
23577 else
23578 # /dev/null tree
23579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23580 echo "$as_me: error: cannot find input file: $f" >&2;}
23581 { (exit 1); exit 1; }; }
23582 fi;;
23583 esac
23584 done` || { (exit 1); exit 1; }
23585 # Remove the trailing spaces.
23586 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23587
23588 _ACEOF
23589
23590 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23591 # `conftest.undefs', that substitutes the proper values into
23592 # config.h.in to produce config.h. The first handles `#define'
23593 # templates, and the second `#undef' templates.
23594 # And first: Protect against being on the right side of a sed subst in
23595 # config.status. Protect against being in an unquoted here document
23596 # in config.status.
23597 rm -f conftest.defines conftest.undefs
23598 # Using a here document instead of a string reduces the quoting nightmare.
23599 # Putting comments in sed scripts is not portable.
23600 #
23601 # `end' is used to avoid that the second main sed command (meant for
23602 # 0-ary CPP macros) applies to n-ary macro definitions.
23603 # See the Autoconf documentation for `clear'.
23604 cat >confdef2sed.sed <<\_ACEOF
23605 s/[\\&,]/\\&/g
23606 s,[\\$`],\\&,g
23607 t clear
23608 : clear
23609 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23610 t end
23611 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23612 : end
23613 _ACEOF
23614 # If some macros were called several times there might be several times
23615 # the same #defines, which is useless. Nevertheless, we may not want to
23616 # sort them, since we want the *last* AC-DEFINE to be honored.
23617 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23618 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23619 rm -f confdef2sed.sed
23620
23621 # This sed command replaces #undef with comments. This is necessary, for
23622 # example, in the case of _POSIX_SOURCE, which is predefined and required
23623 # on some systems where configure will not decide to define it.
23624 cat >>conftest.undefs <<\_ACEOF
23625 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23626 _ACEOF
23627
23628 # Break up conftest.defines because some shells have a limit on the size
23629 # of here documents, and old seds have small limits too (100 cmds).
23630 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23631 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23632 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23633 echo ' :' >>$CONFIG_STATUS
23634 rm -f conftest.tail
23635 while grep . conftest.defines >/dev/null
23636 do
23637 # Write a limited-size here document to $tmp/defines.sed.
23638 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23639 # Speed up: don't consider the non `#define' lines.
23640 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23641 # Work around the forget-to-reset-the-flag bug.
23642 echo 't clr' >>$CONFIG_STATUS
23643 echo ': clr' >>$CONFIG_STATUS
23644 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23645 echo 'CEOF
23646 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23647 rm -f $tmp/in
23648 mv $tmp/out $tmp/in
23649 ' >>$CONFIG_STATUS
23650 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23651 rm -f conftest.defines
23652 mv conftest.tail conftest.defines
23653 done
23654 rm -f conftest.defines
23655 echo ' fi # grep' >>$CONFIG_STATUS
23656 echo >>$CONFIG_STATUS
23657
23658 # Break up conftest.undefs because some shells have a limit on the size
23659 # of here documents, and old seds have small limits too (100 cmds).
23660 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23661 rm -f conftest.tail
23662 while grep . conftest.undefs >/dev/null
23663 do
23664 # Write a limited-size here document to $tmp/undefs.sed.
23665 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23666 # Speed up: don't consider the non `#undef'
23667 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23668 # Work around the forget-to-reset-the-flag bug.
23669 echo 't clr' >>$CONFIG_STATUS
23670 echo ': clr' >>$CONFIG_STATUS
23671 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23672 echo 'CEOF
23673 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23674 rm -f $tmp/in
23675 mv $tmp/out $tmp/in
23676 ' >>$CONFIG_STATUS
23677 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23678 rm -f conftest.undefs
23679 mv conftest.tail conftest.undefs
23680 done
23681 rm -f conftest.undefs
23682
23683 cat >>$CONFIG_STATUS <<\_ACEOF
23684 # Let's still pretend it is `configure' which instantiates (i.e., don't
23685 # use $as_me), people would be surprised to read:
23686 # /* config.h. Generated by config.status. */
23687 if test x"$ac_file" = x-; then
23688 echo "/* Generated by configure. */" >$tmp/config.h
23689 else
23690 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23691 fi
23692 cat $tmp/in >>$tmp/config.h
23693 rm -f $tmp/in
23694 if test x"$ac_file" != x-; then
23695 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23697 echo "$as_me: $ac_file is unchanged" >&6;}
23698 else
23699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23701 X"$ac_file" : 'X\(//\)[^/]' \| \
23702 X"$ac_file" : 'X\(//\)$' \| \
23703 X"$ac_file" : 'X\(/\)' \| \
23704 . : '\(.\)' 2>/dev/null ||
23705 echo X"$ac_file" |
23706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23708 /^X\(\/\/\)$/{ s//\1/; q; }
23709 /^X\(\/\).*/{ s//\1/; q; }
23710 s/.*/./; q'`
23711 { if $as_mkdir_p; then
23712 mkdir -p "$ac_dir"
23713 else
23714 as_dir="$ac_dir"
23715 as_dirs=
23716 while test ! -d "$as_dir"; do
23717 as_dirs="$as_dir $as_dirs"
23718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23719 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$as_dir" : 'X\(//\)[^/]' \| \
23721 X"$as_dir" : 'X\(//\)$' \| \
23722 X"$as_dir" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23724 echo X"$as_dir" |
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23729 s/.*/./; q'`
23730 done
23731 test ! -n "$as_dirs" || mkdir $as_dirs
23732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23733 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23734 { (exit 1); exit 1; }; }; }
23735
23736 rm -f $ac_file
23737 mv $tmp/config.h $ac_file
23738 fi
23739 else
23740 cat $tmp/config.h
23741 rm -f $tmp/config.h
23742 fi
23743 # Compute $ac_file's index in $config_headers.
23744 _am_stamp_count=1
23745 for _am_header in $config_headers :; do
23746 case $_am_header in
23747 $ac_file | $ac_file:* )
23748 break ;;
23749 * )
23750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23751 esac
23752 done
23753 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23754 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23755 X$ac_file : 'X\(//\)[^/]' \| \
23756 X$ac_file : 'X\(//\)$' \| \
23757 X$ac_file : 'X\(/\)' \| \
23758 . : '\(.\)' 2>/dev/null ||
23759 echo X$ac_file |
23760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23762 /^X\(\/\/\)$/{ s//\1/; q; }
23763 /^X\(\/\).*/{ s//\1/; q; }
23764 s/.*/./; q'`/stamp-h$_am_stamp_count
23765 done
23766 _ACEOF
23767 cat >>$CONFIG_STATUS <<\_ACEOF
23768
23769 #
23770 # CONFIG_COMMANDS section.
23771 #
23772 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23773 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23774 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23775 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23777 X"$ac_dest" : 'X\(//\)[^/]' \| \
23778 X"$ac_dest" : 'X\(//\)$' \| \
23779 X"$ac_dest" : 'X\(/\)' \| \
23780 . : '\(.\)' 2>/dev/null ||
23781 echo X"$ac_dest" |
23782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23784 /^X\(\/\/\)$/{ s//\1/; q; }
23785 /^X\(\/\).*/{ s//\1/; q; }
23786 s/.*/./; q'`
23787 { if $as_mkdir_p; then
23788 mkdir -p "$ac_dir"
23789 else
23790 as_dir="$ac_dir"
23791 as_dirs=
23792 while test ! -d "$as_dir"; do
23793 as_dirs="$as_dir $as_dirs"
23794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23796 X"$as_dir" : 'X\(//\)[^/]' \| \
23797 X"$as_dir" : 'X\(//\)$' \| \
23798 X"$as_dir" : 'X\(/\)' \| \
23799 . : '\(.\)' 2>/dev/null ||
23800 echo X"$as_dir" |
23801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23803 /^X\(\/\/\)$/{ s//\1/; q; }
23804 /^X\(\/\).*/{ s//\1/; q; }
23805 s/.*/./; q'`
23806 done
23807 test ! -n "$as_dirs" || mkdir $as_dirs
23808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23810 { (exit 1); exit 1; }; }; }
23811
23812 ac_builddir=.
23813
23814 if test "$ac_dir" != .; then
23815 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23816 # A "../" for each directory in $ac_dir_suffix.
23817 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23818 else
23819 ac_dir_suffix= ac_top_builddir=
23820 fi
23821
23822 case $srcdir in
23823 .) # No --srcdir option. We are building in place.
23824 ac_srcdir=.
23825 if test -z "$ac_top_builddir"; then
23826 ac_top_srcdir=.
23827 else
23828 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23829 fi ;;
23830 [\\/]* | ?:[\\/]* ) # Absolute path.
23831 ac_srcdir=$srcdir$ac_dir_suffix;
23832 ac_top_srcdir=$srcdir ;;
23833 *) # Relative path.
23834 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23835 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23836 esac
23837
23838 # Do not use `cd foo && pwd` to compute absolute paths, because
23839 # the directories may not exist.
23840 case `pwd` in
23841 .) ac_abs_builddir="$ac_dir";;
23842 *)
23843 case "$ac_dir" in
23844 .) ac_abs_builddir=`pwd`;;
23845 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23846 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23847 esac;;
23848 esac
23849 case $ac_abs_builddir in
23850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23851 *)
23852 case ${ac_top_builddir}. in
23853 .) ac_abs_top_builddir=$ac_abs_builddir;;
23854 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23855 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23856 esac;;
23857 esac
23858 case $ac_abs_builddir in
23859 .) ac_abs_srcdir=$ac_srcdir;;
23860 *)
23861 case $ac_srcdir in
23862 .) ac_abs_srcdir=$ac_abs_builddir;;
23863 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23864 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23865 esac;;
23866 esac
23867 case $ac_abs_builddir in
23868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23869 *)
23870 case $ac_top_srcdir in
23871 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23872 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23873 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23874 esac;;
23875 esac
23876
23877
23878 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23879 echo "$as_me: executing $ac_dest commands" >&6;}
23880 case $ac_dest in
23881 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23882 # Strip MF so we end up with the name of the file.
23883 mf=`echo "$mf" | sed -e 's/:.*$//'`
23884 # Check whether this is an Automake generated Makefile or not.
23885 # We used to match only the files named `Makefile.in', but
23886 # some people rename them; so instead we look at the file content.
23887 # Grep'ing the first line is not enough: some people post-process
23888 # each Makefile.in and add a new line on top of each file to say so.
23889 # So let's grep whole file.
23890 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23891 dirpart=`(dirname "$mf") 2>/dev/null ||
23892 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23893 X"$mf" : 'X\(//\)[^/]' \| \
23894 X"$mf" : 'X\(//\)$' \| \
23895 X"$mf" : 'X\(/\)' \| \
23896 . : '\(.\)' 2>/dev/null ||
23897 echo X"$mf" |
23898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23900 /^X\(\/\/\)$/{ s//\1/; q; }
23901 /^X\(\/\).*/{ s//\1/; q; }
23902 s/.*/./; q'`
23903 else
23904 continue
23905 fi
23906 # Extract the definition of DEPDIR, am__include, and am__quote
23907 # from the Makefile without running `make'.
23908 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23909 test -z "$DEPDIR" && continue
23910 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23911 test -z "am__include" && continue
23912 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23913 # When using ansi2knr, U may be empty or an underscore; expand it
23914 U=`sed -n 's/^U = //p' < "$mf"`
23915 # Find all dependency output files, they are included files with
23916 # $(DEPDIR) in their names. We invoke sed twice because it is the
23917 # simplest approach to changing $(DEPDIR) to its actual value in the
23918 # expansion.
23919 for file in `sed -n "
23920 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23921 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23922 # Make sure the directory exists.
23923 test -f "$dirpart/$file" && continue
23924 fdir=`(dirname "$file") 2>/dev/null ||
23925 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23926 X"$file" : 'X\(//\)[^/]' \| \
23927 X"$file" : 'X\(//\)$' \| \
23928 X"$file" : 'X\(/\)' \| \
23929 . : '\(.\)' 2>/dev/null ||
23930 echo X"$file" |
23931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23933 /^X\(\/\/\)$/{ s//\1/; q; }
23934 /^X\(\/\).*/{ s//\1/; q; }
23935 s/.*/./; q'`
23936 { if $as_mkdir_p; then
23937 mkdir -p $dirpart/$fdir
23938 else
23939 as_dir=$dirpart/$fdir
23940 as_dirs=
23941 while test ! -d "$as_dir"; do
23942 as_dirs="$as_dir $as_dirs"
23943 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23945 X"$as_dir" : 'X\(//\)[^/]' \| \
23946 X"$as_dir" : 'X\(//\)$' \| \
23947 X"$as_dir" : 'X\(/\)' \| \
23948 . : '\(.\)' 2>/dev/null ||
23949 echo X"$as_dir" |
23950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23952 /^X\(\/\/\)$/{ s//\1/; q; }
23953 /^X\(\/\).*/{ s//\1/; q; }
23954 s/.*/./; q'`
23955 done
23956 test ! -n "$as_dirs" || mkdir $as_dirs
23957 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23958 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23959 { (exit 1); exit 1; }; }; }
23960
23961 # echo "creating $dirpart/$file"
23962 echo '# dummy' > "$dirpart/$file"
23963 done
23964 done
23965 ;;
23966 libtool )
23967
23968 # See if we are running on zsh, and set the options which allow our
23969 # commands through without removal of \ escapes.
23970 if test -n "${ZSH_VERSION+set}" ; then
23971 setopt NO_GLOB_SUBST
23972 fi
23973
23974 cfgfile="${ofile}T"
23975 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23976 $RM "$cfgfile"
23977
23978 cat <<_LT_EOF >> "$cfgfile"
23979 #! $SHELL
23980
23981 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23982 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23984 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23985 #
23986 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23987 # 2006, 2007, 2008 Free Software Foundation, Inc.
23988 # Written by Gordon Matzigkeit, 1996
23989 #
23990 # This file is part of GNU Libtool.
23991 #
23992 # GNU Libtool is free software; you can redistribute it and/or
23993 # modify it under the terms of the GNU General Public License as
23994 # published by the Free Software Foundation; either version 2 of
23995 # the License, or (at your option) any later version.
23996 #
23997 # As a special exception to the GNU General Public License,
23998 # if you distribute this file as part of a program or library that
23999 # is built using GNU Libtool, you may include this file under the
24000 # same distribution terms that you use for the rest of that program.
24001 #
24002 # GNU Libtool is distributed in the hope that it will be useful,
24003 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24004 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24005 # GNU General Public License for more details.
24006 #
24007 # You should have received a copy of the GNU General Public License
24008 # along with GNU Libtool; see the file COPYING. If not, a copy
24009 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24010 # obtained by writing to the Free Software Foundation, Inc.,
24011 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24012
24013
24014 # The names of the tagged configurations supported by this script.
24015 available_tags=""
24016
24017 # ### BEGIN LIBTOOL CONFIG
24018
24019 # Whether or not to build shared libraries.
24020 build_libtool_libs=$enable_shared
24021
24022 # Which release of libtool.m4 was used?
24023 macro_version=$macro_version
24024 macro_revision=$macro_revision
24025
24026 # Whether or not to build static libraries.
24027 build_old_libs=$enable_static
24028
24029 # What type of objects to build.
24030 pic_mode=$pic_mode
24031
24032 # Whether or not to optimize for fast installation.
24033 fast_install=$enable_fast_install
24034
24035 # The host system.
24036 host_alias=$host_alias
24037 host=$host
24038 host_os=$host_os
24039
24040 # The build system.
24041 build_alias=$build_alias
24042 build=$build
24043 build_os=$build_os
24044
24045 # A sed program that does not truncate output.
24046 SED=$lt_SED
24047
24048 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24049 Xsed="\$SED -e 1s/^X//"
24050
24051 # A grep program that handles long lines.
24052 GREP=$lt_GREP
24053
24054 # An ERE matcher.
24055 EGREP=$lt_EGREP
24056
24057 # A literal string matcher.
24058 FGREP=$lt_FGREP
24059
24060 # A BSD- or MS-compatible name lister.
24061 NM=$lt_NM
24062
24063 # Whether we need soft or hard links.
24064 LN_S=$lt_LN_S
24065
24066 # What is the maximum length of a command?
24067 max_cmd_len=$max_cmd_len
24068
24069 # Object file suffix (normally "o").
24070 objext=$ac_objext
24071
24072 # Executable file suffix (normally "").
24073 exeext=$exeext
24074
24075 # whether the shell understands "unset".
24076 lt_unset=$lt_unset
24077
24078 # turn spaces into newlines.
24079 SP2NL=$lt_lt_SP2NL
24080
24081 # turn newlines into spaces.
24082 NL2SP=$lt_lt_NL2SP
24083
24084 # How to create reloadable object files.
24085 reload_flag=$lt_reload_flag
24086 reload_cmds=$lt_reload_cmds
24087
24088 # An object symbol dumper.
24089 OBJDUMP=$lt_OBJDUMP
24090
24091 # Method to check whether dependent libraries are shared objects.
24092 deplibs_check_method=$lt_deplibs_check_method
24093
24094 # Command to use when deplibs_check_method == "file_magic".
24095 file_magic_cmd=$lt_file_magic_cmd
24096
24097 # The archiver.
24098 AR=$lt_AR
24099 AR_FLAGS=$lt_AR_FLAGS
24100
24101 # A symbol stripping program.
24102 STRIP=$lt_STRIP
24103
24104 # Commands used to install an old-style archive.
24105 RANLIB=$lt_RANLIB
24106 old_postinstall_cmds=$lt_old_postinstall_cmds
24107 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24108
24109 # A C compiler.
24110 LTCC=$lt_CC
24111
24112 # LTCC compiler flags.
24113 LTCFLAGS=$lt_CFLAGS
24114
24115 # Take the output of nm and produce a listing of raw symbols and C names.
24116 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24117
24118 # Transform the output of nm in a proper C declaration.
24119 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24120
24121 # Transform the output of nm in a C name address pair.
24122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24123
24124 # Transform the output of nm in a C name address pair when lib prefix is needed.
24125 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24126
24127 # The name of the directory that contains temporary libtool files.
24128 objdir=$objdir
24129
24130 # Shell to use when invoking shell scripts.
24131 SHELL=$lt_SHELL
24132
24133 # An echo program that does not interpret backslashes.
24134 ECHO=$lt_ECHO
24135
24136 # Used to examine libraries when file_magic_cmd begins with "file".
24137 MAGIC_CMD=$MAGIC_CMD
24138
24139 # Must we lock files when doing compilation?
24140 need_locks=$lt_need_locks
24141
24142 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24143 DSYMUTIL=$lt_DSYMUTIL
24144
24145 # Tool to change global to local symbols on Mac OS X.
24146 NMEDIT=$lt_NMEDIT
24147
24148 # Tool to manipulate fat objects and archives on Mac OS X.
24149 LIPO=$lt_LIPO
24150
24151 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24152 OTOOL=$lt_OTOOL
24153
24154 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24155 OTOOL64=$lt_OTOOL64
24156
24157 # Old archive suffix (normally "a").
24158 libext=$libext
24159
24160 # Shared library suffix (normally ".so").
24161 shrext_cmds=$lt_shrext_cmds
24162
24163 # The commands to extract the exported symbol list from a shared archive.
24164 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24165
24166 # Variables whose values should be saved in libtool wrapper scripts and
24167 # restored at link time.
24168 variables_saved_for_relink=$lt_variables_saved_for_relink
24169
24170 # Do we need the "lib" prefix for modules?
24171 need_lib_prefix=$need_lib_prefix
24172
24173 # Do we need a version for libraries?
24174 need_version=$need_version
24175
24176 # Library versioning type.
24177 version_type=$version_type
24178
24179 # Shared library runtime path variable.
24180 runpath_var=$runpath_var
24181
24182 # Shared library path variable.
24183 shlibpath_var=$shlibpath_var
24184
24185 # Is shlibpath searched before the hard-coded library search path?
24186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24187
24188 # Format of library name prefix.
24189 libname_spec=$lt_libname_spec
24190
24191 # List of archive names. First name is the real one, the rest are links.
24192 # The last name is the one that the linker finds with -lNAME
24193 library_names_spec=$lt_library_names_spec
24194
24195 # The coded name of the library, if different from the real name.
24196 soname_spec=$lt_soname_spec
24197
24198 # Command to use after installation of a shared archive.
24199 postinstall_cmds=$lt_postinstall_cmds
24200
24201 # Command to use after uninstallation of a shared archive.
24202 postuninstall_cmds=$lt_postuninstall_cmds
24203
24204 # Commands used to finish a libtool library installation in a directory.
24205 finish_cmds=$lt_finish_cmds
24206
24207 # As "finish_cmds", except a single script fragment to be evaled but
24208 # not shown.
24209 finish_eval=$lt_finish_eval
24210
24211 # Whether we should hardcode library paths into libraries.
24212 hardcode_into_libs=$hardcode_into_libs
24213
24214 # Compile-time system search path for libraries.
24215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24216
24217 # Run-time system search path for libraries.
24218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24219
24220 # Whether dlopen is supported.
24221 dlopen_support=$enable_dlopen
24222
24223 # Whether dlopen of programs is supported.
24224 dlopen_self=$enable_dlopen_self
24225
24226 # Whether dlopen of statically linked programs is supported.
24227 dlopen_self_static=$enable_dlopen_self_static
24228
24229 # Commands to strip libraries.
24230 old_striplib=$lt_old_striplib
24231 striplib=$lt_striplib
24232
24233
24234 # The linker used to build libraries.
24235 LD=$lt_LD
24236
24237 # Commands used to build an old-style archive.
24238 old_archive_cmds=$lt_old_archive_cmds
24239
24240 # A language specific compiler.
24241 CC=$lt_compiler
24242
24243 # Is the compiler the GNU compiler?
24244 with_gcc=$GCC
24245
24246 # Compiler flag to turn off builtin functions.
24247 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24248
24249 # How to pass a linker flag through the compiler.
24250 wl=$lt_lt_prog_compiler_wl
24251
24252 # Additional compiler flags for building library objects.
24253 pic_flag=$lt_lt_prog_compiler_pic
24254
24255 # Compiler flag to prevent dynamic linking.
24256 link_static_flag=$lt_lt_prog_compiler_static
24257
24258 # Does compiler simultaneously support -c and -o options?
24259 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24260
24261 # Whether or not to add -lc for building shared libraries.
24262 build_libtool_need_lc=$archive_cmds_need_lc
24263
24264 # Whether or not to disallow shared libs when runtime libs are static.
24265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24266
24267 # Compiler flag to allow reflexive dlopens.
24268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24269
24270 # Compiler flag to generate shared objects directly from archives.
24271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24272
24273 # Whether the compiler copes with passing no objects directly.
24274 compiler_needs_object=$lt_compiler_needs_object
24275
24276 # Create an old-style archive from a shared archive.
24277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24278
24279 # Create a temporary old-style archive to link instead of a shared archive.
24280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24281
24282 # Commands used to build a shared archive.
24283 archive_cmds=$lt_archive_cmds
24284 archive_expsym_cmds=$lt_archive_expsym_cmds
24285
24286 # Commands used to build a loadable module if different from building
24287 # a shared archive.
24288 module_cmds=$lt_module_cmds
24289 module_expsym_cmds=$lt_module_expsym_cmds
24290
24291 # Whether we are building with GNU ld or not.
24292 with_gnu_ld=$lt_with_gnu_ld
24293
24294 # Flag that allows shared libraries with undefined symbols to be built.
24295 allow_undefined_flag=$lt_allow_undefined_flag
24296
24297 # Flag that enforces no undefined symbols.
24298 no_undefined_flag=$lt_no_undefined_flag
24299
24300 # Flag to hardcode \$libdir into a binary during linking.
24301 # This must work even if \$libdir does not exist
24302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24303
24304 # If ld is used when linking, flag to hardcode \$libdir into a binary
24305 # during linking. This must work even if \$libdir does not exist.
24306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24307
24308 # Whether we need a single "-rpath" flag with a separated argument.
24309 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24310
24311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24312 # DIR into the resulting binary.
24313 hardcode_direct=$hardcode_direct
24314
24315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24316 # DIR into the resulting binary and the resulting library dependency is
24317 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24318 # library is relocated.
24319 hardcode_direct_absolute=$hardcode_direct_absolute
24320
24321 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24322 # into the resulting binary.
24323 hardcode_minus_L=$hardcode_minus_L
24324
24325 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24326 # into the resulting binary.
24327 hardcode_shlibpath_var=$hardcode_shlibpath_var
24328
24329 # Set to "yes" if building a shared library automatically hardcodes DIR
24330 # into the library and all subsequent libraries and executables linked
24331 # against it.
24332 hardcode_automatic=$hardcode_automatic
24333
24334 # Set to yes if linker adds runtime paths of dependent libraries
24335 # to runtime path list.
24336 inherit_rpath=$inherit_rpath
24337
24338 # Whether libtool must link a program against all its dependency libraries.
24339 link_all_deplibs=$link_all_deplibs
24340
24341 # Fix the shell variable \$srcfile for the compiler.
24342 fix_srcfile_path=$lt_fix_srcfile_path
24343
24344 # Set to "yes" if exported symbols are required.
24345 always_export_symbols=$always_export_symbols
24346
24347 # The commands to list exported symbols.
24348 export_symbols_cmds=$lt_export_symbols_cmds
24349
24350 # Symbols that should not be listed in the preloaded symbols.
24351 exclude_expsyms=$lt_exclude_expsyms
24352
24353 # Symbols that must always be exported.
24354 include_expsyms=$lt_include_expsyms
24355
24356 # Commands necessary for linking programs (against libraries) with templates.
24357 prelink_cmds=$lt_prelink_cmds
24358
24359 # Specify filename containing input files.
24360 file_list_spec=$lt_file_list_spec
24361
24362 # How to hardcode a shared library path into an executable.
24363 hardcode_action=$hardcode_action
24364
24365 # ### END LIBTOOL CONFIG
24366
24367 _LT_EOF
24368
24369 case $host_os in
24370 aix3*)
24371 cat <<\_LT_EOF >> "$cfgfile"
24372 # AIX sometimes has problems with the GCC collect2 program. For some
24373 # reason, if we set the COLLECT_NAMES environment variable, the problems
24374 # vanish in a puff of smoke.
24375 if test "X${COLLECT_NAMES+set}" != Xset; then
24376 COLLECT_NAMES=
24377 export COLLECT_NAMES
24378 fi
24379 _LT_EOF
24380 ;;
24381 esac
24382
24383
24384 ltmain="$ac_aux_dir/ltmain.sh"
24385
24386
24387 # We use sed instead of cat because bash on DJGPP gets confused if
24388 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24389 # text mode, it properly converts lines to CR/LF. This bash problem
24390 # is reportedly fixed, but why not run on old versions too?
24391 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24392 || (rm -f "$cfgfile"; exit 1)
24393
24394 case $xsi_shell in
24395 yes)
24396 cat << \_LT_EOF >> "$cfgfile"
24397
24398 # func_dirname file append nondir_replacement
24399 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24400 # otherwise set result to NONDIR_REPLACEMENT.
24401 func_dirname ()
24402 {
24403 case ${1} in
24404 */*) func_dirname_result="${1%/*}${2}" ;;
24405 * ) func_dirname_result="${3}" ;;
24406 esac
24407 }
24408
24409 # func_basename file
24410 func_basename ()
24411 {
24412 func_basename_result="${1##*/}"
24413 }
24414
24415 # func_dirname_and_basename file append nondir_replacement
24416 # perform func_basename and func_dirname in a single function
24417 # call:
24418 # dirname: Compute the dirname of FILE. If nonempty,
24419 # add APPEND to the result, otherwise set result
24420 # to NONDIR_REPLACEMENT.
24421 # value returned in "$func_dirname_result"
24422 # basename: Compute filename of FILE.
24423 # value retuned in "$func_basename_result"
24424 # Implementation must be kept synchronized with func_dirname
24425 # and func_basename. For efficiency, we do not delegate to
24426 # those functions but instead duplicate the functionality here.
24427 func_dirname_and_basename ()
24428 {
24429 case ${1} in
24430 */*) func_dirname_result="${1%/*}${2}" ;;
24431 * ) func_dirname_result="${3}" ;;
24432 esac
24433 func_basename_result="${1##*/}"
24434 }
24435
24436 # func_stripname prefix suffix name
24437 # strip PREFIX and SUFFIX off of NAME.
24438 # PREFIX and SUFFIX must not contain globbing or regex special
24439 # characters, hashes, percent signs, but SUFFIX may contain a leading
24440 # dot (in which case that matches only a dot).
24441 func_stripname ()
24442 {
24443 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24444 # positional parameters, so assign one to ordinary parameter first.
24445 func_stripname_result=${3}
24446 func_stripname_result=${func_stripname_result#"${1}"}
24447 func_stripname_result=${func_stripname_result%"${2}"}
24448 }
24449
24450 # func_opt_split
24451 func_opt_split ()
24452 {
24453 func_opt_split_opt=${1%%=*}
24454 func_opt_split_arg=${1#*=}
24455 }
24456
24457 # func_lo2o object
24458 func_lo2o ()
24459 {
24460 case ${1} in
24461 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24462 *) func_lo2o_result=${1} ;;
24463 esac
24464 }
24465
24466 # func_xform libobj-or-source
24467 func_xform ()
24468 {
24469 func_xform_result=${1%.*}.lo
24470 }
24471
24472 # func_arith arithmetic-term...
24473 func_arith ()
24474 {
24475 func_arith_result=$(( $* ))
24476 }
24477
24478 # func_len string
24479 # STRING may not start with a hyphen.
24480 func_len ()
24481 {
24482 func_len_result=${#1}
24483 }
24484
24485 _LT_EOF
24486 ;;
24487 *) # Bourne compatible functions.
24488 cat << \_LT_EOF >> "$cfgfile"
24489
24490 # func_dirname file append nondir_replacement
24491 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24492 # otherwise set result to NONDIR_REPLACEMENT.
24493 func_dirname ()
24494 {
24495 # Extract subdirectory from the argument.
24496 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24497 if test "X$func_dirname_result" = "X${1}"; then
24498 func_dirname_result="${3}"
24499 else
24500 func_dirname_result="$func_dirname_result${2}"
24501 fi
24502 }
24503
24504 # func_basename file
24505 func_basename ()
24506 {
24507 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24508 }
24509
24510
24511 # func_stripname prefix suffix name
24512 # strip PREFIX and SUFFIX off of NAME.
24513 # PREFIX and SUFFIX must not contain globbing or regex special
24514 # characters, hashes, percent signs, but SUFFIX may contain a leading
24515 # dot (in which case that matches only a dot).
24516 # func_strip_suffix prefix name
24517 func_stripname ()
24518 {
24519 case ${2} in
24520 .*) func_stripname_result=`$ECHO "X${3}" \
24521 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24522 *) func_stripname_result=`$ECHO "X${3}" \
24523 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24524 esac
24525 }
24526
24527 # sed scripts:
24528 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24529 my_sed_long_arg='1s/^-[^=]*=//'
24530
24531 # func_opt_split
24532 func_opt_split ()
24533 {
24534 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24535 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24536 }
24537
24538 # func_lo2o object
24539 func_lo2o ()
24540 {
24541 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24542 }
24543
24544 # func_xform libobj-or-source
24545 func_xform ()
24546 {
24547 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24548 }
24549
24550 # func_arith arithmetic-term...
24551 func_arith ()
24552 {
24553 func_arith_result=`expr "$@"`
24554 }
24555
24556 # func_len string
24557 # STRING may not start with a hyphen.
24558 func_len ()
24559 {
24560 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24561 }
24562
24563 _LT_EOF
24564 esac
24565
24566 case $lt_shell_append in
24567 yes)
24568 cat << \_LT_EOF >> "$cfgfile"
24569
24570 # func_append var value
24571 # Append VALUE to the end of shell variable VAR.
24572 func_append ()
24573 {
24574 eval "$1+=\$2"
24575 }
24576 _LT_EOF
24577 ;;
24578 *)
24579 cat << \_LT_EOF >> "$cfgfile"
24580
24581 # func_append var value
24582 # Append VALUE to the end of shell variable VAR.
24583 func_append ()
24584 {
24585 eval "$1=\$$1\$2"
24586 }
24587
24588 _LT_EOF
24589 ;;
24590 esac
24591
24592
24593 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24594 || (rm -f "$cfgfile"; exit 1)
24595
24596 mv -f "$cfgfile" "$ofile" ||
24597 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24598 chmod +x "$ofile"
24599
24600 ;;
24601 default-1 )
24602 for ac_file in $CONFIG_FILES; do
24603 # Support "outfile[:infile[:infile...]]"
24604 case "$ac_file" in
24605 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24606 esac
24607 # PO directories have a Makefile.in generated from Makefile.in.in.
24608 case "$ac_file" in */Makefile.in)
24609 # Adjust a relative srcdir.
24610 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24611 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24612 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24613 # In autoconf-2.13 it is called $ac_given_srcdir.
24614 # In autoconf-2.50 it is called $srcdir.
24615 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24616 case "$ac_given_srcdir" in
24617 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24618 /*) top_srcdir="$ac_given_srcdir" ;;
24619 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24620 esac
24621 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24622 rm -f "$ac_dir/POTFILES"
24623 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24624 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24625 POMAKEFILEDEPS="POTFILES.in"
24626 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
24627 # on $ac_dir but don't depend on user-specified configuration
24628 # parameters.
24629 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24630 # The LINGUAS file contains the set of available languages.
24631 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24632 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24633 fi
24634 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24635 # Hide the ALL_LINGUAS assigment from automake.
24636 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24637 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24638 else
24639 # The set of available languages was given in configure.in.
24640 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24641 fi
24642 case "$ac_given_srcdir" in
24643 .) srcdirpre= ;;
24644 *) srcdirpre='$(srcdir)/' ;;
24645 esac
24646 POFILES=
24647 GMOFILES=
24648 UPDATEPOFILES=
24649 DUMMYPOFILES=
24650 for lang in $ALL_LINGUAS; do
24651 POFILES="$POFILES $srcdirpre$lang.po"
24652 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24653 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24654 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24655 done
24656 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24657 # environment variable.
24658 INST_LINGUAS=
24659 if test -n "$ALL_LINGUAS"; then
24660 for presentlang in $ALL_LINGUAS; do
24661 useit=no
24662 if test "%UNSET%" != "$LINGUAS"; then
24663 desiredlanguages="$LINGUAS"
24664 else
24665 desiredlanguages="$ALL_LINGUAS"
24666 fi
24667 for desiredlang in $desiredlanguages; do
24668 # Use the presentlang catalog if desiredlang is
24669 # a. equal to presentlang, or
24670 # b. a variant of presentlang (because in this case,
24671 # presentlang can be used as a fallback for messages
24672 # which are not translated in the desiredlang catalog).
24673 case "$desiredlang" in
24674 "$presentlang"*) useit=yes;;
24675 esac
24676 done
24677 if test $useit = yes; then
24678 INST_LINGUAS="$INST_LINGUAS $presentlang"
24679 fi
24680 done
24681 fi
24682 CATALOGS=
24683 if test -n "$INST_LINGUAS"; then
24684 for lang in $INST_LINGUAS; do
24685 CATALOGS="$CATALOGS $lang.gmo"
24686 done
24687 fi
24688 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24689 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"
24690 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24691 if test -f "$f"; then
24692 case "$f" in
24693 *.orig | *.bak | *~) ;;
24694 *) cat "$f" >> "$ac_dir/Makefile" ;;
24695 esac
24696 fi
24697 done
24698 fi
24699 ;;
24700 esac
24701 done ;;
24702 bfd_stdint.h )
24703 if test "$GCC" = yes; then
24704 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24705 else
24706 echo "/* generated for $CC */" > tmp-stdint.h
24707 fi
24708
24709 sed 's/^ *//' >> tmp-stdint.h <<EOF
24710
24711 #ifndef GCC_GENERATED_STDINT_H
24712 #define GCC_GENERATED_STDINT_H 1
24713
24714 #include <sys/types.h>
24715 EOF
24716
24717 if test "$acx_cv_header_stdint" != stdint.h; then
24718 echo "#include <stddef.h>" >> tmp-stdint.h
24719 fi
24720 if test "$acx_cv_header_stdint" != stddef.h; then
24721 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24722 fi
24723
24724 sed 's/^ *//' >> tmp-stdint.h <<EOF
24725 /* glibc uses these symbols as guards to prevent redefinitions. */
24726 #ifdef __int8_t_defined
24727 #define _INT8_T
24728 #define _INT16_T
24729 #define _INT32_T
24730 #endif
24731 #ifdef __uint32_t_defined
24732 #define _UINT32_T
24733 #endif
24734
24735 EOF
24736
24737 # ----------------- done header, emit basic int types -------------
24738 if test "$acx_cv_header_stdint" = stddef.h; then
24739 sed 's/^ *//' >> tmp-stdint.h <<EOF
24740
24741 #ifndef _UINT8_T
24742 #define _UINT8_T
24743 #ifndef __uint8_t_defined
24744 #define __uint8_t_defined
24745 typedef unsigned $acx_cv_type_int8_t uint8_t;
24746 #endif
24747 #endif
24748
24749 #ifndef _UINT16_T
24750 #define _UINT16_T
24751 #ifndef __uint16_t_defined
24752 #define __uint16_t_defined
24753 typedef unsigned $acx_cv_type_int16_t uint16_t;
24754 #endif
24755 #endif
24756
24757 #ifndef _UINT32_T
24758 #define _UINT32_T
24759 #ifndef __uint32_t_defined
24760 #define __uint32_t_defined
24761 typedef unsigned $acx_cv_type_int32_t uint32_t;
24762 #endif
24763 #endif
24764
24765 #ifndef _INT8_T
24766 #define _INT8_T
24767 #ifndef __int8_t_defined
24768 #define __int8_t_defined
24769 typedef $acx_cv_type_int8_t int8_t;
24770 #endif
24771 #endif
24772
24773 #ifndef _INT16_T
24774 #define _INT16_T
24775 #ifndef __int16_t_defined
24776 #define __int16_t_defined
24777 typedef $acx_cv_type_int16_t int16_t;
24778 #endif
24779 #endif
24780
24781 #ifndef _INT32_T
24782 #define _INT32_T
24783 #ifndef __int32_t_defined
24784 #define __int32_t_defined
24785 typedef $acx_cv_type_int32_t int32_t;
24786 #endif
24787 #endif
24788 EOF
24789 elif test "$ac_cv_type_u_int32_t" = yes; then
24790 sed 's/^ *//' >> tmp-stdint.h <<EOF
24791
24792 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24793 #ifndef _INT8_T
24794 #define _INT8_T
24795 #endif
24796 #ifndef _INT16_T
24797 #define _INT16_T
24798 #endif
24799 #ifndef _INT32_T
24800 #define _INT32_T
24801 #endif
24802
24803 #ifndef _UINT8_T
24804 #define _UINT8_T
24805 #ifndef __uint8_t_defined
24806 #define __uint8_t_defined
24807 typedef u_int8_t uint8_t;
24808 #endif
24809 #endif
24810
24811 #ifndef _UINT16_T
24812 #define _UINT16_T
24813 #ifndef __uint16_t_defined
24814 #define __uint16_t_defined
24815 typedef u_int16_t uint16_t;
24816 #endif
24817 #endif
24818
24819 #ifndef _UINT32_T
24820 #define _UINT32_T
24821 #ifndef __uint32_t_defined
24822 #define __uint32_t_defined
24823 typedef u_int32_t uint32_t;
24824 #endif
24825 #endif
24826 EOF
24827 else
24828 sed 's/^ *//' >> tmp-stdint.h <<EOF
24829
24830 /* Some systems have guard macros to prevent redefinitions, define them. */
24831 #ifndef _INT8_T
24832 #define _INT8_T
24833 #endif
24834 #ifndef _INT16_T
24835 #define _INT16_T
24836 #endif
24837 #ifndef _INT32_T
24838 #define _INT32_T
24839 #endif
24840 #ifndef _UINT8_T
24841 #define _UINT8_T
24842 #endif
24843 #ifndef _UINT16_T
24844 #define _UINT16_T
24845 #endif
24846 #ifndef _UINT32_T
24847 #define _UINT32_T
24848 #endif
24849 EOF
24850 fi
24851
24852 # ------------- done basic int types, emit int64_t types ------------
24853 if test "$ac_cv_type_uint64_t" = yes; then
24854 sed 's/^ *//' >> tmp-stdint.h <<EOF
24855
24856 /* system headers have good uint64_t and int64_t */
24857 #ifndef _INT64_T
24858 #define _INT64_T
24859 #endif
24860 #ifndef _UINT64_T
24861 #define _UINT64_T
24862 #endif
24863 EOF
24864 elif test "$ac_cv_type_u_int64_t" = yes; then
24865 sed 's/^ *//' >> tmp-stdint.h <<EOF
24866
24867 /* system headers have an u_int64_t (and int64_t) */
24868 #ifndef _INT64_T
24869 #define _INT64_T
24870 #endif
24871 #ifndef _UINT64_T
24872 #define _UINT64_T
24873 #ifndef __uint64_t_defined
24874 #define __uint64_t_defined
24875 typedef u_int64_t uint64_t;
24876 #endif
24877 #endif
24878 EOF
24879 elif test -n "$acx_cv_type_int64_t"; then
24880 sed 's/^ *//' >> tmp-stdint.h <<EOF
24881
24882 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24883 #ifndef _INT64_T
24884 #define _INT64_T
24885 typedef $acx_cv_type_int64_t int64_t;
24886 #endif
24887 #ifndef _UINT64_T
24888 #define _UINT64_T
24889 #ifndef __uint64_t_defined
24890 #define __uint64_t_defined
24891 typedef unsigned $acx_cv_type_int64_t uint64_t;
24892 #endif
24893 #endif
24894 EOF
24895 else
24896 sed 's/^ *//' >> tmp-stdint.h <<EOF
24897
24898 /* some common heuristics for int64_t, using compiler-specific tests */
24899 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24900 #ifndef _INT64_T
24901 #define _INT64_T
24902 #ifndef __int64_t_defined
24903 typedef long long int64_t;
24904 #endif
24905 #endif
24906 #ifndef _UINT64_T
24907 #define _UINT64_T
24908 typedef unsigned long long uint64_t;
24909 #endif
24910
24911 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24912 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24913 does not implement __extension__. But that compiler doesn't define
24914 __GNUC_MINOR__. */
24915 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24916 # define __extension__
24917 # endif
24918
24919 # ifndef _INT64_T
24920 # define _INT64_T
24921 __extension__ typedef long long int64_t;
24922 # endif
24923 # ifndef _UINT64_T
24924 # define _UINT64_T
24925 __extension__ typedef unsigned long long uint64_t;
24926 # endif
24927
24928 #elif !defined __STRICT_ANSI__
24929 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24930
24931 # ifndef _INT64_T
24932 # define _INT64_T
24933 typedef __int64 int64_t;
24934 # endif
24935 # ifndef _UINT64_T
24936 # define _UINT64_T
24937 typedef unsigned __int64 uint64_t;
24938 # endif
24939 # endif /* compiler */
24940
24941 #endif /* ANSI version */
24942 EOF
24943 fi
24944
24945 # ------------- done int64_t types, emit intptr types ------------
24946 if test "$ac_cv_type_uintptr_t" != yes; then
24947 sed 's/^ *//' >> tmp-stdint.h <<EOF
24948
24949 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24950 #ifndef __uintptr_t_defined
24951 typedef u$acx_cv_type_intptr_t uintptr_t;
24952 #endif
24953 #ifndef __intptr_t_defined
24954 typedef $acx_cv_type_intptr_t intptr_t;
24955 #endif
24956 EOF
24957 fi
24958
24959 # ------------- done intptr types, emit int_least types ------------
24960 if test "$ac_cv_type_int_least32_t" != yes; then
24961 sed 's/^ *//' >> tmp-stdint.h <<EOF
24962
24963 /* Define int_least types */
24964 typedef int8_t int_least8_t;
24965 typedef int16_t int_least16_t;
24966 typedef int32_t int_least32_t;
24967 #ifdef _INT64_T
24968 typedef int64_t int_least64_t;
24969 #endif
24970
24971 typedef uint8_t uint_least8_t;
24972 typedef uint16_t uint_least16_t;
24973 typedef uint32_t uint_least32_t;
24974 #ifdef _UINT64_T
24975 typedef uint64_t uint_least64_t;
24976 #endif
24977 EOF
24978 fi
24979
24980 # ------------- done intptr types, emit int_fast types ------------
24981 if test "$ac_cv_type_int_fast32_t" != yes; then
24982 sed 's/^ *//' >> tmp-stdint.h <<EOF
24983
24984 /* Define int_fast types. short is often slow */
24985 typedef int8_t int_fast8_t;
24986 typedef int int_fast16_t;
24987 typedef int32_t int_fast32_t;
24988 #ifdef _INT64_T
24989 typedef int64_t int_fast64_t;
24990 #endif
24991
24992 typedef uint8_t uint_fast8_t;
24993 typedef unsigned int uint_fast16_t;
24994 typedef uint32_t uint_fast32_t;
24995 #ifdef _UINT64_T
24996 typedef uint64_t uint_fast64_t;
24997 #endif
24998 EOF
24999 fi
25000
25001 if test "$ac_cv_type_uintmax_t" != yes; then
25002 sed 's/^ *//' >> tmp-stdint.h <<EOF
25003
25004 /* Define intmax based on what we found */
25005 #ifdef _INT64_T
25006 typedef int64_t intmax_t;
25007 #else
25008 typedef long intmax_t;
25009 #endif
25010 #ifdef _UINT64_T
25011 typedef uint64_t uintmax_t;
25012 #else
25013 typedef unsigned long uintmax_t;
25014 #endif
25015 EOF
25016 fi
25017
25018 sed 's/^ *//' >> tmp-stdint.h <<EOF
25019
25020 #endif /* GCC_GENERATED_STDINT_H */
25021 EOF
25022
25023 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
25024 rm -f tmp-stdint.h
25025 else
25026 mv -f tmp-stdint.h bfd_stdint.h
25027 fi
25028
25029 ;;
25030 default )
25031 case "$srcdir" in
25032 .) srcdirpre= ;;
25033 *) srcdirpre='$(srcdir)/' ;;
25034 esac
25035 POFILES=
25036 GMOFILES=
25037 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
25038 if test $lang != dummy; then
25039 POFILES="$POFILES $srcdirpre$lang.po"
25040 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25041 fi
25042 done
25043 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
25044 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
25045 -e "s,@POFILES@,$POFILES," \
25046 -e "s,@GMOFILES@,$GMOFILES," \
25047 po/Makefile.in > po/Makefile ;;
25048 esac
25049 done
25050 _ACEOF
25051
25052 cat >>$CONFIG_STATUS <<\_ACEOF
25053
25054 { (exit 0); exit 0; }
25055 _ACEOF
25056 chmod +x $CONFIG_STATUS
25057 ac_clean_files=$ac_clean_files_save
25058
25059
25060 # configure is writing to config.log, and then calls config.status.
25061 # config.status does its own redirection, appending to config.log.
25062 # Unfortunately, on DOS this fails, as config.log is still kept open
25063 # by configure, so config.status won't be able to write to it; its
25064 # output is simply discarded. So we exec the FD to /dev/null,
25065 # effectively closing config.log, so it can be properly (re)opened and
25066 # appended to by config.status. When coming back to configure, we
25067 # need to make the FD available again.
25068 if test "$no_create" != yes; then
25069 ac_cs_success=:
25070 ac_config_status_args=
25071 test "$silent" = yes &&
25072 ac_config_status_args="$ac_config_status_args --quiet"
25073 exec 5>/dev/null
25074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25075 exec 5>>config.log
25076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25077 # would make configure fail if this is the last instruction.
25078 $ac_cs_success || { (exit 1); exit 1; }
25079 fi
25080
25081