]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h> before <ucontext...
[thirdparty/gcc.git] / gcc / 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 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir datarootdir docdir htmldir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
911
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
940 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
941 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
942 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
943
944 Some influential environment variables:
945 CC C compiler command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
948 nonstandard directory <lib dir>
949 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
950 headers in a nonstandard directory <include dir>
951 CPP C preprocessor
952 GMPLIBS How to link GMP
953 GMPINC How to find GMP include files
954
955 Use these variables to override the choices made by `configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
957
958 _ACEOF
959 fi
960
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
963 ac_popdir=`pwd`
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
966 ac_builddir=.
967
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
972 else
973 ac_dir_suffix= ac_top_builddir=
974 fi
975
976 case $srcdir in
977 .) # No --srcdir option. We are building in place.
978 ac_srcdir=.
979 if test -z "$ac_top_builddir"; then
980 ac_top_srcdir=.
981 else
982 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
983 fi ;;
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
987 *) # Relative path.
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
990 esac
991
992 # Do not use `cd foo && pwd` to compute absolute paths, because
993 # the directories may not exist.
994 case `pwd` in
995 .) ac_abs_builddir="$ac_dir";;
996 *)
997 case "$ac_dir" in
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1001 esac;;
1002 esac
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *)
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1010 esac;;
1011 esac
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1014 *)
1015 case $ac_srcdir in
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1019 esac;;
1020 esac
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *)
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 esac;;
1029 esac
1030
1031 cd $ac_dir
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1034 echo
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1037 echo
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1041 echo
1042 $ac_configure --help
1043 else
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1045 fi
1046 cd $ac_popdir
1047 done
1048 fi
1049
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1052 cat <<\_ACEOF
1053
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1057 _ACEOF
1058 exit 0
1059 fi
1060 exec 5>config.log
1061 cat >&5 <<_ACEOF
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1064
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1067
1068 $ $0 $@
1069
1070 _ACEOF
1071 {
1072 cat <<_ASUNAME
1073 ## --------- ##
1074 ## Platform. ##
1075 ## --------- ##
1076
1077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1082
1083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1084 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1085
1086 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1087 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1089 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1090 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1091 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1092 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1093
1094 _ASUNAME
1095
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1097 for as_dir in $PATH
1098 do
1099 IFS=$as_save_IFS
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1102 done
1103
1104 } >&5
1105
1106 cat >&5 <<_ACEOF
1107
1108
1109 ## ----------- ##
1110 ## Core tests. ##
1111 ## ----------- ##
1112
1113 _ACEOF
1114
1115
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_configure_args=
1122 ac_configure_args0=
1123 ac_configure_args1=
1124 ac_sep=
1125 ac_must_keep_next=false
1126 for ac_pass in 1 2
1127 do
1128 for ac_arg
1129 do
1130 case $ac_arg in
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 continue ;;
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1137 esac
1138 case $ac_pass in
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1140 2)
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1144 else
1145 case $ac_arg in
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1152 esac
1153 ;;
1154 -* ) ac_must_keep_next=true ;;
1155 esac
1156 fi
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1159 ac_sep=" "
1160 ;;
1161 esac
1162 done
1163 done
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1166
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close' the trap.
1172 trap 'exit_status=$?
1173 # Save into config.log some information that might help in debugging.
1174 {
1175 echo
1176
1177 cat <<\_ASBOX
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1181 _ASBOX
1182 echo
1183 # The following way of writing the cache mishandles newlines in values,
1184 {
1185 (set) 2>&1 |
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1187 *ac_space=\ *)
1188 sed -n \
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1191 ;;
1192 *)
1193 sed -n \
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ;;
1196 esac;
1197 }
1198 echo
1199
1200 cat <<\_ASBOX
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1204 _ASBOX
1205 echo
1206 for ac_var in $ac_subst_vars
1207 do
1208 eval ac_val=$`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1210 done | sort
1211 echo
1212
1213 if test -n "$ac_subst_files"; then
1214 cat <<\_ASBOX
1215 ## ------------- ##
1216 ## Output files. ##
1217 ## ------------- ##
1218 _ASBOX
1219 echo
1220 for ac_var in $ac_subst_files
1221 do
1222 eval ac_val=$`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1224 done | sort
1225 echo
1226 fi
1227
1228 if test -s confdefs.h; then
1229 cat <<\_ASBOX
1230 ## ----------- ##
1231 ## confdefs.h. ##
1232 ## ----------- ##
1233 _ASBOX
1234 echo
1235 sed "/^$/d" confdefs.h | sort
1236 echo
1237 fi
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1241 } >&5
1242 rm -f core *.core &&
1243 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1244 exit $exit_status
1245 ' 0
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1248 done
1249 ac_signal=0
1250
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1254 echo >confdefs.h
1255
1256 # Predefined preprocessor variables.
1257
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1260 _ACEOF
1261
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1280 _ACEOF
1281
1282
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1288 else
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1290 fi
1291 fi
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's/^/| /' "$ac_site_file" >&5
1297 . "$ac_site_file"
1298 fi
1299 done
1300
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1307 case $cache_file in
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1310 esac
1311 fi
1312 else
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1315 >$cache_file
1316 fi
1317
1318 # Check that the precious variables saved in the cache have kept the same
1319 # value.
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1328 set,)
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1332 ,set)
1333 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1336 ,);;
1337 *)
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1340 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1346 fi;;
1347 esac
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1350 case $ac_new_val in
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1354 esac
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1358 esac
1359 fi
1360 done
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1365 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1367 fi
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1395
1396
1397 gcc_version=`cat $srcdir/BASE-VER`
1398
1399 # Determine the host, build, and target systems
1400 ac_aux_dir=
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1405 break
1406 elif test -f $ac_dir/install.sh; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1409 break
1410 elif test -f $ac_dir/shtool; then
1411 ac_aux_dir=$ac_dir
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 break
1414 fi
1415 done
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1420 fi
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1424
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1430
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448 fi
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1451 build=$ac_cv_build
1452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1456
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1469
1470 fi
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1473 host=$ac_cv_host
1474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1477
1478
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1491
1492 fi
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1498 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1499
1500
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1505 NONENONEs,x,x, &&
1506 program_prefix=${target_alias}-
1507
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1512 esac
1513
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1517 esac
1518
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1522 esac
1523
1524
1525
1526
1527 # Determine the target- and build-specific subdirectories
1528 # Prefix 'build-' so this never conflicts with target_subdir.
1529 build_subdir="build-${build_noncanonical}"
1530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1531 if ( test $srcdir = . && test -d gcc ) \
1532 || test -d $srcdir/../host-${host_noncanonical}; then
1533 host_subdir="host-${host_noncanonical}"
1534 else
1535 host_subdir=.
1536 fi
1537 # No prefix.
1538 target_subdir=${target_noncanonical}
1539
1540
1541 # Set program_transform_name
1542 test "$program_prefix" != NONE &&
1543 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1544 # Use a double $ so make ignores it.
1545 test "$program_suffix" != NONE &&
1546 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1547 # Double any \ or $. echo might interpret backslashes.
1548 # By default was `s,x,x', remove it if useless.
1549 cat <<\_ACEOF >conftest.sed
1550 s/[\\$]/&&/g;s/;s,x,x,$//
1551 _ACEOF
1552 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1553 rm conftest.sed
1554
1555
1556 # Check for bogus environment variables.
1557 # Test if LIBRARY_PATH contains the notation for the current directory
1558 # since this would lead to problems installing/building glibc.
1559 # LIBRARY_PATH contains the current directory if one of the following
1560 # is true:
1561 # - one of the terminals (":" and ";") is the first or last sign
1562 # - two terminals occur directly after each other
1563 # - the path contains an element with a dot in it
1564 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1565 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1566 case ${LIBRARY_PATH} in
1567 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1568 library_path_setting="contains current directory"
1569 ;;
1570 *)
1571 library_path_setting="ok"
1572 ;;
1573 esac
1574 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1575 echo "${ECHO_T}$library_path_setting" >&6
1576 if test "$library_path_setting" != "ok"; then
1577 { { echo "$as_me:$LINENO: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&5
1581 echo "$as_me: error:
1582 *** LIBRARY_PATH shouldn't contain the current directory when
1583 *** building gcc. Please change the environment variable
1584 *** and run configure again." >&2;}
1585 { (exit 1); exit 1; }; }
1586 fi
1587
1588 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1589 # since this would lead to problems installing/building glibc.
1590 # GCC_EXEC_PREFIX contains the current directory if one of the following
1591 # is true:
1592 # - one of the terminals (":" and ";") is the first or last sign
1593 # - two terminals occur directly after each other
1594 # - the path contains an element with a dot in it
1595 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1596 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1597 case ${GCC_EXEC_PREFIX} in
1598 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1599 gcc_exec_prefix_setting="contains current directory"
1600 ;;
1601 *)
1602 gcc_exec_prefix_setting="ok"
1603 ;;
1604 esac
1605 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1606 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1607 if test "$gcc_exec_prefix_setting" != "ok"; then
1608 { { echo "$as_me:$LINENO: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&5
1612 echo "$as_me: error:
1613 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1614 *** building gcc. Please change the environment variable
1615 *** and run configure again." >&2;}
1616 { (exit 1); exit 1; }; }
1617 fi
1618
1619 # -----------
1620 # Directories
1621 # -----------
1622
1623 # Specify the local prefix
1624 local_prefix=
1625
1626 # Check whether --with-local-prefix or --without-local-prefix was given.
1627 if test "${with_local_prefix+set}" = set; then
1628 withval="$with_local_prefix"
1629 case "${withval}" in
1630 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1631 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1633 no) ;;
1634 *) local_prefix=$with_local_prefix ;;
1635 esac
1636 fi;
1637
1638 # Default local prefix if it is empty
1639 if test x$local_prefix = x; then
1640 local_prefix=/usr/local
1641 fi
1642
1643 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1644 # passed in by the toplevel make and thus we'd get different behavior
1645 # depending on where we built the sources.
1646 gcc_gxx_include_dir=
1647 # Specify the g++ header file directory
1648
1649 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1650 if test "${with_gxx_include_dir+set}" = set; then
1651 withval="$with_gxx_include_dir"
1652 case "${withval}" in
1653 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1654 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1655 { (exit 1); exit 1; }; } ;;
1656 no) ;;
1657 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1658 esac
1659 fi;
1660
1661 if test x${gcc_gxx_include_dir} = x; then
1662 if test x${enable_version_specific_runtime_libs} = xyes; then
1663 gcc_gxx_include_dir='${libsubdir}/include/c++'
1664 else
1665 libstdcxx_incdir='c++/$(version)'
1666 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1667 fi
1668 fi
1669
1670
1671 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1672 if test "${with_cpp_install_dir+set}" = set; then
1673 withval="$with_cpp_install_dir"
1674 if test x$withval = xyes; then
1675 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1676 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1677 { (exit 1); exit 1; }; }
1678 elif test x$withval != xno; then
1679 cpp_install_dir=$withval
1680 fi
1681 fi;
1682
1683 # We would like to our source tree to be readonly. However when releases or
1684 # pre-releases are generated, the flex/bison generated files as well as the
1685 # various formats of manuals need to be included along with the rest of the
1686 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1687 # just that.
1688
1689 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1690 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1691 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1692 if test "${enable_generated_files_in_srcdir+set}" = set; then
1693 enableval="$enable_generated_files_in_srcdir"
1694 generated_files_in_srcdir=$enableval
1695 else
1696 generated_files_in_srcdir=no
1697 fi;
1698
1699 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1700 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1701
1702 if test "$generated_files_in_srcdir" = "yes"; then
1703 GENINSRC=''
1704 else
1705 GENINSRC='#'
1706 fi
1707
1708
1709 # -------------------
1710 # Find default linker
1711 # -------------------
1712
1713 # With GNU ld
1714
1715 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1716 if test "${with_gnu_ld+set}" = set; then
1717 withval="$with_gnu_ld"
1718 gnu_ld_flag="$with_gnu_ld"
1719 else
1720 gnu_ld_flag=no
1721 fi;
1722
1723 # With pre-defined ld
1724
1725 # Check whether --with-ld or --without-ld was given.
1726 if test "${with_ld+set}" = set; then
1727 withval="$with_ld"
1728 DEFAULT_LINKER="$with_ld"
1729 fi;
1730 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1731 if test ! -x "$DEFAULT_LINKER"; then
1732 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1733 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1734 { (exit 1); exit 1; }; }
1735 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1736 gnu_ld_flag=yes
1737 fi
1738
1739 cat >>confdefs.h <<_ACEOF
1740 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1741 _ACEOF
1742
1743 fi
1744
1745 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1746 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1747 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1748 if test x"$gnu_ld_flag" = x"no"; then
1749 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1751 else
1752 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1753 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1754 fi
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 # With demangler in GNU ld
1761
1762 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1763 if test "${with_demangler_in_ld+set}" = set; then
1764 withval="$with_demangler_in_ld"
1765 demangler_in_ld="$with_demangler_in_ld"
1766 else
1767 demangler_in_ld=no
1768 fi;
1769
1770 # ----------------------
1771 # Find default assembler
1772 # ----------------------
1773
1774 # With GNU as
1775
1776 # Check whether --with-gnu-as or --without-gnu-as was given.
1777 if test "${with_gnu_as+set}" = set; then
1778 withval="$with_gnu_as"
1779 gas_flag="$with_gnu_as"
1780 else
1781 gas_flag=no
1782 fi;
1783
1784
1785 # Check whether --with-as or --without-as was given.
1786 if test "${with_as+set}" = set; then
1787 withval="$with_as"
1788 DEFAULT_ASSEMBLER="$with_as"
1789 fi;
1790 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1791 if test ! -x "$DEFAULT_ASSEMBLER"; then
1792 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1793 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1794 { (exit 1); exit 1; }; }
1795 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1796 gas_flag=yes
1797 fi
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1801 _ACEOF
1802
1803 fi
1804
1805 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1806 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1807 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1808 if test x"$gas_flag" = x"no"; then
1809 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1810 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1811 else
1812 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1813 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1814 fi
1815 else
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820 # ---------------
1821 # Find C compiler
1822 # ---------------
1823
1824 # If a non-executable a.out is present (e.g. created by GNU as above even if
1825 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1826 # file, even when creating an executable, so an execution test fails.
1827 # Remove possible default executable files to avoid this.
1828 #
1829 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1830 # Autoconf includes it.
1831 rm -f a.out a.exe b.out
1832
1833 # Find the native compiler
1834 ac_ext=c
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 else
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861 done
1862 done
1863
1864 fi
1865 fi
1866 CC=$ac_cv_prog_CC
1867 if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1870 else
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1873 fi
1874
1875 fi
1876 if test -z "$ac_cv_prog_CC"; then
1877 ac_ct_CC=$CC
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC="gcc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1908 else
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913 CC=$ac_ct_CC
1914 else
1915 CC="$ac_cv_prog_CC"
1916 fi
1917
1918 if test -z "$CC"; then
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1921 set dummy ${ac_tool_prefix}cc; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_CC="${ac_tool_prefix}cc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1940 fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 CC=$ac_cv_prog_CC
1947 if test -n "$CC"; then
1948 echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1950 else
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955 fi
1956 if test -z "$ac_cv_prog_CC"; then
1957 ac_ct_CC=$CC
1958 # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965 if test -n "$ac_ct_CC"; then
1966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971 IFS=$as_save_IFS
1972 test -z "$as_dir" && as_dir=.
1973 for ac_exec_ext in '' $ac_executable_extensions; do
1974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975 ac_cv_prog_ac_ct_CC="cc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 break 2
1978 fi
1979 done
1980 done
1981
1982 fi
1983 fi
1984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1985 if test -n "$ac_ct_CC"; then
1986 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1987 echo "${ECHO_T}$ac_ct_CC" >&6
1988 else
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1991 fi
1992
1993 CC=$ac_ct_CC
1994 else
1995 CC="$ac_cv_prog_CC"
1996 fi
1997
1998 fi
1999 if test -z "$CC"; then
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 else
2010 ac_prog_rejected=no
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2019 ac_prog_rejected=yes
2020 continue
2021 fi
2022 ac_cv_prog_CC="cc"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 break 2
2025 fi
2026 done
2027 done
2028
2029 if test $ac_prog_rejected = yes; then
2030 # We found a bogon in the path, so make sure we never use it.
2031 set dummy $ac_cv_prog_CC
2032 shift
2033 if test $# != 0; then
2034 # We chose a different compiler from the bogus one.
2035 # However, it has the same basename, so the bogon will be chosen
2036 # first if we set CC to just the basename; use the full file name.
2037 shift
2038 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2039 fi
2040 fi
2041 fi
2042 fi
2043 CC=$ac_cv_prog_CC
2044 if test -n "$CC"; then
2045 echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052 fi
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2055 for ac_prog in cl
2056 do
2057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC="$CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078 done
2079 done
2080
2081 fi
2082 fi
2083 CC=$ac_cv_prog_CC
2084 if test -n "$CC"; then
2085 echo "$as_me:$LINENO: result: $CC" >&5
2086 echo "${ECHO_T}$CC" >&6
2087 else
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2090 fi
2091
2092 test -n "$CC" && break
2093 done
2094 fi
2095 if test -z "$CC"; then
2096 ac_ct_CC=$CC
2097 for ac_prog in cl
2098 do
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy $ac_prog; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_ac_ct_CC="$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2119 fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128 echo "${ECHO_T}$ac_ct_CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 test -n "$ac_ct_CC" && break
2135 done
2136
2137 CC=$ac_ct_CC
2138 fi
2139
2140 fi
2141
2142
2143 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&2;}
2147 { (exit 1); exit 1; }; }
2148
2149 # Provide some information about the compiler.
2150 echo "$as_me:$LINENO:" \
2151 "checking for C compiler version" >&5
2152 ac_compiler=`set X $ac_compile; echo $2`
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2154 (eval $ac_compiler --version </dev/null >&5) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2159 (eval $ac_compiler -v </dev/null >&5) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2164 (eval $ac_compiler -V </dev/null >&5) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2168
2169 cat >conftest.$ac_ext <<_ACEOF
2170 /* confdefs.h. */
2171 _ACEOF
2172 cat confdefs.h >>conftest.$ac_ext
2173 cat >>conftest.$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2175
2176 int
2177 main ()
2178 {
2179
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 ac_clean_files_save=$ac_clean_files
2185 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2186 # Try to create an executable without -o first, disregard a.out.
2187 # It will help us diagnose broken compilers, and finding out an intuition
2188 # of exeext.
2189 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2190 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2191 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2193 (eval $ac_link_default) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Find the output, starting from the most likely. This scheme is
2198 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2199 # resort.
2200
2201 # Be careful to initialize this variable, since it used to be cached.
2202 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2203 ac_cv_exeext=
2204 # b.out is created by i960 compilers.
2205 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2206 do
2207 test -f "$ac_file" || continue
2208 case $ac_file in
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2210 ;;
2211 conftest.$ac_ext )
2212 # This is the source file.
2213 ;;
2214 [ab].out )
2215 # We found the default executable, but exeext='' is most
2216 # certainly right.
2217 break;;
2218 *.* )
2219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220 # FIXME: I believe we export ac_cv_exeext for Libtool,
2221 # but it would be cool to find out if it's true. Does anybody
2222 # maintain Libtool? --akim.
2223 export ac_cv_exeext
2224 break;;
2225 * )
2226 break;;
2227 esac
2228 done
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2238 fi
2239
2240 ac_exeext=$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6
2243
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 cross_compiling=no
2258 else
2259 if test "$cross_compiling" = maybe; then
2260 cross_compiling=yes
2261 else
2262 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2269 fi
2270 fi
2271 fi
2272 echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6
2274
2275 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276 ac_clean_files=$ac_clean_files_save
2277 # Check the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2281 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6
2283
2284 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2287 (eval $ac_link) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2294 # `rm'.
2295 for ac_file in conftest.exe conftest conftest.*; do
2296 test -f "$ac_file" || continue
2297 case $ac_file in
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300 export ac_cv_exeext
2301 break;;
2302 * ) break;;
2303 esac
2304 done
2305 else
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311 fi
2312
2313 rm -f conftest$ac_cv_exeext
2314 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315 echo "${ECHO_T}$ac_cv_exeext" >&6
2316
2317 rm -f conftest.$ac_ext
2318 EXEEXT=$ac_cv_exeext
2319 ac_exeext=$EXEEXT
2320 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2322 if test "${ac_cv_objext+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2331
2332 int
2333 main ()
2334 {
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 rm -f conftest.o conftest.obj
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2347 case $ac_file in
2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350 break;;
2351 esac
2352 done
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2356
2357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2362 fi
2363
2364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365 fi
2366 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367 echo "${ECHO_T}$ac_cv_objext" >&6
2368 OBJEXT=$ac_cv_objext
2369 ac_objext=$OBJEXT
2370 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381
2382 int
2383 main ()
2384 {
2385 #ifndef __GNUC__
2386 choke me
2387 #endif
2388
2389 ;
2390 return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_compiler_gnu=yes
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 ac_compiler_gnu=no
2421 fi
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425 fi
2426 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2428 GCC=`test $ac_compiler_gnu = yes && echo yes`
2429 ac_test_CFLAGS=${CFLAGS+set}
2430 ac_save_CFLAGS=$CFLAGS
2431 CFLAGS="-g"
2432 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h. */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2443
2444 int
2445 main ()
2446 {
2447
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_g=yes
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 ac_cv_prog_cc_g=no
2480 fi
2481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2489 CFLAGS="-g -O2"
2490 else
2491 CFLAGS="-g"
2492 fi
2493 else
2494 if test "$GCC" = yes; then
2495 CFLAGS="-O2"
2496 else
2497 CFLAGS=
2498 fi
2499 fi
2500 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 ac_cv_prog_cc_stdc=no
2506 ac_save_CC=$CC
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513 #include <stdarg.h>
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2521 char **p;
2522 int i;
2523 {
2524 return p[i];
2525 }
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2527 {
2528 char *s;
2529 va_list v;
2530 va_start (v,p);
2531 s = g (p, va_arg (v,int));
2532 va_end (v);
2533 return s;
2534 }
2535
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std1 is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std1. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2544
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549 int argc;
2550 char **argv;
2551 int
2552 main ()
2553 {
2554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2555 ;
2556 return 0;
2557 }
2558 _ACEOF
2559 # Don't try gcc -ansi; that turns off useful extensions and
2560 # breaks some systems' header files.
2561 # AIX -qlanglvl=ansi
2562 # Ultrix and OSF/1 -std1
2563 # HP-UX 10.20 and later -Ae
2564 # HP-UX older versions -Aa -D_HPUX_SOURCE
2565 # SVR4 -Xc -D__EXTENSIONS__
2566 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567 do
2568 CC="$ac_save_CC $ac_arg"
2569 rm -f conftest.$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2572 ac_status=$?
2573 grep -v '^ *+' conftest.er1 >conftest.err
2574 rm -f conftest.er1
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_prog_cc_stdc=$ac_arg
2592 break
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 fi
2598 rm -f conftest.err conftest.$ac_objext
2599 done
2600 rm -f conftest.$ac_ext conftest.$ac_objext
2601 CC=$ac_save_CC
2602
2603 fi
2604
2605 case "x$ac_cv_prog_cc_stdc" in
2606 x|xno)
2607 echo "$as_me:$LINENO: result: none needed" >&5
2608 echo "${ECHO_T}none needed" >&6 ;;
2609 *)
2610 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2612 CC="$CC $ac_cv_prog_cc_stdc" ;;
2613 esac
2614
2615 # Some people use a C++ compiler to compile C. Since we use `exit',
2616 # in C++ we need to declare it. In case someone uses the same compiler
2617 # for both compiling C and C++ we need to have the C++ compiler decide
2618 # the declaration of exit, since it's the most demanding environment.
2619 cat >conftest.$ac_ext <<_ACEOF
2620 #ifndef __cplusplus
2621 choke me
2622 #endif
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2627 ac_status=$?
2628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 for ac_declaration in \
2647 '' \
2648 'extern "C" void std::exit (int) throw (); using std::exit;' \
2649 'extern "C" void std::exit (int); using std::exit;' \
2650 'extern "C" void exit (int) throw ();' \
2651 'extern "C" void exit (int);' \
2652 'void exit (int);'
2653 do
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660 $ac_declaration
2661 #include <stdlib.h>
2662 int
2663 main ()
2664 {
2665 exit (42);
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 :
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697 continue
2698 fi
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700 cat >conftest.$ac_ext <<_ACEOF
2701 /* confdefs.h. */
2702 _ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2706 $ac_declaration
2707 int
2708 main ()
2709 {
2710 exit (42);
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 rm -f conftest.$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>conftest.er1
2718 ac_status=$?
2719 grep -v '^ *+' conftest.er1 >conftest.err
2720 rm -f conftest.er1
2721 cat conftest.err >&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try='test -z "$ac_c_werror_flag"
2725 || test ! -s conftest.err'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 break
2738 else
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 done
2745 rm -f conftest*
2746 if test -n "$ac_declaration"; then
2747 echo '#ifdef __cplusplus' >>confdefs.h
2748 echo $ac_declaration >>confdefs.h
2749 echo '#endif' >>confdefs.h
2750 fi
2751
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 fi
2757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764 if test "x$CC" != xcc; then
2765 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2766 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2767 else
2768 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2769 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2770 fi
2771 set dummy $CC; ac_cc=`echo $2 |
2772 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2773 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 # Make sure it works both with $CC and with simple cc.
2792 # We do the test twice because some compilers refuse to overwrite an
2793 # existing .o file with -o, though they will create one.
2794 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2795 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); };
2805 then
2806 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2807 if test "x$CC" != xcc; then
2808 # Test first that cc exists at all.
2809 if { ac_try='cc -c conftest.$ac_ext >&5'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2816 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); };
2826 then
2827 # cc works too.
2828 :
2829 else
2830 # cc exists but doesn't like -o.
2831 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2832 fi
2833 fi
2834 fi
2835 else
2836 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2837 fi
2838 rm -f conftest*
2839
2840 fi
2841 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2842 echo "$as_me:$LINENO: result: yes" >&5
2843 echo "${ECHO_T}yes" >&6
2844 else
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2847
2848 cat >>confdefs.h <<\_ACEOF
2849 #define NO_MINUS_C_MINUS_O 1
2850 _ACEOF
2851
2852 fi
2853
2854 # expand $ac_aux_dir to an absolute path
2855 am_aux_dir=`cd $ac_aux_dir && pwd`
2856
2857 # FIXME: we rely on the cache variable name because
2858 # there is no other way.
2859 set dummy $CC
2860 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2862 # Losing compiler, so override with the script.
2863 # FIXME: It is wrong to rewrite CC.
2864 # But if we don't then we get into trouble of one sort or another.
2865 # A longer-term fix would be to have automake use am__CC in this case,
2866 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2867 CC="$am_aux_dir/compile $CC"
2868 fi
2869
2870 # autoconf is lame and doesn't give us any substitution variable for this.
2871 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2872 NO_MINUS_C_MINUS_O=yes
2873 else
2874 OUTPUT_OPTION='-o $@'
2875 fi
2876
2877
2878
2879 # -------------------------
2880 # Check C compiler features
2881 # -------------------------
2882
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2892 CPP=
2893 fi
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 # Double quotes because CPP needs to be expanded
2899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2900 do
2901 ac_preproc_ok=false
2902 for ac_c_preproc_warn_flag in '' yes
2903 do
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921 Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev/null; then
2931 if test -s conftest.err; then
2932 ac_cpp_err=$ac_c_preproc_warn_flag
2933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2934 else
2935 ac_cpp_err=
2936 fi
2937 else
2938 ac_cpp_err=yes
2939 fi
2940 if test -z "$ac_cpp_err"; then
2941 :
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 # Broken: fails on valid input.
2947 continue
2948 fi
2949 rm -f conftest.err conftest.$ac_ext
2950
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963 ac_status=$?
2964 grep -v '^ *+' conftest.er1 >conftest.err
2965 rm -f conftest.er1
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2972 else
2973 ac_cpp_err=
2974 fi
2975 else
2976 ac_cpp_err=yes
2977 fi
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2980 continue
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985 # Passes both tests.
2986 ac_preproc_ok=:
2987 break
2988 fi
2989 rm -f conftest.err conftest.$ac_ext
2990
2991 done
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.$ac_ext
2994 if $ac_preproc_ok; then
2995 break
2996 fi
2997
2998 done
2999 ac_cv_prog_CPP=$CPP
3000
3001 fi
3002 CPP=$ac_cv_prog_CPP
3003 else
3004 ac_cv_prog_CPP=$CPP
3005 fi
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3008 ac_preproc_ok=false
3009 for ac_c_preproc_warn_flag in '' yes
3010 do
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028 Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
3040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3041 else
3042 ac_cpp_err=
3043 fi
3044 else
3045 ac_cpp_err=yes
3046 fi
3047 if test -z "$ac_cpp_err"; then
3048 :
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 # Broken: fails on valid input.
3054 continue
3055 fi
3056 rm -f conftest.err conftest.$ac_ext
3057
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
3078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3079 else
3080 ac_cpp_err=
3081 fi
3082 else
3083 ac_cpp_err=yes
3084 fi
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087 continue
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 # Passes both tests.
3093 ac_preproc_ok=:
3094 break
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098 done
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.$ac_ext
3101 if $ac_preproc_ok; then
3102 :
3103 else
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3109 fi
3110
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117
3118 echo "$as_me:$LINENO: checking for inline" >&5
3119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3120 if test "${ac_cv_c_inline+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 ac_cv_c_inline=no
3124 for ac_kw in inline __inline__ __inline; do
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #ifndef __cplusplus
3132 typedef int foo_t;
3133 static $ac_kw foo_t static_foo () {return 0; }
3134 $ac_kw foo_t foo () {return 0; }
3135 #endif
3136
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag"
3148 || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 (eval $ac_try) 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_inline=$ac_kw; break
3161 else
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 fi
3166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3167 done
3168
3169 fi
3170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3171 echo "${ECHO_T}$ac_cv_c_inline" >&6
3172
3173
3174 case $ac_cv_c_inline in
3175 inline | yes) ;;
3176 *)
3177 case $ac_cv_c_inline in
3178 no) ac_val=;;
3179 *) ac_val=$ac_cv_c_inline;;
3180 esac
3181 cat >>confdefs.h <<_ACEOF
3182 #ifndef __cplusplus
3183 #define inline $ac_val
3184 #endif
3185 _ACEOF
3186 ;;
3187 esac
3188
3189
3190 # sizeof(char) is 1 by definition.
3191
3192 echo "$as_me:$LINENO: checking for egrep" >&5
3193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3194 if test "${ac_cv_prog_egrep+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3198 then ac_cv_prog_egrep='grep -E'
3199 else ac_cv_prog_egrep='egrep'
3200 fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3203 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3204 EGREP=$ac_cv_prog_egrep
3205
3206
3207 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3209 if test "${ac_cv_header_stdc+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 cat >conftest.$ac_ext <<_ACEOF
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <stdlib.h>
3219 #include <stdarg.h>
3220 #include <string.h>
3221 #include <float.h>
3222
3223 int
3224 main ()
3225 {
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_header_stdc=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 ac_cv_header_stdc=no
3259 fi
3260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3261
3262 if test $ac_cv_header_stdc = yes; then
3263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264 cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h. */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <string.h>
3271
3272 _ACEOF
3273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274 $EGREP "memchr" >/dev/null 2>&1; then
3275 :
3276 else
3277 ac_cv_header_stdc=no
3278 fi
3279 rm -f conftest*
3280
3281 fi
3282
3283 if test $ac_cv_header_stdc = yes; then
3284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291 #include <stdlib.h>
3292
3293 _ACEOF
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 $EGREP "free" >/dev/null 2>&1; then
3296 :
3297 else
3298 ac_cv_header_stdc=no
3299 fi
3300 rm -f conftest*
3301
3302 fi
3303
3304 if test $ac_cv_header_stdc = yes; then
3305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3306 if test "$cross_compiling" = yes; then
3307 :
3308 else
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <ctype.h>
3316 #if ((' ' & 0x0FF) == 0x020)
3317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3319 #else
3320 # define ISLOWER(c) \
3321 (('a' <= (c) && (c) <= 'i') \
3322 || ('j' <= (c) && (c) <= 'r') \
3323 || ('s' <= (c) && (c) <= 'z'))
3324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3325 #endif
3326
3327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3328 int
3329 main ()
3330 {
3331 int i;
3332 for (i = 0; i < 256; i++)
3333 if (XOR (islower (i), ISLOWER (i))
3334 || toupper (i) != TOUPPER (i))
3335 exit(2);
3336 exit (0);
3337 }
3338 _ACEOF
3339 rm -f conftest$ac_exeext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 :
3351 else
3352 echo "$as_me: program exited with status $ac_status" >&5
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ( exit $ac_status )
3357 ac_cv_header_stdc=no
3358 fi
3359 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360 fi
3361 fi
3362 fi
3363 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3364 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3365 if test $ac_cv_header_stdc = yes; then
3366
3367 cat >>confdefs.h <<\_ACEOF
3368 #define STDC_HEADERS 1
3369 _ACEOF
3370
3371 fi
3372
3373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3384 inttypes.h stdint.h unistd.h
3385 do
3386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3387 echo "$as_me:$LINENO: checking for $ac_header" >&5
3388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 $ac_includes_default
3399
3400 #include <$ac_header>
3401 _ACEOF
3402 rm -f conftest.$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -z "$ac_c_werror_flag"
3412 || test ! -s conftest.err'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; } &&
3418 { ac_try='test -s conftest.$ac_objext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 (eval $ac_try) 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 eval "$as_ac_Header=yes"
3425 else
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 eval "$as_ac_Header=no"
3430 fi
3431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432 fi
3433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436 cat >>confdefs.h <<_ACEOF
3437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3438 _ACEOF
3439
3440 fi
3441
3442 done
3443
3444
3445 echo "$as_me:$LINENO: checking for void *" >&5
3446 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3447 if test "${ac_cv_type_void_p+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 $ac_includes_default
3457 int
3458 main ()
3459 {
3460 if ((void * *) 0)
3461 return 0;
3462 if (sizeof (void *))
3463 return 0;
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 (eval $ac_try) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_type_void_p=yes
3491 else
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 ac_cv_type_void_p=no
3496 fi
3497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3500 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3501
3502 echo "$as_me:$LINENO: checking size of void *" >&5
3503 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3504 if test "${ac_cv_sizeof_void_p+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test "$ac_cv_type_void_p" = yes; then
3508 # The cast to unsigned long works around a bug in the HP C Compiler
3509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3511 # This bug is HP SR number 8606223364.
3512 if test "$cross_compiling" = yes; then
3513 # Depending upon the size, compute the lo and hi bounds.
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_includes_default
3521 int
3522 main ()
3523 {
3524 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3525 test_array [0] = 0
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 ac_lo=0 ac_mid=0
3554 while :; do
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3562 int
3563 main ()
3564 {
3565 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3566 test_array [0] = 0
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_hi=$ac_mid; break
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 ac_lo=`expr $ac_mid + 1`
3600 if test $ac_lo -le $ac_mid; then
3601 ac_lo= ac_hi=
3602 break
3603 fi
3604 ac_mid=`expr 2 '*' $ac_mid + 1`
3605 fi
3606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 done
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h. */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3619 int
3620 main ()
3621 {
3622 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3623 test_array [0] = 0
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_hi=-1 ac_mid=-1
3652 while :; do
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 $ac_includes_default
3660 int
3661 main ()
3662 {
3663 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3664 test_array [0] = 0
3665
3666 ;
3667 return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>conftest.er1
3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -z "$ac_c_werror_flag"
3680 || test ! -s conftest.err'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest.$ac_objext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 (eval $ac_try) 2>&5
3689 ac_status=$?
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 ac_lo=$ac_mid; break
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 ac_hi=`expr '(' $ac_mid ')' - 1`
3698 if test $ac_mid -le $ac_hi; then
3699 ac_lo= ac_hi=
3700 break
3701 fi
3702 ac_mid=`expr 2 '*' $ac_mid`
3703 fi
3704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705 done
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 ac_lo= ac_hi=
3711 fi
3712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3713 fi
3714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3715 # Binary search between lo and hi bounds.
3716 while test "x$ac_lo" != "x$ac_hi"; do
3717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 $ac_includes_default
3725 int
3726 main ()
3727 {
3728 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3729 test_array [0] = 0
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_hi=$ac_mid
3758 else
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_lo=`expr '(' $ac_mid ')' + 1`
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 done
3766 case $ac_lo in
3767 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: cannot compute sizeof (void *), 77
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; } ;;
3773 esac
3774 else
3775 if test "$cross_compiling" = yes; then
3776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: cannot run test program while cross compiling
3779 See \`config.log' for more details." >&2;}
3780 { (exit 1); exit 1; }; }
3781 else
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 $ac_includes_default
3789 long longval () { return (long) (sizeof (void *)); }
3790 unsigned long ulongval () { return (long) (sizeof (void *)); }
3791 #include <stdio.h>
3792 #include <stdlib.h>
3793 int
3794 main ()
3795 {
3796
3797 FILE *f = fopen ("conftest.val", "w");
3798 if (! f)
3799 exit (1);
3800 if (((long) (sizeof (void *))) < 0)
3801 {
3802 long i = longval ();
3803 if (i != ((long) (sizeof (void *))))
3804 exit (1);
3805 fprintf (f, "%ld\n", i);
3806 }
3807 else
3808 {
3809 unsigned long i = ulongval ();
3810 if (i != ((long) (sizeof (void *))))
3811 exit (1);
3812 fprintf (f, "%lu\n", i);
3813 }
3814 exit (ferror (f) || fclose (f) != 0);
3815
3816 ;
3817 return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest$ac_exeext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822 (eval $ac_link) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 (eval $ac_try) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 ac_cv_sizeof_void_p=`cat conftest.val`
3832 else
3833 echo "$as_me: program exited with status $ac_status" >&5
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 ( exit $ac_status )
3838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3839 See \`config.log' for more details." >&5
3840 echo "$as_me: error: cannot compute sizeof (void *), 77
3841 See \`config.log' for more details." >&2;}
3842 { (exit 1); exit 1; }; }
3843 fi
3844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 fi
3847 rm -f conftest.val
3848 else
3849 ac_cv_sizeof_void_p=0
3850 fi
3851 fi
3852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3853 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3854 cat >>confdefs.h <<_ACEOF
3855 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3856 _ACEOF
3857
3858
3859 echo "$as_me:$LINENO: checking for short" >&5
3860 echo $ECHO_N "checking for short... $ECHO_C" >&6
3861 if test "${ac_cv_type_short+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 $ac_includes_default
3871 int
3872 main ()
3873 {
3874 if ((short *) 0)
3875 return 0;
3876 if (sizeof (short))
3877 return 0;
3878 ;
3879 return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_c_werror_flag"
3892 || test ! -s conftest.err'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; } &&
3898 { ac_try='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900 (eval $ac_try) 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_cv_type_short=yes
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 ac_cv_type_short=no
3910 fi
3911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3914 echo "${ECHO_T}$ac_cv_type_short" >&6
3915
3916 echo "$as_me:$LINENO: checking size of short" >&5
3917 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3918 if test "${ac_cv_sizeof_short+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921 if test "$ac_cv_type_short" = yes; then
3922 # The cast to unsigned long works around a bug in the HP C Compiler
3923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3925 # This bug is HP SR number 8606223364.
3926 if test "$cross_compiling" = yes; then
3927 # Depending upon the size, compute the lo and hi bounds.
3928 cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h. */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 $ac_includes_default
3935 int
3936 main ()
3937 {
3938 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3939 test_array [0] = 0
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_lo=0 ac_mid=0
3968 while :; do
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3976 int
3977 main ()
3978 {
3979 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3980 test_array [0] = 0
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_hi=$ac_mid; break
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013 ac_lo=`expr $ac_mid + 1`
4014 if test $ac_lo -le $ac_mid; then
4015 ac_lo= ac_hi=
4016 break
4017 fi
4018 ac_mid=`expr 2 '*' $ac_mid + 1`
4019 fi
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021 done
4022 else
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4025
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 $ac_includes_default
4033 int
4034 main ()
4035 {
4036 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4037 test_array [0] = 0
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4046 ac_status=$?
4047 grep -v '^ *+' conftest.er1 >conftest.err
4048 rm -f conftest.er1
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_hi=-1 ac_mid=-1
4066 while :; do
4067 cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h. */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 $ac_includes_default
4074 int
4075 main ()
4076 {
4077 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4078 test_array [0] = 0
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_lo=$ac_mid; break
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4110
4111 ac_hi=`expr '(' $ac_mid ')' - 1`
4112 if test $ac_mid -le $ac_hi; then
4113 ac_lo= ac_hi=
4114 break
4115 fi
4116 ac_mid=`expr 2 '*' $ac_mid`
4117 fi
4118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4119 done
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124 ac_lo= ac_hi=
4125 fi
4126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4127 fi
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 # Binary search between lo and hi bounds.
4130 while test "x$ac_lo" != "x$ac_hi"; do
4131 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4132 cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h. */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4139 int
4140 main ()
4141 {
4142 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4143 test_array [0] = 0
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161 (eval $ac_try) 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_hi=$ac_mid
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 ac_lo=`expr '(' $ac_mid ')' + 1`
4177 fi
4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4179 done
4180 case $ac_lo in
4181 ?*) ac_cv_sizeof_short=$ac_lo;;
4182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4183 See \`config.log' for more details." >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77
4185 See \`config.log' for more details." >&2;}
4186 { (exit 1); exit 1; }; } ;;
4187 esac
4188 else
4189 if test "$cross_compiling" = yes; then
4190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4191 See \`config.log' for more details." >&5
4192 echo "$as_me: error: cannot run test program while cross compiling
4193 See \`config.log' for more details." >&2;}
4194 { (exit 1); exit 1; }; }
4195 else
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4203 long longval () { return (long) (sizeof (short)); }
4204 unsigned long ulongval () { return (long) (sizeof (short)); }
4205 #include <stdio.h>
4206 #include <stdlib.h>
4207 int
4208 main ()
4209 {
4210
4211 FILE *f = fopen ("conftest.val", "w");
4212 if (! f)
4213 exit (1);
4214 if (((long) (sizeof (short))) < 0)
4215 {
4216 long i = longval ();
4217 if (i != ((long) (sizeof (short))))
4218 exit (1);
4219 fprintf (f, "%ld\n", i);
4220 }
4221 else
4222 {
4223 unsigned long i = ulongval ();
4224 if (i != ((long) (sizeof (short))))
4225 exit (1);
4226 fprintf (f, "%lu\n", i);
4227 }
4228 exit (ferror (f) || fclose (f) != 0);
4229
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 rm -f conftest$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_sizeof_short=`cat conftest.val`
4246 else
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ( exit $ac_status )
4252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4253 See \`config.log' for more details." >&5
4254 echo "$as_me: error: cannot compute sizeof (short), 77
4255 See \`config.log' for more details." >&2;}
4256 { (exit 1); exit 1; }; }
4257 fi
4258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4259 fi
4260 fi
4261 rm -f conftest.val
4262 else
4263 ac_cv_sizeof_short=0
4264 fi
4265 fi
4266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4267 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4268 cat >>confdefs.h <<_ACEOF
4269 #define SIZEOF_SHORT $ac_cv_sizeof_short
4270 _ACEOF
4271
4272
4273 echo "$as_me:$LINENO: checking for int" >&5
4274 echo $ECHO_N "checking for int... $ECHO_C" >&6
4275 if test "${ac_cv_type_int+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h. */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4285 int
4286 main ()
4287 {
4288 if ((int *) 0)
4289 return 0;
4290 if (sizeof (int))
4291 return 0;
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -z "$ac_c_werror_flag"
4306 || test ! -s conftest.err'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try='test -s conftest.$ac_objext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_type_int=yes
4319 else
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_cv_type_int=no
4324 fi
4325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4326 fi
4327 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4328 echo "${ECHO_T}$ac_cv_type_int" >&6
4329
4330 echo "$as_me:$LINENO: checking size of int" >&5
4331 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4332 if test "${ac_cv_sizeof_int+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 if test "$ac_cv_type_int" = yes; then
4336 # The cast to unsigned long works around a bug in the HP C Compiler
4337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4339 # This bug is HP SR number 8606223364.
4340 if test "$cross_compiling" = yes; then
4341 # Depending upon the size, compute the lo and hi bounds.
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4349 int
4350 main ()
4351 {
4352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4353 test_array [0] = 0
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 rm -f conftest.$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_lo=0 ac_mid=0
4382 while :; do
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h. */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 $ac_includes_default
4390 int
4391 main ()
4392 {
4393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4394 test_array [0] = 0
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_hi=$ac_mid; break
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 ac_lo=`expr $ac_mid + 1`
4428 if test $ac_lo -le $ac_mid; then
4429 ac_lo= ac_hi=
4430 break
4431 fi
4432 ac_mid=`expr 2 '*' $ac_mid + 1`
4433 fi
4434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4435 done
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 cat >conftest.$ac_ext <<_ACEOF
4441 /* confdefs.h. */
4442 _ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4447 int
4448 main ()
4449 {
4450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4451 test_array [0] = 0
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_hi=-1 ac_mid=-1
4480 while :; do
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h. */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4488 int
4489 main ()
4490 {
4491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4492 test_array [0] = 0
4493
4494 ;
4495 return 0;
4496 }
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>conftest.er1
4501 ac_status=$?
4502 grep -v '^ *+' conftest.er1 >conftest.err
4503 rm -f conftest.er1
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try='test -z "$ac_c_werror_flag"
4508 || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 (eval $ac_try) 2>&5
4511 ac_status=$?
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_lo=$ac_mid; break
4521 else
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4524
4525 ac_hi=`expr '(' $ac_mid ')' - 1`
4526 if test $ac_mid -le $ac_hi; then
4527 ac_lo= ac_hi=
4528 break
4529 fi
4530 ac_mid=`expr 2 '*' $ac_mid`
4531 fi
4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533 done
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4537
4538 ac_lo= ac_hi=
4539 fi
4540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4543 # Binary search between lo and hi bounds.
4544 while test "x$ac_lo" != "x$ac_hi"; do
4545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4546 cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h. */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4553 int
4554 main ()
4555 {
4556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4557 test_array [0] = 0
4558
4559 ;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest.$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 (eval $ac_try) 2>&5
4576 ac_status=$?
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 (eval $ac_try) 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_hi=$ac_mid
4586 else
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ac_lo=`expr '(' $ac_mid ')' + 1`
4591 fi
4592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4593 done
4594 case $ac_lo in
4595 ?*) ac_cv_sizeof_int=$ac_lo;;
4596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: cannot compute sizeof (int), 77
4599 See \`config.log' for more details." >&2;}
4600 { (exit 1); exit 1; }; } ;;
4601 esac
4602 else
4603 if test "$cross_compiling" = yes; then
4604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot run test program while cross compiling
4607 See \`config.log' for more details." >&2;}
4608 { (exit 1); exit 1; }; }
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4617 long longval () { return (long) (sizeof (int)); }
4618 unsigned long ulongval () { return (long) (sizeof (int)); }
4619 #include <stdio.h>
4620 #include <stdlib.h>
4621 int
4622 main ()
4623 {
4624
4625 FILE *f = fopen ("conftest.val", "w");
4626 if (! f)
4627 exit (1);
4628 if (((long) (sizeof (int))) < 0)
4629 {
4630 long i = longval ();
4631 if (i != ((long) (sizeof (int))))
4632 exit (1);
4633 fprintf (f, "%ld\n", i);
4634 }
4635 else
4636 {
4637 unsigned long i = ulongval ();
4638 if (i != ((long) (sizeof (int))))
4639 exit (1);
4640 fprintf (f, "%lu\n", i);
4641 }
4642 exit (ferror (f) || fclose (f) != 0);
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_sizeof_int=`cat conftest.val`
4660 else
4661 echo "$as_me: program exited with status $ac_status" >&5
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665 ( exit $ac_status )
4666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4667 See \`config.log' for more details." >&5
4668 echo "$as_me: error: cannot compute sizeof (int), 77
4669 See \`config.log' for more details." >&2;}
4670 { (exit 1); exit 1; }; }
4671 fi
4672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4673 fi
4674 fi
4675 rm -f conftest.val
4676 else
4677 ac_cv_sizeof_int=0
4678 fi
4679 fi
4680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4681 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4682 cat >>confdefs.h <<_ACEOF
4683 #define SIZEOF_INT $ac_cv_sizeof_int
4684 _ACEOF
4685
4686
4687 echo "$as_me:$LINENO: checking for long" >&5
4688 echo $ECHO_N "checking for long... $ECHO_C" >&6
4689 if test "${ac_cv_type_long+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 cat >conftest.$ac_ext <<_ACEOF
4693 /* confdefs.h. */
4694 _ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4699 int
4700 main ()
4701 {
4702 if ((long *) 0)
4703 return 0;
4704 if (sizeof (long))
4705 return 0;
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest.$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4722 (eval $ac_try) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 (eval $ac_try) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_type_long=yes
4733 else
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_cv_type_long=no
4738 fi
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4742 echo "${ECHO_T}$ac_cv_type_long" >&6
4743
4744 echo "$as_me:$LINENO: checking size of long" >&5
4745 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4746 if test "${ac_cv_sizeof_long+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if test "$ac_cv_type_long" = yes; then
4750 # The cast to unsigned long works around a bug in the HP C Compiler
4751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4753 # This bug is HP SR number 8606223364.
4754 if test "$cross_compiling" = yes; then
4755 # Depending upon the size, compute the lo and hi bounds.
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4763 int
4764 main ()
4765 {
4766 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4767 test_array [0] = 0
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_lo=0 ac_mid=0
4796 while :; do
4797 cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h. */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 $ac_includes_default
4804 int
4805 main ()
4806 {
4807 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4808 test_array [0] = 0
4809
4810 ;
4811 return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_hi=$ac_mid; break
4837 else
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_lo=`expr $ac_mid + 1`
4842 if test $ac_lo -le $ac_mid; then
4843 ac_lo= ac_hi=
4844 break
4845 fi
4846 ac_mid=`expr 2 '*' $ac_mid + 1`
4847 fi
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 done
4850 else
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4861 int
4862 main ()
4863 {
4864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4865 test_array [0] = 0
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 (eval $ac_try) 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4893 ac_hi=-1 ac_mid=-1
4894 while :; do
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 $ac_includes_default
4902 int
4903 main ()
4904 {
4905 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4906 test_array [0] = 0
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_lo=$ac_mid; break
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_hi=`expr '(' $ac_mid ')' - 1`
4940 if test $ac_mid -le $ac_hi; then
4941 ac_lo= ac_hi=
4942 break
4943 fi
4944 ac_mid=`expr 2 '*' $ac_mid`
4945 fi
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 done
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_lo= ac_hi=
4953 fi
4954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4957 # Binary search between lo and hi bounds.
4958 while test "x$ac_lo" != "x$ac_hi"; do
4959 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4967 int
4968 main ()
4969 {
4970 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4971 test_array [0] = 0
4972
4973 ;
4974 return 0;
4975 }
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989 (eval $ac_try) 2>&5
4990 ac_status=$?
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_hi=$ac_mid
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 ac_lo=`expr '(' $ac_mid ')' + 1`
5005 fi
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 done
5008 case $ac_lo in
5009 ?*) ac_cv_sizeof_long=$ac_lo;;
5010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5011 See \`config.log' for more details." >&5
5012 echo "$as_me: error: cannot compute sizeof (long), 77
5013 See \`config.log' for more details." >&2;}
5014 { (exit 1); exit 1; }; } ;;
5015 esac
5016 else
5017 if test "$cross_compiling" = yes; then
5018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: cannot run test program while cross compiling
5021 See \`config.log' for more details." >&2;}
5022 { (exit 1); exit 1; }; }
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 long longval () { return (long) (sizeof (long)); }
5032 unsigned long ulongval () { return (long) (sizeof (long)); }
5033 #include <stdio.h>
5034 #include <stdlib.h>
5035 int
5036 main ()
5037 {
5038
5039 FILE *f = fopen ("conftest.val", "w");
5040 if (! f)
5041 exit (1);
5042 if (((long) (sizeof (long))) < 0)
5043 {
5044 long i = longval ();
5045 if (i != ((long) (sizeof (long))))
5046 exit (1);
5047 fprintf (f, "%ld\n", i);
5048 }
5049 else
5050 {
5051 unsigned long i = ulongval ();
5052 if (i != ((long) (sizeof (long))))
5053 exit (1);
5054 fprintf (f, "%lu\n", i);
5055 }
5056 exit (ferror (f) || fclose (f) != 0);
5057
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_sizeof_long=`cat conftest.val`
5074 else
5075 echo "$as_me: program exited with status $ac_status" >&5
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ( exit $ac_status )
5080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5081 See \`config.log' for more details." >&5
5082 echo "$as_me: error: cannot compute sizeof (long), 77
5083 See \`config.log' for more details." >&2;}
5084 { (exit 1); exit 1; }; }
5085 fi
5086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 fi
5089 rm -f conftest.val
5090 else
5091 ac_cv_sizeof_long=0
5092 fi
5093 fi
5094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5095 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5096 cat >>confdefs.h <<_ACEOF
5097 #define SIZEOF_LONG $ac_cv_sizeof_long
5098 _ACEOF
5099
5100
5101 echo "$as_me:$LINENO: checking for long long" >&5
5102 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5103 if test "${ac_cv_type_long_long+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113 int
5114 main ()
5115 {
5116 if ((long long *) 0)
5117 return 0;
5118 if (sizeof (long long))
5119 return 0;
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag"
5134 || test ! -s conftest.err'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_type_long_long=yes
5147 else
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 ac_cv_type_long_long=no
5152 fi
5153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5154 fi
5155 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5156 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5157 if test $ac_cv_type_long_long = yes; then
5158
5159 cat >>confdefs.h <<_ACEOF
5160 #define HAVE_LONG_LONG 1
5161 _ACEOF
5162
5163 echo "$as_me:$LINENO: checking for long long" >&5
5164 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5165 if test "${ac_cv_type_long_long+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 int
5176 main ()
5177 {
5178 if ((long long *) 0)
5179 return 0;
5180 if (sizeof (long long))
5181 return 0;
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_type_long_long=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_cv_type_long_long=no
5214 fi
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5218 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5219
5220 echo "$as_me:$LINENO: checking size of long long" >&5
5221 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5222 if test "${ac_cv_sizeof_long_long+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test "$ac_cv_type_long_long" = yes; then
5226 # The cast to unsigned long works around a bug in the HP C Compiler
5227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5229 # This bug is HP SR number 8606223364.
5230 if test "$cross_compiling" = yes; then
5231 # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 int
5240 main ()
5241 {
5242 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5243 test_array [0] = 0
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_lo=0 ac_mid=0
5272 while :; do
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5280 int
5281 main ()
5282 {
5283 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5284 test_array [0] = 0
5285
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_hi=$ac_mid; break
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_lo=`expr $ac_mid + 1`
5318 if test $ac_lo -le $ac_mid; then
5319 ac_lo= ac_hi=
5320 break
5321 fi
5322 ac_mid=`expr 2 '*' $ac_mid + 1`
5323 fi
5324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325 done
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5337 int
5338 main ()
5339 {
5340 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5341 test_array [0] = 0
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_hi=-1 ac_mid=-1
5370 while :; do
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5378 int
5379 main ()
5380 {
5381 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5382 test_array [0] = 0
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_lo=$ac_mid; break
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_hi=`expr '(' $ac_mid ')' - 1`
5416 if test $ac_mid -le $ac_hi; then
5417 ac_lo= ac_hi=
5418 break
5419 fi
5420 ac_mid=`expr 2 '*' $ac_mid`
5421 fi
5422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 done
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_lo= ac_hi=
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 # Binary search between lo and hi bounds.
5434 while test "x$ac_lo" != "x$ac_hi"; do
5435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5443 int
5444 main ()
5445 {
5446 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5447 test_array [0] = 0
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_hi=$ac_mid
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_lo=`expr '(' $ac_mid ')' + 1`
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 done
5484 case $ac_lo in
5485 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (long long), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5491 esac
5492 else
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot run test program while cross compiling
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 long longval () { return (long) (sizeof (long long)); }
5508 unsigned long ulongval () { return (long) (sizeof (long long)); }
5509 #include <stdio.h>
5510 #include <stdlib.h>
5511 int
5512 main ()
5513 {
5514
5515 FILE *f = fopen ("conftest.val", "w");
5516 if (! f)
5517 exit (1);
5518 if (((long) (sizeof (long long))) < 0)
5519 {
5520 long i = longval ();
5521 if (i != ((long) (sizeof (long long))))
5522 exit (1);
5523 fprintf (f, "%ld\n", i);
5524 }
5525 else
5526 {
5527 unsigned long i = ulongval ();
5528 if (i != ((long) (sizeof (long long))))
5529 exit (1);
5530 fprintf (f, "%lu\n", i);
5531 }
5532 exit (ferror (f) || fclose (f) != 0);
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_sizeof_long_long=`cat conftest.val`
5550 else
5551 echo "$as_me: program exited with status $ac_status" >&5
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ( exit $ac_status )
5556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (long long), 77
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; }
5561 fi
5562 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563 fi
5564 fi
5565 rm -f conftest.val
5566 else
5567 ac_cv_sizeof_long_long=0
5568 fi
5569 fi
5570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5571 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5572 cat >>confdefs.h <<_ACEOF
5573 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5574 _ACEOF
5575
5576
5577 fi
5578
5579 echo "$as_me:$LINENO: checking for __int64" >&5
5580 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5581 if test "${ac_cv_type___int64+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 int
5592 main ()
5593 {
5594 if ((__int64 *) 0)
5595 return 0;
5596 if (sizeof (__int64))
5597 return 0;
5598 ;
5599 return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604 (eval $ac_compile) 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -z "$ac_c_werror_flag"
5612 || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_type___int64=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 ac_cv_type___int64=no
5630 fi
5631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5634 echo "${ECHO_T}$ac_cv_type___int64" >&6
5635 if test $ac_cv_type___int64 = yes; then
5636
5637 cat >>confdefs.h <<_ACEOF
5638 #define HAVE___INT64 1
5639 _ACEOF
5640
5641 echo "$as_me:$LINENO: checking for __int64" >&5
5642 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5643 if test "${ac_cv_type___int64+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5653 int
5654 main ()
5655 {
5656 if ((__int64 *) 0)
5657 return 0;
5658 if (sizeof (__int64))
5659 return 0;
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_type___int64=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5690
5691 ac_cv_type___int64=no
5692 fi
5693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5696 echo "${ECHO_T}$ac_cv_type___int64" >&6
5697
5698 echo "$as_me:$LINENO: checking size of __int64" >&5
5699 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5700 if test "${ac_cv_sizeof___int64+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 if test "$ac_cv_type___int64" = yes; then
5704 # The cast to unsigned long works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 if test "$cross_compiling" = yes; then
5709 # Depending upon the size, compute the lo and hi bounds.
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5717 int
5718 main ()
5719 {
5720 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5721 test_array [0] = 0
5722
5723 ;
5724 return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_lo=0 ac_mid=0
5750 while :; do
5751 cat >conftest.$ac_ext <<_ACEOF
5752 /* confdefs.h. */
5753 _ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 $ac_includes_default
5758 int
5759 main ()
5760 {
5761 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5762 test_array [0] = 0
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -z "$ac_c_werror_flag"
5778 || test ! -s conftest.err'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 ac_hi=$ac_mid; break
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5794
5795 ac_lo=`expr $ac_mid + 1`
5796 if test $ac_lo -le $ac_mid; then
5797 ac_lo= ac_hi=
5798 break
5799 fi
5800 ac_mid=`expr 2 '*' $ac_mid + 1`
5801 fi
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 done
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 $ac_includes_default
5815 int
5816 main ()
5817 {
5818 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5819 test_array [0] = 0
5820
5821 ;
5822 return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_hi=-1 ac_mid=-1
5848 while :; do
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5856 int
5857 main ()
5858 {
5859 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5860 test_array [0] = 0
5861
5862 ;
5863 return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5869 ac_status=$?
5870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_lo=$ac_mid; break
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_hi=`expr '(' $ac_mid ')' - 1`
5894 if test $ac_mid -le $ac_hi; then
5895 ac_lo= ac_hi=
5896 break
5897 fi
5898 ac_mid=`expr 2 '*' $ac_mid`
5899 fi
5900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5901 done
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_lo= ac_hi=
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5911 # Binary search between lo and hi bounds.
5912 while test "x$ac_lo" != "x$ac_hi"; do
5913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 int
5922 main ()
5923 {
5924 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5925 test_array [0] = 0
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_hi=$ac_mid
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_lo=`expr '(' $ac_mid ')' + 1`
5959 fi
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 done
5962 case $ac_lo in
5963 ?*) ac_cv_sizeof___int64=$ac_lo;;
5964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5965 See \`config.log' for more details." >&5
5966 echo "$as_me: error: cannot compute sizeof (__int64), 77
5967 See \`config.log' for more details." >&2;}
5968 { (exit 1); exit 1; }; } ;;
5969 esac
5970 else
5971 if test "$cross_compiling" = yes; then
5972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&2;}
5976 { (exit 1); exit 1; }; }
5977 else
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 long longval () { return (long) (sizeof (__int64)); }
5986 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5987 #include <stdio.h>
5988 #include <stdlib.h>
5989 int
5990 main ()
5991 {
5992
5993 FILE *f = fopen ("conftest.val", "w");
5994 if (! f)
5995 exit (1);
5996 if (((long) (sizeof (__int64))) < 0)
5997 {
5998 long i = longval ();
5999 if (i != ((long) (sizeof (__int64))))
6000 exit (1);
6001 fprintf (f, "%ld\n", i);
6002 }
6003 else
6004 {
6005 unsigned long i = ulongval ();
6006 if (i != ((long) (sizeof (__int64))))
6007 exit (1);
6008 fprintf (f, "%lu\n", i);
6009 }
6010 exit (ferror (f) || fclose (f) != 0);
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 rm -f conftest$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_sizeof___int64=`cat conftest.val`
6028 else
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ( exit $ac_status )
6034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6035 See \`config.log' for more details." >&5
6036 echo "$as_me: error: cannot compute sizeof (__int64), 77
6037 See \`config.log' for more details." >&2;}
6038 { (exit 1); exit 1; }; }
6039 fi
6040 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 fi
6043 rm -f conftest.val
6044 else
6045 ac_cv_sizeof___int64=0
6046 fi
6047 fi
6048 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6049 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6050 cat >>confdefs.h <<_ACEOF
6051 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6052 _ACEOF
6053
6054
6055 fi
6056
6057
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6061
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6064 # * 'long long'
6065 # * variadic macros
6066 # * overlong strings
6067 # So, we only use -pedantic if we can disable those warnings.
6068
6069 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6070 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6071 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 save_CFLAGS="$CFLAGS"
6075 CFLAGS="-Wno-long-long"
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082
6083 _ACEOF
6084 rm -f conftest.$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 (eval $ac_try) 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_prog_cc_w_no_long_long=yes
6107 else
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111 ac_cv_prog_cc_w_no_long_long=no
6112 fi
6113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6114 CFLAGS="$save_CFLAGS"
6115
6116 fi
6117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6118 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6119
6120 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6121 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6122 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 else
6125 save_CFLAGS="$CFLAGS"
6126 CFLAGS="-Wno-variadic-macros"
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6137 (eval $ac_compile) 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_prog_cc_w_no_variadic_macros=yes
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 ac_cv_prog_cc_w_no_variadic_macros=no
6163 fi
6164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6165 CFLAGS="$save_CFLAGS"
6166
6167 fi
6168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6169 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6170
6171 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6172 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6173 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 save_CFLAGS="$CFLAGS"
6177 CFLAGS="-Wno-overlength-strings"
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_prog_cc_w_no_overlength_strings=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_cv_prog_cc_w_no_overlength_strings=no
6214 fi
6215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216 CFLAGS="$save_CFLAGS"
6217
6218 fi
6219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6220 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6221
6222 strict1_warn=
6223 if test $ac_cv_prog_cc_w_no_long_long = yes \
6224 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6225 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6226 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6227 fi
6228
6229 # Add -Wold-style-definition if it's accepted
6230 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6231 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6232 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 save_CFLAGS="$CFLAGS"
6236 CFLAGS="-Wold-style-definition"
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h. */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_prog_cc_w_old_style_definition=yes
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6271
6272 ac_cv_prog_cc_w_old_style_definition=no
6273 fi
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 CFLAGS="$save_CFLAGS"
6276
6277 fi
6278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6279 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6280 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6281 strict1_warn="${strict1_warn} -Wold-style-definition"
6282 fi
6283
6284 # Add -Wmissing-format-attribute if it's accepted
6285 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6286 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6287 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290 save_CFLAGS="$CFLAGS"
6291 CFLAGS="-Wmissing-format-attribute"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 /* confdefs.h. */
6294 _ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_prog_cc_w_missing_format_attribute=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ac_cv_prog_cc_w_missing_format_attribute=no
6328 fi
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 CFLAGS="$save_CFLAGS"
6331
6332 fi
6333 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6334 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6335 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6336 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6337 fi
6338
6339 # Enable -Werror, period.
6340 # Check whether --enable-werror_always or --disable-werror_always was given.
6341 if test "${enable_werror_always+set}" = set; then
6342 enableval="$enable_werror_always"
6343
6344 else
6345 enable_werror_always=no
6346 fi;
6347 if test x${enable_werror_always} = xyes ; then
6348 strict1_warn="${strict1_warn} -Werror"
6349 WERROR=-Werror
6350 fi
6351
6352
6353
6354 # Get C++ compatibility warning flag, if supported.
6355 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6356 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6357 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 save_CFLAGS="$CFLAGS"
6361 CFLAGS="-Wc++-compat"
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_prog_cc_w_cxx_compat=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_cv_prog_cc_w_cxx_compat=no
6398 fi
6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 CFLAGS="$save_CFLAGS"
6401
6402 fi
6403 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6404 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6405 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6406 cxx_compat_warn="-Wc++-compat"
6407 fi
6408
6409
6410
6411 # If the native compiler is GCC, we can enable warnings even in stage1.
6412 # That's useful for people building cross-compilers, or just running a
6413 # quick `make'.
6414 warn_cflags=
6415 if test "x$GCC" = "xyes"; then
6416 warn_cflags='$(GCC_WARN_CFLAGS)'
6417 fi
6418
6419
6420 # Enable -Werror in bootstrap stage2 and later.
6421 is_release=
6422 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6423 is_release=yes
6424 fi
6425 # Check whether --enable-werror or --disable-werror was given.
6426 if test "${enable_werror+set}" = set; then
6427 enableval="$enable_werror"
6428
6429 else
6430 if test x$is_release = x ; then
6431 # Default to "yes" on development branches.
6432 enable_werror=yes
6433 else
6434 # Default to "no" on release branches.
6435 enable_werror=no
6436 fi
6437 fi;
6438 if test x$enable_werror = xyes ; then
6439 WERROR=-Werror
6440 fi
6441
6442
6443 # Enable expensive internal checks
6444 # Check whether --enable-checking or --disable-checking was given.
6445 if test "${enable_checking+set}" = set; then
6446 enableval="$enable_checking"
6447 ac_checking_flags="${enableval}"
6448 else
6449
6450 # Determine the default checks.
6451 if test x$is_release = x ; then
6452 ac_checking_flags=yes
6453 else
6454 ac_checking_flags=release
6455 fi
6456 fi;
6457 ac_assert_checking=1
6458 ac_checking=
6459 ac_fold_checking=
6460 ac_gc_checking=
6461 ac_gc_always_collect=
6462 ac_rtl_checking=
6463 ac_rtlflag_checking=
6464 ac_runtime_checking=1
6465 ac_tree_checking=
6466 ac_valgrind_checking=
6467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6468 for check in $ac_checking_flags
6469 do
6470 case $check in
6471 # these set all the flags to specific states
6472 yes) ac_assert_checking=1 ; ac_checking=1 ;
6473 ac_fold_checking= ; ac_gc_checking=1 ;
6474 ac_gc_always_collect= ; ac_rtl_checking= ;
6475 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6476 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6477 no|none) ac_assert_checking= ; ac_checking= ;
6478 ac_fold_checking= ; ac_gc_checking= ;
6479 ac_gc_always_collect= ; ac_rtl_checking= ;
6480 ac_rtlflag_checking= ; ac_runtime_checking= ;
6481 ac_tree_checking= ; ac_valgrind_checking= ;;
6482 all) ac_assert_checking=1 ; ac_checking=1 ;
6483 ac_fold_checking=1 ; ac_gc_checking=1 ;
6484 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6485 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6486 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6487 release) ac_assert_checking=1 ; ac_checking= ;
6488 ac_fold_checking= ; ac_gc_checking= ;
6489 ac_gc_always_collect= ; ac_rtl_checking= ;
6490 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6491 ac_tree_checking= ; ac_valgrind_checking= ;;
6492 # these enable particular checks
6493 assert) ac_assert_checking=1 ;;
6494 fold) ac_fold_checking=1 ;;
6495 gc) ac_gc_checking=1 ;;
6496 gcac) ac_gc_always_collect=1 ;;
6497 misc) ac_checking=1 ;;
6498 rtl) ac_rtl_checking=1 ;;
6499 rtlflag) ac_rtlflag_checking=1 ;;
6500 runtime) ac_runtime_checking=1 ;;
6501 tree) ac_tree_checking=1 ;;
6502 valgrind) ac_valgrind_checking=1 ;;
6503 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6504 echo "$as_me: error: unknown check category $check" >&2;}
6505 { (exit 1); exit 1; }; } ;;
6506 esac
6507 done
6508 IFS="$ac_save_IFS"
6509
6510 nocommon_flag=""
6511 if test x$ac_checking != x ; then
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define ENABLE_CHECKING 1
6515 _ACEOF
6516
6517 nocommon_flag=-fno-common
6518 fi
6519
6520 if test x$ac_assert_checking != x ; then
6521
6522 cat >>confdefs.h <<\_ACEOF
6523 #define ENABLE_ASSERT_CHECKING 1
6524 _ACEOF
6525
6526 fi
6527
6528 if test x$ac_runtime_checking != x ; then
6529
6530 cat >>confdefs.h <<\_ACEOF
6531 #define ENABLE_RUNTIME_CHECKING 1
6532 _ACEOF
6533
6534 fi
6535 if test x$ac_tree_checking != x ; then
6536
6537 cat >>confdefs.h <<\_ACEOF
6538 #define ENABLE_TREE_CHECKING 1
6539 _ACEOF
6540
6541 TREEBROWSER=tree-browser.o
6542 fi
6543
6544 if test x$ac_rtl_checking != x ; then
6545
6546 cat >>confdefs.h <<\_ACEOF
6547 #define ENABLE_RTL_CHECKING 1
6548 _ACEOF
6549
6550 fi
6551 if test x$ac_rtlflag_checking != x ; then
6552
6553 cat >>confdefs.h <<\_ACEOF
6554 #define ENABLE_RTL_FLAG_CHECKING 1
6555 _ACEOF
6556
6557 fi
6558 if test x$ac_gc_checking != x ; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define ENABLE_GC_CHECKING 1
6562 _ACEOF
6563
6564 fi
6565 if test x$ac_gc_always_collect != x ; then
6566
6567 cat >>confdefs.h <<\_ACEOF
6568 #define ENABLE_GC_ALWAYS_COLLECT 1
6569 _ACEOF
6570
6571 fi
6572 if test x$ac_fold_checking != x ; then
6573
6574 cat >>confdefs.h <<\_ACEOF
6575 #define ENABLE_FOLD_CHECKING 1
6576 _ACEOF
6577
6578 fi
6579 valgrind_path_defines=
6580 valgrind_command=
6581
6582 if test "${ac_cv_header_valgrind_h+set}" = set; then
6583 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6584 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6585 if test "${ac_cv_header_valgrind_h+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 fi
6588 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6589 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6590 else
6591 # Is the header compilable?
6592 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6593 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 #include <valgrind.h>
6602 _ACEOF
6603 rm -f conftest.$ac_objext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605 (eval $ac_compile) 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -z "$ac_c_werror_flag"
6613 || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_header_compiler=yes
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 ac_header_compiler=no
6631 fi
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6634 echo "${ECHO_T}$ac_header_compiler" >&6
6635
6636 # Is the header present?
6637 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6638 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <valgrind.h>
6646 _ACEOF
6647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } >/dev/null; then
6655 if test -s conftest.err; then
6656 ac_cpp_err=$ac_c_preproc_warn_flag
6657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6658 else
6659 ac_cpp_err=
6660 fi
6661 else
6662 ac_cpp_err=yes
6663 fi
6664 if test -z "$ac_cpp_err"; then
6665 ac_header_preproc=yes
6666 else
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_header_preproc=no
6671 fi
6672 rm -f conftest.err conftest.$ac_ext
6673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6674 echo "${ECHO_T}$ac_header_preproc" >&6
6675
6676 # So? What about this header?
6677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6678 yes:no: )
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6680 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6682 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6683 ac_header_preproc=yes
6684 ;;
6685 no:yes:* )
6686 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6687 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6689 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6691 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6693 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6695 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6697 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6698 (
6699 cat <<\_ASBOX
6700 ## ------------------------------------------ ##
6701 ## Report this to the AC_PACKAGE_NAME lists. ##
6702 ## ------------------------------------------ ##
6703 _ASBOX
6704 ) |
6705 sed "s/^/$as_me: WARNING: /" >&2
6706 ;;
6707 esac
6708 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6709 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6710 if test "${ac_cv_header_valgrind_h+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713 ac_cv_header_valgrind_h=$ac_header_preproc
6714 fi
6715 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6716 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6717
6718 fi
6719 if test $ac_cv_header_valgrind_h = yes; then
6720 have_valgrind_h=yes
6721 else
6722 have_valgrind_h=no
6723 fi
6724
6725
6726
6727 if test x$ac_valgrind_checking != x ; then
6728 # It is certainly possible that there's valgrind but no valgrind.h.
6729 # GCC relies on making annotations so we must have both.
6730 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6731 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <valgrind/memcheck.h>
6739 #ifndef VALGRIND_DISCARD
6740 #error VALGRIND_DISCARD not defined
6741 #endif
6742 _ACEOF
6743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6745 ac_status=$?
6746 grep -v '^ *+' conftest.er1 >conftest.err
6747 rm -f conftest.er1
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev/null; then
6751 if test -s conftest.err; then
6752 ac_cpp_err=$ac_c_preproc_warn_flag
6753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6754 else
6755 ac_cpp_err=
6756 fi
6757 else
6758 ac_cpp_err=yes
6759 fi
6760 if test -z "$ac_cpp_err"; then
6761 gcc_cv_header_valgrind_memcheck_h=yes
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 gcc_cv_header_valgrind_memcheck_h=no
6767 fi
6768 rm -f conftest.err conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6770 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6771 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6772 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 #include <memcheck.h>
6780 #ifndef VALGRIND_DISCARD
6781 #error VALGRIND_DISCARD not defined
6782 #endif
6783 _ACEOF
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } >/dev/null; then
6792 if test -s conftest.err; then
6793 ac_cpp_err=$ac_c_preproc_warn_flag
6794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6795 else
6796 ac_cpp_err=
6797 fi
6798 else
6799 ac_cpp_err=yes
6800 fi
6801 if test -z "$ac_cpp_err"; then
6802 gcc_cv_header_memcheck_h=yes
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6806
6807 gcc_cv_header_memcheck_h=no
6808 fi
6809 rm -f conftest.err conftest.$ac_ext
6810 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6811 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6812
6813 # Prepare PATH_SEPARATOR.
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6818 chmod +x conf$$.sh
6819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6820 PATH_SEPARATOR=';'
6821 else
6822 PATH_SEPARATOR=:
6823 fi
6824 rm -f conf$$.sh
6825 fi
6826
6827 # Find out how to test for executable files. Don't use a zero-byte file,
6828 # as systems may use methods other than mode bits to determine executability.
6829 cat >conf$$.file <<_ASEOF
6830 #! /bin/sh
6831 exit 0
6832 _ASEOF
6833 chmod +x conf$$.file
6834 if test -x conf$$.file >/dev/null 2>&1; then
6835 ac_executable_p="test -x"
6836 else
6837 ac_executable_p="test -f"
6838 fi
6839 rm -f conf$$.file
6840
6841 # Extract the first word of "valgrind", so it can be a program name with args.
6842 set dummy valgrind; ac_word=$2
6843 echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6845 if test "${ac_cv_path_valgrind_path+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 case "$valgrind_path" in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6854 for ac_dir in $PATH; do
6855 IFS="$ac_save_IFS"
6856 test -z "$ac_dir" && ac_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6859 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6860 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6861 break 2
6862 fi
6863 fi
6864 done
6865 done
6866 IFS="$ac_save_IFS"
6867 ;;
6868 esac
6869 fi
6870 valgrind_path="$ac_cv_path_valgrind_path"
6871 if test -n "$valgrind_path"; then
6872 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6873 echo "${ECHO_T}$valgrind_path" >&6
6874 else
6875 echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6
6877 fi
6878
6879 if test "x$valgrind_path" = "x" \
6880 || (test $have_valgrind_h = no \
6881 && test $gcc_cv_header_memcheck_h = no \
6882 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6883 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6884 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6885 { (exit 1); exit 1; }; }
6886 fi
6887 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6888 valgrind_command="$valgrind_path -q"
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define ENABLE_VALGRIND_CHECKING 1
6892 _ACEOF
6893
6894 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6895
6896 cat >>confdefs.h <<\_ACEOF
6897 #define HAVE_VALGRIND_MEMCHECK_H 1
6898 _ACEOF
6899
6900 fi
6901 if test $gcc_cv_header_memcheck_h = yes; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_MEMCHECK_H 1
6905 _ACEOF
6906
6907 fi
6908 fi
6909
6910
6911
6912 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6913 if test "${enable_mapped_location+set}" = set; then
6914 enableval="$enable_mapped_location"
6915
6916 else
6917 enable_mapped_location=no
6918 fi;
6919
6920 if test "$enable_mapped_location" = yes ; then
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define USE_MAPPED_LOCATION 1
6924 _ACEOF
6925
6926 fi
6927
6928 # Enable code coverage collection
6929 # Check whether --enable-coverage or --disable-coverage was given.
6930 if test "${enable_coverage+set}" = set; then
6931 enableval="$enable_coverage"
6932 case "${enableval}" in
6933 yes|noopt)
6934 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6935 ;;
6936 opt)
6937 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6938 ;;
6939 no)
6940 # a.k.a. --disable-coverage
6941 coverage_flags=""
6942 ;;
6943 *)
6944 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6945 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6946 { (exit 1); exit 1; }; }
6947 ;;
6948 esac
6949 else
6950 coverage_flags=""
6951 fi;
6952
6953
6954 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6955 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6956 enableval="$enable_gather_detailed_mem_stats"
6957
6958 else
6959 enable_gather_detailed_mem_stats=no
6960 fi;
6961 if test x$enable_gather_detailed_mem_stats = xyes ; then
6962
6963 cat >>confdefs.h <<\_ACEOF
6964 #define GATHER_STATISTICS 1
6965 _ACEOF
6966
6967 fi
6968
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6972
6973 # With stabs
6974
6975 # Check whether --with-stabs or --without-stabs was given.
6976 if test "${with_stabs+set}" = set; then
6977 withval="$with_stabs"
6978 stabs="$with_stabs"
6979 else
6980 stabs=no
6981 fi;
6982
6983 # Determine whether or not multilibs are enabled.
6984 # Check whether --enable-multilib or --disable-multilib was given.
6985 if test "${enable_multilib+set}" = set; then
6986 enableval="$enable_multilib"
6987
6988 else
6989 enable_multilib=yes
6990 fi;
6991
6992
6993 # Enable __cxa_atexit for C++.
6994 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6995 if test "${enable___cxa_atexit+set}" = set; then
6996 enableval="$enable___cxa_atexit"
6997
6998 fi;
6999
7000 # Enable C extension for decimal float if target supports it.
7001 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7002 if test "${enable_decimal_float+set}" = set; then
7003 enableval="$enable_decimal_float"
7004
7005 if test x$enablevar = xyes ; then
7006 case $target in
7007 powerpc*-*-linux* | i?86*-*-linux*)
7008 enable_decimal_float=yes
7009 ;;
7010 *)
7011 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7012 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7013 enable_decimal_float=no
7014 ;;
7015 esac
7016 fi
7017
7018 else
7019 enable_decimal_float=no
7020 fi;
7021
7022
7023
7024 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7025
7026 cat >>confdefs.h <<_ACEOF
7027 #define ENABLE_DECIMAL_FLOAT $dfp
7028 _ACEOF
7029
7030
7031 # Enable threads
7032 # Pass with no value to take the default
7033 # Pass with a value to specify a thread package
7034 # Check whether --enable-threads or --disable-threads was given.
7035 if test "${enable_threads+set}" = set; then
7036 enableval="$enable_threads"
7037
7038 else
7039 enable_threads=''
7040 fi;
7041
7042 # Check whether --enable-tls or --disable-tls was given.
7043 if test "${enable_tls+set}" = set; then
7044 enableval="$enable_tls"
7045
7046 case $enable_tls in
7047 yes | no) ;;
7048 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7049 Valid choices are 'yes' and 'no'." >&5
7050 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7051 Valid choices are 'yes' and 'no'." >&2;}
7052 { (exit 1); exit 1; }; } ;;
7053 esac
7054
7055 else
7056 enable_tls=''
7057 fi;
7058
7059 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7060 if test "${enable_objc_gc+set}" = set; then
7061 enableval="$enable_objc_gc"
7062 if test x$enable_objc_gc = xno; then
7063 objc_boehm_gc=''
7064 else
7065 objc_boehm_gc=1
7066 fi
7067 else
7068 objc_boehm_gc=''
7069 fi;
7070
7071
7072 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7073 if test "${with_dwarf2+set}" = set; then
7074 withval="$with_dwarf2"
7075 dwarf2="$with_dwarf2"
7076 else
7077 dwarf2=no
7078 fi;
7079
7080 # Check whether --enable-shared or --disable-shared was given.
7081 if test "${enable_shared+set}" = set; then
7082 enableval="$enable_shared"
7083
7084 case $enable_shared in
7085 yes | no) ;;
7086 *)
7087 enable_shared=no
7088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7089 for pkg in $enableval; do
7090 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7091 enable_shared=yes
7092 fi
7093 done
7094 IFS="$ac_save_ifs"
7095 ;;
7096 esac
7097
7098 else
7099 enable_shared=yes
7100 fi;
7101
7102
7103
7104 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7105 if test "${with_build_sysroot+set}" = set; then
7106 withval="$with_build_sysroot"
7107
7108 fi;
7109
7110
7111 # Check whether --with-sysroot or --without-sysroot was given.
7112 if test "${with_sysroot+set}" = set; then
7113 withval="$with_sysroot"
7114
7115 case ${with_sysroot} in
7116 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7117 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7118 esac
7119
7120 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7121 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7122
7123 if test "x$exec_prefix" = xNONE; then
7124 if test "x$prefix" = xNONE; then
7125 test_prefix=/usr/local
7126 else
7127 test_prefix=$prefix
7128 fi
7129 else
7130 test_prefix=$exec_prefix
7131 fi
7132 case ${TARGET_SYSTEM_ROOT} in
7133 "${test_prefix}"|"${test_prefix}/"*|\
7134 '${exec_prefix}'|'${exec_prefix}/'*)
7135 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7136 TARGET_SYSTEM_ROOT_DEFINE="$t"
7137 ;;
7138 esac
7139
7140 else
7141
7142 TARGET_SYSTEM_ROOT=
7143 TARGET_SYSTEM_ROOT_DEFINE=
7144 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7145
7146 fi;
7147
7148
7149
7150
7151 # Build with intermodule optimisations
7152 # Check whether --enable-intermodule or --disable-intermodule was given.
7153 if test "${enable_intermodule+set}" = set; then
7154 enableval="$enable_intermodule"
7155 case ${enable_intermodule} in
7156 yes) onestep="-onestep";;
7157 *) onestep="";;
7158 esac
7159 else
7160 onestep=""
7161 fi;
7162
7163
7164 # Sanity check enable_languages in case someone does not run the toplevel
7165 # configure # script.
7166 # Check whether --enable-languages or --disable-languages was given.
7167 if test "${enable_languages+set}" = set; then
7168 enableval="$enable_languages"
7169 case ,${enable_languages}, in
7170 ,,|,yes,)
7171 # go safe -- we cannot be much sure without the toplevel
7172 # configure's
7173 # analysis of which target libs are present and usable
7174 enable_languages=c
7175 ;;
7176 *,all,*)
7177 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7178 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7179 { (exit 1); exit 1; }; }
7180 ;;
7181 *,c,*)
7182 ;;
7183 *)
7184 enable_languages=c,${enable_languages}
7185 ;;
7186 esac
7187 else
7188 enable_languages=c
7189 fi;
7190
7191
7192 # -------------------------
7193 # Checks for other programs
7194 # -------------------------
7195
7196 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7197 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7198 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7199 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 cat >conftest.make <<\_ACEOF
7203 all:
7204 @echo 'ac_maketemp="$(MAKE)"'
7205 _ACEOF
7206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7207 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7208 if test -n "$ac_maketemp"; then
7209 eval ac_cv_prog_make_${ac_make}_set=yes
7210 else
7211 eval ac_cv_prog_make_${ac_make}_set=no
7212 fi
7213 rm -f conftest.make
7214 fi
7215 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217 echo "${ECHO_T}yes" >&6
7218 SET_MAKE=
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222 SET_MAKE="MAKE=${MAKE-make}"
7223 fi
7224
7225
7226 # Find some useful tools
7227 for ac_prog in gawk mawk nawk awk
7228 do
7229 # Extract the first word of "$ac_prog", so it can be a program name with args.
7230 set dummy $ac_prog; ac_word=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_AWK+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236 if test -n "$AWK"; then
7237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_AWK="$ac_prog"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252
7253 fi
7254 fi
7255 AWK=$ac_cv_prog_AWK
7256 if test -n "$AWK"; then
7257 echo "$as_me:$LINENO: result: $AWK" >&5
7258 echo "${ECHO_T}$AWK" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7262 fi
7263
7264 test -n "$AWK" && break
7265 done
7266
7267 # We need awk to create options.c and options.h.
7268 # Bail out if it's missing.
7269 case ${AWK} in
7270 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7271 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7272 { (exit 1); exit 1; }; } ;;
7273 esac
7274
7275 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7276 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7277 if test "${gcc_cv_prog_LN_S+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280 rm -f conftestdata_t
7281 echo >conftestdata_f
7282 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7283 then
7284 gcc_cv_prog_LN_S="ln -s"
7285 else
7286 if ln conftestdata_f conftestdata_t 2>/dev/null
7287 then
7288 gcc_cv_prog_LN_S=ln
7289 else
7290 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7291 then
7292 gcc_cv_prog_LN_S="cp -p"
7293 else
7294 gcc_cv_prog_LN_S=cp
7295 fi
7296 fi
7297 fi
7298 rm -f conftestdata_f conftestdata_t
7299
7300 fi
7301 LN_S="$gcc_cv_prog_LN_S"
7302 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7303 echo "$as_me:$LINENO: result: yes" >&5
7304 echo "${ECHO_T}yes" >&6
7305 else
7306 if test "$gcc_cv_prog_LN_S" = "ln"; then
7307 echo "$as_me:$LINENO: result: no, using ln" >&5
7308 echo "${ECHO_T}no, using ln" >&6
7309 else
7310 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7311 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7312 fi
7313 fi
7314
7315 echo "$as_me:$LINENO: checking whether ln works" >&5
7316 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7317 if test "${acx_cv_prog_LN+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320 rm -f conftestdata_t
7321 echo >conftestdata_f
7322 if ln conftestdata_f conftestdata_t 2>/dev/null
7323 then
7324 acx_cv_prog_LN=ln
7325 else
7326 acx_cv_prog_LN=no
7327 fi
7328 rm -f conftestdata_f conftestdata_t
7329
7330 fi
7331 if test $acx_cv_prog_LN = no; then
7332 LN="$LN_S"
7333 echo "$as_me:$LINENO: result: no, using $LN" >&5
7334 echo "${ECHO_T}no, using $LN" >&6
7335 else
7336 LN="$acx_cv_prog_LN"
7337 echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7339 fi
7340
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_RANLIB+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 if test -n "$RANLIB"; then
7350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365
7366 fi
7367 fi
7368 RANLIB=$ac_cv_prog_RANLIB
7369 if test -n "$RANLIB"; then
7370 echo "$as_me:$LINENO: result: $RANLIB" >&5
7371 echo "${ECHO_T}$RANLIB" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377 fi
7378 if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381 set dummy ranlib; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403
7404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7405 fi
7406 fi
7407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408 if test -n "$ac_ct_RANLIB"; then
7409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7411 else
7412 echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7414 fi
7415
7416 RANLIB=$ac_ct_RANLIB
7417 else
7418 RANLIB="$ac_cv_prog_RANLIB"
7419 fi
7420
7421 case "${host}" in
7422 *-*-darwin*)
7423 # By default, the Darwin ranlib will not treat common symbols as
7424 # definitions when building the archive table of contents. Other
7425 # ranlibs do that; pass an option to the Darwin ranlib that makes
7426 # it behave similarly.
7427 ranlib_flags="-c"
7428 ;;
7429 *)
7430 ranlib_flags=""
7431 esac
7432
7433
7434 # Find a good install program. We prefer a C program (faster),
7435 # so one script is as good as another. But avoid the broken or
7436 # incompatible versions:
7437 # SysV /etc/install, /usr/sbin/install
7438 # SunOS /usr/etc/install
7439 # IRIX /sbin/install
7440 # AIX /bin/install
7441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7443 # ./install, which can be erroneously created by make from ./install.sh.
7444 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7445 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7446 if test -z "$INSTALL"; then
7447 if test "${ac_cv_path_install+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7451 for ac_dir in $PATH; do
7452 # Account for people who put trailing slashes in PATH elements.
7453 case "$ac_dir/" in
7454 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7455 *)
7456 # OSF1 and SCO ODT 3.0 have their own names for install.
7457 for ac_prog in ginstall scoinst install; do
7458 if test -f $ac_dir/$ac_prog; then
7459 if test $ac_prog = install &&
7460 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7461 # AIX install. It has an incompatible calling convention.
7462 # OSF/1 installbsd also uses dspmsg, but is usable.
7463 :
7464 else
7465 ac_cv_path_install="$ac_dir/$ac_prog -c"
7466 break 2
7467 fi
7468 fi
7469 done
7470 ;;
7471 esac
7472 done
7473 IFS="$ac_save_IFS"
7474
7475 fi
7476 if test "${ac_cv_path_install+set}" = set; then
7477 INSTALL="$ac_cv_path_install"
7478 else
7479 # As a last resort, use the slow shell script. We don't cache a
7480 # path for INSTALL within a source directory, because that will
7481 # break other packages using the cache if that directory is
7482 # removed, or if the path is relative.
7483 INSTALL="$ac_install_sh"
7484 fi
7485 fi
7486 echo "$as_me:$LINENO: result: $INSTALL" >&5
7487 echo "${ECHO_T}$INSTALL" >&6
7488
7489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7490 # It thinks the first close brace ends the variable substitution.
7491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7492
7493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7494
7495
7496 # See if cmp has --ignore-initial.
7497 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7498 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7499 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 echo abfoo >t1
7503 echo cdfoo >t2
7504 gcc_cv_prog_cmp_skip=slowcompare
7505 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7506 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7507 :
7508 else
7509 gcc_cv_prog_cmp_skip=gnucompare
7510 fi
7511 fi
7512 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7513 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7514 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7515 :
7516 else
7517 gcc_cv_prog_cmp_skip=fastcompare
7518 fi
7519 fi
7520 fi
7521 rm t1 t2
7522
7523 fi
7524 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7525 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7526 make_compare_target=$gcc_cv_prog_cmp_skip
7527
7528
7529
7530 # See if we have the mktemp command.
7531 # Extract the first word of "mktemp", so it can be a program name with args.
7532 set dummy mktemp; ac_word=$2
7533 echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 else
7538 if test -n "$have_mktemp_command"; then
7539 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_have_mktemp_command="yes"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
7552 done
7553 done
7554
7555 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7556 fi
7557 fi
7558 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7559 if test -n "$have_mktemp_command"; then
7560 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7561 echo "${ECHO_T}$have_mktemp_command" >&6
7562 else
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7565 fi
7566
7567
7568 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7569
7570 # See if makeinfo has been installed and is modern enough
7571 # that we can use it.
7572
7573 ac_executable_extensions="$build_exeext"
7574
7575 # Extract the first word of "makeinfo", so it can be a program name with args.
7576 set dummy makeinfo; ac_word=$2
7577 echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 if test -n "$MAKEINFO"; then
7583 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_MAKEINFO="makeinfo"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598
7599 fi
7600 fi
7601 MAKEINFO=$ac_cv_prog_MAKEINFO
7602 if test -n "$MAKEINFO"; then
7603 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7604 echo "${ECHO_T}$MAKEINFO" >&6
7605 else
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7608 fi
7609
7610 if test -n "$MAKEINFO"; then
7611 # Found it, now check the version.
7612 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7613 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7614 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 ac_prog_version=`$MAKEINFO --version 2>&1 |
7618 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7619 echo "configure:7619: version of makeinfo is $ac_prog_version" >&5
7620 case $ac_prog_version in
7621 '') gcc_cv_prog_makeinfo_modern=no;;
7622 4.[4-9]*)
7623 gcc_cv_prog_makeinfo_modern=yes;;
7624 *) gcc_cv_prog_makeinfo_modern=no;;
7625 esac
7626
7627 fi
7628 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7629 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7630 else
7631 gcc_cv_prog_makeinfo_modern=no
7632 fi
7633
7634 if test $gcc_cv_prog_makeinfo_modern = no; then
7635 MAKEINFO="$MISSING makeinfo"
7636 { echo "$as_me:$LINENO: WARNING:
7637 *** Makeinfo is missing or too old.
7638 *** Info documentation will not be built." >&5
7639 echo "$as_me: WARNING:
7640 *** Makeinfo is missing or too old.
7641 *** Info documentation will not be built." >&2;}
7642 BUILD_INFO=
7643 else
7644 BUILD_INFO=info
7645 fi
7646
7647
7648 # Is pod2man recent enough to regenerate manpages?
7649 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7650 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7651 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7652 echo "$as_me:$LINENO: result: yes" >&5
7653 echo "${ECHO_T}yes" >&6
7654 GENERATED_MANPAGES=generated-manpages
7655 else
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658 GENERATED_MANPAGES=
7659 fi
7660
7661
7662 # How about lex?
7663 for ac_prog in flex
7664 do
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7669 if test "${ac_cv_prog_FLEX+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 if test -n "$FLEX"; then
7673 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_FLEX="$ac_prog"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688
7689 fi
7690 fi
7691 FLEX=$ac_cv_prog_FLEX
7692 if test -n "$FLEX"; then
7693 echo "$as_me:$LINENO: result: $FLEX" >&5
7694 echo "${ECHO_T}$FLEX" >&6
7695 else
7696 echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6
7698 fi
7699
7700 test -n "$FLEX" && break
7701 done
7702 test -n "$FLEX" || FLEX="$MISSING flex"
7703
7704
7705 # Bison?
7706 for ac_prog in bison
7707 do
7708 # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy $ac_prog; ac_word=$2
7710 echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712 if test "${ac_cv_prog_BISON+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715 if test -n "$BISON"; then
7716 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7720 do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_BISON="$ac_prog"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729 done
7730 done
7731
7732 fi
7733 fi
7734 BISON=$ac_cv_prog_BISON
7735 if test -n "$BISON"; then
7736 echo "$as_me:$LINENO: result: $BISON" >&5
7737 echo "${ECHO_T}$BISON" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7741 fi
7742
7743 test -n "$BISON" && break
7744 done
7745 test -n "$BISON" || BISON="$MISSING bison"
7746
7747
7748 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7749 # check for build == host before using them.
7750
7751 # NM
7752 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7753 && test -d ../binutils ; then
7754 NM='$(objdir)/../binutils/nm-new'
7755 else
7756 # Extract the first word of "nm", so it can be a program name with args.
7757 set dummy nm; ac_word=$2
7758 echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760 if test "${ac_cv_prog_NM+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763 if test -n "$NM"; then
7764 ac_cv_prog_NM="$NM" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_NM="nm"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779
7780 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7781 fi
7782 fi
7783 NM=$ac_cv_prog_NM
7784 if test -n "$NM"; then
7785 echo "$as_me:$LINENO: result: $NM" >&5
7786 echo "${ECHO_T}$NM" >&6
7787 else
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7790 fi
7791
7792 fi
7793
7794 # AR
7795 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7796 && test -d ../binutils ; then
7797 AR='$(objdir)/../binutils/ar'
7798 else
7799 # Extract the first word of "ar", so it can be a program name with args.
7800 set dummy ar; ac_word=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_prog_AR+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 if test -n "$AR"; then
7807 ac_cv_prog_AR="$AR" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_AR="ar"
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822
7823 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7824 fi
7825 fi
7826 AR=$ac_cv_prog_AR
7827 if test -n "$AR"; then
7828 echo "$as_me:$LINENO: result: $AR" >&5
7829 echo "${ECHO_T}$AR" >&6
7830 else
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7833 fi
7834
7835 fi
7836
7837
7838 # --------------------
7839 # Checks for C headers
7840 # --------------------
7841
7842 echo "$as_me:$LINENO: checking for GNU C library" >&5
7843 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7844 if test "${gcc_cv_glibc+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h. */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <features.h>
7854 int
7855 main ()
7856 {
7857
7858 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7859 #error Not a GNU C library system
7860 #endif
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7867 (eval $ac_compile) 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_objext'
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 gcc_cv_glibc=yes
7888 else
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892 gcc_cv_glibc=no
7893 fi
7894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895 fi
7896
7897 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7898 echo "${ECHO_T}$gcc_cv_glibc" >&6
7899 if test $gcc_cv_glibc = yes; then
7900
7901 cat >>confdefs.h <<\_ACEOF
7902 #define _GNU_SOURCE 1
7903 _ACEOF
7904
7905 fi
7906
7907 # Need to reject headers which give warnings, so that the -Werror bootstrap
7908 # works later. *sigh* This needs to come before all header checks.
7909
7910 ac_c_preproc_warn_flag=yes
7911
7912 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7914 if test "${ac_cv_header_stdc+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <stdlib.h>
7924 #include <stdarg.h>
7925 #include <string.h>
7926 #include <float.h>
7927
7928 int
7929 main ()
7930 {
7931
7932 ;
7933 return 0;
7934 }
7935 _ACEOF
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_cv_header_stdc=yes
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963 ac_cv_header_stdc=no
7964 fi
7965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 #include <string.h>
7976
7977 _ACEOF
7978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7979 $EGREP "memchr" >/dev/null 2>&1; then
7980 :
7981 else
7982 ac_cv_header_stdc=no
7983 fi
7984 rm -f conftest*
7985
7986 fi
7987
7988 if test $ac_cv_header_stdc = yes; then
7989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 #include <stdlib.h>
7997
7998 _ACEOF
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000 $EGREP "free" >/dev/null 2>&1; then
8001 :
8002 else
8003 ac_cv_header_stdc=no
8004 fi
8005 rm -f conftest*
8006
8007 fi
8008
8009 if test $ac_cv_header_stdc = yes; then
8010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8011 if test "$cross_compiling" = yes; then
8012 :
8013 else
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <ctype.h>
8021 #if ((' ' & 0x0FF) == 0x020)
8022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8024 #else
8025 # define ISLOWER(c) \
8026 (('a' <= (c) && (c) <= 'i') \
8027 || ('j' <= (c) && (c) <= 'r') \
8028 || ('s' <= (c) && (c) <= 'z'))
8029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8030 #endif
8031
8032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8033 int
8034 main ()
8035 {
8036 int i;
8037 for (i = 0; i < 256; i++)
8038 if (XOR (islower (i), ISLOWER (i))
8039 || toupper (i) != TOUPPER (i))
8040 exit(2);
8041 exit (0);
8042 }
8043 _ACEOF
8044 rm -f conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 :
8056 else
8057 echo "$as_me: program exited with status $ac_status" >&5
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ( exit $ac_status )
8062 ac_cv_header_stdc=no
8063 fi
8064 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 fi
8067 fi
8068 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8069 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8070 if test $ac_cv_header_stdc = yes; then
8071
8072 cat >>confdefs.h <<\_ACEOF
8073 #define STDC_HEADERS 1
8074 _ACEOF
8075
8076 fi
8077
8078 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8079 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8080 if test "${ac_cv_header_time+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 #include <sys/types.h>
8090 #include <sys/time.h>
8091 #include <time.h>
8092
8093 int
8094 main ()
8095 {
8096 if ((struct tm *) 0)
8097 return 0;
8098 ;
8099 return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104 (eval $ac_compile) 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_header_time=yes
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_cv_header_time=no
8130 fi
8131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8134 echo "${ECHO_T}$ac_cv_header_time" >&6
8135 if test $ac_cv_header_time = yes; then
8136
8137 cat >>confdefs.h <<\_ACEOF
8138 #define TIME_WITH_SYS_TIME 1
8139 _ACEOF
8140
8141 fi
8142
8143 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8144 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8145 if test "${gcc_cv_header_string+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h. */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 #include <string.h>
8155 #include <strings.h>
8156 int
8157 main ()
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8166 (eval $ac_compile) 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 gcc_cv_header_string=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191 gcc_cv_header_string=no
8192 fi
8193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8196 echo "${ECHO_T}$gcc_cv_header_string" >&6
8197 if test $gcc_cv_header_string = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define STRING_WITH_STRINGS 1
8201 _ACEOF
8202
8203 fi
8204
8205 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8206 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8207 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/wait.h>
8218 #ifndef WEXITSTATUS
8219 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8220 #endif
8221 #ifndef WIFEXITED
8222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8223 #endif
8224
8225 int
8226 main ()
8227 {
8228 int s;
8229 wait (&s);
8230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8231 ;
8232 return 0;
8233 }
8234 _ACEOF
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -z "$ac_c_werror_flag"
8245 || test ! -s conftest.err'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; } &&
8251 { ac_try='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_header_sys_wait_h=yes
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 ac_cv_header_sys_wait_h=no
8263 fi
8264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8268 if test $ac_cv_header_sys_wait_h = yes; then
8269
8270 cat >>confdefs.h <<\_ACEOF
8271 #define HAVE_SYS_WAIT_H 1
8272 _ACEOF
8273
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8299 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8300 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8301 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8302 do
8303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8304 echo "$as_me:$LINENO: checking for $ac_header" >&5
8305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <$ac_header>
8316 _ACEOF
8317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev/null; then
8325 if test -s conftest.err; then
8326 ac_cpp_err=$ac_c_preproc_warn_flag
8327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8328 else
8329 ac_cpp_err=
8330 fi
8331 else
8332 ac_cpp_err=yes
8333 fi
8334 if test -z "$ac_cpp_err"; then
8335 eval "$as_ac_Header=yes"
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 eval "$as_ac_Header=no"
8341 fi
8342 rm -f conftest.err conftest.$ac_ext
8343 fi
8344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8347 cat >>confdefs.h <<_ACEOF
8348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8349 _ACEOF
8350
8351 fi
8352 done
8353
8354
8355 # Check for thread headers.
8356 echo "$as_me:$LINENO: checking for thread.h" >&5
8357 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_thread_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367 #include <thread.h>
8368 _ACEOF
8369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } >/dev/null; then
8377 if test -s conftest.err; then
8378 ac_cpp_err=$ac_c_preproc_warn_flag
8379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8380 else
8381 ac_cpp_err=
8382 fi
8383 else
8384 ac_cpp_err=yes
8385 fi
8386 if test -z "$ac_cpp_err"; then
8387 ac_cv_header_thread_h=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 ac_cv_header_thread_h=no
8393 fi
8394 rm -f conftest.err conftest.$ac_ext
8395 fi
8396 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8397 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8398 if test $ac_cv_header_thread_h = yes; then
8399 have_thread_h=yes
8400 else
8401 have_thread_h=
8402 fi
8403
8404 echo "$as_me:$LINENO: checking for pthread.h" >&5
8405 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8406 if test "${ac_cv_header_pthread_h+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 #include <pthread.h>
8416 _ACEOF
8417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } >/dev/null; then
8425 if test -s conftest.err; then
8426 ac_cpp_err=$ac_c_preproc_warn_flag
8427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8428 else
8429 ac_cpp_err=
8430 fi
8431 else
8432 ac_cpp_err=yes
8433 fi
8434 if test -z "$ac_cpp_err"; then
8435 ac_cv_header_pthread_h=yes
8436 else
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ac_cv_header_pthread_h=no
8441 fi
8442 rm -f conftest.err conftest.$ac_ext
8443 fi
8444 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8445 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8446 if test $ac_cv_header_pthread_h = yes; then
8447 have_pthread_h=yes
8448 else
8449 have_pthread_h=
8450 fi
8451
8452
8453 # These tests can't be done till we know if we have limits.h.
8454 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8455 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8456 if test "${gcc_cv_decl_char_bit+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 #ifdef HAVE_LIMITS_H
8466 #include <limits.h>
8467 #endif
8468 #ifdef CHAR_BIT
8469 found
8470 #endif
8471 _ACEOF
8472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8473 $EGREP "found" >/dev/null 2>&1; then
8474 gcc_cv_decl_char_bit=yes
8475 else
8476 gcc_cv_decl_char_bit=no
8477 fi
8478 rm -f conftest*
8479
8480
8481 fi
8482 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8483 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8484 if test $gcc_cv_decl_char_bit = no; then
8485 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8486 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8487 if test "${gcc_cv_c_nbby+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490 i=8
8491 gcc_cv_c_nbby=
8492 while test $i -lt 65; do
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499
8500 int
8501 main ()
8502 {
8503 switch(0) {
8504 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8505 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8506 ; }
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -z "$ac_c_werror_flag"
8521 || test ! -s conftest.err'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 (eval $ac_try) 2>&5
8524 ac_status=$?
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; } &&
8527 { ac_try='test -s conftest.$ac_objext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 gcc_cv_c_nbby=$i; break
8534 else
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538 fi
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 i=`expr $i + 1`
8541 done
8542 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8543
8544 fi
8545 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8546 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8547 if test $gcc_cv_c_nbby = failed; then
8548 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8549 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8550 { (exit 1); exit 1; }; }
8551 else
8552
8553 cat >>confdefs.h <<_ACEOF
8554 #define CHAR_BIT $gcc_cv_c_nbby
8555 _ACEOF
8556
8557 fi
8558 fi
8559 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8560 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8561 if test "${ac_cv_c_bigendian+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564 # See if sys/param.h defines the BYTE_ORDER macro.
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 #include <sys/types.h>
8572 #include <sys/param.h>
8573
8574 int
8575 main ()
8576 {
8577 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8578 bogus endian macros
8579 #endif
8580
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 # It does; now see whether it defined to BIG_ENDIAN or not.
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <sys/types.h>
8615 #include <sys/param.h>
8616
8617 int
8618 main ()
8619 {
8620 #if BYTE_ORDER != BIG_ENDIAN
8621 not big endian
8622 #endif
8623
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_c_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_c_bigendian=yes
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8654
8655 ac_cv_c_bigendian=no
8656 fi
8657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8658 else
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8661
8662 # It does not; compile a test program.
8663 if test "$cross_compiling" = yes; then
8664 # try to guess the endianness by grepping values into an object file
8665 ac_cv_c_bigendian=unknown
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h. */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8673 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8674 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8675 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8676 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8677 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8678 int
8679 main ()
8680 {
8681 _ascii (); _ebcdic ();
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8688 (eval $ac_compile) 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try='test -z "$ac_c_werror_flag"
8696 || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8709 ac_cv_c_bigendian=yes
8710 fi
8711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8712 if test "$ac_cv_c_bigendian" = unknown; then
8713 ac_cv_c_bigendian=no
8714 else
8715 # finding both strings is unlikely to happen, but who knows?
8716 ac_cv_c_bigendian=unknown
8717 fi
8718 fi
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 fi
8724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8725 else
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 int
8733 main ()
8734 {
8735 /* Are we little or big endian? From Harbison&Steele. */
8736 union
8737 {
8738 long l;
8739 char c[sizeof (long)];
8740 } u;
8741 u.l = 1;
8742 exit (u.c[sizeof (long) - 1] == 1);
8743 }
8744 _ACEOF
8745 rm -f conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_cv_c_bigendian=no
8757 else
8758 echo "$as_me: program exited with status $ac_status" >&5
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ( exit $ac_status )
8763 ac_cv_c_bigendian=yes
8764 fi
8765 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 fi
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8771 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8772 case $ac_cv_c_bigendian in
8773 yes)
8774
8775 cat >>confdefs.h <<\_ACEOF
8776 #define WORDS_BIGENDIAN 1
8777 _ACEOF
8778 ;;
8779 no)
8780 ;;
8781 *)
8782 { { echo "$as_me:$LINENO: error: unknown endianness
8783 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8784 echo "$as_me: error: unknown endianness
8785 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8786 { (exit 1); exit 1; }; } ;;
8787 esac
8788
8789
8790 # --------
8791 # UNSORTED
8792 # --------
8793
8794 # Stage specific cflags for build.
8795 stage1_cflags=
8796 case $build in
8797 vax-*-*)
8798 if test x$GCC = xyes
8799 then
8800 stage1_cflags="-Wa,-J"
8801 else
8802 stage1_cflags="-J"
8803 fi
8804 ;;
8805 powerpc-*-darwin*)
8806 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8807 # sources; use -no-cpp-precomp to get to GNU cpp.
8808 # Apple's GCC has bugs in designated initializer handling, so disable
8809 # that too.
8810 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8811 ;;
8812 esac
8813
8814
8815 # These libraries may be used by collect2.
8816 # We may need a special search path to get them linked.
8817 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8818 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8819 if test "${gcc_cv_collect2_libs+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822 save_LIBS="$LIBS"
8823 for libs in '' -lld -lmld \
8824 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8825 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8826 do
8827 LIBS="$libs"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834
8835 /* Override any gcc2 internal prototype to avoid an error. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8841 char ldopen ();
8842 int
8843 main ()
8844 {
8845 ldopen ();
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 gcc_cv_collect2_libs="$libs"; break
8873 else
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 fi
8878 rm -f conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
8880 done
8881 LIBS="$save_LIBS"
8882 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8883 fi
8884 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8885 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8886 case $gcc_cv_collect2_libs in
8887 "none required") ;;
8888 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8889 esac
8890
8891
8892 # When building Ada code on Alpha, we need exc_resume which is usually in
8893 # -lexc. So test for it.
8894 save_LIBS="$LIBS"
8895 LIBS=
8896 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8897 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8898 if test "${ac_cv_search_exc_resume+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 ac_func_search_save_LIBS=$LIBS
8902 ac_cv_search_exc_resume=no
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char exc_resume ();
8917 int
8918 main ()
8919 {
8920 exc_resume ();
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_search_exc_resume="none required"
8948 else
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 fi
8953 rm -f conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 if test "$ac_cv_search_exc_resume" = no; then
8956 for ac_lib in exc; do
8957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964
8965 /* Override any gcc2 internal prototype to avoid an error. */
8966 #ifdef __cplusplus
8967 extern "C"
8968 #endif
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8971 char exc_resume ();
8972 int
8973 main ()
8974 {
8975 exc_resume ();
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 rm -f conftest.$ac_objext conftest$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_search_exc_resume="-l$ac_lib"
9003 break
9004 else
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 fi
9009 rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 done
9012 fi
9013 LIBS=$ac_func_search_save_LIBS
9014 fi
9015 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9016 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9017 if test "$ac_cv_search_exc_resume" != no; then
9018 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9019
9020 fi
9021
9022 GNAT_LIBEXC="$LIBS"
9023 LIBS="$save_LIBS"
9024
9025
9026 # Some systems put ldexp and frexp in libm instead of libc; assume
9027 # they're both in the same place. jcf-dump needs them.
9028 save_LIBS="$LIBS"
9029 LIBS=
9030 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9031 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9032 if test "${ac_cv_search_ldexp+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035 ac_func_search_save_LIBS=$LIBS
9036 ac_cv_search_ldexp=no
9037 cat >conftest.$ac_ext <<_ACEOF
9038 /* confdefs.h. */
9039 _ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9050 char ldexp ();
9051 int
9052 main ()
9053 {
9054 ldexp ();
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 (eval $ac_try) 2>&5
9078 ac_status=$?
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_search_ldexp="none required"
9082 else
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9085
9086 fi
9087 rm -f conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 if test "$ac_cv_search_ldexp" = no; then
9090 for ac_lib in m; do
9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105 char ldexp ();
9106 int
9107 main ()
9108 {
9109 ldexp ();
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_search_ldexp="-l$ac_lib"
9137 break
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 done
9146 fi
9147 LIBS=$ac_func_search_save_LIBS
9148 fi
9149 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9150 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9151 if test "$ac_cv_search_ldexp" != no; then
9152 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9153
9154 fi
9155
9156 LDEXP_LIB="$LIBS"
9157 LIBS="$save_LIBS"
9158
9159
9160 # Use <inttypes.h> only if it exists,
9161 # doesn't clash with <sys/types.h>, and declares intmax_t.
9162 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9163 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9164 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 #include <sys/types.h>
9174 #include <inttypes.h>
9175 int
9176 main ()
9177 {
9178 intmax_t i = -1;
9179 ;
9180 return 0;
9181 }
9182 _ACEOF
9183 rm -f conftest.$ac_objext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185 (eval $ac_compile) 2>conftest.er1
9186 ac_status=$?
9187 grep -v '^ *+' conftest.er1 >conftest.err
9188 rm -f conftest.er1
9189 cat conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } &&
9192 { ac_try='test -z "$ac_c_werror_flag"
9193 || test ! -s conftest.err'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 (eval $ac_try) 2>&5
9196 ac_status=$?
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; } &&
9199 { ac_try='test -s conftest.$ac_objext'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 (eval $ac_try) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 gcc_cv_header_inttypes_h=yes
9206 else
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9209
9210 gcc_cv_header_inttypes_h=no
9211 fi
9212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9213 fi
9214
9215 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9216 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9217 if test $gcc_cv_header_inttypes_h = yes; then
9218
9219 cat >>confdefs.h <<\_ACEOF
9220 #define HAVE_INTTYPES_H 1
9221 _ACEOF
9222
9223 fi
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9263 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9264 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9265 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9266 do
9267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_var+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define $ac_func innocuous_$ac_func
9282
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9287
9288 #ifdef __STDC__
9289 # include <limits.h>
9290 #else
9291 # include <assert.h>
9292 #endif
9293
9294 #undef $ac_func
9295
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 {
9300 #endif
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char $ac_func ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9308 choke me
9309 #else
9310 char (*f) () = $ac_func;
9311 #endif
9312 #ifdef __cplusplus
9313 }
9314 #endif
9315
9316 int
9317 main ()
9318 {
9319 return f != $ac_func;
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag"
9334 || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 eval "$as_ac_var=yes"
9347 else
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 eval "$as_ac_var=no"
9352 fi
9353 rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 fi
9356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9358 if test `eval echo '${'$as_ac_var'}'` = yes; then
9359 cat >>confdefs.h <<_ACEOF
9360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9361 _ACEOF
9362
9363 fi
9364 done
9365
9366
9367 if test x$ac_cv_func_mbstowcs = xyes; then
9368 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9369 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9370 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373 if test "$cross_compiling" = yes; then
9374 gcc_cv_func_mbstowcs_works=yes
9375 else
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <stdlib.h>
9383 int main()
9384 {
9385 mbstowcs(0, "", 0);
9386 return 0;
9387 }
9388 _ACEOF
9389 rm -f conftest$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 gcc_cv_func_mbstowcs_works=yes
9401 else
9402 echo "$as_me: program exited with status $ac_status" >&5
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ( exit $ac_status )
9407 gcc_cv_func_mbstowcs_works=no
9408 fi
9409 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 fi
9412 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9413 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9414 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_WORKING_MBSTOWCS 1
9418 _ACEOF
9419
9420 fi
9421 fi
9422
9423 echo "$as_me:$LINENO: checking for ssize_t" >&5
9424 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9425 if test "${ac_cv_type_ssize_t+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 $ac_includes_default
9435 int
9436 main ()
9437 {
9438 if ((ssize_t *) 0)
9439 return 0;
9440 if (sizeof (ssize_t))
9441 return 0;
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>conftest.er1
9449 ac_status=$?
9450 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458 (eval $ac_try) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest.$ac_objext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_type_ssize_t=yes
9469 else
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_cv_type_ssize_t=no
9474 fi
9475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9478 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9479 if test $ac_cv_type_ssize_t = yes; then
9480 :
9481 else
9482
9483 cat >>confdefs.h <<_ACEOF
9484 #define ssize_t int
9485 _ACEOF
9486
9487 fi
9488
9489
9490 # Try to determine the array type of the second argument of getgroups
9491 # for the target system (int or gid_t).
9492 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9493 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9494 if test "${ac_cv_type_uid_t+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <sys/types.h>
9504
9505 _ACEOF
9506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9507 $EGREP "uid_t" >/dev/null 2>&1; then
9508 ac_cv_type_uid_t=yes
9509 else
9510 ac_cv_type_uid_t=no
9511 fi
9512 rm -f conftest*
9513
9514 fi
9515 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9516 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9517 if test $ac_cv_type_uid_t = no; then
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define uid_t int
9521 _ACEOF
9522
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define gid_t int
9526 _ACEOF
9527
9528 fi
9529
9530 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9531 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9532 if test "${ac_cv_type_getgroups+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 if test "$cross_compiling" = yes; then
9536 ac_cv_type_getgroups=cross
9537 else
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Thanks to Mike Rendell for this test. */
9545 #include <sys/types.h>
9546 #define NGID 256
9547 #undef MAX
9548 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9549
9550 int
9551 main ()
9552 {
9553 gid_t gidset[NGID];
9554 int i, n;
9555 union { gid_t gval; long lval; } val;
9556
9557 val.lval = -1;
9558 for (i = 0; i < NGID; i++)
9559 gidset[i] = val.gval;
9560 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9561 gidset);
9562 /* Exit non-zero if getgroups seems to require an array of ints. This
9563 happens when gid_t is short but getgroups modifies an array of ints. */
9564 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9565 }
9566 _ACEOF
9567 rm -f conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_type_getgroups=gid_t
9579 else
9580 echo "$as_me: program exited with status $ac_status" >&5
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584 ( exit $ac_status )
9585 ac_cv_type_getgroups=int
9586 fi
9587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9588 fi
9589 if test $ac_cv_type_getgroups = cross; then
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h. */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596 #include <unistd.h>
9597
9598 _ACEOF
9599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9600 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9601 ac_cv_type_getgroups=gid_t
9602 else
9603 ac_cv_type_getgroups=int
9604 fi
9605 rm -f conftest*
9606
9607 fi
9608 fi
9609 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9610 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9611
9612 cat >>confdefs.h <<_ACEOF
9613 #define GETGROUPS_T $ac_cv_type_getgroups
9614 _ACEOF
9615
9616
9617 if test "${target}" = "${build}"; then
9618 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9619 else
9620 case "${target}" in
9621 # This condition may need some tweaking. It should include all
9622 # targets where the array type of the second argument of getgroups
9623 # is int and the type of gid_t is not equivalent to int.
9624 *-*-sunos* | *-*-ultrix*)
9625 TARGET_GETGROUPS_T=int
9626 ;;
9627 *)
9628 TARGET_GETGROUPS_T=gid_t
9629 ;;
9630 esac
9631 fi
9632
9633
9634
9635 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9636 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 #include <sys/mman.h>
9647 _ACEOF
9648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } >/dev/null; then
9656 if test -s conftest.err; then
9657 ac_cpp_err=$ac_c_preproc_warn_flag
9658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9659 else
9660 ac_cpp_err=
9661 fi
9662 else
9663 ac_cpp_err=yes
9664 fi
9665 if test -z "$ac_cpp_err"; then
9666 ac_cv_header_sys_mman_h=yes
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_cv_header_sys_mman_h=no
9672 fi
9673 rm -f conftest.err conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9677 if test $ac_cv_header_sys_mman_h = yes; then
9678 gcc_header_sys_mman_h=yes
9679 else
9680 gcc_header_sys_mman_h=no
9681 fi
9682
9683 echo "$as_me:$LINENO: checking for mmap" >&5
9684 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9685 if test "${ac_cv_func_mmap+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define mmap innocuous_mmap
9697
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char mmap (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9702
9703 #ifdef __STDC__
9704 # include <limits.h>
9705 #else
9706 # include <assert.h>
9707 #endif
9708
9709 #undef mmap
9710
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 #ifdef __cplusplus
9713 extern "C"
9714 {
9715 #endif
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9718 char mmap ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_mmap) || defined (__stub___mmap)
9723 choke me
9724 #else
9725 char (*f) () = mmap;
9726 #endif
9727 #ifdef __cplusplus
9728 }
9729 #endif
9730
9731 int
9732 main ()
9733 {
9734 return f != mmap;
9735 ;
9736 return 0;
9737 }
9738 _ACEOF
9739 rm -f conftest.$ac_objext conftest$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_func_mmap=yes
9762 else
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_cv_func_mmap=no
9767 fi
9768 rm -f conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 fi
9771 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9772 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9773 if test $ac_cv_func_mmap = yes; then
9774 gcc_func_mmap=yes
9775 else
9776 gcc_func_mmap=no
9777 fi
9778
9779 if test "$gcc_header_sys_mman_h" != yes \
9780 || test "$gcc_func_mmap" != yes; then
9781 gcc_cv_func_mmap_file=no
9782 gcc_cv_func_mmap_dev_zero=no
9783 gcc_cv_func_mmap_anon=no
9784 else
9785 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9786 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9787 if test "${gcc_cv_func_mmap_file+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790 # Add a system to this blacklist if
9791 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9792 # memory area containing the same data that you'd get if you applied
9793 # read() to the same fd. The only system known to have a problem here
9794 # is VMS, where text files have record structure.
9795 case "$host_os" in
9796 vms* | ultrix*)
9797 gcc_cv_func_mmap_file=no ;;
9798 *)
9799 gcc_cv_func_mmap_file=yes;;
9800 esac
9801 fi
9802 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9803 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9804 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9805 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9806 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809 # Add a system to this blacklist if it has mmap() but /dev/zero
9810 # does not exist, or if mmapping /dev/zero does not give anonymous
9811 # zeroed pages with both the following properties:
9812 # 1. If you map N consecutive pages in with one call, and then
9813 # unmap any subset of those pages, the pages that were not
9814 # explicitly unmapped remain accessible.
9815 # 2. If you map two adjacent blocks of memory and then unmap them
9816 # both at once, they must both go away.
9817 # Systems known to be in this category are Windows (all variants),
9818 # VMS, and Darwin.
9819 case "$host_os" in
9820 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9821 gcc_cv_func_mmap_dev_zero=no ;;
9822 *)
9823 gcc_cv_func_mmap_dev_zero=yes;;
9824 esac
9825 fi
9826 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9827 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9828
9829 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9830 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9831 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9832 if test "${gcc_cv_decl_map_anon+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <sys/types.h>
9842 #include <sys/mman.h>
9843 #include <unistd.h>
9844
9845 #ifndef MAP_ANONYMOUS
9846 #define MAP_ANONYMOUS MAP_ANON
9847 #endif
9848
9849 int
9850 main ()
9851 {
9852 int n = MAP_ANONYMOUS;
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 gcc_cv_decl_map_anon=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9883
9884 gcc_cv_decl_map_anon=no
9885 fi
9886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9889 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9890
9891 if test $gcc_cv_decl_map_anon = no; then
9892 gcc_cv_func_mmap_anon=no
9893 else
9894 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9895 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9896 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9900 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9901 # doesn't give anonymous zeroed pages with the same properties listed
9902 # above for use of /dev/zero.
9903 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9904 case "$host_os" in
9905 vms* | cygwin* | pe | mingw* | sco* | udk* )
9906 gcc_cv_func_mmap_anon=no ;;
9907 *)
9908 gcc_cv_func_mmap_anon=yes;;
9909 esac
9910 fi
9911 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9912 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9913 fi
9914 fi
9915
9916 if test $gcc_cv_func_mmap_file = yes; then
9917
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_MMAP_FILE 1
9920 _ACEOF
9921
9922 fi
9923 if test $gcc_cv_func_mmap_dev_zero = yes; then
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_MMAP_DEV_ZERO 1
9927 _ACEOF
9928
9929 fi
9930 if test $gcc_cv_func_mmap_anon = yes; then
9931
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_MMAP_ANON 1
9934 _ACEOF
9935
9936 fi
9937
9938
9939 case "${host}" in
9940 *-*-*vms*)
9941 # Under VMS, vfork works very differently than on Unix. The standard test
9942 # won't work, and it isn't easily adaptable. It makes more sense to
9943 # just force it.
9944 ac_cv_func_vfork_works=yes
9945 ;;
9946 esac
9947 echo "$as_me:$LINENO: checking for pid_t" >&5
9948 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9949 if test "${ac_cv_type_pid_t+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 $ac_includes_default
9959 int
9960 main ()
9961 {
9962 if ((pid_t *) 0)
9963 return 0;
9964 if (sizeof (pid_t))
9965 return 0;
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 (eval $ac_try) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_type_pid_t=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_type_pid_t=no
9998 fi
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 fi
10001 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10003 if test $ac_cv_type_pid_t = yes; then
10004 :
10005 else
10006
10007 cat >>confdefs.h <<_ACEOF
10008 #define pid_t int
10009 _ACEOF
10010
10011 fi
10012
10013
10014
10015 for ac_header in unistd.h vfork.h
10016 do
10017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <$ac_header>
10030 _ACEOF
10031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null; then
10039 if test -s conftest.err; then
10040 ac_cpp_err=$ac_c_preproc_warn_flag
10041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10042 else
10043 ac_cpp_err=
10044 fi
10045 else
10046 ac_cpp_err=yes
10047 fi
10048 if test -z "$ac_cpp_err"; then
10049 eval "$as_ac_Header=yes"
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 eval "$as_ac_Header=no"
10055 fi
10056 rm -f conftest.err conftest.$ac_ext
10057 fi
10058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10063 _ACEOF
10064
10065 fi
10066 done
10067
10068
10069
10070 for ac_func in fork vfork
10071 do
10072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10073 echo "$as_me:$LINENO: checking for $ac_func" >&5
10074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10075 if eval "test \"\${$as_ac_var+set}\" = set"; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10086 #define $ac_func innocuous_$ac_func
10087
10088 /* System header to define __stub macros and hopefully few prototypes,
10089 which can conflict with char $ac_func (); below.
10090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10091 <limits.h> exists even on freestanding compilers. */
10092
10093 #ifdef __STDC__
10094 # include <limits.h>
10095 #else
10096 # include <assert.h>
10097 #endif
10098
10099 #undef $ac_func
10100
10101 /* Override any gcc2 internal prototype to avoid an error. */
10102 #ifdef __cplusplus
10103 extern "C"
10104 {
10105 #endif
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10108 char $ac_func ();
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10113 choke me
10114 #else
10115 char (*f) () = $ac_func;
10116 #endif
10117 #ifdef __cplusplus
10118 }
10119 #endif
10120
10121 int
10122 main ()
10123 {
10124 return f != $ac_func;
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest$ac_exeext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 eval "$as_ac_var=yes"
10152 else
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 eval "$as_ac_var=no"
10157 fi
10158 rm -f conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 fi
10161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10163 if test `eval echo '${'$as_ac_var'}'` = yes; then
10164 cat >>confdefs.h <<_ACEOF
10165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10166 _ACEOF
10167
10168 fi
10169 done
10170
10171 if test "x$ac_cv_func_fork" = xyes; then
10172 echo "$as_me:$LINENO: checking for working fork" >&5
10173 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10174 if test "${ac_cv_func_fork_works+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177 if test "$cross_compiling" = yes; then
10178 ac_cv_func_fork_works=cross
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181 /* By Ruediger Kuhlmann. */
10182 #include <sys/types.h>
10183 #if HAVE_UNISTD_H
10184 # include <unistd.h>
10185 #endif
10186 /* Some systems only have a dummy stub for fork() */
10187 int main ()
10188 {
10189 if (fork() < 0)
10190 exit (1);
10191 exit (0);
10192 }
10193 _ACEOF
10194 rm -f conftest$ac_exeext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10202 ac_status=$?
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_func_fork_works=yes
10206 else
10207 echo "$as_me: program exited with status $ac_status" >&5
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ( exit $ac_status )
10212 ac_cv_func_fork_works=no
10213 fi
10214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10215 fi
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10218 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10219
10220 else
10221 ac_cv_func_fork_works=$ac_cv_func_fork
10222 fi
10223 if test "x$ac_cv_func_fork_works" = xcross; then
10224 case $host in
10225 *-*-amigaos* | *-*-msdosdjgpp*)
10226 # Override, as these systems have only a dummy fork() stub
10227 ac_cv_func_fork_works=no
10228 ;;
10229 *)
10230 ac_cv_func_fork_works=yes
10231 ;;
10232 esac
10233 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10234 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10235 fi
10236 ac_cv_func_vfork_works=$ac_cv_func_vfork
10237 if test "x$ac_cv_func_vfork" = xyes; then
10238 echo "$as_me:$LINENO: checking for working vfork" >&5
10239 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10240 if test "${ac_cv_func_vfork_works+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 if test "$cross_compiling" = yes; then
10244 ac_cv_func_vfork_works=cross
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 /* Thanks to Paul Eggert for this test. */
10253 #include <stdio.h>
10254 #include <stdlib.h>
10255 #include <sys/types.h>
10256 #include <sys/stat.h>
10257 #include <sys/wait.h>
10258 #if HAVE_UNISTD_H
10259 # include <unistd.h>
10260 #endif
10261 #if HAVE_VFORK_H
10262 # include <vfork.h>
10263 #endif
10264 /* On some sparc systems, changes by the child to local and incoming
10265 argument registers are propagated back to the parent. The compiler
10266 is told about this with #include <vfork.h>, but some compilers
10267 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10268 static variable whose address is put into a register that is
10269 clobbered by the vfork. */
10270 static void
10271 #ifdef __cplusplus
10272 sparc_address_test (int arg)
10273 # else
10274 sparc_address_test (arg) int arg;
10275 #endif
10276 {
10277 static pid_t child;
10278 if (!child) {
10279 child = vfork ();
10280 if (child < 0) {
10281 perror ("vfork");
10282 _exit(2);
10283 }
10284 if (!child) {
10285 arg = getpid();
10286 write(-1, "", 0);
10287 _exit (arg);
10288 }
10289 }
10290 }
10291
10292 int
10293 main ()
10294 {
10295 pid_t parent = getpid ();
10296 pid_t child;
10297
10298 sparc_address_test (0);
10299
10300 child = vfork ();
10301
10302 if (child == 0) {
10303 /* Here is another test for sparc vfork register problems. This
10304 test uses lots of local variables, at least as many local
10305 variables as main has allocated so far including compiler
10306 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10307 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10308 reuse the register of parent for one of the local variables,
10309 since it will think that parent can't possibly be used any more
10310 in this routine. Assigning to the local variable will thus
10311 munge parent in the parent process. */
10312 pid_t
10313 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10314 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10315 /* Convince the compiler that p..p7 are live; otherwise, it might
10316 use the same hardware register for all 8 local variables. */
10317 if (p != p1 || p != p2 || p != p3 || p != p4
10318 || p != p5 || p != p6 || p != p7)
10319 _exit(1);
10320
10321 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10322 from child file descriptors. If the child closes a descriptor
10323 before it execs or exits, this munges the parent's descriptor
10324 as well. Test for this by closing stdout in the child. */
10325 _exit(close(fileno(stdout)) != 0);
10326 } else {
10327 int status;
10328 struct stat st;
10329
10330 while (wait(&status) != child)
10331 ;
10332 exit(
10333 /* Was there some problem with vforking? */
10334 child < 0
10335
10336 /* Did the child fail? (This shouldn't happen.) */
10337 || status
10338
10339 /* Did the vfork/compiler bug occur? */
10340 || parent != getpid()
10341
10342 /* Did the file descriptor bug occur? */
10343 || fstat(fileno(stdout), &st) != 0
10344 );
10345 }
10346 }
10347 _ACEOF
10348 rm -f conftest$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_func_vfork_works=yes
10360 else
10361 echo "$as_me: program exited with status $ac_status" >&5
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365 ( exit $ac_status )
10366 ac_cv_func_vfork_works=no
10367 fi
10368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10369 fi
10370 fi
10371 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10372 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10373
10374 fi;
10375 if test "x$ac_cv_func_fork_works" = xcross; then
10376 ac_cv_func_vfork_works=$ac_cv_func_vfork
10377 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10378 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10379 fi
10380
10381 if test "x$ac_cv_func_vfork_works" = xyes; then
10382
10383 cat >>confdefs.h <<\_ACEOF
10384 #define HAVE_WORKING_VFORK 1
10385 _ACEOF
10386
10387 else
10388
10389 cat >>confdefs.h <<\_ACEOF
10390 #define vfork fork
10391 _ACEOF
10392
10393 fi
10394 if test "x$ac_cv_func_fork_works" = xyes; then
10395
10396 cat >>confdefs.h <<\_ACEOF
10397 #define HAVE_WORKING_FORK 1
10398 _ACEOF
10399
10400 fi
10401
10402
10403
10404 if test "X$prefix" = "XNONE"; then
10405 acl_final_prefix="$ac_default_prefix"
10406 else
10407 acl_final_prefix="$prefix"
10408 fi
10409 if test "X$exec_prefix" = "XNONE"; then
10410 acl_final_exec_prefix='${prefix}'
10411 else
10412 acl_final_exec_prefix="$exec_prefix"
10413 fi
10414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10417 prefix="$acl_save_prefix"
10418
10419
10420 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10421 if test "${with_gnu_ld+set}" = set; then
10422 withval="$with_gnu_ld"
10423 test "$withval" = no || with_gnu_ld=yes
10424 else
10425 with_gnu_ld=no
10426 fi;
10427 # Prepare PATH_SEPARATOR.
10428 # The user is always right.
10429 if test "${PATH_SEPARATOR+set}" != set; then
10430 echo "#! /bin/sh" >conf$$.sh
10431 echo "exit 0" >>conf$$.sh
10432 chmod +x conf$$.sh
10433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10434 PATH_SEPARATOR=';'
10435 else
10436 PATH_SEPARATOR=:
10437 fi
10438 rm -f conf$$.sh
10439 fi
10440 ac_prog=ld
10441 if test "$GCC" = yes; then
10442 # Check if gcc -print-prog-name=ld gives a path.
10443 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10444 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10445 case $host in
10446 *-*-mingw*)
10447 # gcc leaves a trailing carriage return which upsets mingw
10448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10449 *)
10450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10451 esac
10452 case $ac_prog in
10453 # Accept absolute paths.
10454 [\\/]* | [A-Za-z]:[\\/]*)
10455 re_direlt='/[^/][^/]*/\.\./'
10456 # Canonicalize the path of ld
10457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10459 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10460 done
10461 test -z "$LD" && LD="$ac_prog"
10462 ;;
10463 "")
10464 # If it fails, then pretend we aren't using GCC.
10465 ac_prog=ld
10466 ;;
10467 *)
10468 # If it is relative, then search for the first ld in PATH.
10469 with_gnu_ld=unknown
10470 ;;
10471 esac
10472 elif test "$with_gnu_ld" = yes; then
10473 echo "$as_me:$LINENO: checking for GNU ld" >&5
10474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10475 else
10476 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10478 fi
10479 if test "${acl_cv_path_LD+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10481 else
10482 if test -z "$LD"; then
10483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10484 for ac_dir in $PATH; do
10485 test -z "$ac_dir" && ac_dir=.
10486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10487 acl_cv_path_LD="$ac_dir/$ac_prog"
10488 # Check to see if the program is GNU ld. I'd rather use --version,
10489 # but apparently some GNU ld's only accept -v.
10490 # Break only if it was the GNU/non-GNU ld that we prefer.
10491 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10492 test "$with_gnu_ld" != no && break
10493 else
10494 test "$with_gnu_ld" != yes && break
10495 fi
10496 fi
10497 done
10498 IFS="$ac_save_ifs"
10499 else
10500 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10501 fi
10502 fi
10503
10504 LD="$acl_cv_path_LD"
10505 if test -n "$LD"; then
10506 echo "$as_me:$LINENO: result: $LD" >&5
10507 echo "${ECHO_T}$LD" >&6
10508 else
10509 echo "$as_me:$LINENO: result: no" >&5
10510 echo "${ECHO_T}no" >&6
10511 fi
10512 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10513 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10514 { (exit 1); exit 1; }; }
10515 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10516 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10517 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10521 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10522 acl_cv_prog_gnu_ld=yes
10523 else
10524 acl_cv_prog_gnu_ld=no
10525 fi
10526 fi
10527 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10528 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10529 with_gnu_ld=$acl_cv_prog_gnu_ld
10530
10531
10532
10533 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10534 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10535 if test "${acl_cv_rpath+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538
10539 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10540 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10541 . ./conftest.sh
10542 rm -f ./conftest.sh
10543 acl_cv_rpath=done
10544
10545 fi
10546 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10547 echo "${ECHO_T}$acl_cv_rpath" >&6
10548 wl="$acl_cv_wl"
10549 libext="$acl_cv_libext"
10550 shlibext="$acl_cv_shlibext"
10551 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10552 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10553 hardcode_direct="$acl_cv_hardcode_direct"
10554 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10555 # Check whether --enable-rpath or --disable-rpath was given.
10556 if test "${enable_rpath+set}" = set; then
10557 enableval="$enable_rpath"
10558 :
10559 else
10560 enable_rpath=yes
10561 fi;
10562
10563
10564
10565
10566
10567
10568
10569 use_additional=yes
10570
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575
10576 eval additional_includedir=\"$includedir\"
10577 eval additional_libdir=\"$libdir\"
10578
10579 exec_prefix="$acl_save_exec_prefix"
10580 prefix="$acl_save_prefix"
10581
10582
10583 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10584 if test "${with_libiconv_prefix+set}" = set; then
10585 withval="$with_libiconv_prefix"
10586
10587 if test "X$withval" = "Xno"; then
10588 use_additional=no
10589 else
10590 if test "X$withval" = "X"; then
10591
10592 acl_save_prefix="$prefix"
10593 prefix="$acl_final_prefix"
10594 acl_save_exec_prefix="$exec_prefix"
10595 exec_prefix="$acl_final_exec_prefix"
10596
10597 eval additional_includedir=\"$includedir\"
10598 eval additional_libdir=\"$libdir\"
10599
10600 exec_prefix="$acl_save_exec_prefix"
10601 prefix="$acl_save_prefix"
10602
10603 else
10604 additional_includedir="$withval/include"
10605 additional_libdir="$withval/lib"
10606 fi
10607 fi
10608
10609 fi;
10610 LIBICONV=
10611 LTLIBICONV=
10612 INCICONV=
10613 rpathdirs=
10614 ltrpathdirs=
10615 names_already_handled=
10616 names_next_round='iconv '
10617 while test -n "$names_next_round"; do
10618 names_this_round="$names_next_round"
10619 names_next_round=
10620 for name in $names_this_round; do
10621 already_handled=
10622 for n in $names_already_handled; do
10623 if test "$n" = "$name"; then
10624 already_handled=yes
10625 break
10626 fi
10627 done
10628 if test -z "$already_handled"; then
10629 names_already_handled="$names_already_handled $name"
10630 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10631 eval value=\"\$HAVE_LIB$uppername\"
10632 if test -n "$value"; then
10633 if test "$value" = yes; then
10634 eval value=\"\$LIB$uppername\"
10635 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10636 eval value=\"\$LTLIB$uppername\"
10637 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10638 else
10639 :
10640 fi
10641 else
10642 found_dir=
10643 found_la=
10644 found_so=
10645 found_a=
10646 if test $use_additional = yes; then
10647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10648 found_dir="$additional_libdir"
10649 found_so="$additional_libdir/lib$name.$shlibext"
10650 if test -f "$additional_libdir/lib$name.la"; then
10651 found_la="$additional_libdir/lib$name.la"
10652 fi
10653 else
10654 if test -f "$additional_libdir/lib$name.$libext"; then
10655 found_dir="$additional_libdir"
10656 found_a="$additional_libdir/lib$name.$libext"
10657 if test -f "$additional_libdir/lib$name.la"; then
10658 found_la="$additional_libdir/lib$name.la"
10659 fi
10660 fi
10661 fi
10662 fi
10663 if test "X$found_dir" = "X"; then
10664 for x in $LDFLAGS $LTLIBICONV; do
10665
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10670 eval x=\"$x\"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10673
10674 case "$x" in
10675 -L*)
10676 dir=`echo "X$x" | sed -e 's/^X-L//'`
10677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10678 found_dir="$dir"
10679 found_so="$dir/lib$name.$shlibext"
10680 if test -f "$dir/lib$name.la"; then
10681 found_la="$dir/lib$name.la"
10682 fi
10683 else
10684 if test -f "$dir/lib$name.$libext"; then
10685 found_dir="$dir"
10686 found_a="$dir/lib$name.$libext"
10687 if test -f "$dir/lib$name.la"; then
10688 found_la="$dir/lib$name.la"
10689 fi
10690 fi
10691 fi
10692 ;;
10693 esac
10694 if test "X$found_dir" != "X"; then
10695 break
10696 fi
10697 done
10698 fi
10699 if test "X$found_dir" != "X"; then
10700 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10701 if test "X$found_so" != "X"; then
10702 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10704 else
10705 haveit=
10706 for x in $ltrpathdirs; do
10707 if test "X$x" = "X$found_dir"; then
10708 haveit=yes
10709 break
10710 fi
10711 done
10712 if test -z "$haveit"; then
10713 ltrpathdirs="$ltrpathdirs $found_dir"
10714 fi
10715 if test "$hardcode_direct" = yes; then
10716 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10717 else
10718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10719 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10720 haveit=
10721 for x in $rpathdirs; do
10722 if test "X$x" = "X$found_dir"; then
10723 haveit=yes
10724 break
10725 fi
10726 done
10727 if test -z "$haveit"; then
10728 rpathdirs="$rpathdirs $found_dir"
10729 fi
10730 else
10731 haveit=
10732 for x in $LDFLAGS $LIBICONV; do
10733
10734 acl_save_prefix="$prefix"
10735 prefix="$acl_final_prefix"
10736 acl_save_exec_prefix="$exec_prefix"
10737 exec_prefix="$acl_final_exec_prefix"
10738 eval x=\"$x\"
10739 exec_prefix="$acl_save_exec_prefix"
10740 prefix="$acl_save_prefix"
10741
10742 if test "X$x" = "X-L$found_dir"; then
10743 haveit=yes
10744 break
10745 fi
10746 done
10747 if test -z "$haveit"; then
10748 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10749 fi
10750 if test "$hardcode_minus_L" != no; then
10751 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10752 else
10753 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10754 fi
10755 fi
10756 fi
10757 fi
10758 else
10759 if test "X$found_a" != "X"; then
10760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10761 else
10762 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10763 fi
10764 fi
10765 additional_includedir=
10766 case "$found_dir" in
10767 */lib | */lib/)
10768 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10769 additional_includedir="$basedir/include"
10770 ;;
10771 esac
10772 if test "X$additional_includedir" != "X"; then
10773 if test "X$additional_includedir" != "X/usr/include"; then
10774 haveit=
10775 if test "X$additional_includedir" = "X/usr/local/include"; then
10776 if test -n "$GCC"; then
10777 case $host_os in
10778 linux*) haveit=yes;;
10779 esac
10780 fi
10781 fi
10782 if test -z "$haveit"; then
10783 for x in $CPPFLAGS $INCICONV; do
10784
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10789 eval x=\"$x\"
10790 exec_prefix="$acl_save_exec_prefix"
10791 prefix="$acl_save_prefix"
10792
10793 if test "X$x" = "X-I$additional_includedir"; then
10794 haveit=yes
10795 break
10796 fi
10797 done
10798 if test -z "$haveit"; then
10799 if test -d "$additional_includedir"; then
10800 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10801 fi
10802 fi
10803 fi
10804 fi
10805 fi
10806 if test -n "$found_la"; then
10807 save_libdir="$libdir"
10808 case "$found_la" in
10809 */* | *\\*) . "$found_la" ;;
10810 *) . "./$found_la" ;;
10811 esac
10812 libdir="$save_libdir"
10813 for dep in $dependency_libs; do
10814 case "$dep" in
10815 -L*)
10816 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10817 if test "X$additional_libdir" != "X/usr/lib"; then
10818 haveit=
10819 if test "X$additional_libdir" = "X/usr/local/lib"; then
10820 if test -n "$GCC"; then
10821 case $host_os in
10822 linux*) haveit=yes;;
10823 esac
10824 fi
10825 fi
10826 if test -z "$haveit"; then
10827 haveit=
10828 for x in $LDFLAGS $LIBICONV; do
10829
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10834 eval x=\"$x\"
10835 exec_prefix="$acl_save_exec_prefix"
10836 prefix="$acl_save_prefix"
10837
10838 if test "X$x" = "X-L$additional_libdir"; then
10839 haveit=yes
10840 break
10841 fi
10842 done
10843 if test -z "$haveit"; then
10844 if test -d "$additional_libdir"; then
10845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10846 fi
10847 fi
10848 haveit=
10849 for x in $LDFLAGS $LTLIBICONV; do
10850
10851 acl_save_prefix="$prefix"
10852 prefix="$acl_final_prefix"
10853 acl_save_exec_prefix="$exec_prefix"
10854 exec_prefix="$acl_final_exec_prefix"
10855 eval x=\"$x\"
10856 exec_prefix="$acl_save_exec_prefix"
10857 prefix="$acl_save_prefix"
10858
10859 if test "X$x" = "X-L$additional_libdir"; then
10860 haveit=yes
10861 break
10862 fi
10863 done
10864 if test -z "$haveit"; then
10865 if test -d "$additional_libdir"; then
10866 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10867 fi
10868 fi
10869 fi
10870 fi
10871 ;;
10872 -R*)
10873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10874 if test "$enable_rpath" != no; then
10875 haveit=
10876 for x in $rpathdirs; do
10877 if test "X$x" = "X$dir"; then
10878 haveit=yes
10879 break
10880 fi
10881 done
10882 if test -z "$haveit"; then
10883 rpathdirs="$rpathdirs $dir"
10884 fi
10885 haveit=
10886 for x in $ltrpathdirs; do
10887 if test "X$x" = "X$dir"; then
10888 haveit=yes
10889 break
10890 fi
10891 done
10892 if test -z "$haveit"; then
10893 ltrpathdirs="$ltrpathdirs $dir"
10894 fi
10895 fi
10896 ;;
10897 -l*)
10898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10899 ;;
10900 *.la)
10901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10902 ;;
10903 *)
10904 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10906 ;;
10907 esac
10908 done
10909 fi
10910 else
10911 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10912 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10913 fi
10914 fi
10915 fi
10916 done
10917 done
10918 if test "X$rpathdirs" != "X"; then
10919 if test -n "$hardcode_libdir_separator"; then
10920 alldirs=
10921 for found_dir in $rpathdirs; do
10922 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10923 done
10924 acl_save_libdir="$libdir"
10925 libdir="$alldirs"
10926 eval flag=\"$hardcode_libdir_flag_spec\"
10927 libdir="$acl_save_libdir"
10928 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10929 else
10930 for found_dir in $rpathdirs; do
10931 acl_save_libdir="$libdir"
10932 libdir="$found_dir"
10933 eval flag=\"$hardcode_libdir_flag_spec\"
10934 libdir="$acl_save_libdir"
10935 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10936 done
10937 fi
10938 fi
10939 if test "X$ltrpathdirs" != "X"; then
10940 for found_dir in $ltrpathdirs; do
10941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10942 done
10943 fi
10944
10945
10946
10947
10948
10949
10950
10951 am_save_CPPFLAGS="$CPPFLAGS"
10952
10953 for element in $INCICONV; do
10954 haveit=
10955 for x in $CPPFLAGS; do
10956
10957 acl_save_prefix="$prefix"
10958 prefix="$acl_final_prefix"
10959 acl_save_exec_prefix="$exec_prefix"
10960 exec_prefix="$acl_final_exec_prefix"
10961 eval x=\"$x\"
10962 exec_prefix="$acl_save_exec_prefix"
10963 prefix="$acl_save_prefix"
10964
10965 if test "X$x" = "X$element"; then
10966 haveit=yes
10967 break
10968 fi
10969 done
10970 if test -z "$haveit"; then
10971 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10972 fi
10973 done
10974
10975
10976 echo "$as_me:$LINENO: checking for iconv" >&5
10977 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10978 if test "${am_cv_func_iconv+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981
10982 am_cv_func_iconv="no, consider installing GNU libiconv"
10983 am_cv_lib_iconv=no
10984 cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h. */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <stdlib.h>
10991 #include <iconv.h>
10992 int
10993 main ()
10994 {
10995 iconv_t cd = iconv_open("","");
10996 iconv(cd,NULL,NULL,NULL,NULL);
10997 iconv_close(cd);
10998 ;
10999 return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag"
11012 || test ! -s conftest.err'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 am_cv_func_iconv=yes
11025 else
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 fi
11030 rm -f conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
11032 if test "$am_cv_func_iconv" != yes; then
11033 am_save_LIBS="$LIBS"
11034 LIBS="$LIBS $LIBICONV"
11035 cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h. */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <stdlib.h>
11042 #include <iconv.h>
11043 int
11044 main ()
11045 {
11046 iconv_t cd = iconv_open("","");
11047 iconv(cd,NULL,NULL,NULL,NULL);
11048 iconv_close(cd);
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 am_cv_lib_iconv=yes
11076 am_cv_func_iconv=yes
11077 else
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 fi
11082 rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS="$am_save_LIBS"
11085 fi
11086
11087 fi
11088 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11089 echo "${ECHO_T}$am_cv_func_iconv" >&6
11090 if test "$am_cv_func_iconv" = yes; then
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define HAVE_ICONV 1
11094 _ACEOF
11095
11096 fi
11097 if test "$am_cv_lib_iconv" = yes; then
11098 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11099 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11100 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11101 echo "${ECHO_T}$LIBICONV" >&6
11102 else
11103 CPPFLAGS="$am_save_CPPFLAGS"
11104 LIBICONV=
11105 LTLIBICONV=
11106 fi
11107
11108
11109
11110 if test "$am_cv_func_iconv" = yes; then
11111 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11112 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11113 if test "${am_cv_proto_iconv+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h. */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11123
11124 #include <stdlib.h>
11125 #include <iconv.h>
11126 extern
11127 #ifdef __cplusplus
11128 "C"
11129 #endif
11130 #if defined(__STDC__) || defined(__cplusplus)
11131 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11132 #else
11133 size_t iconv();
11134 #endif
11135
11136 int
11137 main ()
11138 {
11139
11140 ;
11141 return 0;
11142 }
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -z "$ac_c_werror_flag"
11154 || test ! -s conftest.err'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest.$ac_objext'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 am_cv_proto_iconv_arg1=""
11167 else
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.$ac_ext >&5
11170
11171 am_cv_proto_iconv_arg1="const"
11172 fi
11173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11174 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11175 fi
11176
11177 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11178 echo "$as_me:$LINENO: result: ${ac_t:-
11179 }$am_cv_proto_iconv" >&5
11180 echo "${ECHO_T}${ac_t:-
11181 }$am_cv_proto_iconv" >&6
11182
11183 cat >>confdefs.h <<_ACEOF
11184 #define ICONV_CONST $am_cv_proto_iconv_arg1
11185 _ACEOF
11186
11187 fi
11188
11189 # Until we have in-tree GNU iconv:
11190 LIBICONV_DEP=
11191
11192
11193
11194 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11195 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11196 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <locale.h>
11206 int
11207 main ()
11208 {
11209 return LC_MESSAGES
11210 ;
11211 return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 am_cv_val_LC_MESSAGES=yes
11237 else
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 am_cv_val_LC_MESSAGES=no
11242 fi
11243 rm -f conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 fi
11246 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11247 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11248 if test $am_cv_val_LC_MESSAGES = yes; then
11249
11250 cat >>confdefs.h <<\_ACEOF
11251 #define HAVE_LC_MESSAGES 1
11252 _ACEOF
11253
11254 fi
11255
11256
11257
11258 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11259 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11260 if test "${am_cv_langinfo_codeset+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263 cat >conftest.$ac_ext <<_ACEOF
11264 /* confdefs.h. */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269 #include <langinfo.h>
11270 int
11271 main ()
11272 {
11273 char* cs = nl_langinfo(CODESET);
11274 ;
11275 return 0;
11276 }
11277 _ACEOF
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>conftest.er1
11281 ac_status=$?
11282 grep -v '^ *+' conftest.er1 >conftest.err
11283 rm -f conftest.er1
11284 cat conftest.err >&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try='test -z "$ac_c_werror_flag"
11288 || test ! -s conftest.err'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; } &&
11294 { ac_try='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 am_cv_langinfo_codeset=yes
11301 else
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 am_cv_langinfo_codeset=no
11306 fi
11307 rm -f conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309
11310 fi
11311 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11312 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11313 if test $am_cv_langinfo_codeset = yes; then
11314
11315 cat >>confdefs.h <<\_ACEOF
11316 #define HAVE_LANGINFO_CODESET 1
11317 _ACEOF
11318
11319 fi
11320
11321
11322 # We will need to find libiberty.h and ansidecl.h
11323 saved_CFLAGS="$CFLAGS"
11324 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11365 strsignal strstr strverscmp \
11366 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11367 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11368 do
11369 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11370 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11371 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11372 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #undef $ac_tr_decl
11382 #define $ac_tr_decl 1
11383
11384 #include "ansidecl.h"
11385 #include "system.h"
11386
11387 int
11388 main ()
11389 {
11390 #ifndef $ac_func
11391 char *(*pfn) = (char *(*)) $ac_func ;
11392 #endif
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 rm -f conftest.$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 eval "gcc_cv_have_decl_$ac_func=yes"
11420 else
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11423
11424 eval "gcc_cv_have_decl_$ac_func=no"
11425 fi
11426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11427 fi
11428
11429 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11430 echo "$as_me:$LINENO: result: yes" >&5
11431 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11432 #define $ac_tr_decl 1
11433 _ACEOF
11434
11435 else
11436 echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11438 #define $ac_tr_decl 0
11439 _ACEOF
11440
11441 fi
11442
11443 done
11444
11445
11446
11447
11448
11449 for ac_func in getrlimit setrlimit getrusage
11450 do
11451 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11452 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11453 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11454 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457 cat >conftest.$ac_ext <<_ACEOF
11458 /* confdefs.h. */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11463 #undef $ac_tr_decl
11464 #define $ac_tr_decl 1
11465
11466 #include "ansidecl.h"
11467 #include "system.h"
11468 #ifdef HAVE_SYS_RESOURCE_H
11469 #include <sys/resource.h>
11470 #endif
11471
11472
11473 int
11474 main ()
11475 {
11476 #ifndef $ac_func
11477 char *(*pfn) = (char *(*)) $ac_func ;
11478 #endif
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11486 ac_status=$?
11487 grep -v '^ *+' conftest.er1 >conftest.err
11488 rm -f conftest.er1
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 eval "gcc_cv_have_decl_$ac_func=yes"
11506 else
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11509
11510 eval "gcc_cv_have_decl_$ac_func=no"
11511 fi
11512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11513 fi
11514
11515 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11516 echo "$as_me:$LINENO: result: yes" >&5
11517 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11518 #define $ac_tr_decl 1
11519 _ACEOF
11520
11521 else
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11524 #define $ac_tr_decl 0
11525 _ACEOF
11526
11527 fi
11528
11529 done
11530
11531
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538
11539 #include "ansidecl.h"
11540 #include "system.h"
11541 #ifdef HAVE_SYS_RESOURCE_H
11542 #include <sys/resource.h>
11543 #endif
11544
11545 int
11546 main ()
11547 {
11548 rlim_t l = 0;
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 :
11576 else
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11579
11580
11581 cat >>confdefs.h <<\_ACEOF
11582 #define rlim_t long
11583 _ACEOF
11584
11585 fi
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587
11588 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11589 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11590 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11591 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11592
11593 for ac_func in ldgetname
11594 do
11595 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11596 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11597 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11598 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607 #undef $ac_tr_decl
11608 #define $ac_tr_decl 1
11609
11610 #include "ansidecl.h"
11611 #include "system.h"
11612 #ifdef HAVE_LDFCN_H
11613 #undef FREAD
11614 #undef FWRITE
11615 #include <ldfcn.h>
11616 #endif
11617
11618
11619 int
11620 main ()
11621 {
11622 #ifndef $ac_func
11623 char *(*pfn) = (char *(*)) $ac_func ;
11624 #endif
11625 ;
11626 return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 eval "gcc_cv_have_decl_$ac_func=yes"
11652 else
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 eval "gcc_cv_have_decl_$ac_func=no"
11657 fi
11658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11659 fi
11660
11661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11662 echo "$as_me:$LINENO: result: yes" >&5
11663 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11664 #define $ac_tr_decl 1
11665 _ACEOF
11666
11667 else
11668 echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11670 #define $ac_tr_decl 0
11671 _ACEOF
11672
11673 fi
11674
11675 done
11676
11677
11678
11679 for ac_func in times
11680 do
11681 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11682 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11683 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11684 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h. */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 #undef $ac_tr_decl
11694 #define $ac_tr_decl 1
11695
11696 #include "ansidecl.h"
11697 #include "system.h"
11698 #ifdef HAVE_SYS_TIMES_H
11699 #include <sys/times.h>
11700 #endif
11701
11702
11703 int
11704 main ()
11705 {
11706 #ifndef $ac_func
11707 char *(*pfn) = (char *(*)) $ac_func ;
11708 #endif
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 eval "gcc_cv_have_decl_$ac_func=yes"
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 eval "gcc_cv_have_decl_$ac_func=no"
11741 fi
11742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11743 fi
11744
11745 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11746 echo "$as_me:$LINENO: result: yes" >&5
11747 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11748 #define $ac_tr_decl 1
11749 _ACEOF
11750
11751 else
11752 echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11754 #define $ac_tr_decl 0
11755 _ACEOF
11756
11757 fi
11758
11759 done
11760
11761
11762
11763 for ac_func in sigaltstack
11764 do
11765 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11766 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11767 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11768 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 #undef $ac_tr_decl
11778 #define $ac_tr_decl 1
11779
11780 #include "ansidecl.h"
11781 #include "system.h"
11782 #include <signal.h>
11783
11784
11785 int
11786 main ()
11787 {
11788 #ifndef $ac_func
11789 char *(*pfn) = (char *(*)) $ac_func ;
11790 #endif
11791 ;
11792 return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11797 (eval $ac_compile) 2>conftest.er1
11798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest.$ac_objext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 eval "gcc_cv_have_decl_$ac_func=yes"
11818 else
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 eval "gcc_cv_have_decl_$ac_func=no"
11823 fi
11824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11825 fi
11826
11827 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11828 echo "$as_me:$LINENO: result: yes" >&5
11829 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11830 #define $ac_tr_decl 1
11831 _ACEOF
11832
11833 else
11834 echo "$as_me:$LINENO: result: no" >&5
11835 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11836 #define $ac_tr_decl 0
11837 _ACEOF
11838
11839 fi
11840
11841 done
11842
11843
11844 # More time-related stuff.
11845 echo "$as_me:$LINENO: checking for struct tms" >&5
11846 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11847 if test "${ac_cv_struct_tms+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857
11858 #include "ansidecl.h"
11859 #include "system.h"
11860 #ifdef HAVE_SYS_TIMES_H
11861 #include <sys/times.h>
11862 #endif
11863
11864 int
11865 main ()
11866 {
11867 struct tms tms;
11868 ;
11869 return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag"
11882 || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_struct_tms=yes
11895 else
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 ac_cv_struct_tms=no
11900 fi
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 fi
11903 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11904 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11905 if test $ac_cv_struct_tms = yes; then
11906
11907 cat >>confdefs.h <<\_ACEOF
11908 #define HAVE_STRUCT_TMS 1
11909 _ACEOF
11910
11911 fi
11912
11913 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11914 # revisit after autoconf 2.50.
11915 echo "$as_me:$LINENO: checking for clock_t" >&5
11916 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11917 if test "${gcc_cv_type_clock_t+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927
11928 #include "ansidecl.h"
11929 #include "system.h"
11930
11931 int
11932 main ()
11933 {
11934 clock_t x;
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 gcc_cv_type_clock_t=yes
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 gcc_cv_type_clock_t=no
11967 fi
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11971 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11972 if test $gcc_cv_type_clock_t = yes; then
11973
11974 cat >>confdefs.h <<\_ACEOF
11975 #define HAVE_CLOCK_T 1
11976 _ACEOF
11977
11978 fi
11979
11980 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11981 CFLAGS="$saved_CFLAGS"
11982
11983 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11984 if test "${enable_initfini_array+set}" = set; then
11985 enableval="$enable_initfini_array"
11986
11987 else
11988
11989 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11990 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11991 if test "${gcc_cv_initfini_array+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994 if test "$cross_compiling" = yes; then
11995 gcc_cv_initfini_array=no
11996 else
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003
12004 static int x = -1;
12005 int main (void) { return x; }
12006 int foo (void) { x = 0; }
12007 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12008 _ACEOF
12009 rm -f conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 gcc_cv_initfini_array=yes
12021 else
12022 echo "$as_me: program exited with status $ac_status" >&5
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026 ( exit $ac_status )
12027 gcc_cv_initfini_array=no
12028 fi
12029 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 fi
12031 fi
12032 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12033 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12034 enable_initfini_array=$gcc_cv_initfini_array
12035
12036 fi;
12037 if test $enable_initfini_array = yes; then
12038
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_INITFINI_ARRAY 1
12041 _ACEOF
12042
12043 fi
12044
12045 # mkdir takes a single argument on some systems.
12046 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12047 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12048 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h. */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057
12058 #include <sys/types.h>
12059 #ifdef HAVE_SYS_STAT_H
12060 # include <sys/stat.h>
12061 #endif
12062 #ifdef HAVE_UNISTD_H
12063 # include <unistd.h>
12064 #endif
12065 #ifdef HAVE_DIRECT_H
12066 # include <direct.h>
12067 #endif
12068 int
12069 main ()
12070 {
12071 mkdir ("foo", 0);
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 rm -f conftest.$ac_objext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 gcc_cv_mkdir_takes_one_arg=no
12099 else
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 gcc_cv_mkdir_takes_one_arg=yes
12104 fi
12105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12106 fi
12107 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12108 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12109 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12110
12111 cat >>confdefs.h <<\_ACEOF
12112 #define MKDIR_TAKES_ONE_ARG 1
12113 _ACEOF
12114
12115 fi
12116
12117
12118 # File extensions
12119 manext='.1'
12120 objext='.o'
12121
12122
12123
12124 # With Setjmp/Longjmp based exception handling.
12125 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12126 if test "${enable_sjlj_exceptions+set}" = set; then
12127 enableval="$enable_sjlj_exceptions"
12128 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12129
12130 cat >>confdefs.h <<_ACEOF
12131 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12132 _ACEOF
12133
12134 fi;
12135
12136 # For platforms with the unwind ABI which includes an unwind library,
12137 # libunwind, we can choose to use the system libunwind.
12138
12139 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12140 if test "${with_system_libunwind+set}" = set; then
12141 withval="$with_system_libunwind"
12142
12143 fi;
12144
12145 # --------------------------------------------------------
12146 # Build, host, and target specific configuration fragments
12147 # --------------------------------------------------------
12148
12149 # Collect build-machine-specific information.
12150 . ${srcdir}/config.build
12151
12152 # Collect host-machine-specific information.
12153 . ${srcdir}/config.host
12154
12155 target_gtfiles=
12156
12157 # Collect target-machine-specific information.
12158 . ${srcdir}/config.gcc
12159
12160 extra_objs="${host_extra_objs} ${extra_objs}"
12161 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12162
12163 # Default the target-machine variables that were not explicitly set.
12164 if test x"$tm_file" = x
12165 then tm_file=$cpu_type/$cpu_type.h; fi
12166
12167 if test x"$extra_headers" = x
12168 then extra_headers=; fi
12169
12170 if test x$md_file = x
12171 then md_file=$cpu_type/$cpu_type.md; fi
12172
12173 if test x$out_file = x
12174 then out_file=$cpu_type/$cpu_type.c; fi
12175
12176 if test x"$tmake_file" = x
12177 then tmake_file=$cpu_type/t-$cpu_type
12178 fi
12179
12180 if test x"$dwarf2" = xyes
12181 then tm_file="$tm_file tm-dwarf2.h"
12182 fi
12183
12184 # Say what files are being used for the output code and MD file.
12185 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12186 echo "Using \`$srcdir/config/$md_file' as machine description file."
12187
12188 # If any of the xm_file variables contain nonexistent files, warn
12189 # about them and drop them.
12190
12191 bx=
12192 for x in $build_xm_file; do
12193 if test -f $srcdir/config/$x
12194 then bx="$bx $x"
12195 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12196 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12197 fi
12198 done
12199 build_xm_file="$bx"
12200
12201 hx=
12202 for x in $host_xm_file; do
12203 if test -f $srcdir/config/$x
12204 then hx="$hx $x"
12205 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12206 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12207 fi
12208 done
12209 host_xm_file="$hx"
12210
12211 tx=
12212 for x in $xm_file; do
12213 if test -f $srcdir/config/$x
12214 then tx="$tx $x"
12215 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12216 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12217 fi
12218 done
12219 xm_file="$tx"
12220
12221 count=a
12222 for f in $tm_file; do
12223 count=${count}x
12224 done
12225 if test $count = ax; then
12226 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12227 else
12228 echo "Using the following target machine macro files:"
12229 for f in $tm_file; do
12230 echo " $srcdir/config/$f"
12231 done
12232 fi
12233
12234 if test x$need_64bit_hwint = xyes; then
12235
12236 cat >>confdefs.h <<\_ACEOF
12237 #define NEED_64BIT_HOST_WIDE_INT 1
12238 _ACEOF
12239
12240 fi
12241
12242 if test x$use_long_long_for_widest_fast_int = xyes; then
12243
12244 cat >>confdefs.h <<\_ACEOF
12245 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12246 _ACEOF
12247
12248 fi
12249
12250 count=a
12251 for f in $host_xm_file; do
12252 count=${count}x
12253 done
12254 if test $count = a; then
12255 :
12256 elif test $count = ax; then
12257 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12258 else
12259 echo "Using the following host machine macro files:"
12260 for f in $host_xm_file; do
12261 echo " $srcdir/config/$f"
12262 done
12263 fi
12264 echo "Using ${out_host_hook_obj} for host machine hooks."
12265
12266 if test "$host_xm_file" != "$build_xm_file"; then
12267 count=a
12268 for f in $build_xm_file; do
12269 count=${count}x
12270 done
12271 if test $count = a; then
12272 :
12273 elif test $count = ax; then
12274 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12275 else
12276 echo "Using the following build machine macro files:"
12277 for f in $build_xm_file; do
12278 echo " $srcdir/config/$f"
12279 done
12280 fi
12281 fi
12282
12283 case ${host} in
12284 powerpc-*-darwin*)
12285 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12286 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12287 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291
12292 #include <sys/signal.h>
12293 #include <ucontext.h>
12294 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12295
12296 _ACEOF
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 gcc_cv_mcontext_underscores=no
12320 else
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 gcc_cv_mcontext_underscores=yes
12325 fi
12326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 fi
12328 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12329 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12330 if test $gcc_cv_mcontext_underscores = yes; then
12331
12332 cat >>confdefs.h <<\_ACEOF
12333 #define HAS_MCONTEXT_T_UNDERSCORES
12334 _ACEOF
12335
12336 fi
12337 ;;
12338 esac
12339
12340 # ---------
12341 # Threading
12342 # ---------
12343
12344 # Check if a valid thread package
12345 case ${enable_threads} in
12346 "" | no)
12347 # No threads
12348 target_thread_file='single'
12349 ;;
12350 yes)
12351 # default
12352 target_thread_file='single'
12353 ;;
12354 aix | dce | gnat | irix | posix | posix95 | rtems | \
12355 single | solaris | vxworks | win32 )
12356 target_thread_file=${enable_threads}
12357 ;;
12358 *)
12359 echo "${enable_threads} is an unknown thread package" 1>&2
12360 exit 1
12361 ;;
12362 esac
12363
12364 if test x${thread_file} = x; then
12365 # No thread file set by target-specific clauses in config.gcc,
12366 # so use file chosen by default logic above
12367 thread_file=${target_thread_file}
12368 fi
12369
12370 # Make gthr-default.h if we have a thread file.
12371 gthread_flags=
12372 if test $thread_file != single; then
12373 rm -f gthr-default.h
12374 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12375 gthread_flags=-DHAVE_GTHR_DEFAULT
12376 fi
12377
12378
12379 # --------
12380 # UNSORTED
12381 # --------
12382
12383 use_cxa_atexit=no
12384 if test x$enable___cxa_atexit = xyes || \
12385 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12386 if test x$host = x$target; then
12387 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12388 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12389 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define __cxa_atexit innocuous___cxa_atexit
12401
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char __cxa_atexit (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12406
12407 #ifdef __STDC__
12408 # include <limits.h>
12409 #else
12410 # include <assert.h>
12411 #endif
12412
12413 #undef __cxa_atexit
12414
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 #ifdef __cplusplus
12417 extern "C"
12418 {
12419 #endif
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char __cxa_atexit ();
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12427 choke me
12428 #else
12429 char (*f) () = __cxa_atexit;
12430 #endif
12431 #ifdef __cplusplus
12432 }
12433 #endif
12434
12435 int
12436 main ()
12437 {
12438 return f != __cxa_atexit;
12439 ;
12440 return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext conftest$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_func___cxa_atexit=yes
12466 else
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ac_cv_func___cxa_atexit=no
12471 fi
12472 rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 fi
12475 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12476 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12477 if test $ac_cv_func___cxa_atexit = yes; then
12478 use_cxa_atexit=yes
12479 else
12480 echo "__cxa_atexit can't be enabled on this target"
12481 fi
12482
12483 else
12484 # We can't check for __cxa_atexit when building a cross, so assume
12485 # it is available
12486 use_cxa_atexit=yes
12487 fi
12488 if test x$use_cxa_atexit = xyes; then
12489
12490 cat >>confdefs.h <<\_ACEOF
12491 #define DEFAULT_USE_CXA_ATEXIT 2
12492 _ACEOF
12493
12494 fi
12495 fi
12496
12497 # Look for a file containing extra machine modes.
12498 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12499 extra_modes_file='$(srcdir)'/config/${extra_modes}
12500
12501
12502 cat >>confdefs.h <<_ACEOF
12503 #define EXTRA_MODES_FILE "config/$extra_modes"
12504 _ACEOF
12505
12506 fi
12507
12508 # Convert extra_options into a form suitable for Makefile use.
12509 extra_opt_files=
12510 for f in $extra_options; do
12511 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12512 done
12513
12514
12515 # auto-host.h is the file containing items generated by autoconf and is
12516 # the first file included by config.h.
12517 # If host=build, it is correct to have bconfig include auto-host.h
12518 # as well. If host!=build, we are in error and need to do more
12519 # work to find out the build config parameters.
12520 if test x$host = x$build
12521 then
12522 build_auto=auto-host.h
12523 else
12524 # We create a subdir, then run autoconf in the subdir.
12525 # To prevent recursion we set host and build for the new
12526 # invocation of configure to the build for this invocation
12527 # of configure.
12528 tempdir=build.$$
12529 rm -rf $tempdir
12530 mkdir $tempdir
12531 cd $tempdir
12532 case ${srcdir} in
12533 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12534 *) realsrcdir=../${srcdir};;
12535 esac
12536 saved_CFLAGS="${CFLAGS}"
12537 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12538 ${realsrcdir}/configure \
12539 --enable-languages=${enable_languages-all} \
12540 --target=$target_alias --host=$build_alias --build=$build_alias
12541 CFLAGS="${saved_CFLAGS}"
12542
12543 # We just finished tests for the build machine, so rename
12544 # the file auto-build.h in the gcc directory.
12545 mv auto-host.h ../auto-build.h
12546 cd ..
12547 rm -rf $tempdir
12548 build_auto=auto-build.h
12549 fi
12550
12551
12552 tm_file="${tm_file} defaults.h"
12553 tm_p_file="${tm_p_file} tm-preds.h"
12554 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12555 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12556 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12557 # put this back in temporarily.
12558 xm_file="auto-host.h ansidecl.h ${xm_file}"
12559
12560 # --------
12561 # UNSORTED
12562 # --------
12563
12564 # Compile in configure arguments.
12565 if test -f configargs.h ; then
12566 # Being re-configured.
12567 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12568 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12569 else
12570 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12571 fi
12572
12573 # Double all backslashes and backslash all quotes to turn
12574 # gcc_config_arguments into a C string.
12575 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12576 $gcc_config_arguments
12577 EOF
12578 gcc_config_arguments_str=`cat conftest.out`
12579 rm -f conftest.out
12580
12581 cat > configargs.h <<EOF
12582 /* Generated automatically. */
12583 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12584 static const char thread_model[] = "$thread_file";
12585
12586 static const struct {
12587 const char *name, *value;
12588 } configure_default_options[] = $configure_default_options;
12589 EOF
12590
12591 # Internationalization
12592 # If we haven't got the data from the intl directory,
12593 # assume NLS is disabled.
12594 USE_NLS=no
12595 LIBINTL=
12596 LIBINTL_DEP=
12597 INCINTL=
12598 XGETTEXT=
12599 GMSGFMT=
12600 POSUB=
12601 if test -f ../intl/config.intl; then
12602 . ../intl/config.intl
12603 fi
12604 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12605 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12606 if test x"$USE_NLS" != xyes; then
12607 echo "$as_me:$LINENO: result: no" >&5
12608 echo "${ECHO_T}no" >&6
12609 else
12610 echo "$as_me:$LINENO: result: yes" >&5
12611 echo "${ECHO_T}yes" >&6
12612
12613 cat >>confdefs.h <<\_ACEOF
12614 #define ENABLE_NLS 1
12615 _ACEOF
12616
12617
12618 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12619 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12620 # Look for .po and .gmo files in the source directory.
12621 CATALOGS=
12622 XLINGUAS=
12623 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12624 # If there aren't any .gmo files the shell will give us the
12625 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12626 # weeded out.
12627 case "$cat" in *\**)
12628 continue;;
12629 esac
12630 # The quadruple backslash is collapsed to a double backslash
12631 # by the backticks, then collapsed again by the double quotes,
12632 # leaving us with one backslash in the sed expression (right
12633 # before the dot that mustn't act as a wildcard).
12634 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12635 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12636 # The user is allowed to set LINGUAS to a list of languages to
12637 # install catalogs for. If it's empty that means "all of them."
12638 if test "x$LINGUAS" = x; then
12639 CATALOGS="$CATALOGS $cat"
12640 XLINGUAS="$XLINGUAS $lang"
12641 else
12642 case "$LINGUAS" in *$lang*)
12643 CATALOGS="$CATALOGS $cat"
12644 XLINGUAS="$XLINGUAS $lang"
12645 ;;
12646 esac
12647 fi
12648 done
12649 LINGUAS="$XLINGUAS"
12650 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12651 echo "${ECHO_T}$LINGUAS" >&6
12652
12653
12654 DATADIRNAME=share
12655
12656 INSTOBJEXT=.mo
12657
12658 GENCAT=gencat
12659
12660 CATOBJEXT=.gmo
12661
12662 fi
12663
12664 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12665 # -liconv on the link line twice.
12666 case "$LIBINTL" in *$LIBICONV*)
12667 LIBICONV= ;;
12668 esac
12669
12670 # Check whether --enable-secureplt or --disable-secureplt was given.
12671 if test "${enable_secureplt+set}" = set; then
12672 enableval="$enable_secureplt"
12673
12674 fi;
12675
12676 # Windows32 Registry support for specifying GCC installation paths.
12677 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12678 if test "${enable_win32_registry+set}" = set; then
12679 enableval="$enable_win32_registry"
12680
12681 fi;
12682
12683 case $host_os in
12684 win32 | pe | cygwin* | mingw32* | uwin*)
12685 if test "x$enable_win32_registry" != xno; then
12686 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12687 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 ac_func_search_save_LIBS=$LIBS
12692 ac_cv_search_RegOpenKeyExA=no
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h. */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699
12700 /* Override any gcc2 internal prototype to avoid an error. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12706 char RegOpenKeyExA ();
12707 int
12708 main ()
12709 {
12710 RegOpenKeyExA ();
12711 ;
12712 return 0;
12713 }
12714 _ACEOF
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>conftest.er1
12718 ac_status=$?
12719 grep -v '^ *+' conftest.er1 >conftest.err
12720 rm -f conftest.er1
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag"
12725 || test ! -s conftest.err'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try='test -s conftest$ac_exeext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_search_RegOpenKeyExA="none required"
12738 else
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742 fi
12743 rm -f conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12746 for ac_lib in advapi32; do
12747 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754
12755 /* Override any gcc2 internal prototype to avoid an error. */
12756 #ifdef __cplusplus
12757 extern "C"
12758 #endif
12759 /* We use char because int might match the return type of a gcc2
12760 builtin and then its argument prototype would still apply. */
12761 char RegOpenKeyExA ();
12762 int
12763 main ()
12764 {
12765 RegOpenKeyExA ();
12766 ;
12767 return 0;
12768 }
12769 _ACEOF
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12773 ac_status=$?
12774 grep -v '^ *+' conftest.er1 >conftest.err
12775 rm -f conftest.er1
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12793 break
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 fi
12799 rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12801 done
12802 fi
12803 LIBS=$ac_func_search_save_LIBS
12804 fi
12805 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12806 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12807 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12808 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12809
12810 else
12811 enable_win32_registry=no
12812 fi
12813
12814 fi
12815
12816 if test "x$enable_win32_registry" != xno; then
12817
12818 cat >>confdefs.h <<\_ACEOF
12819 #define ENABLE_WIN32_REGISTRY 1
12820 _ACEOF
12821
12822
12823 if test "x$enable_win32_registry" != xyes \
12824 && test "x$enable_win32_registry" != x; then
12825
12826 cat >>confdefs.h <<_ACEOF
12827 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12828 _ACEOF
12829
12830 fi
12831 fi
12832 ;;
12833 esac
12834
12835 # Get an absolute path to the GCC top-level source directory
12836 holddir=`${PWDCMD-pwd}`
12837 cd $srcdir
12838 topdir=`${PWDCMD-pwd}`
12839 cd $holddir
12840
12841 # Conditionalize the makefile for this host machine.
12842 xmake_file=
12843 for f in ${host_xmake_file}
12844 do
12845 if test -f ${srcdir}/config/$f
12846 then
12847 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12848 fi
12849 done
12850
12851 # Conditionalize the makefile for this target machine.
12852 tmake_file_=
12853 for f in ${tmake_file}
12854 do
12855 if test -f ${srcdir}/config/$f
12856 then
12857 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12858 fi
12859 done
12860 tmake_file="${tmake_file_}"
12861
12862 # If the host doesn't support symlinks, modify CC in
12863 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12864 # Otherwise, we can use "CC=$(CC)".
12865 rm -f symtest.tem
12866 case "$LN_S" in
12867 *-s*)
12868 cc_set_by_configure="\$(CC)"
12869 quoted_cc_set_by_configure="\$(CC)"
12870 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12871 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12872 ;;
12873 *)
12874 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12875 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12876 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12877 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12878 ;;
12879 esac
12880
12881 # This is a terrible hack which will go away some day.
12882 host_cc_for_libada=${CC}
12883
12884
12885 out_object_file=`basename $out_file .c`.o
12886
12887 tm_file_list="options.h"
12888 tm_include_list="options.h"
12889 for f in $tm_file; do
12890 case $f in
12891 defaults.h )
12892 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12893 tm_include_list="${tm_include_list} $f"
12894 ;;
12895 * )
12896 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12897 tm_include_list="${tm_include_list} config/$f"
12898 ;;
12899 esac
12900 done
12901
12902 tm_p_file_list=
12903 tm_p_include_list=
12904 for f in $tm_p_file; do
12905 case $f in
12906 tm-preds.h )
12907 tm_p_file_list="${tm_p_file_list} $f"
12908 tm_p_include_list="${tm_p_include_list} $f"
12909 ;;
12910 * )
12911 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12912 tm_p_include_list="${tm_p_include_list} config/$f"
12913 esac
12914 done
12915
12916 xm_file_list=
12917 xm_include_list=
12918 for f in $xm_file; do
12919 case $f in
12920 ansidecl.h )
12921 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12922 xm_include_list="${xm_include_list} $f"
12923 ;;
12924 auto-host.h )
12925 xm_file_list="${xm_file_list} $f"
12926 xm_include_list="${xm_include_list} $f"
12927 ;;
12928 * )
12929 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12930 xm_include_list="${xm_include_list} config/$f"
12931 ;;
12932 esac
12933 done
12934
12935 host_xm_file_list=
12936 host_xm_include_list=
12937 for f in $host_xm_file; do
12938 case $f in
12939 ansidecl.h )
12940 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12941 host_xm_include_list="${host_xm_include_list} $f"
12942 ;;
12943 auto-host.h )
12944 host_xm_file_list="${host_xm_file_list} $f"
12945 host_xm_include_list="${host_xm_include_list} $f"
12946 ;;
12947 * )
12948 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12949 host_xm_include_list="${host_xm_include_list} config/$f"
12950 ;;
12951 esac
12952 done
12953
12954 build_xm_file_list=
12955 for f in $build_xm_file; do
12956 case $f in
12957 ansidecl.h )
12958 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12959 build_xm_include_list="${build_xm_include_list} $f"
12960 ;;
12961 auto-build.h | auto-host.h )
12962 build_xm_file_list="${build_xm_file_list} $f"
12963 build_xm_include_list="${build_xm_include_list} $f"
12964 ;;
12965 * )
12966 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12967 build_xm_include_list="${build_xm_include_list} config/$f"
12968 ;;
12969 esac
12970 done
12971
12972 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12973 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12974 CROSS=
12975 ALL=all.internal
12976 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12977
12978 if test "x$with_build_sysroot" != x; then
12979 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12980 else
12981 # This value is used, even on a native system, because
12982 # CROSS_SYSTEM_HEADER_DIR is just
12983 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12984 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12985 fi
12986
12987 if test x$host != x$target
12988 then
12989 CROSS="-DCROSS_COMPILE"
12990 ALL=all.cross
12991 SYSTEM_HEADER_DIR=$build_system_header_dir
12992 case "$host","$target" in
12993 # Darwin crosses can use the host system's libraries and headers,
12994 # because of the fat library support. Of course, it must be the
12995 # same version of Darwin on both sides. Allow the user to
12996 # just say --target=foo-darwin without a version number to mean
12997 # "the version on this system".
12998 *-*-darwin*,*-*-darwin*)
12999 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13000 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13001 if test $hostos = $targetos -o $targetos = darwin ; then
13002 CROSS=
13003 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13004 with_headers=yes
13005 fi
13006 ;;
13007
13008 i?86-*-*,x86_64-*-* \
13009 | powerpc*-*-*,powerpc64*-*-*)
13010 CROSS="$CROSS -DNATIVE_CROSS" ;;
13011 esac
13012 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13013 SYSTEM_HEADER_DIR=$build_system_header_dir
13014 fi
13015
13016 # If this is a cross-compiler that does not
13017 # have its own set of headers then define
13018 # inhibit_libc
13019
13020 # If this is using newlib, without having the headers available now,
13021 # then define inhibit_libc in LIBGCC2_CFLAGS.
13022 # This prevents libgcc2 from containing any code which requires libc
13023 # support.
13024 inhibit_libc=false
13025 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13026 test x$with_newlib = xyes ; } &&
13027 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13028 inhibit_libc=true
13029 fi
13030
13031
13032 # When building gcc with a cross-compiler, we need to adjust things so
13033 # that the generator programs are still built with the native compiler.
13034 # Also, we cannot run fixincludes or fix-header.
13035
13036 # These are the normal (build=host) settings:
13037 CC_FOR_BUILD='$(CC)'
13038 BUILD_CFLAGS='$(ALL_CFLAGS)'
13039 STMP_FIXINC=stmp-fixinc
13040
13041 # Possibly disable fixproto, on a per-target basis.
13042 case ${use_fixproto} in
13043 no)
13044 STMP_FIXPROTO=
13045 ;;
13046 yes)
13047 STMP_FIXPROTO=stmp-fixproto
13048 ;;
13049 esac
13050
13051
13052 # And these apply if build != host, or we are generating coverage data
13053 if test x$build != x$host || test "x$coverage_flags" != x
13054 then
13055 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13056
13057 if test "x$TARGET_SYSTEM_ROOT" = x; then
13058 if test "x$STMP_FIXPROTO" != x; then
13059 STMP_FIXPROTO=stmp-install-fixproto
13060 fi
13061 fi
13062 fi
13063
13064 # Expand extra_headers to include complete path.
13065 # This substitutes for lots of t-* files.
13066 extra_headers_list=
13067 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13068 for file in ${extra_headers} ; do
13069 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13070 done
13071
13072 # Define collect2 in Makefile.
13073 case $host_can_use_collect2 in
13074 no) collect2= ;;
13075 *) collect2='collect2$(exeext)' ;;
13076 esac
13077
13078
13079 # Add a definition of USE_COLLECT2 if system wants one.
13080 case $use_collect2 in
13081 no) use_collect2= ;;
13082 "") ;;
13083 *)
13084 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13085 xm_defines="${xm_defines} USE_COLLECT2"
13086 case $host_can_use_collect2 in
13087 no)
13088 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13089 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13090 { (exit 1); exit 1; }; }
13091 ;;
13092 esac
13093 ;;
13094 esac
13095
13096 # ---------------------------
13097 # Assembler & linker features
13098 # ---------------------------
13099
13100 # Identify the assembler which will work hand-in-glove with the newly
13101 # built GCC, so that we can examine its features. This is the assembler
13102 # which will be driven by the driver program.
13103 #
13104 # If build != host, and we aren't building gas in-tree, we identify a
13105 # build->target assembler and hope that it will have the same features
13106 # as the host->target assembler we'll be using.
13107 gcc_cv_gas_major_version=
13108 gcc_cv_gas_minor_version=
13109 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13110
13111 if test "${gcc_cv_as+set}" = set; then
13112 :
13113 else
13114
13115 if test -x "$DEFAULT_ASSEMBLER"; then
13116 gcc_cv_as="$DEFAULT_ASSEMBLER"
13117 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13118 && test -f ../gas/Makefile \
13119 && test x$build = x$host; then
13120 gcc_cv_as=../gas/as-new$build_exeext
13121 elif test -x as$build_exeext; then
13122 # Build using assembler in the current directory.
13123 gcc_cv_as=./as$build_exeext
13124 elif test -x $AS_FOR_TARGET; then
13125 gcc_cv_as="$AS_FOR_TARGET"
13126 else
13127 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13128 set dummy $AS_FOR_TARGET; ac_word=$2
13129 echo "$as_me:$LINENO: checking for $ac_word" >&5
13130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134 case $gcc_cv_as in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13137 ;;
13138 *)
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13141 do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150 done
13151 done
13152
13153 ;;
13154 esac
13155 fi
13156 gcc_cv_as=$ac_cv_path_gcc_cv_as
13157
13158 if test -n "$gcc_cv_as"; then
13159 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13160 echo "${ECHO_T}$gcc_cv_as" >&6
13161 else
13162 echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6
13164 fi
13165
13166 fi
13167 fi
13168
13169
13170 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13171
13172
13173 echo "$as_me:$LINENO: checking what assembler to use" >&5
13174 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13175 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13176 # Single tree build which includes gas. We want to prefer it
13177 # over whatever linker top-level may have detected, since
13178 # we'll use what we're building after installation anyway.
13179 echo "$as_me:$LINENO: result: newly built gas" >&5
13180 echo "${ECHO_T}newly built gas" >&6
13181 in_tree_gas=yes
13182 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13183 for f in $gcc_cv_as_bfd_srcdir/configure \
13184 $gcc_cv_as_gas_srcdir/configure \
13185 $gcc_cv_as_gas_srcdir/configure.in \
13186 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13187 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13188 if test x$gcc_cv_gas_version != x; then
13189 break
13190 fi
13191 done
13192 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13193 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13194 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13195 case $gcc_cv_gas_patch_version in
13196 "") gcc_cv_gas_patch_version="0" ;;
13197 esac
13198 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13199 + $gcc_cv_gas_minor_version \) \* 1000 \
13200 + $gcc_cv_gas_patch_version`
13201
13202 in_tree_gas_is_elf=no
13203 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13204 || (grep 'obj_format = multi' ../gas/Makefile \
13205 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13206 then
13207 in_tree_gas_is_elf=yes
13208 fi
13209 else
13210 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13211 echo "${ECHO_T}$gcc_cv_as" >&6
13212 in_tree_gas=no
13213 fi
13214
13215 # Identify the linker which will work hand-in-glove with the newly
13216 # built GCC, so that we can examine its features. This is the linker
13217 # which will be driven by the driver program.
13218 #
13219 # If build != host, and we aren't building gas in-tree, we identify a
13220 # build->target linker and hope that it will have the same features
13221 # as the host->target linker we'll be using.
13222 gcc_cv_gld_major_version=
13223 gcc_cv_gld_minor_version=
13224 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13225 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13226
13227 if test "${gcc_cv_ld+set}" = set; then
13228 :
13229 else
13230
13231 if test -x "$DEFAULT_LINKER"; then
13232 gcc_cv_ld="$DEFAULT_LINKER"
13233 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13234 && test -f ../ld/Makefile \
13235 && test x$build = x$host; then
13236 gcc_cv_ld=../ld/ld-new$build_exeext
13237 elif test -x collect-ld$build_exeext; then
13238 # Build using linker in the current directory.
13239 gcc_cv_ld=./collect-ld$build_exeext
13240 elif test -x $LD_FOR_TARGET; then
13241 gcc_cv_ld="$LD_FOR_TARGET"
13242 else
13243 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13244 set dummy $LD_FOR_TARGET; ac_word=$2
13245 echo "$as_me:$LINENO: checking for $ac_word" >&5
13246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13247 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 case $gcc_cv_ld in
13251 [\\/]* | ?:[\\/]*)
13252 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13253 ;;
13254 *)
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268
13269 ;;
13270 esac
13271 fi
13272 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13273
13274 if test -n "$gcc_cv_ld"; then
13275 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13276 echo "${ECHO_T}$gcc_cv_ld" >&6
13277 else
13278 echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6
13280 fi
13281
13282 fi
13283 fi
13284
13285
13286 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13287
13288
13289 echo "$as_me:$LINENO: checking what linker to use" >&5
13290 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13291 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13292 # Single tree build which includes ld. We want to prefer it
13293 # over whatever linker top-level may have detected, since
13294 # we'll use what we're building after installation anyway.
13295 echo "$as_me:$LINENO: result: newly built ld" >&5
13296 echo "${ECHO_T}newly built ld" >&6
13297 in_tree_ld=yes
13298 in_tree_ld_is_elf=no
13299 if (grep 'EMUL = .*elf' ../ld/Makefile \
13300 || grep 'EMUL = .*linux' ../ld/Makefile \
13301 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13302 in_tree_ld_is_elf=yes
13303 fi
13304 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
13305 do
13306 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13307 if test x$gcc_cv_gld_version != x; then
13308 break
13309 fi
13310 done
13311 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13312 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13313 else
13314 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13315 echo "${ECHO_T}$gcc_cv_ld" >&6
13316 in_tree_ld=no
13317 fi
13318
13319 # Figure out what nm we will be using.
13320 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13321 if test "${gcc_cv_nm+set}" = set; then
13322 :
13323 else
13324
13325 if test -f $gcc_cv_binutils_srcdir/configure.in \
13326 && test -f ../binutils/Makefile \
13327 && test x$build = x$host; then
13328 gcc_cv_nm=../binutils/nm-new$build_exeext
13329 elif test -x nm$build_exeext; then
13330 gcc_cv_nm=./nm$build_exeext
13331 elif test -x $NM_FOR_TARGET; then
13332 gcc_cv_nm="$NM_FOR_TARGET"
13333 else
13334 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13335 set dummy $NM_FOR_TARGET; ac_word=$2
13336 echo "$as_me:$LINENO: checking for $ac_word" >&5
13337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13338 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341 case $gcc_cv_nm in
13342 [\\/]* | ?:[\\/]*)
13343 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13344 ;;
13345 *)
13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
13352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357 done
13358 done
13359
13360 ;;
13361 esac
13362 fi
13363 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13364
13365 if test -n "$gcc_cv_nm"; then
13366 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13367 echo "${ECHO_T}$gcc_cv_nm" >&6
13368 else
13369 echo "$as_me:$LINENO: result: no" >&5
13370 echo "${ECHO_T}no" >&6
13371 fi
13372
13373 fi
13374 fi
13375
13376
13377 echo "$as_me:$LINENO: checking what nm to use" >&5
13378 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13379 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13380 # Single tree build which includes binutils.
13381 echo "$as_me:$LINENO: result: newly built nm" >&5
13382 echo "${ECHO_T}newly built nm" >&6
13383 in_tree_nm=yes
13384 else
13385 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13386 echo "${ECHO_T}$gcc_cv_nm" >&6
13387 in_tree_nm=no
13388 fi
13389
13390 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13391
13392
13393 # Figure out what objdump we will be using.
13394 if test "${gcc_cv_objdump+set}" = set; then
13395 :
13396 else
13397
13398 if test -f $gcc_cv_binutils_srcdir/configure.in \
13399 && test -f ../binutils/Makefile \
13400 && test x$build = x$host; then
13401 # Single tree build which includes binutils.
13402 gcc_cv_objdump=../binutils/objdump$build_exeext
13403 elif test -x objdump$build_exeext; then
13404 gcc_cv_objdump=./objdump$build_exeext
13405 elif test -x $OBJDUMP_FOR_TARGET; then
13406 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13407 else
13408 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13409 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13410 echo "$as_me:$LINENO: checking for $ac_word" >&5
13411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13412 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415 case $gcc_cv_objdump in
13416 [\\/]* | ?:[\\/]*)
13417 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13418 ;;
13419 *)
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13422 do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13430 fi
13431 done
13432 done
13433
13434 ;;
13435 esac
13436 fi
13437 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13438
13439 if test -n "$gcc_cv_objdump"; then
13440 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13441 echo "${ECHO_T}$gcc_cv_objdump" >&6
13442 else
13443 echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6
13445 fi
13446
13447 fi
13448 fi
13449
13450
13451 echo "$as_me:$LINENO: checking what objdump to use" >&5
13452 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13453 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13454 # Single tree build which includes binutils.
13455 echo "$as_me:$LINENO: result: newly built objdump" >&5
13456 echo "${ECHO_T}newly built objdump" >&6
13457 elif test x$gcc_cv_objdump = x; then
13458 echo "$as_me:$LINENO: result: not found" >&5
13459 echo "${ECHO_T}not found" >&6
13460 else
13461 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13462 echo "${ECHO_T}$gcc_cv_objdump" >&6
13463 fi
13464
13465 # Figure out what assembler alignment features are present.
13466 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13467 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13468 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471 gcc_cv_as_balign_and_p2align=no
13472 if test $in_tree_gas = yes; then
13473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13474 then gcc_cv_as_balign_and_p2align=yes
13475 fi
13476 elif test x$gcc_cv_as != x; then
13477 echo '.balign 4
13478 .p2align 2' > conftest.s
13479 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }
13485 then
13486 gcc_cv_as_balign_and_p2align=yes
13487 else
13488 echo "configure: failed program was" >&5
13489 cat conftest.s >&5
13490 fi
13491 rm -f conftest.o conftest.s
13492 fi
13493 fi
13494 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13495 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13496 if test $gcc_cv_as_balign_and_p2align = yes; then
13497
13498 cat >>confdefs.h <<\_ACEOF
13499 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13500 _ACEOF
13501
13502 fi
13503
13504 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13505 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13506 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 gcc_cv_as_max_skip_p2align=no
13510 if test $in_tree_gas = yes; then
13511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13512 then gcc_cv_as_max_skip_p2align=yes
13513 fi
13514 elif test x$gcc_cv_as != x; then
13515 echo '.p2align 4,,7' > conftest.s
13516 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }
13522 then
13523 gcc_cv_as_max_skip_p2align=yes
13524 else
13525 echo "configure: failed program was" >&5
13526 cat conftest.s >&5
13527 fi
13528 rm -f conftest.o conftest.s
13529 fi
13530 fi
13531 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13532 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13533 if test $gcc_cv_as_max_skip_p2align = yes; then
13534
13535 cat >>confdefs.h <<\_ACEOF
13536 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13537 _ACEOF
13538
13539 fi
13540
13541 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13542 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13543 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545 else
13546 gcc_cv_as_subsection_m1=no
13547 if test $in_tree_gas = yes; then
13548 if test $in_tree_gas_is_elf = yes \
13549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13550 then gcc_cv_as_subsection_m1=yes
13551 fi
13552 elif test x$gcc_cv_as != x; then
13553 echo 'conftest_label1: .word 0
13554 .subsection -1
13555 conftest_label2: .word 0
13556 .previous' > conftest.s
13557 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13563 then
13564 if test x$gcc_cv_nm != x; then
13565 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13566 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13567 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13568 then :
13569 else gcc_cv_as_subsection_m1=yes
13570 fi
13571 rm -f conftest.nm1 conftest.nm2
13572 fi
13573 else
13574 echo "configure: failed program was" >&5
13575 cat conftest.s >&5
13576 fi
13577 rm -f conftest.o conftest.s
13578 fi
13579 fi
13580 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13581 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13582 if test $gcc_cv_as_subsection_m1 = yes; then
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_GAS_SUBSECTION_ORDERING 1
13586 _ACEOF
13587
13588 fi
13589
13590 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13591 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13592 if test "${gcc_cv_as_weak+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 gcc_cv_as_weak=no
13596 if test $in_tree_gas = yes; then
13597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13598 then gcc_cv_as_weak=yes
13599 fi
13600 elif test x$gcc_cv_as != x; then
13601 echo ' .weak foobar' > conftest.s
13602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }
13608 then
13609 gcc_cv_as_weak=yes
13610 else
13611 echo "configure: failed program was" >&5
13612 cat conftest.s >&5
13613 fi
13614 rm -f conftest.o conftest.s
13615 fi
13616 fi
13617 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13618 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13619 if test $gcc_cv_as_weak = yes; then
13620
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_GAS_WEAK 1
13623 _ACEOF
13624
13625 fi
13626
13627 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13628 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13629 if test "${gcc_cv_as_weakref+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632 gcc_cv_as_weakref=no
13633 if test $in_tree_gas = yes; then
13634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13635 then gcc_cv_as_weakref=yes
13636 fi
13637 elif test x$gcc_cv_as != x; then
13638 echo ' .weakref foobar, barfnot' > conftest.s
13639 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }
13645 then
13646 gcc_cv_as_weakref=yes
13647 else
13648 echo "configure: failed program was" >&5
13649 cat conftest.s >&5
13650 fi
13651 rm -f conftest.o conftest.s
13652 fi
13653 fi
13654 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13655 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13656 if test $gcc_cv_as_weakref = yes; then
13657
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_GAS_WEAKREF 1
13660 _ACEOF
13661
13662 fi
13663
13664 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13665 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13666 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 gcc_cv_as_nsubspa_comdat=no
13670 if test $in_tree_gas = yes; then
13671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13672 then gcc_cv_as_nsubspa_comdat=yes
13673 fi
13674 elif test x$gcc_cv_as != x; then
13675 echo ' .SPACE $TEXT$
13676 .NSUBSPA $CODE$,COMDAT' > conftest.s
13677 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }
13683 then
13684 gcc_cv_as_nsubspa_comdat=yes
13685 else
13686 echo "configure: failed program was" >&5
13687 cat conftest.s >&5
13688 fi
13689 rm -f conftest.o conftest.s
13690 fi
13691 fi
13692 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13693 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13694 if test $gcc_cv_as_nsubspa_comdat = yes; then
13695
13696 cat >>confdefs.h <<\_ACEOF
13697 #define HAVE_GAS_NSUBSPA_COMDAT 1
13698 _ACEOF
13699
13700 fi
13701
13702 # .hidden needs to be supported in both the assembler and the linker,
13703 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13704 # This is irritatingly difficult to feature test for; we have to check the
13705 # date string after the version number. If we've got an in-tree
13706 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13707 # to be safe.
13708 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13709 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13710 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13711 if test "${gcc_cv_as_hidden+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 gcc_cv_as_hidden=no
13715 if test $in_tree_gas = yes; then
13716 if test $in_tree_gas_is_elf = yes \
13717 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13718 then gcc_cv_as_hidden=yes
13719 fi
13720 elif test x$gcc_cv_as != x; then
13721 echo ' .hidden foobar
13722 foobar:' > conftest.s
13723 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }
13729 then
13730 gcc_cv_as_hidden=yes
13731 else
13732 echo "configure: failed program was" >&5
13733 cat conftest.s >&5
13734 fi
13735 rm -f conftest.o conftest.s
13736 fi
13737 fi
13738 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13739 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13740
13741
13742 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13743 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13744 if test "${gcc_cv_ld_hidden+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747 if test $in_tree_ld = yes ; then
13748 gcc_cv_ld_hidden=no
13749 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
13750 && test $in_tree_ld_is_elf = yes; then
13751 gcc_cv_ld_hidden=yes
13752 fi
13753 else
13754 gcc_cv_ld_hidden=yes
13755 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13756 if echo "$ld_ver" | grep GNU > /dev/null; then
13757 ld_vers=`echo $ld_ver | sed -n \
13758 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13759 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13760 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13761 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13763 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13764 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13765 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
13766 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13767 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13768 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13769 if test 0"$ld_date" -lt 20020404; then
13770 if test -n "$ld_date"; then
13771 # If there was date string, but was earlier than 2002-04-04, fail
13772 gcc_cv_ld_hidden=no
13773 elif test -z "$ld_vers"; then
13774 # If there was no date string nor ld version number, something is wrong
13775 gcc_cv_ld_hidden=no
13776 else
13777 test -z "$ld_vers_patch" && ld_vers_patch=0
13778 if test "$ld_vers_major" -lt 2; then
13779 gcc_cv_ld_hidden=no
13780 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13781 gcc_cv_ld_hidden="no"
13782 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13783 gcc_cv_ld_hidden=no
13784 fi
13785 fi
13786 fi
13787 else
13788 case "${target}" in
13789 hppa64*-*-hpux* | ia64*-*-hpux*)
13790 gcc_cv_ld_hidden=yes
13791 ;;
13792 *)
13793 gcc_cv_ld_hidden=no
13794 ;;
13795 esac
13796 fi
13797 fi
13798 fi
13799 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13800 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13801 libgcc_visibility=no
13802
13803
13804 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13805 libgcc_visibility=yes
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define HAVE_GAS_HIDDEN 1
13809 _ACEOF
13810
13811 fi
13812
13813 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13814 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13815 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13816 if test "${gcc_cv_as_leb128+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 else
13819 gcc_cv_as_leb128=no
13820 if test $in_tree_gas = yes; then
13821 if test $in_tree_gas_is_elf = yes \
13822 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13823 then gcc_cv_as_leb128=yes
13824 fi
13825 elif test x$gcc_cv_as != x; then
13826 echo ' .data
13827 .uleb128 L2 - L1
13828 L1:
13829 .uleb128 1280
13830 .sleb128 -1010
13831 L2:' > conftest.s
13832 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }
13838 then
13839 # GAS versions before 2.11 do not support uleb128,
13840 # despite appearing to.
13841 # ??? There exists an elf-specific test that will crash
13842 # the assembler. Perhaps it's better to figure out whether
13843 # arbitrary sections are supported and try the test.
13844 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13845 if echo "$as_ver" | grep GNU > /dev/null; then
13846 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13847 as_major=`echo $as_ver | sed 's/\..*//'`
13848 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13849 if test $as_major -eq 2 && test $as_minor -lt 11
13850 then :
13851 else gcc_cv_as_leb128=yes
13852 fi
13853 fi
13854 else
13855 echo "configure: failed program was" >&5
13856 cat conftest.s >&5
13857 fi
13858 rm -f conftest.o conftest.s
13859 fi
13860 fi
13861 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13862 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13863 if test $gcc_cv_as_leb128 = yes; then
13864
13865 cat >>confdefs.h <<\_ACEOF
13866 #define HAVE_AS_LEB128 1
13867 _ACEOF
13868
13869 fi
13870
13871 # GAS versions up to and including 2.11.0 may mis-optimize
13872 # .eh_frame data.
13873 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13874 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13875 if test "${gcc_cv_as_eh_frame+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878 gcc_cv_as_eh_frame=no
13879 if test $in_tree_gas = yes; then
13880 if test $in_tree_gas_is_elf = yes \
13881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13882 then gcc_cv_as_eh_frame=yes
13883 fi
13884 elif test x$gcc_cv_as != x; then
13885 echo ' .text
13886 .LFB1:
13887 .4byte 0
13888 .L1:
13889 .4byte 0
13890 .LFE1:
13891 .section .eh_frame,"aw",@progbits
13892 __FRAME_BEGIN__:
13893 .4byte .LECIE1-.LSCIE1
13894 .LSCIE1:
13895 .4byte 0x0
13896 .byte 0x1
13897 .ascii "z\0"
13898 .byte 0x1
13899 .byte 0x78
13900 .byte 0x1a
13901 .byte 0x0
13902 .byte 0x4
13903 .4byte 1
13904 .p2align 1
13905 .LECIE1:
13906 .LSFDE1:
13907 .4byte .LEFDE1-.LASFDE1
13908 .LASFDE1:
13909 .4byte .LASFDE1-__FRAME_BEGIN__
13910 .4byte .LFB1
13911 .4byte .LFE1-.LFB1
13912 .byte 0x4
13913 .4byte .LFE1-.LFB1
13914 .byte 0x4
13915 .4byte .L1-.LFB1
13916 .LEFDE1:' > conftest.s
13917 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }
13923 then
13924 cat > conftest.lit <<EOF
13925 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13926 0010 01000000 12000000 18000000 00000000 ................
13927 0020 08000000 04080000 0044 .........D
13928 EOF
13929 cat > conftest.big <<EOF
13930 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13931 0010 00000001 00000012 00000018 00000000 ................
13932 0020 00000008 04000000 0844 .........D
13933 EOF
13934 # If the assembler didn't choke, and we can objdump,
13935 # and we got the correct data, then succeed.
13936 if test x$gcc_cv_objdump != x \
13937 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13938 | tail -3 > conftest.got \
13939 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13940 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13941 then
13942 gcc_cv_as_eh_frame=yes
13943 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 gcc_cv_as_eh_frame=buggy
13950 else
13951 # Uh oh, what do we do now?
13952 gcc_cv_as_eh_frame=no
13953 fi
13954 else
13955 echo "configure: failed program was" >&5
13956 cat conftest.s >&5
13957 fi
13958 rm -f conftest.o conftest.s
13959 fi
13960 fi
13961 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13962 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13963
13964
13965 if test $gcc_cv_as_eh_frame = buggy; then
13966
13967 cat >>confdefs.h <<\_ACEOF
13968 #define USE_AS_TRADITIONAL_FORMAT 1
13969 _ACEOF
13970
13971 fi
13972
13973 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13974 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13975 if test "${gcc_cv_as_shf_merge+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 else
13978 gcc_cv_as_shf_merge=no
13979 if test $in_tree_gas = yes; then
13980 if test $in_tree_gas_is_elf = yes \
13981 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13982 then gcc_cv_as_shf_merge=yes
13983 fi
13984 elif test x$gcc_cv_as != x; then
13985 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13986 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }
13992 then
13993 gcc_cv_as_shf_merge=yes
13994 else
13995 echo "configure: failed program was" >&5
13996 cat conftest.s >&5
13997 fi
13998 rm -f conftest.o conftest.s
13999 fi
14000 fi
14001 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14002 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14003
14004 if test $gcc_cv_as_shf_merge = no; then
14005 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14006 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14007 if test "${gcc_cv_as_shf_merge+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 gcc_cv_as_shf_merge=no
14011 if test $in_tree_gas = yes; then
14012 if test $in_tree_gas_is_elf = yes \
14013 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14014 then gcc_cv_as_shf_merge=yes
14015 fi
14016 elif test x$gcc_cv_as != x; then
14017 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14018 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }
14024 then
14025 gcc_cv_as_shf_merge=yes
14026 else
14027 echo "configure: failed program was" >&5
14028 cat conftest.s >&5
14029 fi
14030 rm -f conftest.o conftest.s
14031 fi
14032 fi
14033 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14034 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14035
14036 fi
14037
14038 cat >>confdefs.h <<_ACEOF
14039 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14040 _ACEOF
14041
14042
14043 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14044 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14045 if test "${gcc_cv_as_comdat_group+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 gcc_cv_as_comdat_group=no
14049 if test $in_tree_gas = yes; then
14050 if test $in_tree_gas_is_elf = yes \
14051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14052 then gcc_cv_as_comdat_group=yes
14053 fi
14054 elif test x$gcc_cv_as != x; then
14055 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14056 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }
14062 then
14063 gcc_cv_as_comdat_group=yes
14064 else
14065 echo "configure: failed program was" >&5
14066 cat conftest.s >&5
14067 fi
14068 rm -f conftest.o conftest.s
14069 fi
14070 fi
14071 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14072 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14073
14074 if test $gcc_cv_as_comdat_group = yes; then
14075 gcc_cv_as_comdat_group_percent=no
14076 else
14077 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14078 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14079 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082 gcc_cv_as_comdat_group_percent=no
14083 if test $in_tree_gas = yes; then
14084 if test $in_tree_gas_is_elf = yes \
14085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14086 then gcc_cv_as_comdat_group_percent=yes
14087 fi
14088 elif test x$gcc_cv_as != x; then
14089 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14090 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }
14096 then
14097 gcc_cv_as_comdat_group_percent=yes
14098 else
14099 echo "configure: failed program was" >&5
14100 cat conftest.s >&5
14101 fi
14102 rm -f conftest.o conftest.s
14103 fi
14104 fi
14105 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14106 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14107
14108 fi
14109 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14110 comdat_group=yes
14111 if test 0"$ld_date" -lt 20050308; then
14112 if test -n "$ld_date"; then
14113 # If there was date string, but was earlier than 2005-03-08, fail
14114 comdat_group=no
14115 elif test "$ld_vers_major" -lt 2; then
14116 comdat_group=no
14117 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14118 comdat_group=no
14119 fi
14120 fi
14121 else
14122 # assume linkers other than GNU ld don't support COMDAT group
14123 comdat_group=no
14124 fi
14125 if test $comdat_group = no; then
14126 gcc_cv_as_comdat_group=no
14127 gcc_cv_as_comdat_group_percent=no
14128 fi
14129
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14132 _ACEOF
14133
14134
14135 # Thread-local storage - the check is heavily parametrized.
14136 conftest_s=
14137 tls_first_major=
14138 tls_first_minor=
14139 tls_as_opt=
14140 case "$target" in
14141 alpha*-*-*)
14142 conftest_s='
14143 .section ".tdata","awT",@progbits
14144 foo: .long 25
14145 .text
14146 ldq $27,__tls_get_addr($29) !literal!1
14147 lda $16,foo($29) !tlsgd!1
14148 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14149 ldq $27,__tls_get_addr($29) !literal!2
14150 lda $16,foo($29) !tlsldm!2
14151 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14152 ldq $1,foo($29) !gotdtprel
14153 ldah $2,foo($29) !dtprelhi
14154 lda $3,foo($2) !dtprello
14155 lda $4,foo($29) !dtprel
14156 ldq $1,foo($29) !gottprel
14157 ldah $2,foo($29) !tprelhi
14158 lda $3,foo($2) !tprello
14159 lda $4,foo($29) !tprel'
14160 tls_first_major=2
14161 tls_first_minor=13
14162 tls_as_opt=--fatal-warnings
14163 ;;
14164 frv*-*-*)
14165 conftest_s='
14166 .section ".tdata","awT",@progbits
14167 x: .long 25
14168 .text
14169 call #gettlsoff(x)'
14170 tls_first_major=2
14171 tls_first_minor=14
14172 ;;
14173 hppa*-*-linux*)
14174 conftest_s='
14175 t1: .reg %r20
14176 t2: .reg %r21
14177 gp: .reg %r19
14178 .section ".tdata","awT",@progbits
14179 foo: .long 25
14180 .text
14181 .align 4
14182 addil LT%foo-$tls_gdidx$,gp
14183 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14184 b __tls_get_addr
14185 nop
14186 addil LT%foo-$tls_ldidx$,gp
14187 b __tls_get_addr
14188 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14189 addil LR%foo-$tls_dtpoff$,%ret0
14190 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14191 mfctl %cr27,%t1
14192 addil LT%foo-$tls_ieoff$,gp
14193 ldw RT%foo-$tls_ieoff$(%r1),%t2
14194 add %t1,%t2,%t3
14195 mfctl %cr27,%t1
14196 addil LR%foo-$tls_leoff$,%t1
14197 ldo RR%foo-$tls_leoff$(%r1),%t2'
14198 tls_first_major=2
14199 tls_first_minor=15
14200 tls_as_opt=--fatal-warnings
14201 ;;
14202 arm*-*-*)
14203 conftest_s='
14204 .section ".tdata","awT",%progbits
14205 foo: .long 25
14206 .text
14207 .word foo(gottpoff)
14208 .word foo(tpoff)
14209 .word foo(tlsgd)
14210 .word foo(tlsldm)
14211 .word foo(tlsldo)'
14212 tls_first_major=2
14213 tls_first_minor=17
14214 ;;
14215 i[34567]86-*-*)
14216 conftest_s='
14217 .section ".tdata","awT",@progbits
14218 foo: .long 25
14219 .text
14220 movl %gs:0, %eax
14221 leal foo@TLSGD(,%ebx,1), %eax
14222 leal foo@TLSLDM(%ebx), %eax
14223 leal foo@DTPOFF(%eax), %edx
14224 movl foo@GOTTPOFF(%ebx), %eax
14225 subl foo@GOTTPOFF(%ebx), %eax
14226 addl foo@GOTNTPOFF(%ebx), %eax
14227 movl foo@INDNTPOFF, %eax
14228 movl $foo@TPOFF, %eax
14229 subl $foo@TPOFF, %eax
14230 leal foo@NTPOFF(%ecx), %eax'
14231 tls_first_major=2
14232 tls_first_minor=14
14233 tls_as_opt=--fatal-warnings
14234 ;;
14235 x86_64-*-*)
14236 conftest_s='
14237 .section ".tdata","awT",@progbits
14238 foo: .long 25
14239 .text
14240 movq %fs:0, %rax
14241 leaq foo@TLSGD(%rip), %rdi
14242 leaq foo@TLSLD(%rip), %rdi
14243 leaq foo@DTPOFF(%rax), %rdx
14244 movq foo@GOTTPOFF(%rip), %rax
14245 movq $foo@TPOFF, %rax'
14246 tls_first_major=2
14247 tls_first_minor=14
14248 tls_as_opt=--fatal-warnings
14249 ;;
14250 ia64-*-*)
14251 conftest_s='
14252 .section ".tdata","awT",@progbits
14253 foo: data8 25
14254 .text
14255 addl r16 = @ltoff(@dtpmod(foo#)), gp
14256 addl r17 = @ltoff(@dtprel(foo#)), gp
14257 addl r18 = @ltoff(@tprel(foo#)), gp
14258 addl r19 = @dtprel(foo#), gp
14259 adds r21 = @dtprel(foo#), r13
14260 movl r23 = @dtprel(foo#)
14261 addl r20 = @tprel(foo#), gp
14262 adds r22 = @tprel(foo#), r13
14263 movl r24 = @tprel(foo#)'
14264 tls_first_major=2
14265 tls_first_minor=13
14266 tls_as_opt=--fatal-warnings
14267 ;;
14268 mips*-*-*)
14269 conftest_s='
14270 .section .tdata,"awT",@progbits
14271 x:
14272 .word 2
14273 .text
14274 addiu $4, $28, %tlsgd(x)
14275 addiu $4, $28, %tlsldm(x)
14276 lui $4, %dtprel_hi(x)
14277 addiu $4, $4, %dtprel_lo(x)
14278 lw $4, %gottprel(x)($28)
14279 lui $4, %tprel_hi(x)
14280 addiu $4, $4, %tprel_lo(x)'
14281 tls_first_major=2
14282 tls_first_minor=16
14283 tls_as_opt='-32 --fatal-warnings'
14284 ;;
14285 powerpc-*-*)
14286 conftest_s='
14287 .section ".tdata","awT",@progbits
14288 .align 2
14289 ld0: .space 4
14290 ld1: .space 4
14291 x1: .space 4
14292 x2: .space 4
14293 x3: .space 4
14294 .text
14295 addi 3,31,ld0@got@tlsgd
14296 bl __tls_get_addr
14297 addi 3,31,x1@got@tlsld
14298 bl __tls_get_addr
14299 addi 9,3,x1@dtprel
14300 addis 9,3,x2@dtprel@ha
14301 addi 9,9,x2@dtprel@l
14302 lwz 9,x3@got@tprel(31)
14303 add 9,9,x@tls
14304 addi 9,2,x1@tprel
14305 addis 9,2,x2@tprel@ha
14306 addi 9,9,x2@tprel@l'
14307 tls_first_major=2
14308 tls_first_minor=14
14309 tls_as_opt="-a32 --fatal-warnings"
14310 ;;
14311 powerpc64-*-*)
14312 conftest_s='
14313 .section ".tdata","awT",@progbits
14314 .align 3
14315 ld0: .space 8
14316 ld1: .space 8
14317 x1: .space 8
14318 x2: .space 8
14319 x3: .space 8
14320 .text
14321 addi 3,2,ld0@got@tlsgd
14322 bl .__tls_get_addr
14323 nop
14324 addi 3,2,ld1@toc
14325 bl .__tls_get_addr
14326 nop
14327 addi 3,2,x1@got@tlsld
14328 bl .__tls_get_addr
14329 nop
14330 addi 9,3,x1@dtprel
14331 bl .__tls_get_addr
14332 nop
14333 addis 9,3,x2@dtprel@ha
14334 addi 9,9,x2@dtprel@l
14335 bl .__tls_get_addr
14336 nop
14337 ld 9,x3@got@dtprel(2)
14338 add 9,9,3
14339 bl .__tls_get_addr
14340 nop'
14341 tls_first_major=2
14342 tls_first_minor=14
14343 tls_as_opt="-a64 --fatal-warnings"
14344 ;;
14345 s390-*-*)
14346 conftest_s='
14347 .section ".tdata","awT",@progbits
14348 foo: .long 25
14349 .text
14350 .long foo@TLSGD
14351 .long foo@TLSLDM
14352 .long foo@DTPOFF
14353 .long foo@NTPOFF
14354 .long foo@GOTNTPOFF
14355 .long foo@INDNTPOFF
14356 l %r1,foo@GOTNTPOFF(%r12)
14357 l %r1,0(%r1):tls_load:foo
14358 bas %r14,0(%r1,%r13):tls_gdcall:foo
14359 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14360 tls_first_major=2
14361 tls_first_minor=14
14362 tls_as_opt="-m31 --fatal-warnings"
14363 ;;
14364 s390x-*-*)
14365 conftest_s='
14366 .section ".tdata","awT",@progbits
14367 foo: .long 25
14368 .text
14369 .quad foo@TLSGD
14370 .quad foo@TLSLDM
14371 .quad foo@DTPOFF
14372 .quad foo@NTPOFF
14373 .quad foo@GOTNTPOFF
14374 lg %r1,foo@GOTNTPOFF(%r12)
14375 larl %r1,foo@INDNTPOFF
14376 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14377 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14378 tls_first_major=2
14379 tls_first_minor=14
14380 tls_as_opt="-m64 -Aesame --fatal-warnings"
14381 ;;
14382 sh-*-* | sh[34]-*-*)
14383 conftest_s='
14384 .section ".tdata","awT",@progbits
14385 foo: .long 25
14386 .text
14387 .long foo@TLSGD
14388 .long foo@TLSLDM
14389 .long foo@DTPOFF
14390 .long foo@GOTTPOFF
14391 .long foo@TPOFF'
14392 tls_first_major=2
14393 tls_first_minor=13
14394 tls_as_opt=--fatal-warnings
14395 ;;
14396 sparc*-*-*)
14397 case "$target" in
14398 sparc*-sun-solaris2.[56789]*)
14399 # TLS was introduced in the Solaris 9 4/04 release but
14400 # we do not enable it by default on Solaris 9 either.
14401 if test "x$enable_tls" = xyes ; then
14402 on_solaris=yes
14403 else
14404 enable_tls=no;
14405 fi
14406 ;;
14407 sparc*-sun-solaris2.*)
14408 on_solaris=yes
14409 ;;
14410 *)
14411 on_solaris=no
14412 ;;
14413 esac
14414 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14415 conftest_s='
14416 .section ".tdata",#alloc,#write,#tls
14417 foo: .long 25
14418 .text
14419 sethi %tgd_hi22(foo), %o0
14420 add %o0, %tgd_lo10(foo), %o1
14421 add %l7, %o1, %o0, %tgd_add(foo)
14422 call __tls_get_addr, %tgd_call(foo)
14423 sethi %tldm_hi22(foo), %l1
14424 add %l1, %tldm_lo10(foo), %l2
14425 add %l7, %l2, %o0, %tldm_add(foo)
14426 call __tls_get_addr, %tldm_call(foo)
14427 sethi %tldo_hix22(foo), %l3
14428 xor %l3, %tldo_lox10(foo), %l4
14429 add %o0, %l4, %l5, %tldo_add(foo)
14430 sethi %tie_hi22(foo), %o3
14431 add %o3, %tie_lo10(foo), %o3
14432 ld [%l7 + %o3], %o2, %tie_ld(foo)
14433 add %g7, %o2, %o4, %tie_add(foo)
14434 sethi %tle_hix22(foo), %l1
14435 xor %l1, %tle_lox10(foo), %o5
14436 ld [%g7 + %o5], %o1'
14437 tls_first_major=0
14438 tls_first_minor=0
14439 else
14440 conftest_s='
14441 .section ".tdata","awT",@progbits
14442 foo: .long 25
14443 .text
14444 sethi %tgd_hi22(foo), %o0
14445 add %o0, %tgd_lo10(foo), %o1
14446 add %l7, %o1, %o0, %tgd_add(foo)
14447 call __tls_get_addr, %tgd_call(foo)
14448 sethi %tldm_hi22(foo), %l1
14449 add %l1, %tldm_lo10(foo), %l2
14450 add %l7, %l2, %o0, %tldm_add(foo)
14451 call __tls_get_addr, %tldm_call(foo)
14452 sethi %tldo_hix22(foo), %l3
14453 xor %l3, %tldo_lox10(foo), %l4
14454 add %o0, %l4, %l5, %tldo_add(foo)
14455 sethi %tie_hi22(foo), %o3
14456 add %o3, %tie_lo10(foo), %o3
14457 ld [%l7 + %o3], %o2, %tie_ld(foo)
14458 add %g7, %o2, %o4, %tie_add(foo)
14459 sethi %tle_hix22(foo), %l1
14460 xor %l1, %tle_lox10(foo), %o5
14461 ld [%g7 + %o5], %o1'
14462 tls_first_major=2
14463 tls_first_minor=14
14464 tls_as_opt="-32 --fatal-warnings"
14465 fi
14466 ;;
14467 esac
14468 set_have_as_tls=no
14469 if test "x$enable_tls" = xno ; then
14470 : # TLS explicitly disabled.
14471 elif test "x$enable_tls" = xyes ; then
14472 set_have_as_tls=yes # TLS explicitly enabled.
14473 elif test -z "$tls_first_major"; then
14474 : # If we don't have a check, assume no support.
14475 else
14476 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14477 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14478 if test "${gcc_cv_as_tls+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 gcc_cv_as_tls=no
14482 if test $in_tree_gas = yes; then
14483 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14484 then gcc_cv_as_tls=yes
14485 fi
14486 elif test x$gcc_cv_as != x; then
14487 echo "$conftest_s" > conftest.s
14488 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }
14494 then
14495 gcc_cv_as_tls=yes
14496 else
14497 echo "configure: failed program was" >&5
14498 cat conftest.s >&5
14499 fi
14500 rm -f conftest.o conftest.s
14501 fi
14502 fi
14503 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14504 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14505 if test $gcc_cv_as_tls = yes; then
14506 set_have_as_tls=yes
14507 fi
14508 fi
14509 if test $set_have_as_tls = yes ; then
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_AS_TLS 1
14513 _ACEOF
14514
14515 fi
14516
14517 # Target-specific assembler checks.
14518
14519 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14520 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14521 gcc_cv_ld_static_dynamic=no
14522 if test $in_tree_ld = yes ; then
14523 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14524 gcc_cv_ld_static_dynamic=yes
14525 fi
14526 elif test x$gcc_cv_ld != x; then
14527 # Check if linker supports -Bstatic/-Bdynamic option
14528 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14529 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14530 gcc_cv_ld_static_dynamic=yes
14531 fi
14532 fi
14533 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14534
14535 cat >>confdefs.h <<\_ACEOF
14536 #define HAVE_LD_STATIC_DYNAMIC 1
14537 _ACEOF
14538
14539 fi
14540 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14541 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14542
14543 if test x"$demangler_in_ld" = xyes; then
14544 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14545 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14546 gcc_cv_ld_demangle=no
14547 if test $in_tree_ld = yes; then
14548 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14549 gcc_cv_ld_demangle=yes
14550 fi
14551 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14552 # Check if the GNU linker supports --demangle option
14553 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14554 gcc_cv_ld_demangle=yes
14555 fi
14556 fi
14557 if test x"$gcc_cv_ld_demangle" = xyes; then
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_LD_DEMANGLE 1
14561 _ACEOF
14562
14563 fi
14564 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14565 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14566 fi
14567
14568 case "$target" in
14569 # All TARGET_ABI_OSF targets.
14570 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14571 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14572 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14573 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 else
14576 gcc_cv_as_alpha_explicit_relocs=no
14577 if test $in_tree_gas = yes; then
14578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14579 then gcc_cv_as_alpha_explicit_relocs=yes
14580 fi
14581 elif test x$gcc_cv_as != x; then
14582 echo ' .set nomacro
14583 .text
14584 extbl $3, $2, $3 !lituse_bytoff!1
14585 ldq $2, a($29) !literal!1
14586 ldq $4, b($29) !literal!2
14587 ldq_u $3, 0($2) !lituse_base!1
14588 ldq $27, f($29) !literal!5
14589 jsr $26, ($27), f !lituse_jsr!5
14590 ldah $29, 0($26) !gpdisp!3
14591 lda $0, c($29) !gprel
14592 ldah $1, d($29) !gprelhigh
14593 lda $1, d($1) !gprellow
14594 lda $29, 0($29) !gpdisp!3' > conftest.s
14595 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }
14601 then
14602 gcc_cv_as_alpha_explicit_relocs=yes
14603 else
14604 echo "configure: failed program was" >&5
14605 cat conftest.s >&5
14606 fi
14607 rm -f conftest.o conftest.s
14608 fi
14609 fi
14610 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14611 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14612 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_AS_EXPLICIT_RELOCS 1
14616 _ACEOF
14617
14618 fi
14619 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14620 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14621 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624 gcc_cv_as_alpha_jsrdirect_relocs=no
14625 if test $in_tree_gas = yes; then
14626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14627 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14628 fi
14629 elif test x$gcc_cv_as != x; then
14630 echo ' .set nomacro
14631 .text
14632 ldq $27, a($29) !literal!1
14633 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14637 ac_status=$?
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }
14640 then
14641 gcc_cv_as_alpha_jsrdirect_relocs=yes
14642 else
14643 echo "configure: failed program was" >&5
14644 cat conftest.s >&5
14645 fi
14646 rm -f conftest.o conftest.s
14647 fi
14648 fi
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14650 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14651 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14652
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_AS_JSRDIRECT_RELOCS 1
14655 _ACEOF
14656
14657 fi
14658 ;;
14659
14660 cris-*-*)
14661 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14662 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14663 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 gcc_cv_as_cris_no_mul_bug=no
14667 if test $in_tree_gas = yes; then
14668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14669 then gcc_cv_as_cris_no_mul_bug=yes
14670 fi
14671 elif test x$gcc_cv_as != x; then
14672 echo '.text' > conftest.s
14673 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }
14679 then
14680 gcc_cv_as_cris_no_mul_bug=yes
14681 else
14682 echo "configure: failed program was" >&5
14683 cat conftest.s >&5
14684 fi
14685 rm -f conftest.o conftest.s
14686 fi
14687 fi
14688 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14689 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14690 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14691
14692 cat >>confdefs.h <<\_ACEOF
14693 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14694 _ACEOF
14695
14696 fi
14697 ;;
14698
14699 sparc*-*-*)
14700 echo "$as_me:$LINENO: checking assembler for .register" >&5
14701 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14702 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 else
14705 gcc_cv_as_sparc_register_op=no
14706 if test x$gcc_cv_as != x; then
14707 echo '.register %g2, #scratch' > conftest.s
14708 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }
14714 then
14715 gcc_cv_as_sparc_register_op=yes
14716 else
14717 echo "configure: failed program was" >&5
14718 cat conftest.s >&5
14719 fi
14720 rm -f conftest.o conftest.s
14721 fi
14722 fi
14723 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14724 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14725 if test $gcc_cv_as_sparc_register_op = yes; then
14726
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14729 _ACEOF
14730
14731 fi
14732
14733 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14734 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14735 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738 gcc_cv_as_sparc_relax=no
14739 if test x$gcc_cv_as != x; then
14740 echo '.text' > conftest.s
14741 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }
14747 then
14748 gcc_cv_as_sparc_relax=yes
14749 else
14750 echo "configure: failed program was" >&5
14751 cat conftest.s >&5
14752 fi
14753 rm -f conftest.o conftest.s
14754 fi
14755 fi
14756 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14757 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14758 if test $gcc_cv_as_sparc_relax = yes; then
14759
14760 cat >>confdefs.h <<\_ACEOF
14761 #define HAVE_AS_RELAX_OPTION 1
14762 _ACEOF
14763
14764 fi
14765
14766 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14767 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14768 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771 gcc_cv_as_sparc_ua_pcrel=no
14772 if test x$gcc_cv_as != x; then
14773 echo '.text
14774 foo:
14775 nop
14776 .data
14777 .align 4
14778 .byte 0
14779 .uaword %r_disp32(foo)' > conftest.s
14780 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14786 then
14787 if test x$gcc_cv_ld != x \
14788 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14789 gcc_cv_as_sparc_ua_pcrel=yes
14790 fi
14791 rm -f conftest
14792 else
14793 echo "configure: failed program was" >&5
14794 cat conftest.s >&5
14795 fi
14796 rm -f conftest.o conftest.s
14797 fi
14798 fi
14799 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14800 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14801 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_AS_SPARC_UA_PCREL 1
14805 _ACEOF
14806
14807
14808 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14809 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14810 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813 gcc_cv_as_sparc_ua_pcrel_hidden=no
14814 if test x$gcc_cv_as != x; then
14815 echo '.data
14816 .align 4
14817 .byte 0x31
14818 .uaword %r_disp32(foo)
14819 .byte 0x32, 0x33, 0x34
14820 .global foo
14821 .hidden foo
14822 foo:
14823 .skip 4' > conftest.s
14824 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14827 ac_status=$?
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }
14830 then
14831 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14832 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14833 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14834 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14835 if $gcc_cv_objdump -R conftest 2> /dev/null \
14836 | grep 'DISP32' > /dev/null 2>&1; then
14837 :
14838 else
14839 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14840 fi
14841 fi
14842 rm -f conftest
14843 else
14844 echo "configure: failed program was" >&5
14845 cat conftest.s >&5
14846 fi
14847 rm -f conftest.o conftest.s
14848 fi
14849 fi
14850 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14851 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14852 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14853
14854 cat >>confdefs.h <<\_ACEOF
14855 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14856 _ACEOF
14857
14858 fi
14859
14860 fi # unaligned pcrel relocs
14861
14862 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14863 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14864 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 else
14867 gcc_cv_as_sparc_offsetable_lo10=no
14868 if test x$gcc_cv_as != x; then
14869 echo '.text
14870 or %g1, %lo(ab) + 12, %g1
14871 or %g1, %lo(ab + 12), %g1' > conftest.s
14872 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }
14878 then
14879 if test x$gcc_cv_objdump != x \
14880 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14881 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14882 gcc_cv_as_sparc_offsetable_lo10=yes
14883 fi
14884 else
14885 echo "configure: failed program was" >&5
14886 cat conftest.s >&5
14887 fi
14888 rm -f conftest.o conftest.s
14889 fi
14890 fi
14891 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14892 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14893 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14894
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_AS_OFFSETABLE_LO10 1
14897 _ACEOF
14898
14899 fi
14900 ;;
14901
14902 i[34567]86-*-* | x86_64-*-*)
14903 case $target_os in
14904 cygwin* | pe | mingw32*)
14905 # Used for DWARF 2 in PE
14906 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14907 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14908 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 gcc_cv_as_ix86_pe_secrel32=no
14912 if test $in_tree_gas = yes; then
14913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14914 then gcc_cv_as_ix86_pe_secrel32=yes
14915 fi
14916 elif test x$gcc_cv_as != x; then
14917 echo '.text
14918 foo: nop
14919 .data
14920 .secrel32 foo' > conftest.s
14921 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }
14927 then
14928 if test x$gcc_cv_ld != x \
14929 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14930 gcc_cv_as_ix86_pe_secrel32=yes
14931 fi
14932 rm -f conftest
14933 else
14934 echo "configure: failed program was" >&5
14935 cat conftest.s >&5
14936 fi
14937 rm -f conftest.o conftest.s
14938 fi
14939 fi
14940 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14941 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14942 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14943
14944 cat >>confdefs.h <<\_ACEOF
14945 #define HAVE_GAS_PE_SECREL32_RELOC 1
14946 _ACEOF
14947
14948 fi
14949 ;;
14950 esac
14951
14952 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14953 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14954 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957 gcc_cv_as_ix86_filds_fists=no
14958 if test $in_tree_gas = yes; then
14959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14960 then gcc_cv_as_ix86_filds_fists=yes
14961 fi
14962 elif test x$gcc_cv_as != x; then
14963 echo 'filds mem; fists mem' > conftest.s
14964 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14967 ac_status=$?
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }
14970 then
14971 gcc_cv_as_ix86_filds_fists=yes
14972 else
14973 echo "configure: failed program was" >&5
14974 cat conftest.s >&5
14975 fi
14976 rm -f conftest.o conftest.s
14977 fi
14978 fi
14979 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14980 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14981 if test $gcc_cv_as_ix86_filds_fists = yes; then
14982
14983 cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_GAS_FILDS_FISTS 1
14985 _ACEOF
14986
14987 fi
14988
14989 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14990 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14991 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994 gcc_cv_as_ix86_cmov_sun_syntax=no
14995 if test x$gcc_cv_as != x; then
14996 echo 'cmovl.l %edx, %eax' > conftest.s
14997 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }
15003 then
15004 gcc_cv_as_ix86_cmov_sun_syntax=yes
15005 else
15006 echo "configure: failed program was" >&5
15007 cat conftest.s >&5
15008 fi
15009 rm -f conftest.o conftest.s
15010 fi
15011 fi
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15013 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15014 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15018 _ACEOF
15019
15020 fi
15021
15022 # This one is used unconditionally by i386.[ch]; it is to be defined
15023 # to 1 if the feature is present, 0 otherwise.
15024 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15025 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15026 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 gcc_cv_as_ix86_gotoff_in_data=no
15030 if test $in_tree_gas = yes; then
15031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15032 then gcc_cv_as_ix86_gotoff_in_data=yes
15033 fi
15034 elif test x$gcc_cv_as != x; then
15035 echo ' .text
15036 .L0:
15037 nop
15038 .data
15039 .long .L0@GOTOFF' > conftest.s
15040 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }
15046 then
15047 gcc_cv_as_ix86_gotoff_in_data=yes
15048 else
15049 echo "configure: failed program was" >&5
15050 cat conftest.s >&5
15051 fi
15052 rm -f conftest.o conftest.s
15053 fi
15054 fi
15055 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15056 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15057
15058
15059 cat >>confdefs.h <<_ACEOF
15060 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15061 _ACEOF
15062
15063 ;;
15064
15065 ia64*-*-*)
15066 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15067 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15068 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15072 if test $in_tree_gas = yes; then
15073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15074 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15075 fi
15076 elif test x$gcc_cv_as != x; then
15077 echo ' .text
15078 addl r15 = @ltoffx(x#), gp
15079 ;;
15080 ld8.mov r16 = [r15], x#' > conftest.s
15081 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }
15087 then
15088 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15089 else
15090 echo "configure: failed program was" >&5
15091 cat conftest.s >&5
15092 fi
15093 rm -f conftest.o conftest.s
15094 fi
15095 fi
15096 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15097 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15098 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15099
15100 cat >>confdefs.h <<\_ACEOF
15101 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15102 _ACEOF
15103
15104 fi
15105
15106 ;;
15107
15108 powerpc*-*-*)
15109 case $target in
15110 *-*-aix*) conftest_s=' .machine "pwr5"
15111 .csect .text[PR]
15112 mfcr 3,128';;
15113 *-*-darwin*)
15114 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15115 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15116 if test "${gcc_cv_as_machine_directive+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119 gcc_cv_as_machine_directive=no
15120 if test x$gcc_cv_as != x; then
15121 echo ' .machine ppc7400' > conftest.s
15122 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }
15128 then
15129 gcc_cv_as_machine_directive=yes
15130 else
15131 echo "configure: failed program was" >&5
15132 cat conftest.s >&5
15133 fi
15134 rm -f conftest.o conftest.s
15135 fi
15136 fi
15137 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15138 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15139
15140 if test x$gcc_cv_as_machine_directive != xyes; then
15141 echo "*** This target requires an assembler supporting \".machine\"" >&2
15142 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15143 test x$build = x$target && exit 1
15144 fi
15145 conftest_s=' .text
15146 mfcr r3,128';;
15147 *) conftest_s=' .machine power4
15148 .text
15149 mfcr 3,128';;
15150 esac
15151
15152 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15153 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15154 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157 gcc_cv_as_powerpc_mfcrf=no
15158 if test $in_tree_gas = yes; then
15159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15160 then gcc_cv_as_powerpc_mfcrf=yes
15161 fi
15162 elif test x$gcc_cv_as != x; then
15163 echo "$conftest_s" > conftest.s
15164 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }
15170 then
15171 gcc_cv_as_powerpc_mfcrf=yes
15172 else
15173 echo "configure: failed program was" >&5
15174 cat conftest.s >&5
15175 fi
15176 rm -f conftest.o conftest.s
15177 fi
15178 fi
15179 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15180 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15181 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15182
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_AS_MFCRF 1
15185 _ACEOF
15186
15187 fi
15188
15189 case $target in
15190 *-*-aix*) conftest_s=' .machine "pwr5"
15191 .csect .text[PR]
15192 popcntb 3,3';;
15193 *) conftest_s=' .machine power5
15194 .text
15195 popcntb 3,3';;
15196 esac
15197
15198 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15199 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15200 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203 gcc_cv_as_powerpc_popcntb=no
15204 if test $in_tree_gas = yes; then
15205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15206 then gcc_cv_as_powerpc_popcntb=yes
15207 fi
15208 elif test x$gcc_cv_as != x; then
15209 echo "$conftest_s" > conftest.s
15210 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15216 then
15217 gcc_cv_as_powerpc_popcntb=yes
15218 else
15219 echo "configure: failed program was" >&5
15220 cat conftest.s >&5
15221 fi
15222 rm -f conftest.o conftest.s
15223 fi
15224 fi
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15226 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15227 if test $gcc_cv_as_powerpc_popcntb = yes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_POPCNTB 1
15231 _ACEOF
15232
15233 fi
15234
15235 case $target in
15236 *-*-aix*) conftest_s=' .machine "pwr5x"
15237 .csect .text[PR]
15238 frin 1,1';;
15239 *) conftest_s=' .machine power5
15240 .text
15241 frin 1,1';;
15242 esac
15243
15244 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15245 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15246 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249 gcc_cv_as_powerpc_fprnd=no
15250 if test $in_tree_gas = yes; then
15251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15252 then gcc_cv_as_powerpc_fprnd=yes
15253 fi
15254 elif test x$gcc_cv_as != x; then
15255 echo "$conftest_s" > conftest.s
15256 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }
15262 then
15263 gcc_cv_as_powerpc_fprnd=yes
15264 else
15265 echo "configure: failed program was" >&5
15266 cat conftest.s >&5
15267 fi
15268 rm -f conftest.o conftest.s
15269 fi
15270 fi
15271 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15272 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15273 if test $gcc_cv_as_powerpc_fprnd = yes; then
15274
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_AS_FPRND 1
15277 _ACEOF
15278
15279 fi
15280
15281 case $target in
15282 *-*-aix*) conftest_s=' .csect .text[PR]
15283 LCF..0:
15284 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15285 *-*-darwin*)
15286 conftest_s=' .text
15287 LCF0:
15288 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15289 *) conftest_s=' .text
15290 .LCF0:
15291 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15292 esac
15293
15294 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15295 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15296 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 gcc_cv_as_powerpc_rel16=no
15300 if test $in_tree_gas = yes; then
15301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15302 then gcc_cv_as_powerpc_rel16=yes
15303 fi
15304 elif test x$gcc_cv_as != x; then
15305 echo "$conftest_s" > conftest.s
15306 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }
15312 then
15313 gcc_cv_as_powerpc_rel16=yes
15314 else
15315 echo "configure: failed program was" >&5
15316 cat conftest.s >&5
15317 fi
15318 rm -f conftest.o conftest.s
15319 fi
15320 fi
15321 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15322 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15323 if test $gcc_cv_as_powerpc_rel16 = yes; then
15324
15325 cat >>confdefs.h <<\_ACEOF
15326 #define HAVE_AS_REL16 1
15327 _ACEOF
15328
15329 fi
15330 ;;
15331
15332 mips*-*-*)
15333 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15334 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15335 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 else
15338 gcc_cv_as_mips_explicit_relocs=no
15339 if test $in_tree_gas = yes; then
15340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15341 then gcc_cv_as_mips_explicit_relocs=yes
15342 fi
15343 elif test x$gcc_cv_as != x; then
15344 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15345 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }
15351 then
15352 gcc_cv_as_mips_explicit_relocs=yes
15353 else
15354 echo "configure: failed program was" >&5
15355 cat conftest.s >&5
15356 fi
15357 rm -f conftest.o conftest.s
15358 fi
15359 fi
15360 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15361 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15362 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15363 if test x$target_cpu_default = x
15364 then target_cpu_default=MASK_EXPLICIT_RELOCS
15365 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15366 fi
15367 fi
15368 ;;
15369 esac
15370
15371 # Mips and HP-UX need the GNU assembler.
15372 # Linux on IA64 might be able to use the Intel assembler.
15373
15374 case "$target" in
15375 mips*-*-* | *-*-hpux* )
15376 if test x$gas_flag = xyes \
15377 || test x"$host" != x"$build" \
15378 || test ! -x "$gcc_cv_as" \
15379 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15380 :
15381 else
15382 echo "*** This configuration requires the GNU assembler" >&2
15383 exit 1
15384 fi
15385 ;;
15386 esac
15387
15388 # ??? Not all targets support dwarf2 debug_line, even within a version
15389 # of gas. Moreover, we need to emit a valid instruction to trigger any
15390 # info to the output file. So, as supported targets are added to gas 2.11,
15391 # add some instruction here to (also) show we expect this might work.
15392 # ??? Once 2.11 is released, probably need to add first known working
15393 # version to the per-target configury.
15394 case "$target" in
15395 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15396 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15397 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15398 insn="nop"
15399 ;;
15400 ia64*-*-* | s390*-*-*)
15401 insn="nop 0"
15402 ;;
15403 mmix-*-*)
15404 insn="swym 0"
15405 ;;
15406 esac
15407 if test x"$insn" != x; then
15408 conftest_s="\
15409 .file 1 \"conftest.s\"
15410 .loc 1 3 0
15411 $insn"
15412 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15413 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15414 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 gcc_cv_as_dwarf2_debug_line=no
15418 if test $in_tree_gas = yes; then
15419 if test $in_tree_gas_is_elf = yes \
15420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15421 then gcc_cv_as_dwarf2_debug_line=yes
15422 fi
15423 elif test x$gcc_cv_as != x; then
15424 echo "$conftest_s" > conftest.s
15425 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }
15431 then
15432 if test x$gcc_cv_objdump != x \
15433 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15434 | grep debug_line > /dev/null 2>&1; then
15435 gcc_cv_as_dwarf2_debug_line=yes
15436 fi
15437 else
15438 echo "configure: failed program was" >&5
15439 cat conftest.s >&5
15440 fi
15441 rm -f conftest.o conftest.s
15442 fi
15443 fi
15444 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15445 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15446
15447
15448 # The .debug_line file table must be in the exact order that
15449 # we specified the files, since these indices are also used
15450 # by DW_AT_decl_file. Approximate this test by testing if
15451 # the assembler bitches if the same index is assigned twice.
15452 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15453 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15454 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 else
15457 gcc_cv_as_dwarf2_file_buggy=no
15458 if test x$gcc_cv_as != x; then
15459 echo ' .file 1 "foo.s"
15460 .file 1 "bar.s"' > conftest.s
15461 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }
15467 then
15468 gcc_cv_as_dwarf2_file_buggy=yes
15469 else
15470 echo "configure: failed program was" >&5
15471 cat conftest.s >&5
15472 fi
15473 rm -f conftest.o conftest.s
15474 fi
15475 fi
15476 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15477 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15478
15479
15480 if test $gcc_cv_as_dwarf2_debug_line = yes \
15481 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15482
15483 cat >>confdefs.h <<\_ACEOF
15484 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15485 _ACEOF
15486
15487 fi
15488
15489 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15490 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15491 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494 gcc_cv_as_gdwarf2_flag=no
15495 if test $in_tree_gas = yes; then
15496 if test $in_tree_gas_is_elf = yes \
15497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15498 then gcc_cv_as_gdwarf2_flag=yes
15499 fi
15500 elif test x$gcc_cv_as != x; then
15501 echo "$insn" > conftest.s
15502 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }
15508 then
15509 gcc_cv_as_gdwarf2_flag=yes
15510 else
15511 echo "configure: failed program was" >&5
15512 cat conftest.s >&5
15513 fi
15514 rm -f conftest.o conftest.s
15515 fi
15516 fi
15517 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15518 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15519 if test $gcc_cv_as_gdwarf2_flag = yes; then
15520
15521 cat >>confdefs.h <<\_ACEOF
15522 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15523 _ACEOF
15524
15525 fi
15526
15527 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15528 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15529 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532 gcc_cv_as_gstabs_flag=no
15533 if test $in_tree_gas = yes; then
15534 if test $in_tree_gas_is_elf = yes \
15535 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15536 then gcc_cv_as_gstabs_flag=yes
15537 fi
15538 elif test x$gcc_cv_as != x; then
15539 echo "$insn" > conftest.s
15540 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }
15546 then
15547 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15548 # and warns about it, but still exits successfully. So check for
15549 # this.
15550 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }
15556 then :
15557 else gcc_cv_as_gstabs_flag=yes
15558 fi
15559 else
15560 echo "configure: failed program was" >&5
15561 cat conftest.s >&5
15562 fi
15563 rm -f conftest.o conftest.s
15564 fi
15565 fi
15566 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15567 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15568 if test $gcc_cv_as_gstabs_flag = yes; then
15569
15570 cat >>confdefs.h <<\_ACEOF
15571 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15572 _ACEOF
15573
15574 fi
15575 fi
15576
15577 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15578 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15579 gcc_cv_ld_ro_rw_mix=unknown
15580 if test $in_tree_ld = yes ; then
15581 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
15582 && test $in_tree_ld_is_elf = yes; then
15583 gcc_cv_ld_ro_rw_mix=read-write
15584 fi
15585 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15586 echo '.section myfoosect, "a"' > conftest1.s
15587 echo '.section myfoosect, "aw"' > conftest2.s
15588 echo '.byte 1' >> conftest2.s
15589 echo '.section myfoosect, "a"' > conftest3.s
15590 echo '.byte 0' >> conftest3.s
15591 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15592 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15593 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15594 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15595 conftest2.o conftest3.o > /dev/null 2>&1; then
15596 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15597 | sed -e '/myfoosect/!d' -e N`
15598 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15599 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15600 gcc_cv_ld_ro_rw_mix=read-only
15601 else
15602 gcc_cv_ld_ro_rw_mix=read-write
15603 fi
15604 fi
15605 fi
15606 rm -f conftest.* conftest[123].*
15607 fi
15608 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15612 _ACEOF
15613
15614 fi
15615 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15616 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15617
15618 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15619 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15620 gcc_cv_ld_eh_frame_hdr=no
15621 if test $in_tree_ld = yes ; then
15622 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
15623 && test $in_tree_ld_is_elf = yes; then
15624 gcc_cv_ld_eh_frame_hdr=yes
15625 fi
15626 elif test x$gcc_cv_ld != x; then
15627 # Check if linker supports --eh-frame-hdr option
15628 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15629 gcc_cv_ld_eh_frame_hdr=yes
15630 fi
15631 fi
15632
15633 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15634
15635 cat >>confdefs.h <<\_ACEOF
15636 #define HAVE_LD_EH_FRAME_HDR 1
15637 _ACEOF
15638
15639 fi
15640 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15641 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15642
15643 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15644 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15645 gcc_cv_ld_pie=no
15646 if test $in_tree_ld = yes ; then
15647 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
15648 && test $in_tree_ld_is_elf = yes; then
15649 gcc_cv_ld_pie=yes
15650 fi
15651 elif test x$gcc_cv_ld != x; then
15652 # Check if linker supports -pie option
15653 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15654 gcc_cv_ld_pie=yes
15655 fi
15656 fi
15657 if test x"$gcc_cv_ld_pie" = xyes; then
15658
15659 cat >>confdefs.h <<\_ACEOF
15660 #define HAVE_LD_PIE 1
15661 _ACEOF
15662
15663 fi
15664 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15665 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15666
15667 # --------
15668 # UNSORTED
15669 # --------
15670
15671 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15672 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15673 if test "${gcc_cv_ld_as_needed+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676 gcc_cv_ld_as_needed=no
15677 if test $in_tree_ld = yes ; then
15678 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15679 && test $in_tree_ld_is_elf = yes; then
15680 gcc_cv_ld_as_needed=yes
15681 fi
15682 elif test x$gcc_cv_ld != x; then
15683 # Check if linker supports --as-needed and --no-as-needed options
15684 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15685 gcc_cv_ld_as_needed=yes
15686 fi
15687 fi
15688
15689 fi
15690 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15691 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15692 if test x"$gcc_cv_ld_as_needed" = xyes; then
15693
15694 cat >>confdefs.h <<\_ACEOF
15695 #define HAVE_LD_AS_NEEDED 1
15696 _ACEOF
15697
15698 fi
15699
15700 case "$target:$tm_file" in
15701 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15702 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15703 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15704 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 else
15707 gcc_cv_ld_no_dot_syms=no
15708 if test $in_tree_ld = yes ; then
15709 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15710 gcc_cv_ld_no_dot_syms=yes
15711 fi
15712 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15713 cat > conftest1.s <<EOF
15714 .text
15715 bl .foo
15716 EOF
15717 cat > conftest2.s <<EOF
15718 .section ".opd","aw"
15719 .align 3
15720 .globl foo
15721 .type foo,@function
15722 foo:
15723 .quad .LEfoo,.TOC.@tocbase,0
15724 .text
15725 .LEfoo:
15726 blr
15727 .size foo,.-.LEfoo
15728 EOF
15729 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15730 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15731 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15732 gcc_cv_ld_no_dot_syms=yes
15733 fi
15734 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15735 fi
15736
15737 fi
15738 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15739 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15740 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15741
15742 cat >>confdefs.h <<\_ACEOF
15743 #define HAVE_LD_NO_DOT_SYMS 1
15744 _ACEOF
15745
15746 fi
15747 ;;
15748 esac
15749
15750 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15751 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15752 if test "${gcc_cv_ld_sysroot+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755 gcc_cv_ld_sysroot=no
15756 if test $in_tree_ld = yes ; then
15757 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
15758 gcc_cv_ld_sysroot=yes
15759 fi
15760 elif test x$gcc_cv_ld != x; then
15761 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15762 gcc_cv_ld_sysroot=yes
15763 fi
15764 fi
15765 fi
15766 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15767 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15768 if test x"$gcc_cv_ld_sysroot" = xyes; then
15769
15770 cat >>confdefs.h <<\_ACEOF
15771 #define HAVE_LD_SYSROOT 1
15772 _ACEOF
15773
15774 fi
15775
15776 if test x$with_sysroot = x && test x$host = x$target \
15777 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15778
15779 cat >>confdefs.h <<_ACEOF
15780 #define PREFIX_INCLUDE_DIR "$prefix/include"
15781 _ACEOF
15782
15783 fi
15784
15785 # Test for stack protector support in target C library.
15786 case "$target" in
15787 *-*-linux*)
15788 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15789 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15790 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 else
15793 gcc_cv_libc_provides_ssp=no
15794 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15795 if test "x$with_sysroot" = x; then
15796 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15797 elif test "x$with_sysroot" = xyes; then
15798 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15799 else
15800 glibc_header_dir="${with_sysroot}/usr/include"
15801 fi
15802 else
15803 glibc_header_dir=/usr/include
15804 fi
15805 # glibc 2.4 and later provides __stack_chk_fail and
15806 # either __stack_chk_guard, or TLS access to stack guard canary.
15807 if test -f $glibc_header_dir/features.h \
15808 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15809 $glibc_header_dir/features.h > /dev/null; then
15810 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15811 $glibc_header_dir/features.h > /dev/null; then
15812 gcc_cv_libc_provides_ssp=yes
15813 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15814 $glibc_header_dir/features.h > /dev/null \
15815 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15816 $glibc_header_dir/features.h > /dev/null; then
15817 gcc_cv_libc_provides_ssp=yes
15818 fi
15819 fi
15820 fi
15821 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15822 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15823 *) gcc_cv_libc_provides_ssp=no ;;
15824 esac
15825 if test x$gcc_cv_libc_provides_ssp = xyes; then
15826
15827 cat >>confdefs.h <<\_ACEOF
15828 #define TARGET_LIBC_PROVIDES_SSP 1
15829 _ACEOF
15830
15831 fi
15832
15833 # Check if TFmode long double should be used by default or not.
15834 # Some glibc targets used DFmode long double, but with glibc 2.4
15835 # and later they can use TFmode.
15836 case "$target" in
15837 powerpc*-*-*gnu* | \
15838 sparc*-*-linux* | \
15839 s390*-*-linux* | \
15840 alpha*-*-linux*)
15841
15842 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15843 if test "${with_long_double_128+set}" = set; then
15844 withval="$with_long_double_128"
15845 gcc_cv_target_ldbl128="$with_long_double_128"
15846 else
15847 gcc_cv_target_ldbl128=no
15848 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15849 if test "x$with_sysroot" = x; then
15850 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15851 elif test "x$with_sysroot" = xyes; then
15852 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15853 else
15854 glibc_header_dir="${with_sysroot}/usr/include"
15855 fi
15856 else
15857 glibc_header_dir=/usr/include
15858 fi
15859 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15860 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
15861 && gcc_cv_target_ldbl128=yes
15862 fi;
15863 ;;
15864 esac
15865 if test x$gcc_cv_target_ldbl128 = xyes; then
15866
15867 cat >>confdefs.h <<\_ACEOF
15868 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15869 _ACEOF
15870
15871 fi
15872
15873 # Find out what GC implementation we want, or may, use.
15874
15875 # Check whether --with-gc or --without-gc was given.
15876 if test "${with_gc+set}" = set; then
15877 withval="$with_gc"
15878 case "$withval" in
15879 page)
15880 GGC=ggc-$withval
15881 ;;
15882 zone)
15883 GGC=ggc-$withval
15884
15885 cat >>confdefs.h <<\_ACEOF
15886 #define GGC_ZONE 1
15887 _ACEOF
15888
15889 ;;
15890 *)
15891 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15892 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15893 { (exit 1); exit 1; }; }
15894 ;;
15895 esac
15896 else
15897 GGC=ggc-page
15898 fi;
15899
15900 echo "Using $GGC for garbage collection."
15901
15902 # Use the system's zlib library.
15903 zlibdir=-L../zlib
15904 zlibinc="-I\$(srcdir)/../zlib"
15905
15906 # Check whether --with-system-zlib or --without-system-zlib was given.
15907 if test "${with_system_zlib+set}" = set; then
15908 withval="$with_system_zlib"
15909 zlibdir=
15910 zlibinc=
15911
15912 fi;
15913
15914
15915
15916
15917 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15918 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15919 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15920 if test "${enable_maintainer_mode+set}" = set; then
15921 enableval="$enable_maintainer_mode"
15922 maintainer_mode=$enableval
15923 else
15924 maintainer_mode=no
15925 fi;
15926
15927 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15928 echo "${ECHO_T}$maintainer_mode" >&6
15929
15930 if test "$maintainer_mode" = "yes"; then
15931 MAINT=''
15932 else
15933 MAINT='#'
15934 fi
15935
15936 # --------------
15937 # Language hooks
15938 # --------------
15939
15940 # Make empty files to contain the specs and options for each language.
15941 # Then add #include lines to for a compiler that has specs and/or options.
15942
15943 subdirs=
15944 lang_opt_files=
15945 lang_specs_files=
15946 lang_tree_files=
15947 # These (without "all_") are set in each config-lang.in.
15948 # `language' must be a single word so is spelled singularly.
15949 all_languages=
15950 all_boot_languages=
15951 all_compilers=
15952 all_stagestuff=
15953 all_outputs='Makefile gccbug mklibgcc libada-mk'
15954 # List of language makefile fragments.
15955 all_lang_makefrags=
15956 # List of language subdirectory makefiles. Deprecated.
15957 all_lang_makefiles=
15958 # Files for gengtype
15959 all_gtfiles="$target_gtfiles"
15960 # Files for gengtype with language
15961 all_gtfiles_files_langs=
15962 all_gtfiles_files_files=
15963
15964 # These are the languages that are set in --enable-languages,
15965 # and are available in the GCC tree.
15966 all_selected_languages=
15967
15968 # Add the language fragments.
15969 # Languages are added via two mechanisms. Some information must be
15970 # recorded in makefile variables, these are defined in config-lang.in.
15971 # We accumulate them and plug them into the main Makefile.
15972 # The other mechanism is a set of hooks for each of the main targets
15973 # like `clean', `install', etc.
15974
15975 language_hooks="Make-hooks"
15976
15977 for lang in ${srcdir}/*/config-lang.in
15978 do
15979 case $lang in
15980 # The odd quoting in the next line works around
15981 # an apparent bug in bash 1.12 on linux.
15982 ${srcdir}/[*]/config-lang.in)
15983 continue ;;
15984 *)
15985 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
15986 if test "x$lang_alias" = x
15987 then
15988 echo "$lang doesn't set \$language." 1>&2
15989 exit 1
15990 fi
15991 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
15992 subdirs="$subdirs $subdir"
15993 case ",$enable_languages," in
15994 *,$lang_alias,*)
15995 all_selected_languages="$all_selected_languages $lang_alias"
15996 if test -f $srcdir/$subdir/lang-specs.h; then
15997 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15998 fi
15999 ;;
16000 esac
16001
16002 if test -f $srcdir/$subdir/lang.opt; then
16003 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16004 fi
16005 if test -f $srcdir/$subdir/$subdir-tree.def; then
16006 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16007 fi
16008
16009 language=
16010 boot_language=
16011 compilers=
16012 stagestuff=
16013 outputs=
16014 gtfiles=
16015 . ${srcdir}/$subdir/config-lang.in
16016 if test "x$language" = x
16017 then
16018 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16019 exit 1
16020 fi
16021 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16022 if test -f ${srcdir}/$subdir/Makefile.in
16023 then all_lang_makefiles="$subdir/Makefile"
16024 fi
16025 all_languages="$all_languages $language"
16026 if test "x$boot_language" = xyes
16027 then
16028 all_boot_languages="$all_boot_languages $language"
16029 fi
16030 all_compilers="$all_compilers $compilers"
16031 all_stagestuff="$all_stagestuff $stagestuff"
16032 all_outputs="$all_outputs $outputs"
16033 all_gtfiles="$all_gtfiles $gtfiles"
16034 for f in $gtfiles
16035 do
16036 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16037 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16038 done
16039 ;;
16040 esac
16041 done
16042
16043 # Pick up gtfiles for c
16044 gtfiles=
16045 subdir="c"
16046 . ${srcdir}/c-config-lang.in
16047 all_gtfiles="$all_gtfiles $gtfiles"
16048 for f in $gtfiles
16049 do
16050 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
16051 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16052 done
16053
16054 check_languages=
16055 for language in $all_selected_languages
16056 do
16057 check_languages="$check_languages check-$language"
16058 done
16059
16060 # We link each language in with a set of hooks, reached indirectly via
16061 # lang.${target}. Only do so for selected languages.
16062
16063 rm -f Make-hooks
16064 touch Make-hooks
16065 target_list="all.cross start.encap rest.encap tags \
16066 install-common install-man install-info dvi html \
16067 uninstall info man srcextra srcman srcinfo \
16068 mostlyclean clean distclean maintainer-clean \
16069 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16070
16071 for t in $target_list
16072 do
16073 x=
16074 for lang in $all_selected_languages
16075 do
16076 x="$x $lang.$t"
16077 done
16078 echo "lang.$t: $x" >> Make-hooks
16079 done
16080
16081 # --------
16082 # UNSORTED
16083 # --------
16084
16085 # Create .gdbinit.
16086
16087 echo "dir ." > .gdbinit
16088 echo "dir ${srcdir}" >> .gdbinit
16089 if test x$gdb_needs_out_file_path = xyes
16090 then
16091 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16092 fi
16093 if test "x$subdirs" != x; then
16094 for s in $subdirs
16095 do
16096 echo "dir ${srcdir}/$s" >> .gdbinit
16097 done
16098 fi
16099 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16100
16101 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16102 # absolute path for gcc_tooldir based on inserting the number of up-directory
16103 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16104 # $(libsubdir)/@(unlibsubdir) based path.
16105 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16106 # make and thus we'd get different behavior depending on where we built the
16107 # sources.
16108 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16109 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16110 else
16111 # An explanation of the sed strings:
16112 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16113 # -e 's|/$||' match a trailing forward slash and eliminates it
16114 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16115 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16116 #
16117 # (*) Note this pattern overwrites the first character of the string
16118 # with a forward slash if one is not already present. This is not a
16119 # problem because the exact names of the sub-directories concerned is
16120 # unimportant, just the number of them matters.
16121 #
16122 # The practical upshot of these patterns is like this:
16123 #
16124 # prefix exec_prefix result
16125 # ------ ----------- ------
16126 # /foo /foo/bar ../
16127 # /foo/ /foo/bar ../
16128 # /foo /foo/bar/ ../
16129 # /foo/ /foo/bar/ ../
16130 # /foo /foo/bar/ugg ../../
16131 #
16132 dollar='$$'
16133 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16134 fi
16135
16136
16137
16138 # Find a directory in which to install a shared libgcc.
16139
16140 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16141 if test "${enable_version_specific_runtime_libs+set}" = set; then
16142 enableval="$enable_version_specific_runtime_libs"
16143
16144 fi;
16145
16146
16147 # Check whether --with-slibdir or --without-slibdir was given.
16148 if test "${with_slibdir+set}" = set; then
16149 withval="$with_slibdir"
16150 slibdir="$with_slibdir"
16151 else
16152 if test "${enable_version_specific_runtime_libs+set}" = set; then
16153 slibdir='$(libsubdir)'
16154 elif test "$host" != "$target"; then
16155 slibdir='$(build_tooldir)/lib'
16156 else
16157 slibdir='$(libdir)'
16158 fi
16159 fi;
16160
16161
16162 objdir=`${PWDCMD-pwd}`
16163
16164
16165
16166 # Check whether --with-datarootdir or --without-datarootdir was given.
16167 if test "${with_datarootdir+set}" = set; then
16168 withval="$with_datarootdir"
16169 datarootdir="\${prefix}/$with_datarootdir"
16170 else
16171 datarootdir='$(prefix)/share'
16172 fi;
16173
16174
16175
16176 # Check whether --with-docdir or --without-docdir was given.
16177 if test "${with_docdir+set}" = set; then
16178 withval="$with_docdir"
16179 docdir="\${prefix}/$with_docdir"
16180 else
16181 docdir='$(datarootdir)'
16182 fi;
16183
16184
16185
16186 # Check whether --with-htmldir or --without-htmldir was given.
16187 if test "${with_htmldir+set}" = set; then
16188 withval="$with_htmldir"
16189 htmldir="\${prefix}/$with_htmldir"
16190 else
16191 htmldir='$(docdir)'
16192 fi;
16193
16194
16195 # Substitute configuration variables
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260 # Echo link setup.
16261 if test x${build} = x${host} ; then
16262 if test x${host} = x${target} ; then
16263 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16264 else
16265 echo "Links are now set up to build a cross-compiler" 1>&2
16266 echo " from ${host} to ${target}." 1>&2
16267 fi
16268 else
16269 if test x${host} = x${target} ; then
16270 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16271 echo " for ${target}." 1>&2
16272 else
16273 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16274 echo " from ${host} to ${target}." 1>&2
16275 fi
16276 fi
16277
16278
16279
16280
16281 # Configure the subdirectories
16282 # AC_CONFIG_SUBDIRS($subdirs)
16283
16284 # Create the Makefile
16285 # and configure language subdirectories
16286 ac_config_files="$ac_config_files $all_outputs"
16287
16288
16289 ac_config_commands="$ac_config_commands default"
16290
16291 cat >confcache <<\_ACEOF
16292 # This file is a shell script that caches the results of configure
16293 # tests run on this system so they can be shared between configure
16294 # scripts and configure runs, see configure's option --config-cache.
16295 # It is not useful on other systems. If it contains results you don't
16296 # want to keep, you may remove or edit it.
16297 #
16298 # config.status only pays attention to the cache file if you give it
16299 # the --recheck option to rerun configure.
16300 #
16301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16303 # following values.
16304
16305 _ACEOF
16306
16307 # The following way of writing the cache mishandles newlines in values,
16308 # but we know of no workaround that is simple, portable, and efficient.
16309 # So, don't put newlines in cache variables' values.
16310 # Ultrix sh set writes to stderr and can't be redirected directly,
16311 # and sets the high bit in the cache file unless we assign to the vars.
16312 {
16313 (set) 2>&1 |
16314 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16315 *ac_space=\ *)
16316 # `set' does not quote correctly, so add quotes (double-quote
16317 # substitution turns \\\\ into \\, and sed turns \\ into \).
16318 sed -n \
16319 "s/'/'\\\\''/g;
16320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16321 ;;
16322 *)
16323 # `set' quotes correctly as required by POSIX, so do not add quotes.
16324 sed -n \
16325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16326 ;;
16327 esac;
16328 } |
16329 sed '
16330 t clear
16331 : clear
16332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16333 t end
16334 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16335 : end' >>confcache
16336 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16337 if test -w $cache_file; then
16338 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16339 cat confcache >$cache_file
16340 else
16341 echo "not updating unwritable cache $cache_file"
16342 fi
16343 fi
16344 rm -f confcache
16345
16346 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16347 # Let make expand exec_prefix.
16348 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16349
16350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.; then
16355 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16356 s/:*\$(srcdir):*/:/;
16357 s/:*\${srcdir}:*/:/;
16358 s/:*@srcdir@:*/:/;
16359 s/^\([^=]*=[ ]*\):*/\1/;
16360 s/:*$//;
16361 s/^[^=]*=[ ]*$//;
16362 }'
16363 fi
16364
16365 DEFS=-DHAVE_CONFIG_H
16366
16367 ac_libobjs=
16368 ac_ltlibobjs=
16369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16370 # 1. Remove the extension, and $U if already installed.
16371 ac_i=`echo "$ac_i" |
16372 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16373 # 2. Add them.
16374 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16375 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16376 done
16377 LIBOBJS=$ac_libobjs
16378
16379 LTLIBOBJS=$ac_ltlibobjs
16380
16381
16382
16383 : ${CONFIG_STATUS=./config.status}
16384 ac_clean_files_save=$ac_clean_files
16385 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16386 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16387 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16388 cat >$CONFIG_STATUS <<_ACEOF
16389 #! $SHELL
16390 # Generated by $as_me.
16391 # Run this file to recreate the current configuration.
16392 # Compiler output produced by configure, useful for debugging
16393 # configure, is in config.log if it exists.
16394
16395 debug=false
16396 ac_cs_recheck=false
16397 ac_cs_silent=false
16398 SHELL=\${CONFIG_SHELL-$SHELL}
16399 _ACEOF
16400
16401 cat >>$CONFIG_STATUS <<\_ACEOF
16402 ## --------------------- ##
16403 ## M4sh Initialization. ##
16404 ## --------------------- ##
16405
16406 # Be Bourne compatible
16407 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16408 emulate sh
16409 NULLCMD=:
16410 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16411 # is contrary to our usage. Disable this feature.
16412 alias -g '${1+"$@"}'='"$@"'
16413 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16414 set -o posix
16415 fi
16416 DUALCASE=1; export DUALCASE # for MKS sh
16417
16418 # Support unset when possible.
16419 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16420 as_unset=unset
16421 else
16422 as_unset=false
16423 fi
16424
16425
16426 # Work around bugs in pre-3.0 UWIN ksh.
16427 $as_unset ENV MAIL MAILPATH
16428 PS1='$ '
16429 PS2='> '
16430 PS4='+ '
16431
16432 # NLS nuisances.
16433 for as_var in \
16434 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16435 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16436 LC_TELEPHONE LC_TIME
16437 do
16438 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16439 eval $as_var=C; export $as_var
16440 else
16441 $as_unset $as_var
16442 fi
16443 done
16444
16445 # Required to use basename.
16446 if expr a : '\(a\)' >/dev/null 2>&1; then
16447 as_expr=expr
16448 else
16449 as_expr=false
16450 fi
16451
16452 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16453 as_basename=basename
16454 else
16455 as_basename=false
16456 fi
16457
16458
16459 # Name of the executable.
16460 as_me=`$as_basename "$0" ||
16461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16462 X"$0" : 'X\(//\)$' \| \
16463 X"$0" : 'X\(/\)$' \| \
16464 . : '\(.\)' 2>/dev/null ||
16465 echo X/"$0" |
16466 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16467 /^X\/\(\/\/\)$/{ s//\1/; q; }
16468 /^X\/\(\/\).*/{ s//\1/; q; }
16469 s/.*/./; q'`
16470
16471
16472 # PATH needs CR, and LINENO needs CR and PATH.
16473 # Avoid depending upon Character Ranges.
16474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16477 as_cr_digits='0123456789'
16478 as_cr_alnum=$as_cr_Letters$as_cr_digits
16479
16480 # The user is always right.
16481 if test "${PATH_SEPARATOR+set}" != set; then
16482 echo "#! /bin/sh" >conf$$.sh
16483 echo "exit 0" >>conf$$.sh
16484 chmod +x conf$$.sh
16485 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16486 PATH_SEPARATOR=';'
16487 else
16488 PATH_SEPARATOR=:
16489 fi
16490 rm -f conf$$.sh
16491 fi
16492
16493
16494 as_lineno_1=$LINENO
16495 as_lineno_2=$LINENO
16496 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16497 test "x$as_lineno_1" != "x$as_lineno_2" &&
16498 test "x$as_lineno_3" = "x$as_lineno_2" || {
16499 # Find who we are. Look in the path if we contain no path at all
16500 # relative or not.
16501 case $0 in
16502 *[\\/]* ) as_myself=$0 ;;
16503 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16504 for as_dir in $PATH
16505 do
16506 IFS=$as_save_IFS
16507 test -z "$as_dir" && as_dir=.
16508 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16509 done
16510
16511 ;;
16512 esac
16513 # We did not find ourselves, most probably we were run as `sh COMMAND'
16514 # in which case we are not to be found in the path.
16515 if test "x$as_myself" = x; then
16516 as_myself=$0
16517 fi
16518 if test ! -f "$as_myself"; then
16519 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16520 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16521 { (exit 1); exit 1; }; }
16522 fi
16523 case $CONFIG_SHELL in
16524 '')
16525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16527 do
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
16530 for as_base in sh bash ksh sh5; do
16531 case $as_dir in
16532 /*)
16533 if ("$as_dir/$as_base" -c '
16534 as_lineno_1=$LINENO
16535 as_lineno_2=$LINENO
16536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16537 test "x$as_lineno_1" != "x$as_lineno_2" &&
16538 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16539 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16540 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16541 CONFIG_SHELL=$as_dir/$as_base
16542 export CONFIG_SHELL
16543 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16544 fi;;
16545 esac
16546 done
16547 done
16548 ;;
16549 esac
16550
16551 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16552 # uniformly replaced by the line number. The first 'sed' inserts a
16553 # line-number line before each line; the second 'sed' does the real
16554 # work. The second script uses 'N' to pair each line-number line
16555 # with the numbered line, and appends trailing '-' during
16556 # substitution so that $LINENO is not a special case at line end.
16557 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16558 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16559 sed '=' <$as_myself |
16560 sed '
16561 N
16562 s,$,-,
16563 : loop
16564 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16565 t loop
16566 s,-$,,
16567 s,^['$as_cr_digits']*\n,,
16568 ' >$as_me.lineno &&
16569 chmod +x $as_me.lineno ||
16570 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16571 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16572 { (exit 1); exit 1; }; }
16573
16574 # Don't try to exec as it changes $[0], causing all sort of problems
16575 # (the dirname of $[0] is not the place where we might find the
16576 # original and so on. Autoconf is especially sensible to this).
16577 . ./$as_me.lineno
16578 # Exit status is that of the last command.
16579 exit
16580 }
16581
16582
16583 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16584 *c*,-n*) ECHO_N= ECHO_C='
16585 ' ECHO_T=' ' ;;
16586 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16587 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16588 esac
16589
16590 if expr a : '\(a\)' >/dev/null 2>&1; then
16591 as_expr=expr
16592 else
16593 as_expr=false
16594 fi
16595
16596 rm -f conf$$ conf$$.exe conf$$.file
16597 echo >conf$$.file
16598 if ln -s conf$$.file conf$$ 2>/dev/null; then
16599 # We could just check for DJGPP; but this test a) works b) is more generic
16600 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16601 if test -f conf$$.exe; then
16602 # Don't use ln at all; we don't have any links
16603 as_ln_s='cp -p'
16604 else
16605 as_ln_s='ln -s'
16606 fi
16607 elif ln conf$$.file conf$$ 2>/dev/null; then
16608 as_ln_s=ln
16609 else
16610 as_ln_s='cp -p'
16611 fi
16612 rm -f conf$$ conf$$.exe conf$$.file
16613
16614 if mkdir -p . 2>/dev/null; then
16615 as_mkdir_p=:
16616 else
16617 test -d ./-p && rmdir ./-p
16618 as_mkdir_p=false
16619 fi
16620
16621 as_executable_p="test -f"
16622
16623 # Sed expression to map a string onto a valid CPP name.
16624 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16625
16626 # Sed expression to map a string onto a valid variable name.
16627 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16628
16629
16630 # IFS
16631 # We need space, tab and new line, in precisely that order.
16632 as_nl='
16633 '
16634 IFS=" $as_nl"
16635
16636 # CDPATH.
16637 $as_unset CDPATH
16638
16639 exec 6>&1
16640
16641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16642 # report actual input values of CONFIG_FILES etc. instead of their
16643 # values after options handling. Logging --version etc. is OK.
16644 exec 5>>config.log
16645 {
16646 echo
16647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16648 ## Running $as_me. ##
16649 _ASBOX
16650 } >&5
16651 cat >&5 <<_CSEOF
16652
16653 This file was extended by $as_me, which was
16654 generated by GNU Autoconf 2.59. Invocation command line was
16655
16656 CONFIG_FILES = $CONFIG_FILES
16657 CONFIG_HEADERS = $CONFIG_HEADERS
16658 CONFIG_LINKS = $CONFIG_LINKS
16659 CONFIG_COMMANDS = $CONFIG_COMMANDS
16660 $ $0 $@
16661
16662 _CSEOF
16663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16664 echo >&5
16665 _ACEOF
16666
16667 # Files that config.status was made for.
16668 if test -n "$ac_config_files"; then
16669 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16670 fi
16671
16672 if test -n "$ac_config_headers"; then
16673 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16674 fi
16675
16676 if test -n "$ac_config_links"; then
16677 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16678 fi
16679
16680 if test -n "$ac_config_commands"; then
16681 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16682 fi
16683
16684 cat >>$CONFIG_STATUS <<\_ACEOF
16685
16686 ac_cs_usage="\
16687 \`$as_me' instantiates files from templates according to the
16688 current configuration.
16689
16690 Usage: $0 [OPTIONS] [FILE]...
16691
16692 -h, --help print this help, then exit
16693 -V, --version print version number, then exit
16694 -q, --quiet do not print progress messages
16695 -d, --debug don't remove temporary files
16696 --recheck update $as_me by reconfiguring in the same conditions
16697 --file=FILE[:TEMPLATE]
16698 instantiate the configuration file FILE
16699 --header=FILE[:TEMPLATE]
16700 instantiate the configuration header FILE
16701
16702 Configuration files:
16703 $config_files
16704
16705 Configuration headers:
16706 $config_headers
16707
16708 Configuration commands:
16709 $config_commands
16710
16711 Report bugs to <bug-autoconf@gnu.org>."
16712 _ACEOF
16713
16714 cat >>$CONFIG_STATUS <<_ACEOF
16715 ac_cs_version="\\
16716 config.status
16717 configured by $0, generated by GNU Autoconf 2.59,
16718 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16719
16720 Copyright (C) 2003 Free Software Foundation, Inc.
16721 This config.status script is free software; the Free Software Foundation
16722 gives unlimited permission to copy, distribute and modify it."
16723 srcdir=$srcdir
16724 _ACEOF
16725
16726 cat >>$CONFIG_STATUS <<\_ACEOF
16727 # If no file are specified by the user, then we need to provide default
16728 # value. By we need to know if files were specified by the user.
16729 ac_need_defaults=:
16730 while test $# != 0
16731 do
16732 case $1 in
16733 --*=*)
16734 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16735 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16736 ac_shift=:
16737 ;;
16738 -*)
16739 ac_option=$1
16740 ac_optarg=$2
16741 ac_shift=shift
16742 ;;
16743 *) # This is not an option, so the user has probably given explicit
16744 # arguments.
16745 ac_option=$1
16746 ac_need_defaults=false;;
16747 esac
16748
16749 case $ac_option in
16750 # Handling of the options.
16751 _ACEOF
16752 cat >>$CONFIG_STATUS <<\_ACEOF
16753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16754 ac_cs_recheck=: ;;
16755 --version | --vers* | -V )
16756 echo "$ac_cs_version"; exit 0 ;;
16757 --he | --h)
16758 # Conflict between --help and --header
16759 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16760 Try \`$0 --help' for more information." >&5
16761 echo "$as_me: error: ambiguous option: $1
16762 Try \`$0 --help' for more information." >&2;}
16763 { (exit 1); exit 1; }; };;
16764 --help | --hel | -h )
16765 echo "$ac_cs_usage"; exit 0 ;;
16766 --debug | --d* | -d )
16767 debug=: ;;
16768 --file | --fil | --fi | --f )
16769 $ac_shift
16770 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16771 ac_need_defaults=false;;
16772 --header | --heade | --head | --hea )
16773 $ac_shift
16774 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16775 ac_need_defaults=false;;
16776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16777 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16778 ac_cs_silent=: ;;
16779
16780 # This is an error.
16781 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16782 Try \`$0 --help' for more information." >&5
16783 echo "$as_me: error: unrecognized option: $1
16784 Try \`$0 --help' for more information." >&2;}
16785 { (exit 1); exit 1; }; } ;;
16786
16787 *) ac_config_targets="$ac_config_targets $1" ;;
16788
16789 esac
16790 shift
16791 done
16792
16793 ac_configure_extra_args=
16794
16795 if $ac_cs_silent; then
16796 exec 6>/dev/null
16797 ac_configure_extra_args="$ac_configure_extra_args --silent"
16798 fi
16799
16800 _ACEOF
16801 cat >>$CONFIG_STATUS <<_ACEOF
16802 if \$ac_cs_recheck; then
16803 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16804 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16805 fi
16806
16807 _ACEOF
16808
16809 cat >>$CONFIG_STATUS <<_ACEOF
16810 #
16811 # INIT-COMMANDS section.
16812 #
16813
16814 subdirs='$subdirs'
16815
16816 _ACEOF
16817
16818
16819
16820 cat >>$CONFIG_STATUS <<\_ACEOF
16821 for ac_config_target in $ac_config_targets
16822 do
16823 case "$ac_config_target" in
16824 # Handling of arguments.
16825 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16826 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16827 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16828 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16829 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16830 { (exit 1); exit 1; }; };;
16831 esac
16832 done
16833
16834 # If the user did not use the arguments to specify the items to instantiate,
16835 # then the envvar interface is used. Set only those that are not.
16836 # We use the long form for the default assignment because of an extremely
16837 # bizarre bug on SunOS 4.1.3.
16838 if $ac_need_defaults; then
16839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16842 fi
16843
16844 # Have a temporary directory for convenience. Make it in the build tree
16845 # simply because there is no reason to put it here, and in addition,
16846 # creating and moving files from /tmp can sometimes cause problems.
16847 # Create a temporary directory, and hook for its removal unless debugging.
16848 $debug ||
16849 {
16850 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16851 trap '{ (exit 1); exit 1; }' 1 2 13 15
16852 }
16853
16854 # Create a (secure) tmp directory for tmp files.
16855
16856 {
16857 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16858 test -n "$tmp" && test -d "$tmp"
16859 } ||
16860 {
16861 tmp=./confstat$$-$RANDOM
16862 (umask 077 && mkdir $tmp)
16863 } ||
16864 {
16865 echo "$me: cannot create a temporary directory in ." >&2
16866 { (exit 1); exit 1; }
16867 }
16868
16869 _ACEOF
16870
16871 cat >>$CONFIG_STATUS <<_ACEOF
16872
16873 #
16874 # CONFIG_FILES section.
16875 #
16876
16877 # No need to generate the scripts if there are no CONFIG_FILES.
16878 # This happens for instance when ./config.status config.h
16879 if test -n "\$CONFIG_FILES"; then
16880 # Protect against being on the right side of a sed subst in config.status.
16881 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16882 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16883 s,@SHELL@,$SHELL,;t t
16884 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16885 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16886 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16887 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16888 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16889 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16890 s,@exec_prefix@,$exec_prefix,;t t
16891 s,@prefix@,$prefix,;t t
16892 s,@program_transform_name@,$program_transform_name,;t t
16893 s,@bindir@,$bindir,;t t
16894 s,@sbindir@,$sbindir,;t t
16895 s,@libexecdir@,$libexecdir,;t t
16896 s,@datadir@,$datadir,;t t
16897 s,@sysconfdir@,$sysconfdir,;t t
16898 s,@sharedstatedir@,$sharedstatedir,;t t
16899 s,@localstatedir@,$localstatedir,;t t
16900 s,@libdir@,$libdir,;t t
16901 s,@includedir@,$includedir,;t t
16902 s,@oldincludedir@,$oldincludedir,;t t
16903 s,@infodir@,$infodir,;t t
16904 s,@mandir@,$mandir,;t t
16905 s,@build_alias@,$build_alias,;t t
16906 s,@host_alias@,$host_alias,;t t
16907 s,@target_alias@,$target_alias,;t t
16908 s,@DEFS@,$DEFS,;t t
16909 s,@ECHO_C@,$ECHO_C,;t t
16910 s,@ECHO_N@,$ECHO_N,;t t
16911 s,@ECHO_T@,$ECHO_T,;t t
16912 s,@LIBS@,$LIBS,;t t
16913 s,@build@,$build,;t t
16914 s,@build_cpu@,$build_cpu,;t t
16915 s,@build_vendor@,$build_vendor,;t t
16916 s,@build_os@,$build_os,;t t
16917 s,@host@,$host,;t t
16918 s,@host_cpu@,$host_cpu,;t t
16919 s,@host_vendor@,$host_vendor,;t t
16920 s,@host_os@,$host_os,;t t
16921 s,@target@,$target,;t t
16922 s,@target_cpu@,$target_cpu,;t t
16923 s,@target_vendor@,$target_vendor,;t t
16924 s,@target_os@,$target_os,;t t
16925 s,@target_noncanonical@,$target_noncanonical,;t t
16926 s,@build_subdir@,$build_subdir,;t t
16927 s,@host_subdir@,$host_subdir,;t t
16928 s,@target_subdir@,$target_subdir,;t t
16929 s,@GENINSRC@,$GENINSRC,;t t
16930 s,@CC@,$CC,;t t
16931 s,@CFLAGS@,$CFLAGS,;t t
16932 s,@LDFLAGS@,$LDFLAGS,;t t
16933 s,@CPPFLAGS@,$CPPFLAGS,;t t
16934 s,@ac_ct_CC@,$ac_ct_CC,;t t
16935 s,@EXEEXT@,$EXEEXT,;t t
16936 s,@OBJEXT@,$OBJEXT,;t t
16937 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16938 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16939 s,@CPP@,$CPP,;t t
16940 s,@EGREP@,$EGREP,;t t
16941 s,@strict1_warn@,$strict1_warn,;t t
16942 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16943 s,@warn_cflags@,$warn_cflags,;t t
16944 s,@WERROR@,$WERROR,;t t
16945 s,@nocommon_flag@,$nocommon_flag,;t t
16946 s,@TREEBROWSER@,$TREEBROWSER,;t t
16947 s,@valgrind_path@,$valgrind_path,;t t
16948 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16949 s,@valgrind_command@,$valgrind_command,;t t
16950 s,@coverage_flags@,$coverage_flags,;t t
16951 s,@enable_multilib@,$enable_multilib,;t t
16952 s,@enable_decimal_float@,$enable_decimal_float,;t t
16953 s,@enable_shared@,$enable_shared,;t t
16954 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16955 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16956 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16957 s,@onestep@,$onestep,;t t
16958 s,@SET_MAKE@,$SET_MAKE,;t t
16959 s,@AWK@,$AWK,;t t
16960 s,@LN_S@,$LN_S,;t t
16961 s,@LN@,$LN,;t t
16962 s,@RANLIB@,$RANLIB,;t t
16963 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16964 s,@ranlib_flags@,$ranlib_flags,;t t
16965 s,@INSTALL@,$INSTALL,;t t
16966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16967 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16968 s,@make_compare_target@,$make_compare_target,;t t
16969 s,@have_mktemp_command@,$have_mktemp_command,;t t
16970 s,@MAKEINFO@,$MAKEINFO,;t t
16971 s,@BUILD_INFO@,$BUILD_INFO,;t t
16972 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16973 s,@FLEX@,$FLEX,;t t
16974 s,@BISON@,$BISON,;t t
16975 s,@NM@,$NM,;t t
16976 s,@AR@,$AR,;t t
16977 s,@stage1_cflags@,$stage1_cflags,;t t
16978 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16979 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16980 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16981 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16982 s,@LIBICONV@,$LIBICONV,;t t
16983 s,@LTLIBICONV@,$LTLIBICONV,;t t
16984 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16985 s,@manext@,$manext,;t t
16986 s,@objext@,$objext,;t t
16987 s,@gthread_flags@,$gthread_flags,;t t
16988 s,@extra_modes_file@,$extra_modes_file,;t t
16989 s,@extra_opt_files@,$extra_opt_files,;t t
16990 s,@USE_NLS@,$USE_NLS,;t t
16991 s,@LIBINTL@,$LIBINTL,;t t
16992 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16993 s,@INCINTL@,$INCINTL,;t t
16994 s,@XGETTEXT@,$XGETTEXT,;t t
16995 s,@GMSGFMT@,$GMSGFMT,;t t
16996 s,@POSUB@,$POSUB,;t t
16997 s,@CATALOGS@,$CATALOGS,;t t
16998 s,@DATADIRNAME@,$DATADIRNAME,;t t
16999 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17000 s,@GENCAT@,$GENCAT,;t t
17001 s,@CATOBJEXT@,$CATOBJEXT,;t t
17002 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17003 s,@CROSS@,$CROSS,;t t
17004 s,@ALL@,$ALL,;t t
17005 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17006 s,@inhibit_libc@,$inhibit_libc,;t t
17007 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17008 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17009 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17010 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17011 s,@collect2@,$collect2,;t t
17012 s,@gcc_cv_as@,$gcc_cv_as,;t t
17013 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17014 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17015 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17016 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17017 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17018 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17019 s,@libgcc_visibility@,$libgcc_visibility,;t t
17020 s,@GGC@,$GGC,;t t
17021 s,@zlibdir@,$zlibdir,;t t
17022 s,@zlibinc@,$zlibinc,;t t
17023 s,@MAINT@,$MAINT,;t t
17024 s,@gcc_tooldir@,$gcc_tooldir,;t t
17025 s,@dollar@,$dollar,;t t
17026 s,@slibdir@,$slibdir,;t t
17027 s,@objdir@,$objdir,;t t
17028 s,@datarootdir@,$datarootdir,;t t
17029 s,@docdir@,$docdir,;t t
17030 s,@htmldir@,$htmldir,;t t
17031 s,@subdirs@,$subdirs,;t t
17032 s,@srcdir@,$srcdir,;t t
17033 s,@all_boot_languages@,$all_boot_languages,;t t
17034 s,@all_compilers@,$all_compilers,;t t
17035 s,@all_gtfiles@,$all_gtfiles,;t t
17036 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17037 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17038 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17039 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17040 s,@all_languages@,$all_languages,;t t
17041 s,@all_selected_languages@,$all_selected_languages,;t t
17042 s,@all_stagestuff@,$all_stagestuff,;t t
17043 s,@build_exeext@,$build_exeext,;t t
17044 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17045 s,@build_xm_file_list@,$build_xm_file_list,;t t
17046 s,@build_xm_include_list@,$build_xm_include_list,;t t
17047 s,@build_xm_defines@,$build_xm_defines,;t t
17048 s,@check_languages@,$check_languages,;t t
17049 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17050 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17051 s,@cpp_install_dir@,$cpp_install_dir,;t t
17052 s,@xmake_file@,$xmake_file,;t t
17053 s,@tmake_file@,$tmake_file,;t t
17054 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17055 s,@extra_headers_list@,$extra_headers_list,;t t
17056 s,@extra_objs@,$extra_objs,;t t
17057 s,@extra_parts@,$extra_parts,;t t
17058 s,@extra_passes@,$extra_passes,;t t
17059 s,@extra_programs@,$extra_programs,;t t
17060 s,@float_h_file@,$float_h_file,;t t
17061 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17062 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17063 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17064 s,@host_exeext@,$host_exeext,;t t
17065 s,@host_xm_file_list@,$host_xm_file_list,;t t
17066 s,@host_xm_include_list@,$host_xm_include_list,;t t
17067 s,@host_xm_defines@,$host_xm_defines,;t t
17068 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17069 s,@install@,$install,;t t
17070 s,@lang_opt_files@,$lang_opt_files,;t t
17071 s,@lang_specs_files@,$lang_specs_files,;t t
17072 s,@lang_tree_files@,$lang_tree_files,;t t
17073 s,@local_prefix@,$local_prefix,;t t
17074 s,@md_file@,$md_file,;t t
17075 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17076 s,@out_file@,$out_file,;t t
17077 s,@out_object_file@,$out_object_file,;t t
17078 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17079 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17080 s,@thread_file@,$thread_file,;t t
17081 s,@tm_file_list@,$tm_file_list,;t t
17082 s,@tm_include_list@,$tm_include_list,;t t
17083 s,@tm_defines@,$tm_defines,;t t
17084 s,@tm_p_file_list@,$tm_p_file_list,;t t
17085 s,@tm_p_include_list@,$tm_p_include_list,;t t
17086 s,@xm_file_list@,$xm_file_list,;t t
17087 s,@xm_include_list@,$xm_include_list,;t t
17088 s,@xm_defines@,$xm_defines,;t t
17089 s,@c_target_objs@,$c_target_objs,;t t
17090 s,@cxx_target_objs@,$cxx_target_objs,;t t
17091 s,@target_cpu_default@,$target_cpu_default,;t t
17092 s,@GMPLIBS@,$GMPLIBS,;t t
17093 s,@GMPINC@,$GMPINC,;t t
17094 s,@LIBOBJS@,$LIBOBJS,;t t
17095 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17096 /@language_hooks@/r $language_hooks
17097 s,@language_hooks@,,;t t
17098 CEOF
17099
17100 _ACEOF
17101
17102 cat >>$CONFIG_STATUS <<\_ACEOF
17103 # Split the substitutions into bite-sized pieces for seds with
17104 # small command number limits, like on Digital OSF/1 and HP-UX.
17105 ac_max_sed_lines=48
17106 ac_sed_frag=1 # Number of current file.
17107 ac_beg=1 # First line for current file.
17108 ac_end=$ac_max_sed_lines # Line after last line for current file.
17109 ac_more_lines=:
17110 ac_sed_cmds=
17111 while $ac_more_lines; do
17112 if test $ac_beg -gt 1; then
17113 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17114 else
17115 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17116 fi
17117 if test ! -s $tmp/subs.frag; then
17118 ac_more_lines=false
17119 else
17120 # The purpose of the label and of the branching condition is to
17121 # speed up the sed processing (if there are no `@' at all, there
17122 # is no need to browse any of the substitutions).
17123 # These are the two extra sed commands mentioned above.
17124 (echo ':t
17125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17126 if test -z "$ac_sed_cmds"; then
17127 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17128 else
17129 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17130 fi
17131 ac_sed_frag=`expr $ac_sed_frag + 1`
17132 ac_beg=$ac_end
17133 ac_end=`expr $ac_end + $ac_max_sed_lines`
17134 fi
17135 done
17136 if test -z "$ac_sed_cmds"; then
17137 ac_sed_cmds=cat
17138 fi
17139 fi # test -n "$CONFIG_FILES"
17140
17141 _ACEOF
17142 cat >>$CONFIG_STATUS <<\_ACEOF
17143 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17145 case $ac_file in
17146 - | *:- | *:-:* ) # input from stdin
17147 cat >$tmp/stdin
17148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17152 * ) ac_file_in=$ac_file.in ;;
17153 esac
17154
17155 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17156 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17158 X"$ac_file" : 'X\(//\)[^/]' \| \
17159 X"$ac_file" : 'X\(//\)$' \| \
17160 X"$ac_file" : 'X\(/\)' \| \
17161 . : '\(.\)' 2>/dev/null ||
17162 echo X"$ac_file" |
17163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17165 /^X\(\/\/\)$/{ s//\1/; q; }
17166 /^X\(\/\).*/{ s//\1/; q; }
17167 s/.*/./; q'`
17168 { if $as_mkdir_p; then
17169 mkdir -p "$ac_dir"
17170 else
17171 as_dir="$ac_dir"
17172 as_dirs=
17173 while test ! -d "$as_dir"; do
17174 as_dirs="$as_dir $as_dirs"
17175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$as_dir" : 'X\(//\)[^/]' \| \
17178 X"$as_dir" : 'X\(//\)$' \| \
17179 X"$as_dir" : 'X\(/\)' \| \
17180 . : '\(.\)' 2>/dev/null ||
17181 echo X"$as_dir" |
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17184 /^X\(\/\/\)$/{ s//\1/; q; }
17185 /^X\(\/\).*/{ s//\1/; q; }
17186 s/.*/./; q'`
17187 done
17188 test ! -n "$as_dirs" || mkdir $as_dirs
17189 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17191 { (exit 1); exit 1; }; }; }
17192
17193 ac_builddir=.
17194
17195 if test "$ac_dir" != .; then
17196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17197 # A "../" for each directory in $ac_dir_suffix.
17198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17199 else
17200 ac_dir_suffix= ac_top_builddir=
17201 fi
17202
17203 case $srcdir in
17204 .) # No --srcdir option. We are building in place.
17205 ac_srcdir=.
17206 if test -z "$ac_top_builddir"; then
17207 ac_top_srcdir=.
17208 else
17209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17210 fi ;;
17211 [\\/]* | ?:[\\/]* ) # Absolute path.
17212 ac_srcdir=$srcdir$ac_dir_suffix;
17213 ac_top_srcdir=$srcdir ;;
17214 *) # Relative path.
17215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17217 esac
17218
17219 # Do not use `cd foo && pwd` to compute absolute paths, because
17220 # the directories may not exist.
17221 case `pwd` in
17222 .) ac_abs_builddir="$ac_dir";;
17223 *)
17224 case "$ac_dir" in
17225 .) ac_abs_builddir=`pwd`;;
17226 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17227 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17228 esac;;
17229 esac
17230 case $ac_abs_builddir in
17231 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17232 *)
17233 case ${ac_top_builddir}. in
17234 .) ac_abs_top_builddir=$ac_abs_builddir;;
17235 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17236 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17237 esac;;
17238 esac
17239 case $ac_abs_builddir in
17240 .) ac_abs_srcdir=$ac_srcdir;;
17241 *)
17242 case $ac_srcdir in
17243 .) ac_abs_srcdir=$ac_abs_builddir;;
17244 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17245 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17246 esac;;
17247 esac
17248 case $ac_abs_builddir in
17249 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17250 *)
17251 case $ac_top_srcdir in
17252 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17253 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17254 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17255 esac;;
17256 esac
17257
17258
17259
17260 if test x"$ac_file" != x-; then
17261 { echo "$as_me:$LINENO: creating $ac_file" >&5
17262 echo "$as_me: creating $ac_file" >&6;}
17263 rm -f "$ac_file"
17264 fi
17265 # Let's still pretend it is `configure' which instantiates (i.e., don't
17266 # use $as_me), people would be surprised to read:
17267 # /* config.h. Generated by config.status. */
17268 if test x"$ac_file" = x-; then
17269 configure_input=
17270 else
17271 configure_input="$ac_file. "
17272 fi
17273 configure_input=$configure_input"Generated from `echo $ac_file_in |
17274 sed 's,.*/,,'` by configure."
17275
17276 # First look for the input files in the build tree, otherwise in the
17277 # src tree.
17278 ac_file_inputs=`IFS=:
17279 for f in $ac_file_in; do
17280 case $f in
17281 -) echo $tmp/stdin ;;
17282 [\\/$]*)
17283 # Absolute (can't be DOS-style, as IFS=:)
17284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17285 echo "$as_me: error: cannot find input file: $f" >&2;}
17286 { (exit 1); exit 1; }; }
17287 echo "$f";;
17288 *) # Relative
17289 if test -f "$f"; then
17290 # Build tree
17291 echo "$f"
17292 elif test -f "$srcdir/$f"; then
17293 # Source tree
17294 echo "$srcdir/$f"
17295 else
17296 # /dev/null tree
17297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17298 echo "$as_me: error: cannot find input file: $f" >&2;}
17299 { (exit 1); exit 1; }; }
17300 fi;;
17301 esac
17302 done` || { (exit 1); exit 1; }
17303 _ACEOF
17304 cat >>$CONFIG_STATUS <<_ACEOF
17305 sed "$ac_vpsub
17306 $extrasub
17307 _ACEOF
17308 cat >>$CONFIG_STATUS <<\_ACEOF
17309 :t
17310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17311 s,@configure_input@,$configure_input,;t t
17312 s,@srcdir@,$ac_srcdir,;t t
17313 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17314 s,@top_srcdir@,$ac_top_srcdir,;t t
17315 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17316 s,@builddir@,$ac_builddir,;t t
17317 s,@abs_builddir@,$ac_abs_builddir,;t t
17318 s,@top_builddir@,$ac_top_builddir,;t t
17319 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17321 rm -f $tmp/stdin
17322 if test x"$ac_file" != x-; then
17323 mv $tmp/out $ac_file
17324 else
17325 cat $tmp/out
17326 rm -f $tmp/out
17327 fi
17328
17329 done
17330 _ACEOF
17331 cat >>$CONFIG_STATUS <<\_ACEOF
17332
17333 #
17334 # CONFIG_HEADER section.
17335 #
17336
17337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17339 #
17340 # ac_d sets the value in "#define NAME VALUE" lines.
17341 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17342 ac_dB='[ ].*$,\1#\2'
17343 ac_dC=' '
17344 ac_dD=',;t'
17345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17346 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17347 ac_uB='$,\1#\2define\3'
17348 ac_uC=' '
17349 ac_uD=',;t'
17350
17351 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17353 case $ac_file in
17354 - | *:- | *:-:* ) # input from stdin
17355 cat >$tmp/stdin
17356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17360 * ) ac_file_in=$ac_file.in ;;
17361 esac
17362
17363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17364 echo "$as_me: creating $ac_file" >&6;}
17365
17366 # First look for the input files in the build tree, otherwise in the
17367 # src tree.
17368 ac_file_inputs=`IFS=:
17369 for f in $ac_file_in; do
17370 case $f in
17371 -) echo $tmp/stdin ;;
17372 [\\/$]*)
17373 # Absolute (can't be DOS-style, as IFS=:)
17374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17375 echo "$as_me: error: cannot find input file: $f" >&2;}
17376 { (exit 1); exit 1; }; }
17377 # Do quote $f, to prevent DOS paths from being IFS'd.
17378 echo "$f";;
17379 *) # Relative
17380 if test -f "$f"; then
17381 # Build tree
17382 echo "$f"
17383 elif test -f "$srcdir/$f"; then
17384 # Source tree
17385 echo "$srcdir/$f"
17386 else
17387 # /dev/null tree
17388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17389 echo "$as_me: error: cannot find input file: $f" >&2;}
17390 { (exit 1); exit 1; }; }
17391 fi;;
17392 esac
17393 done` || { (exit 1); exit 1; }
17394 # Remove the trailing spaces.
17395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17396
17397 _ACEOF
17398
17399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17400 # `conftest.undefs', that substitutes the proper values into
17401 # config.h.in to produce config.h. The first handles `#define'
17402 # templates, and the second `#undef' templates.
17403 # And first: Protect against being on the right side of a sed subst in
17404 # config.status. Protect against being in an unquoted here document
17405 # in config.status.
17406 rm -f conftest.defines conftest.undefs
17407 # Using a here document instead of a string reduces the quoting nightmare.
17408 # Putting comments in sed scripts is not portable.
17409 #
17410 # `end' is used to avoid that the second main sed command (meant for
17411 # 0-ary CPP macros) applies to n-ary macro definitions.
17412 # See the Autoconf documentation for `clear'.
17413 cat >confdef2sed.sed <<\_ACEOF
17414 s/[\\&,]/\\&/g
17415 s,[\\$`],\\&,g
17416 t clear
17417 : clear
17418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17419 t end
17420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17421 : end
17422 _ACEOF
17423 # If some macros were called several times there might be several times
17424 # the same #defines, which is useless. Nevertheless, we may not want to
17425 # sort them, since we want the *last* AC-DEFINE to be honored.
17426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17428 rm -f confdef2sed.sed
17429
17430 # This sed command replaces #undef with comments. This is necessary, for
17431 # example, in the case of _POSIX_SOURCE, which is predefined and required
17432 # on some systems where configure will not decide to define it.
17433 cat >>conftest.undefs <<\_ACEOF
17434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17435 _ACEOF
17436
17437 # Break up conftest.defines because some shells have a limit on the size
17438 # of here documents, and old seds have small limits too (100 cmds).
17439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17442 echo ' :' >>$CONFIG_STATUS
17443 rm -f conftest.tail
17444 while grep . conftest.defines >/dev/null
17445 do
17446 # Write a limited-size here document to $tmp/defines.sed.
17447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17448 # Speed up: don't consider the non `#define' lines.
17449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17450 # Work around the forget-to-reset-the-flag bug.
17451 echo 't clr' >>$CONFIG_STATUS
17452 echo ': clr' >>$CONFIG_STATUS
17453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17454 echo 'CEOF
17455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17456 rm -f $tmp/in
17457 mv $tmp/out $tmp/in
17458 ' >>$CONFIG_STATUS
17459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17460 rm -f conftest.defines
17461 mv conftest.tail conftest.defines
17462 done
17463 rm -f conftest.defines
17464 echo ' fi # grep' >>$CONFIG_STATUS
17465 echo >>$CONFIG_STATUS
17466
17467 # Break up conftest.undefs because some shells have a limit on the size
17468 # of here documents, and old seds have small limits too (100 cmds).
17469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17470 rm -f conftest.tail
17471 while grep . conftest.undefs >/dev/null
17472 do
17473 # Write a limited-size here document to $tmp/undefs.sed.
17474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17475 # Speed up: don't consider the non `#undef'
17476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17477 # Work around the forget-to-reset-the-flag bug.
17478 echo 't clr' >>$CONFIG_STATUS
17479 echo ': clr' >>$CONFIG_STATUS
17480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17481 echo 'CEOF
17482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17483 rm -f $tmp/in
17484 mv $tmp/out $tmp/in
17485 ' >>$CONFIG_STATUS
17486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17487 rm -f conftest.undefs
17488 mv conftest.tail conftest.undefs
17489 done
17490 rm -f conftest.undefs
17491
17492 cat >>$CONFIG_STATUS <<\_ACEOF
17493 # Let's still pretend it is `configure' which instantiates (i.e., don't
17494 # use $as_me), people would be surprised to read:
17495 # /* config.h. Generated by config.status. */
17496 if test x"$ac_file" = x-; then
17497 echo "/* Generated by configure. */" >$tmp/config.h
17498 else
17499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17500 fi
17501 cat $tmp/in >>$tmp/config.h
17502 rm -f $tmp/in
17503 if test x"$ac_file" != x-; then
17504 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17506 echo "$as_me: $ac_file is unchanged" >&6;}
17507 else
17508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510 X"$ac_file" : 'X\(//\)[^/]' \| \
17511 X"$ac_file" : 'X\(//\)$' \| \
17512 X"$ac_file" : 'X\(/\)' \| \
17513 . : '\(.\)' 2>/dev/null ||
17514 echo X"$ac_file" |
17515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17517 /^X\(\/\/\)$/{ s//\1/; q; }
17518 /^X\(\/\).*/{ s//\1/; q; }
17519 s/.*/./; q'`
17520 { if $as_mkdir_p; then
17521 mkdir -p "$ac_dir"
17522 else
17523 as_dir="$ac_dir"
17524 as_dirs=
17525 while test ! -d "$as_dir"; do
17526 as_dirs="$as_dir $as_dirs"
17527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17529 X"$as_dir" : 'X\(//\)[^/]' \| \
17530 X"$as_dir" : 'X\(//\)$' \| \
17531 X"$as_dir" : 'X\(/\)' \| \
17532 . : '\(.\)' 2>/dev/null ||
17533 echo X"$as_dir" |
17534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17536 /^X\(\/\/\)$/{ s//\1/; q; }
17537 /^X\(\/\).*/{ s//\1/; q; }
17538 s/.*/./; q'`
17539 done
17540 test ! -n "$as_dirs" || mkdir $as_dirs
17541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17543 { (exit 1); exit 1; }; }; }
17544
17545 rm -f $ac_file
17546 mv $tmp/config.h $ac_file
17547 fi
17548 else
17549 cat $tmp/config.h
17550 rm -f $tmp/config.h
17551 fi
17552 done
17553 _ACEOF
17554 cat >>$CONFIG_STATUS <<\_ACEOF
17555
17556 #
17557 # CONFIG_COMMANDS section.
17558 #
17559 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17560 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17561 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17562 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17563 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564 X"$ac_dest" : 'X\(//\)[^/]' \| \
17565 X"$ac_dest" : 'X\(//\)$' \| \
17566 X"$ac_dest" : 'X\(/\)' \| \
17567 . : '\(.\)' 2>/dev/null ||
17568 echo X"$ac_dest" |
17569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17571 /^X\(\/\/\)$/{ s//\1/; q; }
17572 /^X\(\/\).*/{ s//\1/; q; }
17573 s/.*/./; q'`
17574 { if $as_mkdir_p; then
17575 mkdir -p "$ac_dir"
17576 else
17577 as_dir="$ac_dir"
17578 as_dirs=
17579 while test ! -d "$as_dir"; do
17580 as_dirs="$as_dir $as_dirs"
17581 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17583 X"$as_dir" : 'X\(//\)[^/]' \| \
17584 X"$as_dir" : 'X\(//\)$' \| \
17585 X"$as_dir" : 'X\(/\)' \| \
17586 . : '\(.\)' 2>/dev/null ||
17587 echo X"$as_dir" |
17588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17590 /^X\(\/\/\)$/{ s//\1/; q; }
17591 /^X\(\/\).*/{ s//\1/; q; }
17592 s/.*/./; q'`
17593 done
17594 test ! -n "$as_dirs" || mkdir $as_dirs
17595 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17597 { (exit 1); exit 1; }; }; }
17598
17599 ac_builddir=.
17600
17601 if test "$ac_dir" != .; then
17602 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17603 # A "../" for each directory in $ac_dir_suffix.
17604 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17605 else
17606 ac_dir_suffix= ac_top_builddir=
17607 fi
17608
17609 case $srcdir in
17610 .) # No --srcdir option. We are building in place.
17611 ac_srcdir=.
17612 if test -z "$ac_top_builddir"; then
17613 ac_top_srcdir=.
17614 else
17615 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17616 fi ;;
17617 [\\/]* | ?:[\\/]* ) # Absolute path.
17618 ac_srcdir=$srcdir$ac_dir_suffix;
17619 ac_top_srcdir=$srcdir ;;
17620 *) # Relative path.
17621 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17622 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17623 esac
17624
17625 # Do not use `cd foo && pwd` to compute absolute paths, because
17626 # the directories may not exist.
17627 case `pwd` in
17628 .) ac_abs_builddir="$ac_dir";;
17629 *)
17630 case "$ac_dir" in
17631 .) ac_abs_builddir=`pwd`;;
17632 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17633 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17634 esac;;
17635 esac
17636 case $ac_abs_builddir in
17637 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17638 *)
17639 case ${ac_top_builddir}. in
17640 .) ac_abs_top_builddir=$ac_abs_builddir;;
17641 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17642 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17643 esac;;
17644 esac
17645 case $ac_abs_builddir in
17646 .) ac_abs_srcdir=$ac_srcdir;;
17647 *)
17648 case $ac_srcdir in
17649 .) ac_abs_srcdir=$ac_abs_builddir;;
17650 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17651 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17652 esac;;
17653 esac
17654 case $ac_abs_builddir in
17655 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17656 *)
17657 case $ac_top_srcdir in
17658 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17659 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17660 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17661 esac;;
17662 esac
17663
17664
17665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17666 echo "$as_me: executing $ac_dest commands" >&6;}
17667 case $ac_dest in
17668 default )
17669 case ${CONFIG_HEADERS} in
17670 *auto-host.h:config.in*)
17671 echo > cstamp-h ;;
17672 esac
17673 # Make sure all the subdirs exist.
17674 for d in $subdirs doc build
17675 do
17676 test -d $d || mkdir $d
17677 done
17678 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17679 # bootstrapping and the installation procedure can still use
17680 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17681 # FLAGS_TO_PASS has been modified to solve the problem there.
17682 # This is virtually a duplicate of what happens in configure.lang; we do
17683 # an extra check to make sure this only happens if ln -s can be used.
17684 case "$LN_S" in
17685 *-s*)
17686 for d in ${subdirs} ; do
17687 STARTDIR=`${PWDCMD-pwd}`
17688 cd $d
17689 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17690 do
17691 rm -f $t
17692 $LN_S ../$t $t 2>/dev/null
17693 done
17694 cd $STARTDIR
17695 done
17696 ;;
17697 esac
17698 ;;
17699 esac
17700 done
17701 _ACEOF
17702
17703 cat >>$CONFIG_STATUS <<\_ACEOF
17704
17705 { (exit 0); exit 0; }
17706 _ACEOF
17707 chmod +x $CONFIG_STATUS
17708 ac_clean_files=$ac_clean_files_save
17709
17710
17711 # configure is writing to config.log, and then calls config.status.
17712 # config.status does its own redirection, appending to config.log.
17713 # Unfortunately, on DOS this fails, as config.log is still kept open
17714 # by configure, so config.status won't be able to write to it; its
17715 # output is simply discarded. So we exec the FD to /dev/null,
17716 # effectively closing config.log, so it can be properly (re)opened and
17717 # appended to by config.status. When coming back to configure, we
17718 # need to make the FD available again.
17719 if test "$no_create" != yes; then
17720 ac_cs_success=:
17721 ac_config_status_args=
17722 test "$silent" = yes &&
17723 ac_config_status_args="$ac_config_status_args --quiet"
17724 exec 5>/dev/null
17725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17726 exec 5>>config.log
17727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17728 # would make configure fail if this is the last instruction.
17729 $ac_cs_success || { (exit 1); exit 1; }
17730 fi
17731