* regenerated files from updating libtool.
[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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927 # Omit some internal or obsolete options to make the list less imposing.
928 # This message is too long to be a string in the A/UX 3.1 sh.
929 cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE. See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940 -h, --help display this help and exit
941 --help=short display options specific to this package
942 --help=recursive display the short help of all the included packages
943 -V, --version display version information and exit
944 -q, --quiet, --silent do not print \`checking...' messages
945 --cache-file=FILE cache test results in FILE [disabled]
946 -C, --config-cache alias for \`--cache-file=config.cache'
947 -n, --no-create do not create output files
948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952 cat <<_ACEOF
953 Installation directories:
954 --prefix=PREFIX install architecture-independent files in PREFIX
955 [$ac_default_prefix]
956 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967 --bindir=DIR user executables [EPREFIX/bin]
968 --sbindir=DIR system admin executables [EPREFIX/sbin]
969 --libexecdir=DIR program executables [EPREFIX/libexec]
970 --datadir=DIR read-only architecture-independent data [PREFIX/share]
971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974 --libdir=DIR object code libraries [EPREFIX/lib]
975 --includedir=DIR C header files [PREFIX/include]
976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
977 --infodir=DIR info documentation [PREFIX/info]
978 --mandir=DIR man documentation [PREFIX/man]
979 _ACEOF
980
981 cat <<\_ACEOF
982
983 Program names:
984 --program-prefix=PREFIX prepend PREFIX to installed program names
985 --program-suffix=SUFFIX append SUFFIX to installed program names
986 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
987
988 System types:
989 --build=BUILD configure for building on BUILD [guessed]
990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
991 --target=TARGET configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997 cat <<\_ACEOF
998
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=no]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1012 --enable-targets alternative target configurations
1013 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1014 --enable-secureplt Default to creating read-only plt entries
1015 --enable-werror treat compile warnings as errors
1016 --enable-build-warnings enable build-time compiler warnings
1017 --enable-maintainer-mode enable make rules and dependencies not useful
1018 (and sometimes confusing) to the casual installer
1019 --enable-install-libbfd controls installation of libbfd and related headers
1020 --disable-nls do not use Native Language Support
1021
1022 Optional Packages:
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1026 both]
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-mmap try using mmap for BFD input files if available
1029 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1030 Binutils"
1031 --with-bugurl=URL Direct users to URL to report a bug
1032
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CPP C preprocessor
1041
1042 Use these variables to override the choices made by `configure' or to help
1043 it to find libraries and programs with nonstandard names/locations.
1044
1045 _ACEOF
1046 fi
1047
1048 if test "$ac_init_help" = "recursive"; then
1049 # If there are subdirs, report their specific --help.
1050 ac_popdir=`pwd`
1051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1052 test -d $ac_dir || continue
1053 ac_builddir=.
1054
1055 if test "$ac_dir" != .; then
1056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057 # A "../" for each directory in $ac_dir_suffix.
1058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059 else
1060 ac_dir_suffix= ac_top_builddir=
1061 fi
1062
1063 case $srcdir in
1064 .) # No --srcdir option. We are building in place.
1065 ac_srcdir=.
1066 if test -z "$ac_top_builddir"; then
1067 ac_top_srcdir=.
1068 else
1069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070 fi ;;
1071 [\\/]* | ?:[\\/]* ) # Absolute path.
1072 ac_srcdir=$srcdir$ac_dir_suffix;
1073 ac_top_srcdir=$srcdir ;;
1074 *) # Relative path.
1075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077 esac
1078
1079 # Do not use `cd foo && pwd` to compute absolute paths, because
1080 # the directories may not exist.
1081 case `pwd` in
1082 .) ac_abs_builddir="$ac_dir";;
1083 *)
1084 case "$ac_dir" in
1085 .) ac_abs_builddir=`pwd`;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *)
1093 case ${ac_top_builddir}. in
1094 .) ac_abs_top_builddir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097 esac;;
1098 esac
1099 case $ac_abs_builddir in
1100 .) ac_abs_srcdir=$ac_srcdir;;
1101 *)
1102 case $ac_srcdir in
1103 .) ac_abs_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106 esac;;
1107 esac
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *)
1111 case $ac_top_srcdir in
1112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1115 esac;;
1116 esac
1117
1118 cd $ac_dir
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1121 echo
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1124 echo
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1128 echo
1129 $ac_configure --help
1130 else
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 fi
1133 cd $ac_popdir
1134 done
1135 fi
1136
1137 test -n "$ac_init_help" && exit 0
1138 if $ac_init_version; then
1139 cat <<\_ACEOF
1140
1141 Copyright (C) 2003 Free Software Foundation, Inc.
1142 This configure script is free software; the Free Software Foundation
1143 gives unlimited permission to copy, distribute and modify it.
1144 _ACEOF
1145 exit 0
1146 fi
1147 exec 5>config.log
1148 cat >&5 <<_ACEOF
1149 This file contains any messages produced by compilers while
1150 running configure, to aid debugging if configure makes a mistake.
1151
1152 It was created by $as_me, which was
1153 generated by GNU Autoconf 2.59. Invocation command line was
1154
1155 $ $0 $@
1156
1157 _ACEOF
1158 {
1159 cat <<_ASUNAME
1160 ## --------- ##
1161 ## Platform. ##
1162 ## --------- ##
1163
1164 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1165 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1166 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1167 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1168 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1169
1170 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1171 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1172
1173 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1174 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1175 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1176 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1177 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1178 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1179 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180
1181 _ASUNAME
1182
1183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 for as_dir in $PATH
1185 do
1186 IFS=$as_save_IFS
1187 test -z "$as_dir" && as_dir=.
1188 echo "PATH: $as_dir"
1189 done
1190
1191 } >&5
1192
1193 cat >&5 <<_ACEOF
1194
1195
1196 ## ----------- ##
1197 ## Core tests. ##
1198 ## ----------- ##
1199
1200 _ACEOF
1201
1202
1203 # Keep a trace of the command line.
1204 # Strip out --no-create and --no-recursion so they do not pile up.
1205 # Strip out --silent because we don't want to record it for future runs.
1206 # Also quote any args containing shell meta-characters.
1207 # Make two passes to allow for proper duplicate-argument suppression.
1208 ac_configure_args=
1209 ac_configure_args0=
1210 ac_configure_args1=
1211 ac_sep=
1212 ac_must_keep_next=false
1213 for ac_pass in 1 2
1214 do
1215 for ac_arg
1216 do
1217 case $ac_arg in
1218 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 continue ;;
1222 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1223 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1224 esac
1225 case $ac_pass in
1226 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1227 2)
1228 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1229 if test $ac_must_keep_next = true; then
1230 ac_must_keep_next=false # Got value, back to normal.
1231 else
1232 case $ac_arg in
1233 *=* | --config-cache | -C | -disable-* | --disable-* \
1234 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1235 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1236 | -with-* | --with-* | -without-* | --without-* | --x)
1237 case "$ac_configure_args0 " in
1238 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 esac
1240 ;;
1241 -* ) ac_must_keep_next=true ;;
1242 esac
1243 fi
1244 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1245 # Get rid of the leading space.
1246 ac_sep=" "
1247 ;;
1248 esac
1249 done
1250 done
1251 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1252 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1253
1254 # When interrupted or exit'd, cleanup temporary files, and complete
1255 # config.log. We remove comments because anyway the quotes in there
1256 # would cause problems or look ugly.
1257 # WARNING: Be sure not to use single quotes in there, as some shells,
1258 # such as our DU 5.0 friend, will then `close' the trap.
1259 trap 'exit_status=$?
1260 # Save into config.log some information that might help in debugging.
1261 {
1262 echo
1263
1264 cat <<\_ASBOX
1265 ## ---------------- ##
1266 ## Cache variables. ##
1267 ## ---------------- ##
1268 _ASBOX
1269 echo
1270 # The following way of writing the cache mishandles newlines in values,
1271 {
1272 (set) 2>&1 |
1273 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 *ac_space=\ *)
1275 sed -n \
1276 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 ;;
1279 *)
1280 sed -n \
1281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1282 ;;
1283 esac;
1284 }
1285 echo
1286
1287 cat <<\_ASBOX
1288 ## ----------------- ##
1289 ## Output variables. ##
1290 ## ----------------- ##
1291 _ASBOX
1292 echo
1293 for ac_var in $ac_subst_vars
1294 do
1295 eval ac_val=$`echo $ac_var`
1296 echo "$ac_var='"'"'$ac_val'"'"'"
1297 done | sort
1298 echo
1299
1300 if test -n "$ac_subst_files"; then
1301 cat <<\_ASBOX
1302 ## ------------- ##
1303 ## Output files. ##
1304 ## ------------- ##
1305 _ASBOX
1306 echo
1307 for ac_var in $ac_subst_files
1308 do
1309 eval ac_val=$`echo $ac_var`
1310 echo "$ac_var='"'"'$ac_val'"'"'"
1311 done | sort
1312 echo
1313 fi
1314
1315 if test -s confdefs.h; then
1316 cat <<\_ASBOX
1317 ## ----------- ##
1318 ## confdefs.h. ##
1319 ## ----------- ##
1320 _ASBOX
1321 echo
1322 sed "/^$/d" confdefs.h | sort
1323 echo
1324 fi
1325 test "$ac_signal" != 0 &&
1326 echo "$as_me: caught signal $ac_signal"
1327 echo "$as_me: exit $exit_status"
1328 } >&5
1329 rm -f core *.core &&
1330 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1331 exit $exit_status
1332 ' 0
1333 for ac_signal in 1 2 13 15; do
1334 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 done
1336 ac_signal=0
1337
1338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1339 rm -rf conftest* confdefs.h
1340 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 echo >confdefs.h
1342
1343 # Predefined preprocessor variables.
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 _ACEOF
1363
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 _ACEOF
1368
1369
1370 # Let the site file select an alternate cache file if it wants to.
1371 # Prefer explicitly selected file to automatically selected ones.
1372 if test -z "$CONFIG_SITE"; then
1373 if test "x$prefix" != xNONE; then
1374 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1375 else
1376 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 fi
1378 fi
1379 for ac_site_file in $CONFIG_SITE; do
1380 if test -r "$ac_site_file"; then
1381 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1382 echo "$as_me: loading site script $ac_site_file" >&6;}
1383 sed 's/^/| /' "$ac_site_file" >&5
1384 . "$ac_site_file"
1385 fi
1386 done
1387
1388 if test -r "$cache_file"; then
1389 # Some versions of bash will fail to source /dev/null (special
1390 # files actually), so we avoid doing that.
1391 if test -f "$cache_file"; then
1392 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1393 echo "$as_me: loading cache $cache_file" >&6;}
1394 case $cache_file in
1395 [\\/]* | ?:[\\/]* ) . $cache_file;;
1396 *) . ./$cache_file;;
1397 esac
1398 fi
1399 else
1400 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1401 echo "$as_me: creating cache $cache_file" >&6;}
1402 >$cache_file
1403 fi
1404
1405 # Check that the precious variables saved in the cache have kept the same
1406 # value.
1407 ac_cache_corrupted=false
1408 for ac_var in `(set) 2>&1 |
1409 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1411 eval ac_new_set=\$ac_env_${ac_var}_set
1412 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1413 eval ac_new_val="\$ac_env_${ac_var}_value"
1414 case $ac_old_set,$ac_new_set in
1415 set,)
1416 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1417 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1418 ac_cache_corrupted=: ;;
1419 ,set)
1420 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1421 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1422 ac_cache_corrupted=: ;;
1423 ,);;
1424 *)
1425 if test "x$ac_old_val" != "x$ac_new_val"; then
1426 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1427 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1428 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1429 echo "$as_me: former value: $ac_old_val" >&2;}
1430 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1431 echo "$as_me: current value: $ac_new_val" >&2;}
1432 ac_cache_corrupted=:
1433 fi;;
1434 esac
1435 # Pass precious variables to config.status.
1436 if test "$ac_new_set" = set; then
1437 case $ac_new_val in
1438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1439 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1440 *) ac_arg=$ac_var=$ac_new_val ;;
1441 esac
1442 case " $ac_configure_args " in
1443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1444 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 esac
1446 fi
1447 done
1448 if $ac_cache_corrupted; then
1449 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1450 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1451 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1452 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1453 { (exit 1); exit 1; }; }
1454 fi
1455
1456 ac_ext=c
1457 ac_cpp='$CPP $CPPFLAGS'
1458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482 ac_aux_dir=
1483 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1484 if test -f $ac_dir/install-sh; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/install-sh -c"
1487 break
1488 elif test -f $ac_dir/install.sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install.sh -c"
1491 break
1492 elif test -f $ac_dir/shtool; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/shtool install -c"
1495 break
1496 fi
1497 done
1498 if test -z "$ac_aux_dir"; then
1499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1500 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1501 { (exit 1); exit 1; }; }
1502 fi
1503 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1504 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1505 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1506
1507 # Make sure we can run config.sub.
1508 $ac_config_sub sun4 >/dev/null 2>&1 ||
1509 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1510 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1511 { (exit 1); exit 1; }; }
1512
1513 echo "$as_me:$LINENO: checking build system type" >&5
1514 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1515 if test "${ac_cv_build+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 ac_cv_build_alias=$build_alias
1519 test -z "$ac_cv_build_alias" &&
1520 ac_cv_build_alias=`$ac_config_guess`
1521 test -z "$ac_cv_build_alias" &&
1522 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1523 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1524 { (exit 1); exit 1; }; }
1525 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1526 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1527 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1528 { (exit 1); exit 1; }; }
1529
1530 fi
1531 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1532 echo "${ECHO_T}$ac_cv_build" >&6
1533 build=$ac_cv_build
1534 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1535 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1536 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1537
1538
1539 echo "$as_me:$LINENO: checking host system type" >&5
1540 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1541 if test "${ac_cv_host+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 ac_cv_host_alias=$host_alias
1545 test -z "$ac_cv_host_alias" &&
1546 ac_cv_host_alias=$ac_cv_build_alias
1547 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1548 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1549 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1550 { (exit 1); exit 1; }; }
1551
1552 fi
1553 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1554 echo "${ECHO_T}$ac_cv_host" >&6
1555 host=$ac_cv_host
1556 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559
1560
1561 echo "$as_me:$LINENO: checking target system type" >&5
1562 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1563 if test "${ac_cv_target+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 ac_cv_target_alias=$target_alias
1567 test "x$ac_cv_target_alias" = "x" &&
1568 ac_cv_target_alias=$ac_cv_host_alias
1569 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1571 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574 fi
1575 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1576 echo "${ECHO_T}$ac_cv_target" >&6
1577 target=$ac_cv_target
1578 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583 # The aliases save the names the user supplied, while $host etc.
1584 # will get canonicalized.
1585 test -n "$target_alias" &&
1586 test "$program_prefix$program_suffix$program_transform_name" = \
1587 NONENONEs,x,x, &&
1588 program_prefix=${target_alias}-
1589 ac_ext=c
1590 ac_cpp='$CPP $CPPFLAGS'
1591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1594 if test -n "$ac_tool_prefix"; then
1595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 fi
1631 if test -z "$ac_cv_prog_CC"; then
1632 ac_ct_CC=$CC
1633 # Extract the first word of "gcc", so it can be a program name with args.
1634 set dummy gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$ac_ct_CC"; then
1641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_ac_ct_CC="gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1653 fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1660 if test -n "$ac_ct_CC"; then
1661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1662 echo "${ECHO_T}$ac_ct_CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 CC=$ac_ct_CC
1669 else
1670 CC="$ac_cv_prog_CC"
1671 fi
1672
1673 if test -z "$CC"; then
1674 if test -n "$ac_tool_prefix"; then
1675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1676 set dummy ${ac_tool_prefix}cc; ac_word=$2
1677 echo "$as_me:$LINENO: checking for $ac_word" >&5
1678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1679 if test "${ac_cv_prog_CC+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 if test -n "$CC"; then
1683 ac_cv_prog_CC="$CC" # Let the user override the test.
1684 else
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 for ac_exec_ext in '' $ac_executable_extensions; do
1691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1692 ac_cv_prog_CC="${ac_tool_prefix}cc"
1693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 break 2
1695 fi
1696 done
1697 done
1698
1699 fi
1700 fi
1701 CC=$ac_cv_prog_CC
1702 if test -n "$CC"; then
1703 echo "$as_me:$LINENO: result: $CC" >&5
1704 echo "${ECHO_T}$CC" >&6
1705 else
1706 echo "$as_me:$LINENO: result: no" >&5
1707 echo "${ECHO_T}no" >&6
1708 fi
1709
1710 fi
1711 if test -z "$ac_cv_prog_CC"; then
1712 ac_ct_CC=$CC
1713 # Extract the first word of "cc", so it can be a program name with args.
1714 set dummy cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$ac_ct_CC"; then
1721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_ac_ct_CC="cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1733 fi
1734 done
1735 done
1736
1737 fi
1738 fi
1739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1740 if test -n "$ac_ct_CC"; then
1741 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1742 echo "${ECHO_T}$ac_ct_CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 CC=$ac_ct_CC
1749 else
1750 CC="$ac_cv_prog_CC"
1751 fi
1752
1753 fi
1754 if test -z "$CC"; then
1755 # Extract the first word of "cc", so it can be a program name with args.
1756 set dummy cc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1764 else
1765 ac_prog_rejected=no
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1774 ac_prog_rejected=yes
1775 continue
1776 fi
1777 ac_cv_prog_CC="cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 break 2
1780 fi
1781 done
1782 done
1783
1784 if test $ac_prog_rejected = yes; then
1785 # We found a bogon in the path, so make sure we never use it.
1786 set dummy $ac_cv_prog_CC
1787 shift
1788 if test $# != 0; then
1789 # We chose a different compiler from the bogus one.
1790 # However, it has the same basename, so the bogon will be chosen
1791 # first if we set CC to just the basename; use the full file name.
1792 shift
1793 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1794 fi
1795 fi
1796 fi
1797 fi
1798 CC=$ac_cv_prog_CC
1799 if test -n "$CC"; then
1800 echo "$as_me:$LINENO: result: $CC" >&5
1801 echo "${ECHO_T}$CC" >&6
1802 else
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1805 fi
1806
1807 fi
1808 if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1810 for ac_prog in cl
1811 do
1812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1824 do
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1832 fi
1833 done
1834 done
1835
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 test -n "$CC" && break
1848 done
1849 fi
1850 if test -z "$CC"; then
1851 ac_ct_CC=$CC
1852 for ac_prog in cl
1853 do
1854 # Extract the first word of "$ac_prog", so it can be a program name with args.
1855 set dummy $ac_prog; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="$ac_prog"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889 test -n "$ac_ct_CC" && break
1890 done
1891
1892 CC=$ac_ct_CC
1893 fi
1894
1895 fi
1896
1897
1898 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: no acceptable C compiler found in \$PATH
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903
1904 # Provide some information about the compiler.
1905 echo "$as_me:$LINENO:" \
1906 "checking for C compiler version" >&5
1907 ac_compiler=`set X $ac_compile; echo $2`
1908 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1909 (eval $ac_compiler --version </dev/null >&5) 2>&5
1910 ac_status=$?
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }
1913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1914 (eval $ac_compiler -v </dev/null >&5) 2>&5
1915 ac_status=$?
1916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917 (exit $ac_status); }
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1919 (eval $ac_compiler -V </dev/null >&5) 2>&5
1920 ac_status=$?
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923
1924 cat >conftest.$ac_ext <<_ACEOF
1925 /* confdefs.h. */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h. */
1930
1931 int
1932 main ()
1933 {
1934
1935 ;
1936 return 0;
1937 }
1938 _ACEOF
1939 ac_clean_files_save=$ac_clean_files
1940 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1941 # Try to create an executable without -o first, disregard a.out.
1942 # It will help us diagnose broken compilers, and finding out an intuition
1943 # of exeext.
1944 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1945 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1946 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1947 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1948 (eval $ac_link_default) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 # Find the output, starting from the most likely. This scheme is
1953 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1954 # resort.
1955
1956 # Be careful to initialize this variable, since it used to be cached.
1957 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1958 ac_cv_exeext=
1959 # b.out is created by i960 compilers.
1960 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1961 do
1962 test -f "$ac_file" || continue
1963 case $ac_file in
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1965 ;;
1966 conftest.$ac_ext )
1967 # This is the source file.
1968 ;;
1969 [ab].out )
1970 # We found the default executable, but exeext='' is most
1971 # certainly right.
1972 break;;
1973 *.* )
1974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1975 # FIXME: I believe we export ac_cv_exeext for Libtool,
1976 # but it would be cool to find out if it's true. Does anybody
1977 # maintain Libtool? --akim.
1978 export ac_cv_exeext
1979 break;;
1980 * )
1981 break;;
1982 esac
1983 done
1984 else
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1987
1988 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: C compiler cannot create executables
1991 See \`config.log' for more details." >&2;}
1992 { (exit 77); exit 77; }; }
1993 fi
1994
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1998
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 cross_compiling=no
2013 else
2014 if test "$cross_compiling" = maybe; then
2015 cross_compiling=yes
2016 else
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'.
2019 See \`config.log' for more details." >&5
2020 echo "$as_me: error: cannot run C compiled programs.
2021 If you meant to cross compile, use \`--host'.
2022 See \`config.log' for more details." >&2;}
2023 { (exit 1); exit 1; }; }
2024 fi
2025 fi
2026 fi
2027 echo "$as_me:$LINENO: result: yes" >&5
2028 echo "${ECHO_T}yes" >&6
2029
2030 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2031 ac_clean_files=$ac_clean_files_save
2032 # Check the compiler produces executables we can run. If not, either
2033 # the compiler is broken, or we cross compile.
2034 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2035 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2036 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2037 echo "${ECHO_T}$cross_compiling" >&6
2038
2039 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2040 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2042 (eval $ac_link) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; then
2046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2047 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2048 # work properly (i.e., refer to `conftest.exe'), while it won't with
2049 # `rm'.
2050 for ac_file in conftest.exe conftest conftest.*; do
2051 test -f "$ac_file" || continue
2052 case $ac_file in
2053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2055 export ac_cv_exeext
2056 break;;
2057 * ) break;;
2058 esac
2059 done
2060 else
2061 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 rm -f conftest$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2070 echo "${ECHO_T}$ac_cv_exeext" >&6
2071
2072 rm -f conftest.$ac_ext
2073 EXEEXT=$ac_cv_exeext
2074 ac_exeext=$EXEEXT
2075 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2076 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2077 if test "${ac_cv_objext+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h. */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2086
2087 int
2088 main ()
2089 {
2090
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 rm -f conftest.o conftest.obj
2096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097 (eval $ac_compile) 2>&5
2098 ac_status=$?
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; then
2101 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2102 case $ac_file in
2103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2105 break;;
2106 esac
2107 done
2108 else
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2115 See \`config.log' for more details." >&2;}
2116 { (exit 1); exit 1; }; }
2117 fi
2118
2119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2120 fi
2121 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2122 echo "${ECHO_T}$ac_cv_objext" >&6
2123 OBJEXT=$ac_cv_objext
2124 ac_objext=$OBJEXT
2125 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2126 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2127 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h. */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2136
2137 int
2138 main ()
2139 {
2140 #ifndef __GNUC__
2141 choke me
2142 #endif
2143
2144 ;
2145 return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150 (eval $ac_compile) 2>conftest.er1
2151 ac_status=$?
2152 grep -v '^ *+' conftest.er1 >conftest.err
2153 rm -f conftest.er1
2154 cat conftest.err >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 { ac_try='test -z "$ac_c_werror_flag"
2158 || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2170 ac_compiler_gnu=yes
2171 else
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_compiler_gnu=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2179
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2182 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2183 GCC=`test $ac_compiler_gnu = yes && echo yes`
2184 ac_test_CFLAGS=${CFLAGS+set}
2185 ac_save_CFLAGS=$CFLAGS
2186 CFLAGS="-g"
2187 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2188 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_g+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h. */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2198
2199 int
2200 main ()
2201 {
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag"
2217 || test ! -s conftest.err'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; } &&
2223 { ac_try='test -s conftest.$ac_objext'
2224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 (eval $ac_try) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; }; then
2229 ac_cv_prog_cc_g=yes
2230 else
2231 echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234 ac_cv_prog_cc_g=no
2235 fi
2236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2237 fi
2238 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2240 if test "$ac_test_CFLAGS" = set; then
2241 CFLAGS=$ac_save_CFLAGS
2242 elif test $ac_cv_prog_cc_g = yes; then
2243 if test "$GCC" = yes; then
2244 CFLAGS="-g -O2"
2245 else
2246 CFLAGS="-g"
2247 fi
2248 else
2249 if test "$GCC" = yes; then
2250 CFLAGS="-O2"
2251 else
2252 CFLAGS=
2253 fi
2254 fi
2255 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2256 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2257 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 ac_cv_prog_cc_stdc=no
2261 ac_save_CC=$CC
2262 cat >conftest.$ac_ext <<_ACEOF
2263 /* confdefs.h. */
2264 _ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2268 #include <stdarg.h>
2269 #include <stdio.h>
2270 #include <sys/types.h>
2271 #include <sys/stat.h>
2272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2273 struct buf { int x; };
2274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2275 static char *e (p, i)
2276 char **p;
2277 int i;
2278 {
2279 return p[i];
2280 }
2281 static char *f (char * (*g) (char **, int), char **p, ...)
2282 {
2283 char *s;
2284 va_list v;
2285 va_start (v,p);
2286 s = g (p, va_arg (v,int));
2287 va_end (v);
2288 return s;
2289 }
2290
2291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2292 function prototypes and stuff, but not '\xHH' hex character constants.
2293 These don't provoke an error unfortunately, instead are silently treated
2294 as 'x'. The following induces an error, until -std1 is added to get
2295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2296 array size at least. It's necessary to write '\x00'==0 to get something
2297 that's true only with -std1. */
2298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2299
2300 int test (int i, double x);
2301 struct s1 {int (*f) (int a);};
2302 struct s2 {int (*f) (double a);};
2303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2304 int argc;
2305 char **argv;
2306 int
2307 main ()
2308 {
2309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 # Don't try gcc -ansi; that turns off useful extensions and
2315 # breaks some systems' header files.
2316 # AIX -qlanglvl=ansi
2317 # Ultrix and OSF/1 -std1
2318 # HP-UX 10.20 and later -Ae
2319 # HP-UX older versions -Aa -D_HPUX_SOURCE
2320 # SVR4 -Xc -D__EXTENSIONS__
2321 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2322 do
2323 CC="$ac_save_CC $ac_arg"
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2327 ac_status=$?
2328 grep -v '^ *+' conftest.er1 >conftest.err
2329 rm -f conftest.er1
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 (eval $ac_try) 2>&5
2337 ac_status=$?
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342 (eval $ac_try) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2346 ac_cv_prog_cc_stdc=$ac_arg
2347 break
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 fi
2353 rm -f conftest.err conftest.$ac_objext
2354 done
2355 rm -f conftest.$ac_ext conftest.$ac_objext
2356 CC=$ac_save_CC
2357
2358 fi
2359
2360 case "x$ac_cv_prog_cc_stdc" in
2361 x|xno)
2362 echo "$as_me:$LINENO: result: none needed" >&5
2363 echo "${ECHO_T}none needed" >&6 ;;
2364 *)
2365 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2366 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2367 CC="$CC $ac_cv_prog_cc_stdc" ;;
2368 esac
2369
2370 # Some people use a C++ compiler to compile C. Since we use `exit',
2371 # in C++ we need to declare it. In case someone uses the same compiler
2372 # for both compiling C and C++ we need to have the C++ compiler decide
2373 # the declaration of exit, since it's the most demanding environment.
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #ifndef __cplusplus
2376 choke me
2377 #endif
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 for ac_declaration in \
2402 '' \
2403 'extern "C" void std::exit (int) throw (); using std::exit;' \
2404 'extern "C" void std::exit (int); using std::exit;' \
2405 'extern "C" void exit (int) throw ();' \
2406 'extern "C" void exit (int);' \
2407 'void exit (int);'
2408 do
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h. */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h. */
2415 $ac_declaration
2416 #include <stdlib.h>
2417 int
2418 main ()
2419 {
2420 exit (42);
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 :
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 continue
2453 fi
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h. */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2461 $ac_declaration
2462 int
2463 main ()
2464 {
2465 exit (42);
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>conftest.er1
2473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); } &&
2479 { ac_try='test -z "$ac_c_werror_flag"
2480 || test ! -s conftest.err'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; } &&
2486 { ac_try='test -s conftest.$ac_objext'
2487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 (eval $ac_try) 2>&5
2489 ac_status=$?
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2492 break
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2496
2497 fi
2498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499 done
2500 rm -f conftest*
2501 if test -n "$ac_declaration"; then
2502 echo '#ifdef __cplusplus' >>confdefs.h
2503 echo $ac_declaration >>confdefs.h
2504 echo '#endif' >>confdefs.h
2505 fi
2506
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 fi
2512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2521 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2522 if test "${ac_cv_search_strerror+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525 ac_func_search_save_LIBS=$LIBS
2526 ac_cv_search_strerror=no
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533
2534 /* Override any gcc2 internal prototype to avoid an error. */
2535 #ifdef __cplusplus
2536 extern "C"
2537 #endif
2538 /* We use char because int might match the return type of a gcc2
2539 builtin and then its argument prototype would still apply. */
2540 char strerror ();
2541 int
2542 main ()
2543 {
2544 strerror ();
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext conftest$ac_exeext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2551 (eval $ac_link) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest$ac_exeext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_search_strerror="none required"
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 fi
2577 rm -f conftest.err conftest.$ac_objext \
2578 conftest$ac_exeext conftest.$ac_ext
2579 if test "$ac_cv_search_strerror" = no; then
2580 for ac_lib in cposix; do
2581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2582 cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2588
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 #ifdef __cplusplus
2591 extern "C"
2592 #endif
2593 /* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2595 char strerror ();
2596 int
2597 main ()
2598 {
2599 strerror ();
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.$ac_objext conftest$ac_exeext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_search_strerror="-l$ac_lib"
2627 break
2628 else
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 fi
2633 rm -f conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2635 done
2636 fi
2637 LIBS=$ac_func_search_save_LIBS
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2640 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2641 if test "$ac_cv_search_strerror" != no; then
2642 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2643
2644 fi
2645
2646
2647 am__api_version="1.9"
2648 # Find a good install program. We prefer a C program (faster),
2649 # so one script is as good as another. But avoid the broken or
2650 # incompatible versions:
2651 # SysV /etc/install, /usr/sbin/install
2652 # SunOS /usr/etc/install
2653 # IRIX /sbin/install
2654 # AIX /bin/install
2655 # AmigaOS /C/install, which installs bootblocks on floppy discs
2656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659 # OS/2's system install, which has a completely different semantic
2660 # ./install, which can be erroneously created by make from ./install.sh.
2661 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663 if test -z "$INSTALL"; then
2664 if test "${ac_cv_path_install+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 # Account for people who put trailing slashes in PATH elements.
2673 case $as_dir/ in
2674 ./ | .// | /cC/* | \
2675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677 /usr/ucb/* ) ;;
2678 *)
2679 # OSF1 and SCO ODT 3.0 have their own names for install.
2680 # Don't use installbsd from OSF since it installs stuff as root
2681 # by default.
2682 for ac_prog in ginstall scoinst install; do
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685 if test $ac_prog = install &&
2686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # AIX install. It has an incompatible calling convention.
2688 :
2689 elif test $ac_prog = install &&
2690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # program-specific install script used by HP pwplus--don't use.
2692 :
2693 else
2694 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695 break 3
2696 fi
2697 fi
2698 done
2699 done
2700 ;;
2701 esac
2702 done
2703
2704
2705 fi
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL=$ac_cv_path_install
2708 else
2709 # As a last resort, use the slow shell script. We don't cache a
2710 # path for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the path is relative.
2713 INSTALL=$ac_install_sh
2714 fi
2715 fi
2716 echo "$as_me:$LINENO: result: $INSTALL" >&5
2717 echo "${ECHO_T}$INSTALL" >&6
2718
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2729 # Just in case
2730 sleep 1
2731 echo timestamp > conftest.file
2732 # Do `set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2736 # directory).
2737 if (
2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739 if test "$*" = "X"; then
2740 # -L didn't work.
2741 set X `ls -t $srcdir/configure conftest.file`
2742 fi
2743 rm -f conftest.file
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" >&5
2753 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2754 alias in your environment" >&2;}
2755 { (exit 1); exit 1; }; }
2756 fi
2757
2758 test "$2" = conftest.file
2759 )
2760 then
2761 # Ok.
2762 :
2763 else
2764 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765 Check your system clock" >&5
2766 echo "$as_me: error: newly created file is older than distributed files!
2767 Check your system clock" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770 echo "$as_me:$LINENO: result: yes" >&5
2771 echo "${ECHO_T}yes" >&6
2772 test "$program_prefix" != NONE &&
2773 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774 # Use a double $ so make ignores it.
2775 test "$program_suffix" != NONE &&
2776 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777 # Double any \ or $. echo might interpret backslashes.
2778 # By default was `s,x,x', remove it if useless.
2779 cat <<\_ACEOF >conftest.sed
2780 s/[\\$]/&&/g;s/;s,x,x,$//
2781 _ACEOF
2782 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783 rm conftest.sed
2784
2785 # expand $ac_aux_dir to an absolute path
2786 am_aux_dir=`cd $ac_aux_dir && pwd`
2787
2788 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791 am_missing_run="$MISSING --run "
2792 else
2793 am_missing_run=
2794 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796 fi
2797
2798 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799 # We used to keeping the `.' as first argument, in order to
2800 # allow $(mkdir_p) to be used without argument. As in
2801 # $(mkdir_p) $(somedir)
2802 # where $(somedir) is conditionally defined. However this is wrong
2803 # for two reasons:
2804 # 1. if the package is installed by a user who cannot write `.'
2805 # make install will fail,
2806 # 2. the above comment should most certainly read
2807 # $(mkdir_p) $(DESTDIR)$(somedir)
2808 # so it does not work when $(somedir) is undefined and
2809 # $(DESTDIR) is not.
2810 # To support the latter case, we have to write
2811 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812 # so the `.' trick is pointless.
2813 mkdir_p='mkdir -p --'
2814 else
2815 # On NextStep and OpenStep, the `mkdir' command does not
2816 # recognize any option. It will interpret all options as
2817 # directories to create, and then abort because `.' already
2818 # exists.
2819 for d in ./-p ./--version;
2820 do
2821 test -d $d && rmdir $d
2822 done
2823 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824 if test -f "$ac_aux_dir/mkinstalldirs"; then
2825 mkdir_p='$(mkinstalldirs)'
2826 else
2827 mkdir_p='$(install_sh) -d'
2828 fi
2829 fi
2830
2831 for ac_prog in gawk mawk nawk awk
2832 do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_AWK+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 if test -n "$AWK"; then
2841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_AWK="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856
2857 fi
2858 fi
2859 AWK=$ac_cv_prog_AWK
2860 if test -n "$AWK"; then
2861 echo "$as_me:$LINENO: result: $AWK" >&5
2862 echo "${ECHO_T}$AWK" >&6
2863 else
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2866 fi
2867
2868 test -n "$AWK" && break
2869 done
2870
2871 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 cat >conftest.make <<\_ACEOF
2878 all:
2879 @echo 'ac_maketemp="$(MAKE)"'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883 if test -n "$ac_maketemp"; then
2884 eval ac_cv_prog_make_${ac_make}_set=yes
2885 else
2886 eval ac_cv_prog_make_${ac_make}_set=no
2887 fi
2888 rm -f conftest.make
2889 fi
2890 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891 echo "$as_me:$LINENO: result: yes" >&5
2892 echo "${ECHO_T}yes" >&6
2893 SET_MAKE=
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897 SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903 am__leading_dot=.
2904 else
2905 am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 DEPDIR="${am__leading_dot}deps"
2910
2911 ac_config_commands="$ac_config_commands depfiles"
2912
2913
2914 am_make=${MAKE-make}
2915 cat > confinc << 'END'
2916 am__doit:
2917 @echo done
2918 .PHONY: am__doit
2919 END
2920 # If we don't find an include directive, just comment out the code.
2921 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923 am__include="#"
2924 am__quote=
2925 _am_result=none
2926 # First try GNU make style include.
2927 echo "include confinc" > confmf
2928 # We grep out `Entering directory' and `Leaving directory'
2929 # messages which can occur if `w' ends up in MAKEFLAGS.
2930 # In particular we don't look at `^make:' because GNU make might
2931 # be invoked under some other name (usually "gmake"), in which
2932 # case it prints its new name instead of `make'.
2933 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934 am__include=include
2935 am__quote=
2936 _am_result=GNU
2937 fi
2938 # Now try BSD make style include.
2939 if test "$am__include" = "#"; then
2940 echo '.include "confinc"' > confmf
2941 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942 am__include=.include
2943 am__quote="\""
2944 _am_result=BSD
2945 fi
2946 fi
2947
2948
2949 echo "$as_me:$LINENO: result: $_am_result" >&5
2950 echo "${ECHO_T}$_am_result" >&6
2951 rm -f confinc confmf
2952
2953 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954 if test "${enable_dependency_tracking+set}" = set; then
2955 enableval="$enable_dependency_tracking"
2956
2957 fi;
2958 if test "x$enable_dependency_tracking" != xno; then
2959 am_depcomp="$ac_aux_dir/depcomp"
2960 AMDEPBACKSLASH='\'
2961 fi
2962
2963
2964 if test "x$enable_dependency_tracking" != xno; then
2965 AMDEP_TRUE=
2966 AMDEP_FALSE='#'
2967 else
2968 AMDEP_TRUE='#'
2969 AMDEP_FALSE=
2970 fi
2971
2972
2973
2974 # test to see if srcdir already configured
2975 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976 test -f $srcdir/config.status; then
2977 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984 if (cygpath --version) >/dev/null 2>/dev/null; then
2985 CYGPATH_W='cygpath -w'
2986 else
2987 CYGPATH_W=echo
2988 fi
2989 fi
2990
2991
2992 # Define the identity of the package.
2993 PACKAGE=bfd
2994 VERSION=2.17.50
2995
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
2999 _ACEOF
3000
3001
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3004 _ACEOF
3005
3006 # Some tools Automake needs.
3007
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3023
3024 # Installed binaries are usually stripped using `strip' when the user
3025 # run `make install-strip'. However `strip' might not be the right
3026 # tool to use in cross-compilation environments, therefore Automake
3027 # will honor the `STRIP' environment variable to overrule this program.
3028 if test "$cross_compiling" != no; then
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}strip; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_STRIP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 if test -n "$STRIP"; then
3038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053
3054 fi
3055 fi
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058 echo "$as_me:$LINENO: result: $STRIP" >&5
3059 echo "${ECHO_T}$STRIP" >&6
3060 else
3061 echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065 fi
3066 if test -z "$ac_cv_prog_STRIP"; then
3067 ac_ct_STRIP=$STRIP
3068 # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075 if test -n "$ac_ct_STRIP"; then
3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_STRIP="strip"
3086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091
3092 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093 fi
3094 fi
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096 if test -n "$ac_ct_STRIP"; then
3097 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098 echo "${ECHO_T}$ac_ct_STRIP" >&6
3099 else
3100 echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3102 fi
3103
3104 STRIP=$ac_ct_STRIP
3105 else
3106 STRIP="$ac_cv_prog_STRIP"
3107 fi
3108
3109 fi
3110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
3112 # We need awk for the "check" target. The system "awk" is bad on
3113 # some platforms.
3114 # Always define AMTAR for backward compatibility.
3115
3116 AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
3118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
3120
3121
3122
3123 depcc="$CC" am_compiler_list=
3124
3125 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131 # We make a subdir and do the tests there. Otherwise we can end up
3132 # making bogus files that we don't know about and never remove. For
3133 # instance it was reported that on HP-UX the gcc test will end up
3134 # making a dummy file named `D' -- because `-MD' means `put the output
3135 # in D'.
3136 mkdir conftest.dir
3137 # Copy depcomp to subdir because otherwise we won't find it if we're
3138 # using a relative directory.
3139 cp "$am_depcomp" conftest.dir
3140 cd conftest.dir
3141 # We will build objects and dependencies in a subdirectory because
3142 # it helps to detect inapplicable dependency modes. For instance
3143 # both Tru64's cc and ICC support -MD to output dependencies as a
3144 # side effect of compilation, but ICC will put the dependencies in
3145 # the current directory while Tru64 will put them in the object
3146 # directory.
3147 mkdir sub
3148
3149 am_cv_CC_dependencies_compiler_type=none
3150 if test "$am_compiler_list" = ""; then
3151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152 fi
3153 for depmode in $am_compiler_list; do
3154 # Setup a source with many dependencies, because some compilers
3155 # like to wrap large dependency lists on column 80 (with \), and
3156 # we should not choose a depcomp mode which is confused by this.
3157 #
3158 # We need to recreate these files for each test, as the compiler may
3159 # overwrite some of them when testing with obscure command lines.
3160 # This happens at least with the AIX C compiler.
3161 : > sub/conftest.c
3162 for i in 1 2 3 4 5 6; do
3163 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165 # Solaris 8's {/usr,}/bin/sh.
3166 touch sub/conftst$i.h
3167 done
3168 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170 case $depmode in
3171 nosideeffect)
3172 # after this tag, mechanisms are not by side-effect, so they'll
3173 # only be used when explicitly requested
3174 if test "x$enable_dependency_tracking" = xyes; then
3175 continue
3176 else
3177 break
3178 fi
3179 ;;
3180 none) break ;;
3181 esac
3182 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183 # mode. It turns out that the SunPro C++ compiler does not properly
3184 # handle `-M -o', and we need to detect this.
3185 if depmode=$depmode \
3186 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189 >/dev/null 2>conftest.err &&
3190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193 # icc doesn't choke on unknown options, it will just issue warnings
3194 # or remarks (even with -Werror). So we grep stderr for any message
3195 # that says an option was ignored or not supported.
3196 # When given -MP, icc 7.0 and 7.1 complain thusly:
3197 # icc: Command line warning: ignoring option '-M'; no argument required
3198 # The diagnosis changed in icc 8.0:
3199 # icc: Command line remark: option '-MP' not supported
3200 if (grep 'ignoring option' conftest.err ||
3201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202 am_cv_CC_dependencies_compiler_type=$depmode
3203 break
3204 fi
3205 fi
3206 done
3207
3208 cd ..
3209 rm -rf conftest.dir
3210 else
3211 am_cv_CC_dependencies_compiler_type=none
3212 fi
3213
3214 fi
3215 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3219
3220
3221 if
3222 test "x$enable_dependency_tracking" != xno \
3223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224 am__fastdepCC_TRUE=
3225 am__fastdepCC_FALSE='#'
3226 else
3227 am__fastdepCC_TRUE='#'
3228 am__fastdepCC_FALSE=
3229 fi
3230
3231
3232
3233
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}ar; ac_word=$2
3237 echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239 if test "${ac_cv_prog_AR+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 if test -n "$AR"; then
3243 ac_cv_prog_AR="$AR" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AR="${ac_tool_prefix}ar"
3253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258
3259 fi
3260 fi
3261 AR=$ac_cv_prog_AR
3262 if test -n "$AR"; then
3263 echo "$as_me:$LINENO: result: $AR" >&5
3264 echo "${ECHO_T}$AR" >&6
3265 else
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3268 fi
3269
3270 fi
3271 if test -z "$ac_cv_prog_AR"; then
3272 ac_ct_AR=$AR
3273 # Extract the first word of "ar", so it can be a program name with args.
3274 set dummy ar; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$ac_ct_AR"; then
3281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_AR="ar"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296
3297 fi
3298 fi
3299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300 if test -n "$ac_ct_AR"; then
3301 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302 echo "${ECHO_T}$ac_ct_AR" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 AR=$ac_ct_AR
3309 else
3310 AR="$ac_cv_prog_AR"
3311 fi
3312
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337
3338 fi
3339 fi
3340 RANLIB=$ac_cv_prog_RANLIB
3341 if test -n "$RANLIB"; then
3342 echo "$as_me:$LINENO: result: $RANLIB" >&5
3343 echo "${ECHO_T}$RANLIB" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349 fi
3350 if test -z "$ac_cv_prog_RANLIB"; then
3351 ac_ct_RANLIB=$RANLIB
3352 # Extract the first word of "ranlib", so it can be a program name with args.
3353 set dummy ranlib; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 if test -n "$ac_ct_RANLIB"; then
3360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_RANLIB="ranlib"
3370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375
3376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3377 fi
3378 fi
3379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380 if test -n "$ac_ct_RANLIB"; then
3381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 RANLIB=$ac_ct_RANLIB
3389 else
3390 RANLIB="$ac_cv_prog_RANLIB"
3391 fi
3392
3393
3394 # Check whether --enable-shared or --disable-shared was given.
3395 if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397 p=${PACKAGE-default}
3398 case $enableval in
3399 yes) enable_shared=yes ;;
3400 no) enable_shared=no ;;
3401 *)
3402 enable_shared=no
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3406 IFS="$lt_save_ifs"
3407 if test "X$pkg" = "X$p"; then
3408 enable_shared=yes
3409 fi
3410 done
3411 IFS="$lt_save_ifs"
3412 ;;
3413 esac
3414 else
3415 enable_shared=no
3416 fi;
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 echo "$as_me:$LINENO: checking for $ac_word" >&5
3435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3436 if test "${ac_cv_prog_CC+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 break 2
3452 fi
3453 done
3454 done
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460 echo "$as_me:$LINENO: result: $CC" >&5
3461 echo "${ECHO_T}$CC" >&6
3462 else
3463 echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6
3465 fi
3466
3467 fi
3468 if test -z "$ac_cv_prog_CC"; then
3469 ac_ct_CC=$CC
3470 # Extract the first word of "gcc", so it can be a program name with args.
3471 set dummy gcc; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 if test -n "$ac_ct_CC"; then
3478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="gcc"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493
3494 fi
3495 fi
3496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3497 if test -n "$ac_ct_CC"; then
3498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3499 echo "${ECHO_T}$ac_ct_CC" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 fi
3504
3505 CC=$ac_ct_CC
3506 else
3507 CC="$ac_cv_prog_CC"
3508 fi
3509
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
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 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 echo "$as_me:$LINENO: result: $CC" >&5
3541 echo "${ECHO_T}$CC" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547 fi
3548 if test -z "$ac_cv_prog_CC"; then
3549 ac_ct_CC=$CC
3550 # Extract the first word of "cc", so it can be a program name with args.
3551 set dummy cc; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_CC="cc"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573
3574 fi
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3579 echo "${ECHO_T}$ac_ct_CC" >&6
3580 else
3581 echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3583 fi
3584
3585 CC=$ac_ct_CC
3586 else
3587 CC="$ac_cv_prog_CC"
3588 fi
3589
3590 fi
3591 if test -z "$CC"; then
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_CC+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3613 fi
3614 ac_cv_prog_CC="cc"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618 done
3619 done
3620
3621 if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
3630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631 fi
3632 fi
3633 fi
3634 fi
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 echo "$as_me:$LINENO: result: $CC" >&5
3638 echo "${ECHO_T}$CC" >&6
3639 else
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 fi
3643
3644 fi
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 for ac_prog in cl
3648 do
3649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_CC+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672
3673 fi
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 echo "$as_me:$LINENO: result: $CC" >&5
3678 echo "${ECHO_T}$CC" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3682 fi
3683
3684 test -n "$CC" && break
3685 done
3686 fi
3687 if test -z "$CC"; then
3688 ac_ct_CC=$CC
3689 for ac_prog in cl
3690 do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy $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_ac_ct_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720 echo "${ECHO_T}$ac_ct_CC" >&6
3721 else
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3724 fi
3725
3726 test -n "$ac_ct_CC" && break
3727 done
3728
3729 CC=$ac_ct_CC
3730 fi
3731
3732 fi
3733
3734
3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3740
3741 # Provide some information about the compiler.
3742 echo "$as_me:$LINENO:" \
3743 "checking for C compiler version" >&5
3744 ac_compiler=`set X $ac_compile; echo $2`
3745 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3746 (eval $ac_compiler --version </dev/null >&5) 2>&5
3747 ac_status=$?
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); }
3750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3751 (eval $ac_compiler -v </dev/null >&5) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }
3755 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3756 (eval $ac_compiler -V </dev/null >&5) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
3760
3761 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3762 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3763 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776 #ifndef __GNUC__
3777 choke me
3778 #endif
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_compiler_gnu=yes
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 ac_compiler_gnu=no
3812 fi
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3815
3816 fi
3817 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3819 GCC=`test $ac_compiler_gnu = yes && echo yes`
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 CFLAGS="-g"
3823 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3824 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3825 if test "${ac_cv_prog_cc_g+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828 cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h. */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834
3835 int
3836 main ()
3837 {
3838
3839 ;
3840 return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_prog_cc_g=yes
3866 else
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 ac_cv_prog_cc_g=no
3871 fi
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 fi
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3876 if test "$ac_test_CFLAGS" = set; then
3877 CFLAGS=$ac_save_CFLAGS
3878 elif test $ac_cv_prog_cc_g = yes; then
3879 if test "$GCC" = yes; then
3880 CFLAGS="-g -O2"
3881 else
3882 CFLAGS="-g"
3883 fi
3884 else
3885 if test "$GCC" = yes; then
3886 CFLAGS="-O2"
3887 else
3888 CFLAGS=
3889 fi
3890 fi
3891 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3892 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3893 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 ac_cv_prog_cc_stdc=no
3897 ac_save_CC=$CC
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904 #include <stdarg.h>
3905 #include <stdio.h>
3906 #include <sys/types.h>
3907 #include <sys/stat.h>
3908 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3909 struct buf { int x; };
3910 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3911 static char *e (p, i)
3912 char **p;
3913 int i;
3914 {
3915 return p[i];
3916 }
3917 static char *f (char * (*g) (char **, int), char **p, ...)
3918 {
3919 char *s;
3920 va_list v;
3921 va_start (v,p);
3922 s = g (p, va_arg (v,int));
3923 va_end (v);
3924 return s;
3925 }
3926
3927 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3928 function prototypes and stuff, but not '\xHH' hex character constants.
3929 These don't provoke an error unfortunately, instead are silently treated
3930 as 'x'. The following induces an error, until -std1 is added to get
3931 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3932 array size at least. It's necessary to write '\x00'==0 to get something
3933 that's true only with -std1. */
3934 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3935
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3940 int argc;
3941 char **argv;
3942 int
3943 main ()
3944 {
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 # Don't try gcc -ansi; that turns off useful extensions and
3951 # breaks some systems' header files.
3952 # AIX -qlanglvl=ansi
3953 # Ultrix and OSF/1 -std1
3954 # HP-UX 10.20 and later -Ae
3955 # HP-UX older versions -Aa -D_HPUX_SOURCE
3956 # SVR4 -Xc -D__EXTENSIONS__
3957 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3958 do
3959 CC="$ac_save_CC $ac_arg"
3960 rm -f conftest.$ac_objext
3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3962 (eval $ac_compile) 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } &&
3969 { ac_try='test -z "$ac_c_werror_flag"
3970 || test ! -s conftest.err'
3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_cv_prog_cc_stdc=$ac_arg
3983 break
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 fi
3989 rm -f conftest.err conftest.$ac_objext
3990 done
3991 rm -f conftest.$ac_ext conftest.$ac_objext
3992 CC=$ac_save_CC
3993
3994 fi
3995
3996 case "x$ac_cv_prog_cc_stdc" in
3997 x|xno)
3998 echo "$as_me:$LINENO: result: none needed" >&5
3999 echo "${ECHO_T}none needed" >&6 ;;
4000 *)
4001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4002 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4003 CC="$CC $ac_cv_prog_cc_stdc" ;;
4004 esac
4005
4006 # Some people use a C++ compiler to compile C. Since we use `exit',
4007 # in C++ we need to declare it. In case someone uses the same compiler
4008 # for both compiling C and C++ we need to have the C++ compiler decide
4009 # the declaration of exit, since it's the most demanding environment.
4010 cat >conftest.$ac_ext <<_ACEOF
4011 #ifndef __cplusplus
4012 choke me
4013 #endif
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027 (eval $ac_try) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 for ac_declaration in \
4038 '' \
4039 'extern "C" void std::exit (int) throw (); using std::exit;' \
4040 'extern "C" void std::exit (int); using std::exit;' \
4041 'extern "C" void exit (int) throw ();' \
4042 'extern "C" void exit (int);' \
4043 'void exit (int);'
4044 do
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_declaration
4052 #include <stdlib.h>
4053 int
4054 main ()
4055 {
4056 exit (42);
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 rm -f conftest.$ac_objext
4062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4063 (eval $ac_compile) 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } &&
4070 { ac_try='test -z "$ac_c_werror_flag"
4071 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 :
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 continue
4089 fi
4090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 $ac_declaration
4098 int
4099 main ()
4100 {
4101 exit (42);
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag"
4116 || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 break
4129 else
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 fi
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4135 done
4136 rm -f conftest*
4137 if test -n "$ac_declaration"; then
4138 echo '#ifdef __cplusplus' >>confdefs.h
4139 echo $ac_declaration >>confdefs.h
4140 echo '#endif' >>confdefs.h
4141 fi
4142
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 fi
4148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 cat >>confdefs.h <<\_ACEOF
4157 #define _GNU_SOURCE 1
4158 _ACEOF
4159
4160
4161
4162
4163
4164 macro_version='2.1a'
4165 macro_revision='1.2435'
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178 ltmain="$ac_aux_dir/ltmain.sh"
4179
4180 # Set options
4181
4182 enable_dlopen=no
4183
4184
4185 enable_win32_dll=no
4186
4187
4188
4189 # Check whether --enable-static or --disable-static was given.
4190 if test "${enable_static+set}" = set; then
4191 enableval="$enable_static"
4192 p=${PACKAGE-default}
4193 case $enableval in
4194 yes) enable_static=yes ;;
4195 no) enable_static=no ;;
4196 *)
4197 enable_static=no
4198 # Look at the argument we got. We use all the common list separators.
4199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4200 for pkg in $enableval; do
4201 IFS="$lt_save_ifs"
4202 if test "X$pkg" = "X$p"; then
4203 enable_static=yes
4204 fi
4205 done
4206 IFS="$lt_save_ifs"
4207 ;;
4208 esac
4209 else
4210 enable_static=yes
4211 fi;
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221 # Check whether --with-pic or --without-pic was given.
4222 if test "${with_pic+set}" = set; then
4223 withval="$with_pic"
4224 pic_mode="$withval"
4225 else
4226 pic_mode=default
4227 fi;
4228
4229 test -z "$pic_mode" && pic_mode=default
4230
4231
4232
4233
4234
4235
4236
4237 # Check whether --enable-fast-install or --disable-fast-install was given.
4238 if test "${enable_fast_install+set}" = set; then
4239 enableval="$enable_fast_install"
4240 p=${PACKAGE-default}
4241 case $enableval in
4242 yes) enable_fast_install=yes ;;
4243 no) enable_fast_install=no ;;
4244 *)
4245 enable_fast_install=no
4246 # Look at the argument we got. We use all the common list separators.
4247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4248 for pkg in $enableval; do
4249 IFS="$lt_save_ifs"
4250 if test "X$pkg" = "X$p"; then
4251 enable_fast_install=yes
4252 fi
4253 done
4254 IFS="$lt_save_ifs"
4255 ;;
4256 esac
4257 else
4258 enable_fast_install=yes
4259 fi;
4260
4261
4262
4263
4264
4265
4266
4267
4268 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4269 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4270 if test "${lt_cv_path_SED+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273 # Loop through the user's path and test for sed and gsed.
4274 # Then use that list of sed's as ones to test for truncation.
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for lt_ac_prog in sed gsed; do
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4283 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4284 fi
4285 done
4286 done
4287 done
4288 IFS=$as_save_IFS
4289 lt_ac_max=0
4290 lt_ac_count=0
4291 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4292 # along with /bin/sed that truncates output.
4293 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4294 test ! -f $lt_ac_sed && continue
4295 cat /dev/null > conftest.in
4296 lt_ac_count=0
4297 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4298 # Check for GNU sed and select it if it is found.
4299 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4300 lt_cv_path_SED=$lt_ac_sed
4301 break
4302 fi
4303 while true; do
4304 cat conftest.in conftest.in >conftest.tmp
4305 mv conftest.tmp conftest.in
4306 cp conftest.in conftest.nl
4307 echo >>conftest.nl
4308 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4309 cmp -s conftest.out conftest.nl || break
4310 # 10000 chars as input seems more than enough
4311 test $lt_ac_count -gt 10 && break
4312 lt_ac_count=`expr $lt_ac_count + 1`
4313 if test $lt_ac_count -gt $lt_ac_max; then
4314 lt_ac_max=$lt_ac_count
4315 lt_cv_path_SED=$lt_ac_sed
4316 fi
4317 done
4318 done
4319
4320 fi
4321
4322 SED=$lt_cv_path_SED
4323
4324 echo "$as_me:$LINENO: result: $SED" >&5
4325 echo "${ECHO_T}$SED" >&6
4326
4327 test -z "$SED" && SED=sed
4328 Xsed="$SED -e 1s/^X//"
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 echo "$as_me:$LINENO: checking for egrep" >&5
4341 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4342 if test "${ac_cv_prog_egrep+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4346 then ac_cv_prog_egrep='grep -E'
4347 else ac_cv_prog_egrep='egrep'
4348 fi
4349 fi
4350 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4351 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4352 EGREP=$ac_cv_prog_egrep
4353
4354
4355 echo "$as_me:$LINENO: checking for fgrep" >&5
4356 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4357 if test "${ac_cv_prog_fgrep+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4361 then ac_cv_prog_fgrep='grep -F'
4362 else ac_cv_prog_fgrep='fgrep'
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4366 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4367 FGREP=$ac_cv_prog_fgrep
4368
4369
4370 test -z "$GREP" && GREP=grep
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4391 if test "${with_gnu_ld+set}" = set; then
4392 withval="$with_gnu_ld"
4393 test "$withval" = no || with_gnu_ld=yes
4394 else
4395 with_gnu_ld=no
4396 fi;
4397 ac_prog=ld
4398 if test "$GCC" = yes; then
4399 # Check if gcc -print-prog-name=ld gives a path.
4400 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4401 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4402 case $host in
4403 *-*-mingw*)
4404 # gcc leaves a trailing carriage return which upsets mingw
4405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4406 *)
4407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4408 esac
4409 case $ac_prog in
4410 # Accept absolute paths.
4411 [\\/]* | ?:[\\/]*)
4412 re_direlt='/[^/][^/]*/\.\./'
4413 # Canonicalize the pathname of ld
4414 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4415 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4416 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4417 done
4418 test -z "$LD" && LD="$ac_prog"
4419 ;;
4420 "")
4421 # If it fails, then pretend we aren't using GCC.
4422 ac_prog=ld
4423 ;;
4424 *)
4425 # If it is relative, then search for the first ld in PATH.
4426 with_gnu_ld=unknown
4427 ;;
4428 esac
4429 elif test "$with_gnu_ld" = yes; then
4430 echo "$as_me:$LINENO: checking for GNU ld" >&5
4431 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4432 else
4433 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4434 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4435 fi
4436 if test "${lt_cv_path_LD+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -z "$LD"; then
4440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4441 for ac_dir in $PATH; do
4442 IFS="$lt_save_ifs"
4443 test -z "$ac_dir" && ac_dir=.
4444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4445 lt_cv_path_LD="$ac_dir/$ac_prog"
4446 # Check to see if the program is GNU ld. I'd rather use --version,
4447 # but apparently some variants of GNU ld only accept -v.
4448 # Break only if it was the GNU/non-GNU ld that we prefer.
4449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4450 *GNU* | *'with BFD'*)
4451 test "$with_gnu_ld" != no && break
4452 ;;
4453 *)
4454 test "$with_gnu_ld" != yes && break
4455 ;;
4456 esac
4457 fi
4458 done
4459 IFS="$lt_save_ifs"
4460 else
4461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4462 fi
4463 fi
4464
4465 LD="$lt_cv_path_LD"
4466 if test -n "$LD"; then
4467 echo "$as_me:$LINENO: result: $LD" >&5
4468 echo "${ECHO_T}$LD" >&6
4469 else
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472 fi
4473 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4474 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4475 { (exit 1); exit 1; }; }
4476 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4477 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4482 case `$LD -v 2>&1 </dev/null` in
4483 *GNU* | *'with BFD'*)
4484 lt_cv_prog_gnu_ld=yes
4485 ;;
4486 *)
4487 lt_cv_prog_gnu_ld=no
4488 ;;
4489 esac
4490 fi
4491 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4493 with_gnu_ld=$lt_cv_prog_gnu_ld
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4505 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4506 if test "${lt_cv_path_NM+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 if test -n "$NM"; then
4510 # Let the user override the test.
4511 lt_cv_path_NM="$NM"
4512 else
4513 lt_nm_to_check="${ac_tool_prefix}nm"
4514 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4515 lt_nm_to_check="$lt_nm_to_check nm"
4516 fi
4517 for lt_tmp_nm in $lt_nm_to_check; do
4518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4519 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4520 IFS="$lt_save_ifs"
4521 test -z "$ac_dir" && ac_dir=.
4522 tmp_nm="$ac_dir/$lt_tmp_nm"
4523 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4524 # Check to see if the nm accepts a BSD-compat flag.
4525 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4526 # nm: unknown option "B" ignored
4527 # Tru64's nm complains that /dev/null is an invalid object file
4528 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4529 */dev/null* | *'Invalid file or object type'*)
4530 lt_cv_path_NM="$tmp_nm -B"
4531 break
4532 ;;
4533 *)
4534 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4535 */dev/null*)
4536 lt_cv_path_NM="$tmp_nm -p"
4537 break
4538 ;;
4539 *)
4540 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4541 continue # so that we can try to find one that supports BSD flags
4542 ;;
4543 esac
4544 ;;
4545 esac
4546 fi
4547 done
4548 IFS="$lt_save_ifs"
4549 done
4550 : ${lt_cv_path_NM=no}
4551 fi
4552 fi
4553 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4554 echo "${ECHO_T}$lt_cv_path_NM" >&6
4555 if test "$lt_cv_path_NM" != "no"; then
4556 NM="$lt_cv_path_NM"
4557 else
4558 # Didn't find any BSD compatible name lister, look for dumpbin.
4559 if test -n "$ac_tool_prefix"; then
4560 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4561 do
4562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$DUMPBIN"; then
4570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585
4586 fi
4587 fi
4588 DUMPBIN=$ac_cv_prog_DUMPBIN
4589 if test -n "$DUMPBIN"; then
4590 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4591 echo "${ECHO_T}$DUMPBIN" >&6
4592 else
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4595 fi
4596
4597 test -n "$DUMPBIN" && break
4598 done
4599 fi
4600 if test -z "$DUMPBIN"; then
4601 ac_ct_DUMPBIN=$DUMPBIN
4602 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4603 do
4604 # Extract the first word of "$ac_prog", so it can be a program name with args.
4605 set dummy $ac_prog; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 if test -n "$ac_ct_DUMPBIN"; then
4612 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627
4628 fi
4629 fi
4630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4631 if test -n "$ac_ct_DUMPBIN"; then
4632 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4633 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4634 else
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637 fi
4638
4639 test -n "$ac_ct_DUMPBIN" && break
4640 done
4641 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4642
4643 DUMPBIN=$ac_ct_DUMPBIN
4644 fi
4645
4646
4647 if test "$DUMPBIN" != ":"; then
4648 NM="$DUMPBIN"
4649 fi
4650 fi
4651 test -z "$NM" && NM=nm
4652
4653
4654
4655
4656
4657
4658 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4659 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4660 if test "${lt_cv_nm_interface+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663 lt_cv_nm_interface="BSD nm"
4664 echo "int some_variable = 0;" > conftest.$ac_ext
4665 (eval echo "\"\$as_me:4665: $ac_compile\"" >&5)
4666 (eval "$ac_compile" 2>conftest.err)
4667 cat conftest.err >&5
4668 (eval echo "\"\$as_me:4668: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:4671: output\"" >&5)
4672 cat conftest.out >&5
4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674 lt_cv_nm_interface="MS dumpbin"
4675 fi
4676 rm -f conftest*
4677 fi
4678 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4679 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4680
4681 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4683 LN_S=$as_ln_s
4684 if test "$LN_S" = "ln -s"; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689 echo "${ECHO_T}no, using $LN_S" >&6
4690 fi
4691
4692 # find the maximum length of command line arguments
4693 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4694 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4695 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 i=0
4699 teststring="ABCD"
4700
4701 case $build_os in
4702 msdosdjgpp*)
4703 # On DJGPP, this test can blow up pretty badly due to problems in libc
4704 # (any single argument exceeding 2000 bytes causes a buffer overrun
4705 # during glob expansion). Even if it were fixed, the result of this
4706 # check would be larger than it should be.
4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4708 ;;
4709
4710 gnu*)
4711 # Under GNU Hurd, this test is not required because there is
4712 # no limit to the length of command line arguments.
4713 # Libtool will interpret -1 as no limit whatsoever
4714 lt_cv_sys_max_cmd_len=-1;
4715 ;;
4716
4717 cygwin* | mingw*)
4718 # On Win9x/ME, this test blows up -- it succeeds, but takes
4719 # about 5 minutes as the teststring grows exponentially.
4720 # Worse, since 9x/ME are not pre-emptively multitasking,
4721 # you end up with a "frozen" computer, even though with patience
4722 # the test eventually succeeds (with a max line length of 256k).
4723 # Instead, let's just punt: use the minimum linelength reported by
4724 # all of the supported platforms: 8192 (on NT/2K/XP).
4725 lt_cv_sys_max_cmd_len=8192;
4726 ;;
4727
4728 amigaos*)
4729 # On AmigaOS with pdksh, this test takes hours, literally.
4730 # So we just punt and use a minimum line length of 8192.
4731 lt_cv_sys_max_cmd_len=8192;
4732 ;;
4733
4734 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4735 # This has been around since 386BSD, at least. Likely further.
4736 if test -x /sbin/sysctl; then
4737 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4738 elif test -x /usr/sbin/sysctl; then
4739 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4740 else
4741 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4742 fi
4743 # And add a safety zone
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746 ;;
4747
4748 interix*)
4749 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4750 lt_cv_sys_max_cmd_len=196608
4751 ;;
4752
4753 osf*)
4754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4756 # nice to cause kernel panics so lets avoid the loop below.
4757 # First set a reasonable default.
4758 lt_cv_sys_max_cmd_len=16384
4759 #
4760 if test -x /sbin/sysconfig; then
4761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4763 esac
4764 fi
4765 ;;
4766 sco3.2v5*)
4767 lt_cv_sys_max_cmd_len=102400
4768 ;;
4769 sysv5* | sco5v6* | sysv4.2uw2*)
4770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4771 if test -n "$kargmax"; then
4772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4773 else
4774 lt_cv_sys_max_cmd_len=32768
4775 fi
4776 ;;
4777 *)
4778 # Make teststring a little bigger before we do anything with it.
4779 # a 1K string should be a reasonable start.
4780 for i in 1 2 3 4 5 6 7 8 ; do
4781 teststring=$teststring$teststring
4782 done
4783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4784 # If test is not a shell built-in, we'll probably end up computing a
4785 # maximum length that is only half of the actual maximum length, but
4786 # we can't tell.
4787 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4788 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4789 test $i != 17 # 1/2 MB should be enough
4790 do
4791 i=`expr $i + 1`
4792 teststring=$teststring$teststring
4793 done
4794 # Only check the string length outside the loop.
4795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4796 teststring=
4797 # Add a significant safety factor because C++ compilers can tack on massive
4798 # amounts of additional arguments before passing them to the linker.
4799 # It appears as though 1/2 is a usable value.
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4801 ;;
4802 esac
4803
4804 fi
4805
4806 if test -n $lt_cv_sys_max_cmd_len ; then
4807 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4808 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4809 else
4810 echo "$as_me:$LINENO: result: none" >&5
4811 echo "${ECHO_T}none" >&6
4812 fi
4813 max_cmd_len=$lt_cv_sys_max_cmd_len
4814
4815
4816
4817
4818
4819
4820
4821 : ${CP="cp -f"}
4822 : ${MV="mv -f"}
4823 : ${RM="rm -f"}
4824
4825 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4826 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4827 # Try some XSI features
4828 xsi_shell=no
4829 ( _lt_dummy="a/b/c"
4830 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4831 = c,a/b,, ) >/dev/null 2>&1 \
4832 && xsi_shell=yes
4833 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4834 echo "${ECHO_T}$xsi_shell" >&6
4835
4836
4837 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4838 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4839 lt_shell_append=no
4840 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4841 >/dev/null 2>&1 \
4842 && lt_shell_append=yes
4843 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4844 echo "${ECHO_T}$lt_shell_append" >&6
4845
4846
4847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4848 lt_unset=unset
4849 else
4850 lt_unset=false
4851 fi
4852
4853
4854
4855
4856
4857 # test EBCDIC or ASCII
4858 case `echo X|tr X '\101'` in
4859 A) # ASCII based system
4860 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4861 lt_SP2NL='tr \040 \012'
4862 lt_NL2SP='tr \015\012 \040\040'
4863 ;;
4864 *) # EBCDIC based system
4865 lt_SP2NL='tr \100 \n'
4866 lt_NL2SP='tr \r\n \100\100'
4867 ;;
4868 esac
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4879 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4880 if test "${lt_cv_ld_reload_flag+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 lt_cv_ld_reload_flag='-r'
4884 fi
4885 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4886 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4887 reload_flag=$lt_cv_ld_reload_flag
4888 case $reload_flag in
4889 "" | " "*) ;;
4890 *) reload_flag=" $reload_flag" ;;
4891 esac
4892 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4893 case $host_os in
4894 darwin*)
4895 if test "$GCC" = yes; then
4896 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4897 else
4898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4899 fi
4900 ;;
4901 esac
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4913 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4914 if test "${lt_cv_deplibs_check_method+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 lt_cv_file_magic_cmd='$MAGIC_CMD'
4918 lt_cv_file_magic_test_file=
4919 lt_cv_deplibs_check_method='unknown'
4920 # Need to set the preceding variable on all platforms that support
4921 # interlibrary dependencies.
4922 # 'none' -- dependencies not supported.
4923 # `unknown' -- same as none, but documents that we really don't know.
4924 # 'pass_all' -- all dependencies passed with no checks.
4925 # 'test_compile' -- check by making test program.
4926 # 'file_magic [[regex]]' -- check by looking for files in library path
4927 # which responds to the $file_magic_cmd with a given extended regex.
4928 # If you have `file' or equivalent on your system and you're not sure
4929 # whether `pass_all' will *always* work, you probably want this one.
4930
4931 case $host_os in
4932 aix4* | aix5*)
4933 lt_cv_deplibs_check_method=pass_all
4934 ;;
4935
4936 beos*)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939
4940 bsdi[45]*)
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4942 lt_cv_file_magic_cmd='/usr/bin/file -L'
4943 lt_cv_file_magic_test_file=/shlib/libc.so
4944 ;;
4945
4946 cygwin*)
4947 # func_win32_libid is a shell function defined in ltmain.sh
4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4949 lt_cv_file_magic_cmd='func_win32_libid'
4950 ;;
4951
4952 mingw* | pw32*)
4953 # Base MSYS/MinGW do not provide the 'file' command needed by
4954 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4955 # unless we find 'file', for example because we are cross-compiling.
4956 if ( file / ) >/dev/null 2>&1; then
4957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958 lt_cv_file_magic_cmd='func_win32_libid'
4959 else
4960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4961 lt_cv_file_magic_cmd='$OBJDUMP -f'
4962 fi
4963 ;;
4964
4965 darwin* | rhapsody*)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4968
4969 freebsd* | dragonfly*)
4970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4971 case $host_cpu in
4972 i*86 )
4973 # Not sure whether the presence of OpenBSD here was a mistake.
4974 # Let's accept both of them until this is cleared up.
4975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4976 lt_cv_file_magic_cmd=/usr/bin/file
4977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4978 ;;
4979 esac
4980 else
4981 lt_cv_deplibs_check_method=pass_all
4982 fi
4983 ;;
4984
4985 gnu*)
4986 lt_cv_deplibs_check_method=pass_all
4987 ;;
4988
4989 hpux10.20* | hpux11*)
4990 lt_cv_file_magic_cmd=/usr/bin/file
4991 case $host_cpu in
4992 ia64*)
4993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4994 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4995 ;;
4996 hppa*64*)
4997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4998 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4999 ;;
5000 *)
5001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5003 ;;
5004 esac
5005 ;;
5006
5007 interix[3-9]*)
5008 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5010 ;;
5011
5012 irix5* | irix6* | nonstopux*)
5013 case $LD in
5014 *-32|*"-32 ") libmagic=32-bit;;
5015 *-n32|*"-n32 ") libmagic=N32;;
5016 *-64|*"-64 ") libmagic=64-bit;;
5017 *) libmagic=never-match;;
5018 esac
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022 # This must be Linux ELF.
5023 linux* | k*bsd*-gnu)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 netbsd*)
5028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030 else
5031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5032 fi
5033 ;;
5034
5035 newos6*)
5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5037 lt_cv_file_magic_cmd=/usr/bin/file
5038 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5039 ;;
5040
5041 *nto* | *qnx*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 openbsd*)
5046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5048 else
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5050 fi
5051 ;;
5052
5053 osf3* | osf4* | osf5*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057 rdos*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 solaris*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
5069 sysv4 | sysv4.3*)
5070 case $host_vendor in
5071 motorola)
5072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5074 ;;
5075 ncr)
5076 lt_cv_deplibs_check_method=pass_all
5077 ;;
5078 sequent)
5079 lt_cv_file_magic_cmd='/bin/file'
5080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5081 ;;
5082 sni)
5083 lt_cv_file_magic_cmd='/bin/file'
5084 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5085 lt_cv_file_magic_test_file=/lib/libc.so
5086 ;;
5087 siemens)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090 pc)
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093 esac
5094 ;;
5095
5096 tpf*)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099 esac
5100
5101 fi
5102 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5103 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5104 file_magic_cmd=$lt_cv_file_magic_cmd
5105 deplibs_check_method=$lt_cv_deplibs_check_method
5106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 if test -n "$ac_tool_prefix"; then
5120 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5121 set dummy ${ac_tool_prefix}ar; ac_word=$2
5122 echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5124 if test "${ac_cv_prog_AR+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 if test -n "$AR"; then
5128 ac_cv_prog_AR="$AR" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_AR="${ac_tool_prefix}ar"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143
5144 fi
5145 fi
5146 AR=$ac_cv_prog_AR
5147 if test -n "$AR"; then
5148 echo "$as_me:$LINENO: result: $AR" >&5
5149 echo "${ECHO_T}$AR" >&6
5150 else
5151 echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6
5153 fi
5154
5155 fi
5156 if test -z "$ac_cv_prog_AR"; then
5157 ac_ct_AR=$AR
5158 # Extract the first word of "ar", so it can be a program name with args.
5159 set dummy ar; ac_word=$2
5160 echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 if test -n "$ac_ct_AR"; then
5166 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_AR="ar"
5176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181
5182 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5183 fi
5184 fi
5185 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5186 if test -n "$ac_ct_AR"; then
5187 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5188 echo "${ECHO_T}$ac_ct_AR" >&6
5189 else
5190 echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6
5192 fi
5193
5194 AR=$ac_ct_AR
5195 else
5196 AR="$ac_cv_prog_AR"
5197 fi
5198
5199 test -z "$AR" && AR=ar
5200 test -z "$AR_FLAGS" && AR_FLAGS=cru
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212 if test -n "$ac_tool_prefix"; then
5213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5214 set dummy ${ac_tool_prefix}strip; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_STRIP+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 if test -n "$STRIP"; then
5221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 break 2
5233 fi
5234 done
5235 done
5236
5237 fi
5238 fi
5239 STRIP=$ac_cv_prog_STRIP
5240 if test -n "$STRIP"; then
5241 echo "$as_me:$LINENO: result: $STRIP" >&5
5242 echo "${ECHO_T}$STRIP" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246 fi
5247
5248 fi
5249 if test -z "$ac_cv_prog_STRIP"; then
5250 ac_ct_STRIP=$STRIP
5251 # Extract the first word of "strip", so it can be a program name with args.
5252 set dummy strip; ac_word=$2
5253 echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5255 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258 if test -n "$ac_ct_STRIP"; then
5259 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_ac_ct_STRIP="strip"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274
5275 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5276 fi
5277 fi
5278 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5279 if test -n "$ac_ct_STRIP"; then
5280 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5281 echo "${ECHO_T}$ac_ct_STRIP" >&6
5282 else
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
5285 fi
5286
5287 STRIP=$ac_ct_STRIP
5288 else
5289 STRIP="$ac_cv_prog_STRIP"
5290 fi
5291
5292 test -z "$STRIP" && STRIP=:
5293
5294
5295
5296
5297
5298
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_RANLIB+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307 if test -n "$RANLIB"; then
5308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321 done
5322 done
5323
5324 fi
5325 fi
5326 RANLIB=$ac_cv_prog_RANLIB
5327 if test -n "$RANLIB"; then
5328 echo "$as_me:$LINENO: result: $RANLIB" >&5
5329 echo "${ECHO_T}$RANLIB" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335 fi
5336 if test -z "$ac_cv_prog_RANLIB"; then
5337 ac_ct_RANLIB=$RANLIB
5338 # Extract the first word of "ranlib", so it can be a program name with args.
5339 set dummy ranlib; ac_word=$2
5340 echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345 if test -n "$ac_ct_RANLIB"; then
5346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_RANLIB="ranlib"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361
5362 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5363 fi
5364 fi
5365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5366 if test -n "$ac_ct_RANLIB"; then
5367 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5368 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372 fi
5373
5374 RANLIB=$ac_ct_RANLIB
5375 else
5376 RANLIB="$ac_cv_prog_RANLIB"
5377 fi
5378
5379 test -z "$RANLIB" && RANLIB=:
5380
5381
5382
5383
5384
5385
5386 # Determine commands to create old-style static archives.
5387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5388 old_postinstall_cmds='chmod 644 $oldlib'
5389 old_postuninstall_cmds=
5390
5391 if test -n "$RANLIB"; then
5392 case $host_os in
5393 openbsd*)
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5395 ;;
5396 *)
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5398 ;;
5399 esac
5400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5401 fi
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 # If no C compiler was specified, use CC.
5437 LTCC=${LTCC-"$CC"}
5438
5439 # If no C compiler flags were specified, use CFLAGS.
5440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5441
5442 # Allow CC to be a program name with arguments.
5443 compiler=$CC
5444
5445
5446 # Check for command to grab the raw symbol name followed by C symbol from nm.
5447 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5448 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5449 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452
5453 # These are sane defaults that work on at least a few old systems.
5454 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5455
5456 # Character class describing NM global symbol codes.
5457 symcode='[BCDEGRST]'
5458
5459 # Regexp to match symbols that can be accessed directly from C.
5460 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5461
5462 # Define system-specific variables.
5463 case $host_os in
5464 aix*)
5465 symcode='[BCDT]'
5466 ;;
5467 cygwin* | mingw* | pw32*)
5468 symcode='[ABCDGISTW]'
5469 ;;
5470 hpux*)
5471 if test "$host_cpu" = ia64; then
5472 symcode='[ABCDEGRST]'
5473 fi
5474 ;;
5475 irix* | nonstopux*)
5476 symcode='[BCDEGRST]'
5477 ;;
5478 osf*)
5479 symcode='[BCDEGQRST]'
5480 ;;
5481 solaris*)
5482 symcode='[BDRT]'
5483 ;;
5484 sco3.2v5*)
5485 symcode='[DT]'
5486 ;;
5487 sysv4.2uw2*)
5488 symcode='[DT]'
5489 ;;
5490 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491 symcode='[ABDT]'
5492 ;;
5493 sysv4)
5494 symcode='[DFNSTU]'
5495 ;;
5496 esac
5497
5498 # If we're using GNU nm, then use its standard symbol codes.
5499 case `$NM -V 2>&1` in
5500 *GNU* | *'with BFD'*)
5501 symcode='[ABCDGIRSTW]' ;;
5502 esac
5503
5504 # Transform an extracted symbol line into a proper C declaration.
5505 # Some systems (esp. on ia64) link data and code symbols differently,
5506 # so use this general approach.
5507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5508
5509 # Transform an extracted symbol line into symbol name and symbol address
5510 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5511
5512 # Handle CRLF in mingw tool chain
5513 opt_cr=
5514 case $build_os in
5515 mingw*)
5516 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5517 ;;
5518 esac
5519
5520 # Try without a prefix underscore, then with it.
5521 for ac_symprfx in "" "_"; do
5522
5523 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5524 symxfrm="\\1 $ac_symprfx\\2 \\2"
5525
5526 # Write the raw and C identifiers.
5527 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5528 # Fake it for dumpbin and say T for any non-static function
5529 # and D for any global variable.
5530 # Also find C++ and __fastcall symbols from MSVC++,
5531 # which start with @ or ?.
5532 lt_cv_sys_global_symbol_pipe="$AWK '"\
5533 " {last_section=section; section=\$ 3};"\
5534 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5535 " \$ 0!~/External *\|/{next};"\
5536 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5537 " {if(hide[section]) next};"\
5538 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5539 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5540 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5541 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5542 " ' prfx=^$ac_symprfx"
5543 else
5544 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5545 fi
5546
5547 # Check to see that the pipe works correctly.
5548 pipe_works=no
5549
5550 rm -f conftest*
5551 cat > conftest.$ac_ext <<_LT_EOF
5552 #ifdef __cplusplus
5553 extern "C" {
5554 #endif
5555 char nm_test_var;
5556 void nm_test_func(void);
5557 void nm_test_func(void){}
5558 #ifdef __cplusplus
5559 }
5560 #endif
5561 int main(){nm_test_var='a';nm_test_func();return(0);}
5562 _LT_EOF
5563
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; then
5569 # Now try to grab the symbols.
5570 nlist=conftest.nm
5571 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5572 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && test -s "$nlist"; then
5576 # Try sorting and uniquifying the output.
5577 if sort "$nlist" | uniq > "$nlist"T; then
5578 mv -f "$nlist"T "$nlist"
5579 else
5580 rm -f "$nlist"T
5581 fi
5582
5583 # Make sure that we snagged all the symbols we need.
5584 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5585 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5586 cat <<_LT_EOF > conftest.$ac_ext
5587 #ifdef __cplusplus
5588 extern "C" {
5589 #endif
5590
5591 _LT_EOF
5592 # Now generate the symbol file.
5593 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5594
5595 cat <<_LT_EOF >> conftest.$ac_ext
5596
5597 /* The mapping between symbol names and symbols. */
5598 const struct {
5599 const char *name;
5600 void *address;
5601 }
5602 lt__PROGRAM__LTX_preloaded_symbols[] =
5603 {
5604 { "@PROGRAM@", (void *) 0 },
5605 _LT_EOF
5606 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5607 cat <<\_LT_EOF >> conftest.$ac_ext
5608 {0, (void *) 0}
5609 };
5610
5611 /* This works around a problem in FreeBSD linker */
5612 #ifdef FREEBSD_WORKAROUND
5613 static const void *lt_preloaded_setup() {
5614 return lt__PROGRAM__LTX_preloaded_symbols;
5615 }
5616 #endif
5617
5618 #ifdef __cplusplus
5619 }
5620 #endif
5621 _LT_EOF
5622 # Now try linking the two files.
5623 mv conftest.$ac_objext conftstm.$ac_objext
5624 lt_save_LIBS="$LIBS"
5625 lt_save_CFLAGS="$CFLAGS"
5626 LIBS="conftstm.$ac_objext"
5627 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5633 pipe_works=yes
5634 fi
5635 LIBS="$lt_save_LIBS"
5636 CFLAGS="$lt_save_CFLAGS"
5637 else
5638 echo "cannot find nm_test_func in $nlist" >&5
5639 fi
5640 else
5641 echo "cannot find nm_test_var in $nlist" >&5
5642 fi
5643 else
5644 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5645 fi
5646 else
5647 echo "$progname: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 fi
5650 rm -f conftest* conftst*
5651
5652 # Do not use the global_symbol_pipe unless it works.
5653 if test "$pipe_works" = yes; then
5654 break
5655 else
5656 lt_cv_sys_global_symbol_pipe=
5657 fi
5658 done
5659
5660 fi
5661
5662 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5663 lt_cv_sys_global_symbol_to_cdecl=
5664 fi
5665 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5666 echo "$as_me:$LINENO: result: failed" >&5
5667 echo "${ECHO_T}failed" >&6
5668 else
5669 echo "$as_me:$LINENO: result: ok" >&5
5670 echo "${ECHO_T}ok" >&6
5671 fi
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5690 if test "${enable_libtool_lock+set}" = set; then
5691 enableval="$enable_libtool_lock"
5692
5693 fi;
5694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5695
5696 # Some flags need to be propagated to the compiler or linker for good
5697 # libtool support.
5698 case $host in
5699 ia64-*-hpux*)
5700 # Find out which ABI we are using.
5701 echo 'int i;' > conftest.$ac_ext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; then
5707 case `/usr/bin/file conftest.$ac_objext` in
5708 *ELF-32*)
5709 HPUX_IA64_MODE="32"
5710 ;;
5711 *ELF-64*)
5712 HPUX_IA64_MODE="64"
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718 *-*-irix6*)
5719 # Find out which ABI we are using.
5720 echo '#line 5720 "configure"' > conftest.$ac_ext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; then
5726 if test "$lt_cv_prog_gnu_ld" = yes; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5728 *32-bit*)
5729 LD="${LD-ld} -melf32bsmip"
5730 ;;
5731 *N32*)
5732 LD="${LD-ld} -melf32bmipn32"
5733 ;;
5734 *64-bit*)
5735 LD="${LD-ld} -melf64bmip"
5736 ;;
5737 esac
5738 else
5739 case `/usr/bin/file conftest.$ac_objext` in
5740 *32-bit*)
5741 LD="${LD-ld} -32"
5742 ;;
5743 *N32*)
5744 LD="${LD-ld} -n32"
5745 ;;
5746 *64-bit*)
5747 LD="${LD-ld} -64"
5748 ;;
5749 esac
5750 fi
5751 fi
5752 rm -rf conftest*
5753 ;;
5754
5755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5756 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5757 # Find out which ABI we are using.
5758 echo 'int i;' > conftest.$ac_ext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; then
5764 case `/usr/bin/file conftest.o` in
5765 *32-bit*)
5766 case $host in
5767 x86_64-*kfreebsd*-gnu)
5768 LD="${LD-ld} -m elf_i386_fbsd"
5769 ;;
5770 x86_64-*linux*)
5771 LD="${LD-ld} -m elf_i386"
5772 ;;
5773 ppc64-*linux*|powerpc64-*linux*)
5774 LD="${LD-ld} -m elf32ppclinux"
5775 ;;
5776 s390x-*linux*)
5777 LD="${LD-ld} -m elf_s390"
5778 ;;
5779 sparc64-*linux*)
5780 LD="${LD-ld} -m elf32_sparc"
5781 ;;
5782 esac
5783 ;;
5784 *64-bit*)
5785 case $host in
5786 x86_64-*kfreebsd*-gnu)
5787 LD="${LD-ld} -m elf_x86_64_fbsd"
5788 ;;
5789 x86_64-*linux*)
5790 LD="${LD-ld} -m elf_x86_64"
5791 ;;
5792 ppc*-*linux*|powerpc*-*linux*)
5793 LD="${LD-ld} -m elf64ppc"
5794 ;;
5795 s390*-*linux*|s390*-*tpf*)
5796 LD="${LD-ld} -m elf64_s390"
5797 ;;
5798 sparc*-*linux*)
5799 LD="${LD-ld} -m elf64_sparc"
5800 ;;
5801 esac
5802 ;;
5803 esac
5804 fi
5805 rm -rf conftest*
5806 ;;
5807
5808 *-*-sco3.2v5*)
5809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5810 SAVE_CFLAGS="$CFLAGS"
5811 CFLAGS="$CFLAGS -belf"
5812 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5813 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5814 if test "${lt_cv_cc_needs_belf+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829
5830 int
5831 main ()
5832 {
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext conftest$ac_exeext
5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5840 (eval $ac_link) 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } &&
5847 { ac_try='test -z "$ac_c_werror_flag"
5848 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 lt_cv_cc_needs_belf=yes
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 lt_cv_cc_needs_belf=no
5866 fi
5867 rm -f conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875 fi
5876 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5877 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5878 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5879 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5880 CFLAGS="$SAVE_CFLAGS"
5881 fi
5882 ;;
5883 sparc*-*solaris*)
5884 # Find out which ABI we are using.
5885 echo 'int i;' > conftest.$ac_ext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5887 (eval $ac_compile) 2>&5
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; then
5891 case `/usr/bin/file conftest.o` in
5892 *64-bit*)
5893 case $lt_cv_prog_gnu_ld in
5894 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5895 *) LD="${LD-ld} -64" ;;
5896 esac
5897 ;;
5898 esac
5899 fi
5900 rm -rf conftest*
5901 ;;
5902 esac
5903
5904 need_locks="$enable_libtool_lock"
5905
5906 ac_ext=c
5907 ac_cpp='$CPP $CPPFLAGS'
5908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5911 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5912 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5913 # On Suns, sometimes $CPP names a directory.
5914 if test -n "$CPP" && test -d "$CPP"; then
5915 CPP=
5916 fi
5917 if test -z "$CPP"; then
5918 if test "${ac_cv_prog_CPP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 # Double quotes because CPP needs to be expanded
5922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5923 do
5924 ac_preproc_ok=false
5925 for ac_c_preproc_warn_flag in '' yes
5926 do
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #ifdef __STDC__
5940 # include <limits.h>
5941 #else
5942 # include <assert.h>
5943 #endif
5944 Syntax error
5945 _ACEOF
5946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null; then
5954 if test -s conftest.err; then
5955 ac_cpp_err=$ac_c_preproc_warn_flag
5956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5957 else
5958 ac_cpp_err=
5959 fi
5960 else
5961 ac_cpp_err=yes
5962 fi
5963 if test -z "$ac_cpp_err"; then
5964 :
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 # Broken: fails on valid input.
5970 continue
5971 fi
5972 rm -f conftest.err conftest.$ac_ext
5973
5974 # OK, works on sane cases. Now check whether non-existent headers
5975 # can be detected and how.
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <ac_nonexistent.h>
5983 _ACEOF
5984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null; then
5992 if test -s conftest.err; then
5993 ac_cpp_err=$ac_c_preproc_warn_flag
5994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5995 else
5996 ac_cpp_err=
5997 fi
5998 else
5999 ac_cpp_err=yes
6000 fi
6001 if test -z "$ac_cpp_err"; then
6002 # Broken: success on invalid input.
6003 continue
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 # Passes both tests.
6009 ac_preproc_ok=:
6010 break
6011 fi
6012 rm -f conftest.err conftest.$ac_ext
6013
6014 done
6015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6016 rm -f conftest.err conftest.$ac_ext
6017 if $ac_preproc_ok; then
6018 break
6019 fi
6020
6021 done
6022 ac_cv_prog_CPP=$CPP
6023
6024 fi
6025 CPP=$ac_cv_prog_CPP
6026 else
6027 ac_cv_prog_CPP=$CPP
6028 fi
6029 echo "$as_me:$LINENO: result: $CPP" >&5
6030 echo "${ECHO_T}$CPP" >&6
6031 ac_preproc_ok=false
6032 for ac_c_preproc_warn_flag in '' yes
6033 do
6034 # Use a header file that comes with gcc, so configuring glibc
6035 # with a fresh cross-compiler works.
6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 # <limits.h> exists even on freestanding compilers.
6038 # On the NeXT, cc -E runs the code through the compiler's parser,
6039 # not just through cpp. "Syntax error" is here to catch this case.
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #ifdef __STDC__
6047 # include <limits.h>
6048 #else
6049 # include <assert.h>
6050 #endif
6051 Syntax error
6052 _ACEOF
6053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6055 ac_status=$?
6056 grep -v '^ *+' conftest.er1 >conftest.err
6057 rm -f conftest.er1
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } >/dev/null; then
6061 if test -s conftest.err; then
6062 ac_cpp_err=$ac_c_preproc_warn_flag
6063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6064 else
6065 ac_cpp_err=
6066 fi
6067 else
6068 ac_cpp_err=yes
6069 fi
6070 if test -z "$ac_cpp_err"; then
6071 :
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 # Broken: fails on valid input.
6077 continue
6078 fi
6079 rm -f conftest.err conftest.$ac_ext
6080
6081 # OK, works on sane cases. Now check whether non-existent headers
6082 # can be detected and how.
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <ac_nonexistent.h>
6090 _ACEOF
6091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } >/dev/null; then
6099 if test -s conftest.err; then
6100 ac_cpp_err=$ac_c_preproc_warn_flag
6101 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6102 else
6103 ac_cpp_err=
6104 fi
6105 else
6106 ac_cpp_err=yes
6107 fi
6108 if test -z "$ac_cpp_err"; then
6109 # Broken: success on invalid input.
6110 continue
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 # Passes both tests.
6116 ac_preproc_ok=:
6117 break
6118 fi
6119 rm -f conftest.err conftest.$ac_ext
6120
6121 done
6122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6123 rm -f conftest.err conftest.$ac_ext
6124 if $ac_preproc_ok; then
6125 :
6126 else
6127 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6128 See \`config.log' for more details." >&5
6129 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6130 See \`config.log' for more details." >&2;}
6131 { (exit 1); exit 1; }; }
6132 fi
6133
6134 ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140
6141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6143 if test "${ac_cv_header_stdc+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <stdlib.h>
6153 #include <stdarg.h>
6154 #include <string.h>
6155 #include <float.h>
6156
6157 int
6158 main ()
6159 {
6160
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_header_stdc=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ac_cv_header_stdc=no
6193 fi
6194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6195
6196 if test $ac_cv_header_stdc = yes; then
6197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <string.h>
6205
6206 _ACEOF
6207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208 $EGREP "memchr" >/dev/null 2>&1; then
6209 :
6210 else
6211 ac_cv_header_stdc=no
6212 fi
6213 rm -f conftest*
6214
6215 fi
6216
6217 if test $ac_cv_header_stdc = yes; then
6218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <stdlib.h>
6226
6227 _ACEOF
6228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6229 $EGREP "free" >/dev/null 2>&1; then
6230 :
6231 else
6232 ac_cv_header_stdc=no
6233 fi
6234 rm -f conftest*
6235
6236 fi
6237
6238 if test $ac_cv_header_stdc = yes; then
6239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6240 if test "$cross_compiling" = yes; then
6241 :
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <ctype.h>
6250 #if ((' ' & 0x0FF) == 0x020)
6251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6253 #else
6254 # define ISLOWER(c) \
6255 (('a' <= (c) && (c) <= 'i') \
6256 || ('j' <= (c) && (c) <= 'r') \
6257 || ('s' <= (c) && (c) <= 'z'))
6258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6259 #endif
6260
6261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6262 int
6263 main ()
6264 {
6265 int i;
6266 for (i = 0; i < 256; i++)
6267 if (XOR (islower (i), ISLOWER (i))
6268 || toupper (i) != TOUPPER (i))
6269 exit(2);
6270 exit (0);
6271 }
6272 _ACEOF
6273 rm -f conftest$ac_exeext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6275 (eval $ac_link) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 (eval $ac_try) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 :
6285 else
6286 echo "$as_me: program exited with status $ac_status" >&5
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290 ( exit $ac_status )
6291 ac_cv_header_stdc=no
6292 fi
6293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 fi
6296 fi
6297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6299 if test $ac_cv_header_stdc = yes; then
6300
6301 cat >>confdefs.h <<\_ACEOF
6302 #define STDC_HEADERS 1
6303 _ACEOF
6304
6305 fi
6306
6307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6318 inttypes.h stdint.h unistd.h
6319 do
6320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6321 echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6333
6334 #include <$ac_header>
6335 _ACEOF
6336 rm -f conftest.$ac_objext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6338 (eval $ac_compile) 2>conftest.er1
6339 ac_status=$?
6340 grep -v '^ *+' conftest.er1 >conftest.err
6341 rm -f conftest.er1
6342 cat conftest.err >&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } &&
6345 { ac_try='test -z "$ac_c_werror_flag"
6346 || test ! -s conftest.err'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 (eval $ac_try) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; } &&
6352 { ac_try='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 eval "$as_ac_Header=yes"
6359 else
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 eval "$as_ac_Header=no"
6364 fi
6365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6366 fi
6367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6372 _ACEOF
6373
6374 fi
6375
6376 done
6377
6378
6379
6380 for ac_header in dlfcn.h
6381 do
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 echo "$as_me:$LINENO: checking for $ac_header" >&5
6384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h. */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 $ac_includes_default
6395
6396 #include <$ac_header>
6397 _ACEOF
6398 rm -f conftest.$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 eval "$as_ac_Header=yes"
6421 else
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 eval "$as_ac_Header=no"
6426 fi
6427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 _ACEOF
6435
6436 fi
6437
6438 done
6439
6440
6441
6442 # This can be used to rebuild libtool when needed
6443 LIBTOOL_DEPS="$ltmain"
6444
6445 # Always use our own libtool.
6446 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 test -z "$LN_S" && LN_S="ln -s"
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "${ZSH_VERSION+set}" ; then
6488 setopt NO_GLOB_SUBST
6489 fi
6490
6491 echo "$as_me:$LINENO: checking for objdir" >&5
6492 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6493 if test "${lt_cv_objdir+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 rm -f .libs 2>/dev/null
6497 mkdir .libs 2>/dev/null
6498 if test -d .libs; then
6499 lt_cv_objdir=.libs
6500 else
6501 # MS-DOS does not allow filenames that begin with a dot.
6502 lt_cv_objdir=_libs
6503 fi
6504 rmdir .libs 2>/dev/null
6505 fi
6506 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6507 echo "${ECHO_T}$lt_cv_objdir" >&6
6508 objdir=$lt_cv_objdir
6509
6510
6511
6512
6513
6514 cat >>confdefs.h <<_ACEOF
6515 #define LT_OBJDIR "$lt_cv_objdir/"
6516 _ACEOF
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 case $host_os in
6535 aix3*)
6536 # AIX sometimes has problems with the GCC collect2 program. For some
6537 # reason, if we set the COLLECT_NAMES environment variable, the problems
6538 # vanish in a puff of smoke.
6539 if test "X${COLLECT_NAMES+set}" != Xset; then
6540 COLLECT_NAMES=
6541 export COLLECT_NAMES
6542 fi
6543 ;;
6544 esac
6545
6546 # Sed substitution that helps us do robust quoting. It backslashifies
6547 # metacharacters that are still active within double-quoted strings.
6548 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6549
6550 # Same as above, but do not quote variable references.
6551 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6552
6553 # Sed substitution to delay expansion of an escaped shell variable in a
6554 # double_quote_subst'ed string.
6555 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6556
6557 # Sed substitution to delay expansion of an escaped single quote.
6558 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6559
6560 # Sed substitution to avoid accidental globbing in evaled expressions
6561 no_glob_subst='s/\*/\\\*/g'
6562
6563 # Global variables:
6564 ofile=libtool
6565 can_build_shared=yes
6566
6567 # All known linkers require a `.a' archive for static linking (except MSVC,
6568 # which needs '.lib').
6569 libext=a
6570
6571 with_gnu_ld="$lt_cv_prog_gnu_ld"
6572
6573 old_CC="$CC"
6574 old_CFLAGS="$CFLAGS"
6575
6576 # Set sane defaults for various variables
6577 test -z "$CC" && CC=cc
6578 test -z "$LTCC" && LTCC=$CC
6579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6580 test -z "$LD" && LD=ld
6581 test -z "$ac_objext" && ac_objext=o
6582
6583 for cc_temp in $compiler""; do
6584 case $cc_temp in
6585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6587 \-*) ;;
6588 *) break;;
6589 esac
6590 done
6591 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6592
6593
6594 # Only perform the check for file, if the check method requires it
6595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6596 case $deplibs_check_method in
6597 file_magic*)
6598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6599 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6600 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 case $MAGIC_CMD in
6605 [\\/*] | ?:[\\/]*)
6606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6607 ;;
6608 *)
6609 lt_save_MAGIC_CMD="$MAGIC_CMD"
6610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6612 for ac_dir in $ac_dummy; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f $ac_dir/${ac_tool_prefix}file; then
6616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6617 if test -n "$file_magic_test_file"; then
6618 case $deplibs_check_method in
6619 "file_magic "*)
6620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6623 $EGREP "$file_magic_regex" > /dev/null; then
6624 :
6625 else
6626 cat <<_LT_EOF 1>&2
6627
6628 *** Warning: the command libtool uses to detect shared libraries,
6629 *** $file_magic_cmd, produces output that libtool cannot recognize.
6630 *** The result is that libtool may fail to recognize shared libraries
6631 *** as such. This will affect the creation of libtool libraries that
6632 *** depend on shared libraries, but programs linked with such libtool
6633 *** libraries will work regardless of this problem. Nevertheless, you
6634 *** may want to report the problem to your system manager and/or to
6635 *** bug-libtool@gnu.org
6636
6637 _LT_EOF
6638 fi ;;
6639 esac
6640 fi
6641 break
6642 fi
6643 done
6644 IFS="$lt_save_ifs"
6645 MAGIC_CMD="$lt_save_MAGIC_CMD"
6646 ;;
6647 esac
6648 fi
6649
6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if test -n "$MAGIC_CMD"; then
6652 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6653 echo "${ECHO_T}$MAGIC_CMD" >&6
6654 else
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6657 fi
6658
6659
6660
6661
6662
6663 if test -z "$lt_cv_path_MAGIC_CMD"; then
6664 if test -n "$ac_tool_prefix"; then
6665 echo "$as_me:$LINENO: checking for file" >&5
6666 echo $ECHO_N "checking for file... $ECHO_C" >&6
6667 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 case $MAGIC_CMD in
6671 [\\/*] | ?:[\\/]*)
6672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 lt_save_MAGIC_CMD="$MAGIC_CMD"
6676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6678 for ac_dir in $ac_dummy; do
6679 IFS="$lt_save_ifs"
6680 test -z "$ac_dir" && ac_dir=.
6681 if test -f $ac_dir/file; then
6682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6683 if test -n "$file_magic_test_file"; then
6684 case $deplibs_check_method in
6685 "file_magic "*)
6686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6689 $EGREP "$file_magic_regex" > /dev/null; then
6690 :
6691 else
6692 cat <<_LT_EOF 1>&2
6693
6694 *** Warning: the command libtool uses to detect shared libraries,
6695 *** $file_magic_cmd, produces output that libtool cannot recognize.
6696 *** The result is that libtool may fail to recognize shared libraries
6697 *** as such. This will affect the creation of libtool libraries that
6698 *** depend on shared libraries, but programs linked with such libtool
6699 *** libraries will work regardless of this problem. Nevertheless, you
6700 *** may want to report the problem to your system manager and/or to
6701 *** bug-libtool@gnu.org
6702
6703 _LT_EOF
6704 fi ;;
6705 esac
6706 fi
6707 break
6708 fi
6709 done
6710 IFS="$lt_save_ifs"
6711 MAGIC_CMD="$lt_save_MAGIC_CMD"
6712 ;;
6713 esac
6714 fi
6715
6716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6717 if test -n "$MAGIC_CMD"; then
6718 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6719 echo "${ECHO_T}$MAGIC_CMD" >&6
6720 else
6721 echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6
6723 fi
6724
6725
6726 else
6727 MAGIC_CMD=:
6728 fi
6729 fi
6730
6731 fi
6732 ;;
6733 esac
6734
6735 # Use C for the default configuration in the libtool script
6736
6737 lt_save_CC="$CC"
6738 ac_ext=c
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743
6744
6745 # Source file extension for C test sources.
6746 ac_ext=c
6747
6748 # Object file extension for compiled C test sources.
6749 objext=o
6750 objext=$objext
6751
6752 # Code to be used in simple compile tests
6753 lt_simple_compile_test_code="int some_variable = 0;"
6754
6755 # Code to be used in simple link tests
6756 lt_simple_link_test_code='int main(){return(0);}'
6757
6758
6759
6760
6761
6762
6763
6764 # If no C compiler was specified, use CC.
6765 LTCC=${LTCC-"$CC"}
6766
6767 # If no C compiler flags were specified, use CFLAGS.
6768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6769
6770 # Allow CC to be a program name with arguments.
6771 compiler=$CC
6772
6773 # Save the default compiler, since it gets overwritten when the other
6774 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6775 compiler_DEFAULT=$CC
6776
6777 # save warnings/boilerplate of simple test code
6778 ac_outfile=conftest.$ac_objext
6779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6781 _lt_compiler_boilerplate=`cat conftest.err`
6782 $RM conftest*
6783
6784 ac_outfile=conftest.$ac_objext
6785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787 _lt_linker_boilerplate=`cat conftest.err`
6788 $RM conftest*
6789
6790
6791 ## CAVEAT EMPTOR:
6792 ## There is no encapsulation within the following macros, do not change
6793 ## the running order or otherwise move them around unless you know exactly
6794 ## what you are doing...
6795 if test -n "$compiler"; then
6796
6797 lt_prog_compiler_no_builtin_flag=
6798
6799 if test "$GCC" = yes; then
6800 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6801
6802 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6803 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6804 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 lt_cv_prog_compiler_rtti_exceptions=no
6808 ac_outfile=conftest.$ac_objext
6809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6810 lt_compiler_flag="-fno-rtti -fno-exceptions"
6811 # Insert the option either (1) after the last *FLAGS variable, or
6812 # (2) before a word containing "conftest.", or (3) at the end.
6813 # Note that $ac_compile itself does not contain backslashes and begins
6814 # with a dollar sign (not a hyphen), so the echo should work correctly.
6815 # The option is referenced via a variable to avoid confusing sed.
6816 lt_compile=`echo "$ac_compile" | $SED \
6817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6819 -e 's:$: $lt_compiler_flag:'`
6820 (eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
6821 (eval "$lt_compile" 2>conftest.err)
6822 ac_status=$?
6823 cat conftest.err >&5
6824 echo "$as_me:6824: \$? = $ac_status" >&5
6825 if (exit $ac_status) && test -s "$ac_outfile"; then
6826 # The compiler can only warn and ignore the option if not recognized
6827 # So say no if there are warnings other than the usual output.
6828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6831 lt_cv_prog_compiler_rtti_exceptions=yes
6832 fi
6833 fi
6834 $RM conftest*
6835
6836 fi
6837 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6838 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6839
6840 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6842 else
6843 :
6844 fi
6845
6846 fi
6847
6848
6849
6850
6851
6852
6853 lt_prog_compiler_wl=
6854 lt_prog_compiler_pic=
6855 lt_prog_compiler_static=
6856
6857 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6858 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6859
6860 if test "$GCC" = yes; then
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_static='-static'
6863
6864 case $host_os in
6865 aix*)
6866 # All AIX code is PIC.
6867 if test "$host_cpu" = ia64; then
6868 # AIX 5 now supports IA64 processor
6869 lt_prog_compiler_static='-Bstatic'
6870 fi
6871 ;;
6872
6873 amigaos*)
6874 if test "$host_cpu" = m68k; then
6875 # FIXME: we need at least 68020 code to build shared libraries, but
6876 # adding the `-m68020' flag to GCC prevents building anything better,
6877 # like `-m68040'.
6878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6879 fi
6880 ;;
6881
6882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6883 # PIC is the default for these OSes.
6884 ;;
6885
6886 mingw* | cygwin* | pw32* | os2*)
6887 # This hack is so that the source file can tell whether it is being
6888 # built for inclusion in a dll (and should export symbols for example).
6889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6890 # (--disable-auto-import) libraries
6891 lt_prog_compiler_pic='-DDLL_EXPORT'
6892 ;;
6893
6894 darwin* | rhapsody*)
6895 # PIC is the default on this platform
6896 # Common symbols not allowed in MH_DYLIB files
6897 lt_prog_compiler_pic='-fno-common'
6898 ;;
6899
6900 hpux*)
6901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6902 # not for PA HP-UX.
6903 case $host_cpu in
6904 hppa*64*|ia64*)
6905 # +Z the default
6906 ;;
6907 *)
6908 lt_prog_compiler_pic='-fPIC'
6909 ;;
6910 esac
6911 ;;
6912
6913 interix[3-9]*)
6914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6915 # Instead, we relocate shared libraries at runtime.
6916 ;;
6917
6918 msdosdjgpp*)
6919 # Just because we use GCC doesn't mean we suddenly get shared libraries
6920 # on systems that don't support them.
6921 lt_prog_compiler_can_build_shared=no
6922 enable_shared=no
6923 ;;
6924
6925 *nto* | *qnx*)
6926 # QNX uses GNU C++, but need to define -shared option too, otherwise
6927 # it will coredump.
6928 lt_prog_compiler_pic='-fPIC -shared'
6929 ;;
6930
6931 sysv4*MP*)
6932 if test -d /usr/nec; then
6933 lt_prog_compiler_pic=-Kconform_pic
6934 fi
6935 ;;
6936
6937 *)
6938 lt_prog_compiler_pic='-fPIC'
6939 ;;
6940 esac
6941 else
6942 # PORTME Check for flag to pass linker flags through the system compiler.
6943 case $host_os in
6944 aix*)
6945 lt_prog_compiler_wl='-Wl,'
6946 if test "$host_cpu" = ia64; then
6947 # AIX 5 now supports IA64 processor
6948 lt_prog_compiler_static='-Bstatic'
6949 else
6950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6951 fi
6952 ;;
6953 darwin*)
6954 # PIC is the default on this platform
6955 # Common symbols not allowed in MH_DYLIB files
6956 case $cc_basename in
6957 xlc*)
6958 lt_prog_compiler_pic='-qnocommon'
6959 lt_prog_compiler_wl='-Wl,'
6960 ;;
6961 esac
6962 ;;
6963
6964 mingw* | cygwin* | pw32* | os2*)
6965 # This hack is so that the source file can tell whether it is being
6966 # built for inclusion in a dll (and should export symbols for example).
6967 lt_prog_compiler_pic='-DDLL_EXPORT'
6968 ;;
6969
6970 hpux9* | hpux10* | hpux11*)
6971 lt_prog_compiler_wl='-Wl,'
6972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6973 # not for PA HP-UX.
6974 case $host_cpu in
6975 hppa*64*|ia64*)
6976 # +Z the default
6977 ;;
6978 *)
6979 lt_prog_compiler_pic='+Z'
6980 ;;
6981 esac
6982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6983 lt_prog_compiler_static='${wl}-a ${wl}archive'
6984 ;;
6985
6986 irix5* | irix6* | nonstopux*)
6987 lt_prog_compiler_wl='-Wl,'
6988 # PIC (with -KPIC) is the default.
6989 lt_prog_compiler_static='-non_shared'
6990 ;;
6991
6992 linux* | k*bsd*-gnu)
6993 case $cc_basename in
6994 icc* | ecc*)
6995 lt_prog_compiler_wl='-Wl,'
6996 lt_prog_compiler_pic='-KPIC'
6997 lt_prog_compiler_static='-static'
6998 ;;
6999 pgcc* | pgf77* | pgf90* | pgf95*)
7000 # Portland Group compilers (*not* the Pentium gcc compiler,
7001 # which looks to be a dead project)
7002 lt_prog_compiler_wl='-Wl,'
7003 lt_prog_compiler_pic='-fpic'
7004 lt_prog_compiler_static='-Bstatic'
7005 ;;
7006 ccc*)
7007 lt_prog_compiler_wl='-Wl,'
7008 # All Alpha code is PIC.
7009 lt_prog_compiler_static='-non_shared'
7010 ;;
7011 *)
7012 case `$CC -V 2>&1 | sed 5q` in
7013 *Sun\ C*)
7014 # Sun C 5.9
7015 lt_prog_compiler_pic='-KPIC'
7016 lt_prog_compiler_static='-Bstatic'
7017 lt_prog_compiler_wl='-Wl,'
7018 ;;
7019 *Sun\ F*)
7020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-Bstatic'
7023 lt_prog_compiler_wl=''
7024 ;;
7025 esac
7026 ;;
7027 esac
7028 ;;
7029
7030 newsos6)
7031 lt_prog_compiler_pic='-KPIC'
7032 lt_prog_compiler_static='-Bstatic'
7033 ;;
7034
7035 *nto* | *qnx*)
7036 # QNX uses GNU C++, but need to define -shared option too, otherwise
7037 # it will coredump.
7038 lt_prog_compiler_pic='-fPIC -shared'
7039 ;;
7040
7041 osf3* | osf4* | osf5*)
7042 lt_prog_compiler_wl='-Wl,'
7043 # All OSF/1 code is PIC.
7044 lt_prog_compiler_static='-non_shared'
7045 ;;
7046
7047 rdos*)
7048 lt_prog_compiler_static='-non_shared'
7049 ;;
7050
7051 solaris*)
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 case $cc_basename in
7055 f77* | f90* | f95*)
7056 lt_prog_compiler_wl='-Qoption ld ';;
7057 *)
7058 lt_prog_compiler_wl='-Wl,';;
7059 esac
7060 ;;
7061
7062 sunos4*)
7063 lt_prog_compiler_wl='-Qoption ld '
7064 lt_prog_compiler_pic='-PIC'
7065 lt_prog_compiler_static='-Bstatic'
7066 ;;
7067
7068 sysv4 | sysv4.2uw2* | sysv4.3*)
7069 lt_prog_compiler_wl='-Wl,'
7070 lt_prog_compiler_pic='-KPIC'
7071 lt_prog_compiler_static='-Bstatic'
7072 ;;
7073
7074 sysv4*MP*)
7075 if test -d /usr/nec ;then
7076 lt_prog_compiler_pic='-Kconform_pic'
7077 lt_prog_compiler_static='-Bstatic'
7078 fi
7079 ;;
7080
7081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7082 lt_prog_compiler_wl='-Wl,'
7083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
7085 ;;
7086
7087 unicos*)
7088 lt_prog_compiler_wl='-Wl,'
7089 lt_prog_compiler_can_build_shared=no
7090 ;;
7091
7092 uts4*)
7093 lt_prog_compiler_pic='-pic'
7094 lt_prog_compiler_static='-Bstatic'
7095 ;;
7096
7097 *)
7098 lt_prog_compiler_can_build_shared=no
7099 ;;
7100 esac
7101 fi
7102
7103 case $host_os in
7104 # For platforms which do not support PIC, -DPIC is meaningless:
7105 *djgpp*)
7106 lt_prog_compiler_pic=
7107 ;;
7108 *)
7109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7110 ;;
7111 esac
7112 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7113 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7114
7115
7116
7117
7118
7119
7120 #
7121 # Check to make sure the PIC flag actually works.
7122 #
7123 if test -n "$lt_prog_compiler_pic"; then
7124 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7125 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7126 if test "${lt_prog_compiler_pic_works+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 lt_prog_compiler_pic_works=no
7130 ac_outfile=conftest.$ac_objext
7131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7132 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7133 # Insert the option either (1) after the last *FLAGS variable, or
7134 # (2) before a word containing "conftest.", or (3) at the end.
7135 # Note that $ac_compile itself does not contain backslashes and begins
7136 # with a dollar sign (not a hyphen), so the echo should work correctly.
7137 # The option is referenced via a variable to avoid confusing sed.
7138 lt_compile=`echo "$ac_compile" | $SED \
7139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141 -e 's:$: $lt_compiler_flag:'`
7142 (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
7143 (eval "$lt_compile" 2>conftest.err)
7144 ac_status=$?
7145 cat conftest.err >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 if (exit $ac_status) && test -s "$ac_outfile"; then
7148 # The compiler can only warn and ignore the option if not recognized
7149 # So say no if there are warnings other than the usual output.
7150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7151 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7152 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7153 lt_prog_compiler_pic_works=yes
7154 fi
7155 fi
7156 $RM conftest*
7157
7158 fi
7159 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7160 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7161
7162 if test x"$lt_prog_compiler_pic_works" = xyes; then
7163 case $lt_prog_compiler_pic in
7164 "" | " "*) ;;
7165 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7166 esac
7167 else
7168 lt_prog_compiler_pic=
7169 lt_prog_compiler_can_build_shared=no
7170 fi
7171
7172 fi
7173
7174
7175
7176
7177
7178
7179 #
7180 # Check to make sure the static flag actually works.
7181 #
7182 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7183 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7184 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7185 if test "${lt_prog_compiler_static_works+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 lt_prog_compiler_static_works=no
7189 save_LDFLAGS="$LDFLAGS"
7190 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7193 # The linker can only warn and ignore the option if not recognized
7194 # So say no if there are warnings
7195 if test -s conftest.err; then
7196 # Append any errors to the config.log.
7197 cat conftest.err 1>&5
7198 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7200 if diff conftest.exp conftest.er2 >/dev/null; then
7201 lt_prog_compiler_static_works=yes
7202 fi
7203 else
7204 lt_prog_compiler_static_works=yes
7205 fi
7206 fi
7207 $RM conftest*
7208 LDFLAGS="$save_LDFLAGS"
7209
7210 fi
7211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7213
7214 if test x"$lt_prog_compiler_static_works" = xyes; then
7215 :
7216 else
7217 lt_prog_compiler_static=
7218 fi
7219
7220
7221
7222
7223
7224
7225
7226 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7228 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 lt_cv_prog_compiler_c_o=no
7232 $RM -r conftest 2>/dev/null
7233 mkdir conftest
7234 cd conftest
7235 mkdir out
7236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7237
7238 lt_compiler_flag="-o out/conftest2.$ac_objext"
7239 # Insert the option either (1) after the last *FLAGS variable, or
7240 # (2) before a word containing "conftest.", or (3) at the end.
7241 # Note that $ac_compile itself does not contain backslashes and begins
7242 # with a dollar sign (not a hyphen), so the echo should work correctly.
7243 lt_compile=`echo "$ac_compile" | $SED \
7244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7246 -e 's:$: $lt_compiler_flag:'`
7247 (eval echo "\"\$as_me:7247: $lt_compile\"" >&5)
7248 (eval "$lt_compile" 2>out/conftest.err)
7249 ac_status=$?
7250 cat out/conftest.err >&5
7251 echo "$as_me:7251: \$? = $ac_status" >&5
7252 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7253 then
7254 # The compiler can only warn and ignore the option if not recognized
7255 # So say no if there are warnings
7256 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7259 lt_cv_prog_compiler_c_o=yes
7260 fi
7261 fi
7262 chmod u+w . 2>&5
7263 $RM conftest*
7264 # SGI C++ compiler will create directory out/ii_files/ for
7265 # template instantiation
7266 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7267 $RM out/* && rmdir out
7268 cd ..
7269 $RM -r conftest
7270 $RM conftest*
7271
7272 fi
7273 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7274 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7275
7276
7277
7278
7279
7280
7281 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7283 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 lt_cv_prog_compiler_c_o=no
7287 $RM -r conftest 2>/dev/null
7288 mkdir conftest
7289 cd conftest
7290 mkdir out
7291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7292
7293 lt_compiler_flag="-o out/conftest2.$ac_objext"
7294 # Insert the option either (1) after the last *FLAGS variable, or
7295 # (2) before a word containing "conftest.", or (3) at the end.
7296 # Note that $ac_compile itself does not contain backslashes and begins
7297 # with a dollar sign (not a hyphen), so the echo should work correctly.
7298 lt_compile=`echo "$ac_compile" | $SED \
7299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7301 -e 's:$: $lt_compiler_flag:'`
7302 (eval echo "\"\$as_me:7302: $lt_compile\"" >&5)
7303 (eval "$lt_compile" 2>out/conftest.err)
7304 ac_status=$?
7305 cat out/conftest.err >&5
7306 echo "$as_me:7306: \$? = $ac_status" >&5
7307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7308 then
7309 # The compiler can only warn and ignore the option if not recognized
7310 # So say no if there are warnings
7311 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7314 lt_cv_prog_compiler_c_o=yes
7315 fi
7316 fi
7317 chmod u+w . 2>&5
7318 $RM conftest*
7319 # SGI C++ compiler will create directory out/ii_files/ for
7320 # template instantiation
7321 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7322 $RM out/* && rmdir out
7323 cd ..
7324 $RM -r conftest
7325 $RM conftest*
7326
7327 fi
7328 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7329 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7330
7331
7332
7333
7334 hard_links="nottested"
7335 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7336 # do not overwrite the value of need_locks provided by the user
7337 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7338 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7339 hard_links=yes
7340 $RM conftest*
7341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7342 touch conftest.a
7343 ln conftest.a conftest.b 2>&5 || hard_links=no
7344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7345 echo "$as_me:$LINENO: result: $hard_links" >&5
7346 echo "${ECHO_T}$hard_links" >&6
7347 if test "$hard_links" = no; then
7348 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7349 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7350 need_locks=warn
7351 fi
7352 else
7353 need_locks=no
7354 fi
7355
7356
7357
7358
7359
7360
7361 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7362 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7363
7364 runpath_var=
7365 allow_undefined_flag=
7366 always_export_symbols=no
7367 archive_cmds=
7368 archive_expsym_cmds=
7369 compiler_needs_object=no
7370 enable_shared_with_static_runtimes=no
7371 export_dynamic_flag_spec=
7372 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7373 hardcode_automatic=no
7374 hardcode_direct=no
7375 hardcode_direct_absolute=no
7376 hardcode_libdir_flag_spec=
7377 hardcode_libdir_flag_spec_ld=
7378 hardcode_libdir_separator=
7379 hardcode_minus_L=no
7380 hardcode_shlibpath_var=unsupported
7381 inherit_rpath=no
7382 link_all_deplibs=unknown
7383 module_cmds=
7384 module_expsym_cmds=
7385 old_archive_from_new_cmds=
7386 old_archive_from_expsyms_cmds=
7387 thread_safe_flag_spec=
7388 whole_archive_flag_spec=
7389 # include_expsyms should be a list of space-separated symbols to be *always*
7390 # included in the symbol list
7391 include_expsyms=
7392 # exclude_expsyms can be an extended regexp of symbols to exclude
7393 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7394 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7395 # as well as any symbol that contains `d'.
7396 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7397 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7398 # platforms (ab)use it in PIC code, but their linkers get confused if
7399 # the symbol is explicitly referenced. Since portable code cannot
7400 # rely on this symbol name, it's probably fine to never include it in
7401 # preloaded symbol tables.
7402 extract_expsyms_cmds=
7403
7404 case $host_os in
7405 cygwin* | mingw* | pw32*)
7406 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7407 # When not using gcc, we currently assume that we are using
7408 # Microsoft Visual C++.
7409 if test "$GCC" != yes; then
7410 with_gnu_ld=no
7411 fi
7412 ;;
7413 interix*)
7414 # we just hope/assume this is gcc and not c89 (= MSVC++)
7415 with_gnu_ld=yes
7416 ;;
7417 openbsd*)
7418 with_gnu_ld=no
7419 ;;
7420 esac
7421
7422 ld_shlibs=yes
7423 if test "$with_gnu_ld" = yes; then
7424 # If archive_cmds runs LD, not CC, wlarc should be empty
7425 wlarc='${wl}'
7426
7427 # Set some defaults for GNU ld with shared library support. These
7428 # are reset later if shared libraries are not supported. Putting them
7429 # here allows them to be overridden if necessary.
7430 runpath_var=LD_RUN_PATH
7431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7432 export_dynamic_flag_spec='${wl}--export-dynamic'
7433 # ancient GNU ld didn't support --whole-archive et. al.
7434 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7435 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7436 else
7437 whole_archive_flag_spec=
7438 fi
7439 supports_anon_versioning=no
7440 case `$LD -v 2>&1` in
7441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7444 *\ 2.11.*) ;; # other 2.11 versions
7445 *) supports_anon_versioning=yes ;;
7446 esac
7447
7448 # See if GNU ld supports shared libraries.
7449 case $host_os in
7450 aix3* | aix4* | aix5*)
7451 # On AIX/PPC, the GNU linker is very broken
7452 if test "$host_cpu" != ia64; then
7453 ld_shlibs=no
7454 cat <<_LT_EOF 1>&2
7455
7456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7457 *** to be unable to reliably create shared libraries on AIX.
7458 *** Therefore, libtool is disabling shared libraries support. If you
7459 *** really care for shared libraries, you may want to modify your PATH
7460 *** so that a non-GNU linker is found, and then restart.
7461
7462 _LT_EOF
7463 fi
7464 ;;
7465
7466 amigaos*)
7467 if test "$host_cpu" = m68k; then
7468 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7469 hardcode_libdir_flag_spec='-L$libdir'
7470 hardcode_minus_L=yes
7471 fi
7472
7473 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7474 # that the semantics of dynamic libraries on AmigaOS, at least up
7475 # to version 4, is to share data among multiple programs linked
7476 # with the same dynamic library. Since this doesn't match the
7477 # behavior of shared libraries on other platforms, we can't use
7478 # them.
7479 ld_shlibs=no
7480 ;;
7481
7482 beos*)
7483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7484 allow_undefined_flag=unsupported
7485 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7486 # support --undefined. This deserves some investigation. FIXME
7487 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 else
7489 ld_shlibs=no
7490 fi
7491 ;;
7492
7493 cygwin* | mingw* | pw32*)
7494 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7495 # as there is no search path for DLLs.
7496 hardcode_libdir_flag_spec='-L$libdir'
7497 allow_undefined_flag=unsupported
7498 always_export_symbols=no
7499 enable_shared_with_static_runtimes=yes
7500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7501
7502 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7504 # If the export-symbols file already is a .def file (1st line
7505 # is EXPORTS), use it as is; otherwise, prepend...
7506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7507 cp $export_symbols $output_objdir/$soname.def;
7508 else
7509 echo EXPORTS > $output_objdir/$soname.def;
7510 cat $export_symbols >> $output_objdir/$soname.def;
7511 fi~
7512 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7513 else
7514 ld_shlibs=no
7515 fi
7516 ;;
7517
7518 interix[3-9]*)
7519 hardcode_direct=no
7520 hardcode_shlibpath_var=no
7521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7522 export_dynamic_flag_spec='${wl}-E'
7523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7524 # Instead, shared libraries are loaded at an image base (0x10000000 by
7525 # default) and relocated if they conflict, which is a slow very memory
7526 # consuming and fragmenting process. To avoid this, we pick a random,
7527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7528 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7530 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7531 ;;
7532
7533 gnu* | linux* | tpf* | k*bsd*-gnu)
7534 tmp_diet=no
7535 if test "$host_os" = linux-dietlibc; then
7536 case $cc_basename in
7537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7538 esac
7539 fi
7540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7541 && test "$tmp_diet" = no
7542 then
7543 tmp_addflag=
7544 case $cc_basename,$host_cpu in
7545 pgcc*) # Portland Group C compiler
7546 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7547 tmp_addflag=' $pic_flag'
7548 ;;
7549 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7550 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7551 tmp_addflag=' $pic_flag -Mnomain' ;;
7552 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7553 tmp_addflag=' -i_dynamic' ;;
7554 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7555 tmp_addflag=' -i_dynamic -nofor_main' ;;
7556 ifc* | ifort*) # Intel Fortran compiler
7557 tmp_addflag=' -nofor_main' ;;
7558 esac
7559 case `$CC -V 2>&1 | sed 5q` in
7560 *Sun\ C*) # Sun C 5.9
7561 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7562 compiler_needs_object=yes
7563 tmp_sharedflag='-G' ;;
7564 *Sun\ F*) # Sun Fortran 8.3
7565 tmp_sharedflag='-G' ;;
7566 *)
7567 tmp_sharedflag='-shared' ;;
7568 esac
7569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7570
7571 if test "x$supports_anon_versioning" = xyes; then
7572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7574 echo "local: *; };" >> $output_objdir/$libname.ver~
7575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7576 fi
7577 else
7578 ld_shlibs=no
7579 fi
7580 ;;
7581
7582 netbsd*)
7583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7585 wlarc=
7586 else
7587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7589 fi
7590 ;;
7591
7592 solaris*)
7593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7594 ld_shlibs=no
7595 cat <<_LT_EOF 1>&2
7596
7597 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7598 *** create shared libraries on Solaris systems. Therefore, libtool
7599 *** is disabling shared libraries support. We urge you to upgrade GNU
7600 *** binutils to release 2.9.1 or newer. Another option is to modify
7601 *** your PATH or compiler configuration so that the native linker is
7602 *** used, and then restart.
7603
7604 _LT_EOF
7605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7608 else
7609 ld_shlibs=no
7610 fi
7611 ;;
7612
7613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7614 case `$LD -v 2>&1` in
7615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7616 ld_shlibs=no
7617 cat <<_LT_EOF 1>&2
7618
7619 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7620 *** reliably create shared libraries on SCO systems. Therefore, libtool
7621 *** is disabling shared libraries support. We urge you to upgrade GNU
7622 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7623 *** your PATH or compiler configuration so that the native linker is
7624 *** used, and then restart.
7625
7626 _LT_EOF
7627 ;;
7628 *)
7629 # For security reasons, it is highly recommended that you always
7630 # use absolute paths for naming shared libraries, and exclude the
7631 # DT_RUNPATH tag from executables and libraries. But doing so
7632 # requires that you compile everything twice, which is a pain.
7633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641 esac
7642 ;;
7643
7644 sunos4*)
7645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7646 wlarc=
7647 hardcode_direct=yes
7648 hardcode_shlibpath_var=no
7649 ;;
7650
7651 *)
7652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7655 else
7656 ld_shlibs=no
7657 fi
7658 ;;
7659 esac
7660
7661 if test "$ld_shlibs" = no; then
7662 runpath_var=
7663 hardcode_libdir_flag_spec=
7664 export_dynamic_flag_spec=
7665 whole_archive_flag_spec=
7666 fi
7667 else
7668 # PORTME fill in a description of your system's linker (not GNU ld)
7669 case $host_os in
7670 aix3*)
7671 allow_undefined_flag=unsupported
7672 always_export_symbols=yes
7673 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7674 # Note: this linker hardcodes the directories in LIBPATH if there
7675 # are no directories specified by -L.
7676 hardcode_minus_L=yes
7677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7678 # Neither direct hardcoding nor static linking is supported with a
7679 # broken collect2.
7680 hardcode_direct=unsupported
7681 fi
7682 ;;
7683
7684 aix4* | aix5*)
7685 if test "$host_cpu" = ia64; then
7686 # On IA64, the linker does run time linking by default, so we don't
7687 # have to do anything special.
7688 aix_use_runtimelinking=no
7689 exp_sym_flag='-Bexport'
7690 no_entry_flag=""
7691 else
7692 # If we're using GNU nm, then we don't want the "-C" option.
7693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7695 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7696 else
7697 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7698 fi
7699 aix_use_runtimelinking=no
7700
7701 # Test if we are trying to use run time linking or normal
7702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7703 # need to do runtime linking.
7704 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7705 for ld_flag in $LDFLAGS; do
7706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7707 aix_use_runtimelinking=yes
7708 break
7709 fi
7710 done
7711 ;;
7712 esac
7713
7714 exp_sym_flag='-bexport'
7715 no_entry_flag='-bnoentry'
7716 fi
7717
7718 # When large executables or shared objects are built, AIX ld can
7719 # have problems creating the table of contents. If linking a library
7720 # or program results in "error TOC overflow" add -mminimal-toc to
7721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7723
7724 archive_cmds=''
7725 hardcode_direct=yes
7726 hardcode_direct_absolute=yes
7727 hardcode_libdir_separator=':'
7728 link_all_deplibs=yes
7729 file_list_spec='${wl}-f,'
7730
7731 if test "$GCC" = yes; then
7732 case $host_os in aix4.[012]|aix4.[012].*)
7733 # We only want to do this on AIX 4.2 and lower, the check
7734 # below for broken collect2 doesn't work under 4.3+
7735 collect2name=`${CC} -print-prog-name=collect2`
7736 if test -f "$collect2name" &&
7737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7738 then
7739 # We have reworked collect2
7740 :
7741 else
7742 # We have old collect2
7743 hardcode_direct=unsupported
7744 # It fails to find uninstalled libraries when the uninstalled
7745 # path is not listed in the libpath. Setting hardcode_minus_L
7746 # to unsupported forces relinking
7747 hardcode_minus_L=yes
7748 hardcode_libdir_flag_spec='-L$libdir'
7749 hardcode_libdir_separator=
7750 fi
7751 ;;
7752 esac
7753 shared_flag='-shared'
7754 if test "$aix_use_runtimelinking" = yes; then
7755 shared_flag="$shared_flag "'${wl}-G'
7756 fi
7757 else
7758 # not using gcc
7759 if test "$host_cpu" = ia64; then
7760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7761 # chokes on -Wl,-G. The following line is correct:
7762 shared_flag='-G'
7763 else
7764 if test "$aix_use_runtimelinking" = yes; then
7765 shared_flag='${wl}-G'
7766 else
7767 shared_flag='${wl}-bM:SRE'
7768 fi
7769 fi
7770 fi
7771
7772 # It seems that -bexpall does not export symbols beginning with
7773 # underscore (_), so it is better to generate a list of symbols to export.
7774 always_export_symbols=yes
7775 if test "$aix_use_runtimelinking" = yes; then
7776 # Warning - without using the other runtime loading flags (-brtl),
7777 # -berok will link without error, but may produce a broken library.
7778 allow_undefined_flag='-berok'
7779 # Determine the default libpath from the value encoded in an
7780 # empty executable.
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787
7788 int
7789 main ()
7790 {
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag"
7806 || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818
7819 lt_aix_libpath_sed='
7820 /Import File Strings/,/^$/ {
7821 /^0/ {
7822 s/^0 *\(.*\)$/\1/
7823 p
7824 }
7825 }'
7826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7827 # Check for a 64-bit object if we didn't find anything.
7828 if test -z "$aix_libpath"; then
7829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7830 fi
7831 else
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 fi
7836 rm -f conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7839
7840 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7841 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7842 else
7843 if test "$host_cpu" = ia64; then
7844 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7845 allow_undefined_flag="-z nodefs"
7846 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7847 else
7848 # Determine the default libpath from the value encoded in an
7849 # empty executable.
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856
7857 int
7858 main ()
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try='test -s conftest$ac_exeext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887
7888 lt_aix_libpath_sed='
7889 /Import File Strings/,/^$/ {
7890 /^0/ {
7891 s/^0 *\(.*\)$/\1/
7892 p
7893 }
7894 }'
7895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7896 # Check for a 64-bit object if we didn't find anything.
7897 if test -z "$aix_libpath"; then
7898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7899 fi
7900 else
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 fi
7905 rm -f conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7908
7909 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7910 # Warning - without using the other run time loading flags,
7911 # -berok will link without error, but may produce a broken library.
7912 no_undefined_flag=' ${wl}-bernotok'
7913 allow_undefined_flag=' ${wl}-berok'
7914 # Exported symbols can be pulled into shared objects from archives
7915 whole_archive_flag_spec='$convenience'
7916 archive_cmds_need_lc=yes
7917 # This is similar to how AIX traditionally builds its shared libraries.
7918 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7919 fi
7920 fi
7921 ;;
7922
7923 amigaos*)
7924 if test "$host_cpu" = m68k; then
7925 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7926 hardcode_libdir_flag_spec='-L$libdir'
7927 hardcode_minus_L=yes
7928 fi
7929 # see comment about different semantics on the GNU ld section
7930 ld_shlibs=no
7931 ;;
7932
7933 bsdi[45]*)
7934 export_dynamic_flag_spec=-rdynamic
7935 ;;
7936
7937 cygwin* | mingw* | pw32*)
7938 # When not using gcc, we currently assume that we are using
7939 # Microsoft Visual C++.
7940 # hardcode_libdir_flag_spec is actually meaningless, as there is
7941 # no search path for DLLs.
7942 hardcode_libdir_flag_spec=' '
7943 allow_undefined_flag=unsupported
7944 # Tell ltmain to make .lib files, not .a files.
7945 libext=lib
7946 # Tell ltmain to make .dll files, not .so files.
7947 shrext_cmds=".dll"
7948 # FIXME: Setting linknames here is a bad hack.
7949 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7950 # The linker will automatically build a .lib file if we build a DLL.
7951 old_archive_from_new_cmds='true'
7952 # FIXME: Should let the user specify the lib program.
7953 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7954 fix_srcfile_path='`cygpath -w "$srcfile"`'
7955 enable_shared_with_static_runtimes=yes
7956 ;;
7957
7958 darwin* | rhapsody*)
7959 case $host_os in
7960 rhapsody* | darwin1.[012])
7961 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7962 ;;
7963 *) # Darwin 1.3 on
7964 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7965 10.[012])
7966 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7967 ;;
7968 10.*)
7969 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7970 ;;
7971 esac
7972 ;;
7973 esac
7974 archive_cmds_need_lc=no
7975 hardcode_direct=no
7976 hardcode_automatic=yes
7977 hardcode_shlibpath_var=unsupported
7978 whole_archive_flag_spec=''
7979 link_all_deplibs=yes
7980 if test "$GCC" = yes ; then
7981 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 lt_cv_apple_cc_single_mod=no
7985 if test -z "${LT_MULTI_MODULE}"; then
7986 # By default we will add the -single_module flag. You can override
7987 # by either setting the environment variable LT_MULTI_MODULE
7988 # non-empty at configure time, or by adding -multi-module to the
7989 # link flags.
7990 echo "int foo(void){return 1;}" > conftest.c
7991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7992 -dynamiclib ${wl}-single_module conftest.c
7993 if test -f libconftest.dylib; then
7994 lt_cv_apple_cc_single_mod=yes
7995 rm libconftest.dylib
7996 fi
7997 rm conftest.$ac_ext
7998 fi
7999 fi
8000
8001 output_verbose_link_cmd=echo
8002 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8003 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8004 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8005 else
8006 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8007 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8008 fi
8009 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8010 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8011 else
8012 case $cc_basename in
8013 xlc*)
8014 output_verbose_link_cmd=echo
8015 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8016 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8017 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8018 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8019 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8020 ;;
8021 *)
8022 ld_shlibs=no
8023 ;;
8024 esac
8025 fi
8026 ;;
8027
8028 dgux*)
8029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 hardcode_libdir_flag_spec='-L$libdir'
8031 hardcode_shlibpath_var=no
8032 ;;
8033
8034 freebsd1*)
8035 ld_shlibs=no
8036 ;;
8037
8038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8039 # support. Future versions do this automatically, but an explicit c++rt0.o
8040 # does not break anything, and helps significantly (at the cost of a little
8041 # extra space).
8042 freebsd2.2*)
8043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8044 hardcode_libdir_flag_spec='-R$libdir'
8045 hardcode_direct=yes
8046 hardcode_shlibpath_var=no
8047 ;;
8048
8049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8050 freebsd2*)
8051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8052 hardcode_direct=yes
8053 hardcode_minus_L=yes
8054 hardcode_shlibpath_var=no
8055 ;;
8056
8057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8058 freebsd* | dragonfly*)
8059 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8060 hardcode_libdir_flag_spec='-R$libdir'
8061 hardcode_direct=yes
8062 hardcode_shlibpath_var=no
8063 ;;
8064
8065 hpux9*)
8066 if test "$GCC" = yes; then
8067 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8068 else
8069 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8070 fi
8071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8072 hardcode_libdir_separator=:
8073 hardcode_direct=yes
8074
8075 # hardcode_minus_L: Not really in the search PATH,
8076 # but as the default location of the library.
8077 hardcode_minus_L=yes
8078 export_dynamic_flag_spec='${wl}-E'
8079 ;;
8080
8081 hpux10*)
8082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8083 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8084 else
8085 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8086 fi
8087 if test "$with_gnu_ld" = no; then
8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8089 hardcode_libdir_flag_spec_ld='+b $libdir'
8090 hardcode_libdir_separator=:
8091 hardcode_direct=yes
8092 hardcode_direct_absolute=yes
8093 export_dynamic_flag_spec='${wl}-E'
8094 # hardcode_minus_L: Not really in the search PATH,
8095 # but as the default location of the library.
8096 hardcode_minus_L=yes
8097 fi
8098 ;;
8099
8100 hpux11*)
8101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8102 case $host_cpu in
8103 hppa*64*)
8104 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8105 ;;
8106 ia64*)
8107 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8108 ;;
8109 *)
8110 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8111 ;;
8112 esac
8113 else
8114 case $host_cpu in
8115 hppa*64*)
8116 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 ;;
8118 ia64*)
8119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8120 ;;
8121 *)
8122 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
8124 esac
8125 fi
8126 if test "$with_gnu_ld" = no; then
8127 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8128 hardcode_libdir_separator=:
8129
8130 case $host_cpu in
8131 hppa*64*|ia64*)
8132 hardcode_direct=no
8133 hardcode_shlibpath_var=no
8134 ;;
8135 *)
8136 hardcode_direct=yes
8137 hardcode_direct_absolute=yes
8138 export_dynamic_flag_spec='${wl}-E'
8139
8140 # hardcode_minus_L: Not really in the search PATH,
8141 # but as the default location of the library.
8142 hardcode_minus_L=yes
8143 ;;
8144 esac
8145 fi
8146 ;;
8147
8148 irix5* | irix6* | nonstopux*)
8149 if test "$GCC" = yes; then
8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8151 # Try to use the -exported_symbol ld option, if it does not
8152 # work, assume that -exports_file does not work either and
8153 # implicitly export all symbols.
8154 save_LDFLAGS="$LDFLAGS"
8155 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8156 cat >conftest.$ac_ext <<_ACEOF
8157 int foo(void) {}
8158 _ACEOF
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8161 (eval $ac_link) 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8182
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 fi
8188 rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LDFLAGS="$save_LDFLAGS"
8191 else
8192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8194 fi
8195 archive_cmds_need_lc='no'
8196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8197 hardcode_libdir_separator=:
8198 inherit_rpath=yes
8199 link_all_deplibs=yes
8200 ;;
8201
8202 netbsd*)
8203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8205 else
8206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8207 fi
8208 hardcode_libdir_flag_spec='-R$libdir'
8209 hardcode_direct=yes
8210 hardcode_shlibpath_var=no
8211 ;;
8212
8213 newsos6)
8214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_direct=yes
8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 hardcode_shlibpath_var=no
8219 ;;
8220
8221 *nto* | *qnx*)
8222 ;;
8223
8224 openbsd*)
8225 hardcode_direct=yes
8226 hardcode_shlibpath_var=no
8227 hardcode_direct_absolute=yes
8228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8233 else
8234 case $host_os in
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 ;;
8239 *)
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 ;;
8243 esac
8244 fi
8245 ;;
8246
8247 os2*)
8248 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_minus_L=yes
8250 allow_undefined_flag=unsupported
8251 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8252 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8253 ;;
8254
8255 osf3*)
8256 if test "$GCC" = yes; then
8257 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8258 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8259 else
8260 allow_undefined_flag=' -expect_unresolved \*'
8261 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8262 fi
8263 archive_cmds_need_lc='no'
8264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8265 hardcode_libdir_separator=:
8266 ;;
8267
8268 osf4* | osf5*) # as osf3* with the addition of -msym flag
8269 if test "$GCC" = yes; then
8270 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8271 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8273 else
8274 allow_undefined_flag=' -expect_unresolved \*'
8275 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8276 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8277 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8278
8279 # Both c and cxx compiler support -rpath directly
8280 hardcode_libdir_flag_spec='-rpath $libdir'
8281 fi
8282 archive_cmds_need_lc='no'
8283 hardcode_libdir_separator=:
8284 ;;
8285
8286 solaris*)
8287 no_undefined_flag=' -z defs'
8288 if test "$GCC" = yes; then
8289 wlarc='${wl}'
8290 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8291 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8292 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8293 else
8294 case `$CC -V 2>&1` in
8295 *"Compilers 5.0"*)
8296 wlarc=''
8297 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8299 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8300 ;;
8301 *)
8302 wlarc='${wl}'
8303 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8304 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8306 ;;
8307 esac
8308 fi
8309 hardcode_libdir_flag_spec='-R$libdir'
8310 hardcode_shlibpath_var=no
8311 case $host_os in
8312 solaris2.[0-5] | solaris2.[0-5].*) ;;
8313 *)
8314 # The compiler driver will combine and reorder linker options,
8315 # but understands `-z linker_flag'. GCC discards it without `$wl',
8316 # but is careful enough not to reorder.
8317 # Supported since Solaris 2.6 (maybe 2.5.1?)
8318 if test "$GCC" = yes; then
8319 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8320 else
8321 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8322 fi
8323 ;;
8324 esac
8325 link_all_deplibs=yes
8326 ;;
8327
8328 sunos4*)
8329 if test "x$host_vendor" = xsequent; then
8330 # Use $CC to link under sequent, because it throws in some extra .o
8331 # files that make .init and .fini sections work.
8332 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8333 else
8334 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8335 fi
8336 hardcode_libdir_flag_spec='-L$libdir'
8337 hardcode_direct=yes
8338 hardcode_minus_L=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 sysv4)
8343 case $host_vendor in
8344 sni)
8345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8346 hardcode_direct=yes # is this really true???
8347 ;;
8348 siemens)
8349 ## LD is ld it makes a PLAMLIB
8350 ## CC just makes a GrossModule.
8351 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8352 reload_cmds='$CC -r -o $output$reload_objs'
8353 hardcode_direct=no
8354 ;;
8355 motorola)
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8358 ;;
8359 esac
8360 runpath_var='LD_RUN_PATH'
8361 hardcode_shlibpath_var=no
8362 ;;
8363
8364 sysv4.3*)
8365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_shlibpath_var=no
8367 export_dynamic_flag_spec='-Bexport'
8368 ;;
8369
8370 sysv4*MP*)
8371 if test -d /usr/nec; then
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_shlibpath_var=no
8374 runpath_var=LD_RUN_PATH
8375 hardcode_runpath_var=yes
8376 ld_shlibs=yes
8377 fi
8378 ;;
8379
8380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8381 no_undefined_flag='${wl}-z,text'
8382 archive_cmds_need_lc=no
8383 hardcode_shlibpath_var=no
8384 runpath_var='LD_RUN_PATH'
8385
8386 if test "$GCC" = yes; then
8387 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8389 else
8390 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8391 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8392 fi
8393 ;;
8394
8395 sysv5* | sco3.2v5* | sco5v6*)
8396 # Note: We can NOT use -z defs as we might desire, because we do not
8397 # link with -lc, and that would cause any symbols used from libc to
8398 # always be unresolved, which means just about no library would
8399 # ever link correctly. If we're not using GNU ld we use -z text
8400 # though, which does catch some bad symbols but isn't as heavy-handed
8401 # as -z defs.
8402 no_undefined_flag='${wl}-z,text'
8403 allow_undefined_flag='${wl}-z,nodefs'
8404 archive_cmds_need_lc=no
8405 hardcode_shlibpath_var=no
8406 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8407 hardcode_libdir_separator=':'
8408 link_all_deplibs=yes
8409 export_dynamic_flag_spec='${wl}-Bexport'
8410 runpath_var='LD_RUN_PATH'
8411
8412 if test "$GCC" = yes; then
8413 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 else
8416 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8417 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8418 fi
8419 ;;
8420
8421 uts4*)
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_libdir_flag_spec='-L$libdir'
8424 hardcode_shlibpath_var=no
8425 ;;
8426
8427 *)
8428 ld_shlibs=no
8429 ;;
8430 esac
8431
8432 if test x$host_vendor = xsni; then
8433 case $host in
8434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8435 export_dynamic_flag_spec='${wl}-Blargedynsym'
8436 ;;
8437 esac
8438 fi
8439 fi
8440
8441 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8442 echo "${ECHO_T}$ld_shlibs" >&6
8443 test "$ld_shlibs" = no && can_build_shared=no
8444
8445 with_gnu_ld=$with_gnu_ld
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 #
8462 # Do we need to explicitly link libc?
8463 #
8464 case "x$archive_cmds_need_lc" in
8465 x|xyes)
8466 # Assume -lc should be added
8467 archive_cmds_need_lc=yes
8468
8469 if test "$enable_shared" = yes && test "$GCC" = yes; then
8470 case $archive_cmds in
8471 *'~'*)
8472 # FIXME: we may have to deal with multi-command sequences.
8473 ;;
8474 '$CC '*)
8475 # Test whether the compiler implicitly links with -lc since on some
8476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8477 # to ld, don't add -lc before -lgcc.
8478 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8479 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8480 $RM conftest*
8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8482
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } 2>conftest.err; then
8488 soname=conftest
8489 lib=conftest
8490 libobjs=conftest.$ac_objext
8491 deplibs=
8492 wl=$lt_prog_compiler_wl
8493 pic_flag=$lt_prog_compiler_pic
8494 compiler_flags=-v
8495 linker_flags=-v
8496 verstring=
8497 output_objdir=.
8498 libname=conftest
8499 lt_save_allow_undefined_flag=$allow_undefined_flag
8500 allow_undefined_flag=
8501 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }
8506 then
8507 archive_cmds_need_lc=no
8508 else
8509 archive_cmds_need_lc=yes
8510 fi
8511 allow_undefined_flag=$lt_save_allow_undefined_flag
8512 else
8513 cat conftest.err 1>&5
8514 fi
8515 $RM conftest*
8516 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8517 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8518 ;;
8519 esac
8520 fi
8521 ;;
8522 esac
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8681 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8682 withGCC=$GCC
8683 if test "$withGCC" = yes; then
8684 case $host_os in
8685 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8686 *) lt_awk_arg="/^libraries:/" ;;
8687 esac
8688 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8689 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8690 # if the path contains ";" then we assume it to be the separator
8691 # otherwise default to the standard path separator (i.e. ":") - it is
8692 # assumed that no part of a normal pathname contains ";" but that should
8693 # okay in the real world where ";" in dirpaths is itself problematic.
8694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8695 else
8696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8697 fi
8698 # Ok, now we have the path, separated by spaces, we can step through it
8699 # and add multilib dir if necessary.
8700 lt_tmp_lt_search_path_spec=
8701 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8702 for lt_sys_path in $lt_search_path_spec; do
8703 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8705 else
8706 test -d "$lt_sys_path" && \
8707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8708 fi
8709 done
8710 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8711 BEGIN {RS=" "; FS="/|\n";} {
8712 lt_foo="";
8713 lt_count=0;
8714 for (lt_i = NF; lt_i > 0; lt_i--) {
8715 if ($lt_i != "" && $lt_i != ".") {
8716 if ($lt_i == "..") {
8717 lt_count++;
8718 } else {
8719 if (lt_count == 0) {
8720 lt_foo="/" $lt_i lt_foo;
8721 } else {
8722 lt_count--;
8723 }
8724 }
8725 }
8726 }
8727 if (lt_foo != "") { lt_freq[lt_foo]++; }
8728 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8729 }'`
8730 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8731 else
8732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8733 fi
8734 library_names_spec=
8735 libname_spec='lib$name'
8736 soname_spec=
8737 shrext_cmds=".so"
8738 postinstall_cmds=
8739 postuninstall_cmds=
8740 finish_cmds=
8741 finish_eval=
8742 shlibpath_var=
8743 shlibpath_overrides_runpath=unknown
8744 version_type=none
8745 dynamic_linker="$host_os ld.so"
8746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8747 need_lib_prefix=unknown
8748 hardcode_into_libs=no
8749
8750 # when you set need_version to no, make sure it does not cause -set_version
8751 # flags to be left without arguments
8752 need_version=unknown
8753
8754 case $host_os in
8755 aix3*)
8756 version_type=linux
8757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8758 shlibpath_var=LIBPATH
8759
8760 # AIX 3 has no versioning support, so we append a major version to the name.
8761 soname_spec='${libname}${release}${shared_ext}$major'
8762 ;;
8763
8764 aix4* | aix5*)
8765 version_type=linux
8766 need_lib_prefix=no
8767 need_version=no
8768 hardcode_into_libs=yes
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 supports IA64
8771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 else
8774 # With GCC up to 2.95.x, collect2 would create an import file
8775 # for dependence libraries. The import file would start with
8776 # the line `#! .'. This would cause the generated library to
8777 # depend on `.', always an invalid library. This was fixed in
8778 # development snapshots of GCC prior to 3.0.
8779 case $host_os in
8780 aix4 | aix4.[01] | aix4.[01].*)
8781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8782 echo ' yes '
8783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8784 :
8785 else
8786 can_build_shared=no
8787 fi
8788 ;;
8789 esac
8790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8791 # soname into executable. Probably we can add versioning support to
8792 # collect2, so additional links can be useful in future.
8793 if test "$aix_use_runtimelinking" = yes; then
8794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8795 # instead of lib<name>.a to let people know that these are not
8796 # typical AIX shared libraries.
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8798 else
8799 # We preserve .a as extension for shared libraries through AIX4.2
8800 # and later when we are not doing run time linking.
8801 library_names_spec='${libname}${release}.a $libname.a'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 fi
8804 shlibpath_var=LIBPATH
8805 fi
8806 ;;
8807
8808 amigaos*)
8809 if test "$host_cpu" = m68k; then
8810 library_names_spec='$libname.ixlibrary $libname.a'
8811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8812 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8813 else
8814 dynamic_linker=no
8815 fi
8816 ;;
8817
8818 beos*)
8819 library_names_spec='${libname}${shared_ext}'
8820 dynamic_linker="$host_os ld.so"
8821 shlibpath_var=LIBRARY_PATH
8822 ;;
8823
8824 bsdi[45]*)
8825 version_type=linux
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833 # the default ld.so.conf also contains /usr/contrib/lib and
8834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835 # libtool to hard-code these into programs
8836 ;;
8837
8838 cygwin* | mingw* | pw32*)
8839 version_type=windows
8840 shrext_cmds=".dll"
8841 need_version=no
8842 need_lib_prefix=no
8843
8844 case $withGCC,$host_os in
8845 yes,cygwin* | yes,mingw* | yes,pw32*)
8846 library_names_spec='$libname.dll.a'
8847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848 postinstall_cmds='base_file=`basename \${file}`~
8849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8850 dldir=$destdir/`dirname \$dlpath`~
8851 test -d \$dldir || mkdir -p \$dldir~
8852 $install_prog $dir/$dlname \$dldir/$dlname~
8853 chmod a+x \$dldir/$dlname~
8854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8856 fi'
8857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8858 dlpath=$dir/\$dldll~
8859 $RM \$dlpath'
8860 shlibpath_overrides_runpath=yes
8861
8862 case $host_os in
8863 cygwin*)
8864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8866 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8867 ;;
8868 mingw*)
8869 # MinGW DLLs use traditional 'lib' prefix
8870 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8871 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8872 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8873 # It is most probably a Windows format PATH printed by
8874 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8875 # path with ; separators, and with drive letters. We can handle the
8876 # drive letters (cygwin fileutils understands them), so leave them,
8877 # especially as we might pass files found there to a mingw objdump,
8878 # which wouldn't understand a cygwinified path. Ahh.
8879 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8880 else
8881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8882 fi
8883 ;;
8884 pw32*)
8885 # pw32 DLLs use 'pw' prefix rather than 'lib'
8886 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 ;;
8888 esac
8889 ;;
8890
8891 *)
8892 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8893 ;;
8894 esac
8895 dynamic_linker='Win32 ld.exe'
8896 # FIXME: first we should search . and the directory the executable is in
8897 shlibpath_var=PATH
8898 ;;
8899
8900 darwin* | rhapsody*)
8901 dynamic_linker="$host_os dyld"
8902 version_type=darwin
8903 need_lib_prefix=no
8904 need_version=no
8905 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8906 soname_spec='${libname}${release}${major}$shared_ext'
8907 shlibpath_overrides_runpath=yes
8908 shlibpath_var=DYLD_LIBRARY_PATH
8909 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8910
8911 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8912 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8913 ;;
8914
8915 dgux*)
8916 version_type=linux
8917 need_lib_prefix=no
8918 need_version=no
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 shlibpath_var=LD_LIBRARY_PATH
8922 ;;
8923
8924 freebsd1*)
8925 dynamic_linker=no
8926 ;;
8927
8928 freebsd* | dragonfly*)
8929 # DragonFly does not have aout. When/if they implement a new
8930 # versioning mechanism, adjust this.
8931 if test -x /usr/bin/objformat; then
8932 objformat=`/usr/bin/objformat`
8933 else
8934 case $host_os in
8935 freebsd[123]*) objformat=aout ;;
8936 *) objformat=elf ;;
8937 esac
8938 fi
8939 version_type=freebsd-$objformat
8940 case $version_type in
8941 freebsd-elf*)
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8943 need_version=no
8944 need_lib_prefix=no
8945 ;;
8946 freebsd-*)
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8948 need_version=yes
8949 ;;
8950 esac
8951 shlibpath_var=LD_LIBRARY_PATH
8952 case $host_os in
8953 freebsd2*)
8954 shlibpath_overrides_runpath=yes
8955 ;;
8956 freebsd3.[01]* | freebsdelf3.[01]*)
8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
8960 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8961 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8962 shlibpath_overrides_runpath=no
8963 hardcode_into_libs=yes
8964 ;;
8965 *) # from 4.6 on, and DragonFly
8966 shlibpath_overrides_runpath=yes
8967 hardcode_into_libs=yes
8968 ;;
8969 esac
8970 ;;
8971
8972 gnu*)
8973 version_type=linux
8974 need_lib_prefix=no
8975 need_version=no
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 hardcode_into_libs=yes
8980 ;;
8981
8982 hpux9* | hpux10* | hpux11*)
8983 # Give a soname corresponding to the major version so that dld.sl refuses to
8984 # link against other versions.
8985 version_type=sunos
8986 need_lib_prefix=no
8987 need_version=no
8988 case $host_cpu in
8989 ia64*)
8990 shrext_cmds='.so'
8991 hardcode_into_libs=yes
8992 dynamic_linker="$host_os dld.so"
8993 shlibpath_var=LD_LIBRARY_PATH
8994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8996 soname_spec='${libname}${release}${shared_ext}$major'
8997 if test "X$HPUX_IA64_MODE" = X32; then
8998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8999 else
9000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9001 fi
9002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9003 ;;
9004 hppa*64*)
9005 shrext_cmds='.sl'
9006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.sl"
9008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9014 ;;
9015 *)
9016 shrext_cmds='.sl'
9017 dynamic_linker="$host_os dld.sl"
9018 shlibpath_var=SHLIB_PATH
9019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 soname_spec='${libname}${release}${shared_ext}$major'
9022 ;;
9023 esac
9024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9025 postinstall_cmds='chmod 555 $lib'
9026 ;;
9027
9028 interix[3-9]*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 hardcode_into_libs=yes
9038 ;;
9039
9040 irix5* | irix6* | nonstopux*)
9041 case $host_os in
9042 nonstopux*) version_type=nonstopux ;;
9043 *)
9044 if test "$lt_cv_prog_gnu_ld" = yes; then
9045 version_type=linux
9046 else
9047 version_type=irix
9048 fi ;;
9049 esac
9050 need_lib_prefix=no
9051 need_version=no
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 case $host_os in
9055 irix5* | nonstopux*)
9056 libsuff= shlibsuff=
9057 ;;
9058 *)
9059 case $LD in # libtool.m4 will add one of these switches to LD
9060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9061 libsuff= shlibsuff= libmagic=32-bit;;
9062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9063 libsuff=32 shlibsuff=N32 libmagic=N32;;
9064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9065 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9066 *) libsuff= shlibsuff= libmagic=never-match;;
9067 esac
9068 ;;
9069 esac
9070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9071 shlibpath_overrides_runpath=no
9072 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9073 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9074 hardcode_into_libs=yes
9075 ;;
9076
9077 # No shared lib support for Linux oldld, aout, or coff.
9078 linux*oldld* | linux*aout* | linux*coff*)
9079 dynamic_linker=no
9080 ;;
9081
9082 # This must be Linux ELF.
9083 linux* | k*bsd*-gnu)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=no
9092 # Some binutils ld are patched to set DT_RUNPATH
9093 save_LDFLAGS=$LDFLAGS
9094 save_libdir=$libdir
9095 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9096 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103
9104 int
9105 main ()
9106 {
9107
9108 ;
9109 return 0;
9110 }
9111 _ACEOF
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag"
9122 || test ! -s conftest.err'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
9128 { ac_try='test -s conftest$ac_exeext'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
9134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9135 shlibpath_overrides_runpath=yes
9136 fi
9137
9138 else
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 fi
9143 rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LDFLAGS=$save_LDFLAGS
9146 libdir=$save_libdir
9147
9148 # This implies no fast_install, which is unacceptable.
9149 # Some rework will be needed to allow for fast_install
9150 # before this can be enabled.
9151 hardcode_into_libs=yes
9152
9153 # Append ld.so.conf contents to the search path
9154 if test -f /etc/ld.so.conf; then
9155 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9157 fi
9158
9159 # We used to test for /lib/ld.so.1 and disable shared libraries on
9160 # powerpc, because MkLinux only supported shared libraries with the
9161 # GNU dynamic linker. Since this was broken with cross compilers,
9162 # most powerpc-linux boxes support dynamic linking these days and
9163 # people can always --disable-shared, the test was removed, and we
9164 # assume the GNU/Linux dynamic linker is in use.
9165 dynamic_linker='GNU/Linux ld.so'
9166 ;;
9167
9168 netbsd*)
9169 version_type=sunos
9170 need_lib_prefix=no
9171 need_version=no
9172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9175 dynamic_linker='NetBSD (a.out) ld.so'
9176 else
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 dynamic_linker='NetBSD ld.elf_so'
9180 fi
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=yes
9183 hardcode_into_libs=yes
9184 ;;
9185
9186 newsos6)
9187 version_type=linux
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9191 ;;
9192
9193 *nto* | *qnx*)
9194 version_type=qnx
9195 need_lib_prefix=no
9196 need_version=no
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 dynamic_linker='ldqnx.so'
9203 ;;
9204
9205 openbsd*)
9206 version_type=sunos
9207 sys_lib_dlsearch_path_spec="/usr/lib"
9208 need_lib_prefix=no
9209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9210 case $host_os in
9211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9212 *) need_version=no ;;
9213 esac
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9218 case $host_os in
9219 openbsd2.[89] | openbsd2.[89].*)
9220 shlibpath_overrides_runpath=no
9221 ;;
9222 *)
9223 shlibpath_overrides_runpath=yes
9224 ;;
9225 esac
9226 else
9227 shlibpath_overrides_runpath=yes
9228 fi
9229 ;;
9230
9231 os2*)
9232 libname_spec='$name'
9233 shrext_cmds=".dll"
9234 need_lib_prefix=no
9235 library_names_spec='$libname${shared_ext} $libname.a'
9236 dynamic_linker='OS/2 ld.exe'
9237 shlibpath_var=LIBPATH
9238 ;;
9239
9240 osf3* | osf4* | osf5*)
9241 version_type=osf
9242 need_lib_prefix=no
9243 need_version=no
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9249 ;;
9250
9251 rdos*)
9252 dynamic_linker=no
9253 ;;
9254
9255 solaris*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 hardcode_into_libs=yes
9264 # ldd complains unless libraries are executable
9265 postinstall_cmds='chmod +x $lib'
9266 ;;
9267
9268 sunos4*)
9269 version_type=sunos
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9272 shlibpath_var=LD_LIBRARY_PATH
9273 shlibpath_overrides_runpath=yes
9274 if test "$with_gnu_ld" = yes; then
9275 need_lib_prefix=no
9276 fi
9277 need_version=yes
9278 ;;
9279
9280 sysv4 | sysv4.3*)
9281 version_type=linux
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 case $host_vendor in
9286 sni)
9287 shlibpath_overrides_runpath=no
9288 need_lib_prefix=no
9289 runpath_var=LD_RUN_PATH
9290 ;;
9291 siemens)
9292 need_lib_prefix=no
9293 ;;
9294 motorola)
9295 need_lib_prefix=no
9296 need_version=no
9297 shlibpath_overrides_runpath=no
9298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9299 ;;
9300 esac
9301 ;;
9302
9303 sysv4*MP*)
9304 if test -d /usr/nec ;then
9305 version_type=linux
9306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9307 soname_spec='$libname${shared_ext}.$major'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 fi
9310 ;;
9311
9312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9313 version_type=freebsd-elf
9314 need_lib_prefix=no
9315 need_version=no
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9320 hardcode_into_libs=yes
9321 if test "$with_gnu_ld" = yes; then
9322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9323 else
9324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9325 case $host_os in
9326 sco3.2v5*)
9327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9328 ;;
9329 esac
9330 fi
9331 sys_lib_dlsearch_path_spec='/usr/lib'
9332 ;;
9333
9334 tpf*)
9335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9336 version_type=linux
9337 need_lib_prefix=no
9338 need_version=no
9339 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=no
9342 hardcode_into_libs=yes
9343 ;;
9344
9345 uts4*)
9346 version_type=linux
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 ;;
9351
9352 *)
9353 dynamic_linker=no
9354 ;;
9355 esac
9356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9357 echo "${ECHO_T}$dynamic_linker" >&6
9358 test "$dynamic_linker" = no && can_build_shared=no
9359
9360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9361 if test "$GCC" = yes; then
9362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9363 fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9453 hardcode_action=
9454 if test -n "$hardcode_libdir_flag_spec" ||
9455 test -n "$runpath_var" ||
9456 test "X$hardcode_automatic" = "Xyes" ; then
9457
9458 # We can hardcode non-existent directories.
9459 if test "$hardcode_direct" != no &&
9460 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461 # have to relink, otherwise we might link with an installed library
9462 # when we should be linking with a yet-to-be-installed one
9463 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464 test "$hardcode_minus_L" != no; then
9465 # Linking always hardcodes the temporary library directory.
9466 hardcode_action=relink
9467 else
9468 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469 hardcode_action=immediate
9470 fi
9471 else
9472 # We cannot hardcode anything, or else we can only hardcode existing
9473 # directories.
9474 hardcode_action=unsupported
9475 fi
9476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477 echo "${ECHO_T}$hardcode_action" >&6
9478
9479 if test "$hardcode_action" = relink ||
9480 test "$inherit_rpath" = yes; then
9481 # Fast installation is not supported
9482 enable_fast_install=no
9483 elif test "$shlibpath_overrides_runpath" = yes ||
9484 test "$enable_shared" = no; then
9485 # Fast installation is not necessary
9486 enable_fast_install=needless
9487 fi
9488
9489
9490
9491
9492
9493
9494 if test "x$enable_dlopen" != xyes; then
9495 enable_dlopen=unknown
9496 enable_dlopen_self=unknown
9497 enable_dlopen_self_static=unknown
9498 else
9499 lt_cv_dlopen=no
9500 lt_cv_dlopen_libs=
9501
9502 case $host_os in
9503 beos*)
9504 lt_cv_dlopen="load_add_on"
9505 lt_cv_dlopen_libs=
9506 lt_cv_dlopen_self=yes
9507 ;;
9508
9509 mingw* | pw32*)
9510 lt_cv_dlopen="LoadLibrary"
9511 lt_cv_dlopen_libs=
9512 ;;
9513
9514 cygwin*)
9515 lt_cv_dlopen="dlopen"
9516 lt_cv_dlopen_libs=
9517 ;;
9518
9519 darwin*)
9520 # if libdl is installed we need to link against it
9521 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9522 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9523 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526 ac_check_lib_save_LIBS=$LIBS
9527 LIBS="-ldl $LIBS"
9528 cat >conftest.$ac_ext <<_ACEOF
9529 /* confdefs.h. */
9530 _ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 #ifdef __cplusplus
9537 extern "C"
9538 #endif
9539 /* We use char because int might match the return type of a gcc2
9540 builtin and then its argument prototype would still apply. */
9541 char dlopen ();
9542 int
9543 main ()
9544 {
9545 dlopen ();
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552 (eval $ac_link) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } &&
9559 { ac_try='test -z "$ac_c_werror_flag"
9560 || test ! -s conftest.err'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568 (eval $ac_try) 2>&5
9569 ac_status=$?
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_lib_dl_dlopen=yes
9573 else
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 ac_cv_lib_dl_dlopen=no
9578 fi
9579 rm -f conftest.err conftest.$ac_objext \
9580 conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9582 fi
9583 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9585 if test $ac_cv_lib_dl_dlopen = yes; then
9586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9587 else
9588
9589 lt_cv_dlopen="dyld"
9590 lt_cv_dlopen_libs=
9591 lt_cv_dlopen_self=yes
9592
9593 fi
9594
9595 ;;
9596
9597 *)
9598 echo "$as_me:$LINENO: checking for shl_load" >&5
9599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9600 if test "${ac_cv_func_shl_load+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9611 #define shl_load innocuous_shl_load
9612
9613 /* System header to define __stub macros and hopefully few prototypes,
9614 which can conflict with char shl_load (); below.
9615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616 <limits.h> exists even on freestanding compilers. */
9617
9618 #ifdef __STDC__
9619 # include <limits.h>
9620 #else
9621 # include <assert.h>
9622 #endif
9623
9624 #undef shl_load
9625
9626 /* Override any gcc2 internal prototype to avoid an error. */
9627 #ifdef __cplusplus
9628 extern "C"
9629 {
9630 #endif
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char shl_load ();
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9638 choke me
9639 #else
9640 char (*f) () = shl_load;
9641 #endif
9642 #ifdef __cplusplus
9643 }
9644 #endif
9645
9646 int
9647 main ()
9648 {
9649 return f != shl_load;
9650 ;
9651 return 0;
9652 }
9653 _ACEOF
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest$ac_exeext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_cv_func_shl_load=yes
9677 else
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681 ac_cv_func_shl_load=no
9682 fi
9683 rm -f conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 fi
9686 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9687 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9688 if test $ac_cv_func_shl_load = yes; then
9689 lt_cv_dlopen="shl_load"
9690 else
9691 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9693 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldld $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 /* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
9711 char shl_load ();
9712 int
9713 main ()
9714 {
9715 shl_load ();
9716 ;
9717 return 0;
9718 }
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_lib_dld_shl_load=yes
9743 else
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747 ac_cv_lib_dld_shl_load=no
9748 fi
9749 rm -f conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9752 fi
9753 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9755 if test $ac_cv_lib_dld_shl_load = yes; then
9756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9757 else
9758 echo "$as_me:$LINENO: checking for dlopen" >&5
9759 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9760 if test "${ac_cv_func_dlopen+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9771 #define dlopen innocuous_dlopen
9772
9773 /* System header to define __stub macros and hopefully few prototypes,
9774 which can conflict with char dlopen (); below.
9775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776 <limits.h> exists even on freestanding compilers. */
9777
9778 #ifdef __STDC__
9779 # include <limits.h>
9780 #else
9781 # include <assert.h>
9782 #endif
9783
9784 #undef dlopen
9785
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 {
9790 #endif
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9793 char dlopen ();
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9798 choke me
9799 #else
9800 char (*f) () = dlopen;
9801 #endif
9802 #ifdef __cplusplus
9803 }
9804 #endif
9805
9806 int
9807 main ()
9808 {
9809 return f != dlopen;
9810 ;
9811 return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816 (eval $ac_link) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_func_dlopen=yes
9837 else
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_cv_func_dlopen=no
9842 fi
9843 rm -f conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9847 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9848 if test $ac_cv_func_dlopen = yes; then
9849 lt_cv_dlopen="dlopen"
9850 else
9851 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9852 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9853 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 ac_check_lib_save_LIBS=$LIBS
9857 LIBS="-ldl $LIBS"
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h. */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h. */
9864
9865 /* Override any gcc2 internal prototype to avoid an error. */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9871 char dlopen ();
9872 int
9873 main ()
9874 {
9875 dlopen ();
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest$ac_exeext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dl_dlopen=yes
9903 else
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_lib_dl_dlopen=no
9908 fi
9909 rm -f conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9912 fi
9913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9915 if test $ac_cv_lib_dl_dlopen = yes; then
9916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9917 else
9918 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923 ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-lsvld $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h. */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931
9932 /* Override any gcc2 internal prototype to avoid an error. */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 /* We use char because int might match the return type of a gcc2
9937 builtin and then its argument prototype would still apply. */
9938 char dlopen ();
9939 int
9940 main ()
9941 {
9942 dlopen ();
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 (eval $ac_try) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_lib_svld_dlopen=yes
9970 else
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ac_cv_lib_svld_dlopen=no
9975 fi
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9982 if test $ac_cv_lib_svld_dlopen = yes; then
9983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9984 else
9985 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9986 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9987 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990 ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldld $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005 char dld_link ();
10006 int
10007 main ()
10008 {
10009 dld_link ();
10010 ;
10011 return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_lib_dld_dld_link=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_lib_dld_dld_link=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10048 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10049 if test $ac_cv_lib_dld_dld_link = yes; then
10050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10051 fi
10052
10053
10054 fi
10055
10056
10057 fi
10058
10059
10060 fi
10061
10062
10063 fi
10064
10065
10066 fi
10067
10068 ;;
10069 esac
10070
10071 if test "x$lt_cv_dlopen" != xno; then
10072 enable_dlopen=yes
10073 else
10074 enable_dlopen=no
10075 fi
10076
10077 case $lt_cv_dlopen in
10078 dlopen)
10079 save_CPPFLAGS="$CPPFLAGS"
10080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10081
10082 save_LDFLAGS="$LDFLAGS"
10083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10084
10085 save_LIBS="$LIBS"
10086 LIBS="$lt_cv_dlopen_libs $LIBS"
10087
10088 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10089 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10090 if test "${lt_cv_dlopen_self+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self=cross
10095 else
10096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10097 lt_status=$lt_dlunknown
10098 cat > conftest.$ac_ext <<_LT_EOF
10099 #line 10099 "configure"
10100 #include "confdefs.h"
10101
10102 #if HAVE_DLFCN_H
10103 #include <dlfcn.h>
10104 #endif
10105
10106 #include <stdio.h>
10107
10108 #ifdef RTLD_GLOBAL
10109 # define LT_DLGLOBAL RTLD_GLOBAL
10110 #else
10111 # ifdef DL_GLOBAL
10112 # define LT_DLGLOBAL DL_GLOBAL
10113 # else
10114 # define LT_DLGLOBAL 0
10115 # endif
10116 #endif
10117
10118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120 #ifndef LT_DLLAZY_OR_NOW
10121 # ifdef RTLD_LAZY
10122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10123 # else
10124 # ifdef DL_LAZY
10125 # define LT_DLLAZY_OR_NOW DL_LAZY
10126 # else
10127 # ifdef RTLD_NOW
10128 # define LT_DLLAZY_OR_NOW RTLD_NOW
10129 # else
10130 # ifdef DL_NOW
10131 # define LT_DLLAZY_OR_NOW DL_NOW
10132 # else
10133 # define LT_DLLAZY_OR_NOW 0
10134 # endif
10135 # endif
10136 # endif
10137 # endif
10138 #endif
10139
10140 #ifdef __cplusplus
10141 extern "C" void exit (int);
10142 #endif
10143
10144 void fnord() { int i=42;}
10145 int main ()
10146 {
10147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10148 int status = $lt_dlunknown;
10149
10150 if (self)
10151 {
10152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10154 /* dlclose (self); */
10155 }
10156 else
10157 puts (dlerror ());
10158
10159 exit (status);
10160 }
10161 _LT_EOF
10162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10163 (eval $ac_link) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10167 (./conftest; exit; ) >&5 2>/dev/null
10168 lt_status=$?
10169 case x$lt_status in
10170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10173 esac
10174 else :
10175 # compilation failed
10176 lt_cv_dlopen_self=no
10177 fi
10178 fi
10179 rm -fr conftest*
10180
10181
10182 fi
10183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10184 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10185
10186 if test "x$lt_cv_dlopen_self" = xyes; then
10187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10188 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10189 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10190 if test "${lt_cv_dlopen_self_static+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193 if test "$cross_compiling" = yes; then :
10194 lt_cv_dlopen_self_static=cross
10195 else
10196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10197 lt_status=$lt_dlunknown
10198 cat > conftest.$ac_ext <<_LT_EOF
10199 #line 10199 "configure"
10200 #include "confdefs.h"
10201
10202 #if HAVE_DLFCN_H
10203 #include <dlfcn.h>
10204 #endif
10205
10206 #include <stdio.h>
10207
10208 #ifdef RTLD_GLOBAL
10209 # define LT_DLGLOBAL RTLD_GLOBAL
10210 #else
10211 # ifdef DL_GLOBAL
10212 # define LT_DLGLOBAL DL_GLOBAL
10213 # else
10214 # define LT_DLGLOBAL 0
10215 # endif
10216 #endif
10217
10218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10219 find out it does not work in some platform. */
10220 #ifndef LT_DLLAZY_OR_NOW
10221 # ifdef RTLD_LAZY
10222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10223 # else
10224 # ifdef DL_LAZY
10225 # define LT_DLLAZY_OR_NOW DL_LAZY
10226 # else
10227 # ifdef RTLD_NOW
10228 # define LT_DLLAZY_OR_NOW RTLD_NOW
10229 # else
10230 # ifdef DL_NOW
10231 # define LT_DLLAZY_OR_NOW DL_NOW
10232 # else
10233 # define LT_DLLAZY_OR_NOW 0
10234 # endif
10235 # endif
10236 # endif
10237 # endif
10238 #endif
10239
10240 #ifdef __cplusplus
10241 extern "C" void exit (int);
10242 #endif
10243
10244 void fnord() { int i=42;}
10245 int main ()
10246 {
10247 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248 int status = $lt_dlunknown;
10249
10250 if (self)
10251 {
10252 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10253 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254 /* dlclose (self); */
10255 }
10256 else
10257 puts (dlerror ());
10258
10259 exit (status);
10260 }
10261 _LT_EOF
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10267 (./conftest; exit; ) >&5 2>/dev/null
10268 lt_status=$?
10269 case x$lt_status in
10270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10273 esac
10274 else :
10275 # compilation failed
10276 lt_cv_dlopen_self_static=no
10277 fi
10278 fi
10279 rm -fr conftest*
10280
10281
10282 fi
10283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10284 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10285 fi
10286
10287 CPPFLAGS="$save_CPPFLAGS"
10288 LDFLAGS="$save_LDFLAGS"
10289 LIBS="$save_LIBS"
10290 ;;
10291 esac
10292
10293 case $lt_cv_dlopen_self in
10294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10295 *) enable_dlopen_self=unknown ;;
10296 esac
10297
10298 case $lt_cv_dlopen_self_static in
10299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10300 *) enable_dlopen_self_static=unknown ;;
10301 esac
10302 fi
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 striplib=
10321 old_striplib=
10322 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10323 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10327 echo "$as_me:$LINENO: result: yes" >&5
10328 echo "${ECHO_T}yes" >&6
10329 else
10330 # FIXME - insert some real tests, host_os isn't really good enough
10331 case $host_os in
10332 darwin*)
10333 if test -n "$STRIP" ; then
10334 striplib="$STRIP -x"
10335 old_striplib="$STRIP -S"
10336 echo "$as_me:$LINENO: result: yes" >&5
10337 echo "${ECHO_T}yes" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10341 fi
10342 ;;
10343 *)
10344 echo "$as_me:$LINENO: result: no" >&5
10345 echo "${ECHO_T}no" >&6
10346 ;;
10347 esac
10348 fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 # Report which library types will actually be built
10362 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10363 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10364 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10365 echo "${ECHO_T}$can_build_shared" >&6
10366
10367 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10368 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10369 test "$can_build_shared" = "no" && enable_shared=no
10370
10371 # On AIX, shared libraries and static libraries use the same namespace, and
10372 # are all built from PIC.
10373 case $host_os in
10374 aix3*)
10375 test "$enable_shared" = yes && enable_static=no
10376 if test -n "$RANLIB"; then
10377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10378 postinstall_cmds='$RANLIB $lib'
10379 fi
10380 ;;
10381
10382 aix4* | aix5*)
10383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10384 test "$enable_shared" = yes && enable_static=no
10385 fi
10386 ;;
10387 esac
10388 echo "$as_me:$LINENO: result: $enable_shared" >&5
10389 echo "${ECHO_T}$enable_shared" >&6
10390
10391 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10392 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10393 # Make sure either enable_shared or enable_static is yes.
10394 test "$enable_shared" = yes || enable_static=yes
10395 echo "$as_me:$LINENO: result: $enable_static" >&5
10396 echo "${ECHO_T}$enable_static" >&6
10397
10398
10399
10400
10401 fi
10402 ac_ext=c
10403 ac_cpp='$CPP $CPPFLAGS'
10404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10407
10408 CC="$lt_save_CC"
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 ac_config_commands="$ac_config_commands libtool"
10423
10424
10425
10426
10427 # Only expand once:
10428
10429
10430
10431 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
10432 if test "${enable_64_bit_bfd+set}" = set; then
10433 enableval="$enable_64_bit_bfd"
10434 case "${enableval}" in
10435 yes) want64=true ;;
10436 no) want64=false ;;
10437 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
10438 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
10439 { (exit 1); exit 1; }; } ;;
10440 esac
10441 else
10442 want64=false
10443 fi; # Check whether --enable-targets or --disable-targets was given.
10444 if test "${enable_targets+set}" = set; then
10445 enableval="$enable_targets"
10446 case "${enableval}" in
10447 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
10448 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
10449 { (exit 1); exit 1; }; }
10450 ;;
10451 no) enable_targets= ;;
10452 *) enable_targets=$enableval ;;
10453 esac
10454 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
10455 if test "${enable_commonbfdlib+set}" = set; then
10456 enableval="$enable_commonbfdlib"
10457 case "${enableval}" in
10458 yes) commonbfdlib=true ;;
10459 no) commonbfdlib=false ;;
10460 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
10461 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
10462 { (exit 1); exit 1; }; } ;;
10463 esac
10464 fi;
10465 # Check whether --with-mmap or --without-mmap was given.
10466 if test "${with_mmap+set}" = set; then
10467 withval="$with_mmap"
10468 case "${withval}" in
10469 yes) want_mmap=true ;;
10470 no) want_mmap=false ;;
10471 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
10472 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
10473 { (exit 1); exit 1; }; } ;;
10474 esac
10475 else
10476 want_mmap=false
10477 fi;
10478 # Check whether --enable-secureplt or --disable-secureplt was given.
10479 if test "${enable_secureplt+set}" = set; then
10480 enableval="$enable_secureplt"
10481 case "${enableval}" in
10482 yes) use_secureplt=true ;;
10483 no) use_secureplt=false ;;
10484 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
10485 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
10486 { (exit 1); exit 1; }; } ;;
10487 esac
10488 else
10489 use_secureplt=false
10490 fi; if test $use_secureplt = true; then
10491
10492 cat >>confdefs.h <<\_ACEOF
10493 #define USE_SECUREPLT 1
10494 _ACEOF
10495
10496 fi
10497
10498
10499
10500 # Check whether --with-pkgversion or --without-pkgversion was given.
10501 if test "${with_pkgversion+set}" = set; then
10502 withval="$with_pkgversion"
10503 case "$withval" in
10504 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
10505 echo "$as_me: error: package version not specified" >&2;}
10506 { (exit 1); exit 1; }; } ;;
10507 no) PKGVERSION= ;;
10508 *) PKGVERSION="($withval) " ;;
10509 esac
10510 else
10511 PKGVERSION="(GNU Binutils) "
10512
10513 fi;
10514
10515
10516
10517
10518 # Check whether --with-bugurl or --without-bugurl was given.
10519 if test "${with_bugurl+set}" = set; then
10520 withval="$with_bugurl"
10521 case "$withval" in
10522 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
10523 echo "$as_me: error: bug URL not specified" >&2;}
10524 { (exit 1); exit 1; }; } ;;
10525 no) BUGURL=
10526 ;;
10527 *) BUGURL="$withval"
10528 ;;
10529 esac
10530 else
10531 BUGURL="http://www.sourceware.org/bugzilla/"
10532
10533 fi;
10534 case ${BUGURL} in
10535 "")
10536 REPORT_BUGS_TO=
10537 REPORT_BUGS_TEXI=
10538 ;;
10539 *)
10540 REPORT_BUGS_TO="<$BUGURL>"
10541 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
10542 ;;
10543 esac;
10544
10545
10546
10547
10548
10549 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
10550
10551 # Check whether --enable-werror or --disable-werror was given.
10552 if test "${enable_werror+set}" = set; then
10553 enableval="$enable_werror"
10554 case "${enableval}" in
10555 yes | y) ERROR_ON_WARNING="yes" ;;
10556 no | n) ERROR_ON_WARNING="no" ;;
10557 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
10558 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
10559 { (exit 1); exit 1; }; } ;;
10560 esac
10561 fi;
10562
10563 # Enable -Werror by default when using gcc
10564 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
10565 ERROR_ON_WARNING=yes
10566 fi
10567
10568 NO_WERROR=
10569 if test "${ERROR_ON_WARNING}" = yes ; then
10570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
10571 NO_WERROR="-Wno-error"
10572 fi
10573
10574 if test "${GCC}" = yes ; then
10575 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
10576 fi
10577
10578 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10579 if test "${enable_build_warnings+set}" = set; then
10580 enableval="$enable_build_warnings"
10581 case "${enableval}" in
10582 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
10583 no) if test "${GCC}" = yes ; then
10584 WARN_CFLAGS="-w"
10585 fi;;
10586 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10587 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
10588 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
10589 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
10590 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10591 esac
10592 fi;
10593
10594 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
10595 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
10596 fi
10597
10598
10599
10600
10601
10602 ac_config_headers="$ac_config_headers config.h:config.in"
10603
10604
10605 if test -z "$target" ; then
10606 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
10607 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
10608 { (exit 1); exit 1; }; }
10609 fi
10610
10611 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10612 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10613 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10614 if test "${enable_maintainer_mode+set}" = set; then
10615 enableval="$enable_maintainer_mode"
10616 USE_MAINTAINER_MODE=$enableval
10617 else
10618 USE_MAINTAINER_MODE=no
10619 fi;
10620 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10621 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10622
10623
10624 if test $USE_MAINTAINER_MODE = yes; then
10625 MAINTAINER_MODE_TRUE=
10626 MAINTAINER_MODE_FALSE='#'
10627 else
10628 MAINTAINER_MODE_TRUE='#'
10629 MAINTAINER_MODE_FALSE=
10630 fi
10631
10632 MAINT=$MAINTAINER_MODE_TRUE
10633
10634
10635
10636
10637 if false; then
10638 GENINSRC_NEVER_TRUE=
10639 GENINSRC_NEVER_FALSE='#'
10640 else
10641 GENINSRC_NEVER_TRUE='#'
10642 GENINSRC_NEVER_FALSE=
10643 fi
10644
10645 case ${build_alias} in
10646 "") build_noncanonical=${build} ;;
10647 *) build_noncanonical=${build_alias} ;;
10648 esac
10649
10650 case ${host_alias} in
10651 "") host_noncanonical=${build_noncanonical} ;;
10652 *) host_noncanonical=${host_alias} ;;
10653 esac
10654
10655 case ${target_alias} in
10656 "") target_noncanonical=${host_noncanonical} ;;
10657 *) target_noncanonical=${target_alias} ;;
10658 esac
10659
10660 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
10661 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
10662 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
10663 if test "${enable_install_libbfd+set}" = set; then
10664 enableval="$enable_install_libbfd"
10665 install_libbfd_p=$enableval
10666 else
10667 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
10668 install_libbfd_p=yes
10669 else
10670 install_libbfd_p=no
10671 fi
10672 fi;
10673 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
10674 echo "${ECHO_T}$install_libbfd_p" >&6
10675
10676
10677 if test $install_libbfd_p = yes; then
10678 INSTALL_LIBBFD_TRUE=
10679 INSTALL_LIBBFD_FALSE='#'
10680 else
10681 INSTALL_LIBBFD_TRUE='#'
10682 INSTALL_LIBBFD_FALSE=
10683 fi
10684
10685 # Need _noncanonical variables for this.
10686
10687
10688
10689
10690 # libbfd.a is a host library containing target dependent code
10691 bfdlibdir='$(libdir)'
10692 bfdincludedir='$(includedir)'
10693 if test "${host}" != "${target}"; then
10694 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
10695 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
10696 fi
10697
10698
10699
10700
10701
10702
10703 host64=false
10704 target64=false
10705 bfd_default_target_size=32
10706
10707 # host stuff:
10708
10709 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
10710 # If we haven't got the data from the intl directory,
10711 # assume NLS is disabled.
10712 USE_NLS=no
10713 LIBINTL=
10714 LIBINTL_DEP=
10715 INCINTL=
10716 XGETTEXT=
10717 GMSGFMT=
10718 POSUB=
10719
10720 if test -f ../intl/config.intl; then
10721 . ../intl/config.intl
10722 fi
10723 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10724 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10725 if test x"$USE_NLS" != xyes; then
10726 echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6
10728 else
10729 echo "$as_me:$LINENO: result: yes" >&5
10730 echo "${ECHO_T}yes" >&6
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define ENABLE_NLS 1
10734 _ACEOF
10735
10736
10737 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10738 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10739 # Look for .po and .gmo files in the source directory.
10740 CATALOGS=
10741 XLINGUAS=
10742 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10743 # If there aren't any .gmo files the shell will give us the
10744 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10745 # weeded out.
10746 case "$cat" in *\**)
10747 continue;;
10748 esac
10749 # The quadruple backslash is collapsed to a double backslash
10750 # by the backticks, then collapsed again by the double quotes,
10751 # leaving us with one backslash in the sed expression (right
10752 # before the dot that mustn't act as a wildcard).
10753 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10754 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10755 # The user is allowed to set LINGUAS to a list of languages to
10756 # install catalogs for. If it's empty that means "all of them."
10757 if test "x$LINGUAS" = x; then
10758 CATALOGS="$CATALOGS $cat"
10759 XLINGUAS="$XLINGUAS $lang"
10760 else
10761 case "$LINGUAS" in *$lang*)
10762 CATALOGS="$CATALOGS $cat"
10763 XLINGUAS="$XLINGUAS $lang"
10764 ;;
10765 esac
10766 fi
10767 done
10768 LINGUAS="$XLINGUAS"
10769 echo "$as_me:$LINENO: result: $LINGUAS" >&5
10770 echo "${ECHO_T}$LINGUAS" >&6
10771
10772
10773 DATADIRNAME=share
10774
10775 INSTOBJEXT=.mo
10776
10777 GENCAT=gencat
10778
10779 CATOBJEXT=.gmo
10780
10781 fi
10782
10783 MKINSTALLDIRS=
10784 if test -n "$ac_aux_dir"; then
10785 case "$ac_aux_dir" in
10786 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10787 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10788 esac
10789 fi
10790 if test -z "$MKINSTALLDIRS"; then
10791 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10792 fi
10793
10794
10795
10796 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10797 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10798 # Check whether --enable-nls or --disable-nls was given.
10799 if test "${enable_nls+set}" = set; then
10800 enableval="$enable_nls"
10801 USE_NLS=$enableval
10802 else
10803 USE_NLS=yes
10804 fi;
10805 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10806 echo "${ECHO_T}$USE_NLS" >&6
10807
10808
10809
10810
10811
10812
10813 # Prepare PATH_SEPARATOR.
10814 # The user is always right.
10815 if test "${PATH_SEPARATOR+set}" != set; then
10816 echo "#! /bin/sh" >conf$$.sh
10817 echo "exit 0" >>conf$$.sh
10818 chmod +x conf$$.sh
10819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10820 PATH_SEPARATOR=';'
10821 else
10822 PATH_SEPARATOR=:
10823 fi
10824 rm -f conf$$.sh
10825 fi
10826
10827 # Find out how to test for executable files. Don't use a zero-byte file,
10828 # as systems may use methods other than mode bits to determine executability.
10829 cat >conf$$.file <<_ASEOF
10830 #! /bin/sh
10831 exit 0
10832 _ASEOF
10833 chmod +x conf$$.file
10834 if test -x conf$$.file >/dev/null 2>&1; then
10835 ac_executable_p="test -x"
10836 else
10837 ac_executable_p="test -f"
10838 fi
10839 rm -f conf$$.file
10840
10841 # Extract the first word of "msgfmt", so it can be a program name with args.
10842 set dummy msgfmt; ac_word=$2
10843 echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10845 if test "${ac_cv_path_MSGFMT+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 case "$MSGFMT" in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10851 ;;
10852 *)
10853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10854 for ac_dir in $PATH; do
10855 IFS="$ac_save_IFS"
10856 test -z "$ac_dir" && ac_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10859 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10860 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10861 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10862 break 2
10863 fi
10864 fi
10865 done
10866 done
10867 IFS="$ac_save_IFS"
10868 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10869 ;;
10870 esac
10871 fi
10872 MSGFMT="$ac_cv_path_MSGFMT"
10873 if test "$MSGFMT" != ":"; then
10874 echo "$as_me:$LINENO: result: $MSGFMT" >&5
10875 echo "${ECHO_T}$MSGFMT" >&6
10876 else
10877 echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6
10879 fi
10880
10881 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10882 set dummy gmsgfmt; ac_word=$2
10883 echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10885 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 case $GMSGFMT in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10891 ;;
10892 *)
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10903 fi
10904 done
10905 done
10906
10907 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10908 ;;
10909 esac
10910 fi
10911 GMSGFMT=$ac_cv_path_GMSGFMT
10912
10913 if test -n "$GMSGFMT"; then
10914 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10915 echo "${ECHO_T}$GMSGFMT" >&6
10916 else
10917 echo "$as_me:$LINENO: result: no" >&5
10918 echo "${ECHO_T}no" >&6
10919 fi
10920
10921
10922
10923 # Prepare PATH_SEPARATOR.
10924 # The user is always right.
10925 if test "${PATH_SEPARATOR+set}" != set; then
10926 echo "#! /bin/sh" >conf$$.sh
10927 echo "exit 0" >>conf$$.sh
10928 chmod +x conf$$.sh
10929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10930 PATH_SEPARATOR=';'
10931 else
10932 PATH_SEPARATOR=:
10933 fi
10934 rm -f conf$$.sh
10935 fi
10936
10937 # Find out how to test for executable files. Don't use a zero-byte file,
10938 # as systems may use methods other than mode bits to determine executability.
10939 cat >conf$$.file <<_ASEOF
10940 #! /bin/sh
10941 exit 0
10942 _ASEOF
10943 chmod +x conf$$.file
10944 if test -x conf$$.file >/dev/null 2>&1; then
10945 ac_executable_p="test -x"
10946 else
10947 ac_executable_p="test -f"
10948 fi
10949 rm -f conf$$.file
10950
10951 # Extract the first word of "xgettext", so it can be a program name with args.
10952 set dummy xgettext; ac_word=$2
10953 echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10955 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 case "$XGETTEXT" in
10959 [\\/]* | ?:[\\/]*)
10960 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10961 ;;
10962 *)
10963 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10964 for ac_dir in $PATH; do
10965 IFS="$ac_save_IFS"
10966 test -z "$ac_dir" && ac_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10969 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10970 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10971 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10972 break 2
10973 fi
10974 fi
10975 done
10976 done
10977 IFS="$ac_save_IFS"
10978 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10979 ;;
10980 esac
10981 fi
10982 XGETTEXT="$ac_cv_path_XGETTEXT"
10983 if test "$XGETTEXT" != ":"; then
10984 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10985 echo "${ECHO_T}$XGETTEXT" >&6
10986 else
10987 echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6
10989 fi
10990
10991 rm -f messages.po
10992
10993
10994 # Prepare PATH_SEPARATOR.
10995 # The user is always right.
10996 if test "${PATH_SEPARATOR+set}" != set; then
10997 echo "#! /bin/sh" >conf$$.sh
10998 echo "exit 0" >>conf$$.sh
10999 chmod +x conf$$.sh
11000 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11001 PATH_SEPARATOR=';'
11002 else
11003 PATH_SEPARATOR=:
11004 fi
11005 rm -f conf$$.sh
11006 fi
11007
11008 # Find out how to test for executable files. Don't use a zero-byte file,
11009 # as systems may use methods other than mode bits to determine executability.
11010 cat >conf$$.file <<_ASEOF
11011 #! /bin/sh
11012 exit 0
11013 _ASEOF
11014 chmod +x conf$$.file
11015 if test -x conf$$.file >/dev/null 2>&1; then
11016 ac_executable_p="test -x"
11017 else
11018 ac_executable_p="test -f"
11019 fi
11020 rm -f conf$$.file
11021
11022 # Extract the first word of "msgmerge", so it can be a program name with args.
11023 set dummy msgmerge; ac_word=$2
11024 echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11026 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029 case "$MSGMERGE" in
11030 [\\/]* | ?:[\\/]*)
11031 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11032 ;;
11033 *)
11034 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11035 for ac_dir in $PATH; do
11036 IFS="$ac_save_IFS"
11037 test -z "$ac_dir" && ac_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11040 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11041 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11042 break 2
11043 fi
11044 fi
11045 done
11046 done
11047 IFS="$ac_save_IFS"
11048 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11049 ;;
11050 esac
11051 fi
11052 MSGMERGE="$ac_cv_path_MSGMERGE"
11053 if test "$MSGMERGE" != ":"; then
11054 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11055 echo "${ECHO_T}$MSGMERGE" >&6
11056 else
11057 echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6
11059 fi
11060
11061
11062 if test "$GMSGFMT" != ":"; then
11063 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11064 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11065 : ;
11066 else
11067 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11068 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11069 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11070 GMSGFMT=":"
11071 fi
11072 fi
11073
11074 if test "$XGETTEXT" != ":"; then
11075 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11076 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11077 : ;
11078 else
11079 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11080 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11081 XGETTEXT=":"
11082 fi
11083 rm -f messages.po
11084 fi
11085
11086 ac_config_commands="$ac_config_commands default-1"
11087
11088
11089
11090 # Permit host specific settings.
11091 . ${srcdir}/configure.host
11092
11093
11094 # Find a good install program. We prefer a C program (faster),
11095 # so one script is as good as another. But avoid the broken or
11096 # incompatible versions:
11097 # SysV /etc/install, /usr/sbin/install
11098 # SunOS /usr/etc/install
11099 # IRIX /sbin/install
11100 # AIX /bin/install
11101 # AmigaOS /C/install, which installs bootblocks on floppy discs
11102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11105 # OS/2's system install, which has a completely different semantic
11106 # ./install, which can be erroneously created by make from ./install.sh.
11107 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11108 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11109 if test -z "$INSTALL"; then
11110 if test "${ac_cv_path_install+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $PATH
11115 do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 # Account for people who put trailing slashes in PATH elements.
11119 case $as_dir/ in
11120 ./ | .// | /cC/* | \
11121 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11122 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11123 /usr/ucb/* ) ;;
11124 *)
11125 # OSF1 and SCO ODT 3.0 have their own names for install.
11126 # Don't use installbsd from OSF since it installs stuff as root
11127 # by default.
11128 for ac_prog in ginstall scoinst install; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11131 if test $ac_prog = install &&
11132 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11133 # AIX install. It has an incompatible calling convention.
11134 :
11135 elif test $ac_prog = install &&
11136 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11137 # program-specific install script used by HP pwplus--don't use.
11138 :
11139 else
11140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11141 break 3
11142 fi
11143 fi
11144 done
11145 done
11146 ;;
11147 esac
11148 done
11149
11150
11151 fi
11152 if test "${ac_cv_path_install+set}" = set; then
11153 INSTALL=$ac_cv_path_install
11154 else
11155 # As a last resort, use the slow shell script. We don't cache a
11156 # path for INSTALL within a source directory, because that will
11157 # break other packages using the cache if that directory is
11158 # removed, or if the path is relative.
11159 INSTALL=$ac_install_sh
11160 fi
11161 fi
11162 echo "$as_me:$LINENO: result: $INSTALL" >&5
11163 echo "${ECHO_T}$INSTALL" >&6
11164
11165 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11166 # It thinks the first close brace ends the variable substitution.
11167 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11168
11169 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11170
11171 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11172
11173
11174 BFD_HOST_64BIT_LONG=0
11175 BFD_HOST_LONG_LONG=0
11176 BFD_HOST_64_BIT_DEFINED=0
11177 BFD_HOST_64_BIT=
11178 BFD_HOST_U_64_BIT=
11179
11180 echo "$as_me:$LINENO: checking for long long" >&5
11181 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11182 if test "${bfd_cv_has_long_long+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 else
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191
11192 int
11193 main ()
11194 {
11195 unsigned long long ll = 18446744073709551615ULL;
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202 (eval $ac_compile) 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag"
11210 || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest.$ac_objext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 bfd_cv_has_long_long=yes
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 bfd_cv_has_long_long=no
11228 fi
11229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11230 fi
11231
11232 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
11233 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
11234 if test $bfd_cv_has_long_long = yes; then
11235 BFD_HOST_LONG_LONG=1
11236 echo "$as_me:$LINENO: checking for long long" >&5
11237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11238 if test "${ac_cv_type_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 int
11249 main ()
11250 {
11251 if ((long long *) 0)
11252 return 0;
11253 if (sizeof (long long))
11254 return 0;
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_cv_type_long_long=yes
11282 else
11283 echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11285
11286 ac_cv_type_long_long=no
11287 fi
11288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11289 fi
11290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11292
11293 echo "$as_me:$LINENO: checking size of long long" >&5
11294 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11295 if test "${ac_cv_sizeof_long_long+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 if test "$ac_cv_type_long_long" = yes; then
11299 # The cast to unsigned long works around a bug in the HP C Compiler
11300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11302 # This bug is HP SR number 8606223364.
11303 if test "$cross_compiling" = yes; then
11304 # Depending upon the size, compute the lo and hi bounds.
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 $ac_includes_default
11312 int
11313 main ()
11314 {
11315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11316 test_array [0] = 0
11317
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11324 (eval $ac_compile) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 ac_lo=0 ac_mid=0
11345 while :; do
11346 cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h. */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 $ac_includes_default
11353 int
11354 main ()
11355 {
11356 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11357 test_array [0] = 0
11358
11359 ;
11360 return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag"
11373 || test ! -s conftest.err'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381 (eval $ac_try) 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; }; then
11385 ac_hi=$ac_mid; break
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 ac_lo=`expr $ac_mid + 1`
11391 if test $ac_lo -le $ac_mid; then
11392 ac_lo= ac_hi=
11393 break
11394 fi
11395 ac_mid=`expr 2 '*' $ac_mid + 1`
11396 fi
11397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11398 done
11399 else
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11402
11403 cat >conftest.$ac_ext <<_ACEOF
11404 /* confdefs.h. */
11405 _ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11410 int
11411 main ()
11412 {
11413 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11414 test_array [0] = 0
11415
11416 ;
11417 return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_hi=-1 ac_mid=-1
11443 while :; do
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 $ac_includes_default
11451 int
11452 main ()
11453 {
11454 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11455 test_array [0] = 0
11456
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_lo=$ac_mid; break
11484 else
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11487
11488 ac_hi=`expr '(' $ac_mid ')' - 1`
11489 if test $ac_mid -le $ac_hi; then
11490 ac_lo= ac_hi=
11491 break
11492 fi
11493 ac_mid=`expr 2 '*' $ac_mid`
11494 fi
11495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11496 done
11497 else
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_lo= ac_hi=
11502 fi
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504 fi
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 # Binary search between lo and hi bounds.
11507 while test "x$ac_lo" != "x$ac_hi"; do
11508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 int
11517 main ()
11518 {
11519 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11520 test_array [0] = 0
11521
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 rm -f conftest.$ac_objext
11527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11528 (eval $ac_compile) 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -z "$ac_c_werror_flag"
11536 || test ! -s conftest.err'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_hi=$ac_mid
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ac_lo=`expr '(' $ac_mid ')' + 1`
11554 fi
11555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11556 done
11557 case $ac_lo in
11558 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11560 See \`config.log' for more details." >&5
11561 echo "$as_me: error: cannot compute sizeof (long long), 77
11562 See \`config.log' for more details." >&2;}
11563 { (exit 1); exit 1; }; } ;;
11564 esac
11565 else
11566 if test "$cross_compiling" = yes; then
11567 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11568 See \`config.log' for more details." >&5
11569 echo "$as_me: error: cannot run test program while cross compiling
11570 See \`config.log' for more details." >&2;}
11571 { (exit 1); exit 1; }; }
11572 else
11573 cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h. */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 long longval () { return (long) (sizeof (long long)); }
11581 unsigned long ulongval () { return (long) (sizeof (long long)); }
11582 #include <stdio.h>
11583 #include <stdlib.h>
11584 int
11585 main ()
11586 {
11587
11588 FILE *f = fopen ("conftest.val", "w");
11589 if (! f)
11590 exit (1);
11591 if (((long) (sizeof (long long))) < 0)
11592 {
11593 long i = longval ();
11594 if (i != ((long) (sizeof (long long))))
11595 exit (1);
11596 fprintf (f, "%ld\n", i);
11597 }
11598 else
11599 {
11600 unsigned long i = ulongval ();
11601 if (i != ((long) (sizeof (long long))))
11602 exit (1);
11603 fprintf (f, "%lu\n", i);
11604 }
11605 exit (ferror (f) || fclose (f) != 0);
11606
11607 ;
11608 return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest$ac_exeext
11612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_sizeof_long_long=`cat conftest.val`
11623 else
11624 echo "$as_me: program exited with status $ac_status" >&5
11625 echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ( exit $ac_status )
11629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11630 See \`config.log' for more details." >&5
11631 echo "$as_me: error: cannot compute sizeof (long long), 77
11632 See \`config.log' for more details." >&2;}
11633 { (exit 1); exit 1; }; }
11634 fi
11635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 fi
11638 rm -f conftest.val
11639 else
11640 ac_cv_sizeof_long_long=0
11641 fi
11642 fi
11643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11644 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11645 cat >>confdefs.h <<_ACEOF
11646 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11647 _ACEOF
11648
11649
11650 fi
11651
11652 echo "$as_me:$LINENO: checking for long" >&5
11653 echo $ECHO_N "checking for long... $ECHO_C" >&6
11654 if test "${ac_cv_type_long+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657 cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h. */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 int
11665 main ()
11666 {
11667 if ((long *) 0)
11668 return 0;
11669 if (sizeof (long))
11670 return 0;
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 ac_cv_type_long=yes
11698 else
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11701
11702 ac_cv_type_long=no
11703 fi
11704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705 fi
11706 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11707 echo "${ECHO_T}$ac_cv_type_long" >&6
11708
11709 echo "$as_me:$LINENO: checking size of long" >&5
11710 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11711 if test "${ac_cv_sizeof_long+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 if test "$ac_cv_type_long" = yes; then
11715 # The cast to unsigned long works around a bug in the HP C Compiler
11716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11718 # This bug is HP SR number 8606223364.
11719 if test "$cross_compiling" = yes; then
11720 # Depending upon the size, compute the lo and hi bounds.
11721 cat >conftest.$ac_ext <<_ACEOF
11722 /* confdefs.h. */
11723 _ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 $ac_includes_default
11728 int
11729 main ()
11730 {
11731 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11732 test_array [0] = 0
11733
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 rm -f conftest.$ac_objext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11740 (eval $ac_compile) 2>conftest.er1
11741 ac_status=$?
11742 grep -v '^ *+' conftest.er1 >conftest.err
11743 rm -f conftest.er1
11744 cat conftest.err >&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest.$ac_objext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_lo=0 ac_mid=0
11761 while :; do
11762 cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h. */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 int
11770 main ()
11771 {
11772 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11773 test_array [0] = 0
11774
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781 (eval $ac_compile) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest.$ac_objext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_hi=$ac_mid; break
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_lo=`expr $ac_mid + 1`
11807 if test $ac_lo -le $ac_mid; then
11808 ac_lo= ac_hi=
11809 break
11810 fi
11811 ac_mid=`expr 2 '*' $ac_mid + 1`
11812 fi
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 done
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 $ac_includes_default
11826 int
11827 main ()
11828 {
11829 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11830 test_array [0] = 0
11831
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838 (eval $ac_compile) 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 ac_hi=-1 ac_mid=-1
11859 while :; do
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 $ac_includes_default
11867 int
11868 main ()
11869 {
11870 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11871 test_array [0] = 0
11872
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11879 (eval $ac_compile) 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
11886 { ac_try='test -z "$ac_c_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest.$ac_objext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_lo=$ac_mid; break
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_hi=`expr '(' $ac_mid ')' - 1`
11905 if test $ac_mid -le $ac_hi; then
11906 ac_lo= ac_hi=
11907 break
11908 fi
11909 ac_mid=`expr 2 '*' $ac_mid`
11910 fi
11911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 done
11913 else
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 ac_lo= ac_hi=
11918 fi
11919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11920 fi
11921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11922 # Binary search between lo and hi bounds.
11923 while test "x$ac_lo" != "x$ac_hi"; do
11924 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 $ac_includes_default
11932 int
11933 main ()
11934 {
11935 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11936 test_array [0] = 0
11937
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_c_werror_flag"
11952 || test ! -s conftest.err'
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest.$ac_objext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
11964 ac_hi=$ac_mid
11965 else
11966 echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_lo=`expr '(' $ac_mid ')' + 1`
11970 fi
11971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11972 done
11973 case $ac_lo in
11974 ?*) ac_cv_sizeof_long=$ac_lo;;
11975 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11976 See \`config.log' for more details." >&5
11977 echo "$as_me: error: cannot compute sizeof (long), 77
11978 See \`config.log' for more details." >&2;}
11979 { (exit 1); exit 1; }; } ;;
11980 esac
11981 else
11982 if test "$cross_compiling" = yes; then
11983 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11984 See \`config.log' for more details." >&5
11985 echo "$as_me: error: cannot run test program while cross compiling
11986 See \`config.log' for more details." >&2;}
11987 { (exit 1); exit 1; }; }
11988 else
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h. */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 long longval () { return (long) (sizeof (long)); }
11997 unsigned long ulongval () { return (long) (sizeof (long)); }
11998 #include <stdio.h>
11999 #include <stdlib.h>
12000 int
12001 main ()
12002 {
12003
12004 FILE *f = fopen ("conftest.val", "w");
12005 if (! f)
12006 exit (1);
12007 if (((long) (sizeof (long))) < 0)
12008 {
12009 long i = longval ();
12010 if (i != ((long) (sizeof (long))))
12011 exit (1);
12012 fprintf (f, "%ld\n", i);
12013 }
12014 else
12015 {
12016 unsigned long i = ulongval ();
12017 if (i != ((long) (sizeof (long))))
12018 exit (1);
12019 fprintf (f, "%lu\n", i);
12020 }
12021 exit (ferror (f) || fclose (f) != 0);
12022
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest$ac_exeext
12028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12029 (eval $ac_link) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; }; then
12038 ac_cv_sizeof_long=`cat conftest.val`
12039 else
12040 echo "$as_me: program exited with status $ac_status" >&5
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ( exit $ac_status )
12045 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12046 See \`config.log' for more details." >&5
12047 echo "$as_me: error: cannot compute sizeof (long), 77
12048 See \`config.log' for more details." >&2;}
12049 { (exit 1); exit 1; }; }
12050 fi
12051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12052 fi
12053 fi
12054 rm -f conftest.val
12055 else
12056 ac_cv_sizeof_long=0
12057 fi
12058 fi
12059 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12060 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12061 cat >>confdefs.h <<_ACEOF
12062 #define SIZEOF_LONG $ac_cv_sizeof_long
12063 _ACEOF
12064
12065
12066 if test "x${ac_cv_sizeof_long}" = "x8"; then
12067 host64=true
12068 BFD_HOST_64BIT_LONG=1
12069 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12070 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12071 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12072 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12073 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12074 fi
12075
12076 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12077 BFD_HOST_64_BIT_DEFINED=1
12078 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12079 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12080 fi
12081
12082
12083
12084
12085
12086
12087
12088 # Put a plausible default for CC_FOR_BUILD in Makefile.
12089 if test -z "$CC_FOR_BUILD"; then
12090 if test "x$cross_compiling" = "xno"; then
12091 CC_FOR_BUILD='$(CC)'
12092 else
12093 CC_FOR_BUILD=gcc
12094 fi
12095 fi
12096
12097 # Also set EXEEXT_FOR_BUILD.
12098 if test "x$cross_compiling" = "xno"; then
12099 EXEEXT_FOR_BUILD='$(EXEEXT)'
12100 else
12101 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
12102 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
12103 if test "${bfd_cv_build_exeext+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 rm -f conftest*
12107 echo 'int main () { return 0; }' > conftest.c
12108 bfd_cv_build_exeext=
12109 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12110 for file in conftest.*; do
12111 case $file in
12112 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12113 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12114 esac
12115 done
12116 rm -f conftest*
12117 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12118 fi
12119 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
12120 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
12121 EXEEXT_FOR_BUILD=""
12122 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12123 fi
12124
12125
12126
12127
12128
12129
12130
12131
12132 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
12133 do
12134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12136 echo "$as_me:$LINENO: checking for $ac_header" >&5
12137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 fi
12141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12143 else
12144 # Is the header compilable?
12145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 $ac_includes_default
12154 #include <$ac_header>
12155 _ACEOF
12156 rm -f conftest.$ac_objext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_header_compiler=yes
12179 else
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ac_header_compiler=no
12184 fi
12185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12187 echo "${ECHO_T}$ac_header_compiler" >&6
12188
12189 # Is the header present?
12190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 #include <$ac_header>
12199 _ACEOF
12200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } >/dev/null; then
12208 if test -s conftest.err; then
12209 ac_cpp_err=$ac_c_preproc_warn_flag
12210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12211 else
12212 ac_cpp_err=
12213 fi
12214 else
12215 ac_cpp_err=yes
12216 fi
12217 if test -z "$ac_cpp_err"; then
12218 ac_header_preproc=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 ac_header_preproc=no
12224 fi
12225 rm -f conftest.err conftest.$ac_ext
12226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227 echo "${ECHO_T}$ac_header_preproc" >&6
12228
12229 # So? What about this header?
12230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 yes:no: )
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12237 ;;
12238 no:yes:* )
12239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12251 (
12252 cat <<\_ASBOX
12253 ## ------------------------------------------ ##
12254 ## Report this to the AC_PACKAGE_NAME lists. ##
12255 ## ------------------------------------------ ##
12256 _ASBOX
12257 ) |
12258 sed "s/^/$as_me: WARNING: /" >&2
12259 ;;
12260 esac
12261 echo "$as_me:$LINENO: checking for $ac_header" >&5
12262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 else
12266 eval "$as_ac_Header=\$ac_header_preproc"
12267 fi
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12270
12271 fi
12272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12273 cat >>confdefs.h <<_ACEOF
12274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12275 _ACEOF
12276
12277 fi
12278
12279 done
12280
12281
12282
12283
12284 for ac_header in fcntl.h sys/file.h sys/time.h
12285 do
12286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12288 echo "$as_me:$LINENO: checking for $ac_header" >&5
12289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 fi
12293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12295 else
12296 # Is the header compilable?
12297 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h. */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 $ac_includes_default
12306 #include <$ac_header>
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310 (eval $ac_compile) 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag"
12318 || test ! -s conftest.err'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; } &&
12324 { ac_try='test -s conftest.$ac_objext'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 ac_header_compiler=yes
12331 else
12332 echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 ac_header_compiler=no
12336 fi
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12339 echo "${ECHO_T}$ac_header_compiler" >&6
12340
12341 # Is the header present?
12342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 #include <$ac_header>
12351 _ACEOF
12352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12354 ac_status=$?
12355 grep -v '^ *+' conftest.er1 >conftest.err
12356 rm -f conftest.er1
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } >/dev/null; then
12360 if test -s conftest.err; then
12361 ac_cpp_err=$ac_c_preproc_warn_flag
12362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12363 else
12364 ac_cpp_err=
12365 fi
12366 else
12367 ac_cpp_err=yes
12368 fi
12369 if test -z "$ac_cpp_err"; then
12370 ac_header_preproc=yes
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 ac_header_preproc=no
12376 fi
12377 rm -f conftest.err conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12379 echo "${ECHO_T}$ac_header_preproc" >&6
12380
12381 # So? What about this header?
12382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12383 yes:no: )
12384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12388 ac_header_preproc=yes
12389 ;;
12390 no:yes:* )
12391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12403 (
12404 cat <<\_ASBOX
12405 ## ------------------------------------------ ##
12406 ## Report this to the AC_PACKAGE_NAME lists. ##
12407 ## ------------------------------------------ ##
12408 _ASBOX
12409 ) |
12410 sed "s/^/$as_me: WARNING: /" >&2
12411 ;;
12412 esac
12413 echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418 eval "$as_ac_Header=\$ac_header_preproc"
12419 fi
12420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12422
12423 fi
12424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12427 _ACEOF
12428
12429 fi
12430
12431 done
12432
12433
12434
12435 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12436
12437 acx_cv_header_stdint=stddef.h
12438 acx_cv_header_stdint_kind="(already complete)"
12439 for i in stdint.h $inttype_headers; do
12440 unset ac_cv_type_uintptr_t
12441 unset ac_cv_type_uintmax_t
12442 unset ac_cv_type_int_least32_t
12443 unset ac_cv_type_int_fast32_t
12444 unset ac_cv_type_uint64_t
12445 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
12446 echo "$as_me:$LINENO: checking for uintmax_t" >&5
12447 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
12448 if test "${ac_cv_type_uintmax_t+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 else
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457 #include <sys/types.h>
12458 #include <$i>
12459
12460 int
12461 main ()
12462 {
12463 if ((uintmax_t *) 0)
12464 return 0;
12465 if (sizeof (uintmax_t))
12466 return 0;
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 rm -f conftest.$ac_objext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12473 (eval $ac_compile) 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_type_uintmax_t=yes
12494 else
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 ac_cv_type_uintmax_t=no
12499 fi
12500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12501 fi
12502 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
12503 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
12504 if test $ac_cv_type_uintmax_t = yes; then
12505 acx_cv_header_stdint=$i
12506 else
12507 continue
12508 fi
12509
12510 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12511 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12512 if test "${ac_cv_type_uintptr_t+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 #include <sys/types.h>
12522 #include <$i>
12523
12524 int
12525 main ()
12526 {
12527 if ((uintptr_t *) 0)
12528 return 0;
12529 if (sizeof (uintptr_t))
12530 return 0;
12531 ;
12532 return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
12557 ac_cv_type_uintptr_t=yes
12558 else
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562 ac_cv_type_uintptr_t=no
12563 fi
12564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565 fi
12566 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12567 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12568 if test $ac_cv_type_uintptr_t = yes; then
12569 :
12570 else
12571 acx_cv_header_stdint_kind="(mostly complete)"
12572 fi
12573
12574 echo "$as_me:$LINENO: checking for int_least32_t" >&5
12575 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
12576 if test "${ac_cv_type_int_least32_t+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579 cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h. */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 #include <sys/types.h>
12586 #include <$i>
12587
12588 int
12589 main ()
12590 {
12591 if ((int_least32_t *) 0)
12592 return 0;
12593 if (sizeof (int_least32_t))
12594 return 0;
12595 ;
12596 return 0;
12597 }
12598 _ACEOF
12599 rm -f conftest.$ac_objext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_c_werror_flag"
12609 || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 ac_cv_type_int_least32_t=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12625
12626 ac_cv_type_int_least32_t=no
12627 fi
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 fi
12630 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
12631 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
12632 if test $ac_cv_type_int_least32_t = yes; then
12633 :
12634 else
12635 acx_cv_header_stdint_kind="(mostly complete)"
12636 fi
12637
12638 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
12639 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
12640 if test "${ac_cv_type_int_fast32_t+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h. */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h. */
12649 #include <sys/types.h>
12650 #include <$i>
12651
12652 int
12653 main ()
12654 {
12655 if ((int_fast32_t *) 0)
12656 return 0;
12657 if (sizeof (int_fast32_t))
12658 return 0;
12659 ;
12660 return 0;
12661 }
12662 _ACEOF
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest.$ac_objext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_type_int_fast32_t=yes
12686 else
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690 ac_cv_type_int_fast32_t=no
12691 fi
12692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12695 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
12696 if test $ac_cv_type_int_fast32_t = yes; then
12697 :
12698 else
12699 acx_cv_header_stdint_kind="(mostly complete)"
12700 fi
12701
12702 echo "$as_me:$LINENO: checking for uint64_t" >&5
12703 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12704 if test "${ac_cv_type_uint64_t+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <sys/types.h>
12714 #include <$i>
12715
12716 int
12717 main ()
12718 {
12719 if ((uint64_t *) 0)
12720 return 0;
12721 if (sizeof (uint64_t))
12722 return 0;
12723 ;
12724 return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_type_uint64_t=yes
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_cv_type_uint64_t=no
12755 fi
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12757 fi
12758 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12759 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12760 if test $ac_cv_type_uint64_t = yes; then
12761 :
12762 else
12763 acx_cv_header_stdint_kind="(lacks uint64_t)"
12764 fi
12765
12766 break
12767 done
12768 if test "$acx_cv_header_stdint" = stddef.h; then
12769 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12770 for i in stdint.h $inttype_headers; do
12771 unset ac_cv_type_uintptr_t
12772 unset ac_cv_type_uint32_t
12773 unset ac_cv_type_uint64_t
12774 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
12775 echo "$as_me:$LINENO: checking for uint32_t" >&5
12776 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
12777 if test "${ac_cv_type_uint32_t+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12786 #include <sys/types.h>
12787 #include <$i>
12788
12789 int
12790 main ()
12791 {
12792 if ((uint32_t *) 0)
12793 return 0;
12794 if (sizeof (uint32_t))
12795 return 0;
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>conftest.er1
12803 ac_status=$?
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_type_uint32_t=yes
12823 else
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 ac_cv_type_uint32_t=no
12828 fi
12829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12832 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
12833 if test $ac_cv_type_uint32_t = yes; then
12834 acx_cv_header_stdint=$i
12835 else
12836 continue
12837 fi
12838
12839 echo "$as_me:$LINENO: checking for uint64_t" >&5
12840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
12841 if test "${ac_cv_type_uint64_t+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h. */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12850 #include <sys/types.h>
12851 #include <$i>
12852
12853 int
12854 main ()
12855 {
12856 if ((uint64_t *) 0)
12857 return 0;
12858 if (sizeof (uint64_t))
12859 return 0;
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12866 (eval $ac_compile) 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -z "$ac_c_werror_flag"
12874 || test ! -s conftest.err'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; } &&
12880 { ac_try='test -s conftest.$ac_objext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_type_uint64_t=yes
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_cv_type_uint64_t=no
12892 fi
12893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12894 fi
12895 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12896 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
12897
12898 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12899 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12900 if test "${ac_cv_type_uintptr_t+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 #include <sys/types.h>
12910 #include <$i>
12911
12912 int
12913 main ()
12914 {
12915 if ((uintptr_t *) 0)
12916 return 0;
12917 if (sizeof (uintptr_t))
12918 return 0;
12919 ;
12920 return 0;
12921 }
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -z "$ac_c_werror_flag"
12933 || test ! -s conftest.err'
12934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12936 ac_status=$?
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; } &&
12939 { ac_try='test -s conftest.$ac_objext'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; }; then
12945 ac_cv_type_uintptr_t=yes
12946 else
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_cv_type_uintptr_t=no
12951 fi
12952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953 fi
12954 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12955 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12956
12957 break
12958 done
12959 fi
12960 if test "$acx_cv_header_stdint" = stddef.h; then
12961 acx_cv_header_stdint_kind="(u_intXX_t style)"
12962 for i in sys/types.h $inttype_headers; do
12963 unset ac_cv_type_u_int32_t
12964 unset ac_cv_type_u_int64_t
12965 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12966 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12967 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12968 if test "${ac_cv_type_u_int32_t+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 #include <sys/types.h>
12978 #include <$i>
12979
12980 int
12981 main ()
12982 {
12983 if ((u_int32_t *) 0)
12984 return 0;
12985 if (sizeof (u_int32_t))
12986 return 0;
12987 ;
12988 return 0;
12989 }
12990 _ACEOF
12991 rm -f conftest.$ac_objext
12992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
13000 { ac_try='test -z "$ac_c_werror_flag"
13001 || test ! -s conftest.err'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_type_u_int32_t=yes
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13017
13018 ac_cv_type_u_int32_t=no
13019 fi
13020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021 fi
13022 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
13023 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
13024 if test $ac_cv_type_u_int32_t = yes; then
13025 acx_cv_header_stdint=$i
13026 else
13027 continue
13028 fi
13029
13030 echo "$as_me:$LINENO: checking for u_int64_t" >&5
13031 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
13032 if test "${ac_cv_type_u_int64_t+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include <sys/types.h>
13042 #include <$i>
13043
13044 int
13045 main ()
13046 {
13047 if ((u_int64_t *) 0)
13048 return 0;
13049 if (sizeof (u_int64_t))
13050 return 0;
13051 ;
13052 return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>conftest.er1
13058 ac_status=$?
13059 grep -v '^ *+' conftest.er1 >conftest.err
13060 rm -f conftest.er1
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } &&
13064 { ac_try='test -z "$ac_c_werror_flag"
13065 || test ! -s conftest.err'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_type_u_int64_t=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ac_cv_type_u_int64_t=no
13083 fi
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 fi
13086 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13087 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
13088
13089 break
13090 done
13091 fi
13092 if test "$acx_cv_header_stdint" = stddef.h; then
13093 acx_cv_header_stdint_kind="(using manual detection)"
13094 fi
13095
13096 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13097 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13098 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13099 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13100 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13101
13102 # ----------------- Summarize what we found so far
13103
13104 echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5
13105 echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6
13106
13107 case `$as_basename bfd_stdint.h ||
13108 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13109 Xbfd_stdint.h : 'X\(//\)$' \| \
13110 Xbfd_stdint.h : 'X\(/\)$' \| \
13111 . : '\(.\)' 2>/dev/null ||
13112 echo X/bfd_stdint.h |
13113 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13114 /^X\/\(\/\/\)$/{ s//\1/; q; }
13115 /^X\/\(\/\).*/{ s//\1/; q; }
13116 s/.*/./; q'` in
13117 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13118 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13119 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
13120 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13121 *) ;;
13122 esac
13123
13124 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13125 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
13126
13127 # ----------------- done included file, check C basic types --------
13128
13129 # Lacking an uintptr_t? Test size of void *
13130 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13131 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
13132 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13133 if test "${ac_cv_type_void_p+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13143 int
13144 main ()
13145 {
13146 if ((void * *) 0)
13147 return 0;
13148 if (sizeof (void *))
13149 return 0;
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_type_void_p=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_cv_type_void_p=no
13182 fi
13183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13186 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13187
13188 echo "$as_me:$LINENO: checking size of void *" >&5
13189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13190 if test "${ac_cv_sizeof_void_p+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13193 if test "$ac_cv_type_void_p" = yes; then
13194 # The cast to unsigned long works around a bug in the HP C Compiler
13195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13197 # This bug is HP SR number 8606223364.
13198 if test "$cross_compiling" = yes; then
13199 # Depending upon the size, compute the lo and hi bounds.
13200 cat >conftest.$ac_ext <<_ACEOF
13201 /* confdefs.h. */
13202 _ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 $ac_includes_default
13207 int
13208 main ()
13209 {
13210 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13211 test_array [0] = 0
13212
13213 ;
13214 return 0;
13215 }
13216 _ACEOF
13217 rm -f conftest.$ac_objext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13219 (eval $ac_compile) 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } &&
13226 { ac_try='test -z "$ac_c_werror_flag"
13227 || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_lo=0 ac_mid=0
13240 while :; do
13241 cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h. */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13247 $ac_includes_default
13248 int
13249 main ()
13250 {
13251 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13252 test_array [0] = 0
13253
13254 ;
13255 return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_hi=$ac_mid; break
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_lo=`expr $ac_mid + 1`
13286 if test $ac_lo -le $ac_mid; then
13287 ac_lo= ac_hi=
13288 break
13289 fi
13290 ac_mid=`expr 2 '*' $ac_mid + 1`
13291 fi
13292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13293 done
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298 cat >conftest.$ac_ext <<_ACEOF
13299 /* confdefs.h. */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h. */
13304 $ac_includes_default
13305 int
13306 main ()
13307 {
13308 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13309 test_array [0] = 0
13310
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317 (eval $ac_compile) 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag"
13325 || test ! -s conftest.err'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; } &&
13331 { ac_try='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_hi=-1 ac_mid=-1
13338 while :; do
13339 cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h. */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 int
13347 main ()
13348 {
13349 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13350 test_array [0] = 0
13351
13352 ;
13353 return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag"
13366 || test ! -s conftest.err'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; } &&
13372 { ac_try='test -s conftest.$ac_objext'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_lo=$ac_mid; break
13379 else
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_hi=`expr '(' $ac_mid ')' - 1`
13384 if test $ac_mid -le $ac_hi; then
13385 ac_lo= ac_hi=
13386 break
13387 fi
13388 ac_mid=`expr 2 '*' $ac_mid`
13389 fi
13390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391 done
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_lo= ac_hi=
13397 fi
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401 # Binary search between lo and hi bounds.
13402 while test "x$ac_lo" != "x$ac_hi"; do
13403 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13410 $ac_includes_default
13411 int
13412 main ()
13413 {
13414 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13415 test_array [0] = 0
13416
13417 ;
13418 return 0;
13419 }
13420 _ACEOF
13421 rm -f conftest.$ac_objext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13423 (eval $ac_compile) 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13440 ac_status=$?
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 ac_hi=$ac_mid
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_lo=`expr '(' $ac_mid ')' + 1`
13449 fi
13450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13451 done
13452 case $ac_lo in
13453 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13454 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: cannot compute sizeof (void *), 77
13457 See \`config.log' for more details." >&2;}
13458 { (exit 1); exit 1; }; } ;;
13459 esac
13460 else
13461 if test "$cross_compiling" = yes; then
13462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463 See \`config.log' for more details." >&5
13464 echo "$as_me: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
13467 else
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h. */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13475 long longval () { return (long) (sizeof (void *)); }
13476 unsigned long ulongval () { return (long) (sizeof (void *)); }
13477 #include <stdio.h>
13478 #include <stdlib.h>
13479 int
13480 main ()
13481 {
13482
13483 FILE *f = fopen ("conftest.val", "w");
13484 if (! f)
13485 exit (1);
13486 if (((long) (sizeof (void *))) < 0)
13487 {
13488 long i = longval ();
13489 if (i != ((long) (sizeof (void *))))
13490 exit (1);
13491 fprintf (f, "%ld\n", i);
13492 }
13493 else
13494 {
13495 unsigned long i = ulongval ();
13496 if (i != ((long) (sizeof (void *))))
13497 exit (1);
13498 fprintf (f, "%lu\n", i);
13499 }
13500 exit (ferror (f) || fclose (f) != 0);
13501
13502 ;
13503 return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508 (eval $ac_link) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 ac_cv_sizeof_void_p=`cat conftest.val`
13518 else
13519 echo "$as_me: program exited with status $ac_status" >&5
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 ( exit $ac_status )
13524 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13525 See \`config.log' for more details." >&5
13526 echo "$as_me: error: cannot compute sizeof (void *), 77
13527 See \`config.log' for more details." >&2;}
13528 { (exit 1); exit 1; }; }
13529 fi
13530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 fi
13533 rm -f conftest.val
13534 else
13535 ac_cv_sizeof_void_p=0
13536 fi
13537 fi
13538 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13539 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13540 cat >>confdefs.h <<_ACEOF
13541 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13542 _ACEOF
13543
13544 ;;
13545 esac
13546
13547 # Lacking an uint64_t? Test size of long
13548 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13549 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
13550 echo $ECHO_N "checking for long... $ECHO_C" >&6
13551 if test "${ac_cv_type_long+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h. */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 int
13562 main ()
13563 {
13564 if ((long *) 0)
13565 return 0;
13566 if (sizeof (long))
13567 return 0;
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_type_long=yes
13595 else
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599 ac_cv_type_long=no
13600 fi
13601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602 fi
13603 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13604 echo "${ECHO_T}$ac_cv_type_long" >&6
13605
13606 echo "$as_me:$LINENO: checking size of long" >&5
13607 echo $ECHO_N "checking size of long... $ECHO_C" >&6
13608 if test "${ac_cv_sizeof_long+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611 if test "$ac_cv_type_long" = yes; then
13612 # The cast to unsigned long works around a bug in the HP C Compiler
13613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13615 # This bug is HP SR number 8606223364.
13616 if test "$cross_compiling" = yes; then
13617 # Depending upon the size, compute the lo and hi bounds.
13618 cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h. */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 $ac_includes_default
13625 int
13626 main ()
13627 {
13628 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13629 test_array [0] = 0
13630
13631 ;
13632 return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637 (eval $ac_compile) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -z "$ac_c_werror_flag"
13645 || test ! -s conftest.err'
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; }; then
13657 ac_lo=0 ac_mid=0
13658 while :; do
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 $ac_includes_default
13666 int
13667 main ()
13668 {
13669 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13670 test_array [0] = 0
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -z "$ac_c_werror_flag"
13686 || test ! -s conftest.err'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13689 ac_status=$?
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; } &&
13692 { ac_try='test -s conftest.$ac_objext'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; }; then
13698 ac_hi=$ac_mid; break
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_lo=`expr $ac_mid + 1`
13704 if test $ac_lo -le $ac_mid; then
13705 ac_lo= ac_hi=
13706 break
13707 fi
13708 ac_mid=`expr 2 '*' $ac_mid + 1`
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 done
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 int
13724 main ()
13725 {
13726 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13727 test_array [0] = 0
13728
13729 ;
13730 return 0;
13731 }
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -z "$ac_c_werror_flag"
13743 || test ! -s conftest.err'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; } &&
13749 { ac_try='test -s conftest.$ac_objext'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; }; then
13755 ac_hi=-1 ac_mid=-1
13756 while :; do
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 $ac_includes_default
13764 int
13765 main ()
13766 {
13767 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13768 test_array [0] = 0
13769
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 rm -f conftest.$ac_objext
13775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13776 (eval $ac_compile) 2>conftest.er1
13777 ac_status=$?
13778 grep -v '^ *+' conftest.er1 >conftest.err
13779 rm -f conftest.er1
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } &&
13783 { ac_try='test -z "$ac_c_werror_flag"
13784 || test ! -s conftest.err'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 ac_lo=$ac_mid; break
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_hi=`expr '(' $ac_mid ')' - 1`
13802 if test $ac_mid -le $ac_hi; then
13803 ac_lo= ac_hi=
13804 break
13805 fi
13806 ac_mid=`expr 2 '*' $ac_mid`
13807 fi
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 done
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_lo= ac_hi=
13815 fi
13816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817 fi
13818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 # Binary search between lo and hi bounds.
13820 while test "x$ac_lo" != "x$ac_hi"; do
13821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 $ac_includes_default
13829 int
13830 main ()
13831 {
13832 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13833 test_array [0] = 0
13834
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest.$ac_objext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_hi=$ac_mid
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_lo=`expr '(' $ac_mid ')' + 1`
13867 fi
13868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13869 done
13870 case $ac_lo in
13871 ?*) ac_cv_sizeof_long=$ac_lo;;
13872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13873 See \`config.log' for more details." >&5
13874 echo "$as_me: error: cannot compute sizeof (long), 77
13875 See \`config.log' for more details." >&2;}
13876 { (exit 1); exit 1; }; } ;;
13877 esac
13878 else
13879 if test "$cross_compiling" = yes; then
13880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13881 See \`config.log' for more details." >&5
13882 echo "$as_me: error: cannot run test program while cross compiling
13883 See \`config.log' for more details." >&2;}
13884 { (exit 1); exit 1; }; }
13885 else
13886 cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h. */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13893 long longval () { return (long) (sizeof (long)); }
13894 unsigned long ulongval () { return (long) (sizeof (long)); }
13895 #include <stdio.h>
13896 #include <stdlib.h>
13897 int
13898 main ()
13899 {
13900
13901 FILE *f = fopen ("conftest.val", "w");
13902 if (! f)
13903 exit (1);
13904 if (((long) (sizeof (long))) < 0)
13905 {
13906 long i = longval ();
13907 if (i != ((long) (sizeof (long))))
13908 exit (1);
13909 fprintf (f, "%ld\n", i);
13910 }
13911 else
13912 {
13913 unsigned long i = ulongval ();
13914 if (i != ((long) (sizeof (long))))
13915 exit (1);
13916 fprintf (f, "%lu\n", i);
13917 }
13918 exit (ferror (f) || fclose (f) != 0);
13919
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_cv_sizeof_long=`cat conftest.val`
13936 else
13937 echo "$as_me: program exited with status $ac_status" >&5
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941 ( exit $ac_status )
13942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13943 See \`config.log' for more details." >&5
13944 echo "$as_me: error: cannot compute sizeof (long), 77
13945 See \`config.log' for more details." >&2;}
13946 { (exit 1); exit 1; }; }
13947 fi
13948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 fi
13951 rm -f conftest.val
13952 else
13953 ac_cv_sizeof_long=0
13954 fi
13955 fi
13956 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13957 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13958 cat >>confdefs.h <<_ACEOF
13959 #define SIZEOF_LONG $ac_cv_sizeof_long
13960 _ACEOF
13961
13962 ;;
13963 esac
13964
13965 if test $acx_cv_header_stdint = stddef.h; then
13966 # Lacking a good header? Test size of everything and deduce all types.
13967 echo "$as_me:$LINENO: checking for int" >&5
13968 echo $ECHO_N "checking for int... $ECHO_C" >&6
13969 if test "${ac_cv_type_int+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h. */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 $ac_includes_default
13979 int
13980 main ()
13981 {
13982 if ((int *) 0)
13983 return 0;
13984 if (sizeof (int))
13985 return 0;
13986 ;
13987 return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } &&
13999 { ac_try='test -z "$ac_c_werror_flag"
14000 || test ! -s conftest.err'
14001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002 (eval $ac_try) 2>&5
14003 ac_status=$?
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); }; } &&
14006 { ac_try='test -s conftest.$ac_objext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_cv_type_int=yes
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_cv_type_int=no
14018 fi
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020 fi
14021 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14022 echo "${ECHO_T}$ac_cv_type_int" >&6
14023
14024 echo "$as_me:$LINENO: checking size of int" >&5
14025 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14026 if test "${ac_cv_sizeof_int+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029 if test "$ac_cv_type_int" = yes; then
14030 # The cast to unsigned long works around a bug in the HP C Compiler
14031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14033 # This bug is HP SR number 8606223364.
14034 if test "$cross_compiling" = yes; then
14035 # Depending upon the size, compute the lo and hi bounds.
14036 cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h. */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 $ac_includes_default
14043 int
14044 main ()
14045 {
14046 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14047 test_array [0] = 0
14048
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 rm -f conftest.$ac_objext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14055 (eval $ac_compile) 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest.$ac_objext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 ac_lo=0 ac_mid=0
14076 while :; do
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h. */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14084 int
14085 main ()
14086 {
14087 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14088 test_array [0] = 0
14089
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14096 (eval $ac_compile) 2>conftest.er1
14097 ac_status=$?
14098 grep -v '^ *+' conftest.er1 >conftest.err
14099 rm -f conftest.er1
14100 cat conftest.err >&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -z "$ac_c_werror_flag"
14104 || test ! -s conftest.err'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_hi=$ac_mid; break
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121 ac_lo=`expr $ac_mid + 1`
14122 if test $ac_lo -le $ac_mid; then
14123 ac_lo= ac_hi=
14124 break
14125 fi
14126 ac_mid=`expr 2 '*' $ac_mid + 1`
14127 fi
14128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14129 done
14130 else
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 $ac_includes_default
14141 int
14142 main ()
14143 {
14144 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14145 test_array [0] = 0
14146
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153 (eval $ac_compile) 2>conftest.er1
14154 ac_status=$?
14155 grep -v '^ *+' conftest.er1 >conftest.err
14156 rm -f conftest.er1
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_c_werror_flag"
14161 || test ! -s conftest.err'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; } &&
14167 { ac_try='test -s conftest.$ac_objext'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 ac_hi=-1 ac_mid=-1
14174 while :; do
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181 $ac_includes_default
14182 int
14183 main ()
14184 {
14185 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14186 test_array [0] = 0
14187
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 rm -f conftest.$ac_objext
14193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag"
14202 || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest.$ac_objext'
14209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_lo=$ac_mid; break
14215 else
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 ac_hi=`expr '(' $ac_mid ')' - 1`
14220 if test $ac_mid -le $ac_hi; then
14221 ac_lo= ac_hi=
14222 break
14223 fi
14224 ac_mid=`expr 2 '*' $ac_mid`
14225 fi
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 done
14228 else
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 ac_lo= ac_hi=
14233 fi
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 # Binary search between lo and hi bounds.
14238 while test "x$ac_lo" != "x$ac_hi"; do
14239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h. */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 $ac_includes_default
14247 int
14248 main ()
14249 {
14250 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14251 test_array [0] = 0
14252
14253 ;
14254 return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14270 ac_status=$?
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest.$ac_objext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_hi=$ac_mid
14280 else
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ac_lo=`expr '(' $ac_mid ')' + 1`
14285 fi
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287 done
14288 case $ac_lo in
14289 ?*) ac_cv_sizeof_int=$ac_lo;;
14290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14291 See \`config.log' for more details." >&5
14292 echo "$as_me: error: cannot compute sizeof (int), 77
14293 See \`config.log' for more details." >&2;}
14294 { (exit 1); exit 1; }; } ;;
14295 esac
14296 else
14297 if test "$cross_compiling" = yes; then
14298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14299 See \`config.log' for more details." >&5
14300 echo "$as_me: error: cannot run test program while cross compiling
14301 See \`config.log' for more details." >&2;}
14302 { (exit 1); exit 1; }; }
14303 else
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h. */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14310 $ac_includes_default
14311 long longval () { return (long) (sizeof (int)); }
14312 unsigned long ulongval () { return (long) (sizeof (int)); }
14313 #include <stdio.h>
14314 #include <stdlib.h>
14315 int
14316 main ()
14317 {
14318
14319 FILE *f = fopen ("conftest.val", "w");
14320 if (! f)
14321 exit (1);
14322 if (((long) (sizeof (int))) < 0)
14323 {
14324 long i = longval ();
14325 if (i != ((long) (sizeof (int))))
14326 exit (1);
14327 fprintf (f, "%ld\n", i);
14328 }
14329 else
14330 {
14331 unsigned long i = ulongval ();
14332 if (i != ((long) (sizeof (int))))
14333 exit (1);
14334 fprintf (f, "%lu\n", i);
14335 }
14336 exit (ferror (f) || fclose (f) != 0);
14337
14338 ;
14339 return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_cv_sizeof_int=`cat conftest.val`
14354 else
14355 echo "$as_me: program exited with status $ac_status" >&5
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 ( exit $ac_status )
14360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14361 See \`config.log' for more details." >&5
14362 echo "$as_me: error: cannot compute sizeof (int), 77
14363 See \`config.log' for more details." >&2;}
14364 { (exit 1); exit 1; }; }
14365 fi
14366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14367 fi
14368 fi
14369 rm -f conftest.val
14370 else
14371 ac_cv_sizeof_int=0
14372 fi
14373 fi
14374 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14375 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14376 cat >>confdefs.h <<_ACEOF
14377 #define SIZEOF_INT $ac_cv_sizeof_int
14378 _ACEOF
14379
14380
14381 echo "$as_me:$LINENO: checking for short" >&5
14382 echo $ECHO_N "checking for short... $ECHO_C" >&6
14383 if test "${ac_cv_type_short+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386 cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h. */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 $ac_includes_default
14393 int
14394 main ()
14395 {
14396 if ((short *) 0)
14397 return 0;
14398 if (sizeof (short))
14399 return 0;
14400 ;
14401 return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>conftest.er1
14407 ac_status=$?
14408 grep -v '^ *+' conftest.er1 >conftest.err
14409 rm -f conftest.er1
14410 cat conftest.err >&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); } &&
14413 { ac_try='test -z "$ac_c_werror_flag"
14414 || test ! -s conftest.err'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; } &&
14420 { ac_try='test -s conftest.$ac_objext'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }; then
14426 ac_cv_type_short=yes
14427 else
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_cv_type_short=no
14432 fi
14433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14434 fi
14435 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14436 echo "${ECHO_T}$ac_cv_type_short" >&6
14437
14438 echo "$as_me:$LINENO: checking size of short" >&5
14439 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14440 if test "${ac_cv_sizeof_short+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443 if test "$ac_cv_type_short" = yes; then
14444 # The cast to unsigned long works around a bug in the HP C Compiler
14445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14447 # This bug is HP SR number 8606223364.
14448 if test "$cross_compiling" = yes; then
14449 # Depending upon the size, compute the lo and hi bounds.
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14461 test_array [0] = 0
14462
14463 ;
14464 return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>conftest.er1
14470 ac_status=$?
14471 grep -v '^ *+' conftest.er1 >conftest.err
14472 rm -f conftest.er1
14473 cat conftest.err >&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -z "$ac_c_werror_flag"
14477 || test ! -s conftest.err'
14478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14480 ac_status=$?
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; } &&
14483 { ac_try='test -s conftest.$ac_objext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 ac_lo=0 ac_mid=0
14490 while :; do
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14498 int
14499 main ()
14500 {
14501 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14502 test_array [0] = 0
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_hi=$ac_mid; break
14531 else
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 ac_lo=`expr $ac_mid + 1`
14536 if test $ac_lo -le $ac_mid; then
14537 ac_lo= ac_hi=
14538 break
14539 fi
14540 ac_mid=`expr 2 '*' $ac_mid + 1`
14541 fi
14542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14543 done
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14555 int
14556 main ()
14557 {
14558 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14559 test_array [0] = 0
14560
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } &&
14574 { ac_try='test -z "$ac_c_werror_flag"
14575 || test ! -s conftest.err'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; } &&
14581 { ac_try='test -s conftest.$ac_objext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 ac_hi=-1 ac_mid=-1
14588 while :; do
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 $ac_includes_default
14596 int
14597 main ()
14598 {
14599 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14600 test_array [0] = 0
14601
14602 ;
14603 return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -z "$ac_c_werror_flag"
14616 || test ! -s conftest.err'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try='test -s conftest.$ac_objext'
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_lo=$ac_mid; break
14629 else
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_hi=`expr '(' $ac_mid ')' - 1`
14634 if test $ac_mid -le $ac_hi; then
14635 ac_lo= ac_hi=
14636 break
14637 fi
14638 ac_mid=`expr 2 '*' $ac_mid`
14639 fi
14640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14641 done
14642 else
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 ac_lo= ac_hi=
14647 fi
14648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14649 fi
14650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14651 # Binary search between lo and hi bounds.
14652 while test "x$ac_lo" != "x$ac_hi"; do
14653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h. */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 $ac_includes_default
14661 int
14662 main ()
14663 {
14664 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14665 test_array [0] = 0
14666
14667 ;
14668 return 0;
14669 }
14670 _ACEOF
14671 rm -f conftest.$ac_objext
14672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14673 (eval $ac_compile) 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag"
14681 || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_hi=$ac_mid
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_lo=`expr '(' $ac_mid ')' + 1`
14699 fi
14700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14701 done
14702 case $ac_lo in
14703 ?*) ac_cv_sizeof_short=$ac_lo;;
14704 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14705 See \`config.log' for more details." >&5
14706 echo "$as_me: error: cannot compute sizeof (short), 77
14707 See \`config.log' for more details." >&2;}
14708 { (exit 1); exit 1; }; } ;;
14709 esac
14710 else
14711 if test "$cross_compiling" = yes; then
14712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14713 See \`config.log' for more details." >&5
14714 echo "$as_me: error: cannot run test program while cross compiling
14715 See \`config.log' for more details." >&2;}
14716 { (exit 1); exit 1; }; }
14717 else
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h. */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 $ac_includes_default
14725 long longval () { return (long) (sizeof (short)); }
14726 unsigned long ulongval () { return (long) (sizeof (short)); }
14727 #include <stdio.h>
14728 #include <stdlib.h>
14729 int
14730 main ()
14731 {
14732
14733 FILE *f = fopen ("conftest.val", "w");
14734 if (! f)
14735 exit (1);
14736 if (((long) (sizeof (short))) < 0)
14737 {
14738 long i = longval ();
14739 if (i != ((long) (sizeof (short))))
14740 exit (1);
14741 fprintf (f, "%ld\n", i);
14742 }
14743 else
14744 {
14745 unsigned long i = ulongval ();
14746 if (i != ((long) (sizeof (short))))
14747 exit (1);
14748 fprintf (f, "%lu\n", i);
14749 }
14750 exit (ferror (f) || fclose (f) != 0);
14751
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest$ac_exeext
14757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14758 (eval $ac_link) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_cv_sizeof_short=`cat conftest.val`
14768 else
14769 echo "$as_me: program exited with status $ac_status" >&5
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ( exit $ac_status )
14774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14775 See \`config.log' for more details." >&5
14776 echo "$as_me: error: cannot compute sizeof (short), 77
14777 See \`config.log' for more details." >&2;}
14778 { (exit 1); exit 1; }; }
14779 fi
14780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14781 fi
14782 fi
14783 rm -f conftest.val
14784 else
14785 ac_cv_sizeof_short=0
14786 fi
14787 fi
14788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14789 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14790 cat >>confdefs.h <<_ACEOF
14791 #define SIZEOF_SHORT $ac_cv_sizeof_short
14792 _ACEOF
14793
14794
14795 echo "$as_me:$LINENO: checking for char" >&5
14796 echo $ECHO_N "checking for char... $ECHO_C" >&6
14797 if test "${ac_cv_type_char+set}" = set; then
14798 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 int
14808 main ()
14809 {
14810 if ((char *) 0)
14811 return 0;
14812 if (sizeof (char))
14813 return 0;
14814 ;
14815 return 0;
14816 }
14817 _ACEOF
14818 rm -f conftest.$ac_objext
14819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14820 (eval $ac_compile) 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } &&
14827 { ac_try='test -z "$ac_c_werror_flag"
14828 || test ! -s conftest.err'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; } &&
14834 { ac_try='test -s conftest.$ac_objext'
14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836 (eval $ac_try) 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; }; then
14840 ac_cv_type_char=yes
14841 else
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845 ac_cv_type_char=no
14846 fi
14847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14848 fi
14849 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14850 echo "${ECHO_T}$ac_cv_type_char" >&6
14851
14852 echo "$as_me:$LINENO: checking size of char" >&5
14853 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14854 if test "${ac_cv_sizeof_char+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 if test "$ac_cv_type_char" = yes; then
14858 # The cast to unsigned long works around a bug in the HP C Compiler
14859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14861 # This bug is HP SR number 8606223364.
14862 if test "$cross_compiling" = yes; then
14863 # Depending upon the size, compute the lo and hi bounds.
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 $ac_includes_default
14871 int
14872 main ()
14873 {
14874 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14875 test_array [0] = 0
14876
14877 ;
14878 return 0;
14879 }
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_lo=0 ac_mid=0
14904 while :; do
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14912 int
14913 main ()
14914 {
14915 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14916 test_array [0] = 0
14917
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924 (eval $ac_compile) 2>conftest.er1
14925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try='test -s conftest.$ac_objext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_hi=$ac_mid; break
14945 else
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 ac_lo=`expr $ac_mid + 1`
14950 if test $ac_lo -le $ac_mid; then
14951 ac_lo= ac_hi=
14952 break
14953 fi
14954 ac_mid=`expr 2 '*' $ac_mid + 1`
14955 fi
14956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14957 done
14958 else
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h. */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 $ac_includes_default
14969 int
14970 main ()
14971 {
14972 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14973 test_array [0] = 0
14974
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext
14980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14981 (eval $ac_compile) 2>conftest.er1
14982 ac_status=$?
14983 grep -v '^ *+' conftest.er1 >conftest.err
14984 rm -f conftest.er1
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } &&
14988 { ac_try='test -z "$ac_c_werror_flag"
14989 || test ! -s conftest.err'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try='test -s conftest.$ac_objext'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; }; then
15001 ac_hi=-1 ac_mid=-1
15002 while :; do
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h. */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 $ac_includes_default
15010 int
15011 main ()
15012 {
15013 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15014 test_array [0] = 0
15015
15016 ;
15017 return 0;
15018 }
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042 ac_lo=$ac_mid; break
15043 else
15044 echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 ac_hi=`expr '(' $ac_mid ')' - 1`
15048 if test $ac_mid -le $ac_hi; then
15049 ac_lo= ac_hi=
15050 break
15051 fi
15052 ac_mid=`expr 2 '*' $ac_mid`
15053 fi
15054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15055 done
15056 else
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15059
15060 ac_lo= ac_hi=
15061 fi
15062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15063 fi
15064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15065 # Binary search between lo and hi bounds.
15066 while test "x$ac_lo" != "x$ac_hi"; do
15067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h. */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 $ac_includes_default
15075 int
15076 main ()
15077 {
15078 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15079 test_array [0] = 0
15080
15081 ;
15082 return 0;
15083 }
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_hi=$ac_mid
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_lo=`expr '(' $ac_mid ')' + 1`
15113 fi
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15115 done
15116 case $ac_lo in
15117 ?*) ac_cv_sizeof_char=$ac_lo;;
15118 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15119 See \`config.log' for more details." >&5
15120 echo "$as_me: error: cannot compute sizeof (char), 77
15121 See \`config.log' for more details." >&2;}
15122 { (exit 1); exit 1; }; } ;;
15123 esac
15124 else
15125 if test "$cross_compiling" = yes; then
15126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15127 See \`config.log' for more details." >&5
15128 echo "$as_me: error: cannot run test program while cross compiling
15129 See \`config.log' for more details." >&2;}
15130 { (exit 1); exit 1; }; }
15131 else
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15138 $ac_includes_default
15139 long longval () { return (long) (sizeof (char)); }
15140 unsigned long ulongval () { return (long) (sizeof (char)); }
15141 #include <stdio.h>
15142 #include <stdlib.h>
15143 int
15144 main ()
15145 {
15146
15147 FILE *f = fopen ("conftest.val", "w");
15148 if (! f)
15149 exit (1);
15150 if (((long) (sizeof (char))) < 0)
15151 {
15152 long i = longval ();
15153 if (i != ((long) (sizeof (char))))
15154 exit (1);
15155 fprintf (f, "%ld\n", i);
15156 }
15157 else
15158 {
15159 unsigned long i = ulongval ();
15160 if (i != ((long) (sizeof (char))))
15161 exit (1);
15162 fprintf (f, "%lu\n", i);
15163 }
15164 exit (ferror (f) || fclose (f) != 0);
15165
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 rm -f conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_cv_sizeof_char=`cat conftest.val`
15182 else
15183 echo "$as_me: program exited with status $ac_status" >&5
15184 echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15186
15187 ( exit $ac_status )
15188 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15189 See \`config.log' for more details." >&5
15190 echo "$as_me: error: cannot compute sizeof (char), 77
15191 See \`config.log' for more details." >&2;}
15192 { (exit 1); exit 1; }; }
15193 fi
15194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15195 fi
15196 fi
15197 rm -f conftest.val
15198 else
15199 ac_cv_sizeof_char=0
15200 fi
15201 fi
15202 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15203 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15204 cat >>confdefs.h <<_ACEOF
15205 #define SIZEOF_CHAR $ac_cv_sizeof_char
15206 _ACEOF
15207
15208
15209
15210 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
15211 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
15212 case "$ac_cv_sizeof_char" in
15213 1) acx_cv_type_int8_t=char ;;
15214 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
15215 echo "$as_me: error: no 8-bit type" >&2;}
15216 { (exit please report a bug); exit please report a bug; }; }
15217 esac
15218 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
15219 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
15220
15221 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
15222 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
15223 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15224 2:*) acx_cv_type_int16_t=int ;;
15225 *:2) acx_cv_type_int16_t=short ;;
15226 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
15227 echo "$as_me: error: no 16-bit type" >&2;}
15228 { (exit please report a bug); exit please report a bug; }; }
15229 esac
15230 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
15231 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
15232
15233 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
15234 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
15235 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15236 4:*) acx_cv_type_int32_t=int ;;
15237 *:4) acx_cv_type_int32_t=long ;;
15238 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
15239 echo "$as_me: error: no 32-bit type" >&2;}
15240 { (exit please report a bug); exit please report a bug; }; }
15241 esac
15242 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
15243 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
15244 fi
15245
15246 # These tests are here to make the output prettier
15247
15248 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15249 case "$ac_cv_sizeof_long" in
15250 8) acx_cv_type_int64_t=long ;;
15251 esac
15252 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
15253 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
15254 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15255 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
15256 fi
15257
15258 # Now we can use the above types
15259
15260 if test "$ac_cv_type_uintptr_t" != yes; then
15261 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
15262 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
15263 case $ac_cv_sizeof_void_p in
15264 2) acx_cv_type_intptr_t=int16_t ;;
15265 4) acx_cv_type_intptr_t=int32_t ;;
15266 8) acx_cv_type_intptr_t=int64_t ;;
15267 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
15268 echo "$as_me: error: no equivalent for intptr_t" >&2;}
15269 { (exit please report a bug); exit please report a bug; }; }
15270 esac
15271 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
15272 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
15273 fi
15274
15275 # ----------------- done all checks, emit header -------------
15276 ac_config_commands="$ac_config_commands bfd_stdint.h"
15277
15278
15279
15280 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15281 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15282 if test "${ac_cv_header_time+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285 cat >conftest.$ac_ext <<_ACEOF
15286 /* confdefs.h. */
15287 _ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 #include <sys/types.h>
15292 #include <sys/time.h>
15293 #include <time.h>
15294
15295 int
15296 main ()
15297 {
15298 if ((struct tm *) 0)
15299 return 0;
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag"
15314 || test ! -s conftest.err'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322 (eval $ac_try) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; }; then
15326 ac_cv_header_time=yes
15327 else
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15330
15331 ac_cv_header_time=no
15332 fi
15333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15336 echo "${ECHO_T}$ac_cv_header_time" >&6
15337 if test $ac_cv_header_time = yes; then
15338
15339 cat >>confdefs.h <<\_ACEOF
15340 #define TIME_WITH_SYS_TIME 1
15341 _ACEOF
15342
15343 fi
15344
15345
15346
15347
15348
15349
15350 ac_header_dirent=no
15351 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15352 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15353 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15354 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h. */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 #include <sys/types.h>
15365 #include <$ac_hdr>
15366
15367 int
15368 main ()
15369 {
15370 if ((DIR *) 0)
15371 return 0;
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378 (eval $ac_compile) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 eval "$as_ac_Header=yes"
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 eval "$as_ac_Header=no"
15404 fi
15405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406 fi
15407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15412 _ACEOF
15413
15414 ac_header_dirent=$ac_hdr; break
15415 fi
15416
15417 done
15418 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15419 if test $ac_header_dirent = dirent.h; then
15420 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15421 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15422 if test "${ac_cv_search_opendir+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 else
15425 ac_func_search_save_LIBS=$LIBS
15426 ac_cv_search_opendir=no
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h. */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433
15434 /* Override any gcc2 internal prototype to avoid an error. */
15435 #ifdef __cplusplus
15436 extern "C"
15437 #endif
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440 char opendir ();
15441 int
15442 main ()
15443 {
15444 opendir ();
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext conftest$ac_exeext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15451 (eval $ac_link) 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag"
15459 || test ! -s conftest.err'
15460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15468 ac_status=$?
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15471 ac_cv_search_opendir="none required"
15472 else
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 fi
15477 rm -f conftest.err conftest.$ac_objext \
15478 conftest$ac_exeext conftest.$ac_ext
15479 if test "$ac_cv_search_opendir" = no; then
15480 for ac_lib in dir; do
15481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488
15489 /* Override any gcc2 internal prototype to avoid an error. */
15490 #ifdef __cplusplus
15491 extern "C"
15492 #endif
15493 /* We use char because int might match the return type of a gcc2
15494 builtin and then its argument prototype would still apply. */
15495 char opendir ();
15496 int
15497 main ()
15498 {
15499 opendir ();
15500 ;
15501 return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag"
15514 || test ! -s conftest.err'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; } &&
15520 { ac_try='test -s conftest$ac_exeext'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_cv_search_opendir="-l$ac_lib"
15527 break
15528 else
15529 echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 fi
15533 rm -f conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 done
15536 fi
15537 LIBS=$ac_func_search_save_LIBS
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15540 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15541 if test "$ac_cv_search_opendir" != no; then
15542 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15543
15544 fi
15545
15546 else
15547 echo "$as_me:$LINENO: checking for library containing opendir" >&5
15548 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
15549 if test "${ac_cv_search_opendir+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 ac_func_search_save_LIBS=$LIBS
15553 ac_cv_search_opendir=no
15554 cat >conftest.$ac_ext <<_ACEOF
15555 /* confdefs.h. */
15556 _ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15560
15561 /* Override any gcc2 internal prototype to avoid an error. */
15562 #ifdef __cplusplus
15563 extern "C"
15564 #endif
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567 char opendir ();
15568 int
15569 main ()
15570 {
15571 opendir ();
15572 ;
15573 return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578 (eval $ac_link) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_search_opendir="none required"
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 fi
15604 rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606 if test "$ac_cv_search_opendir" = no; then
15607 for ac_lib in x; do
15608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15609 cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h. */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h. */
15615
15616 /* Override any gcc2 internal prototype to avoid an error. */
15617 #ifdef __cplusplus
15618 extern "C"
15619 #endif
15620 /* We use char because int might match the return type of a gcc2
15621 builtin and then its argument prototype would still apply. */
15622 char opendir ();
15623 int
15624 main ()
15625 {
15626 opendir ();
15627 ;
15628 return 0;
15629 }
15630 _ACEOF
15631 rm -f conftest.$ac_objext conftest$ac_exeext
15632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15633 (eval $ac_link) 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } &&
15640 { ac_try='test -z "$ac_c_werror_flag"
15641 || test ! -s conftest.err'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; } &&
15647 { ac_try='test -s conftest$ac_exeext'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; }; then
15653 ac_cv_search_opendir="-l$ac_lib"
15654 break
15655 else
15656 echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15658
15659 fi
15660 rm -f conftest.err conftest.$ac_objext \
15661 conftest$ac_exeext conftest.$ac_ext
15662 done
15663 fi
15664 LIBS=$ac_func_search_save_LIBS
15665 fi
15666 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15667 echo "${ECHO_T}$ac_cv_search_opendir" >&6
15668 if test "$ac_cv_search_opendir" != no; then
15669 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
15670
15671 fi
15672
15673 fi
15674
15675 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
15676 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
15677 if test "${gcc_cv_header_string+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680 cat >conftest.$ac_ext <<_ACEOF
15681 /* confdefs.h. */
15682 _ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <string.h>
15687 #include <strings.h>
15688 int
15689 main ()
15690 {
15691
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 rm -f conftest.$ac_objext
15697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698 (eval $ac_compile) 2>conftest.er1
15699 ac_status=$?
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } &&
15705 { ac_try='test -z "$ac_c_werror_flag"
15706 || test ! -s conftest.err'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 gcc_cv_header_string=yes
15719 else
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723 gcc_cv_header_string=no
15724 fi
15725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15726 fi
15727 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
15728 echo "${ECHO_T}$gcc_cv_header_string" >&6
15729 if test $gcc_cv_header_string = yes; then
15730
15731 cat >>confdefs.h <<\_ACEOF
15732 #define STRING_WITH_STRINGS 1
15733 _ACEOF
15734
15735 fi
15736
15737
15738
15739
15740
15741
15742
15743
15744 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
15745 do
15746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15747 echo "$as_me:$LINENO: checking for $ac_func" >&5
15748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_var+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 else
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h. */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760 #define $ac_func innocuous_$ac_func
15761
15762 /* System header to define __stub macros and hopefully few prototypes,
15763 which can conflict with char $ac_func (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15766
15767 #ifdef __STDC__
15768 # include <limits.h>
15769 #else
15770 # include <assert.h>
15771 #endif
15772
15773 #undef $ac_func
15774
15775 /* Override any gcc2 internal prototype to avoid an error. */
15776 #ifdef __cplusplus
15777 extern "C"
15778 {
15779 #endif
15780 /* We use char because int might match the return type of a gcc2
15781 builtin and then its argument prototype would still apply. */
15782 char $ac_func ();
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15787 choke me
15788 #else
15789 char (*f) () = $ac_func;
15790 #endif
15791 #ifdef __cplusplus
15792 }
15793 #endif
15794
15795 int
15796 main ()
15797 {
15798 return f != $ac_func;
15799 ;
15800 return 0;
15801 }
15802 _ACEOF
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15826 else
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 eval "$as_ac_var=no"
15831 fi
15832 rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
15834 fi
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15840 _ACEOF
15841
15842 fi
15843 done
15844
15845
15846 for ac_func in strtoull
15847 do
15848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15849 echo "$as_me:$LINENO: checking for $ac_func" >&5
15850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_var+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854 cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h. */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15862 #define $ac_func innocuous_$ac_func
15863
15864 /* System header to define __stub macros and hopefully few prototypes,
15865 which can conflict with char $ac_func (); below.
15866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15867 <limits.h> exists even on freestanding compilers. */
15868
15869 #ifdef __STDC__
15870 # include <limits.h>
15871 #else
15872 # include <assert.h>
15873 #endif
15874
15875 #undef $ac_func
15876
15877 /* Override any gcc2 internal prototype to avoid an error. */
15878 #ifdef __cplusplus
15879 extern "C"
15880 {
15881 #endif
15882 /* We use char because int might match the return type of a gcc2
15883 builtin and then its argument prototype would still apply. */
15884 char $ac_func ();
15885 /* The GNU C library defines this for functions which it implements
15886 to always fail with ENOSYS. Some functions are actually named
15887 something starting with __ and the normal name is an alias. */
15888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15889 choke me
15890 #else
15891 char (*f) () = $ac_func;
15892 #endif
15893 #ifdef __cplusplus
15894 }
15895 #endif
15896
15897 int
15898 main ()
15899 {
15900 return f != $ac_func;
15901 ;
15902 return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15907 (eval $ac_link) 2>conftest.er1
15908 ac_status=$?
15909 grep -v '^ *+' conftest.er1 >conftest.err
15910 rm -f conftest.er1
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag"
15915 || test ! -s conftest.err'
15916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917 (eval $ac_try) 2>&5
15918 ac_status=$?
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); }; } &&
15921 { ac_try='test -s conftest$ac_exeext'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15927 eval "$as_ac_var=yes"
15928 else
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932 eval "$as_ac_var=no"
15933 fi
15934 rm -f conftest.err conftest.$ac_objext \
15935 conftest$ac_exeext conftest.$ac_ext
15936 fi
15937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15939 if test `eval echo '${'$as_ac_var'}'` = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15942 _ACEOF
15943
15944 fi
15945 done
15946
15947
15948 echo "$as_me:$LINENO: checking whether basename is declared" >&5
15949 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
15950 if test "${ac_cv_have_decl_basename+set}" = set; then
15951 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 $ac_includes_default
15960 int
15961 main ()
15962 {
15963 #ifndef basename
15964 char *p = (char *) basename;
15965 #endif
15966
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } &&
15980 { ac_try='test -z "$ac_c_werror_flag"
15981 || test ! -s conftest.err'
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15989 (eval $ac_try) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); }; }; then
15993 ac_cv_have_decl_basename=yes
15994 else
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998 ac_cv_have_decl_basename=no
15999 fi
16000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16001 fi
16002 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
16003 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
16004 if test $ac_cv_have_decl_basename = yes; then
16005
16006 cat >>confdefs.h <<_ACEOF
16007 #define HAVE_DECL_BASENAME 1
16008 _ACEOF
16009
16010
16011 else
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_DECL_BASENAME 0
16014 _ACEOF
16015
16016
16017 fi
16018
16019
16020 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
16021 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
16022 if test "${ac_cv_have_decl_ftello+set}" = set; then
16023 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025 cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16032 int
16033 main ()
16034 {
16035 #ifndef ftello
16036 char *p = (char *) ftello;
16037 #endif
16038
16039 ;
16040 return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045 (eval $ac_compile) 2>conftest.er1
16046 ac_status=$?
16047 grep -v '^ *+' conftest.er1 >conftest.err
16048 rm -f conftest.er1
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest.$ac_objext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_have_decl_ftello=yes
16066 else
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 ac_cv_have_decl_ftello=no
16071 fi
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 fi
16074 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
16075 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
16076 if test $ac_cv_have_decl_ftello = yes; then
16077
16078 cat >>confdefs.h <<_ACEOF
16079 #define HAVE_DECL_FTELLO 1
16080 _ACEOF
16081
16082
16083 else
16084 cat >>confdefs.h <<_ACEOF
16085 #define HAVE_DECL_FTELLO 0
16086 _ACEOF
16087
16088
16089 fi
16090
16091
16092 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
16093 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
16094 if test "${ac_cv_have_decl_ftello64+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 int
16105 main ()
16106 {
16107 #ifndef ftello64
16108 char *p = (char *) ftello64;
16109 #endif
16110
16111 ;
16112 return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>conftest.er1
16118 ac_status=$?
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -z "$ac_c_werror_flag"
16125 || test ! -s conftest.err'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_have_decl_ftello64=yes
16138 else
16139 echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 ac_cv_have_decl_ftello64=no
16143 fi
16144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16145 fi
16146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
16147 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
16148 if test $ac_cv_have_decl_ftello64 = yes; then
16149
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_DECL_FTELLO64 1
16152 _ACEOF
16153
16154
16155 else
16156 cat >>confdefs.h <<_ACEOF
16157 #define HAVE_DECL_FTELLO64 0
16158 _ACEOF
16159
16160
16161 fi
16162
16163
16164 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
16165 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
16166 if test "${ac_cv_have_decl_fseeko+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 $ac_includes_default
16176 int
16177 main ()
16178 {
16179 #ifndef fseeko
16180 char *p = (char *) fseeko;
16181 #endif
16182
16183 ;
16184 return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_cv_have_decl_fseeko=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_cv_have_decl_fseeko=no
16215 fi
16216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16217 fi
16218 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
16219 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
16220 if test $ac_cv_have_decl_fseeko = yes; then
16221
16222 cat >>confdefs.h <<_ACEOF
16223 #define HAVE_DECL_FSEEKO 1
16224 _ACEOF
16225
16226
16227 else
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_DECL_FSEEKO 0
16230 _ACEOF
16231
16232
16233 fi
16234
16235
16236 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
16237 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
16238 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 $ac_includes_default
16248 int
16249 main ()
16250 {
16251 #ifndef fseeko64
16252 char *p = (char *) fseeko64;
16253 #endif
16254
16255 ;
16256 return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_have_decl_fseeko64=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_cv_have_decl_fseeko64=no
16287 fi
16288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16289 fi
16290 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
16291 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
16292 if test $ac_cv_have_decl_fseeko64 = yes; then
16293
16294 cat >>confdefs.h <<_ACEOF
16295 #define HAVE_DECL_FSEEKO64 1
16296 _ACEOF
16297
16298
16299 else
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_DECL_FSEEKO64 0
16302 _ACEOF
16303
16304
16305 fi
16306
16307
16308
16309
16310 case "${host}" in
16311 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16312
16313 cat >>confdefs.h <<\_ACEOF
16314 #define USE_BINARY_FOPEN 1
16315 _ACEOF
16316 ;;
16317 esac
16318
16319 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
16320 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
16321 if test "${ac_cv_have_decl_ffs+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 $ac_includes_default
16331 int
16332 main ()
16333 {
16334 #ifndef ffs
16335 char *p = (char *) ffs;
16336 #endif
16337
16338 ;
16339 return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_have_decl_ffs=yes
16365 else
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369 ac_cv_have_decl_ffs=no
16370 fi
16371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
16374 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
16375 if test $ac_cv_have_decl_ffs = yes; then
16376
16377 cat >>confdefs.h <<_ACEOF
16378 #define HAVE_DECL_FFS 1
16379 _ACEOF
16380
16381
16382 else
16383 cat >>confdefs.h <<_ACEOF
16384 #define HAVE_DECL_FFS 0
16385 _ACEOF
16386
16387
16388 fi
16389
16390
16391 echo "$as_me:$LINENO: checking whether free is declared" >&5
16392 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
16393 if test "${ac_cv_have_decl_free+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396 cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h. */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 $ac_includes_default
16403 int
16404 main ()
16405 {
16406 #ifndef free
16407 char *p = (char *) free;
16408 #endif
16409
16410 ;
16411 return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16417 ac_status=$?
16418 grep -v '^ *+' conftest.er1 >conftest.err
16419 rm -f conftest.er1
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_have_decl_free=yes
16437 else
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_cv_have_decl_free=no
16442 fi
16443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
16446 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
16447 if test $ac_cv_have_decl_free = yes; then
16448
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_FREE 1
16451 _ACEOF
16452
16453
16454 else
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_FREE 0
16457 _ACEOF
16458
16459
16460 fi
16461
16462
16463 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
16464 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
16465 if test "${ac_cv_have_decl_getenv+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 cat >conftest.$ac_ext <<_ACEOF
16469 /* confdefs.h. */
16470 _ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 $ac_includes_default
16475 int
16476 main ()
16477 {
16478 #ifndef getenv
16479 char *p = (char *) getenv;
16480 #endif
16481
16482 ;
16483 return 0;
16484 }
16485 _ACEOF
16486 rm -f conftest.$ac_objext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16488 (eval $ac_compile) 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag"
16496 || test ! -s conftest.err'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_cv_have_decl_getenv=yes
16509 else
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513 ac_cv_have_decl_getenv=no
16514 fi
16515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16516 fi
16517 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
16518 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
16519 if test $ac_cv_have_decl_getenv = yes; then
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define HAVE_DECL_GETENV 1
16523 _ACEOF
16524
16525
16526 else
16527 cat >>confdefs.h <<_ACEOF
16528 #define HAVE_DECL_GETENV 0
16529 _ACEOF
16530
16531
16532 fi
16533
16534
16535 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
16536 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
16537 if test "${ac_cv_have_decl_malloc+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 else
16540 cat >conftest.$ac_ext <<_ACEOF
16541 /* confdefs.h. */
16542 _ACEOF
16543 cat confdefs.h >>conftest.$ac_ext
16544 cat >>conftest.$ac_ext <<_ACEOF
16545 /* end confdefs.h. */
16546 $ac_includes_default
16547 int
16548 main ()
16549 {
16550 #ifndef malloc
16551 char *p = (char *) malloc;
16552 #endif
16553
16554 ;
16555 return 0;
16556 }
16557 _ACEOF
16558 rm -f conftest.$ac_objext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16560 (eval $ac_compile) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag"
16568 || test ! -s conftest.err'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_have_decl_malloc=yes
16581 else
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16584
16585 ac_cv_have_decl_malloc=no
16586 fi
16587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16588 fi
16589 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
16590 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
16591 if test $ac_cv_have_decl_malloc = yes; then
16592
16593 cat >>confdefs.h <<_ACEOF
16594 #define HAVE_DECL_MALLOC 1
16595 _ACEOF
16596
16597
16598 else
16599 cat >>confdefs.h <<_ACEOF
16600 #define HAVE_DECL_MALLOC 0
16601 _ACEOF
16602
16603
16604 fi
16605
16606
16607 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
16608 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
16609 if test "${ac_cv_have_decl_realloc+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 $ac_includes_default
16619 int
16620 main ()
16621 {
16622 #ifndef realloc
16623 char *p = (char *) realloc;
16624 #endif
16625
16626 ;
16627 return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext
16631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16632 (eval $ac_compile) 2>conftest.er1
16633 ac_status=$?
16634 grep -v '^ *+' conftest.er1 >conftest.err
16635 rm -f conftest.er1
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } &&
16639 { ac_try='test -z "$ac_c_werror_flag"
16640 || test ! -s conftest.err'
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_cv_have_decl_realloc=yes
16653 else
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 ac_cv_have_decl_realloc=no
16658 fi
16659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16660 fi
16661 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
16662 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
16663 if test $ac_cv_have_decl_realloc = yes; then
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_DECL_REALLOC 1
16667 _ACEOF
16668
16669
16670 else
16671 cat >>confdefs.h <<_ACEOF
16672 #define HAVE_DECL_REALLOC 0
16673 _ACEOF
16674
16675
16676 fi
16677
16678
16679 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
16680 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
16681 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 $ac_includes_default
16691 int
16692 main ()
16693 {
16694 #ifndef stpcpy
16695 char *p = (char *) stpcpy;
16696 #endif
16697
16698 ;
16699 return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16704 (eval $ac_compile) 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag"
16712 || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
16719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_have_decl_stpcpy=yes
16725 else
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729 ac_cv_have_decl_stpcpy=no
16730 fi
16731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16732 fi
16733 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
16734 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
16735 if test $ac_cv_have_decl_stpcpy = yes; then
16736
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_DECL_STPCPY 1
16739 _ACEOF
16740
16741
16742 else
16743 cat >>confdefs.h <<_ACEOF
16744 #define HAVE_DECL_STPCPY 0
16745 _ACEOF
16746
16747
16748 fi
16749
16750
16751 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
16752 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
16753 if test "${ac_cv_have_decl_strstr+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 $ac_includes_default
16763 int
16764 main ()
16765 {
16766 #ifndef strstr
16767 char *p = (char *) strstr;
16768 #endif
16769
16770 ;
16771 return 0;
16772 }
16773 _ACEOF
16774 rm -f conftest.$ac_objext
16775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16776 (eval $ac_compile) 2>conftest.er1
16777 ac_status=$?
16778 grep -v '^ *+' conftest.er1 >conftest.err
16779 rm -f conftest.er1
16780 cat conftest.err >&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); } &&
16783 { ac_try='test -z "$ac_c_werror_flag"
16784 || test ! -s conftest.err'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; } &&
16790 { ac_try='test -s conftest.$ac_objext'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16793 ac_status=$?
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16796 ac_cv_have_decl_strstr=yes
16797 else
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801 ac_cv_have_decl_strstr=no
16802 fi
16803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
16806 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
16807 if test $ac_cv_have_decl_strstr = yes; then
16808
16809 cat >>confdefs.h <<_ACEOF
16810 #define HAVE_DECL_STRSTR 1
16811 _ACEOF
16812
16813
16814 else
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_DECL_STRSTR 0
16817 _ACEOF
16818
16819
16820 fi
16821
16822
16823 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16824 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
16825 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16826 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 else
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 $ac_includes_default
16835 int
16836 main ()
16837 {
16838 #ifndef snprintf
16839 char *p = (char *) snprintf;
16840 #endif
16841
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16848 (eval $ac_compile) 2>conftest.er1
16849 ac_status=$?
16850 grep -v '^ *+' conftest.er1 >conftest.err
16851 rm -f conftest.er1
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try='test -z "$ac_c_werror_flag"
16856 || test ! -s conftest.err'
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest.$ac_objext'
16863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864 (eval $ac_try) 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_have_decl_snprintf=yes
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_have_decl_snprintf=no
16874 fi
16875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16876 fi
16877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16878 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
16879 if test $ac_cv_have_decl_snprintf = yes; then
16880
16881 cat >>confdefs.h <<_ACEOF
16882 #define HAVE_DECL_SNPRINTF 1
16883 _ACEOF
16884
16885
16886 else
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_DECL_SNPRINTF 0
16889 _ACEOF
16890
16891
16892 fi
16893
16894
16895 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16896 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
16897 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 $ac_includes_default
16907 int
16908 main ()
16909 {
16910 #ifndef vsnprintf
16911 char *p = (char *) vsnprintf;
16912 #endif
16913
16914 ;
16915 return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920 (eval $ac_compile) 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_have_decl_vsnprintf=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16944
16945 ac_cv_have_decl_vsnprintf=no
16946 fi
16947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16948 fi
16949 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16950 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
16951 if test $ac_cv_have_decl_vsnprintf = yes; then
16952
16953 cat >>confdefs.h <<_ACEOF
16954 #define HAVE_DECL_VSNPRINTF 1
16955 _ACEOF
16956
16957
16958 else
16959 cat >>confdefs.h <<_ACEOF
16960 #define HAVE_DECL_VSNPRINTF 0
16961 _ACEOF
16962
16963
16964 fi
16965
16966
16967
16968 # If we are configured native, pick a core file support file.
16969 COREFILE=
16970 COREFLAG=
16971 TRAD_HEADER=
16972 if test "${target}" = "${host}"; then
16973 case "${host}" in
16974 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
16975 COREFILE=''
16976 ;;
16977 alpha*-*-linux-*)
16978 COREFILE=trad-core.lo
16979 TRAD_HEADER='"hosts/alphalinux.h"'
16980 ;;
16981 alpha*-*-netbsd* | alpha*-*-openbsd*)
16982 COREFILE=netbsd-core.lo
16983 ;;
16984 alpha*-*-*) COREFILE=osf-core.lo ;;
16985 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
16986 COREFILE='' ;;
16987 arm-*-netbsd* | arm-*-openbsd*)
16988 COREFILE=netbsd-core.lo
16989 ;;
16990 arm-*-riscix) COREFILE=trad-core.lo ;;
16991 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
16992 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
16993 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
16994 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
16995 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
16996 hppa*-*-netbsd* | hppa*-*-openbsd*)
16997 COREFILE=netbsd-core.lo
16998 ;;
16999
17000 i370-*-*)
17001 COREFILE=trad-core.lo
17002 TRAD_HEADER='"hosts/i370linux.h"'
17003 ;;
17004
17005 i[3-7]86-sequent-bsd*)
17006 COREFILE=trad-core.lo
17007 TRAD_HEADER='"hosts/symmetry.h"'
17008 ;;
17009 i[3-7]86-sequent-sysv4*) ;;
17010 i[3-7]86-sequent-sysv*)
17011 COREFILE=trad-core.lo
17012 TRAD_HEADER='"hosts/symmetry.h"'
17013 ;;
17014 i[3-7]86-*-bsdi)
17015 COREFILE=
17016 ;;
17017 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
17018 COREFILE=trad-core.lo
17019 TRAD_HEADER='"hosts/i386bsd.h"'
17020 ;;
17021 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
17022 COREFILE=''
17023 TRAD_HEADER='"hosts/i386bsd.h"'
17024 ;;
17025 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
17026 COREFILE=netbsd-core.lo
17027 ;;
17028 i[3-7]86-esix-sysv3*)
17029 COREFILE=trad-core.lo
17030 TRAD_HEADER='"hosts/esix.h"'
17031 ;;
17032 i[3-7]86-*-sco3.2v5*)
17033 COREFILE=sco5-core.lo
17034 ;;
17035 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
17036 COREFILE=trad-core.lo
17037 TRAD_HEADER='"hosts/i386sco.h"'
17038 ;;
17039 i[3-7]86-*-mach3*)
17040 COREFILE=trad-core.lo
17041 TRAD_HEADER='"hosts/i386mach3.h"'
17042 ;;
17043 i[3-7]86-*-linux-*)
17044 COREFILE=trad-core.lo
17045 TRAD_HEADER='"hosts/i386linux.h"'
17046 ;;
17047 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
17048 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
17049 i860-*-mach3* | i860-*-osf1*)
17050 COREFILE=trad-core.lo
17051 TRAD_HEADER='"hosts/i860mach3.h"'
17052 ;;
17053 mips-*-netbsd* | mips*-*-openbsd*)
17054 COREFILE=netbsd-core.lo
17055 ;;
17056 mips-dec-*)
17057 COREFILE=trad-core.lo
17058 TRAD_HEADER='"hosts/decstation.h"'
17059 ;;
17060 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
17061 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
17062 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
17063 mips-*-sysv4*) ;;
17064 mips-*-sysv* | mips-*-riscos*)
17065 COREFILE=trad-core.lo
17066 TRAD_HEADER='"hosts/riscos.h"'
17067 ;;
17068 mips-sony-bsd*)
17069 COREFILE=trad-core.lo
17070 TRAD_HEADER='"hosts/news-mips.h"'
17071 ;;
17072 m68*-bull*-sysv*)
17073 COREFILE=trad-core.lo
17074 TRAD_HEADER='"hosts/dpx2.h"'
17075 ;;
17076 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
17077 m68*-hp-bsd*)
17078 COREFILE=trad-core.lo
17079 TRAD_HEADER='"hosts/hp300bsd.h"'
17080 ;;
17081 m68*-*-linux-*)
17082 COREFILE=trad-core.lo
17083 TRAD_HEADER='"hosts/m68klinux.h"'
17084 ;;
17085 m68*-motorola-sysv*)
17086 COREFILE=trad-core.lo
17087 TRAD_HEADER='"hosts/delta68.h"'
17088 ;;
17089 m68*-sony-*)
17090 COREFILE=trad-core.lo
17091 TRAD_HEADER='"hosts/news.h"'
17092 ;;
17093 m68*-*-netbsd* | m68*-*-openbsd*)
17094 COREFILE=netbsd-core.lo
17095 ;;
17096 m68*-apple-aux*)
17097 COREFILE=trad-core.lo
17098 TRAD_HEADER='"hosts/m68kaux.h"'
17099 ;;
17100 m88*-*-sysv4*)
17101 ;;
17102 m88*-motorola-sysv*)
17103 COREFILE=ptrace-core.lo
17104 ;;
17105 m88*-*-mach3*)
17106 COREFILE=trad-core.lo
17107 TRAD_HEADER='"hosts/m88kmach3.h"'
17108 ;;
17109 m88*-*-openbsd*)
17110 COREFILE=netbsd-core.lo
17111 ;;
17112 ns32k-pc532-mach)
17113 COREFILE=trad-core.lo
17114 TRAD_HEADER='"hosts/pc532mach.h"'
17115 ;;
17116 ns32k-*-netbsd* | ns32k-*-openbsd*)
17117 COREFILE=netbsd-core.lo
17118 ;;
17119 rs6000-*-lynx*)
17120 COREFILE=lynx-core.lo
17121 ;;
17122 rs6000-*-aix5.* | powerpc-*-aix5.*)
17123 COREFILE=rs6000-core.lo
17124 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
17125 ;;
17126 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
17127 COREFILE=rs6000-core.lo
17128 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
17129 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
17130 # have c_impl as a member of struct core_dumpx
17131 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
17132 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 #include <core.h>
17140 int
17141 main ()
17142 {
17143 struct core_dumpx c; c.c_impl = 0;
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 rm -f conftest.$ac_objext
17149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17150 (eval $ac_compile) 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag"
17158 || test ! -s conftest.err'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest.$ac_objext'
17165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170
17171 cat >>confdefs.h <<\_ACEOF
17172 #define HAVE_ST_C_IMPL 1
17173 _ACEOF
17174
17175 echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181 echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6
17183 fi
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 ;;
17186 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
17187 rs6000-*-*) COREFILE=rs6000-core.lo ;;
17188 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
17189 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
17190 powerpc-*-beos*) ;;
17191 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
17192 COREFILE='' ;;
17193 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
17194 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
17195 s390*-*-*) COREFILE=trad-core.lo ;;
17196 sh*-*-netbsd* | sh*-*-openbsd*)
17197 COREFILE=netbsd-core.lo
17198 ;;
17199 sparc-*-netbsd* | sparc*-*-openbsd*)
17200 COREFILE=netbsd-core.lo
17201 ;;
17202 tahoe-*-*)
17203 COREFILE=trad-core.lo
17204 TRAD_HEADER='"hosts/tahoe.h"'
17205 ;;
17206 vax-*-netbsd* | vax-*-openbsd*)
17207 COREFILE=netbsd-core.lo
17208 ;;
17209 vax-*-ultrix2*)
17210 COREFILE=trad-core.lo
17211 TRAD_HEADER='"hosts/vaxult2.h"'
17212 ;;
17213 vax-*-ultrix*)
17214 COREFILE=trad-core.lo
17215 TRAD_HEADER='"hosts/vaxult2.h"'
17216 ;;
17217 vax-*-linux-*)
17218 COREFILE=trad-core.lo
17219 TRAD_HEADER='"hosts/vaxlinux.h"'
17220 ;;
17221 vax-*-*)
17222 COREFILE=trad-core.lo
17223 TRAD_HEADER='"hosts/vaxbsd.h"'
17224 ;;
17225 x86_64-*-netbsd* | x86_64-*-openbsd*)
17226 COREFILE=netbsd-core.lo
17227 ;;
17228 esac
17229
17230 case "$COREFILE" in
17231 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
17232 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
17233 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
17234 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
17235 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
17236 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
17237 osf-core.lo) COREFLAG=-DOSF_CORE ;;
17238 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
17239 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
17240 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
17241 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
17242 esac
17243
17244 # ELF corefile support has several flavors, but all of
17245 # them use something called <sys/procfs.h>
17246
17247 for ac_header in sys/procfs.h
17248 do
17249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17251 echo "$as_me:$LINENO: checking for $ac_header" >&5
17252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17255 fi
17256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17258 else
17259 # Is the header compilable?
17260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17262 cat >conftest.$ac_ext <<_ACEOF
17263 /* confdefs.h. */
17264 _ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 $ac_includes_default
17269 #include <$ac_header>
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17273 (eval $ac_compile) 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -z "$ac_c_werror_flag"
17281 || test ! -s conftest.err'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest.$ac_objext'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17293 ac_header_compiler=yes
17294 else
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298 ac_header_compiler=no
17299 fi
17300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6
17303
17304 # Is the header present?
17305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <$ac_header>
17314 _ACEOF
17315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } >/dev/null; then
17323 if test -s conftest.err; then
17324 ac_cpp_err=$ac_c_preproc_warn_flag
17325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17326 else
17327 ac_cpp_err=
17328 fi
17329 else
17330 ac_cpp_err=yes
17331 fi
17332 if test -z "$ac_cpp_err"; then
17333 ac_header_preproc=yes
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_header_preproc=no
17339 fi
17340 rm -f conftest.err conftest.$ac_ext
17341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17342 echo "${ECHO_T}$ac_header_preproc" >&6
17343
17344 # So? What about this header?
17345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17346 yes:no: )
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17351 ac_header_preproc=yes
17352 ;;
17353 no:yes:* )
17354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17366 (
17367 cat <<\_ASBOX
17368 ## ------------------------------------------ ##
17369 ## Report this to the AC_PACKAGE_NAME lists. ##
17370 ## ------------------------------------------ ##
17371 _ASBOX
17372 ) |
17373 sed "s/^/$as_me: WARNING: /" >&2
17374 ;;
17375 esac
17376 echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381 eval "$as_ac_Header=\$ac_header_preproc"
17382 fi
17383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17385
17386 fi
17387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17388 cat >>confdefs.h <<_ACEOF
17389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17390 _ACEOF
17391
17392 fi
17393
17394 done
17395
17396 if test "$ac_cv_header_sys_procfs_h" = yes; then
17397 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
17398 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
17399 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402 cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h. */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408
17409 #define _SYSCALL32
17410 #include <sys/procfs.h>
17411 int
17412 main ()
17413 {
17414 prstatus_t avar
17415 ;
17416 return 0;
17417 }
17418 _ACEOF
17419 rm -f conftest.$ac_objext
17420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17421 (eval $ac_compile) 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -z "$ac_c_werror_flag"
17429 || test ! -s conftest.err'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17441 bfd_cv_have_sys_procfs_type_prstatus_t=yes
17442 else
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 bfd_cv_have_sys_procfs_type_prstatus_t=no
17447
17448 fi
17449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17450 fi
17451
17452 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
17453
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_PRSTATUS_T 1
17456 _ACEOF
17457
17458 fi
17459 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
17460 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
17461
17462 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
17463 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
17464 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 else
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473
17474 #define _SYSCALL32
17475 #include <sys/procfs.h>
17476 int
17477 main ()
17478 {
17479 prstatus32_t avar
17480 ;
17481 return 0;
17482 }
17483 _ACEOF
17484 rm -f conftest.$ac_objext
17485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17486 (eval $ac_compile) 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag"
17494 || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 bfd_cv_have_sys_procfs_type_prstatus32_t=no
17512
17513 fi
17514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17515 fi
17516
17517 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
17518
17519 cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_PRSTATUS32_T 1
17521 _ACEOF
17522
17523 fi
17524 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
17525 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
17526
17527 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
17528 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17529 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 else
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538
17539 #define _SYSCALL32
17540 #include <sys/procfs.h>
17541 int
17542 main ()
17543 {
17544 prstatus_t avar; void* aref = (void*) &avar.pr_who
17545 ;
17546 return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext
17550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17551 (eval $ac_compile) 2>conftest.er1
17552 ac_status=$?
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
17558 { ac_try='test -z "$ac_c_werror_flag"
17559 || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
17577
17578 fi
17579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17580 fi
17581
17582 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
17583
17584 cat >>confdefs.h <<\_ACEOF
17585 #define HAVE_PRSTATUS_T_PR_WHO 1
17586 _ACEOF
17587
17588 fi
17589 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
17590 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
17591
17592 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
17593 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
17594 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603
17604 #define _SYSCALL32
17605 #include <sys/procfs.h>
17606 int
17607 main ()
17608 {
17609 prstatus32_t avar; void* aref = (void*) &avar.pr_who
17610 ;
17611 return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest.$ac_objext
17615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17616 (eval $ac_compile) 2>conftest.er1
17617 ac_status=$?
17618 grep -v '^ *+' conftest.er1 >conftest.err
17619 rm -f conftest.er1
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } &&
17623 { ac_try='test -z "$ac_c_werror_flag"
17624 || test ! -s conftest.err'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } &&
17630 { ac_try='test -s conftest.$ac_objext'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; }; then
17636 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
17637 else
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17640
17641 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
17642
17643 fi
17644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17645 fi
17646
17647 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
17648
17649 cat >>confdefs.h <<\_ACEOF
17650 #define HAVE_PRSTATUS32_T_PR_WHO 1
17651 _ACEOF
17652
17653 fi
17654 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
17655 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
17656
17657 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17658 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17659 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17660 echo $ECHO_N "(cached) $ECHO_C" >&6
17661 else
17662 cat >conftest.$ac_ext <<_ACEOF
17663 /* confdefs.h. */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668
17669 #define _SYSCALL32
17670 #include <sys/procfs.h>
17671 int
17672 main ()
17673 {
17674 pstatus_t avar
17675 ;
17676 return 0;
17677 }
17678 _ACEOF
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag"
17689 || test ! -s conftest.err'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest.$ac_objext'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17702 else
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 bfd_cv_have_sys_procfs_type_pstatus_t=no
17707
17708 fi
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 fi
17711
17712 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17713
17714 cat >>confdefs.h <<\_ACEOF
17715 #define HAVE_PSTATUS_T 1
17716 _ACEOF
17717
17718 fi
17719 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17720 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17721
17722 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
17723 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
17724 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 else
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733
17734 #define _SYSCALL32
17735 #include <sys/procfs.h>
17736 int
17737 main ()
17738 {
17739 pxstatus_t avar
17740 ;
17741 return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17746 (eval $ac_compile) 2>conftest.er1
17747 ac_status=$?
17748 grep -v '^ *+' conftest.er1 >conftest.err
17749 rm -f conftest.er1
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } &&
17753 { ac_try='test -z "$ac_c_werror_flag"
17754 || test ! -s conftest.err'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
17767 else
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 bfd_cv_have_sys_procfs_type_pxstatus_t=no
17772
17773 fi
17774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17775 fi
17776
17777 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
17778
17779 cat >>confdefs.h <<\_ACEOF
17780 #define HAVE_PXSTATUS_T 1
17781 _ACEOF
17782
17783 fi
17784 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
17785 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
17786
17787 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
17788 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
17789 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h. */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798
17799 #define _SYSCALL32
17800 #include <sys/procfs.h>
17801 int
17802 main ()
17803 {
17804 pstatus32_t avar
17805 ;
17806 return 0;
17807 }
17808 _ACEOF
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>conftest.er1
17812 ac_status=$?
17813 grep -v '^ *+' conftest.er1 >conftest.err
17814 rm -f conftest.er1
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 bfd_cv_have_sys_procfs_type_pstatus32_t=no
17837
17838 fi
17839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17840 fi
17841
17842 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
17843
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_PSTATUS32_T 1
17846 _ACEOF
17847
17848 fi
17849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
17850 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
17851
17852 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
17853 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
17854 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857 cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h. */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h. */
17863
17864 #define _SYSCALL32
17865 #include <sys/procfs.h>
17866 int
17867 main ()
17868 {
17869 prpsinfo_t avar
17870 ;
17871 return 0;
17872 }
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17876 (eval $ac_compile) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag"
17884 || test ! -s conftest.err'
17885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886 (eval $ac_try) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); }; } &&
17890 { ac_try='test -s conftest.$ac_objext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
17897 else
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
17902
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 fi
17906
17907 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
17908
17909 cat >>confdefs.h <<\_ACEOF
17910 #define HAVE_PRPSINFO_T 1
17911 _ACEOF
17912
17913 fi
17914 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
17915 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
17916
17917 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
17918 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
17919 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928
17929 #define _SYSCALL32
17930 #include <sys/procfs.h>
17931 int
17932 main ()
17933 {
17934 prpsinfo32_t avar
17935 ;
17936 return 0;
17937 }
17938 _ACEOF
17939 rm -f conftest.$ac_objext
17940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17941 (eval $ac_compile) 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -z "$ac_c_werror_flag"
17949 || test ! -s conftest.err'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest.$ac_objext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
17962 else
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
17967
17968 fi
17969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17970 fi
17971
17972 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
17973
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE_PRPSINFO32_T 1
17976 _ACEOF
17977
17978 fi
17979 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
17980 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
17981
17982 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
17983 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
17984 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993
17994 #define _SYSCALL32
17995 #include <sys/procfs.h>
17996 int
17997 main ()
17998 {
17999 psinfo_t avar
18000 ;
18001 return 0;
18002 }
18003 _ACEOF
18004 rm -f conftest.$ac_objext
18005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18006 (eval $ac_compile) 2>conftest.er1
18007 ac_status=$?
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -z "$ac_c_werror_flag"
18014 || test ! -s conftest.err'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; }; then
18026 bfd_cv_have_sys_procfs_type_psinfo_t=yes
18027 else
18028 echo "$as_me: failed program was:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18030
18031 bfd_cv_have_sys_procfs_type_psinfo_t=no
18032
18033 fi
18034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18035 fi
18036
18037 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
18038
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_PSINFO_T 1
18041 _ACEOF
18042
18043 fi
18044 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
18045 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
18046
18047 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
18048 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
18049 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058
18059 #define _SYSCALL32
18060 #include <sys/procfs.h>
18061 int
18062 main ()
18063 {
18064 psinfo32_t avar
18065 ;
18066 return 0;
18067 }
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
18078 { ac_try='test -z "$ac_c_werror_flag"
18079 || test ! -s conftest.err'
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
18092 else
18093 echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096 bfd_cv_have_sys_procfs_type_psinfo32_t=no
18097
18098 fi
18099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18100 fi
18101
18102 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_PSINFO32_T 1
18106 _ACEOF
18107
18108 fi
18109 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
18110 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
18111
18112 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
18113 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
18114 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123
18124 #define _SYSCALL32
18125 #include <sys/procfs.h>
18126 int
18127 main ()
18128 {
18129 lwpstatus_t avar
18130 ;
18131 return 0;
18132 }
18133 _ACEOF
18134 rm -f conftest.$ac_objext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
18162
18163 fi
18164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18165 fi
18166
18167 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
18168
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_LWPSTATUS_T 1
18171 _ACEOF
18172
18173 fi
18174 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
18175 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
18176
18177 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
18178 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
18179 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188
18189 #define _SYSCALL32
18190 #include <sys/procfs.h>
18191 int
18192 main ()
18193 {
18194 lwpxstatus_t avar
18195 ;
18196 return 0;
18197 }
18198 _ACEOF
18199 rm -f conftest.$ac_objext
18200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18201 (eval $ac_compile) 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } &&
18208 { ac_try='test -z "$ac_c_werror_flag"
18209 || test ! -s conftest.err'
18210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18211 (eval $ac_try) 2>&5
18212 ac_status=$?
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); }; } &&
18215 { ac_try='test -s conftest.$ac_objext'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
18222 else
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
18227
18228 fi
18229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18230 fi
18231
18232 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE_LWPXSTATUS_T 1
18236 _ACEOF
18237
18238 fi
18239 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
18240 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
18241
18242 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
18243 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
18244 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247 cat >conftest.$ac_ext <<_ACEOF
18248 /* confdefs.h. */
18249 _ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253
18254 #define _SYSCALL32
18255 #include <sys/procfs.h>
18256 int
18257 main ()
18258 {
18259 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
18260 ;
18261 return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18290
18291 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
18292
18293 fi
18294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295 fi
18296
18297 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
18298
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
18301 _ACEOF
18302
18303 fi
18304 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
18305 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
18306
18307 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
18308 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
18309 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
18310 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 else
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318
18319 #define _SYSCALL32
18320 #include <sys/procfs.h>
18321 int
18322 main ()
18323 {
18324 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
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 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
18357
18358 fi
18359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18360 fi
18361
18362 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_LWPSTATUS_T_PR_REG 1
18366 _ACEOF
18367
18368 fi
18369 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
18370 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
18371
18372 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
18373 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
18374 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18376 else
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h. */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383
18384 #define _SYSCALL32
18385 #include <sys/procfs.h>
18386 int
18387 main ()
18388 {
18389 win32_pstatus_t avar
18390 ;
18391 return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_c_werror_flag"
18404 || test ! -s conftest.err'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; } &&
18410 { ac_try='test -s conftest.$ac_objext'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18413 ac_status=$?
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; }; then
18416 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
18417 else
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
18422
18423 fi
18424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18425 fi
18426
18427 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
18428
18429 cat >>confdefs.h <<\_ACEOF
18430 #define HAVE_WIN32_PSTATUS_T 1
18431 _ACEOF
18432
18433 fi
18434 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
18435 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
18436
18437 fi
18438 fi
18439
18440
18441 if test -n "$TRAD_HEADER"; then
18442
18443 cat >>confdefs.h <<_ACEOF
18444 #define TRAD_HEADER $TRAD_HEADER
18445 _ACEOF
18446
18447 fi
18448
18449 # Horrible hacks to build DLLs on Windows.
18450 WIN32LDFLAGS=
18451 WIN32LIBADD=
18452 case "${host}" in
18453 *-*-cygwin*)
18454 if test "$enable_shared" = "yes"; then
18455 WIN32LDFLAGS="-no-undefined"
18456 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
18457 fi
18458 ;;
18459 *-*-linux*)
18460 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
18461 # libiberty.a.
18462 case "${host}" in
18463 mips*-*-linux*)
18464 # Linux/MIPS uses PIC by default.
18465 if test "$enable_shared" = "yes"; then
18466 WIN32LIBADD="-L../libiberty -liberty"
18467 fi
18468 ;;
18469 *)
18470 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
18471 if test -n "$x"; then
18472 WIN32LIBADD="-L../libiberty/pic -liberty"
18473 fi
18474 ;;
18475 esac
18476 ;;
18477 esac
18478
18479
18480
18481 # target stuff:
18482
18483 # Canonicalize the secondary target names.
18484 if test -n "$enable_targets" ; then
18485 for targ in `echo $enable_targets | sed 's/,/ /g'`
18486 do
18487 result=`$ac_config_sub $targ 2>/dev/null`
18488 if test -n "$result" ; then
18489 canon_targets="$canon_targets $result"
18490 else
18491 # Allow targets that config.sub doesn't recognize, like "all".
18492 canon_targets="$canon_targets $targ"
18493 fi
18494 done
18495 fi
18496
18497 all_targets=false
18498 defvec=
18499 selvecs=
18500 assocvecs=
18501 selarchs=
18502 TDEFINES=
18503 for targ in $target $canon_targets
18504 do
18505 if test "x$targ" = "xall"; then
18506 all_targets=true
18507 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
18508 else
18509 . $srcdir/config.bfd
18510 if test "x$targ" = "x$target"; then
18511 defvec=$targ_defvec
18512 fi
18513 selvecs="$selvecs $targ_defvec $targ_selvecs"
18514 selarchs="$selarchs $targ_archs"
18515 TDEFINES="$TDEFINES $targ_cflags"
18516 fi
18517 done
18518
18519
18520 # This processing still needs to be done if we're to decide properly whether
18521 # 64-bit support needs to be compiled in. Currently, it will be included if
18522 # the default or any other explicitly requested target requires it; it
18523 # will not be included on a 32-bit host if no 64-bit target is requested, and
18524 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
18525 # used.
18526
18527 # uniq the default and selected vectors in all the configured targets.
18528 f=""
18529 for i in $selvecs ; do
18530 case " $f " in
18531 *" $i "*) ;;
18532 *) f="$f $i" ;;
18533 esac
18534 done
18535 selvecs="$f"
18536
18537
18538 # uniq the associated vectors in all the configured targets.
18539 f=""
18540 for i in $assocvecs ; do
18541 case " $f " in
18542 *" $i "*) ;;
18543 *) f="$f $i" ;;
18544 esac
18545 done
18546 assocvecs="$f"
18547
18548
18549 # uniq the architectures in all the configured targets.
18550 f=""
18551 for i in $selarchs ; do
18552 case " $f " in
18553 *" $i "*) ;;
18554 *) f="$f $i" ;;
18555 esac
18556 done
18557 selarchs="$f"
18558
18559 # Target backend .o files.
18560 tb=
18561
18562 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
18563
18564 for vec in $selvecs
18565 do
18566 target_size=32
18567 case "$vec" in
18568 # This list is alphabetized to make it easy to compare
18569 # with the two vector lists in targets.c. For the same reason,
18570 # use one entry per line, even though this leads to long lines.
18571 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
18572 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18573 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
18574 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18575 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
18576 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
18577 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18578 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
18579 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18580 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
18581 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18582 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
18583 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18584 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
18585 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18586 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
18587 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
18588 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18589 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
18590 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18591 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
18592 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
18593 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
18594 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
18595 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
18596 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
18597 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
18598 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
18599 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
18600 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
18601 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
18602 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18603 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18604 bfd_elf32_bigarm_symbian_vec)
18605 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18606 bfd_elf32_bigarm_vxworks_vec)
18607 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18608 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18609 bfd_elf32_bigmips_vxworks_vec)
18610 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18611 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
18612 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
18613 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
18614 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
18615 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
18616 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
18617 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
18618 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
18619 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
18620 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
18621 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18622 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18623 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
18624 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
18625 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18626 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18627 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
18628 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
18629 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
18630 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
18631 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
18632 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
18633 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
18634 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
18635 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
18636 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
18637 bfd_elf32_littlearm_symbian_vec)
18638 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18639 bfd_elf32_littlearm_vxworks_vec)
18640 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18641 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
18642 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18643 bfd_elf32_littlemips_vxworks_vec)
18644 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18645 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
18646 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18647 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18648 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18649 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
18650 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18651 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
18652 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
18653 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
18654 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18655 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
18656 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18657 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
18658 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
18659 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
18660 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
18661 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
18662 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18663 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18664 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18665 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18666 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
18667 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
18668 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18669 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
18670 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18671 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18672 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
18673 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
18674 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18675 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
18676 # FIXME: We include cofflink.lo not because it's needed for
18677 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
18678 # which needs it but does not list it. Should be fixed in right place.
18679 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18680 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18681 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18682 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
18683 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18684 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
18685 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18686 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18687 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18688 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18689 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18690 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18691 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18692 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
18693 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
18694 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18695 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
18696 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
18697 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18698 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
18699 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
18700 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
18701 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
18702 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
18703 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
18704 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18705 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
18706 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18707 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
18708 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18709 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18710 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18711 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
18712 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18713 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18714 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
18715 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18716 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18717 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
18718 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
18719 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
18720 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
18721 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18722 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18723 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18724 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18725 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18726 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
18727 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18728 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
18729 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18730 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
18731 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
18732 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
18733 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
18734 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18735 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18736 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
18737 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
18738 cris_aout_vec) tb="$tb aout-cris.lo" ;;
18739 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
18740 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18741 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18742 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
18743 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
18744 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
18745 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
18746 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
18747 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
18748 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
18749 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
18750 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
18751 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
18752 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
18753 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
18754 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
18755 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
18756 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
18757 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
18758 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
18759 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
18760 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
18761 i386msdos_vec) tb="$tb i386msdos.lo" ;;
18762 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
18763 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
18764 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
18765 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
18766 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18767 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
18768 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
18769 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18770 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
18771 ieee_vec) tb="$tb ieee.lo" ;;
18772 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
18773 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
18774 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
18775 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
18776 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
18777 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
18778 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
18779 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
18780 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
18781 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
18782 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
18783 mach_o_be_vec) tb="$tb mach-o.lo" ;;
18784 mach_o_le_vec) tb="$tb mach-o.lo" ;;
18785 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
18786 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18787 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
18788 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18789 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
18790 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
18791 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
18792 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
18793 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
18794 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
18795 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
18796 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
18797 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
18798 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
18799 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
18800 pef_vec) tb="$tb pef.lo" ;;
18801 pef_xlib_vec) tb="$tb pef.lo" ;;
18802 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
18803 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
18804 ppcboot_vec) tb="$tb ppcboot.lo" ;;
18805 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
18806 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
18807 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
18808 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18809 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18810 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18811 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
18812 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18813 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
18814 som_vec) tb="$tb som.lo" ;;
18815 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
18816 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
18817 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
18818 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
18819 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
18820 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
18821 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
18822 sym_vec) tb="$tb xsym.lo" ;;
18823 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
18824 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
18825 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
18826 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
18827 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
18828 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
18829 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
18830 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
18831 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
18832 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
18833 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
18834 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
18835 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
18836 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
18837 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
18838 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
18839 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
18840 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
18841 versados_vec) tb="$tb versados.lo" ;;
18842 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
18843 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
18844 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
18845 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
18846 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
18847 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
18848
18849 # These appear out of order in targets.c
18850 srec_vec) tb="$tb srec.lo" ;;
18851 symbolsrec_vec) tb="$tb srec.lo" ;;
18852 tekhex_vec) tb="$tb tekhex.lo" ;;
18853 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
18854 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
18855
18856 "") ;;
18857 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
18858 echo "$as_me: error: *** unknown target vector $vec" >&2;}
18859 { (exit 1); exit 1; }; } ;;
18860 esac
18861
18862 if test ${target_size} = 64; then
18863 target64=true
18864 fi
18865 if test x"${vec}" = x"${defvec}"; then
18866 bfd_default_target_size=${target_size}
18867 fi
18868 done
18869
18870 # Target architecture .o files.
18871 # A couple of CPUs use shorter file names to avoid problems on DOS
18872 # filesystems.
18873 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
18874
18875 # Weed out duplicate .o files.
18876 f=""
18877 for i in $tb ; do
18878 case " $f " in
18879 *" $i "*) ;;
18880 *) f="$f $i" ;;
18881 esac
18882 done
18883 tb="$f"
18884
18885 f=""
18886 for i in $ta ; do
18887 case " $f " in
18888 *" $i "*) ;;
18889 *) f="$f $i" ;;
18890 esac
18891 done
18892 ta="$f"
18893
18894 bfd_backends="$tb"
18895 bfd_machines="$ta"
18896
18897 if test x${all_targets} = xtrue ; then
18898 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
18899 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
18900 selvecs=
18901 havevecs=
18902 selarchs=
18903 test -n "$assocvecs" &&
18904 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18905 else # all_targets is true
18906 # Only set these if they will be nonempty, for the clever echo.
18907 havevecs=
18908 assocvecs=
18909 test -n "$selvecs" &&
18910 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
18911 test -n "$selvecs" &&
18912 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18913 test -n "$selarchs" &&
18914 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
18915 fi # all_targets is true
18916
18917 case ${host64}-${target64}-${want64} in
18918 *true*)
18919 wordsize=64
18920 bfd64_libs='$(BFD64_LIBS)'
18921 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
18922 if test $BFD_HOST_64_BIT_DEFINED = 0; then
18923 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
18924 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
18926 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
18927 fi
18928 if test -n "$GCC" ; then
18929 bad_64bit_gcc=no;
18930 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
18931 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
18932 # Add more tests for gcc versions with non-working 64-bit support here.
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 :__GNUC__:__GNUC_MINOR__:__i386__:
18940 _ACEOF
18941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18942 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
18943 bad_64bit_gcc=yes;
18944 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
18945 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
18946 else
18947 echo "$as_me:$LINENO: result: no" >&5
18948 echo "${ECHO_T}no" >&6
18949 fi
18950 rm -f conftest*
18951
18952 if test $bad_64bit_gcc = yes ; then
18953 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
18954 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
18955 { (exit 1); exit 1; }; }
18956 fi
18957 fi
18958 ;;
18959 false-false-false)
18960 wordsize=32
18961 all_backends='$(BFD32_BACKENDS)'
18962 ;;
18963 esac
18964
18965
18966
18967
18968
18969
18970
18971
18972 # Determine the host dependant file_ptr a.k.a. off_t type. In order
18973 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
18974 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
18975 # Hopefully a reasonable assumption since fseeko et.al. should be
18976 # upward compatible.
18977
18978
18979
18980
18981
18982 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
18983 do
18984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18985 echo "$as_me:$LINENO: checking for $ac_func" >&5
18986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18987 if eval "test \"\${$as_ac_var+set}\" = set"; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
18999
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19004
19005 #ifdef __STDC__
19006 # include <limits.h>
19007 #else
19008 # include <assert.h>
19009 #endif
19010
19011 #undef $ac_func
19012
19013 /* Override any gcc2 internal prototype to avoid an error. */
19014 #ifdef __cplusplus
19015 extern "C"
19016 {
19017 #endif
19018 /* We use char because int might match the return type of a gcc2
19019 builtin and then its argument prototype would still apply. */
19020 char $ac_func ();
19021 /* The GNU C library defines this for functions which it implements
19022 to always fail with ENOSYS. Some functions are actually named
19023 something starting with __ and the normal name is an alias. */
19024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19025 choke me
19026 #else
19027 char (*f) () = $ac_func;
19028 #endif
19029 #ifdef __cplusplus
19030 }
19031 #endif
19032
19033 int
19034 main ()
19035 {
19036 return f != $ac_func;
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19043 (eval $ac_link) 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } &&
19050 { ac_try='test -z "$ac_c_werror_flag"
19051 || test ! -s conftest.err'
19052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19053 (eval $ac_try) 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; }; then
19063 eval "$as_ac_var=yes"
19064 else
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068 eval "$as_ac_var=no"
19069 fi
19070 rm -f conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072 fi
19073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19075 if test `eval echo '${'$as_ac_var'}'` = yes; then
19076 cat >>confdefs.h <<_ACEOF
19077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19078 _ACEOF
19079
19080 fi
19081 done
19082
19083 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
19084 echo "$as_me:$LINENO: checking for off_t" >&5
19085 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19086 if test "${ac_cv_type_off_t+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 int
19097 main ()
19098 {
19099 if ((off_t *) 0)
19100 return 0;
19101 if (sizeof (off_t))
19102 return 0;
19103 ;
19104 return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19109 (eval $ac_compile) 2>conftest.er1
19110 ac_status=$?
19111 grep -v '^ *+' conftest.er1 >conftest.err
19112 rm -f conftest.er1
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } &&
19116 { ac_try='test -z "$ac_c_werror_flag"
19117 || test ! -s conftest.err'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_off_t=yes
19130 else
19131 echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_cv_type_off_t=no
19135 fi
19136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19139 echo "${ECHO_T}$ac_cv_type_off_t" >&6
19140
19141 echo "$as_me:$LINENO: checking size of off_t" >&5
19142 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
19143 if test "${ac_cv_sizeof_off_t+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146 if test "$ac_cv_type_off_t" = yes; then
19147 # The cast to unsigned long works around a bug in the HP C Compiler
19148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19150 # This bug is HP SR number 8606223364.
19151 if test "$cross_compiling" = yes; then
19152 # Depending upon the size, compute the lo and hi bounds.
19153 cat >conftest.$ac_ext <<_ACEOF
19154 /* confdefs.h. */
19155 _ACEOF
19156 cat confdefs.h >>conftest.$ac_ext
19157 cat >>conftest.$ac_ext <<_ACEOF
19158 /* end confdefs.h. */
19159 $ac_includes_default
19160 int
19161 main ()
19162 {
19163 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
19164 test_array [0] = 0
19165
19166 ;
19167 return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172 (eval $ac_compile) 2>conftest.er1
19173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
19179 { ac_try='test -z "$ac_c_werror_flag"
19180 || test ! -s conftest.err'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } &&
19186 { ac_try='test -s conftest.$ac_objext'
19187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188 (eval $ac_try) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); }; }; then
19192 ac_lo=0 ac_mid=0
19193 while :; do
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19200 $ac_includes_default
19201 int
19202 main ()
19203 {
19204 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19205 test_array [0] = 0
19206
19207 ;
19208 return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19213 (eval $ac_compile) 2>conftest.er1
19214 ac_status=$?
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -z "$ac_c_werror_flag"
19221 || test ! -s conftest.err'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; } &&
19227 { ac_try='test -s conftest.$ac_objext'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; }; then
19233 ac_hi=$ac_mid; break
19234 else
19235 echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19237
19238 ac_lo=`expr $ac_mid + 1`
19239 if test $ac_lo -le $ac_mid; then
19240 ac_lo= ac_hi=
19241 break
19242 fi
19243 ac_mid=`expr 2 '*' $ac_mid + 1`
19244 fi
19245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19246 done
19247 else
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 $ac_includes_default
19258 int
19259 main ()
19260 {
19261 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
19262 test_array [0] = 0
19263
19264 ;
19265 return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag"
19278 || test ! -s conftest.err'
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_hi=-1 ac_mid=-1
19291 while :; do
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19299 int
19300 main ()
19301 {
19302 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
19303 test_array [0] = 0
19304
19305 ;
19306 return 0;
19307 }
19308 _ACEOF
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19328 ac_status=$?
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_lo=$ac_mid; break
19332 else
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19335
19336 ac_hi=`expr '(' $ac_mid ')' - 1`
19337 if test $ac_mid -le $ac_hi; then
19338 ac_lo= ac_hi=
19339 break
19340 fi
19341 ac_mid=`expr 2 '*' $ac_mid`
19342 fi
19343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 done
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_lo= ac_hi=
19350 fi
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 fi
19353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354 # Binary search between lo and hi bounds.
19355 while test "x$ac_lo" != "x$ac_hi"; do
19356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19357 cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h. */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 int
19365 main ()
19366 {
19367 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
19368 test_array [0] = 0
19369
19370 ;
19371 return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
19383 { ac_try='test -z "$ac_c_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_hi=$ac_mid
19397 else
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_lo=`expr '(' $ac_mid ')' + 1`
19402 fi
19403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19404 done
19405 case $ac_lo in
19406 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19408 See \`config.log' for more details." >&5
19409 echo "$as_me: error: cannot compute sizeof (off_t), 77
19410 See \`config.log' for more details." >&2;}
19411 { (exit 1); exit 1; }; } ;;
19412 esac
19413 else
19414 if test "$cross_compiling" = yes; then
19415 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19416 See \`config.log' for more details." >&5
19417 echo "$as_me: error: cannot run test program while cross compiling
19418 See \`config.log' for more details." >&2;}
19419 { (exit 1); exit 1; }; }
19420 else
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h. */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 $ac_includes_default
19428 long longval () { return (long) (sizeof (off_t)); }
19429 unsigned long ulongval () { return (long) (sizeof (off_t)); }
19430 #include <stdio.h>
19431 #include <stdlib.h>
19432 int
19433 main ()
19434 {
19435
19436 FILE *f = fopen ("conftest.val", "w");
19437 if (! f)
19438 exit (1);
19439 if (((long) (sizeof (off_t))) < 0)
19440 {
19441 long i = longval ();
19442 if (i != ((long) (sizeof (off_t))))
19443 exit (1);
19444 fprintf (f, "%ld\n", i);
19445 }
19446 else
19447 {
19448 unsigned long i = ulongval ();
19449 if (i != ((long) (sizeof (off_t))))
19450 exit (1);
19451 fprintf (f, "%lu\n", i);
19452 }
19453 exit (ferror (f) || fclose (f) != 0);
19454
19455 ;
19456 return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_sizeof_off_t=`cat conftest.val`
19471 else
19472 echo "$as_me: program exited with status $ac_status" >&5
19473 echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 ( exit $ac_status )
19477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
19478 See \`config.log' for more details." >&5
19479 echo "$as_me: error: cannot compute sizeof (off_t), 77
19480 See \`config.log' for more details." >&2;}
19481 { (exit 1); exit 1; }; }
19482 fi
19483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484 fi
19485 fi
19486 rm -f conftest.val
19487 else
19488 ac_cv_sizeof_off_t=0
19489 fi
19490 fi
19491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19492 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
19493 cat >>confdefs.h <<_ACEOF
19494 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19495 _ACEOF
19496
19497
19498 fi
19499 echo "$as_me:$LINENO: checking file_ptr type" >&5
19500 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
19501 bfd_file_ptr="long"
19502 bfd_ufile_ptr="unsigned long"
19503 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
19504 -o x"${ac_cv_sizeof_off_t}" = x8; then
19505 bfd_file_ptr=BFD_HOST_64_BIT
19506 bfd_ufile_ptr=BFD_HOST_U_64_BIT
19507 fi
19508 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
19509 echo "${ECHO_T}$bfd_file_ptr" >&6
19510
19511
19512
19513
19514 tdefaults=""
19515 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
19516 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
19517 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
19518 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
19519 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
19520
19521
19522
19523
19524 for ac_header in stdlib.h unistd.h
19525 do
19526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 fi
19533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19535 else
19536 # Is the header compilable?
19537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h. */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 $ac_includes_default
19546 #include <$ac_header>
19547 _ACEOF
19548 rm -f conftest.$ac_objext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19550 (eval $ac_compile) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_header_compiler=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_header_compiler=no
19576 fi
19577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579 echo "${ECHO_T}$ac_header_compiler" >&6
19580
19581 # Is the header present?
19582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 #include <$ac_header>
19591 _ACEOF
19592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null; then
19600 if test -s conftest.err; then
19601 ac_cpp_err=$ac_c_preproc_warn_flag
19602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19603 else
19604 ac_cpp_err=
19605 fi
19606 else
19607 ac_cpp_err=yes
19608 fi
19609 if test -z "$ac_cpp_err"; then
19610 ac_header_preproc=yes
19611 else
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615 ac_header_preproc=no
19616 fi
19617 rm -f conftest.err conftest.$ac_ext
19618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19619 echo "${ECHO_T}$ac_header_preproc" >&6
19620
19621 # So? What about this header?
19622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19623 yes:no: )
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19628 ac_header_preproc=yes
19629 ;;
19630 no:yes:* )
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19643 (
19644 cat <<\_ASBOX
19645 ## ------------------------------------------ ##
19646 ## Report this to the AC_PACKAGE_NAME lists. ##
19647 ## ------------------------------------------ ##
19648 _ASBOX
19649 ) |
19650 sed "s/^/$as_me: WARNING: /" >&2
19651 ;;
19652 esac
19653 echo "$as_me:$LINENO: checking for $ac_header" >&5
19654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 eval "$as_ac_Header=\$ac_header_preproc"
19659 fi
19660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662
19663 fi
19664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19667 _ACEOF
19668
19669 fi
19670
19671 done
19672
19673
19674 for ac_func in getpagesize
19675 do
19676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19677 echo "$as_me:$LINENO: checking for $ac_func" >&5
19678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19679 if eval "test \"\${$as_ac_var+set}\" = set"; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 else
19682 cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h. */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19690 #define $ac_func innocuous_$ac_func
19691
19692 /* System header to define __stub macros and hopefully few prototypes,
19693 which can conflict with char $ac_func (); below.
19694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695 <limits.h> exists even on freestanding compilers. */
19696
19697 #ifdef __STDC__
19698 # include <limits.h>
19699 #else
19700 # include <assert.h>
19701 #endif
19702
19703 #undef $ac_func
19704
19705 /* Override any gcc2 internal prototype to avoid an error. */
19706 #ifdef __cplusplus
19707 extern "C"
19708 {
19709 #endif
19710 /* We use char because int might match the return type of a gcc2
19711 builtin and then its argument prototype would still apply. */
19712 char $ac_func ();
19713 /* The GNU C library defines this for functions which it implements
19714 to always fail with ENOSYS. Some functions are actually named
19715 something starting with __ and the normal name is an alias. */
19716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19717 choke me
19718 #else
19719 char (*f) () = $ac_func;
19720 #endif
19721 #ifdef __cplusplus
19722 }
19723 #endif
19724
19725 int
19726 main ()
19727 {
19728 return f != $ac_func;
19729 ;
19730 return 0;
19731 }
19732 _ACEOF
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19735 (eval $ac_link) 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 eval "$as_ac_var=yes"
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 eval "$as_ac_var=no"
19761 fi
19762 rm -f conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19764 fi
19765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19767 if test `eval echo '${'$as_ac_var'}'` = yes; then
19768 cat >>confdefs.h <<_ACEOF
19769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19770 _ACEOF
19771
19772 fi
19773 done
19774
19775 echo "$as_me:$LINENO: checking for working mmap" >&5
19776 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
19777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780 if test "$cross_compiling" = yes; then
19781 ac_cv_func_mmap_fixed_mapped=no
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 $ac_includes_default
19790 /* malloc might have been renamed as rpl_malloc. */
19791 #undef malloc
19792
19793 /* Thanks to Mike Haertel and Jim Avera for this test.
19794 Here is a matrix of mmap possibilities:
19795 mmap private not fixed
19796 mmap private fixed at somewhere currently unmapped
19797 mmap private fixed at somewhere already mapped
19798 mmap shared not fixed
19799 mmap shared fixed at somewhere currently unmapped
19800 mmap shared fixed at somewhere already mapped
19801 For private mappings, we should verify that changes cannot be read()
19802 back from the file, nor mmap's back from the file at a different
19803 address. (There have been systems where private was not correctly
19804 implemented like the infamous i386 svr4.0, and systems where the
19805 VM page cache was not coherent with the file system buffer cache
19806 like early versions of FreeBSD and possibly contemporary NetBSD.)
19807 For shared mappings, we should conversely verify that changes get
19808 propagated back to all the places they're supposed to be.
19809
19810 Grep wants private fixed already mapped.
19811 The main things grep needs to know about mmap are:
19812 * does it exist and is it safe to write into the mmap'd area
19813 * how to use it (BSD variants) */
19814
19815 #include <fcntl.h>
19816 #include <sys/mman.h>
19817
19818 #if !STDC_HEADERS && !HAVE_STDLIB_H
19819 char *malloc ();
19820 #endif
19821
19822 /* This mess was copied from the GNU getpagesize.h. */
19823 #if !HAVE_GETPAGESIZE
19824 /* Assume that all systems that can run configure have sys/param.h. */
19825 # if !HAVE_SYS_PARAM_H
19826 # define HAVE_SYS_PARAM_H 1
19827 # endif
19828
19829 # ifdef _SC_PAGESIZE
19830 # define getpagesize() sysconf(_SC_PAGESIZE)
19831 # else /* no _SC_PAGESIZE */
19832 # if HAVE_SYS_PARAM_H
19833 # include <sys/param.h>
19834 # ifdef EXEC_PAGESIZE
19835 # define getpagesize() EXEC_PAGESIZE
19836 # else /* no EXEC_PAGESIZE */
19837 # ifdef NBPG
19838 # define getpagesize() NBPG * CLSIZE
19839 # ifndef CLSIZE
19840 # define CLSIZE 1
19841 # endif /* no CLSIZE */
19842 # else /* no NBPG */
19843 # ifdef NBPC
19844 # define getpagesize() NBPC
19845 # else /* no NBPC */
19846 # ifdef PAGESIZE
19847 # define getpagesize() PAGESIZE
19848 # endif /* PAGESIZE */
19849 # endif /* no NBPC */
19850 # endif /* no NBPG */
19851 # endif /* no EXEC_PAGESIZE */
19852 # else /* no HAVE_SYS_PARAM_H */
19853 # define getpagesize() 8192 /* punt totally */
19854 # endif /* no HAVE_SYS_PARAM_H */
19855 # endif /* no _SC_PAGESIZE */
19856
19857 #endif /* no HAVE_GETPAGESIZE */
19858
19859 int
19860 main ()
19861 {
19862 char *data, *data2, *data3;
19863 int i, pagesize;
19864 int fd;
19865
19866 pagesize = getpagesize ();
19867
19868 /* First, make a file with some known garbage in it. */
19869 data = (char *) malloc (pagesize);
19870 if (!data)
19871 exit (1);
19872 for (i = 0; i < pagesize; ++i)
19873 *(data + i) = rand ();
19874 umask (0);
19875 fd = creat ("conftest.mmap", 0600);
19876 if (fd < 0)
19877 exit (1);
19878 if (write (fd, data, pagesize) != pagesize)
19879 exit (1);
19880 close (fd);
19881
19882 /* Next, try to mmap the file at a fixed address which already has
19883 something else allocated at it. If we can, also make sure that
19884 we see the same garbage. */
19885 fd = open ("conftest.mmap", O_RDWR);
19886 if (fd < 0)
19887 exit (1);
19888 data2 = (char *) malloc (2 * pagesize);
19889 if (!data2)
19890 exit (1);
19891 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
19892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19894 exit (1);
19895 for (i = 0; i < pagesize; ++i)
19896 if (*(data + i) != *(data2 + i))
19897 exit (1);
19898
19899 /* Finally, make sure that changes to the mapped area do not
19900 percolate back to the file as seen by read(). (This is a bug on
19901 some variants of i386 svr4.0.) */
19902 for (i = 0; i < pagesize; ++i)
19903 *(data2 + i) = *(data2 + i) + 1;
19904 data3 = (char *) malloc (pagesize);
19905 if (!data3)
19906 exit (1);
19907 if (read (fd, data3, pagesize) != pagesize)
19908 exit (1);
19909 for (i = 0; i < pagesize; ++i)
19910 if (*(data + i) != *(data3 + i))
19911 exit (1);
19912 close (fd);
19913 exit (0);
19914 }
19915 _ACEOF
19916 rm -f conftest$ac_exeext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_func_mmap_fixed_mapped=yes
19928 else
19929 echo "$as_me: program exited with status $ac_status" >&5
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ( exit $ac_status )
19934 ac_cv_func_mmap_fixed_mapped=no
19935 fi
19936 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19937 fi
19938 fi
19939 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19940 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
19941 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19942
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_MMAP 1
19945 _ACEOF
19946
19947 fi
19948 rm -f conftest.mmap
19949
19950
19951
19952 for ac_func in madvise mprotect
19953 do
19954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19955 echo "$as_me:$LINENO: checking for $ac_func" >&5
19956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19957 if eval "test \"\${$as_ac_var+set}\" = set"; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19968 #define $ac_func innocuous_$ac_func
19969
19970 /* System header to define __stub macros and hopefully few prototypes,
19971 which can conflict with char $ac_func (); below.
19972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19973 <limits.h> exists even on freestanding compilers. */
19974
19975 #ifdef __STDC__
19976 # include <limits.h>
19977 #else
19978 # include <assert.h>
19979 #endif
19980
19981 #undef $ac_func
19982
19983 /* Override any gcc2 internal prototype to avoid an error. */
19984 #ifdef __cplusplus
19985 extern "C"
19986 {
19987 #endif
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19990 char $ac_func ();
19991 /* The GNU C library defines this for functions which it implements
19992 to always fail with ENOSYS. Some functions are actually named
19993 something starting with __ and the normal name is an alias. */
19994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19995 choke me
19996 #else
19997 char (*f) () = $ac_func;
19998 #endif
19999 #ifdef __cplusplus
20000 }
20001 #endif
20002
20003 int
20004 main ()
20005 {
20006 return f != $ac_func;
20007 ;
20008 return 0;
20009 }
20010 _ACEOF
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20013 (eval $ac_link) 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } &&
20020 { ac_try='test -z "$ac_c_werror_flag"
20021 || test ! -s conftest.err'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 eval "$as_ac_var=yes"
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 eval "$as_ac_var=no"
20039 fi
20040 rm -f conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042 fi
20043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20045 if test `eval echo '${'$as_ac_var'}'` = yes; then
20046 cat >>confdefs.h <<_ACEOF
20047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048 _ACEOF
20049
20050 fi
20051 done
20052
20053 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
20054 true+yes )
20055 cat >>confdefs.h <<\_ACEOF
20056 #define USE_MMAP 1
20057 _ACEOF
20058 ;;
20059 esac
20060
20061 rm -f doc/config.status
20062 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
20063
20064
20065 ac_config_commands="$ac_config_commands default"
20066
20067
20068
20069
20070
20071
20072 cat >confcache <<\_ACEOF
20073 # This file is a shell script that caches the results of configure
20074 # tests run on this system so they can be shared between configure
20075 # scripts and configure runs, see configure's option --config-cache.
20076 # It is not useful on other systems. If it contains results you don't
20077 # want to keep, you may remove or edit it.
20078 #
20079 # config.status only pays attention to the cache file if you give it
20080 # the --recheck option to rerun configure.
20081 #
20082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20084 # following values.
20085
20086 _ACEOF
20087
20088 # The following way of writing the cache mishandles newlines in values,
20089 # but we know of no workaround that is simple, portable, and efficient.
20090 # So, don't put newlines in cache variables' values.
20091 # Ultrix sh set writes to stderr and can't be redirected directly,
20092 # and sets the high bit in the cache file unless we assign to the vars.
20093 {
20094 (set) 2>&1 |
20095 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20096 *ac_space=\ *)
20097 # `set' does not quote correctly, so add quotes (double-quote
20098 # substitution turns \\\\ into \\, and sed turns \\ into \).
20099 sed -n \
20100 "s/'/'\\\\''/g;
20101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20102 ;;
20103 *)
20104 # `set' quotes correctly as required by POSIX, so do not add quotes.
20105 sed -n \
20106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20107 ;;
20108 esac;
20109 } |
20110 sed '
20111 t clear
20112 : clear
20113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20114 t end
20115 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20116 : end' >>confcache
20117 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20118 if test -w $cache_file; then
20119 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20120 cat confcache >$cache_file
20121 else
20122 echo "not updating unwritable cache $cache_file"
20123 fi
20124 fi
20125 rm -f confcache
20126
20127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20128 # Let make expand exec_prefix.
20129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20130
20131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20133 # trailing colons and then remove the whole line if VPATH becomes empty
20134 # (actually we leave an empty line to preserve line numbers).
20135 if test "x$srcdir" = x.; then
20136 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20137 s/:*\$(srcdir):*/:/;
20138 s/:*\${srcdir}:*/:/;
20139 s/:*@srcdir@:*/:/;
20140 s/^\([^=]*=[ ]*\):*/\1/;
20141 s/:*$//;
20142 s/^[^=]*=[ ]*$//;
20143 }'
20144 fi
20145
20146 DEFS=-DHAVE_CONFIG_H
20147
20148 ac_libobjs=
20149 ac_ltlibobjs=
20150 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20151 # 1. Remove the extension, and $U if already installed.
20152 ac_i=`echo "$ac_i" |
20153 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20154 # 2. Add them.
20155 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20156 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20157 done
20158 LIBOBJS=$ac_libobjs
20159
20160 LTLIBOBJS=$ac_ltlibobjs
20161
20162
20163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20164 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20165 Usually this means the macro was only invoked conditionally." >&5
20166 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20167 Usually this means the macro was only invoked conditionally." >&2;}
20168 { (exit 1); exit 1; }; }
20169 fi
20170 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20171 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20172 Usually this means the macro was only invoked conditionally." >&5
20173 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20174 Usually this means the macro was only invoked conditionally." >&2;}
20175 { (exit 1); exit 1; }; }
20176 fi
20177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20178 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20179 Usually this means the macro was only invoked conditionally." >&5
20180 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20181 Usually this means the macro was only invoked conditionally." >&2;}
20182 { (exit 1); exit 1; }; }
20183 fi
20184 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
20185 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
20186 Usually this means the macro was only invoked conditionally." >&5
20187 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
20188 Usually this means the macro was only invoked conditionally." >&2;}
20189 { (exit 1); exit 1; }; }
20190 fi
20191 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
20192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
20193 Usually this means the macro was only invoked conditionally." >&5
20194 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
20195 Usually this means the macro was only invoked conditionally." >&2;}
20196 { (exit 1); exit 1; }; }
20197 fi
20198
20199 : ${CONFIG_STATUS=./config.status}
20200 ac_clean_files_save=$ac_clean_files
20201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20204 cat >$CONFIG_STATUS <<_ACEOF
20205 #! $SHELL
20206 # Generated by $as_me.
20207 # Run this file to recreate the current configuration.
20208 # Compiler output produced by configure, useful for debugging
20209 # configure, is in config.log if it exists.
20210
20211 debug=false
20212 ac_cs_recheck=false
20213 ac_cs_silent=false
20214 SHELL=\${CONFIG_SHELL-$SHELL}
20215 _ACEOF
20216
20217 cat >>$CONFIG_STATUS <<\_ACEOF
20218 ## --------------------- ##
20219 ## M4sh Initialization. ##
20220 ## --------------------- ##
20221
20222 # Be Bourne compatible
20223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20224 emulate sh
20225 NULLCMD=:
20226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20227 # is contrary to our usage. Disable this feature.
20228 alias -g '${1+"$@"}'='"$@"'
20229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20230 set -o posix
20231 fi
20232 DUALCASE=1; export DUALCASE # for MKS sh
20233
20234 # Support unset when possible.
20235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20236 as_unset=unset
20237 else
20238 as_unset=false
20239 fi
20240
20241
20242 # Work around bugs in pre-3.0 UWIN ksh.
20243 $as_unset ENV MAIL MAILPATH
20244 PS1='$ '
20245 PS2='> '
20246 PS4='+ '
20247
20248 # NLS nuisances.
20249 for as_var in \
20250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20252 LC_TELEPHONE LC_TIME
20253 do
20254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20255 eval $as_var=C; export $as_var
20256 else
20257 $as_unset $as_var
20258 fi
20259 done
20260
20261 # Required to use basename.
20262 if expr a : '\(a\)' >/dev/null 2>&1; then
20263 as_expr=expr
20264 else
20265 as_expr=false
20266 fi
20267
20268 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20269 as_basename=basename
20270 else
20271 as_basename=false
20272 fi
20273
20274
20275 # Name of the executable.
20276 as_me=`$as_basename "$0" ||
20277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20278 X"$0" : 'X\(//\)$' \| \
20279 X"$0" : 'X\(/\)$' \| \
20280 . : '\(.\)' 2>/dev/null ||
20281 echo X/"$0" |
20282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20283 /^X\/\(\/\/\)$/{ s//\1/; q; }
20284 /^X\/\(\/\).*/{ s//\1/; q; }
20285 s/.*/./; q'`
20286
20287
20288 # PATH needs CR, and LINENO needs CR and PATH.
20289 # Avoid depending upon Character Ranges.
20290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20293 as_cr_digits='0123456789'
20294 as_cr_alnum=$as_cr_Letters$as_cr_digits
20295
20296 # The user is always right.
20297 if test "${PATH_SEPARATOR+set}" != set; then
20298 echo "#! /bin/sh" >conf$$.sh
20299 echo "exit 0" >>conf$$.sh
20300 chmod +x conf$$.sh
20301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20302 PATH_SEPARATOR=';'
20303 else
20304 PATH_SEPARATOR=:
20305 fi
20306 rm -f conf$$.sh
20307 fi
20308
20309
20310 as_lineno_1=$LINENO
20311 as_lineno_2=$LINENO
20312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20313 test "x$as_lineno_1" != "x$as_lineno_2" &&
20314 test "x$as_lineno_3" = "x$as_lineno_2" || {
20315 # Find who we are. Look in the path if we contain no path at all
20316 # relative or not.
20317 case $0 in
20318 *[\\/]* ) as_myself=$0 ;;
20319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20320 for as_dir in $PATH
20321 do
20322 IFS=$as_save_IFS
20323 test -z "$as_dir" && as_dir=.
20324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20325 done
20326
20327 ;;
20328 esac
20329 # We did not find ourselves, most probably we were run as `sh COMMAND'
20330 # in which case we are not to be found in the path.
20331 if test "x$as_myself" = x; then
20332 as_myself=$0
20333 fi
20334 if test ! -f "$as_myself"; then
20335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20336 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20337 { (exit 1); exit 1; }; }
20338 fi
20339 case $CONFIG_SHELL in
20340 '')
20341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20342 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20343 do
20344 IFS=$as_save_IFS
20345 test -z "$as_dir" && as_dir=.
20346 for as_base in sh bash ksh sh5; do
20347 case $as_dir in
20348 /*)
20349 if ("$as_dir/$as_base" -c '
20350 as_lineno_1=$LINENO
20351 as_lineno_2=$LINENO
20352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20353 test "x$as_lineno_1" != "x$as_lineno_2" &&
20354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20357 CONFIG_SHELL=$as_dir/$as_base
20358 export CONFIG_SHELL
20359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20360 fi;;
20361 esac
20362 done
20363 done
20364 ;;
20365 esac
20366
20367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20368 # uniformly replaced by the line number. The first 'sed' inserts a
20369 # line-number line before each line; the second 'sed' does the real
20370 # work. The second script uses 'N' to pair each line-number line
20371 # with the numbered line, and appends trailing '-' during
20372 # substitution so that $LINENO is not a special case at line end.
20373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20375 sed '=' <$as_myself |
20376 sed '
20377 N
20378 s,$,-,
20379 : loop
20380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20381 t loop
20382 s,-$,,
20383 s,^['$as_cr_digits']*\n,,
20384 ' >$as_me.lineno &&
20385 chmod +x $as_me.lineno ||
20386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20387 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20388 { (exit 1); exit 1; }; }
20389
20390 # Don't try to exec as it changes $[0], causing all sort of problems
20391 # (the dirname of $[0] is not the place where we might find the
20392 # original and so on. Autoconf is especially sensible to this).
20393 . ./$as_me.lineno
20394 # Exit status is that of the last command.
20395 exit
20396 }
20397
20398
20399 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20400 *c*,-n*) ECHO_N= ECHO_C='
20401 ' ECHO_T=' ' ;;
20402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20404 esac
20405
20406 if expr a : '\(a\)' >/dev/null 2>&1; then
20407 as_expr=expr
20408 else
20409 as_expr=false
20410 fi
20411
20412 rm -f conf$$ conf$$.exe conf$$.file
20413 echo >conf$$.file
20414 if ln -s conf$$.file conf$$ 2>/dev/null; then
20415 # We could just check for DJGPP; but this test a) works b) is more generic
20416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20417 if test -f conf$$.exe; then
20418 # Don't use ln at all; we don't have any links
20419 as_ln_s='cp -p'
20420 else
20421 as_ln_s='ln -s'
20422 fi
20423 elif ln conf$$.file conf$$ 2>/dev/null; then
20424 as_ln_s=ln
20425 else
20426 as_ln_s='cp -p'
20427 fi
20428 rm -f conf$$ conf$$.exe conf$$.file
20429
20430 if mkdir -p . 2>/dev/null; then
20431 as_mkdir_p=:
20432 else
20433 test -d ./-p && rmdir ./-p
20434 as_mkdir_p=false
20435 fi
20436
20437 as_executable_p="test -f"
20438
20439 # Sed expression to map a string onto a valid CPP name.
20440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20441
20442 # Sed expression to map a string onto a valid variable name.
20443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20444
20445
20446 # IFS
20447 # We need space, tab and new line, in precisely that order.
20448 as_nl='
20449 '
20450 IFS=" $as_nl"
20451
20452 # CDPATH.
20453 $as_unset CDPATH
20454
20455 exec 6>&1
20456
20457 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20458 # report actual input values of CONFIG_FILES etc. instead of their
20459 # values after options handling. Logging --version etc. is OK.
20460 exec 5>>config.log
20461 {
20462 echo
20463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20464 ## Running $as_me. ##
20465 _ASBOX
20466 } >&5
20467 cat >&5 <<_CSEOF
20468
20469 This file was extended by $as_me, which was
20470 generated by GNU Autoconf 2.59. Invocation command line was
20471
20472 CONFIG_FILES = $CONFIG_FILES
20473 CONFIG_HEADERS = $CONFIG_HEADERS
20474 CONFIG_LINKS = $CONFIG_LINKS
20475 CONFIG_COMMANDS = $CONFIG_COMMANDS
20476 $ $0 $@
20477
20478 _CSEOF
20479 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20480 echo >&5
20481 _ACEOF
20482
20483 # Files that config.status was made for.
20484 if test -n "$ac_config_files"; then
20485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20486 fi
20487
20488 if test -n "$ac_config_headers"; then
20489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20490 fi
20491
20492 if test -n "$ac_config_links"; then
20493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20494 fi
20495
20496 if test -n "$ac_config_commands"; then
20497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20498 fi
20499
20500 cat >>$CONFIG_STATUS <<\_ACEOF
20501
20502 ac_cs_usage="\
20503 \`$as_me' instantiates files from templates according to the
20504 current configuration.
20505
20506 Usage: $0 [OPTIONS] [FILE]...
20507
20508 -h, --help print this help, then exit
20509 -V, --version print version number, then exit
20510 -q, --quiet do not print progress messages
20511 -d, --debug don't remove temporary files
20512 --recheck update $as_me by reconfiguring in the same conditions
20513 --file=FILE[:TEMPLATE]
20514 instantiate the configuration file FILE
20515 --header=FILE[:TEMPLATE]
20516 instantiate the configuration header FILE
20517
20518 Configuration files:
20519 $config_files
20520
20521 Configuration headers:
20522 $config_headers
20523
20524 Configuration commands:
20525 $config_commands
20526
20527 Report bugs to <bug-autoconf@gnu.org>."
20528 _ACEOF
20529
20530 cat >>$CONFIG_STATUS <<_ACEOF
20531 ac_cs_version="\\
20532 config.status
20533 configured by $0, generated by GNU Autoconf 2.59,
20534 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20535
20536 Copyright (C) 2003 Free Software Foundation, Inc.
20537 This config.status script is free software; the Free Software Foundation
20538 gives unlimited permission to copy, distribute and modify it."
20539 srcdir=$srcdir
20540 INSTALL="$INSTALL"
20541 _ACEOF
20542
20543 cat >>$CONFIG_STATUS <<\_ACEOF
20544 # If no file are specified by the user, then we need to provide default
20545 # value. By we need to know if files were specified by the user.
20546 ac_need_defaults=:
20547 while test $# != 0
20548 do
20549 case $1 in
20550 --*=*)
20551 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20552 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20553 ac_shift=:
20554 ;;
20555 -*)
20556 ac_option=$1
20557 ac_optarg=$2
20558 ac_shift=shift
20559 ;;
20560 *) # This is not an option, so the user has probably given explicit
20561 # arguments.
20562 ac_option=$1
20563 ac_need_defaults=false;;
20564 esac
20565
20566 case $ac_option in
20567 # Handling of the options.
20568 _ACEOF
20569 cat >>$CONFIG_STATUS <<\_ACEOF
20570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20571 ac_cs_recheck=: ;;
20572 --version | --vers* | -V )
20573 echo "$ac_cs_version"; exit 0 ;;
20574 --he | --h)
20575 # Conflict between --help and --header
20576 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20577 Try \`$0 --help' for more information." >&5
20578 echo "$as_me: error: ambiguous option: $1
20579 Try \`$0 --help' for more information." >&2;}
20580 { (exit 1); exit 1; }; };;
20581 --help | --hel | -h )
20582 echo "$ac_cs_usage"; exit 0 ;;
20583 --debug | --d* | -d )
20584 debug=: ;;
20585 --file | --fil | --fi | --f )
20586 $ac_shift
20587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20588 ac_need_defaults=false;;
20589 --header | --heade | --head | --hea )
20590 $ac_shift
20591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20592 ac_need_defaults=false;;
20593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20594 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20595 ac_cs_silent=: ;;
20596
20597 # This is an error.
20598 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20599 Try \`$0 --help' for more information." >&5
20600 echo "$as_me: error: unrecognized option: $1
20601 Try \`$0 --help' for more information." >&2;}
20602 { (exit 1); exit 1; }; } ;;
20603
20604 *) ac_config_targets="$ac_config_targets $1" ;;
20605
20606 esac
20607 shift
20608 done
20609
20610 ac_configure_extra_args=
20611
20612 if $ac_cs_silent; then
20613 exec 6>/dev/null
20614 ac_configure_extra_args="$ac_configure_extra_args --silent"
20615 fi
20616
20617 _ACEOF
20618 cat >>$CONFIG_STATUS <<_ACEOF
20619 if \$ac_cs_recheck; then
20620 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20621 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20622 fi
20623
20624 _ACEOF
20625
20626 cat >>$CONFIG_STATUS <<_ACEOF
20627 #
20628 # INIT-COMMANDS section.
20629 #
20630
20631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20632
20633
20634 # The HP-UX ksh and POSIX shell print the target directory to stdout
20635 # if CDPATH is set.
20636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20637
20638 sed_quote_subst='$sed_quote_subst'
20639 double_quote_subst='$double_quote_subst'
20640 delay_variable_subst='$delay_variable_subst'
20641 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20642 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20643 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20644 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20645 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20646 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20647 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20648 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20649 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20650 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20651 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20652 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20653 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20654 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20655 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20656 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20657 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20658 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20659 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20660 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20661 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20662 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20663 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20664 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20665 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20666 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20667 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20668 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20669 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20670 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20671 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20672 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20673 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20674 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20675 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20676 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20677 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20678 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20679 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20680 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20681 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20682 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20683 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20684 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"`'
20685 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20686 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20687 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20688 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20689 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20690 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20691 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20692 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20693 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20694 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20695 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20696 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20697 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20698 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20699 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20700 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20701 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20702 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20703 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20704 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20705 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20706 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20707 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20708 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20709 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20710 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20711 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20712 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20713 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20714 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20715 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20716 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20717 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20718 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20719 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20720 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20721 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20722 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20723 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20724 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20725 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20726 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20727 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20728 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20729 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20730 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20731 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20732 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20733 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20734 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20735 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20736 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20737 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20738 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20739 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20741 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20742 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20743 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20744 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20745 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20746 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20747 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20748 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20749 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20750 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20751 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20752
20753 LTCC='$LTCC'
20754 LTCFLAGS='$LTCFLAGS'
20755 compiler='$compiler_DEFAULT'
20756
20757 # Quote evaled strings.
20758 for var in SED \
20759 GREP \
20760 EGREP \
20761 FGREP \
20762 LD \
20763 NM \
20764 LN_S \
20765 lt_SP2NL \
20766 lt_NL2SP \
20767 reload_flag \
20768 deplibs_check_method \
20769 file_magic_cmd \
20770 AR \
20771 AR_FLAGS \
20772 STRIP \
20773 RANLIB \
20774 CC \
20775 CFLAGS \
20776 compiler \
20777 lt_cv_sys_global_symbol_pipe \
20778 lt_cv_sys_global_symbol_to_cdecl \
20779 lt_cv_sys_global_symbol_to_c_name_address \
20780 SHELL \
20781 ECHO \
20782 lt_prog_compiler_no_builtin_flag \
20783 lt_prog_compiler_wl \
20784 lt_prog_compiler_pic \
20785 lt_prog_compiler_static \
20786 lt_cv_prog_compiler_c_o \
20787 need_locks \
20788 shrext_cmds \
20789 export_dynamic_flag_spec \
20790 whole_archive_flag_spec \
20791 compiler_needs_object \
20792 with_gnu_ld \
20793 allow_undefined_flag \
20794 no_undefined_flag \
20795 hardcode_libdir_flag_spec \
20796 hardcode_libdir_flag_spec_ld \
20797 hardcode_libdir_separator \
20798 fix_srcfile_path \
20799 exclude_expsyms \
20800 include_expsyms \
20801 file_list_spec \
20802 variables_saved_for_relink \
20803 libname_spec \
20804 library_names_spec \
20805 soname_spec \
20806 finish_eval \
20807 old_striplib \
20808 striplib; do
20809 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20810 *[\\\\\\\`\\"\\\$]*)
20811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20812 ;;
20813 *)
20814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20815 ;;
20816 esac
20817 done
20818
20819 # Double-quote double-evaled strings.
20820 for var in reload_cmds \
20821 old_postinstall_cmds \
20822 old_postuninstall_cmds \
20823 old_archive_cmds \
20824 extract_expsyms_cmds \
20825 old_archive_from_new_cmds \
20826 old_archive_from_expsyms_cmds \
20827 archive_cmds \
20828 archive_expsym_cmds \
20829 module_cmds \
20830 module_expsym_cmds \
20831 export_symbols_cmds \
20832 prelink_cmds \
20833 postinstall_cmds \
20834 postuninstall_cmds \
20835 finish_cmds \
20836 sys_lib_search_path_spec \
20837 sys_lib_dlsearch_path_spec; do
20838 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20839 *[\\\\\\\`\\"\\\$]*)
20840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20841 ;;
20842 *)
20843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20844 ;;
20845 esac
20846 done
20847
20848 # Fix-up fallback echo if it was mangled by the above quoting rules.
20849 case \$lt_ECHO in
20850 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20851 ;;
20852 esac
20853
20854 ac_aux_dir='$ac_aux_dir'
20855 xsi_shell='$xsi_shell'
20856 lt_shell_append='$lt_shell_append'
20857
20858 # See if we are running on zsh, and set the options which allow our
20859 # commands through without removal of \ escapes INIT.
20860 if test -n "\${ZSH_VERSION+set}" ; then
20861 setopt NO_GLOB_SUBST
20862 fi
20863
20864
20865 PACKAGE='$PACKAGE'
20866 VERSION='$VERSION'
20867 TIMESTAMP='$TIMESTAMP'
20868 RM='$RM'
20869 ofile='$ofile'
20870
20871
20872
20873 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
20874 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20875 # from automake.
20876 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20877 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20878 LINGUAS="${LINGUAS-%UNSET%}"
20879
20880
20881 GCC="$GCC"
20882 CC="$CC"
20883 acx_cv_header_stdint="$acx_cv_header_stdint"
20884 acx_cv_type_int8_t="$acx_cv_type_int8_t"
20885 acx_cv_type_int16_t="$acx_cv_type_int16_t"
20886 acx_cv_type_int32_t="$acx_cv_type_int32_t"
20887 acx_cv_type_int64_t="$acx_cv_type_int64_t"
20888 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
20889 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
20890 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
20891 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
20892 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
20893 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
20894 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
20895 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
20896 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
20897
20898
20899
20900 _ACEOF
20901
20902
20903
20904 cat >>$CONFIG_STATUS <<\_ACEOF
20905 for ac_config_target in $ac_config_targets
20906 do
20907 case "$ac_config_target" in
20908 # Handling of arguments.
20909 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20910 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20911 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
20912 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20913 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20914 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20915 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20916 "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
20917 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20918 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20921 { (exit 1); exit 1; }; };;
20922 esac
20923 done
20924
20925 # If the user did not use the arguments to specify the items to instantiate,
20926 # then the envvar interface is used. Set only those that are not.
20927 # We use the long form for the default assignment because of an extremely
20928 # bizarre bug on SunOS 4.1.3.
20929 if $ac_need_defaults; then
20930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20933 fi
20934
20935 # Have a temporary directory for convenience. Make it in the build tree
20936 # simply because there is no reason to put it here, and in addition,
20937 # creating and moving files from /tmp can sometimes cause problems.
20938 # Create a temporary directory, and hook for its removal unless debugging.
20939 $debug ||
20940 {
20941 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20942 trap '{ (exit 1); exit 1; }' 1 2 13 15
20943 }
20944
20945 # Create a (secure) tmp directory for tmp files.
20946
20947 {
20948 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20949 test -n "$tmp" && test -d "$tmp"
20950 } ||
20951 {
20952 tmp=./confstat$$-$RANDOM
20953 (umask 077 && mkdir $tmp)
20954 } ||
20955 {
20956 echo "$me: cannot create a temporary directory in ." >&2
20957 { (exit 1); exit 1; }
20958 }
20959
20960 _ACEOF
20961
20962 cat >>$CONFIG_STATUS <<_ACEOF
20963
20964 #
20965 # CONFIG_FILES section.
20966 #
20967
20968 # No need to generate the scripts if there are no CONFIG_FILES.
20969 # This happens for instance when ./config.status config.h
20970 if test -n "\$CONFIG_FILES"; then
20971 # Protect against being on the right side of a sed subst in config.status.
20972 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20973 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20974 s,@SHELL@,$SHELL,;t t
20975 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20976 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20977 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20978 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20979 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20980 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20981 s,@exec_prefix@,$exec_prefix,;t t
20982 s,@prefix@,$prefix,;t t
20983 s,@program_transform_name@,$program_transform_name,;t t
20984 s,@bindir@,$bindir,;t t
20985 s,@sbindir@,$sbindir,;t t
20986 s,@libexecdir@,$libexecdir,;t t
20987 s,@datadir@,$datadir,;t t
20988 s,@sysconfdir@,$sysconfdir,;t t
20989 s,@sharedstatedir@,$sharedstatedir,;t t
20990 s,@localstatedir@,$localstatedir,;t t
20991 s,@libdir@,$libdir,;t t
20992 s,@includedir@,$includedir,;t t
20993 s,@oldincludedir@,$oldincludedir,;t t
20994 s,@infodir@,$infodir,;t t
20995 s,@mandir@,$mandir,;t t
20996 s,@build_alias@,$build_alias,;t t
20997 s,@host_alias@,$host_alias,;t t
20998 s,@target_alias@,$target_alias,;t t
20999 s,@DEFS@,$DEFS,;t t
21000 s,@ECHO_C@,$ECHO_C,;t t
21001 s,@ECHO_N@,$ECHO_N,;t t
21002 s,@ECHO_T@,$ECHO_T,;t t
21003 s,@LIBS@,$LIBS,;t t
21004 s,@build@,$build,;t t
21005 s,@build_cpu@,$build_cpu,;t t
21006 s,@build_vendor@,$build_vendor,;t t
21007 s,@build_os@,$build_os,;t t
21008 s,@host@,$host,;t t
21009 s,@host_cpu@,$host_cpu,;t t
21010 s,@host_vendor@,$host_vendor,;t t
21011 s,@host_os@,$host_os,;t t
21012 s,@target@,$target,;t t
21013 s,@target_cpu@,$target_cpu,;t t
21014 s,@target_vendor@,$target_vendor,;t t
21015 s,@target_os@,$target_os,;t t
21016 s,@CC@,$CC,;t t
21017 s,@CFLAGS@,$CFLAGS,;t t
21018 s,@LDFLAGS@,$LDFLAGS,;t t
21019 s,@CPPFLAGS@,$CPPFLAGS,;t t
21020 s,@ac_ct_CC@,$ac_ct_CC,;t t
21021 s,@EXEEXT@,$EXEEXT,;t t
21022 s,@OBJEXT@,$OBJEXT,;t t
21023 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21024 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21025 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21026 s,@CYGPATH_W@,$CYGPATH_W,;t t
21027 s,@PACKAGE@,$PACKAGE,;t t
21028 s,@VERSION@,$VERSION,;t t
21029 s,@ACLOCAL@,$ACLOCAL,;t t
21030 s,@AUTOCONF@,$AUTOCONF,;t t
21031 s,@AUTOMAKE@,$AUTOMAKE,;t t
21032 s,@AUTOHEADER@,$AUTOHEADER,;t t
21033 s,@MAKEINFO@,$MAKEINFO,;t t
21034 s,@install_sh@,$install_sh,;t t
21035 s,@STRIP@,$STRIP,;t t
21036 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21037 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21038 s,@mkdir_p@,$mkdir_p,;t t
21039 s,@AWK@,$AWK,;t t
21040 s,@SET_MAKE@,$SET_MAKE,;t t
21041 s,@am__leading_dot@,$am__leading_dot,;t t
21042 s,@AMTAR@,$AMTAR,;t t
21043 s,@am__tar@,$am__tar,;t t
21044 s,@am__untar@,$am__untar,;t t
21045 s,@DEPDIR@,$DEPDIR,;t t
21046 s,@am__include@,$am__include,;t t
21047 s,@am__quote@,$am__quote,;t t
21048 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21049 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21050 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21051 s,@CCDEPMODE@,$CCDEPMODE,;t t
21052 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21053 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21054 s,@AR@,$AR,;t t
21055 s,@ac_ct_AR@,$ac_ct_AR,;t t
21056 s,@RANLIB@,$RANLIB,;t t
21057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21058 s,@LIBTOOL@,$LIBTOOL,;t t
21059 s,@SED@,$SED,;t t
21060 s,@EGREP@,$EGREP,;t t
21061 s,@FGREP@,$FGREP,;t t
21062 s,@GREP@,$GREP,;t t
21063 s,@LD@,$LD,;t t
21064 s,@DUMPBIN@,$DUMPBIN,;t t
21065 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
21066 s,@NM@,$NM,;t t
21067 s,@LN_S@,$LN_S,;t t
21068 s,@lt_ECHO@,$lt_ECHO,;t t
21069 s,@CPP@,$CPP,;t t
21070 s,@PKGVERSION@,$PKGVERSION,;t t
21071 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21072 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21073 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21074 s,@NO_WERROR@,$NO_WERROR,;t t
21075 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21076 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21077 s,@MAINT@,$MAINT,;t t
21078 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
21079 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
21080 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
21081 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
21082 s,@host_noncanonical@,$host_noncanonical,;t t
21083 s,@target_noncanonical@,$target_noncanonical,;t t
21084 s,@bfdlibdir@,$bfdlibdir,;t t
21085 s,@bfdincludedir@,$bfdincludedir,;t t
21086 s,@USE_NLS@,$USE_NLS,;t t
21087 s,@LIBINTL@,$LIBINTL,;t t
21088 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21089 s,@INCINTL@,$INCINTL,;t t
21090 s,@XGETTEXT@,$XGETTEXT,;t t
21091 s,@GMSGFMT@,$GMSGFMT,;t t
21092 s,@POSUB@,$POSUB,;t t
21093 s,@CATALOGS@,$CATALOGS,;t t
21094 s,@DATADIRNAME@,$DATADIRNAME,;t t
21095 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21096 s,@GENCAT@,$GENCAT,;t t
21097 s,@CATOBJEXT@,$CATOBJEXT,;t t
21098 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21099 s,@MSGFMT@,$MSGFMT,;t t
21100 s,@MSGMERGE@,$MSGMERGE,;t t
21101 s,@HDEFINES@,$HDEFINES,;t t
21102 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
21103 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
21104 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
21105 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
21106 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
21107 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
21108 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
21109 s,@COREFILE@,$COREFILE,;t t
21110 s,@COREFLAG@,$COREFLAG,;t t
21111 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
21112 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
21113 s,@TDEFINES@,$TDEFINES,;t t
21114 s,@wordsize@,$wordsize,;t t
21115 s,@bfd64_libs@,$bfd64_libs,;t t
21116 s,@all_backends@,$all_backends,;t t
21117 s,@bfd_backends@,$bfd_backends,;t t
21118 s,@bfd_machines@,$bfd_machines,;t t
21119 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
21120 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
21121 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
21122 s,@tdefaults@,$tdefaults,;t t
21123 s,@datarootdir@,$datarootdir,;t t
21124 s,@docdir@,$docdir,;t t
21125 s,@htmldir@,$htmldir,;t t
21126 s,@LIBOBJS@,$LIBOBJS,;t t
21127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21128 CEOF
21129
21130 _ACEOF
21131
21132 cat >>$CONFIG_STATUS <<\_ACEOF
21133 # Split the substitutions into bite-sized pieces for seds with
21134 # small command number limits, like on Digital OSF/1 and HP-UX.
21135 ac_max_sed_lines=48
21136 ac_sed_frag=1 # Number of current file.
21137 ac_beg=1 # First line for current file.
21138 ac_end=$ac_max_sed_lines # Line after last line for current file.
21139 ac_more_lines=:
21140 ac_sed_cmds=
21141 while $ac_more_lines; do
21142 if test $ac_beg -gt 1; then
21143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21144 else
21145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21146 fi
21147 if test ! -s $tmp/subs.frag; then
21148 ac_more_lines=false
21149 else
21150 # The purpose of the label and of the branching condition is to
21151 # speed up the sed processing (if there are no `@' at all, there
21152 # is no need to browse any of the substitutions).
21153 # These are the two extra sed commands mentioned above.
21154 (echo ':t
21155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21156 if test -z "$ac_sed_cmds"; then
21157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21158 else
21159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21160 fi
21161 ac_sed_frag=`expr $ac_sed_frag + 1`
21162 ac_beg=$ac_end
21163 ac_end=`expr $ac_end + $ac_max_sed_lines`
21164 fi
21165 done
21166 if test -z "$ac_sed_cmds"; then
21167 ac_sed_cmds=cat
21168 fi
21169 fi # test -n "$CONFIG_FILES"
21170
21171 _ACEOF
21172 cat >>$CONFIG_STATUS <<\_ACEOF
21173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21175 case $ac_file in
21176 - | *:- | *:-:* ) # input from stdin
21177 cat >$tmp/stdin
21178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21182 * ) ac_file_in=$ac_file.in ;;
21183 esac
21184
21185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188 X"$ac_file" : 'X\(//\)[^/]' \| \
21189 X"$ac_file" : 'X\(//\)$' \| \
21190 X"$ac_file" : 'X\(/\)' \| \
21191 . : '\(.\)' 2>/dev/null ||
21192 echo X"$ac_file" |
21193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21195 /^X\(\/\/\)$/{ s//\1/; q; }
21196 /^X\(\/\).*/{ s//\1/; q; }
21197 s/.*/./; q'`
21198 { if $as_mkdir_p; then
21199 mkdir -p "$ac_dir"
21200 else
21201 as_dir="$ac_dir"
21202 as_dirs=
21203 while test ! -d "$as_dir"; do
21204 as_dirs="$as_dir $as_dirs"
21205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21207 X"$as_dir" : 'X\(//\)[^/]' \| \
21208 X"$as_dir" : 'X\(//\)$' \| \
21209 X"$as_dir" : 'X\(/\)' \| \
21210 . : '\(.\)' 2>/dev/null ||
21211 echo X"$as_dir" |
21212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21214 /^X\(\/\/\)$/{ s//\1/; q; }
21215 /^X\(\/\).*/{ s//\1/; q; }
21216 s/.*/./; q'`
21217 done
21218 test ! -n "$as_dirs" || mkdir $as_dirs
21219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21221 { (exit 1); exit 1; }; }; }
21222
21223 ac_builddir=.
21224
21225 if test "$ac_dir" != .; then
21226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21227 # A "../" for each directory in $ac_dir_suffix.
21228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21229 else
21230 ac_dir_suffix= ac_top_builddir=
21231 fi
21232
21233 case $srcdir in
21234 .) # No --srcdir option. We are building in place.
21235 ac_srcdir=.
21236 if test -z "$ac_top_builddir"; then
21237 ac_top_srcdir=.
21238 else
21239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21240 fi ;;
21241 [\\/]* | ?:[\\/]* ) # Absolute path.
21242 ac_srcdir=$srcdir$ac_dir_suffix;
21243 ac_top_srcdir=$srcdir ;;
21244 *) # Relative path.
21245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21247 esac
21248
21249 # Do not use `cd foo && pwd` to compute absolute paths, because
21250 # the directories may not exist.
21251 case `pwd` in
21252 .) ac_abs_builddir="$ac_dir";;
21253 *)
21254 case "$ac_dir" in
21255 .) ac_abs_builddir=`pwd`;;
21256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21258 esac;;
21259 esac
21260 case $ac_abs_builddir in
21261 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21262 *)
21263 case ${ac_top_builddir}. in
21264 .) ac_abs_top_builddir=$ac_abs_builddir;;
21265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21267 esac;;
21268 esac
21269 case $ac_abs_builddir in
21270 .) ac_abs_srcdir=$ac_srcdir;;
21271 *)
21272 case $ac_srcdir in
21273 .) ac_abs_srcdir=$ac_abs_builddir;;
21274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21276 esac;;
21277 esac
21278 case $ac_abs_builddir in
21279 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21280 *)
21281 case $ac_top_srcdir in
21282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21285 esac;;
21286 esac
21287
21288
21289 case $INSTALL in
21290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21291 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21292 esac
21293
21294 if test x"$ac_file" != x-; then
21295 { echo "$as_me:$LINENO: creating $ac_file" >&5
21296 echo "$as_me: creating $ac_file" >&6;}
21297 rm -f "$ac_file"
21298 fi
21299 # Let's still pretend it is `configure' which instantiates (i.e., don't
21300 # use $as_me), people would be surprised to read:
21301 # /* config.h. Generated by config.status. */
21302 if test x"$ac_file" = x-; then
21303 configure_input=
21304 else
21305 configure_input="$ac_file. "
21306 fi
21307 configure_input=$configure_input"Generated from `echo $ac_file_in |
21308 sed 's,.*/,,'` by configure."
21309
21310 # First look for the input files in the build tree, otherwise in the
21311 # src tree.
21312 ac_file_inputs=`IFS=:
21313 for f in $ac_file_in; do
21314 case $f in
21315 -) echo $tmp/stdin ;;
21316 [\\/$]*)
21317 # Absolute (can't be DOS-style, as IFS=:)
21318 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21319 echo "$as_me: error: cannot find input file: $f" >&2;}
21320 { (exit 1); exit 1; }; }
21321 echo "$f";;
21322 *) # Relative
21323 if test -f "$f"; then
21324 # Build tree
21325 echo "$f"
21326 elif test -f "$srcdir/$f"; then
21327 # Source tree
21328 echo "$srcdir/$f"
21329 else
21330 # /dev/null tree
21331 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21332 echo "$as_me: error: cannot find input file: $f" >&2;}
21333 { (exit 1); exit 1; }; }
21334 fi;;
21335 esac
21336 done` || { (exit 1); exit 1; }
21337 _ACEOF
21338 cat >>$CONFIG_STATUS <<_ACEOF
21339 sed "$ac_vpsub
21340 $extrasub
21341 _ACEOF
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21343 :t
21344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21345 s,@configure_input@,$configure_input,;t t
21346 s,@srcdir@,$ac_srcdir,;t t
21347 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21348 s,@top_srcdir@,$ac_top_srcdir,;t t
21349 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21350 s,@builddir@,$ac_builddir,;t t
21351 s,@abs_builddir@,$ac_abs_builddir,;t t
21352 s,@top_builddir@,$ac_top_builddir,;t t
21353 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21354 s,@INSTALL@,$ac_INSTALL,;t t
21355 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21356 rm -f $tmp/stdin
21357 if test x"$ac_file" != x-; then
21358 mv $tmp/out $ac_file
21359 else
21360 cat $tmp/out
21361 rm -f $tmp/out
21362 fi
21363
21364 done
21365 _ACEOF
21366 cat >>$CONFIG_STATUS <<\_ACEOF
21367
21368 #
21369 # CONFIG_HEADER section.
21370 #
21371
21372 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21373 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21374 #
21375 # ac_d sets the value in "#define NAME VALUE" lines.
21376 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21377 ac_dB='[ ].*$,\1#\2'
21378 ac_dC=' '
21379 ac_dD=',;t'
21380 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21381 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21382 ac_uB='$,\1#\2define\3'
21383 ac_uC=' '
21384 ac_uD=',;t'
21385
21386 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21387 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21388 case $ac_file in
21389 - | *:- | *:-:* ) # input from stdin
21390 cat >$tmp/stdin
21391 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21393 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21394 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21395 * ) ac_file_in=$ac_file.in ;;
21396 esac
21397
21398 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21399 echo "$as_me: creating $ac_file" >&6;}
21400
21401 # First look for the input files in the build tree, otherwise in the
21402 # src tree.
21403 ac_file_inputs=`IFS=:
21404 for f in $ac_file_in; do
21405 case $f in
21406 -) echo $tmp/stdin ;;
21407 [\\/$]*)
21408 # Absolute (can't be DOS-style, as IFS=:)
21409 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21410 echo "$as_me: error: cannot find input file: $f" >&2;}
21411 { (exit 1); exit 1; }; }
21412 # Do quote $f, to prevent DOS paths from being IFS'd.
21413 echo "$f";;
21414 *) # Relative
21415 if test -f "$f"; then
21416 # Build tree
21417 echo "$f"
21418 elif test -f "$srcdir/$f"; then
21419 # Source tree
21420 echo "$srcdir/$f"
21421 else
21422 # /dev/null tree
21423 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21424 echo "$as_me: error: cannot find input file: $f" >&2;}
21425 { (exit 1); exit 1; }; }
21426 fi;;
21427 esac
21428 done` || { (exit 1); exit 1; }
21429 # Remove the trailing spaces.
21430 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21431
21432 _ACEOF
21433
21434 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21435 # `conftest.undefs', that substitutes the proper values into
21436 # config.h.in to produce config.h. The first handles `#define'
21437 # templates, and the second `#undef' templates.
21438 # And first: Protect against being on the right side of a sed subst in
21439 # config.status. Protect against being in an unquoted here document
21440 # in config.status.
21441 rm -f conftest.defines conftest.undefs
21442 # Using a here document instead of a string reduces the quoting nightmare.
21443 # Putting comments in sed scripts is not portable.
21444 #
21445 # `end' is used to avoid that the second main sed command (meant for
21446 # 0-ary CPP macros) applies to n-ary macro definitions.
21447 # See the Autoconf documentation for `clear'.
21448 cat >confdef2sed.sed <<\_ACEOF
21449 s/[\\&,]/\\&/g
21450 s,[\\$`],\\&,g
21451 t clear
21452 : clear
21453 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21454 t end
21455 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21456 : end
21457 _ACEOF
21458 # If some macros were called several times there might be several times
21459 # the same #defines, which is useless. Nevertheless, we may not want to
21460 # sort them, since we want the *last* AC-DEFINE to be honored.
21461 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21462 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21463 rm -f confdef2sed.sed
21464
21465 # This sed command replaces #undef with comments. This is necessary, for
21466 # example, in the case of _POSIX_SOURCE, which is predefined and required
21467 # on some systems where configure will not decide to define it.
21468 cat >>conftest.undefs <<\_ACEOF
21469 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21470 _ACEOF
21471
21472 # Break up conftest.defines because some shells have a limit on the size
21473 # of here documents, and old seds have small limits too (100 cmds).
21474 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21475 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21476 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21477 echo ' :' >>$CONFIG_STATUS
21478 rm -f conftest.tail
21479 while grep . conftest.defines >/dev/null
21480 do
21481 # Write a limited-size here document to $tmp/defines.sed.
21482 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21483 # Speed up: don't consider the non `#define' lines.
21484 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21485 # Work around the forget-to-reset-the-flag bug.
21486 echo 't clr' >>$CONFIG_STATUS
21487 echo ': clr' >>$CONFIG_STATUS
21488 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21489 echo 'CEOF
21490 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21491 rm -f $tmp/in
21492 mv $tmp/out $tmp/in
21493 ' >>$CONFIG_STATUS
21494 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21495 rm -f conftest.defines
21496 mv conftest.tail conftest.defines
21497 done
21498 rm -f conftest.defines
21499 echo ' fi # grep' >>$CONFIG_STATUS
21500 echo >>$CONFIG_STATUS
21501
21502 # Break up conftest.undefs because some shells have a limit on the size
21503 # of here documents, and old seds have small limits too (100 cmds).
21504 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21505 rm -f conftest.tail
21506 while grep . conftest.undefs >/dev/null
21507 do
21508 # Write a limited-size here document to $tmp/undefs.sed.
21509 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21510 # Speed up: don't consider the non `#undef'
21511 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21512 # Work around the forget-to-reset-the-flag bug.
21513 echo 't clr' >>$CONFIG_STATUS
21514 echo ': clr' >>$CONFIG_STATUS
21515 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21516 echo 'CEOF
21517 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21518 rm -f $tmp/in
21519 mv $tmp/out $tmp/in
21520 ' >>$CONFIG_STATUS
21521 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21522 rm -f conftest.undefs
21523 mv conftest.tail conftest.undefs
21524 done
21525 rm -f conftest.undefs
21526
21527 cat >>$CONFIG_STATUS <<\_ACEOF
21528 # Let's still pretend it is `configure' which instantiates (i.e., don't
21529 # use $as_me), people would be surprised to read:
21530 # /* config.h. Generated by config.status. */
21531 if test x"$ac_file" = x-; then
21532 echo "/* Generated by configure. */" >$tmp/config.h
21533 else
21534 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21535 fi
21536 cat $tmp/in >>$tmp/config.h
21537 rm -f $tmp/in
21538 if test x"$ac_file" != x-; then
21539 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21540 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21541 echo "$as_me: $ac_file is unchanged" >&6;}
21542 else
21543 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545 X"$ac_file" : 'X\(//\)[^/]' \| \
21546 X"$ac_file" : 'X\(//\)$' \| \
21547 X"$ac_file" : 'X\(/\)' \| \
21548 . : '\(.\)' 2>/dev/null ||
21549 echo X"$ac_file" |
21550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21552 /^X\(\/\/\)$/{ s//\1/; q; }
21553 /^X\(\/\).*/{ s//\1/; q; }
21554 s/.*/./; q'`
21555 { if $as_mkdir_p; then
21556 mkdir -p "$ac_dir"
21557 else
21558 as_dir="$ac_dir"
21559 as_dirs=
21560 while test ! -d "$as_dir"; do
21561 as_dirs="$as_dir $as_dirs"
21562 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21564 X"$as_dir" : 'X\(//\)[^/]' \| \
21565 X"$as_dir" : 'X\(//\)$' \| \
21566 X"$as_dir" : 'X\(/\)' \| \
21567 . : '\(.\)' 2>/dev/null ||
21568 echo X"$as_dir" |
21569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21571 /^X\(\/\/\)$/{ s//\1/; q; }
21572 /^X\(\/\).*/{ s//\1/; q; }
21573 s/.*/./; q'`
21574 done
21575 test ! -n "$as_dirs" || mkdir $as_dirs
21576 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21577 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21578 { (exit 1); exit 1; }; }; }
21579
21580 rm -f $ac_file
21581 mv $tmp/config.h $ac_file
21582 fi
21583 else
21584 cat $tmp/config.h
21585 rm -f $tmp/config.h
21586 fi
21587 # Compute $ac_file's index in $config_headers.
21588 _am_stamp_count=1
21589 for _am_header in $config_headers :; do
21590 case $_am_header in
21591 $ac_file | $ac_file:* )
21592 break ;;
21593 * )
21594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21595 esac
21596 done
21597 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21598 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21599 X$ac_file : 'X\(//\)[^/]' \| \
21600 X$ac_file : 'X\(//\)$' \| \
21601 X$ac_file : 'X\(/\)' \| \
21602 . : '\(.\)' 2>/dev/null ||
21603 echo X$ac_file |
21604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21606 /^X\(\/\/\)$/{ s//\1/; q; }
21607 /^X\(\/\).*/{ s//\1/; q; }
21608 s/.*/./; q'`/stamp-h$_am_stamp_count
21609 done
21610 _ACEOF
21611 cat >>$CONFIG_STATUS <<\_ACEOF
21612
21613 #
21614 # CONFIG_COMMANDS section.
21615 #
21616 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21617 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21618 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21619 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21620 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21621 X"$ac_dest" : 'X\(//\)[^/]' \| \
21622 X"$ac_dest" : 'X\(//\)$' \| \
21623 X"$ac_dest" : 'X\(/\)' \| \
21624 . : '\(.\)' 2>/dev/null ||
21625 echo X"$ac_dest" |
21626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21628 /^X\(\/\/\)$/{ s//\1/; q; }
21629 /^X\(\/\).*/{ s//\1/; q; }
21630 s/.*/./; q'`
21631 { if $as_mkdir_p; then
21632 mkdir -p "$ac_dir"
21633 else
21634 as_dir="$ac_dir"
21635 as_dirs=
21636 while test ! -d "$as_dir"; do
21637 as_dirs="$as_dir $as_dirs"
21638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21640 X"$as_dir" : 'X\(//\)[^/]' \| \
21641 X"$as_dir" : 'X\(//\)$' \| \
21642 X"$as_dir" : 'X\(/\)' \| \
21643 . : '\(.\)' 2>/dev/null ||
21644 echo X"$as_dir" |
21645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21647 /^X\(\/\/\)$/{ s//\1/; q; }
21648 /^X\(\/\).*/{ s//\1/; q; }
21649 s/.*/./; q'`
21650 done
21651 test ! -n "$as_dirs" || mkdir $as_dirs
21652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21654 { (exit 1); exit 1; }; }; }
21655
21656 ac_builddir=.
21657
21658 if test "$ac_dir" != .; then
21659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21660 # A "../" for each directory in $ac_dir_suffix.
21661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21662 else
21663 ac_dir_suffix= ac_top_builddir=
21664 fi
21665
21666 case $srcdir in
21667 .) # No --srcdir option. We are building in place.
21668 ac_srcdir=.
21669 if test -z "$ac_top_builddir"; then
21670 ac_top_srcdir=.
21671 else
21672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21673 fi ;;
21674 [\\/]* | ?:[\\/]* ) # Absolute path.
21675 ac_srcdir=$srcdir$ac_dir_suffix;
21676 ac_top_srcdir=$srcdir ;;
21677 *) # Relative path.
21678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21680 esac
21681
21682 # Do not use `cd foo && pwd` to compute absolute paths, because
21683 # the directories may not exist.
21684 case `pwd` in
21685 .) ac_abs_builddir="$ac_dir";;
21686 *)
21687 case "$ac_dir" in
21688 .) ac_abs_builddir=`pwd`;;
21689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21691 esac;;
21692 esac
21693 case $ac_abs_builddir in
21694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21695 *)
21696 case ${ac_top_builddir}. in
21697 .) ac_abs_top_builddir=$ac_abs_builddir;;
21698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21700 esac;;
21701 esac
21702 case $ac_abs_builddir in
21703 .) ac_abs_srcdir=$ac_srcdir;;
21704 *)
21705 case $ac_srcdir in
21706 .) ac_abs_srcdir=$ac_abs_builddir;;
21707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21709 esac;;
21710 esac
21711 case $ac_abs_builddir in
21712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21713 *)
21714 case $ac_top_srcdir in
21715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21718 esac;;
21719 esac
21720
21721
21722 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21723 echo "$as_me: executing $ac_dest commands" >&6;}
21724 case $ac_dest in
21725 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21726 # Strip MF so we end up with the name of the file.
21727 mf=`echo "$mf" | sed -e 's/:.*$//'`
21728 # Check whether this is an Automake generated Makefile or not.
21729 # We used to match only the files named `Makefile.in', but
21730 # some people rename them; so instead we look at the file content.
21731 # Grep'ing the first line is not enough: some people post-process
21732 # each Makefile.in and add a new line on top of each file to say so.
21733 # So let's grep whole file.
21734 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21735 dirpart=`(dirname "$mf") 2>/dev/null ||
21736 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$mf" : 'X\(//\)[^/]' \| \
21738 X"$mf" : 'X\(//\)$' \| \
21739 X"$mf" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21741 echo X"$mf" |
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21746 s/.*/./; q'`
21747 else
21748 continue
21749 fi
21750 # Extract the definition of DEPDIR, am__include, and am__quote
21751 # from the Makefile without running `make'.
21752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21753 test -z "$DEPDIR" && continue
21754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21755 test -z "am__include" && continue
21756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21757 # When using ansi2knr, U may be empty or an underscore; expand it
21758 U=`sed -n 's/^U = //p' < "$mf"`
21759 # Find all dependency output files, they are included files with
21760 # $(DEPDIR) in their names. We invoke sed twice because it is the
21761 # simplest approach to changing $(DEPDIR) to its actual value in the
21762 # expansion.
21763 for file in `sed -n "
21764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21766 # Make sure the directory exists.
21767 test -f "$dirpart/$file" && continue
21768 fdir=`(dirname "$file") 2>/dev/null ||
21769 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21770 X"$file" : 'X\(//\)[^/]' \| \
21771 X"$file" : 'X\(//\)$' \| \
21772 X"$file" : 'X\(/\)' \| \
21773 . : '\(.\)' 2>/dev/null ||
21774 echo X"$file" |
21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21776 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21777 /^X\(\/\/\)$/{ s//\1/; q; }
21778 /^X\(\/\).*/{ s//\1/; q; }
21779 s/.*/./; q'`
21780 { if $as_mkdir_p; then
21781 mkdir -p $dirpart/$fdir
21782 else
21783 as_dir=$dirpart/$fdir
21784 as_dirs=
21785 while test ! -d "$as_dir"; do
21786 as_dirs="$as_dir $as_dirs"
21787 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21789 X"$as_dir" : 'X\(//\)[^/]' \| \
21790 X"$as_dir" : 'X\(//\)$' \| \
21791 X"$as_dir" : 'X\(/\)' \| \
21792 . : '\(.\)' 2>/dev/null ||
21793 echo X"$as_dir" |
21794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21796 /^X\(\/\/\)$/{ s//\1/; q; }
21797 /^X\(\/\).*/{ s//\1/; q; }
21798 s/.*/./; q'`
21799 done
21800 test ! -n "$as_dirs" || mkdir $as_dirs
21801 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21802 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21803 { (exit 1); exit 1; }; }; }
21804
21805 # echo "creating $dirpart/$file"
21806 echo '# dummy' > "$dirpart/$file"
21807 done
21808 done
21809 ;;
21810 libtool )
21811
21812 # See if we are running on zsh, and set the options which allow our
21813 # commands through without removal of \ escapes.
21814 if test -n "${ZSH_VERSION+set}" ; then
21815 setopt NO_GLOB_SUBST
21816 fi
21817
21818 cfgfile="${ofile}T"
21819 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21820 $RM "$cfgfile"
21821
21822 cat <<_LT_EOF >> "$cfgfile"
21823 #! $SHELL
21824
21825 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21826 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
21827 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21828 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21829 #
21830 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21831 # 2006, 2007 Free Software Foundation, Inc.
21832 #
21833 # This file is part of GNU Libtool:
21834 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21835 #
21836 # This program is free software; you can redistribute it and/or modify
21837 # it under the terms of the GNU General Public License as published by
21838 # the Free Software Foundation; either version 2 of the License, or
21839 # (at your option) any later version.
21840 #
21841 # This program is distributed in the hope that it will be useful, but
21842 # WITHOUT ANY WARRANTY; without even the implied warranty of
21843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21844 # General Public License for more details.
21845 #
21846 # You should have received a copy of the GNU General Public License
21847 # along with this program; if not, a copy can be downloaded from
21848 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
21849 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21850 # MA 02110-1301, USA.
21851 #
21852 # As a special exception to the GNU General Public License, if you
21853 # distribute this file as part of a program that contains a
21854 # configuration script generated by Autoconf, you may include it under
21855 # the same distribution terms that you use for the rest of that program.
21856
21857
21858 # The names of the tagged configurations supported by this script.
21859 available_tags=""
21860
21861 # ### BEGIN LIBTOOL CONFIG
21862
21863 # Whether or not to build shared libraries.
21864 build_libtool_libs=$enable_shared
21865
21866 # Which release of libtool.m4 was used?
21867 macro_version=$macro_version
21868 macro_revision=$macro_revision
21869
21870 # Whether or not to build static libraries.
21871 build_old_libs=$enable_static
21872
21873 # What type of objects to build.
21874 pic_mode=$pic_mode
21875
21876 # Whether or not to optimize for fast installation.
21877 fast_install=$enable_fast_install
21878
21879 # The host system.
21880 host_alias=$host_alias
21881 host=$host
21882 host_os=$host_os
21883
21884 # The build system.
21885 build_alias=$build_alias
21886 build=$build
21887 build_os=$build_os
21888
21889 # A sed program that does not truncate output.
21890 SED=$lt_SED
21891
21892 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21893 Xsed="\$SED -e 1s/^X//"
21894
21895 # A grep program that handles long lines.
21896 GREP=$lt_GREP
21897
21898 # An ERE matcher.
21899 EGREP=$lt_EGREP
21900
21901 # A literal string matcher.
21902 FGREP=$lt_FGREP
21903
21904 # A BSD- or MS-compatible name lister.
21905 NM=$lt_NM
21906
21907 # Whether we need soft or hard links.
21908 LN_S=$lt_LN_S
21909
21910 # What is the maximum length of a command?
21911 max_cmd_len=$max_cmd_len
21912
21913 # Object file suffix (normally "o").
21914 objext=$ac_objext
21915
21916 # Executable file suffix (normally "").
21917 exeext=$exeext
21918
21919 # whether the shell understands "unset".
21920 lt_unset=$lt_unset
21921
21922 # turn spaces into newlines.
21923 SP2NL=$lt_lt_SP2NL
21924
21925 # turn newlines into spaces.
21926 NL2SP=$lt_lt_NL2SP
21927
21928 # How to create reloadable object files.
21929 reload_flag=$lt_reload_flag
21930 reload_cmds=$lt_reload_cmds
21931
21932 # Method to check whether dependent libraries are shared objects.
21933 deplibs_check_method=$lt_deplibs_check_method
21934
21935 # Command to use when deplibs_check_method == "file_magic".
21936 file_magic_cmd=$lt_file_magic_cmd
21937
21938 # The archiver.
21939 AR=$lt_AR
21940 AR_FLAGS=$lt_AR_FLAGS
21941
21942 # A symbol stripping program.
21943 STRIP=$lt_STRIP
21944
21945 # Commands used to install an old-style archive.
21946 RANLIB=$lt_RANLIB
21947 old_postinstall_cmds=$lt_old_postinstall_cmds
21948 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21949
21950 # A C compiler.
21951 LTCC=$lt_CC
21952
21953 # LTCC compiler flags.
21954 LTCFLAGS=$lt_CFLAGS
21955
21956 # Take the output of nm and produce a listing of raw symbols and C names.
21957 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21958
21959 # Transform the output of nm in a proper C declaration.
21960 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21961
21962 # Transform the output of nm in a C name address pair.
21963 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21964
21965 # The name of the directory that contains temporary libtool files.
21966 objdir=$objdir
21967
21968 # Shell to use when invoking shell scripts.
21969 SHELL=$lt_SHELL
21970
21971 # An echo program that does not interpret backslashes.
21972 ECHO=$lt_ECHO
21973
21974 # Used to examine libraries when file_magic_cmd begins with "file".
21975 MAGIC_CMD=$MAGIC_CMD
21976
21977 # Must we lock files when doing compilation?
21978 need_locks=$lt_need_locks
21979
21980 # Old archive suffix (normally "a").
21981 libext=$libext
21982
21983 # Shared library suffix (normally ".so").
21984 shrext_cmds=$lt_shrext_cmds
21985
21986 # The commands to extract the exported symbol list from a shared archive.
21987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21988
21989 # Variables whose values should be saved in libtool wrapper scripts and
21990 # restored at link time.
21991 variables_saved_for_relink=$lt_variables_saved_for_relink
21992
21993 # Do we need the "lib" prefix for modules?
21994 need_lib_prefix=$need_lib_prefix
21995
21996 # Do we need a version for libraries?
21997 need_version=$need_version
21998
21999 # Library versioning type.
22000 version_type=$version_type
22001
22002 # Shared library runtime path variable.
22003 runpath_var=$runpath_var
22004
22005 # Shared library path variable.
22006 shlibpath_var=$shlibpath_var
22007
22008 # Is shlibpath searched before the hard-coded library search path?
22009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22010
22011 # Format of library name prefix.
22012 libname_spec=$lt_libname_spec
22013
22014 # List of archive names. First name is the real one, the rest are links.
22015 # The last name is the one that the linker finds with -lNAME
22016 library_names_spec=$lt_library_names_spec
22017
22018 # The coded name of the library, if different from the real name.
22019 soname_spec=$lt_soname_spec
22020
22021 # Command to use after installation of a shared archive.
22022 postinstall_cmds=$lt_postinstall_cmds
22023
22024 # Command to use after uninstallation of a shared archive.
22025 postuninstall_cmds=$lt_postuninstall_cmds
22026
22027 # Commands used to finish a libtool library installation in a directory.
22028 finish_cmds=$lt_finish_cmds
22029
22030 # As "finish_cmds", except a single script fragment to be evaled but
22031 # not shown.
22032 finish_eval=$lt_finish_eval
22033
22034 # Whether we should hardcode library paths into libraries.
22035 hardcode_into_libs=$hardcode_into_libs
22036
22037 # Compile-time system search path for libraries.
22038 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22039
22040 # Run-time system search path for libraries.
22041 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22042
22043 # Whether dlopen is supported.
22044 dlopen_support=$enable_dlopen
22045
22046 # Whether dlopen of programs is supported.
22047 dlopen_self=$enable_dlopen_self
22048
22049 # Whether dlopen of statically linked programs is supported.
22050 dlopen_self_static=$enable_dlopen_self_static
22051
22052 # Commands to strip libraries.
22053 old_striplib=$lt_old_striplib
22054 striplib=$lt_striplib
22055
22056
22057 # The linker used to build libraries.
22058 LD=$lt_LD
22059
22060 # Commands used to build an old-style archive.
22061 old_archive_cmds=$lt_old_archive_cmds
22062
22063 # A language specific compiler.
22064 CC=$lt_compiler
22065
22066 # Is the compiler the GNU compiler?
22067 with_gcc=$GCC
22068
22069 # Compiler flag to turn off builtin functions.
22070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22071
22072 # How to pass a linker flag through the compiler.
22073 wl=$lt_lt_prog_compiler_wl
22074
22075 # Additional compiler flags for building library objects.
22076 pic_flag=$lt_lt_prog_compiler_pic
22077
22078 # Compiler flag to prevent dynamic linking.
22079 link_static_flag=$lt_lt_prog_compiler_static
22080
22081 # Does compiler simultaneously support -c and -o options?
22082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22083
22084 # Whether or not to add -lc for building shared libraries.
22085 build_libtool_need_lc=$archive_cmds_need_lc
22086
22087 # Whether or not to disallow shared libs when runtime libs are static.
22088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22089
22090 # Compiler flag to allow reflexive dlopens.
22091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22092
22093 # Compiler flag to generate shared objects directly from archives.
22094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22095
22096 # Whether the compiler copes with passing no objects directly.
22097 compiler_needs_object=$lt_compiler_needs_object
22098
22099 # Create an old-style archive from a shared archive.
22100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22101
22102 # Create a temporary old-style archive to link instead of a shared archive.
22103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22104
22105 # Commands used to build a shared archive.
22106 archive_cmds=$lt_archive_cmds
22107 archive_expsym_cmds=$lt_archive_expsym_cmds
22108
22109 # Commands used to build a loadable module if different from building
22110 # a shared archive.
22111 module_cmds=$lt_module_cmds
22112 module_expsym_cmds=$lt_module_expsym_cmds
22113
22114 # Whether we are building with GNU ld or not.
22115 with_gnu_ld=$lt_with_gnu_ld
22116
22117 # Flag that allows shared libraries with undefined symbols to be built.
22118 allow_undefined_flag=$lt_allow_undefined_flag
22119
22120 # Flag that enforces no undefined symbols.
22121 no_undefined_flag=$lt_no_undefined_flag
22122
22123 # Flag to hardcode \$libdir into a binary during linking.
22124 # This must work even if \$libdir does not exist
22125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22126
22127 # If ld is used when linking, flag to hardcode \$libdir into a binary
22128 # during linking. This must work even if \$libdir does not exist.
22129 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22130
22131 # Whether we need a single "-rpath" flag with a separated argument.
22132 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22133
22134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22135 # DIR into the resulting binary.
22136 hardcode_direct=$hardcode_direct
22137
22138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22139 # DIR into the resulting binary and the resulting library dependency is
22140 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22141 # library is relocated.
22142 hardcode_direct_absolute=$hardcode_direct_absolute
22143
22144 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22145 # into the resulting binary.
22146 hardcode_minus_L=$hardcode_minus_L
22147
22148 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22149 # into the resulting binary.
22150 hardcode_shlibpath_var=$hardcode_shlibpath_var
22151
22152 # Set to "yes" if building a shared library automatically hardcodes DIR
22153 # into the library and all subsequent libraries and executables linked
22154 # against it.
22155 hardcode_automatic=$hardcode_automatic
22156
22157 # Set to yes if linker adds runtime paths of dependent libraries
22158 # to runtime path list.
22159 inherit_rpath=$inherit_rpath
22160
22161 # Whether libtool must link a program against all its dependency libraries.
22162 link_all_deplibs=$link_all_deplibs
22163
22164 # Fix the shell variable \$srcfile for the compiler.
22165 fix_srcfile_path=$lt_fix_srcfile_path
22166
22167 # Set to "yes" if exported symbols are required.
22168 always_export_symbols=$always_export_symbols
22169
22170 # The commands to list exported symbols.
22171 export_symbols_cmds=$lt_export_symbols_cmds
22172
22173 # Symbols that should not be listed in the preloaded symbols.
22174 exclude_expsyms=$lt_exclude_expsyms
22175
22176 # Symbols that must always be exported.
22177 include_expsyms=$lt_include_expsyms
22178
22179 # Commands necessary for linking programs (against libraries) with templates.
22180 prelink_cmds=$lt_prelink_cmds
22181
22182 # Specify filename containing input files.
22183 file_list_spec=$lt_file_list_spec
22184
22185 # How to hardcode a shared library path into an executable.
22186 hardcode_action=$hardcode_action
22187
22188 # ### END LIBTOOL CONFIG
22189
22190 _LT_EOF
22191
22192 case $host_os in
22193 aix3*)
22194 cat <<\_LT_EOF >> "$cfgfile"
22195 # AIX sometimes has problems with the GCC collect2 program. For some
22196 # reason, if we set the COLLECT_NAMES environment variable, the problems
22197 # vanish in a puff of smoke.
22198 if test "X${COLLECT_NAMES+set}" != Xset; then
22199 COLLECT_NAMES=
22200 export COLLECT_NAMES
22201 fi
22202 _LT_EOF
22203 ;;
22204 esac
22205
22206
22207 ltmain="$ac_aux_dir/ltmain.sh"
22208
22209
22210 # We use sed instead of cat because bash on DJGPP gets confused if
22211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22212 # text mode, it properly converts lines to CR/LF. This bash problem
22213 # is reportedly fixed, but why not run on old versions too?
22214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22215 || (rm -f "$cfgfile"; exit 1)
22216
22217 case $xsi_shell in
22218 yes)
22219 cat << \_LT_EOF >> "$cfgfile"
22220 # func_dirname file append nondir_replacement
22221 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22222 # otherwise set result to NONDIR_REPLACEMENT.
22223 func_dirname ()
22224 {
22225 case ${1} in
22226 */*) func_dirname_result="${1%/*}${2}" ;;
22227 * ) func_dirname_result="${3}" ;;
22228 esac
22229 }
22230
22231 # func_basename file
22232 func_basename ()
22233 {
22234 func_basename_result="${1##*/}"
22235 }
22236
22237 # func_stripname prefix suffix name
22238 # strip PREFIX and SUFFIX off of NAME.
22239 # PREFIX and SUFFIX must not contain globbing or regex special
22240 # characters, hashes, percent signs, but SUFFIX may contain a leading
22241 # dot (in which case that matches only a dot).
22242 func_stripname ()
22243 {
22244 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22245 # positional parameters, so assign one to ordinary parameter first.
22246 func_stripname_result=${3}
22247 func_stripname_result=${func_stripname_result#"${1}"}
22248 func_stripname_result=${func_stripname_result%"${2}"}
22249 }
22250
22251 # func_opt_split
22252 func_opt_split ()
22253 {
22254 func_opt_split_opt=${1%%=*}
22255 func_opt_split_arg=${1#*=}
22256 }
22257
22258 # func_lo2o object
22259 func_lo2o ()
22260 {
22261 case ${1} in
22262 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22263 *) func_lo2o_result=${1} ;;
22264 esac
22265 }
22266 _LT_EOF
22267 ;;
22268 *) # Bourne compatible functions.
22269 cat << \_LT_EOF >> "$cfgfile"
22270 # func_dirname file append nondir_replacement
22271 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22272 # otherwise set result to NONDIR_REPLACEMENT.
22273 func_dirname ()
22274 {
22275 # Extract subdirectory from the argument.
22276 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22277 if test "X$func_dirname_result" = "X${1}"; then
22278 func_dirname_result="${3}"
22279 else
22280 func_dirname_result="$func_dirname_result${2}"
22281 fi
22282 }
22283
22284 # func_basename file
22285 func_basename ()
22286 {
22287 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22288 }
22289
22290 # func_stripname prefix suffix name
22291 # strip PREFIX and SUFFIX off of NAME.
22292 # PREFIX and SUFFIX must not contain globbing or regex special
22293 # characters, hashes, percent signs, but SUFFIX may contain a leading
22294 # dot (in which case that matches only a dot).
22295 # func_strip_suffix prefix name
22296 func_stripname ()
22297 {
22298 case ${2} in
22299 .*) func_stripname_result=`$ECHO "X${3}" \
22300 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22301 *) func_stripname_result=`$ECHO "X${3}" \
22302 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22303 esac
22304 }
22305
22306 # sed scripts:
22307 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22308 my_sed_long_arg='1s/^-[^=]*=//'
22309
22310 # func_opt_split
22311 func_opt_split ()
22312 {
22313 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22314 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22315 }
22316
22317 # func_lo2o object
22318 func_lo2o ()
22319 {
22320 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22321 }
22322 _LT_EOF
22323 esac
22324
22325 case $lt_shell_append in
22326 yes)
22327 cat << \_LT_EOF >> "$cfgfile"
22328
22329 # func_append var value
22330 # Append VALUE to the end of shell variable VAR.
22331 func_append ()
22332 {
22333 eval "$1+=\$2"
22334 }
22335 _LT_EOF
22336 ;;
22337 *)
22338 cat << \_LT_EOF >> "$cfgfile"
22339
22340 # func_append var value
22341 # Append VALUE to the end of shell variable VAR.
22342 func_append ()
22343 {
22344 eval "$1=\$$1\$2"
22345 }
22346 _LT_EOF
22347 ;;
22348 esac
22349
22350
22351 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22352 || (rm -f "$cfgfile"; exit 1)
22353
22354 mv -f "$cfgfile" "$ofile" ||
22355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22356 chmod +x "$ofile"
22357
22358 ;;
22359 default-1 )
22360 for ac_file in $CONFIG_FILES; do
22361 # Support "outfile[:infile[:infile...]]"
22362 case "$ac_file" in
22363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22364 esac
22365 # PO directories have a Makefile.in generated from Makefile.in.in.
22366 case "$ac_file" in */Makefile.in)
22367 # Adjust a relative srcdir.
22368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22371 # In autoconf-2.13 it is called $ac_given_srcdir.
22372 # In autoconf-2.50 it is called $srcdir.
22373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22374 case "$ac_given_srcdir" in
22375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22376 /*) top_srcdir="$ac_given_srcdir" ;;
22377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22378 esac
22379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22380 rm -f "$ac_dir/POTFILES"
22381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22383 POMAKEFILEDEPS="POTFILES.in"
22384 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22385 # on $ac_dir but don't depend on user-specified configuration
22386 # parameters.
22387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22388 # The LINGUAS file contains the set of available languages.
22389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22391 fi
22392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22393 # Hide the ALL_LINGUAS assigment from automake.
22394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22396 else
22397 # The set of available languages was given in configure.in.
22398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22399 fi
22400 case "$ac_given_srcdir" in
22401 .) srcdirpre= ;;
22402 *) srcdirpre='$(srcdir)/' ;;
22403 esac
22404 POFILES=
22405 GMOFILES=
22406 UPDATEPOFILES=
22407 DUMMYPOFILES=
22408 for lang in $ALL_LINGUAS; do
22409 POFILES="$POFILES $srcdirpre$lang.po"
22410 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22411 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22412 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22413 done
22414 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22415 # environment variable.
22416 INST_LINGUAS=
22417 if test -n "$ALL_LINGUAS"; then
22418 for presentlang in $ALL_LINGUAS; do
22419 useit=no
22420 if test "%UNSET%" != "$LINGUAS"; then
22421 desiredlanguages="$LINGUAS"
22422 else
22423 desiredlanguages="$ALL_LINGUAS"
22424 fi
22425 for desiredlang in $desiredlanguages; do
22426 # Use the presentlang catalog if desiredlang is
22427 # a. equal to presentlang, or
22428 # b. a variant of presentlang (because in this case,
22429 # presentlang can be used as a fallback for messages
22430 # which are not translated in the desiredlang catalog).
22431 case "$desiredlang" in
22432 "$presentlang"*) useit=yes;;
22433 esac
22434 done
22435 if test $useit = yes; then
22436 INST_LINGUAS="$INST_LINGUAS $presentlang"
22437 fi
22438 done
22439 fi
22440 CATALOGS=
22441 if test -n "$INST_LINGUAS"; then
22442 for lang in $INST_LINGUAS; do
22443 CATALOGS="$CATALOGS $lang.gmo"
22444 done
22445 fi
22446 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22447 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22448 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22449 if test -f "$f"; then
22450 case "$f" in
22451 *.orig | *.bak | *~) ;;
22452 *) cat "$f" >> "$ac_dir/Makefile" ;;
22453 esac
22454 fi
22455 done
22456 fi
22457 ;;
22458 esac
22459 done ;;
22460 bfd_stdint.h )
22461 if test "$GCC" = yes; then
22462 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
22463 else
22464 echo "/* generated for $CC */" > tmp-stdint.h
22465 fi
22466
22467 sed 's/^ *//' >> tmp-stdint.h <<EOF
22468
22469 #ifndef GCC_GENERATED_STDINT_H
22470 #define GCC_GENERATED_STDINT_H 1
22471
22472 #include <sys/types.h>
22473 EOF
22474
22475 if test "$acx_cv_header_stdint" != stdint.h; then
22476 echo "#include <stddef.h>" >> tmp-stdint.h
22477 fi
22478 if test "$acx_cv_header_stdint" != stddef.h; then
22479 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
22480 fi
22481
22482 sed 's/^ *//' >> tmp-stdint.h <<EOF
22483 /* glibc uses these symbols as guards to prevent redefinitions. */
22484 #ifdef __int8_t_defined
22485 #define _INT8_T
22486 #define _INT16_T
22487 #define _INT32_T
22488 #endif
22489 #ifdef __uint32_t_defined
22490 #define _UINT32_T
22491 #endif
22492
22493 EOF
22494
22495 # ----------------- done header, emit basic int types -------------
22496 if test "$acx_cv_header_stdint" = stddef.h; then
22497 sed 's/^ *//' >> tmp-stdint.h <<EOF
22498
22499 #ifndef _UINT8_T
22500 #define _UINT8_T
22501 #ifndef __uint8_t_defined
22502 #define __uint8_t_defined
22503 typedef unsigned $acx_cv_type_int8_t uint8_t;
22504 #endif
22505 #endif
22506
22507 #ifndef _UINT16_T
22508 #define _UINT16_T
22509 #ifndef __uint16_t_defined
22510 #define __uint16_t_defined
22511 typedef unsigned $acx_cv_type_int16_t uint16_t;
22512 #endif
22513 #endif
22514
22515 #ifndef _UINT32_T
22516 #define _UINT32_T
22517 #ifndef __uint32_t_defined
22518 #define __uint32_t_defined
22519 typedef unsigned $acx_cv_type_int32_t uint32_t;
22520 #endif
22521 #endif
22522
22523 #ifndef _INT8_T
22524 #define _INT8_T
22525 #ifndef __int8_t_defined
22526 #define __int8_t_defined
22527 typedef $acx_cv_type_int8_t int8_t;
22528 #endif
22529 #endif
22530
22531 #ifndef _INT16_T
22532 #define _INT16_T
22533 #ifndef __int16_t_defined
22534 #define __int16_t_defined
22535 typedef $acx_cv_type_int16_t int16_t;
22536 #endif
22537 #endif
22538
22539 #ifndef _INT32_T
22540 #define _INT32_T
22541 #ifndef __int32_t_defined
22542 #define __int32_t_defined
22543 typedef $acx_cv_type_int32_t int32_t;
22544 #endif
22545 #endif
22546 EOF
22547 elif test "$ac_cv_type_u_int32_t" = yes; then
22548 sed 's/^ *//' >> tmp-stdint.h <<EOF
22549
22550 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
22551 #ifndef _INT8_T
22552 #define _INT8_T
22553 #endif
22554 #ifndef _INT16_T
22555 #define _INT16_T
22556 #endif
22557 #ifndef _INT32_T
22558 #define _INT32_T
22559 #endif
22560
22561 #ifndef _UINT8_T
22562 #define _UINT8_T
22563 #ifndef __uint8_t_defined
22564 #define __uint8_t_defined
22565 typedef u_int8_t uint8_t;
22566 #endif
22567 #endif
22568
22569 #ifndef _UINT16_T
22570 #define _UINT16_T
22571 #ifndef __uint16_t_defined
22572 #define __uint16_t_defined
22573 typedef u_int16_t uint16_t;
22574 #endif
22575 #endif
22576
22577 #ifndef _UINT32_T
22578 #define _UINT32_T
22579 #ifndef __uint32_t_defined
22580 #define __uint32_t_defined
22581 typedef u_int32_t uint32_t;
22582 #endif
22583 #endif
22584 EOF
22585 else
22586 sed 's/^ *//' >> tmp-stdint.h <<EOF
22587
22588 /* Some systems have guard macros to prevent redefinitions, define them. */
22589 #ifndef _INT8_T
22590 #define _INT8_T
22591 #endif
22592 #ifndef _INT16_T
22593 #define _INT16_T
22594 #endif
22595 #ifndef _INT32_T
22596 #define _INT32_T
22597 #endif
22598 #ifndef _UINT8_T
22599 #define _UINT8_T
22600 #endif
22601 #ifndef _UINT16_T
22602 #define _UINT16_T
22603 #endif
22604 #ifndef _UINT32_T
22605 #define _UINT32_T
22606 #endif
22607 EOF
22608 fi
22609
22610 # ------------- done basic int types, emit int64_t types ------------
22611 if test "$ac_cv_type_uint64_t" = yes; then
22612 sed 's/^ *//' >> tmp-stdint.h <<EOF
22613
22614 /* system headers have good uint64_t and int64_t */
22615 #ifndef _INT64_T
22616 #define _INT64_T
22617 #endif
22618 #ifndef _UINT64_T
22619 #define _UINT64_T
22620 #endif
22621 EOF
22622 elif test "$ac_cv_type_u_int64_t" = yes; then
22623 sed 's/^ *//' >> tmp-stdint.h <<EOF
22624
22625 /* system headers have an u_int64_t (and int64_t) */
22626 #ifndef _INT64_T
22627 #define _INT64_T
22628 #endif
22629 #ifndef _UINT64_T
22630 #define _UINT64_T
22631 #ifndef __uint64_t_defined
22632 #define __uint64_t_defined
22633 typedef u_int64_t uint64_t;
22634 #endif
22635 #endif
22636 EOF
22637 elif test -n "$acx_cv_type_int64_t"; then
22638 sed 's/^ *//' >> tmp-stdint.h <<EOF
22639
22640 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
22641 #ifndef _INT64_T
22642 #define _INT64_T
22643 typedef $acx_cv_type_int64_t int64_t;
22644 #endif
22645 #ifndef _UINT64_T
22646 #define _UINT64_T
22647 #ifndef __uint64_t_defined
22648 #define __uint64_t_defined
22649 typedef unsigned $acx_cv_type_int64_t uint64_t;
22650 #endif
22651 #endif
22652 EOF
22653 else
22654 sed 's/^ *//' >> tmp-stdint.h <<EOF
22655
22656 /* some common heuristics for int64_t, using compiler-specific tests */
22657 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
22658 #ifndef _INT64_T
22659 #define _INT64_T
22660 #ifndef __int64_t_defined
22661 typedef long long int64_t;
22662 #endif
22663 #endif
22664 #ifndef _UINT64_T
22665 #define _UINT64_T
22666 typedef unsigned long long uint64_t;
22667 #endif
22668
22669 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
22670 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
22671 does not implement __extension__. But that compiler doesn't define
22672 __GNUC_MINOR__. */
22673 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
22674 # define __extension__
22675 # endif
22676
22677 # ifndef _INT64_T
22678 # define _INT64_T
22679 __extension__ typedef long long int64_t;
22680 # endif
22681 # ifndef _UINT64_T
22682 # define _UINT64_T
22683 __extension__ typedef unsigned long long uint64_t;
22684 # endif
22685
22686 #elif !defined __STRICT_ANSI__
22687 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
22688
22689 # ifndef _INT64_T
22690 # define _INT64_T
22691 typedef __int64 int64_t;
22692 # endif
22693 # ifndef _UINT64_T
22694 # define _UINT64_T
22695 typedef unsigned __int64 uint64_t;
22696 # endif
22697 # endif /* compiler */
22698
22699 #endif /* ANSI version */
22700 EOF
22701 fi
22702
22703 # ------------- done int64_t types, emit intptr types ------------
22704 if test "$ac_cv_type_uintptr_t" != yes; then
22705 sed 's/^ *//' >> tmp-stdint.h <<EOF
22706
22707 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
22708 #ifndef __uintptr_t_defined
22709 typedef u$acx_cv_type_intptr_t uintptr_t;
22710 #endif
22711 #ifndef __intptr_t_defined
22712 typedef $acx_cv_type_intptr_t intptr_t;
22713 #endif
22714 EOF
22715 fi
22716
22717 # ------------- done intptr types, emit int_least types ------------
22718 if test "$ac_cv_type_int_least32_t" != yes; then
22719 sed 's/^ *//' >> tmp-stdint.h <<EOF
22720
22721 /* Define int_least types */
22722 typedef int8_t int_least8_t;
22723 typedef int16_t int_least16_t;
22724 typedef int32_t int_least32_t;
22725 #ifdef _INT64_T
22726 typedef int64_t int_least64_t;
22727 #endif
22728
22729 typedef uint8_t uint_least8_t;
22730 typedef uint16_t uint_least16_t;
22731 typedef uint32_t uint_least32_t;
22732 #ifdef _UINT64_T
22733 typedef uint64_t uint_least64_t;
22734 #endif
22735 EOF
22736 fi
22737
22738 # ------------- done intptr types, emit int_fast types ------------
22739 if test "$ac_cv_type_int_fast32_t" != yes; then
22740 sed 's/^ *//' >> tmp-stdint.h <<EOF
22741
22742 /* Define int_fast types. short is often slow */
22743 typedef int8_t int_fast8_t;
22744 typedef int int_fast16_t;
22745 typedef int32_t int_fast32_t;
22746 #ifdef _INT64_T
22747 typedef int64_t int_fast64_t;
22748 #endif
22749
22750 typedef uint8_t uint_fast8_t;
22751 typedef unsigned int uint_fast16_t;
22752 typedef uint32_t uint_fast32_t;
22753 #ifdef _UINT64_T
22754 typedef uint64_t uint_fast64_t;
22755 #endif
22756 EOF
22757 fi
22758
22759 if test "$ac_cv_type_uintmax_t" != yes; then
22760 sed 's/^ *//' >> tmp-stdint.h <<EOF
22761
22762 /* Define intmax based on what we found */
22763 #ifdef _INT64_T
22764 typedef int64_t intmax_t;
22765 #else
22766 typedef long intmax_t;
22767 #endif
22768 #ifdef _UINT64_T
22769 typedef uint64_t uintmax_t;
22770 #else
22771 typedef unsigned long uintmax_t;
22772 #endif
22773 EOF
22774 fi
22775
22776 sed 's/^ *//' >> tmp-stdint.h <<EOF
22777
22778 #endif /* GCC_GENERATED_STDINT_H */
22779 EOF
22780
22781 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
22782 rm -f tmp-stdint.h
22783 else
22784 mv -f tmp-stdint.h bfd_stdint.h
22785 fi
22786
22787 ;;
22788 default )
22789 case "$srcdir" in
22790 .) srcdirpre= ;;
22791 *) srcdirpre='$(srcdir)/' ;;
22792 esac
22793 POFILES=
22794 GMOFILES=
22795 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22796 if test $lang != dummy; then
22797 POFILES="$POFILES $srcdirpre$lang.po"
22798 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22799 fi
22800 done
22801 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
22802 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
22803 -e "s,@POFILES@,$POFILES," \
22804 -e "s,@GMOFILES@,$GMOFILES," \
22805 po/Makefile.in > po/Makefile ;;
22806 esac
22807 done
22808 _ACEOF
22809
22810 cat >>$CONFIG_STATUS <<\_ACEOF
22811
22812 { (exit 0); exit 0; }
22813 _ACEOF
22814 chmod +x $CONFIG_STATUS
22815 ac_clean_files=$ac_clean_files_save
22816
22817
22818 # configure is writing to config.log, and then calls config.status.
22819 # config.status does its own redirection, appending to config.log.
22820 # Unfortunately, on DOS this fails, as config.log is still kept open
22821 # by configure, so config.status won't be able to write to it; its
22822 # output is simply discarded. So we exec the FD to /dev/null,
22823 # effectively closing config.log, so it can be properly (re)opened and
22824 # appended to by config.status. When coming back to configure, we
22825 # need to make the FD available again.
22826 if test "$no_create" != yes; then
22827 ac_cs_success=:
22828 ac_config_status_args=
22829 test "$silent" = yes &&
22830 ac_config_status_args="$ac_config_status_args --quiet"
22831 exec 5>/dev/null
22832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22833 exec 5>>config.log
22834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22835 # would make configure fail if this is the last instruction.
22836 $ac_cs_success || { (exit 1); exit 1; }
22837 fi
22838
22839