]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac: Add --enable-checking=df.
[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_libsubdir 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 strict_warn cxx_compat_warn warn_cflags 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 datarootdir docdir htmldir 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 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 subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages 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 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 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-checking=LIST
867 enable expensive run-time checks. With LIST,
868 enable only specific categories of checks.
869 Categories are: yes,no,all,none,release.
870 Flags are: assert,df,fold,gc,gcac,misc,
871 rtlflag,rtl,runtime,tree,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float={no,yes,bid,dpd}
883 enable decimal float extension to C. Selecting 'bid'
884 or 'dpd' choses which decimal floating point format
885 to use
886 --enable-threads enable thread usage for target GCC
887 --enable-threads=LIB use LIB thread package for target GCC
888 --enable-tls enable or disable generation of tls code
889 overriding the assembler check for tls support
890 --enable-objc-gc enable the use of Boehm's garbage collector with
891 the GNU Objective-C runtime
892 --disable-shared don't provide a shared libgcc
893 --enable-intermodule build the compiler in one step
894 --enable-languages=LIST specify which front-ends to build
895 --disable-rpath do not hardcode runtime library paths
896 --enable-initfini-array use .init_array/.fini_array sections
897 --enable-sjlj-exceptions
898 arrange to use setjmp/longjmp exception handling
899 --enable-secureplt enable -msecure-plt by default for PowerPC
900 --disable-win32-registry
901 disable lookup of installation paths in the
902 Registry on Windows hosts
903 --enable-win32-registry enable registry lookup (default)
904 --enable-win32-registry=KEY
905 use KEY instead of GCC version as the last portion
906 of the registry key
907 --enable-maintainer-mode
908 enable make rules and dependencies not useful
909 (and sometimes confusing) to the casual installer
910 --enable-version-specific-runtime-libs
911 specify that runtime libraries should be
912 installed in a compiler-specific directory
913
914 Optional Packages:
915 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
916 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
917 --with-build-libsubdir=DIR Directory where to find libraries for build system
918 --with-local-prefix=DIR specifies directory to put local include
919 --with-gxx-include-dir=DIR
920 specifies directory to put g++ header files
921 --with-cpp-install-dir=DIR
922 install the user visible C preprocessor in DIR
923 (relative to PREFIX) as well as PREFIX/bin
924 --with-gnu-ld arrange to work with GNU ld.
925 --with-ld arrange to use the specified ld (full pathname)
926 --with-demangler-in-ld try to use demangler in GNU ld.
927 --with-gnu-as arrange to work with GNU as
928 --with-as arrange to use the specified as (full pathname)
929 --with-stabs arrange to use stabs instead of host debug format
930 --with-dwarf2 force the default debug format to be DWARF 2
931 --with-build-sysroot=sysroot
932 use sysroot as the system root during the build
933 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934 --with-gnu-ld assume the C compiler uses GNU ld default=no
935 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
936 --without-libiconv-prefix don't search for libiconv in includedir and libdir
937 --with-system-libunwind use installed libunwind
938 --with-long-double-128 Use 128-bit long double by default.
939 --with-gc={page,zone} choose the garbage collection mechanism to use
940 with the compiler
941 --with-system-zlib use installed libz
942 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
943 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
944 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
945 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
946
947 Some influential environment variables:
948 CC C compiler command
949 CFLAGS C compiler flags
950 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
951 nonstandard directory <lib dir>
952 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
953 headers in a nonstandard directory <include dir>
954 CPP C preprocessor
955 GMPLIBS How to link GMP
956 GMPINC How to find GMP include files
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965 # If there are subdirs, report their specific --help.
966 ac_popdir=`pwd`
967 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968 test -d $ac_dir || continue
969 ac_builddir=.
970
971 if test "$ac_dir" != .; then
972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973 # A "../" for each directory in $ac_dir_suffix.
974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976 ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980 .) # No --srcdir option. We are building in place.
981 ac_srcdir=.
982 if test -z "$ac_top_builddir"; then
983 ac_top_srcdir=.
984 else
985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986 fi ;;
987 [\\/]* | ?:[\\/]* ) # Absolute path.
988 ac_srcdir=$srcdir$ac_dir_suffix;
989 ac_top_srcdir=$srcdir ;;
990 *) # Relative path.
991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000 case "$ac_dir" in
1001 .) ac_abs_builddir=`pwd`;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004 esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009 case ${ac_top_builddir}. in
1010 .) ac_abs_top_builddir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013 esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018 case $ac_srcdir in
1019 .) ac_abs_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022 esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027 case $ac_top_srcdir in
1028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031 esac;;
1032 esac
1033
1034 cd $ac_dir
1035 # Check for guested configure; otherwise get Cygnus style configure.
1036 if test -f $ac_srcdir/configure.gnu; then
1037 echo
1038 $SHELL $ac_srcdir/configure.gnu --help=recursive
1039 elif test -f $ac_srcdir/configure; then
1040 echo
1041 $SHELL $ac_srcdir/configure --help=recursive
1042 elif test -f $ac_srcdir/configure.ac ||
1043 test -f $ac_srcdir/configure.in; then
1044 echo
1045 $ac_configure --help
1046 else
1047 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048 fi
1049 cd $ac_popdir
1050 done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055 cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061 exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59. Invocation command line was
1070
1071 $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1088
1089 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1090 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1093 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1094 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1095 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102 IFS=$as_save_IFS
1103 test -z "$as_dir" && as_dir=.
1104 echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131 for ac_arg
1132 do
1133 case $ac_arg in
1134 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 continue ;;
1138 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140 esac
1141 case $ac_pass in
1142 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143 2)
1144 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145 if test $ac_must_keep_next = true; then
1146 ac_must_keep_next=false # Got value, back to normal.
1147 else
1148 case $ac_arg in
1149 *=* | --config-cache | -C | -disable-* | --disable-* \
1150 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152 | -with-* | --with-* | -without-* | --without-* | --x)
1153 case "$ac_configure_args0 " in
1154 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155 esac
1156 ;;
1157 -* ) ac_must_keep_next=true ;;
1158 esac
1159 fi
1160 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161 # Get rid of the leading space.
1162 ac_sep=" "
1163 ;;
1164 esac
1165 done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log. We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176 # Save into config.log some information that might help in debugging.
1177 {
1178 echo
1179
1180 cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185 echo
1186 # The following way of writing the cache mishandles newlines in values,
1187 {
1188 (set) 2>&1 |
1189 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190 *ac_space=\ *)
1191 sed -n \
1192 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194 ;;
1195 *)
1196 sed -n \
1197 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198 ;;
1199 esac;
1200 }
1201 echo
1202
1203 cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_vars
1210 do
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1215
1216 if test -n "$ac_subst_files"; then
1217 cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222 echo
1223 for ac_var in $ac_subst_files
1224 do
1225 eval ac_val=$`echo $ac_var`
1226 echo "$ac_var='"'"'$ac_val'"'"'"
1227 done | sort
1228 echo
1229 fi
1230
1231 if test -s confdefs.h; then
1232 cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237 echo
1238 sed "/^$/d" confdefs.h | sort
1239 echo
1240 fi
1241 test "$ac_signal" != 0 &&
1242 echo "$as_me: caught signal $ac_signal"
1243 echo "$as_me: exit $exit_status"
1244 } >&5
1245 rm -f core *.core &&
1246 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 exit $exit_status
1248 ' 0
1249 for ac_signal in 1 2 13 15; do
1250 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289 if test "x$prefix" != xNONE; then
1290 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291 else
1292 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296 if test -r "$ac_site_file"; then
1297 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299 sed 's/^/| /' "$ac_site_file" >&5
1300 . "$ac_site_file"
1301 fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305 # Some versions of bash will fail to source /dev/null (special
1306 # files actually), so we avoid doing that.
1307 if test -f "$cache_file"; then
1308 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310 case $cache_file in
1311 [\\/]* | ?:[\\/]* ) . $cache_file;;
1312 *) . ./$cache_file;;
1313 esac
1314 fi
1315 else
1316 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318 >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327 eval ac_new_set=\$ac_env_${ac_var}_set
1328 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329 eval ac_new_val="\$ac_env_${ac_var}_value"
1330 case $ac_old_set,$ac_new_set in
1331 set,)
1332 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334 ac_cache_corrupted=: ;;
1335 ,set)
1336 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338 ac_cache_corrupted=: ;;
1339 ,);;
1340 *)
1341 if test "x$ac_old_val" != "x$ac_new_val"; then
1342 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1345 echo "$as_me: former value: $ac_old_val" >&2;}
1346 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1347 echo "$as_me: current value: $ac_new_val" >&2;}
1348 ac_cache_corrupted=:
1349 fi;;
1350 esac
1351 # Pass precious variables to config.status.
1352 if test "$ac_new_set" = set; then
1353 case $ac_new_val in
1354 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356 *) ac_arg=$ac_var=$ac_new_val ;;
1357 esac
1358 case " $ac_configure_args " in
1359 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1360 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 esac
1362 fi
1363 done
1364 if $ac_cache_corrupted; then
1365 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369 { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1398
1399
1400 gcc_version=`cat $srcdir/BASE-VER`
1401
1402 # Determine the host, build, and target systems
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1406 ac_aux_dir=$ac_dir
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1408 break
1409 elif test -f $ac_dir/install.sh; then
1410 ac_aux_dir=$ac_dir
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1412 break
1413 elif test -f $ac_dir/shtool; then
1414 ac_aux_dir=$ac_dir
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 break
1417 fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432 { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439 ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441 ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445 { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449 { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467 ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489 ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507 test "$program_prefix$program_suffix$program_transform_name" = \
1508 NONENONEs,x,x, &&
1509 program_prefix=${target_alias}-
1510
1511 # Determine the noncanonical target name, for directory use.
1512 case ${build_alias} in
1513 "") build_noncanonical=${build} ;;
1514 *) build_noncanonical=${build_alias} ;;
1515 esac
1516
1517 case ${host_alias} in
1518 "") host_noncanonical=${build_noncanonical} ;;
1519 *) host_noncanonical=${host_alias} ;;
1520 esac
1521
1522 case ${target_alias} in
1523 "") target_noncanonical=${host_noncanonical} ;;
1524 *) target_noncanonical=${target_alias} ;;
1525 esac
1526
1527
1528
1529
1530 # Determine the target- and build-specific subdirectories
1531
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1537 # finishes. So:
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1540
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1543
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546 withval="$with_build_libsubdir"
1547 build_libsubdir="$withval"
1548 else
1549 build_libsubdir="$build_subdir"
1550 fi;
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553 || test -d $srcdir/../host-${host_noncanonical}; then
1554 host_subdir="host-${host_noncanonical}"
1555 else
1556 host_subdir=.
1557 fi
1558 # No prefix.
1559 target_subdir=${target_noncanonical}
1560
1561
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $. echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1572 _ACEOF
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1574 rm conftest.sed
1575
1576
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 library_path_setting="contains current directory"
1590 ;;
1591 *)
1592 library_path_setting="ok"
1593 ;;
1594 esac
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1607 fi
1608
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1612 # is true:
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620 gcc_exec_prefix_setting="contains current directory"
1621 ;;
1622 *)
1623 gcc_exec_prefix_setting="ok"
1624 ;;
1625 esac
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637 { (exit 1); exit 1; }; }
1638 fi
1639
1640 # -----------
1641 # Directories
1642 # -----------
1643
1644 # Specify the local prefix
1645 local_prefix=
1646
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649 withval="$with_local_prefix"
1650 case "${withval}" in
1651 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653 { (exit 1); exit 1; }; } ;;
1654 no) ;;
1655 *) local_prefix=$with_local_prefix ;;
1656 esac
1657 fi;
1658
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661 local_prefix=/usr/local
1662 fi
1663
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1669
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672 withval="$with_gxx_include_dir"
1673 case "${withval}" in
1674 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676 { (exit 1); exit 1; }; } ;;
1677 no) ;;
1678 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1679 esac
1680 fi;
1681
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684 if test x${enable_version_specific_runtime_libs} = xyes; then
1685 gcc_gxx_include_dir='${libsubdir}/include/c++'
1686 else
1687 libstdcxx_incdir='include/c++/$(version)'
1688 if test x$host != x$target; then
1689 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1690 fi
1691 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1692 fi
1693 fi
1694
1695
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698 withval="$with_cpp_install_dir"
1699 if test x$withval = xyes; then
1700 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702 { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704 cpp_install_dir=$withval
1705 fi
1706 fi;
1707
1708 # We would like to our source tree to be readonly. However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1712 # just that.
1713
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718 enableval="$enable_generated_files_in_srcdir"
1719 generated_files_in_srcdir=$enableval
1720 else
1721 generated_files_in_srcdir=no
1722 fi;
1723
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1726
1727 if test "$generated_files_in_srcdir" = "yes"; then
1728 GENINSRC=''
1729 else
1730 GENINSRC='#'
1731 fi
1732
1733
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1737
1738 # With GNU ld
1739
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742 withval="$with_gnu_ld"
1743 gnu_ld_flag="$with_gnu_ld"
1744 else
1745 gnu_ld_flag=no
1746 fi;
1747
1748 # With pre-defined ld
1749
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1752 withval="$with_ld"
1753 DEFAULT_LINKER="$with_ld"
1754 fi;
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756 if test ! -x "$DEFAULT_LINKER"; then
1757 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759 { (exit 1); exit 1; }; }
1760 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1761 gnu_ld_flag=yes
1762 fi
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1766 _ACEOF
1767
1768 fi
1769
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1774 _ACEOF
1775
1776
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780 if test x"$gnu_ld_flag" = x"no"; then
1781 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1783 else
1784 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1786 fi
1787 else
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792 # With demangler in GNU ld
1793
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796 withval="$with_demangler_in_ld"
1797 demangler_in_ld="$with_demangler_in_ld"
1798 else
1799 demangler_in_ld=no
1800 fi;
1801
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1805
1806 # With GNU as
1807
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810 withval="$with_gnu_as"
1811 gas_flag="$with_gnu_as"
1812 else
1813 gas_flag=no
1814 fi;
1815
1816
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1819 withval="$with_as"
1820 DEFAULT_ASSEMBLER="$with_as"
1821 fi;
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823 if test ! -x "$DEFAULT_ASSEMBLER"; then
1824 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826 { (exit 1); exit 1; }; }
1827 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1828 gas_flag=yes
1829 fi
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1833 _ACEOF
1834
1835 fi
1836
1837 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1838 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1839 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1840 if test x"$gas_flag" = x"no"; then
1841 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1842 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1843 else
1844 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1845 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1846 fi
1847 else
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 # ---------------
1853 # Find C compiler
1854 # ---------------
1855
1856 # If a non-executable a.out is present (e.g. created by GNU as above even if
1857 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1858 # file, even when creating an executable, so an execution test fails.
1859 # Remove possible default executable files to avoid this.
1860 #
1861 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1862 # Autoconf includes it.
1863 rm -f a.out a.exe b.out
1864
1865 # Find the native compiler
1866 ac_ext=c
1867 ac_cpp='$CPP $CPPFLAGS'
1868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885 IFS=$as_save_IFS
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909 ac_ct_CC=$CC
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1930 fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945 CC=$ac_ct_CC
1946 else
1947 CC="$ac_cv_prog_CC"
1948 fi
1949
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1953 set dummy ${ac_tool_prefix}cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 for as_dir in $PATH
1964 do
1965 IFS=$as_save_IFS
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 ac_cv_prog_CC="${ac_tool_prefix}cc"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 break 2
1972 fi
1973 done
1974 done
1975
1976 fi
1977 fi
1978 CC=$ac_cv_prog_CC
1979 if test -n "$CC"; then
1980 echo "$as_me:$LINENO: result: $CC" >&5
1981 echo "${ECHO_T}$CC" >&6
1982 else
1983 echo "$as_me:$LINENO: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987 fi
1988 if test -z "$ac_cv_prog_CC"; then
1989 ac_ct_CC=$CC
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2007 ac_cv_prog_ac_ct_CC="cc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 break 2
2010 fi
2011 done
2012 done
2013
2014 fi
2015 fi
2016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017 if test -n "$ac_ct_CC"; then
2018 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2019 echo "${ECHO_T}$ac_ct_CC" >&6
2020 else
2021 echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6
2023 fi
2024
2025 CC=$ac_ct_CC
2026 else
2027 CC="$ac_cv_prog_CC"
2028 fi
2029
2030 fi
2031 if test -z "$CC"; then
2032 # Extract the first word of "cc", so it can be a program name with args.
2033 set dummy cc; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 else
2042 ac_prog_rejected=no
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2051 ac_prog_rejected=yes
2052 continue
2053 fi
2054 ac_cv_prog_CC="cc"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 break 2
2057 fi
2058 done
2059 done
2060
2061 if test $ac_prog_rejected = yes; then
2062 # We found a bogon in the path, so make sure we never use it.
2063 set dummy $ac_cv_prog_CC
2064 shift
2065 if test $# != 0; then
2066 # We chose a different compiler from the bogus one.
2067 # However, it has the same basename, so the bogon will be chosen
2068 # first if we set CC to just the basename; use the full file name.
2069 shift
2070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2071 fi
2072 fi
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077 echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084 fi
2085 if test -z "$CC"; then
2086 if test -n "$ac_tool_prefix"; then
2087 for ac_prog in cl
2088 do
2089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2109 fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 test -n "$CC" && break
2125 done
2126 fi
2127 if test -z "$CC"; then
2128 ac_ct_CC=$CC
2129 for ac_prog in cl
2130 do
2131 # Extract the first word of "$ac_prog", so it can be a program name with args.
2132 set dummy $ac_prog; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 if test -n "$ac_ct_CC"; then
2139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148 ac_cv_prog_ac_ct_CC="$ac_prog"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 break 2
2151 fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158 if test -n "$ac_ct_CC"; then
2159 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160 echo "${ECHO_T}$ac_ct_CC" >&6
2161 else
2162 echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 test -n "$ac_ct_CC" && break
2167 done
2168
2169 CC=$ac_ct_CC
2170 fi
2171
2172 fi
2173
2174
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2180
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO:" \
2183 "checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186 (eval $ac_compiler --version </dev/null >&5) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191 (eval $ac_compiler -v </dev/null >&5) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196 (eval $ac_compiler -V </dev/null >&5) 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200
2201 cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h. */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h. */
2207
2208 int
2209 main ()
2210 {
2211
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 ac_clean_files_save=$ac_clean_files
2217 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2218 # Try to create an executable without -o first, disregard a.out.
2219 # It will help us diagnose broken compilers, and finding out an intuition
2220 # of exeext.
2221 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225 (eval $ac_link_default) 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }; then
2229 # Find the output, starting from the most likely. This scheme is
2230 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2231 # resort.
2232
2233 # Be careful to initialize this variable, since it used to be cached.
2234 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2235 ac_cv_exeext=
2236 # b.out is created by i960 compilers.
2237 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2238 do
2239 test -f "$ac_file" || continue
2240 case $ac_file in
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2242 ;;
2243 conftest.$ac_ext )
2244 # This is the source file.
2245 ;;
2246 [ab].out )
2247 # We found the default executable, but exeext='' is most
2248 # certainly right.
2249 break;;
2250 *.* )
2251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252 # FIXME: I believe we export ac_cv_exeext for Libtool,
2253 # but it would be cool to find out if it's true. Does anybody
2254 # maintain Libtool? --akim.
2255 export ac_cv_exeext
2256 break;;
2257 * )
2258 break;;
2259 esac
2260 done
2261 else
2262 echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: C compiler cannot create executables
2268 See \`config.log' for more details." >&2;}
2269 { (exit 77); exit 77; }; }
2270 fi
2271
2272 ac_exeext=$ac_cv_exeext
2273 echo "$as_me:$LINENO: result: $ac_file" >&5
2274 echo "${ECHO_T}$ac_file" >&6
2275
2276 # Check the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try='./$ac_file'
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; }; then
2289 cross_compiling=no
2290 else
2291 if test "$cross_compiling" = maybe; then
2292 cross_compiling=yes
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295 If you meant to cross compile, use \`--host'.
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot run C compiled programs.
2298 If you meant to cross compile, use \`--host'.
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2301 fi
2302 fi
2303 fi
2304 echo "$as_me:$LINENO: result: yes" >&5
2305 echo "${ECHO_T}yes" >&6
2306
2307 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2308 ac_clean_files=$ac_clean_files_save
2309 # Check the compiler produces executables we can run. If not, either
2310 # the compiler is broken, or we cross compile.
2311 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314 echo "${ECHO_T}$cross_compiling" >&6
2315
2316 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319 (eval $ac_link) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2325 # work properly (i.e., refer to `conftest.exe'), while it won't with
2326 # `rm'.
2327 for ac_file in conftest.exe conftest conftest.*; do
2328 test -f "$ac_file" || continue
2329 case $ac_file in
2330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332 export ac_cv_exeext
2333 break;;
2334 * ) break;;
2335 esac
2336 done
2337 else
2338 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2343 fi
2344
2345 rm -f conftest$ac_cv_exeext
2346 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347 echo "${ECHO_T}$ac_cv_exeext" >&6
2348
2349 rm -f conftest.$ac_ext
2350 EXEEXT=$ac_cv_exeext
2351 ac_exeext=$EXEEXT
2352 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354 if test "${ac_cv_objext+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363
2364 int
2365 main ()
2366 {
2367
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 rm -f conftest.o conftest.obj
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374 (eval $ac_compile) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; then
2378 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379 case $ac_file in
2380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382 break;;
2383 esac
2384 done
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2394 fi
2395
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397 fi
2398 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413
2414 int
2415 main ()
2416 {
2417 #ifndef __GNUC__
2418 choke me
2419 #endif
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } &&
2434 { ac_try='test -z "$ac_c_werror_flag"
2435 || test ! -s conftest.err'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; } &&
2441 { ac_try='test -s conftest.$ac_objext'
2442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 (eval $ac_try) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; }; then
2447 ac_compiler_gnu=yes
2448 else
2449 echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 ac_compiler_gnu=no
2453 fi
2454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
2457 fi
2458 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460 GCC=`test $ac_compiler_gnu = yes && echo yes`
2461 ac_test_CFLAGS=${CFLAGS+set}
2462 ac_save_CFLAGS=$CFLAGS
2463 CFLAGS="-g"
2464 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466 if test "${ac_cv_prog_cc_g+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475
2476 int
2477 main ()
2478 {
2479
2480 ;
2481 return 0;
2482 }
2483 _ACEOF
2484 rm -f conftest.$ac_objext
2485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486 (eval $ac_compile) 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -z "$ac_c_werror_flag"
2494 || test ! -s conftest.err'
2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496 (eval $ac_try) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }; } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cc_g=yes
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_cv_prog_cc_g=no
2512 fi
2513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517 if test "$ac_test_CFLAGS" = set; then
2518 CFLAGS=$ac_save_CFLAGS
2519 elif test $ac_cv_prog_cc_g = yes; then
2520 if test "$GCC" = yes; then
2521 CFLAGS="-g -O2"
2522 else
2523 CFLAGS="-g"
2524 fi
2525 else
2526 if test "$GCC" = yes; then
2527 CFLAGS="-O2"
2528 else
2529 CFLAGS=
2530 fi
2531 fi
2532 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 else
2537 ac_cv_prog_cc_stdc=no
2538 ac_save_CC=$CC
2539 cat >conftest.$ac_ext <<_ACEOF
2540 /* confdefs.h. */
2541 _ACEOF
2542 cat confdefs.h >>conftest.$ac_ext
2543 cat >>conftest.$ac_ext <<_ACEOF
2544 /* end confdefs.h. */
2545 #include <stdarg.h>
2546 #include <stdio.h>
2547 #include <sys/types.h>
2548 #include <sys/stat.h>
2549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2550 struct buf { int x; };
2551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2553 char **p;
2554 int i;
2555 {
2556 return p[i];
2557 }
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2559 {
2560 char *s;
2561 va_list v;
2562 va_start (v,p);
2563 s = g (p, va_arg (v,int));
2564 va_end (v);
2565 return s;
2566 }
2567
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2569 function prototypes and stuff, but not '\xHH' hex character constants.
2570 These don't provoke an error unfortunately, instead are silently treated
2571 as 'x'. The following induces an error, until -std1 is added to get
2572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2573 array size at least. It's necessary to write '\x00'==0 to get something
2574 that's true only with -std1. */
2575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2576
2577 int test (int i, double x);
2578 struct s1 {int (*f) (int a);};
2579 struct s2 {int (*f) (double a);};
2580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2581 int argc;
2582 char **argv;
2583 int
2584 main ()
2585 {
2586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2587 ;
2588 return 0;
2589 }
2590 _ACEOF
2591 # Don't try gcc -ansi; that turns off useful extensions and
2592 # breaks some systems' header files.
2593 # AIX -qlanglvl=ansi
2594 # Ultrix and OSF/1 -std1
2595 # HP-UX 10.20 and later -Ae
2596 # HP-UX older versions -Aa -D_HPUX_SOURCE
2597 # SVR4 -Xc -D__EXTENSIONS__
2598 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2599 do
2600 CC="$ac_save_CC $ac_arg"
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2604 ac_status=$?
2605 grep -v '^ *+' conftest.er1 >conftest.err
2606 rm -f conftest.er1
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_cv_prog_cc_stdc=$ac_arg
2624 break
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 fi
2630 rm -f conftest.err conftest.$ac_objext
2631 done
2632 rm -f conftest.$ac_ext conftest.$ac_objext
2633 CC=$ac_save_CC
2634
2635 fi
2636
2637 case "x$ac_cv_prog_cc_stdc" in
2638 x|xno)
2639 echo "$as_me:$LINENO: result: none needed" >&5
2640 echo "${ECHO_T}none needed" >&6 ;;
2641 *)
2642 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644 CC="$CC $ac_cv_prog_cc_stdc" ;;
2645 esac
2646
2647 # Some people use a C++ compiler to compile C. Since we use `exit',
2648 # in C++ we need to declare it. In case someone uses the same compiler
2649 # for both compiling C and C++ we need to have the C++ compiler decide
2650 # the declaration of exit, since it's the most demanding environment.
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #ifndef __cplusplus
2653 choke me
2654 #endif
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_c_werror_flag"
2666 || test ! -s conftest.err'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 for ac_declaration in \
2679 '' \
2680 'extern "C" void std::exit (int) throw (); using std::exit;' \
2681 'extern "C" void std::exit (int); using std::exit;' \
2682 'extern "C" void exit (int) throw ();' \
2683 'extern "C" void exit (int);' \
2684 'void exit (int);'
2685 do
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 $ac_declaration
2693 #include <stdlib.h>
2694 int
2695 main ()
2696 {
2697 exit (42);
2698 ;
2699 return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704 (eval $ac_compile) 2>conftest.er1
2705 ac_status=$?
2706 grep -v '^ *+' conftest.er1 >conftest.err
2707 rm -f conftest.er1
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } &&
2711 { ac_try='test -z "$ac_c_werror_flag"
2712 || test ! -s conftest.err'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 (eval $ac_try) 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; } &&
2718 { ac_try='test -s conftest.$ac_objext'
2719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 (eval $ac_try) 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; }; then
2724 :
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 continue
2730 fi
2731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738 $ac_declaration
2739 int
2740 main ()
2741 {
2742 exit (42);
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 break
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 fi
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776 done
2777 rm -f conftest*
2778 if test -n "$ac_declaration"; then
2779 echo '#ifdef __cplusplus' >>confdefs.h
2780 echo $ac_declaration >>confdefs.h
2781 echo '#endif' >>confdefs.h
2782 fi
2783
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788 fi
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796 if test "x$CC" != xcc; then
2797 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2798 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2799 else
2800 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2801 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2802 fi
2803 set dummy $CC; ac_cc=`echo $2 |
2804 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2805 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h. */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2814
2815 int
2816 main ()
2817 {
2818
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 # Make sure it works both with $CC and with simple cc.
2824 # We do the test twice because some compilers refuse to overwrite an
2825 # existing .o file with -o, though they will create one.
2826 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2827 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); };
2837 then
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2839 if test "x$CC" != xcc; then
2840 # Test first that cc exists at all.
2841 if { ac_try='cc -c conftest.$ac_ext >&5'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
2853 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); };
2858 then
2859 # cc works too.
2860 :
2861 else
2862 # cc exists but doesn't like -o.
2863 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2864 fi
2865 fi
2866 fi
2867 else
2868 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2869 fi
2870 rm -f conftest*
2871
2872 fi
2873 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875 echo "${ECHO_T}yes" >&6
2876 else
2877 echo "$as_me:$LINENO: result: no" >&5
2878 echo "${ECHO_T}no" >&6
2879
2880 cat >>confdefs.h <<\_ACEOF
2881 #define NO_MINUS_C_MINUS_O 1
2882 _ACEOF
2883
2884 fi
2885
2886 # expand $ac_aux_dir to an absolute path
2887 am_aux_dir=`cd $ac_aux_dir && pwd`
2888
2889 # FIXME: we rely on the cache variable name because
2890 # there is no other way.
2891 set dummy $CC
2892 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2894 # Losing compiler, so override with the script.
2895 # FIXME: It is wrong to rewrite CC.
2896 # But if we don't then we get into trouble of one sort or another.
2897 # A longer-term fix would be to have automake use am__CC in this case,
2898 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2899 CC="$am_aux_dir/compile $CC"
2900 fi
2901
2902 # autoconf is lame and doesn't give us any substitution variable for this.
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2904 NO_MINUS_C_MINUS_O=yes
2905 else
2906 OUTPUT_OPTION='-o $@'
2907 fi
2908
2909
2910
2911 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2912 # optimizations to be activated explicitly by the toplevel.
2913 case "$CC" in
2914 */prev-gcc/xgcc*) ;;
2915 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2916 esac
2917
2918
2919 # -------------------------
2920 # Check C compiler features
2921 # -------------------------
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2930 # On Suns, sometimes $CPP names a directory.
2931 if test -n "$CPP" && test -d "$CPP"; then
2932 CPP=
2933 fi
2934 if test -z "$CPP"; then
2935 if test "${ac_cv_prog_CPP+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 # Double quotes because CPP needs to be expanded
2939 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2940 do
2941 ac_preproc_ok=false
2942 for ac_c_preproc_warn_flag in '' yes
2943 do
2944 # Use a header file that comes with gcc, so configuring glibc
2945 # with a fresh cross-compiler works.
2946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2947 # <limits.h> exists even on freestanding compilers.
2948 # On the NeXT, cc -E runs the code through the compiler's parser,
2949 # not just through cpp. "Syntax error" is here to catch this case.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #ifdef __STDC__
2957 # include <limits.h>
2958 #else
2959 # include <assert.h>
2960 #endif
2961 Syntax error
2962 _ACEOF
2963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2974 else
2975 ac_cpp_err=
2976 fi
2977 else
2978 ac_cpp_err=yes
2979 fi
2980 if test -z "$ac_cpp_err"; then
2981 :
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 # Broken: fails on valid input.
2987 continue
2988 fi
2989 rm -f conftest.err conftest.$ac_ext
2990
2991 # OK, works on sane cases. Now check whether non-existent headers
2992 # can be detected and how.
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
2999 #include <ac_nonexistent.h>
3000 _ACEOF
3001 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } >/dev/null; then
3009 if test -s conftest.err; then
3010 ac_cpp_err=$ac_c_preproc_warn_flag
3011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3012 else
3013 ac_cpp_err=
3014 fi
3015 else
3016 ac_cpp_err=yes
3017 fi
3018 if test -z "$ac_cpp_err"; then
3019 # Broken: success on invalid input.
3020 continue
3021 else
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
3025 # Passes both tests.
3026 ac_preproc_ok=:
3027 break
3028 fi
3029 rm -f conftest.err conftest.$ac_ext
3030
3031 done
3032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3033 rm -f conftest.err conftest.$ac_ext
3034 if $ac_preproc_ok; then
3035 break
3036 fi
3037
3038 done
3039 ac_cv_prog_CPP=$CPP
3040
3041 fi
3042 CPP=$ac_cv_prog_CPP
3043 else
3044 ac_cv_prog_CPP=$CPP
3045 fi
3046 echo "$as_me:$LINENO: result: $CPP" >&5
3047 echo "${ECHO_T}$CPP" >&6
3048 ac_preproc_ok=false
3049 for ac_c_preproc_warn_flag in '' yes
3050 do
3051 # Use a header file that comes with gcc, so configuring glibc
3052 # with a fresh cross-compiler works.
3053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3054 # <limits.h> exists even on freestanding compilers.
3055 # On the NeXT, cc -E runs the code through the compiler's parser,
3056 # not just through cpp. "Syntax error" is here to catch this case.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #ifdef __STDC__
3064 # include <limits.h>
3065 #else
3066 # include <assert.h>
3067 #endif
3068 Syntax error
3069 _ACEOF
3070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } >/dev/null; then
3078 if test -s conftest.err; then
3079 ac_cpp_err=$ac_c_preproc_warn_flag
3080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3081 else
3082 ac_cpp_err=
3083 fi
3084 else
3085 ac_cpp_err=yes
3086 fi
3087 if test -z "$ac_cpp_err"; then
3088 :
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 # Broken: fails on valid input.
3094 continue
3095 fi
3096 rm -f conftest.err conftest.$ac_ext
3097
3098 # OK, works on sane cases. Now check whether non-existent headers
3099 # can be detected and how.
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 #include <ac_nonexistent.h>
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } >/dev/null; then
3116 if test -s conftest.err; then
3117 ac_cpp_err=$ac_c_preproc_warn_flag
3118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3119 else
3120 ac_cpp_err=
3121 fi
3122 else
3123 ac_cpp_err=yes
3124 fi
3125 if test -z "$ac_cpp_err"; then
3126 # Broken: success on invalid input.
3127 continue
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 # Passes both tests.
3133 ac_preproc_ok=:
3134 break
3135 fi
3136 rm -f conftest.err conftest.$ac_ext
3137
3138 done
3139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3140 rm -f conftest.err conftest.$ac_ext
3141 if $ac_preproc_ok; then
3142 :
3143 else
3144 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3149 fi
3150
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158 echo "$as_me:$LINENO: checking for inline" >&5
3159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3160 if test "${ac_cv_c_inline+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 ac_cv_c_inline=no
3164 for ac_kw in inline __inline__ __inline; do
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #ifndef __cplusplus
3172 typedef int foo_t;
3173 static $ac_kw foo_t static_foo () {return 0; }
3174 $ac_kw foo_t foo () {return 0; }
3175 #endif
3176
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 (eval $ac_try) 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_c_inline=$ac_kw; break
3201 else
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 fi
3206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3207 done
3208
3209 fi
3210 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3211 echo "${ECHO_T}$ac_cv_c_inline" >&6
3212
3213
3214 case $ac_cv_c_inline in
3215 inline | yes) ;;
3216 *)
3217 case $ac_cv_c_inline in
3218 no) ac_val=;;
3219 *) ac_val=$ac_cv_c_inline;;
3220 esac
3221 cat >>confdefs.h <<_ACEOF
3222 #ifndef __cplusplus
3223 #define inline $ac_val
3224 #endif
3225 _ACEOF
3226 ;;
3227 esac
3228
3229
3230 # sizeof(char) is 1 by definition.
3231
3232 echo "$as_me:$LINENO: checking for egrep" >&5
3233 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3234 if test "${ac_cv_prog_egrep+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3238 then ac_cv_prog_egrep='grep -E'
3239 else ac_cv_prog_egrep='egrep'
3240 fi
3241 fi
3242 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3243 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3244 EGREP=$ac_cv_prog_egrep
3245
3246
3247 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3248 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3249 if test "${ac_cv_header_stdc+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258 #include <stdlib.h>
3259 #include <stdarg.h>
3260 #include <string.h>
3261 #include <float.h>
3262
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_header_stdc=yes
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_cv_header_stdc=no
3299 fi
3300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301
3302 if test $ac_cv_header_stdc = yes; then
3303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3304 cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h. */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h. */
3310 #include <string.h>
3311
3312 _ACEOF
3313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3314 $EGREP "memchr" >/dev/null 2>&1; then
3315 :
3316 else
3317 ac_cv_header_stdc=no
3318 fi
3319 rm -f conftest*
3320
3321 fi
3322
3323 if test $ac_cv_header_stdc = yes; then
3324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #include <stdlib.h>
3332
3333 _ACEOF
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 $EGREP "free" >/dev/null 2>&1; then
3336 :
3337 else
3338 ac_cv_header_stdc=no
3339 fi
3340 rm -f conftest*
3341
3342 fi
3343
3344 if test $ac_cv_header_stdc = yes; then
3345 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3346 if test "$cross_compiling" = yes; then
3347 :
3348 else
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #include <ctype.h>
3356 #if ((' ' & 0x0FF) == 0x020)
3357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3359 #else
3360 # define ISLOWER(c) \
3361 (('a' <= (c) && (c) <= 'i') \
3362 || ('j' <= (c) && (c) <= 'r') \
3363 || ('s' <= (c) && (c) <= 'z'))
3364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3365 #endif
3366
3367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3368 int
3369 main ()
3370 {
3371 int i;
3372 for (i = 0; i < 256; i++)
3373 if (XOR (islower (i), ISLOWER (i))
3374 || toupper (i) != TOUPPER (i))
3375 exit(2);
3376 exit (0);
3377 }
3378 _ACEOF
3379 rm -f conftest$ac_exeext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381 (eval $ac_link) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 :
3391 else
3392 echo "$as_me: program exited with status $ac_status" >&5
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 ( exit $ac_status )
3397 ac_cv_header_stdc=no
3398 fi
3399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3400 fi
3401 fi
3402 fi
3403 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3404 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3405 if test $ac_cv_header_stdc = yes; then
3406
3407 cat >>confdefs.h <<\_ACEOF
3408 #define STDC_HEADERS 1
3409 _ACEOF
3410
3411 fi
3412
3413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3424 inttypes.h stdint.h unistd.h
3425 do
3426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3427 echo "$as_me:$LINENO: checking for $ac_header" >&5
3428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 $ac_includes_default
3439
3440 #include <$ac_header>
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>conftest.er1
3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 eval "$as_ac_Header=yes"
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 eval "$as_ac_Header=no"
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3476 cat >>confdefs.h <<_ACEOF
3477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3478 _ACEOF
3479
3480 fi
3481
3482 done
3483
3484
3485 echo "$as_me:$LINENO: checking for void *" >&5
3486 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3487 if test "${ac_cv_type_void_p+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 $ac_includes_default
3497 int
3498 main ()
3499 {
3500 if ((void * *) 0)
3501 return 0;
3502 if (sizeof (void *))
3503 return 0;
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -z "$ac_c_werror_flag"
3518 || test ! -s conftest.err'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520 (eval $ac_try) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_cv_type_void_p=yes
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_cv_type_void_p=no
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3540 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3541
3542 echo "$as_me:$LINENO: checking size of void *" >&5
3543 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3544 if test "${ac_cv_sizeof_void_p+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 if test "$ac_cv_type_void_p" = yes; then
3548 # The cast to unsigned long works around a bug in the HP C Compiler
3549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3551 # This bug is HP SR number 8606223364.
3552 if test "$cross_compiling" = yes; then
3553 # Depending upon the size, compute the lo and hi bounds.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3561 int
3562 main ()
3563 {
3564 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3565 test_array [0] = 0
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -z "$ac_c_werror_flag"
3581 || test ! -s conftest.err'
3582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 (eval $ac_try) 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 (eval $ac_try) 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 ac_lo=0 ac_mid=0
3594 while :; do
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 $ac_includes_default
3602 int
3603 main ()
3604 {
3605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3606 test_array [0] = 0
3607
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag"
3622 || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 ac_hi=$ac_mid; break
3635 else
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.$ac_ext >&5
3638
3639 ac_lo=`expr $ac_mid + 1`
3640 if test $ac_lo -le $ac_mid; then
3641 ac_lo= ac_hi=
3642 break
3643 fi
3644 ac_mid=`expr 2 '*' $ac_mid + 1`
3645 fi
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647 done
3648 else
3649 echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3651
3652 cat >conftest.$ac_ext <<_ACEOF
3653 /* confdefs.h. */
3654 _ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 $ac_includes_default
3659 int
3660 main ()
3661 {
3662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3663 test_array [0] = 0
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 rm -f conftest.$ac_objext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671 (eval $ac_compile) 2>conftest.er1
3672 ac_status=$?
3673 grep -v '^ *+' conftest.er1 >conftest.err
3674 rm -f conftest.er1
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 { ac_try='test -z "$ac_c_werror_flag"
3679 || test ! -s conftest.err'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 ac_hi=-1 ac_mid=-1
3692 while :; do
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 $ac_includes_default
3700 int
3701 main ()
3702 {
3703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3704 test_array [0] = 0
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_lo=$ac_mid; break
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_hi=`expr '(' $ac_mid ')' - 1`
3738 if test $ac_mid -le $ac_hi; then
3739 ac_lo= ac_hi=
3740 break
3741 fi
3742 ac_mid=`expr 2 '*' $ac_mid`
3743 fi
3744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745 done
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 ac_lo= ac_hi=
3751 fi
3752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3753 fi
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 # Binary search between lo and hi bounds.
3756 while test "x$ac_lo" != "x$ac_hi"; do
3757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3758 cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3765 int
3766 main ()
3767 {
3768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3769 test_array [0] = 0
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 rm -f conftest.$ac_objext
3776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777 (eval $ac_compile) 2>conftest.er1
3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } &&
3784 { ac_try='test -z "$ac_c_werror_flag"
3785 || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 (eval $ac_try) 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest.$ac_objext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 ac_hi=$ac_mid
3798 else
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802 ac_lo=`expr '(' $ac_mid ')' + 1`
3803 fi
3804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 done
3806 case $ac_lo in
3807 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3809 See \`config.log' for more details." >&5
3810 echo "$as_me: error: cannot compute sizeof (void *), 77
3811 See \`config.log' for more details." >&2;}
3812 { (exit 1); exit 1; }; } ;;
3813 esac
3814 else
3815 if test "$cross_compiling" = yes; then
3816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3817 See \`config.log' for more details." >&5
3818 echo "$as_me: error: cannot run test program while cross compiling
3819 See \`config.log' for more details." >&2;}
3820 { (exit 1); exit 1; }; }
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 $ac_includes_default
3829 long longval () { return (long) (sizeof (void *)); }
3830 unsigned long ulongval () { return (long) (sizeof (void *)); }
3831 #include <stdio.h>
3832 #include <stdlib.h>
3833 int
3834 main ()
3835 {
3836
3837 FILE *f = fopen ("conftest.val", "w");
3838 if (! f)
3839 exit (1);
3840 if (((long) (sizeof (void *))) < 0)
3841 {
3842 long i = longval ();
3843 if (i != ((long) (sizeof (void *))))
3844 exit (1);
3845 fprintf (f, "%ld\n", i);
3846 }
3847 else
3848 {
3849 unsigned long i = ulongval ();
3850 if (i != ((long) (sizeof (void *))))
3851 exit (1);
3852 fprintf (f, "%lu\n", i);
3853 }
3854 exit (ferror (f) || fclose (f) != 0);
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862 (eval $ac_link) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
3871 ac_cv_sizeof_void_p=`cat conftest.val`
3872 else
3873 echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ( exit $ac_status )
3878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: cannot compute sizeof (void *), 77
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }
3883 fi
3884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3885 fi
3886 fi
3887 rm -f conftest.val
3888 else
3889 ac_cv_sizeof_void_p=0
3890 fi
3891 fi
3892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3893 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3894 cat >>confdefs.h <<_ACEOF
3895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3896 _ACEOF
3897
3898
3899 echo "$as_me:$LINENO: checking for short" >&5
3900 echo $ECHO_N "checking for short... $ECHO_C" >&6
3901 if test "${ac_cv_type_short+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 cat >conftest.$ac_ext <<_ACEOF
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 $ac_includes_default
3911 int
3912 main ()
3913 {
3914 if ((short *) 0)
3915 return 0;
3916 if (sizeof (short))
3917 return 0;
3918 ;
3919 return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_type_short=yes
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 ac_cv_type_short=no
3950 fi
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3954 echo "${ECHO_T}$ac_cv_type_short" >&6
3955
3956 echo "$as_me:$LINENO: checking size of short" >&5
3957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3958 if test "${ac_cv_sizeof_short+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if test "$ac_cv_type_short" = yes; then
3962 # The cast to unsigned long works around a bug in the HP C Compiler
3963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3965 # This bug is HP SR number 8606223364.
3966 if test "$cross_compiling" = yes; then
3967 # Depending upon the size, compute the lo and hi bounds.
3968 cat >conftest.$ac_ext <<_ACEOF
3969 /* confdefs.h. */
3970 _ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 $ac_includes_default
3975 int
3976 main ()
3977 {
3978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3979 test_array [0] = 0
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_lo=0 ac_mid=0
4008 while :; do
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4016 int
4017 main ()
4018 {
4019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4020 test_array [0] = 0
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest.$ac_objext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_hi=$ac_mid; break
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_lo=`expr $ac_mid + 1`
4054 if test $ac_lo -le $ac_mid; then
4055 ac_lo= ac_hi=
4056 break
4057 fi
4058 ac_mid=`expr 2 '*' $ac_mid + 1`
4059 fi
4060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4061 done
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4073 int
4074 main ()
4075 {
4076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4077 test_array [0] = 0
4078
4079 ;
4080 return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_hi=-1 ac_mid=-1
4106 while :; do
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h. */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 $ac_includes_default
4114 int
4115 main ()
4116 {
4117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4118 test_array [0] = 0
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>conftest.er1
4127 ac_status=$?
4128 grep -v '^ *+' conftest.er1 >conftest.err
4129 rm -f conftest.er1
4130 cat conftest.err >&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -z "$ac_c_werror_flag"
4134 || test ! -s conftest.err'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_lo=$ac_mid; break
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 ac_hi=`expr '(' $ac_mid ')' - 1`
4152 if test $ac_mid -le $ac_hi; then
4153 ac_lo= ac_hi=
4154 break
4155 fi
4156 ac_mid=`expr 2 '*' $ac_mid`
4157 fi
4158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4159 done
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_lo= ac_hi=
4165 fi
4166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 fi
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 # Binary search between lo and hi bounds.
4170 while test "x$ac_lo" != "x$ac_hi"; do
4171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h. */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 $ac_includes_default
4179 int
4180 main ()
4181 {
4182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4183 test_array [0] = 0
4184
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191 (eval $ac_compile) 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -z "$ac_c_werror_flag"
4199 || test ! -s conftest.err'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; } &&
4205 { ac_try='test -s conftest.$ac_objext'
4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 (eval $ac_try) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
4211 ac_hi=$ac_mid
4212 else
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 ac_lo=`expr '(' $ac_mid ')' + 1`
4217 fi
4218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4219 done
4220 case $ac_lo in
4221 ?*) ac_cv_sizeof_short=$ac_lo;;
4222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4223 See \`config.log' for more details." >&5
4224 echo "$as_me: error: cannot compute sizeof (short), 77
4225 See \`config.log' for more details." >&2;}
4226 { (exit 1); exit 1; }; } ;;
4227 esac
4228 else
4229 if test "$cross_compiling" = yes; then
4230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: cannot run test program while cross compiling
4233 See \`config.log' for more details." >&2;}
4234 { (exit 1); exit 1; }; }
4235 else
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 $ac_includes_default
4243 long longval () { return (long) (sizeof (short)); }
4244 unsigned long ulongval () { return (long) (sizeof (short)); }
4245 #include <stdio.h>
4246 #include <stdlib.h>
4247 int
4248 main ()
4249 {
4250
4251 FILE *f = fopen ("conftest.val", "w");
4252 if (! f)
4253 exit (1);
4254 if (((long) (sizeof (short))) < 0)
4255 {
4256 long i = longval ();
4257 if (i != ((long) (sizeof (short))))
4258 exit (1);
4259 fprintf (f, "%ld\n", i);
4260 }
4261 else
4262 {
4263 unsigned long i = ulongval ();
4264 if (i != ((long) (sizeof (short))))
4265 exit (1);
4266 fprintf (f, "%lu\n", i);
4267 }
4268 exit (ferror (f) || fclose (f) != 0);
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest$ac_exeext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276 (eval $ac_link) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_sizeof_short=`cat conftest.val`
4286 else
4287 echo "$as_me: program exited with status $ac_status" >&5
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4290
4291 ( exit $ac_status )
4292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: cannot compute sizeof (short), 77
4295 See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4297 fi
4298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 fi
4301 rm -f conftest.val
4302 else
4303 ac_cv_sizeof_short=0
4304 fi
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4308 cat >>confdefs.h <<_ACEOF
4309 #define SIZEOF_SHORT $ac_cv_sizeof_short
4310 _ACEOF
4311
4312
4313 echo "$as_me:$LINENO: checking for int" >&5
4314 echo $ECHO_N "checking for int... $ECHO_C" >&6
4315 if test "${ac_cv_type_int+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 $ac_includes_default
4325 int
4326 main ()
4327 {
4328 if ((int *) 0)
4329 return 0;
4330 if (sizeof (int))
4331 return 0;
4332 ;
4333 return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_type_int=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ac_cv_type_int=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 fi
4367 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4368 echo "${ECHO_T}$ac_cv_type_int" >&6
4369
4370 echo "$as_me:$LINENO: checking size of int" >&5
4371 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4372 if test "${ac_cv_sizeof_int+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 if test "$ac_cv_type_int" = yes; then
4376 # The cast to unsigned long works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 if test "$cross_compiling" = yes; then
4381 # Depending upon the size, compute the lo and hi bounds.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 $ac_includes_default
4389 int
4390 main ()
4391 {
4392 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4393 test_array [0] = 0
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_lo=0 ac_mid=0
4422 while :; do
4423 cat >conftest.$ac_ext <<_ACEOF
4424 /* confdefs.h. */
4425 _ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 int
4431 main ()
4432 {
4433 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4434 test_array [0] = 0
4435
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 rm -f conftest.$ac_objext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4442 (eval $ac_compile) 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } &&
4449 { ac_try='test -z "$ac_c_werror_flag"
4450 || test ! -s conftest.err'
4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 (eval $ac_try) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }; } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 ac_hi=$ac_mid; break
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_lo=`expr $ac_mid + 1`
4468 if test $ac_lo -le $ac_mid; then
4469 ac_lo= ac_hi=
4470 break
4471 fi
4472 ac_mid=`expr 2 '*' $ac_mid + 1`
4473 fi
4474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4475 done
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 $ac_includes_default
4487 int
4488 main ()
4489 {
4490 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4491 test_array [0] = 0
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 rm -f conftest.$ac_objext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_hi=-1 ac_mid=-1
4520 while :; do
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 $ac_includes_default
4528 int
4529 main ()
4530 {
4531 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4532 test_array [0] = 0
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550 (eval $ac_try) 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_lo=$ac_mid; break
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 ac_hi=`expr '(' $ac_mid ')' - 1`
4566 if test $ac_mid -le $ac_hi; then
4567 ac_lo= ac_hi=
4568 break
4569 fi
4570 ac_mid=`expr 2 '*' $ac_mid`
4571 fi
4572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4573 done
4574 else
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 ac_lo= ac_hi=
4579 fi
4580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4581 fi
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 # Binary search between lo and hi bounds.
4584 while test "x$ac_lo" != "x$ac_hi"; do
4585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4586 cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h. */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 $ac_includes_default
4593 int
4594 main ()
4595 {
4596 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4597 test_array [0] = 0
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605 (eval $ac_compile) 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } &&
4612 { ac_try='test -z "$ac_c_werror_flag"
4613 || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_hi=$ac_mid
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_lo=`expr '(' $ac_mid ')' + 1`
4631 fi
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634 case $ac_lo in
4635 ?*) ac_cv_sizeof_int=$ac_lo;;
4636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4637 See \`config.log' for more details." >&5
4638 echo "$as_me: error: cannot compute sizeof (int), 77
4639 See \`config.log' for more details." >&2;}
4640 { (exit 1); exit 1; }; } ;;
4641 esac
4642 else
4643 if test "$cross_compiling" = yes; then
4644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot run test program while cross compiling
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4649 else
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656 $ac_includes_default
4657 long longval () { return (long) (sizeof (int)); }
4658 unsigned long ulongval () { return (long) (sizeof (int)); }
4659 #include <stdio.h>
4660 #include <stdlib.h>
4661 int
4662 main ()
4663 {
4664
4665 FILE *f = fopen ("conftest.val", "w");
4666 if (! f)
4667 exit (1);
4668 if (((long) (sizeof (int))) < 0)
4669 {
4670 long i = longval ();
4671 if (i != ((long) (sizeof (int))))
4672 exit (1);
4673 fprintf (f, "%ld\n", i);
4674 }
4675 else
4676 {
4677 unsigned long i = ulongval ();
4678 if (i != ((long) (sizeof (int))))
4679 exit (1);
4680 fprintf (f, "%lu\n", i);
4681 }
4682 exit (ferror (f) || fclose (f) != 0);
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest$ac_exeext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690 (eval $ac_link) 2>&5
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; }; then
4699 ac_cv_sizeof_int=`cat conftest.val`
4700 else
4701 echo "$as_me: program exited with status $ac_status" >&5
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 ( exit $ac_status )
4706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4707 See \`config.log' for more details." >&5
4708 echo "$as_me: error: cannot compute sizeof (int), 77
4709 See \`config.log' for more details." >&2;}
4710 { (exit 1); exit 1; }; }
4711 fi
4712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 fi
4715 rm -f conftest.val
4716 else
4717 ac_cv_sizeof_int=0
4718 fi
4719 fi
4720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4721 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_INT $ac_cv_sizeof_int
4724 _ACEOF
4725
4726
4727 echo "$as_me:$LINENO: checking for long" >&5
4728 echo $ECHO_N "checking for long... $ECHO_C" >&6
4729 if test "${ac_cv_type_long+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4739 int
4740 main ()
4741 {
4742 if ((long *) 0)
4743 return 0;
4744 if (sizeof (long))
4745 return 0;
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } &&
4759 { ac_try='test -z "$ac_c_werror_flag"
4760 || test ! -s conftest.err'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; }; then
4772 ac_cv_type_long=yes
4773 else
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ac_cv_type_long=no
4778 fi
4779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4782 echo "${ECHO_T}$ac_cv_type_long" >&6
4783
4784 echo "$as_me:$LINENO: checking size of long" >&5
4785 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4786 if test "${ac_cv_sizeof_long+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 if test "$ac_cv_type_long" = yes; then
4790 # The cast to unsigned long works around a bug in the HP C Compiler
4791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4793 # This bug is HP SR number 8606223364.
4794 if test "$cross_compiling" = yes; then
4795 # Depending upon the size, compute the lo and hi bounds.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 $ac_includes_default
4803 int
4804 main ()
4805 {
4806 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4807 test_array [0] = 0
4808
4809 ;
4810 return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815 (eval $ac_compile) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -z "$ac_c_werror_flag"
4823 || test ! -s conftest.err'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; } &&
4829 { ac_try='test -s conftest.$ac_objext'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; }; then
4835 ac_lo=0 ac_mid=0
4836 while :; do
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4844 int
4845 main ()
4846 {
4847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4848 test_array [0] = 0
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4872 (eval $ac_try) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_hi=$ac_mid; break
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 ac_lo=`expr $ac_mid + 1`
4882 if test $ac_lo -le $ac_mid; then
4883 ac_lo= ac_hi=
4884 break
4885 fi
4886 ac_mid=`expr 2 '*' $ac_mid + 1`
4887 fi
4888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4889 done
4890 else
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 $ac_includes_default
4901 int
4902 main ()
4903 {
4904 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4905 test_array [0] = 0
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913 (eval $ac_compile) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest.$ac_objext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 ac_hi=-1 ac_mid=-1
4934 while :; do
4935 cat >conftest.$ac_ext <<_ACEOF
4936 /* confdefs.h. */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4942 int
4943 main ()
4944 {
4945 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4946 test_array [0] = 0
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_lo=$ac_mid; break
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_hi=`expr '(' $ac_mid ')' - 1`
4980 if test $ac_mid -le $ac_hi; then
4981 ac_lo= ac_hi=
4982 break
4983 fi
4984 ac_mid=`expr 2 '*' $ac_mid`
4985 fi
4986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987 done
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_lo= ac_hi=
4993 fi
4994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4997 # Binary search between lo and hi bounds.
4998 while test "x$ac_lo" != "x$ac_hi"; do
4999 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 int
5008 main ()
5009 {
5010 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5011 test_array [0] = 0
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_hi=$ac_mid
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 ac_lo=`expr '(' $ac_mid ')' + 1`
5045 fi
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 done
5048 case $ac_lo in
5049 ?*) ac_cv_sizeof_long=$ac_lo;;
5050 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5051 See \`config.log' for more details." >&5
5052 echo "$as_me: error: cannot compute sizeof (long), 77
5053 See \`config.log' for more details." >&2;}
5054 { (exit 1); exit 1; }; } ;;
5055 esac
5056 else
5057 if test "$cross_compiling" = yes; then
5058 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5059 See \`config.log' for more details." >&5
5060 echo "$as_me: error: cannot run test program while cross compiling
5061 See \`config.log' for more details." >&2;}
5062 { (exit 1); exit 1; }; }
5063 else
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5071 long longval () { return (long) (sizeof (long)); }
5072 unsigned long ulongval () { return (long) (sizeof (long)); }
5073 #include <stdio.h>
5074 #include <stdlib.h>
5075 int
5076 main ()
5077 {
5078
5079 FILE *f = fopen ("conftest.val", "w");
5080 if (! f)
5081 exit (1);
5082 if (((long) (sizeof (long))) < 0)
5083 {
5084 long i = longval ();
5085 if (i != ((long) (sizeof (long))))
5086 exit (1);
5087 fprintf (f, "%ld\n", i);
5088 }
5089 else
5090 {
5091 unsigned long i = ulongval ();
5092 if (i != ((long) (sizeof (long))))
5093 exit (1);
5094 fprintf (f, "%lu\n", i);
5095 }
5096 exit (ferror (f) || fclose (f) != 0);
5097
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 ac_cv_sizeof_long=`cat conftest.val`
5114 else
5115 echo "$as_me: program exited with status $ac_status" >&5
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ( exit $ac_status )
5120 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: cannot compute sizeof (long), 77
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5125 fi
5126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5127 fi
5128 fi
5129 rm -f conftest.val
5130 else
5131 ac_cv_sizeof_long=0
5132 fi
5133 fi
5134 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5135 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5136 cat >>confdefs.h <<_ACEOF
5137 #define SIZEOF_LONG $ac_cv_sizeof_long
5138 _ACEOF
5139
5140
5141 echo "$as_me:$LINENO: checking for long long" >&5
5142 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5143 if test "${ac_cv_type_long_long+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5153 int
5154 main ()
5155 {
5156 if ((long long *) 0)
5157 return 0;
5158 if (sizeof (long long))
5159 return 0;
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext
5165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5166 (eval $ac_compile) 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -z "$ac_c_werror_flag"
5174 || test ! -s conftest.err'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; } &&
5180 { ac_try='test -s conftest.$ac_objext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_type_long_long=yes
5187 else
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5190
5191 ac_cv_type_long_long=no
5192 fi
5193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5196 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5197 if test $ac_cv_type_long_long = yes; then
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define HAVE_LONG_LONG 1
5201 _ACEOF
5202
5203 echo "$as_me:$LINENO: checking for long long" >&5
5204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5205 if test "${ac_cv_type_long_long+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 int
5216 main ()
5217 {
5218 if ((long long *) 0)
5219 return 0;
5220 if (sizeof (long long))
5221 return 0;
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -z "$ac_c_werror_flag"
5236 || test ! -s conftest.err'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; } &&
5242 { ac_try='test -s conftest.$ac_objext'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_cv_type_long_long=yes
5249 else
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_cv_type_long_long=no
5254 fi
5255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5256 fi
5257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5259
5260 echo "$as_me:$LINENO: checking size of long long" >&5
5261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5262 if test "${ac_cv_sizeof_long_long+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 if test "$ac_cv_type_long_long" = yes; then
5266 # The cast to unsigned long works around a bug in the HP C Compiler
5267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5269 # This bug is HP SR number 8606223364.
5270 if test "$cross_compiling" = yes; then
5271 # Depending upon the size, compute the lo and hi bounds.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 $ac_includes_default
5279 int
5280 main ()
5281 {
5282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5283 test_array [0] = 0
5284
5285 ;
5286 return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291 (eval $ac_compile) 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } &&
5298 { ac_try='test -z "$ac_c_werror_flag"
5299 || test ! -s conftest.err'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301 (eval $ac_try) 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; } &&
5305 { ac_try='test -s conftest.$ac_objext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_lo=0 ac_mid=0
5312 while :; do
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319 $ac_includes_default
5320 int
5321 main ()
5322 {
5323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5324 test_array [0] = 0
5325
5326 ;
5327 return 0;
5328 }
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_hi=$ac_mid; break
5353 else
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357 ac_lo=`expr $ac_mid + 1`
5358 if test $ac_lo -le $ac_mid; then
5359 ac_lo= ac_hi=
5360 break
5361 fi
5362 ac_mid=`expr 2 '*' $ac_mid + 1`
5363 fi
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5365 done
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5369
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5377 int
5378 main ()
5379 {
5380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5381 test_array [0] = 0
5382
5383 ;
5384 return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -z "$ac_c_werror_flag"
5397 || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_hi=-1 ac_mid=-1
5410 while :; do
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 $ac_includes_default
5418 int
5419 main ()
5420 {
5421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5422 test_array [0] = 0
5423
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5430 (eval $ac_compile) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest.$ac_objext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 ac_lo=$ac_mid; break
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455 ac_hi=`expr '(' $ac_mid ')' - 1`
5456 if test $ac_mid -le $ac_hi; then
5457 ac_lo= ac_hi=
5458 break
5459 fi
5460 ac_mid=`expr 2 '*' $ac_mid`
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 done
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_lo= ac_hi=
5469 fi
5470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 # Binary search between lo and hi bounds.
5474 while test "x$ac_lo" != "x$ac_hi"; do
5475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482 $ac_includes_default
5483 int
5484 main ()
5485 {
5486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5487 test_array [0] = 0
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5495 (eval $ac_compile) 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag"
5503 || test ! -s conftest.err'
5504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 (eval $ac_try) 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }; } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 (eval $ac_try) 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_hi=$ac_mid
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 ac_lo=`expr '(' $ac_mid ')' + 1`
5521 fi
5522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5523 done
5524 case $ac_lo in
5525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5527 See \`config.log' for more details." >&5
5528 echo "$as_me: error: cannot compute sizeof (long long), 77
5529 See \`config.log' for more details." >&2;}
5530 { (exit 1); exit 1; }; } ;;
5531 esac
5532 else
5533 if test "$cross_compiling" = yes; then
5534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5535 See \`config.log' for more details." >&5
5536 echo "$as_me: error: cannot run test program while cross compiling
5537 See \`config.log' for more details." >&2;}
5538 { (exit 1); exit 1; }; }
5539 else
5540 cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h. */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5547 long longval () { return (long) (sizeof (long long)); }
5548 unsigned long ulongval () { return (long) (sizeof (long long)); }
5549 #include <stdio.h>
5550 #include <stdlib.h>
5551 int
5552 main ()
5553 {
5554
5555 FILE *f = fopen ("conftest.val", "w");
5556 if (! f)
5557 exit (1);
5558 if (((long) (sizeof (long long))) < 0)
5559 {
5560 long i = longval ();
5561 if (i != ((long) (sizeof (long long))))
5562 exit (1);
5563 fprintf (f, "%ld\n", i);
5564 }
5565 else
5566 {
5567 unsigned long i = ulongval ();
5568 if (i != ((long) (sizeof (long long))))
5569 exit (1);
5570 fprintf (f, "%lu\n", i);
5571 }
5572 exit (ferror (f) || fclose (f) != 0);
5573
5574 ;
5575 return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_sizeof_long_long=`cat conftest.val`
5590 else
5591 echo "$as_me: program exited with status $ac_status" >&5
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 ( exit $ac_status )
5596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5597 See \`config.log' for more details." >&5
5598 echo "$as_me: error: cannot compute sizeof (long long), 77
5599 See \`config.log' for more details." >&2;}
5600 { (exit 1); exit 1; }; }
5601 fi
5602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5603 fi
5604 fi
5605 rm -f conftest.val
5606 else
5607 ac_cv_sizeof_long_long=0
5608 fi
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5614 _ACEOF
5615
5616
5617 fi
5618
5619 echo "$as_me:$LINENO: checking for __int64" >&5
5620 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5621 if test "${ac_cv_type___int64+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624 cat >conftest.$ac_ext <<_ACEOF
5625 /* confdefs.h. */
5626 _ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 $ac_includes_default
5631 int
5632 main ()
5633 {
5634 if ((__int64 *) 0)
5635 return 0;
5636 if (sizeof (__int64))
5637 return 0;
5638 ;
5639 return 0;
5640 }
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5644 (eval $ac_compile) 2>conftest.er1
5645 ac_status=$?
5646 grep -v '^ *+' conftest.er1 >conftest.err
5647 rm -f conftest.er1
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 (eval $ac_try) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest.$ac_objext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_type___int64=yes
5665 else
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ac_cv_type___int64=no
5670 fi
5671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5672 fi
5673 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5674 echo "${ECHO_T}$ac_cv_type___int64" >&6
5675 if test $ac_cv_type___int64 = yes; then
5676
5677 cat >>confdefs.h <<_ACEOF
5678 #define HAVE___INT64 1
5679 _ACEOF
5680
5681 echo "$as_me:$LINENO: checking for __int64" >&5
5682 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5683 if test "${ac_cv_type___int64+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 if ((__int64 *) 0)
5697 return 0;
5698 if (sizeof (__int64))
5699 return 0;
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_type___int64=yes
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_cv_type___int64=no
5732 fi
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5736 echo "${ECHO_T}$ac_cv_type___int64" >&6
5737
5738 echo "$as_me:$LINENO: checking size of __int64" >&5
5739 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5740 if test "${ac_cv_sizeof___int64+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 if test "$ac_cv_type___int64" = yes; then
5744 # The cast to unsigned long works around a bug in the HP C Compiler
5745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5747 # This bug is HP SR number 8606223364.
5748 if test "$cross_compiling" = yes; then
5749 # Depending upon the size, compute the lo and hi bounds.
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h. */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5757 int
5758 main ()
5759 {
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5761 test_array [0] = 0
5762
5763 ;
5764 return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_lo=0 ac_mid=0
5790 while :; do
5791 cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797 $ac_includes_default
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5802 test_array [0] = 0
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_hi=$ac_mid; break
5831 else
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835 ac_lo=`expr $ac_mid + 1`
5836 if test $ac_lo -le $ac_mid; then
5837 ac_lo= ac_hi=
5838 break
5839 fi
5840 ac_mid=`expr 2 '*' $ac_mid + 1`
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 done
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 $ac_includes_default
5855 int
5856 main ()
5857 {
5858 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5859 test_array [0] = 0
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 (eval $ac_try) 2>&5
5878 ac_status=$?
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest.$ac_objext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883 (eval $ac_try) 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_hi=-1 ac_mid=-1
5888 while :; do
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h. */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5895 $ac_includes_default
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5900 test_array [0] = 0
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_c_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 ac_lo=$ac_mid; break
5929 else
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933 ac_hi=`expr '(' $ac_mid ')' - 1`
5934 if test $ac_mid -le $ac_hi; then
5935 ac_lo= ac_hi=
5936 break
5937 fi
5938 ac_mid=`expr 2 '*' $ac_mid`
5939 fi
5940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941 done
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946 ac_lo= ac_hi=
5947 fi
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 # Binary search between lo and hi bounds.
5952 while test "x$ac_lo" != "x$ac_hi"; do
5953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 int
5962 main ()
5963 {
5964 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5965 test_array [0] = 0
5966
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_hi=$ac_mid
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_lo=`expr '(' $ac_mid ')' + 1`
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 done
6002 case $ac_lo in
6003 ?*) ac_cv_sizeof___int64=$ac_lo;;
6004 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6005 See \`config.log' for more details." >&5
6006 echo "$as_me: error: cannot compute sizeof (__int64), 77
6007 See \`config.log' for more details." >&2;}
6008 { (exit 1); exit 1; }; } ;;
6009 esac
6010 else
6011 if test "$cross_compiling" = yes; then
6012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6013 See \`config.log' for more details." >&5
6014 echo "$as_me: error: cannot run test program while cross compiling
6015 See \`config.log' for more details." >&2;}
6016 { (exit 1); exit 1; }; }
6017 else
6018 cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h. */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 $ac_includes_default
6025 long longval () { return (long) (sizeof (__int64)); }
6026 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6027 #include <stdio.h>
6028 #include <stdlib.h>
6029 int
6030 main ()
6031 {
6032
6033 FILE *f = fopen ("conftest.val", "w");
6034 if (! f)
6035 exit (1);
6036 if (((long) (sizeof (__int64))) < 0)
6037 {
6038 long i = longval ();
6039 if (i != ((long) (sizeof (__int64))))
6040 exit (1);
6041 fprintf (f, "%ld\n", i);
6042 }
6043 else
6044 {
6045 unsigned long i = ulongval ();
6046 if (i != ((long) (sizeof (__int64))))
6047 exit (1);
6048 fprintf (f, "%lu\n", i);
6049 }
6050 exit (ferror (f) || fclose (f) != 0);
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
6067 ac_cv_sizeof___int64=`cat conftest.val`
6068 else
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ( exit $ac_status )
6074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6075 See \`config.log' for more details." >&5
6076 echo "$as_me: error: cannot compute sizeof (__int64), 77
6077 See \`config.log' for more details." >&2;}
6078 { (exit 1); exit 1; }; }
6079 fi
6080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 fi
6083 rm -f conftest.val
6084 else
6085 ac_cv_sizeof___int64=0
6086 fi
6087 fi
6088 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6089 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6092 _ACEOF
6093
6094
6095 fi
6096
6097
6098 # ---------------------
6099 # Warnings and checking
6100 # ---------------------
6101
6102 # Check $CC warning features (if it's GCC).
6103 # We want to use -pedantic, but we don't want warnings about
6104 # * 'long long'
6105 # * variadic macros
6106 # * overlong strings
6107 # So, we only use -pedantic if we can disable those warnings.
6108
6109 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6110 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6111 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 save_CFLAGS="$CFLAGS"
6115 CFLAGS="-Wno-long-long"
6116 cat >conftest.$ac_ext <<_ACEOF
6117 /* confdefs.h. */
6118 _ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag"
6134 || test ! -s conftest.err'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try='test -s conftest.$ac_objext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6146 ac_cv_prog_cc_w_no_long_long=yes
6147 else
6148 echo "$as_me: failed program was:" >&5
6149 sed 's/^/| /' conftest.$ac_ext >&5
6150
6151 ac_cv_prog_cc_w_no_long_long=no
6152 fi
6153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154 CFLAGS="$save_CFLAGS"
6155
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6158 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6159
6160 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6161 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6162 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 save_CFLAGS="$CFLAGS"
6166 CFLAGS="-Wno-variadic-macros"
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173
6174 _ACEOF
6175 rm -f conftest.$ac_objext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6177 (eval $ac_compile) 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } &&
6184 { ac_try='test -z "$ac_c_werror_flag"
6185 || test ! -s conftest.err'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 (eval $ac_try) 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest.$ac_objext'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 (eval $ac_try) 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
6197 ac_cv_prog_cc_w_no_variadic_macros=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_cv_prog_cc_w_no_variadic_macros=no
6203 fi
6204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6205 CFLAGS="$save_CFLAGS"
6206
6207 fi
6208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6209 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6210
6211 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6212 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6213 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216 save_CFLAGS="$CFLAGS"
6217 CFLAGS="-Wno-overlength-strings"
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224
6225 _ACEOF
6226 rm -f conftest.$ac_objext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_c_werror_flag"
6236 || test ! -s conftest.err'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; } &&
6242 { ac_try='test -s conftest.$ac_objext'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; }; then
6248 ac_cv_prog_cc_w_no_overlength_strings=yes
6249 else
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 ac_cv_prog_cc_w_no_overlength_strings=no
6254 fi
6255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6256 CFLAGS="$save_CFLAGS"
6257
6258 fi
6259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6260 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6261
6262 strict_warn=
6263 if test $ac_cv_prog_cc_w_no_long_long = yes \
6264 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6265 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6266 strict_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6267 fi
6268
6269 # Add -Wold-style-definition if it's accepted
6270 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6271 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6272 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275 save_CFLAGS="$CFLAGS"
6276 CFLAGS="-Wold-style-definition"
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283
6284 _ACEOF
6285 rm -f conftest.$ac_objext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287 (eval $ac_compile) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_prog_cc_w_old_style_definition=yes
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_prog_cc_w_old_style_definition=no
6313 fi
6314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315 CFLAGS="$save_CFLAGS"
6316
6317 fi
6318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6319 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6320 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6321 strict_warn="${strict_warn} -Wold-style-definition"
6322 fi
6323
6324 # Add -Wmissing-format-attribute if it's accepted
6325 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6326 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6327 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330 save_CFLAGS="$CFLAGS"
6331 CFLAGS="-Wmissing-format-attribute"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342 (eval $ac_compile) 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } &&
6349 { ac_try='test -z "$ac_c_werror_flag"
6350 || test ! -s conftest.err'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; } &&
6356 { ac_try='test -s conftest.$ac_objext'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 (eval $ac_try) 2>&5
6359 ac_status=$?
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; }; then
6362 ac_cv_prog_cc_w_missing_format_attribute=yes
6363 else
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_cv_prog_cc_w_missing_format_attribute=no
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 CFLAGS="$save_CFLAGS"
6371
6372 fi
6373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6374 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6375 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6376 strict_warn="${strict_warn} -Wmissing-format-attribute"
6377 fi
6378
6379 # Enable -Werror, period.
6380 # Check whether --enable-werror_always or --disable-werror_always was given.
6381 if test "${enable_werror_always+set}" = set; then
6382 enableval="$enable_werror_always"
6383
6384 else
6385 enable_werror_always=no
6386 fi;
6387 if test x${enable_werror_always} = xyes ; then
6388 strict_warn="${strict_warn} -Werror"
6389 fi
6390
6391
6392 # Get C++ compatibility warning flag, if supported.
6393 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6394 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6395 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 save_CFLAGS="$CFLAGS"
6399 CFLAGS="-Wc++-compat"
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_cv_prog_cc_w_cxx_compat=yes
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_cv_prog_cc_w_cxx_compat=no
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 CFLAGS="$save_CFLAGS"
6439
6440 fi
6441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6442 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6443 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6444 cxx_compat_warn="-Wc++-compat"
6445 fi
6446
6447
6448
6449 # If the native compiler is GCC, we can enable warnings even in stage1.
6450 # That's useful for people building cross-compilers, or just running a
6451 # quick `make'.
6452 warn_cflags=
6453 if test "x$GCC" = "xyes"; then
6454 warn_cflags='$(GCC_WARN_CFLAGS)'
6455 fi
6456
6457
6458 # Enable expensive internal checks
6459 is_release=
6460 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6461 is_release=yes
6462 fi
6463
6464 # Check whether --enable-checking or --disable-checking was given.
6465 if test "${enable_checking+set}" = set; then
6466 enableval="$enable_checking"
6467 ac_checking_flags="${enableval}"
6468 else
6469
6470 # Determine the default checks.
6471 if test x$is_release = x ; then
6472 ac_checking_flags=yes
6473 else
6474 ac_checking_flags=release
6475 fi
6476 fi;
6477 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6478 for check in release,$ac_checking_flags
6479 do
6480 case $check in
6481 # these set all the flags to specific states
6482 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6483 ac_fold_checking= ; ac_gc_checking=1 ;
6484 ac_gc_always_collect= ; ac_rtl_checking= ;
6485 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6486 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6487 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6488 ac_fold_checking= ; ac_gc_checking= ;
6489 ac_gc_always_collect= ; ac_rtl_checking= ;
6490 ac_rtlflag_checking= ; ac_runtime_checking= ;
6491 ac_tree_checking= ; ac_valgrind_checking= ;;
6492 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6493 ac_fold_checking=1 ; ac_gc_checking=1 ;
6494 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6495 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6496 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6497 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6498 ac_fold_checking= ; ac_gc_checking= ;
6499 ac_gc_always_collect= ; ac_rtl_checking= ;
6500 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6501 ac_tree_checking= ; ac_valgrind_checking= ;;
6502 # these enable particular checks
6503 assert) ac_assert_checking=1 ;;
6504 df) ac_df_checking=1 ;;
6505 fold) ac_fold_checking=1 ;;
6506 gc) ac_gc_checking=1 ;;
6507 gcac) ac_gc_always_collect=1 ;;
6508 misc) ac_checking=1 ;;
6509 rtl) ac_rtl_checking=1 ;;
6510 rtlflag) ac_rtlflag_checking=1 ;;
6511 runtime) ac_runtime_checking=1 ;;
6512 tree) ac_tree_checking=1 ;;
6513 valgrind) ac_valgrind_checking=1 ;;
6514 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6515 echo "$as_me: error: unknown check category $check" >&2;}
6516 { (exit 1); exit 1; }; } ;;
6517 esac
6518 done
6519 IFS="$ac_save_IFS"
6520
6521 nocommon_flag=""
6522 if test x$ac_checking != x ; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define ENABLE_CHECKING 1
6526 _ACEOF
6527
6528 nocommon_flag=-fno-common
6529 fi
6530 if test x$ac_df_checking != x ; then
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define ENABLE_DF_CHECKING 1
6534 _ACEOF
6535
6536 fi
6537
6538 if test x$ac_assert_checking != x ; then
6539
6540 cat >>confdefs.h <<\_ACEOF
6541 #define ENABLE_ASSERT_CHECKING 1
6542 _ACEOF
6543
6544 fi
6545
6546 if test x$ac_runtime_checking != x ; then
6547
6548 cat >>confdefs.h <<\_ACEOF
6549 #define ENABLE_RUNTIME_CHECKING 1
6550 _ACEOF
6551
6552 fi
6553 if test x$ac_tree_checking != x ; then
6554
6555 cat >>confdefs.h <<\_ACEOF
6556 #define ENABLE_TREE_CHECKING 1
6557 _ACEOF
6558
6559 TREEBROWSER=tree-browser.o
6560 fi
6561
6562 if test x$ac_rtl_checking != x ; then
6563
6564 cat >>confdefs.h <<\_ACEOF
6565 #define ENABLE_RTL_CHECKING 1
6566 _ACEOF
6567
6568 fi
6569 if test x$ac_rtlflag_checking != x ; then
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define ENABLE_RTL_FLAG_CHECKING 1
6573 _ACEOF
6574
6575 fi
6576 if test x$ac_gc_checking != x ; then
6577
6578 cat >>confdefs.h <<\_ACEOF
6579 #define ENABLE_GC_CHECKING 1
6580 _ACEOF
6581
6582 fi
6583 if test x$ac_gc_always_collect != x ; then
6584
6585 cat >>confdefs.h <<\_ACEOF
6586 #define ENABLE_GC_ALWAYS_COLLECT 1
6587 _ACEOF
6588
6589 fi
6590 if test x$ac_fold_checking != x ; then
6591
6592 cat >>confdefs.h <<\_ACEOF
6593 #define ENABLE_FOLD_CHECKING 1
6594 _ACEOF
6595
6596 fi
6597 valgrind_path_defines=
6598 valgrind_command=
6599
6600 if test "${ac_cv_header_valgrind_h+set}" = set; then
6601 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6602 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6603 if test "${ac_cv_header_valgrind_h+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 fi
6606 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6607 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6608 else
6609 # Is the header compilable?
6610 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6611 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 $ac_includes_default
6619 #include <valgrind.h>
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6623 (eval $ac_compile) 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -z "$ac_c_werror_flag"
6631 || test ! -s conftest.err'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 (eval $ac_try) 2>&5
6634 ac_status=$?
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; } &&
6637 { ac_try='test -s conftest.$ac_objext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 (eval $ac_try) 2>&5
6640 ac_status=$?
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 ac_header_compiler=yes
6644 else
6645 echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6647
6648 ac_header_compiler=no
6649 fi
6650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6652 echo "${ECHO_T}$ac_header_compiler" >&6
6653
6654 # Is the header present?
6655 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6656 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <valgrind.h>
6664 _ACEOF
6665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } >/dev/null; then
6673 if test -s conftest.err; then
6674 ac_cpp_err=$ac_c_preproc_warn_flag
6675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6676 else
6677 ac_cpp_err=
6678 fi
6679 else
6680 ac_cpp_err=yes
6681 fi
6682 if test -z "$ac_cpp_err"; then
6683 ac_header_preproc=yes
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_header_preproc=no
6689 fi
6690 rm -f conftest.err conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6692 echo "${ECHO_T}$ac_header_preproc" >&6
6693
6694 # So? What about this header?
6695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6696 yes:no: )
6697 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6698 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6699 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6700 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6701 ac_header_preproc=yes
6702 ;;
6703 no:yes:* )
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6705 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6707 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6709 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6711 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6713 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6715 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6716 (
6717 cat <<\_ASBOX
6718 ## ------------------------------------------ ##
6719 ## Report this to the AC_PACKAGE_NAME lists. ##
6720 ## ------------------------------------------ ##
6721 _ASBOX
6722 ) |
6723 sed "s/^/$as_me: WARNING: /" >&2
6724 ;;
6725 esac
6726 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6727 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6728 if test "${ac_cv_header_valgrind_h+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 ac_cv_header_valgrind_h=$ac_header_preproc
6732 fi
6733 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6734 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6735
6736 fi
6737 if test $ac_cv_header_valgrind_h = yes; then
6738 have_valgrind_h=yes
6739 else
6740 have_valgrind_h=no
6741 fi
6742
6743
6744
6745 if test x$ac_valgrind_checking != x ; then
6746 # It is certainly possible that there's valgrind but no valgrind.h.
6747 # GCC relies on making annotations so we must have both.
6748 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6749 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6750 cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h. */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <valgrind/memcheck.h>
6757 #ifndef VALGRIND_DISCARD
6758 #error VALGRIND_DISCARD not defined
6759 #endif
6760 _ACEOF
6761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } >/dev/null; then
6769 if test -s conftest.err; then
6770 ac_cpp_err=$ac_c_preproc_warn_flag
6771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6772 else
6773 ac_cpp_err=
6774 fi
6775 else
6776 ac_cpp_err=yes
6777 fi
6778 if test -z "$ac_cpp_err"; then
6779 gcc_cv_header_valgrind_memcheck_h=yes
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 gcc_cv_header_valgrind_memcheck_h=no
6785 fi
6786 rm -f conftest.err conftest.$ac_ext
6787 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6788 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6789 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6790 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <memcheck.h>
6798 #ifndef VALGRIND_DISCARD
6799 #error VALGRIND_DISCARD not defined
6800 #endif
6801 _ACEOF
6802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } >/dev/null; then
6810 if test -s conftest.err; then
6811 ac_cpp_err=$ac_c_preproc_warn_flag
6812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6813 else
6814 ac_cpp_err=
6815 fi
6816 else
6817 ac_cpp_err=yes
6818 fi
6819 if test -z "$ac_cpp_err"; then
6820 gcc_cv_header_memcheck_h=yes
6821 else
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 gcc_cv_header_memcheck_h=no
6826 fi
6827 rm -f conftest.err conftest.$ac_ext
6828 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6829 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6830
6831 # Prepare PATH_SEPARATOR.
6832 # The user is always right.
6833 if test "${PATH_SEPARATOR+set}" != set; then
6834 echo "#! /bin/sh" >conf$$.sh
6835 echo "exit 0" >>conf$$.sh
6836 chmod +x conf$$.sh
6837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6838 PATH_SEPARATOR=';'
6839 else
6840 PATH_SEPARATOR=:
6841 fi
6842 rm -f conf$$.sh
6843 fi
6844
6845 # Find out how to test for executable files. Don't use a zero-byte file,
6846 # as systems may use methods other than mode bits to determine executability.
6847 cat >conf$$.file <<_ASEOF
6848 #! /bin/sh
6849 exit 0
6850 _ASEOF
6851 chmod +x conf$$.file
6852 if test -x conf$$.file >/dev/null 2>&1; then
6853 ac_executable_p="test -x"
6854 else
6855 ac_executable_p="test -f"
6856 fi
6857 rm -f conf$$.file
6858
6859 # Extract the first word of "valgrind", so it can be a program name with args.
6860 set dummy valgrind; ac_word=$2
6861 echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6863 if test "${ac_cv_path_valgrind_path+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866 case "$valgrind_path" in
6867 [\\/]* | ?:[\\/]*)
6868 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6869 ;;
6870 *)
6871 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6872 for ac_dir in $PATH; do
6873 IFS="$ac_save_IFS"
6874 test -z "$ac_dir" && ac_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6877 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6878 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6879 break 2
6880 fi
6881 fi
6882 done
6883 done
6884 IFS="$ac_save_IFS"
6885 ;;
6886 esac
6887 fi
6888 valgrind_path="$ac_cv_path_valgrind_path"
6889 if test -n "$valgrind_path"; then
6890 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6891 echo "${ECHO_T}$valgrind_path" >&6
6892 else
6893 echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6895 fi
6896
6897 if test "x$valgrind_path" = "x" \
6898 || (test $have_valgrind_h = no \
6899 && test $gcc_cv_header_memcheck_h = no \
6900 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6901 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6902 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6903 { (exit 1); exit 1; }; }
6904 fi
6905 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6906 valgrind_command="$valgrind_path -q"
6907
6908 cat >>confdefs.h <<\_ACEOF
6909 #define ENABLE_VALGRIND_CHECKING 1
6910 _ACEOF
6911
6912 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6913
6914 cat >>confdefs.h <<\_ACEOF
6915 #define HAVE_VALGRIND_MEMCHECK_H 1
6916 _ACEOF
6917
6918 fi
6919 if test $gcc_cv_header_memcheck_h = yes; then
6920
6921 cat >>confdefs.h <<\_ACEOF
6922 #define HAVE_MEMCHECK_H 1
6923 _ACEOF
6924
6925 fi
6926 fi
6927
6928
6929
6930 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6931 if test "${enable_mapped_location+set}" = set; then
6932 enableval="$enable_mapped_location"
6933
6934 else
6935 enable_mapped_location=no
6936 fi;
6937
6938 if test "$enable_mapped_location" = yes ; then
6939
6940 cat >>confdefs.h <<\_ACEOF
6941 #define USE_MAPPED_LOCATION 1
6942 _ACEOF
6943
6944 fi
6945
6946 # Enable code coverage collection
6947 # Check whether --enable-coverage or --disable-coverage was given.
6948 if test "${enable_coverage+set}" = set; then
6949 enableval="$enable_coverage"
6950 case "${enableval}" in
6951 yes|noopt)
6952 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6953 ;;
6954 opt)
6955 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6956 ;;
6957 no)
6958 # a.k.a. --disable-coverage
6959 coverage_flags=""
6960 ;;
6961 *)
6962 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6963 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6964 { (exit 1); exit 1; }; }
6965 ;;
6966 esac
6967 else
6968 coverage_flags=""
6969 fi;
6970
6971
6972 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6973 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6974 enableval="$enable_gather_detailed_mem_stats"
6975
6976 else
6977 enable_gather_detailed_mem_stats=no
6978 fi;
6979 if test x$enable_gather_detailed_mem_stats = xyes ; then
6980
6981 cat >>confdefs.h <<\_ACEOF
6982 #define GATHER_STATISTICS 1
6983 _ACEOF
6984
6985 fi
6986
6987 # -------------------------------
6988 # Miscenalleous configure options
6989 # -------------------------------
6990
6991 # With stabs
6992
6993 # Check whether --with-stabs or --without-stabs was given.
6994 if test "${with_stabs+set}" = set; then
6995 withval="$with_stabs"
6996 stabs="$with_stabs"
6997 else
6998 stabs=no
6999 fi;
7000
7001 # Determine whether or not multilibs are enabled.
7002 # Check whether --enable-multilib or --disable-multilib was given.
7003 if test "${enable_multilib+set}" = set; then
7004 enableval="$enable_multilib"
7005
7006 else
7007 enable_multilib=yes
7008 fi;
7009
7010
7011 # Enable __cxa_atexit for C++.
7012 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7013 if test "${enable___cxa_atexit+set}" = set; then
7014 enableval="$enable___cxa_atexit"
7015
7016 fi;
7017
7018 # Enable C extension for decimal float if target supports it.
7019 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7020 if test "${enable_decimal_float+set}" = set; then
7021 enableval="$enable_decimal_float"
7022
7023 case $enable_decimal_float in
7024 yes | no | bid | dpd) ;;
7025 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7026 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7027 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7028 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7029 { (exit 1); exit 1; }; } ;;
7030 esac
7031
7032 else
7033
7034 case $target in
7035 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7036 enable_decimal_float=yes
7037 ;;
7038 *)
7039 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7040 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7041 enable_decimal_float=no
7042 ;;
7043 esac
7044
7045 fi;
7046
7047 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7048
7049 cat >>confdefs.h <<_ACEOF
7050 #define ENABLE_DECIMAL_FLOAT $dfp
7051 _ACEOF
7052
7053
7054 # x86's use BID format instead of DPD
7055 case x$enable_decimal_float in
7056 xyes)
7057 case $target in
7058 i?86*-*-linux* | x86_64*-*-linux*)
7059 enable_decimal_float=bid
7060 ;;
7061 *)
7062 enable_decimal_float=dpd
7063 ;;
7064 esac
7065 ;;
7066 xno)
7067 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7068 # dependency on libdecnumber.
7069 enable_decimal_float=dpd
7070 ;;
7071 esac
7072
7073
7074 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7075
7076 cat >>confdefs.h <<_ACEOF
7077 #define ENABLE_DECIMAL_BID_FORMAT $bid
7078 _ACEOF
7079
7080
7081 # Enable threads
7082 # Pass with no value to take the default
7083 # Pass with a value to specify a thread package
7084 # Check whether --enable-threads or --disable-threads was given.
7085 if test "${enable_threads+set}" = set; then
7086 enableval="$enable_threads"
7087
7088 else
7089 enable_threads=''
7090 fi;
7091
7092 # Check whether --enable-tls or --disable-tls was given.
7093 if test "${enable_tls+set}" = set; then
7094 enableval="$enable_tls"
7095
7096 case $enable_tls in
7097 yes | no) ;;
7098 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7099 Valid choices are 'yes' and 'no'." >&5
7100 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7101 Valid choices are 'yes' and 'no'." >&2;}
7102 { (exit 1); exit 1; }; } ;;
7103 esac
7104
7105 else
7106 enable_tls=''
7107 fi;
7108
7109 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7110 if test "${enable_objc_gc+set}" = set; then
7111 enableval="$enable_objc_gc"
7112 if test x$enable_objc_gc = xno; then
7113 objc_boehm_gc=''
7114 else
7115 objc_boehm_gc=1
7116 fi
7117 else
7118 objc_boehm_gc=''
7119 fi;
7120
7121
7122 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7123 if test "${with_dwarf2+set}" = set; then
7124 withval="$with_dwarf2"
7125 dwarf2="$with_dwarf2"
7126 else
7127 dwarf2=no
7128 fi;
7129
7130 # Check whether --enable-shared or --disable-shared was given.
7131 if test "${enable_shared+set}" = set; then
7132 enableval="$enable_shared"
7133
7134 case $enable_shared in
7135 yes | no) ;;
7136 *)
7137 enable_shared=no
7138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7139 for pkg in $enableval; do
7140 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7141 enable_shared=yes
7142 fi
7143 done
7144 IFS="$ac_save_ifs"
7145 ;;
7146 esac
7147
7148 else
7149 enable_shared=yes
7150 fi;
7151
7152
7153
7154 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7155 if test "${with_build_sysroot+set}" = set; then
7156 withval="$with_build_sysroot"
7157
7158 fi;
7159
7160
7161 # Check whether --with-sysroot or --without-sysroot was given.
7162 if test "${with_sysroot+set}" = set; then
7163 withval="$with_sysroot"
7164
7165 case ${with_sysroot} in
7166 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7167 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7168 esac
7169
7170 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7171 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7172
7173 if test "x$prefix" = xNONE; then
7174 test_prefix=/usr/local
7175 else
7176 test_prefix=$prefix
7177 fi
7178 if test "x$exec_prefix" = xNONE; then
7179 test_exec_prefix=$test_prefix
7180 else
7181 test_exec_prefix=$exec_prefix
7182 fi
7183 case ${TARGET_SYSTEM_ROOT} in
7184 "${test_prefix}"|"${test_prefix}/"*|\
7185 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7186 '${prefix}'|'${prefix}/'*|\
7187 '${exec_prefix}'|'${exec_prefix}/'*)
7188 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7189 TARGET_SYSTEM_ROOT_DEFINE="$t"
7190 ;;
7191 esac
7192
7193 else
7194
7195 TARGET_SYSTEM_ROOT=
7196 TARGET_SYSTEM_ROOT_DEFINE=
7197 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7198
7199 fi;
7200
7201
7202
7203
7204 # Build with intermodule optimisations
7205 # Check whether --enable-intermodule or --disable-intermodule was given.
7206 if test "${enable_intermodule+set}" = set; then
7207 enableval="$enable_intermodule"
7208 case ${enable_intermodule} in
7209 yes) onestep="-onestep";;
7210 *) onestep="";;
7211 esac
7212 else
7213 onestep=""
7214 fi;
7215
7216
7217 # Sanity check enable_languages in case someone does not run the toplevel
7218 # configure # script.
7219 # Check whether --enable-languages or --disable-languages was given.
7220 if test "${enable_languages+set}" = set; then
7221 enableval="$enable_languages"
7222 case ,${enable_languages}, in
7223 ,,|,yes,)
7224 # go safe -- we cannot be much sure without the toplevel
7225 # configure's
7226 # analysis of which target libs are present and usable
7227 enable_languages=c
7228 ;;
7229 *,all,*)
7230 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7231 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7232 { (exit 1); exit 1; }; }
7233 ;;
7234 *,c,*)
7235 ;;
7236 *)
7237 enable_languages=c,${enable_languages}
7238 ;;
7239 esac
7240 else
7241 enable_languages=c
7242 fi;
7243
7244 # Used by documentation targets
7245
7246
7247
7248
7249 # -------------------------
7250 # Checks for other programs
7251 # -------------------------
7252
7253 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7254 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7255 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7256 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259 cat >conftest.make <<\_ACEOF
7260 all:
7261 @echo 'ac_maketemp="$(MAKE)"'
7262 _ACEOF
7263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7264 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7265 if test -n "$ac_maketemp"; then
7266 eval ac_cv_prog_make_${ac_make}_set=yes
7267 else
7268 eval ac_cv_prog_make_${ac_make}_set=no
7269 fi
7270 rm -f conftest.make
7271 fi
7272 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7273 echo "$as_me:$LINENO: result: yes" >&5
7274 echo "${ECHO_T}yes" >&6
7275 SET_MAKE=
7276 else
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7279 SET_MAKE="MAKE=${MAKE-make}"
7280 fi
7281
7282
7283 # Find some useful tools
7284 for ac_prog in gawk mawk nawk awk
7285 do
7286 # Extract the first word of "$ac_prog", so it can be a program name with args.
7287 set dummy $ac_prog; ac_word=$2
7288 echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7290 if test "${ac_cv_prog_AWK+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 if test -n "$AWK"; then
7294 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_AWK="$ac_prog"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307 done
7308 done
7309
7310 fi
7311 fi
7312 AWK=$ac_cv_prog_AWK
7313 if test -n "$AWK"; then
7314 echo "$as_me:$LINENO: result: $AWK" >&5
7315 echo "${ECHO_T}$AWK" >&6
7316 else
7317 echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6
7319 fi
7320
7321 test -n "$AWK" && break
7322 done
7323
7324 # We need awk to create options.c and options.h.
7325 # Bail out if it's missing.
7326 case ${AWK} in
7327 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7328 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7329 { (exit 1); exit 1; }; } ;;
7330 esac
7331
7332 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7333 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7334 if test "${gcc_cv_prog_LN_S+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 rm -f conftestdata_t
7338 echo >conftestdata_f
7339 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7340 then
7341 gcc_cv_prog_LN_S="ln -s"
7342 else
7343 if ln conftestdata_f conftestdata_t 2>/dev/null
7344 then
7345 gcc_cv_prog_LN_S=ln
7346 else
7347 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7348 then
7349 gcc_cv_prog_LN_S="cp -p"
7350 else
7351 gcc_cv_prog_LN_S=cp
7352 fi
7353 fi
7354 fi
7355 rm -f conftestdata_f conftestdata_t
7356
7357 fi
7358 LN_S="$gcc_cv_prog_LN_S"
7359 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7360 echo "$as_me:$LINENO: result: yes" >&5
7361 echo "${ECHO_T}yes" >&6
7362 else
7363 if test "$gcc_cv_prog_LN_S" = "ln"; then
7364 echo "$as_me:$LINENO: result: no, using ln" >&5
7365 echo "${ECHO_T}no, using ln" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7368 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7369 fi
7370 fi
7371
7372 echo "$as_me:$LINENO: checking whether ln works" >&5
7373 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7374 if test "${acx_cv_prog_LN+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 rm -f conftestdata_t
7378 echo >conftestdata_f
7379 if ln conftestdata_f conftestdata_t 2>/dev/null
7380 then
7381 acx_cv_prog_LN=ln
7382 else
7383 acx_cv_prog_LN=no
7384 fi
7385 rm -f conftestdata_f conftestdata_t
7386
7387 fi
7388 if test $acx_cv_prog_LN = no; then
7389 LN="$LN_S"
7390 echo "$as_me:$LINENO: result: no, using $LN" >&5
7391 echo "${ECHO_T}no, using $LN" >&6
7392 else
7393 LN="$acx_cv_prog_LN"
7394 echo "$as_me:$LINENO: result: yes" >&5
7395 echo "${ECHO_T}yes" >&6
7396 fi
7397
7398 if test -n "$ac_tool_prefix"; then
7399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7401 echo "$as_me:$LINENO: checking for $ac_word" >&5
7402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7403 if test "${ac_cv_prog_RANLIB+set}" = set; then
7404 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406 if test -n "$RANLIB"; then
7407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7411 do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420 done
7421 done
7422
7423 fi
7424 fi
7425 RANLIB=$ac_cv_prog_RANLIB
7426 if test -n "$RANLIB"; then
7427 echo "$as_me:$LINENO: result: $RANLIB" >&5
7428 echo "${ECHO_T}$RANLIB" >&6
7429 else
7430 echo "$as_me:$LINENO: result: no" >&5
7431 echo "${ECHO_T}no" >&6
7432 fi
7433
7434 fi
7435 if test -z "$ac_cv_prog_RANLIB"; then
7436 ac_ct_RANLIB=$RANLIB
7437 # Extract the first word of "ranlib", so it can be a program name with args.
7438 set dummy ranlib; ac_word=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 if test -n "$ac_ct_RANLIB"; then
7445 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_RANLIB="ranlib"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460
7461 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7462 fi
7463 fi
7464 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7465 if test -n "$ac_ct_RANLIB"; then
7466 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7467 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 fi
7472
7473 RANLIB=$ac_ct_RANLIB
7474 else
7475 RANLIB="$ac_cv_prog_RANLIB"
7476 fi
7477
7478 case "${host}" in
7479 *-*-darwin*)
7480 # By default, the Darwin ranlib will not treat common symbols as
7481 # definitions when building the archive table of contents. Other
7482 # ranlibs do that; pass an option to the Darwin ranlib that makes
7483 # it behave similarly.
7484 ranlib_flags="-c"
7485 ;;
7486 *)
7487 ranlib_flags=""
7488 esac
7489
7490
7491 # Find a good install program. We prefer a C program (faster),
7492 # so one script is as good as another. But avoid the broken or
7493 # incompatible versions:
7494 # SysV /etc/install, /usr/sbin/install
7495 # SunOS /usr/etc/install
7496 # IRIX /sbin/install
7497 # AIX /bin/install
7498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7500 # ./install, which can be erroneously created by make from ./install.sh.
7501 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7502 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7503 if test -z "$INSTALL"; then
7504 if test "${ac_cv_path_install+set}" = set; then
7505 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7508 for ac_dir in $PATH; do
7509 # Account for people who put trailing slashes in PATH elements.
7510 case "$ac_dir/" in
7511 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7512 *)
7513 # OSF1 and SCO ODT 3.0 have their own names for install.
7514 for ac_prog in ginstall scoinst install; do
7515 if test -f $ac_dir/$ac_prog; then
7516 if test $ac_prog = install &&
7517 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7518 # AIX install. It has an incompatible calling convention.
7519 # OSF/1 installbsd also uses dspmsg, but is usable.
7520 :
7521 else
7522 ac_cv_path_install="$ac_dir/$ac_prog -c"
7523 break 2
7524 fi
7525 fi
7526 done
7527 ;;
7528 esac
7529 done
7530 IFS="$ac_save_IFS"
7531
7532 fi
7533 if test "${ac_cv_path_install+set}" = set; then
7534 INSTALL="$ac_cv_path_install"
7535 else
7536 # As a last resort, use the slow shell script. We don't cache a
7537 # path for INSTALL within a source directory, because that will
7538 # break other packages using the cache if that directory is
7539 # removed, or if the path is relative.
7540 INSTALL="$ac_install_sh"
7541 fi
7542 fi
7543 echo "$as_me:$LINENO: result: $INSTALL" >&5
7544 echo "${ECHO_T}$INSTALL" >&6
7545
7546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7547 # It thinks the first close brace ends the variable substitution.
7548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7549
7550 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7551
7552
7553 # See if cmp has --ignore-initial.
7554 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7555 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7556 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559 echo abfoo >t1
7560 echo cdfoo >t2
7561 gcc_cv_prog_cmp_skip=slowcompare
7562 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7563 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7564 :
7565 else
7566 gcc_cv_prog_cmp_skip=gnucompare
7567 fi
7568 fi
7569 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7570 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7571 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7572 :
7573 else
7574 gcc_cv_prog_cmp_skip=fastcompare
7575 fi
7576 fi
7577 fi
7578 rm t1 t2
7579
7580 fi
7581 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7582 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7583 make_compare_target=$gcc_cv_prog_cmp_skip
7584
7585
7586
7587 # See if we have the mktemp command.
7588 # Extract the first word of "mktemp", so it can be a program name with args.
7589 set dummy mktemp; ac_word=$2
7590 echo "$as_me:$LINENO: checking for $ac_word" >&5
7591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7592 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 if test -n "$have_mktemp_command"; then
7596 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_have_mktemp_command="yes"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609 done
7610 done
7611
7612 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7613 fi
7614 fi
7615 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7616 if test -n "$have_mktemp_command"; then
7617 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7618 echo "${ECHO_T}$have_mktemp_command" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7626
7627 # See if makeinfo has been installed and is modern enough
7628 # that we can use it.
7629
7630 ac_executable_extensions="$build_exeext"
7631
7632 # Extract the first word of "makeinfo", so it can be a program name with args.
7633 set dummy makeinfo; ac_word=$2
7634 echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639 if test -n "$MAKEINFO"; then
7640 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_MAKEINFO="makeinfo"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653 done
7654 done
7655
7656 fi
7657 fi
7658 MAKEINFO=$ac_cv_prog_MAKEINFO
7659 if test -n "$MAKEINFO"; then
7660 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7661 echo "${ECHO_T}$MAKEINFO" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6
7665 fi
7666
7667 if test -n "$MAKEINFO"; then
7668 # Found it, now check the version.
7669 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7670 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7671 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674 ac_prog_version=`$MAKEINFO --version 2>&1 |
7675 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7676 echo "configure:7676: version of makeinfo is $ac_prog_version" >&5
7677 case $ac_prog_version in
7678 '') gcc_cv_prog_makeinfo_modern=no;;
7679 4.[4-9]*)
7680 gcc_cv_prog_makeinfo_modern=yes;;
7681 *) gcc_cv_prog_makeinfo_modern=no;;
7682 esac
7683
7684 fi
7685 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7686 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7687 else
7688 gcc_cv_prog_makeinfo_modern=no
7689 fi
7690
7691 if test $gcc_cv_prog_makeinfo_modern = no; then
7692 MAKEINFO="$MISSING makeinfo"
7693 { echo "$as_me:$LINENO: WARNING:
7694 *** Makeinfo is missing or too old.
7695 *** Info documentation will not be built." >&5
7696 echo "$as_me: WARNING:
7697 *** Makeinfo is missing or too old.
7698 *** Info documentation will not be built." >&2;}
7699 BUILD_INFO=
7700 else
7701 BUILD_INFO=info
7702 fi
7703
7704
7705 # Is pod2man recent enough to regenerate manpages?
7706 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7707 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7708 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7709 echo "$as_me:$LINENO: result: yes" >&5
7710 echo "${ECHO_T}yes" >&6
7711 GENERATED_MANPAGES=generated-manpages
7712 else
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7715 GENERATED_MANPAGES=
7716 fi
7717
7718
7719 # How about lex?
7720 for ac_prog in flex
7721 do
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_FLEX+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729 if test -n "$FLEX"; then
7730 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7731 else
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_FLEX="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 break 2
7742 fi
7743 done
7744 done
7745
7746 fi
7747 fi
7748 FLEX=$ac_cv_prog_FLEX
7749 if test -n "$FLEX"; then
7750 echo "$as_me:$LINENO: result: $FLEX" >&5
7751 echo "${ECHO_T}$FLEX" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7755 fi
7756
7757 test -n "$FLEX" && break
7758 done
7759 test -n "$FLEX" || FLEX="$MISSING flex"
7760
7761
7762 # Bison?
7763 for ac_prog in bison
7764 do
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7769 if test "${ac_cv_prog_BISON+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 if test -n "$BISON"; then
7773 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_BISON="$ac_prog"
7783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788
7789 fi
7790 fi
7791 BISON=$ac_cv_prog_BISON
7792 if test -n "$BISON"; then
7793 echo "$as_me:$LINENO: result: $BISON" >&5
7794 echo "${ECHO_T}$BISON" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7798 fi
7799
7800 test -n "$BISON" && break
7801 done
7802 test -n "$BISON" || BISON="$MISSING bison"
7803
7804
7805 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7806 # check for build == host before using them.
7807
7808 # NM
7809 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7810 && test -d ../binutils ; then
7811 NM='$(objdir)/../binutils/nm-new'
7812 else
7813 # Extract the first word of "nm", so it can be a program name with args.
7814 set dummy nm; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_NM+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 if test -n "$NM"; then
7821 ac_cv_prog_NM="$NM" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_NM="nm"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7833 fi
7834 done
7835 done
7836
7837 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7838 fi
7839 fi
7840 NM=$ac_cv_prog_NM
7841 if test -n "$NM"; then
7842 echo "$as_me:$LINENO: result: $NM" >&5
7843 echo "${ECHO_T}$NM" >&6
7844 else
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7847 fi
7848
7849 fi
7850
7851 # AR
7852 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7853 && test -d ../binutils ; then
7854 AR='$(objdir)/../binutils/ar'
7855 else
7856 # Extract the first word of "ar", so it can be a program name with args.
7857 set dummy ar; ac_word=$2
7858 echo "$as_me:$LINENO: checking for $ac_word" >&5
7859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7860 if test "${ac_cv_prog_AR+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 if test -n "$AR"; then
7864 ac_cv_prog_AR="$AR" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_AR="ar"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877 done
7878 done
7879
7880 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7881 fi
7882 fi
7883 AR=$ac_cv_prog_AR
7884 if test -n "$AR"; then
7885 echo "$as_me:$LINENO: result: $AR" >&5
7886 echo "${ECHO_T}$AR" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889 echo "${ECHO_T}no" >&6
7890 fi
7891
7892 fi
7893
7894
7895 # --------------------
7896 # Checks for C headers
7897 # --------------------
7898
7899 echo "$as_me:$LINENO: checking for GNU C library" >&5
7900 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7901 if test "${gcc_cv_glibc+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <features.h>
7911 int
7912 main ()
7913 {
7914
7915 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7916 #error Not a GNU C library system
7917 #endif
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 rm -f conftest.$ac_objext
7923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7924 (eval $ac_compile) 2>conftest.er1
7925 ac_status=$?
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -z "$ac_c_werror_flag"
7932 || test ! -s conftest.err'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 (eval $ac_try) 2>&5
7935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; } &&
7938 { ac_try='test -s conftest.$ac_objext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 (eval $ac_try) 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 gcc_cv_glibc=yes
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 gcc_cv_glibc=no
7950 fi
7951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7952 fi
7953
7954 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7955 echo "${ECHO_T}$gcc_cv_glibc" >&6
7956 if test $gcc_cv_glibc = yes; then
7957
7958 cat >>confdefs.h <<\_ACEOF
7959 #define _GNU_SOURCE 1
7960 _ACEOF
7961
7962 fi
7963
7964 # Need to reject headers which give warnings, so that the -Werror bootstrap
7965 # works later. *sigh* This needs to come before all header checks.
7966
7967 ac_c_preproc_warn_flag=yes
7968
7969 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7971 if test "${ac_cv_header_stdc+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <stdlib.h>
7981 #include <stdarg.h>
7982 #include <string.h>
7983 #include <float.h>
7984
7985 int
7986 main ()
7987 {
7988
7989 ;
7990 return 0;
7991 }
7992 _ACEOF
7993 rm -f conftest.$ac_objext
7994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7995 (eval $ac_compile) 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -z "$ac_c_werror_flag"
8003 || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try='test -s conftest.$ac_objext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 ac_cv_header_stdc=yes
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 ac_cv_header_stdc=no
8021 fi
8022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8023
8024 if test $ac_cv_header_stdc = yes; then
8025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 #include <string.h>
8033
8034 _ACEOF
8035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8036 $EGREP "memchr" >/dev/null 2>&1; then
8037 :
8038 else
8039 ac_cv_header_stdc=no
8040 fi
8041 rm -f conftest*
8042
8043 fi
8044
8045 if test $ac_cv_header_stdc = yes; then
8046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 #include <stdlib.h>
8054
8055 _ACEOF
8056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8057 $EGREP "free" >/dev/null 2>&1; then
8058 :
8059 else
8060 ac_cv_header_stdc=no
8061 fi
8062 rm -f conftest*
8063
8064 fi
8065
8066 if test $ac_cv_header_stdc = yes; then
8067 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8068 if test "$cross_compiling" = yes; then
8069 :
8070 else
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <ctype.h>
8078 #if ((' ' & 0x0FF) == 0x020)
8079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8081 #else
8082 # define ISLOWER(c) \
8083 (('a' <= (c) && (c) <= 'i') \
8084 || ('j' <= (c) && (c) <= 'r') \
8085 || ('s' <= (c) && (c) <= 'z'))
8086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8087 #endif
8088
8089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8090 int
8091 main ()
8092 {
8093 int i;
8094 for (i = 0; i < 256; i++)
8095 if (XOR (islower (i), ISLOWER (i))
8096 || toupper (i) != TOUPPER (i))
8097 exit(2);
8098 exit (0);
8099 }
8100 _ACEOF
8101 rm -f conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103 (eval $ac_link) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 :
8113 else
8114 echo "$as_me: program exited with status $ac_status" >&5
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 ( exit $ac_status )
8119 ac_cv_header_stdc=no
8120 fi
8121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 fi
8124 fi
8125 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8126 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8127 if test $ac_cv_header_stdc = yes; then
8128
8129 cat >>confdefs.h <<\_ACEOF
8130 #define STDC_HEADERS 1
8131 _ACEOF
8132
8133 fi
8134
8135 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8136 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8137 if test "${ac_cv_header_time+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 #include <sys/types.h>
8147 #include <sys/time.h>
8148 #include <time.h>
8149
8150 int
8151 main ()
8152 {
8153 if ((struct tm *) 0)
8154 return 0;
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8161 (eval $ac_compile) 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag"
8169 || test ! -s conftest.err'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; } &&
8175 { ac_try='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 (eval $ac_try) 2>&5
8178 ac_status=$?
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 ac_cv_header_time=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ac_cv_header_time=no
8187 fi
8188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8189 fi
8190 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8191 echo "${ECHO_T}$ac_cv_header_time" >&6
8192 if test $ac_cv_header_time = yes; then
8193
8194 cat >>confdefs.h <<\_ACEOF
8195 #define TIME_WITH_SYS_TIME 1
8196 _ACEOF
8197
8198 fi
8199
8200 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8201 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8202 if test "${gcc_cv_header_string+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205 cat >conftest.$ac_ext <<_ACEOF
8206 /* confdefs.h. */
8207 _ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8211 #include <string.h>
8212 #include <strings.h>
8213 int
8214 main ()
8215 {
8216
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8224 ac_status=$?
8225 grep -v '^ *+' conftest.er1 >conftest.err
8226 rm -f conftest.er1
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8233 (eval $ac_try) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 gcc_cv_header_string=yes
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8247
8248 gcc_cv_header_string=no
8249 fi
8250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 fi
8252 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8253 echo "${ECHO_T}$gcc_cv_header_string" >&6
8254 if test $gcc_cv_header_string = yes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define STRING_WITH_STRINGS 1
8258 _ACEOF
8259
8260 fi
8261
8262 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8263 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8264 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 #include <sys/types.h>
8274 #include <sys/wait.h>
8275 #ifndef WEXITSTATUS
8276 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8277 #endif
8278 #ifndef WIFEXITED
8279 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8280 #endif
8281
8282 int
8283 main ()
8284 {
8285 int s;
8286 wait (&s);
8287 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag"
8302 || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest.$ac_objext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_header_sys_wait_h=yes
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_cv_header_sys_wait_h=no
8320 fi
8321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8324 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8325 if test $ac_cv_header_sys_wait_h = yes; then
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_SYS_WAIT_H 1
8329 _ACEOF
8330
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8356 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8357 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8358 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8359 do
8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8361 echo "$as_me:$LINENO: checking for $ac_header" >&5
8362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 #include <$ac_header>
8373 _ACEOF
8374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } >/dev/null; then
8382 if test -s conftest.err; then
8383 ac_cpp_err=$ac_c_preproc_warn_flag
8384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8385 else
8386 ac_cpp_err=
8387 fi
8388 else
8389 ac_cpp_err=yes
8390 fi
8391 if test -z "$ac_cpp_err"; then
8392 eval "$as_ac_Header=yes"
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8396
8397 eval "$as_ac_Header=no"
8398 fi
8399 rm -f conftest.err conftest.$ac_ext
8400 fi
8401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8404 cat >>confdefs.h <<_ACEOF
8405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8406 _ACEOF
8407
8408 fi
8409 done
8410
8411
8412 # Check for thread headers.
8413 echo "$as_me:$LINENO: checking for thread.h" >&5
8414 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8415 if test "${ac_cv_header_thread_h+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h. */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 #include <thread.h>
8425 _ACEOF
8426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } >/dev/null; then
8434 if test -s conftest.err; then
8435 ac_cpp_err=$ac_c_preproc_warn_flag
8436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8437 else
8438 ac_cpp_err=
8439 fi
8440 else
8441 ac_cpp_err=yes
8442 fi
8443 if test -z "$ac_cpp_err"; then
8444 ac_cv_header_thread_h=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_cv_header_thread_h=no
8450 fi
8451 rm -f conftest.err conftest.$ac_ext
8452 fi
8453 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8454 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8455 if test $ac_cv_header_thread_h = yes; then
8456 have_thread_h=yes
8457 else
8458 have_thread_h=
8459 fi
8460
8461 echo "$as_me:$LINENO: checking for pthread.h" >&5
8462 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8463 if test "${ac_cv_header_pthread_h+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 #include <pthread.h>
8473 _ACEOF
8474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8485 else
8486 ac_cpp_err=
8487 fi
8488 else
8489 ac_cpp_err=yes
8490 fi
8491 if test -z "$ac_cpp_err"; then
8492 ac_cv_header_pthread_h=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_cv_header_pthread_h=no
8498 fi
8499 rm -f conftest.err conftest.$ac_ext
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8502 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8503 if test $ac_cv_header_pthread_h = yes; then
8504 have_pthread_h=yes
8505 else
8506 have_pthread_h=
8507 fi
8508
8509
8510 # These tests can't be done till we know if we have limits.h.
8511 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8512 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8513 if test "${gcc_cv_decl_char_bit+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 #ifdef HAVE_LIMITS_H
8523 #include <limits.h>
8524 #endif
8525 #ifdef CHAR_BIT
8526 found
8527 #endif
8528 _ACEOF
8529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530 $EGREP "found" >/dev/null 2>&1; then
8531 gcc_cv_decl_char_bit=yes
8532 else
8533 gcc_cv_decl_char_bit=no
8534 fi
8535 rm -f conftest*
8536
8537
8538 fi
8539 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8540 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8541 if test $gcc_cv_decl_char_bit = no; then
8542 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8543 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8544 if test "${gcc_cv_c_nbby+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 i=8
8548 gcc_cv_c_nbby=
8549 while test $i -lt 65; do
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556
8557 int
8558 main ()
8559 {
8560 switch(0) {
8561 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8562 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8563 ; }
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8570 (eval $ac_compile) 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 gcc_cv_c_nbby=$i; break
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 fi
8596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597 i=`expr $i + 1`
8598 done
8599 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8600
8601 fi
8602 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8603 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8604 if test $gcc_cv_c_nbby = failed; then
8605 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8606 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8607 { (exit 1); exit 1; }; }
8608 else
8609
8610 cat >>confdefs.h <<_ACEOF
8611 #define CHAR_BIT $gcc_cv_c_nbby
8612 _ACEOF
8613
8614 fi
8615 fi
8616 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8617 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8618 if test "${ac_cv_c_bigendian+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 # See if sys/param.h defines the BYTE_ORDER macro.
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8630
8631 int
8632 main ()
8633 {
8634 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8635 bogus endian macros
8636 #endif
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 (eval $ac_try) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 # It does; now see whether it defined to BIG_ENDIAN or not.
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8671 #include <sys/types.h>
8672 #include <sys/param.h>
8673
8674 int
8675 main ()
8676 {
8677 #if BYTE_ORDER != BIG_ENDIAN
8678 not big endian
8679 #endif
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_cv_c_bigendian=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 ac_cv_c_bigendian=no
8713 fi
8714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715 else
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719 # It does not; compile a test program.
8720 if test "$cross_compiling" = yes; then
8721 # try to guess the endianness by grepping values into an object file
8722 ac_cv_c_bigendian=unknown
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8730 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8731 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8732 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8733 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8734 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8735 int
8736 main ()
8737 {
8738 _ascii (); _ebcdic ();
8739 ;
8740 return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8745 (eval $ac_compile) 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } &&
8752 { ac_try='test -z "$ac_c_werror_flag"
8753 || test ! -s conftest.err'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try='test -s conftest.$ac_objext'
8760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761 (eval $ac_try) 2>&5
8762 ac_status=$?
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); }; }; then
8765 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8766 ac_cv_c_bigendian=yes
8767 fi
8768 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8769 if test "$ac_cv_c_bigendian" = unknown; then
8770 ac_cv_c_bigendian=no
8771 else
8772 # finding both strings is unlikely to happen, but who knows?
8773 ac_cv_c_bigendian=unknown
8774 fi
8775 fi
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 fi
8781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 int
8790 main ()
8791 {
8792 /* Are we little or big endian? From Harbison&Steele. */
8793 union
8794 {
8795 long l;
8796 char c[sizeof (long)];
8797 } u;
8798 u.l = 1;
8799 exit (u.c[sizeof (long) - 1] == 1);
8800 }
8801 _ACEOF
8802 rm -f conftest$ac_exeext
8803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_cv_c_bigendian=no
8814 else
8815 echo "$as_me: program exited with status $ac_status" >&5
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ( exit $ac_status )
8820 ac_cv_c_bigendian=yes
8821 fi
8822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8823 fi
8824 fi
8825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8828 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8829 case $ac_cv_c_bigendian in
8830 yes)
8831
8832 cat >>confdefs.h <<\_ACEOF
8833 #define WORDS_BIGENDIAN 1
8834 _ACEOF
8835 ;;
8836 no)
8837 ;;
8838 *)
8839 { { echo "$as_me:$LINENO: error: unknown endianness
8840 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8841 echo "$as_me: error: unknown endianness
8842 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8843 { (exit 1); exit 1; }; } ;;
8844 esac
8845
8846
8847 # --------
8848 # UNSORTED
8849 # --------
8850
8851
8852 # These libraries may be used by collect2.
8853 # We may need a special search path to get them linked.
8854 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8855 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8856 if test "${gcc_cv_collect2_libs+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859 save_LIBS="$LIBS"
8860 for libs in '' -lld -lmld \
8861 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8862 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8863 do
8864 LIBS="$libs"
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871
8872 /* Override any gcc2 internal prototype to avoid an error. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char ldopen ();
8879 int
8880 main ()
8881 {
8882 ldopen ();
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag"
8897 || test ! -s conftest.err'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; } &&
8903 { ac_try='test -s conftest$ac_exeext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 gcc_cv_collect2_libs="$libs"; break
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 done
8918 LIBS="$save_LIBS"
8919 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8920 fi
8921 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8922 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8923 case $gcc_cv_collect2_libs in
8924 "none required") ;;
8925 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8926 esac
8927
8928
8929 # When building Ada code on Alpha, we need exc_resume which is usually in
8930 # -lexc. So test for it.
8931 save_LIBS="$LIBS"
8932 LIBS=
8933 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8934 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8935 if test "${ac_cv_search_exc_resume+set}" = set; then
8936 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938 ac_func_search_save_LIBS=$LIBS
8939 ac_cv_search_exc_resume=no
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946
8947 /* Override any gcc2 internal prototype to avoid an error. */
8948 #ifdef __cplusplus
8949 extern "C"
8950 #endif
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8953 char exc_resume ();
8954 int
8955 main ()
8956 {
8957 exc_resume ();
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>conftest.er1
8965 ac_status=$?
8966 grep -v '^ *+' conftest.er1 >conftest.err
8967 rm -f conftest.er1
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -z "$ac_c_werror_flag"
8972 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5
8975 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try='test -s conftest$ac_exeext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_cv_search_exc_resume="none required"
8985 else
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 fi
8990 rm -f conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 if test "$ac_cv_search_exc_resume" = no; then
8993 for ac_lib in exc; do
8994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h. */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001
9002 /* Override any gcc2 internal prototype to avoid an error. */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 /* We use char because int might match the return type of a gcc2
9007 builtin and then its argument prototype would still apply. */
9008 char exc_resume ();
9009 int
9010 main ()
9011 {
9012 exc_resume ();
9013 ;
9014 return 0;
9015 }
9016 _ACEOF
9017 rm -f conftest.$ac_objext conftest$ac_exeext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9019 (eval $ac_link) 2>conftest.er1
9020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag"
9027 || test ! -s conftest.err'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; } &&
9033 { ac_try='test -s conftest$ac_exeext'
9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9035 (eval $ac_try) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_search_exc_resume="-l$ac_lib"
9040 break
9041 else
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 fi
9046 rm -f conftest.err conftest.$ac_objext \
9047 conftest$ac_exeext conftest.$ac_ext
9048 done
9049 fi
9050 LIBS=$ac_func_search_save_LIBS
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9053 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9054 if test "$ac_cv_search_exc_resume" != no; then
9055 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9056
9057 fi
9058
9059 GNAT_LIBEXC="$LIBS"
9060 LIBS="$save_LIBS"
9061
9062
9063 # Some systems put ldexp and frexp in libm instead of libc; assume
9064 # they're both in the same place. jcf-dump needs them.
9065 save_LIBS="$LIBS"
9066 LIBS=
9067 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9068 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9069 if test "${ac_cv_search_ldexp+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 ac_func_search_save_LIBS=$LIBS
9073 ac_cv_search_ldexp=no
9074 cat >conftest.$ac_ext <<_ACEOF
9075 /* confdefs.h. */
9076 _ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9080
9081 /* Override any gcc2 internal prototype to avoid an error. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */
9087 char ldexp ();
9088 int
9089 main ()
9090 {
9091 ldexp ();
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 rm -f conftest.$ac_objext conftest$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108 (eval $ac_try) 2>&5
9109 ac_status=$?
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_search_ldexp="none required"
9119 else
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123 fi
9124 rm -f conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126 if test "$ac_cv_search_ldexp" = no; then
9127 for ac_lib in m; do
9128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135
9136 /* Override any gcc2 internal prototype to avoid an error. */
9137 #ifdef __cplusplus
9138 extern "C"
9139 #endif
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9142 char ldexp ();
9143 int
9144 main ()
9145 {
9146 ldexp ();
9147 ;
9148 return 0;
9149 }
9150 _ACEOF
9151 rm -f conftest.$ac_objext conftest$ac_exeext
9152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153 (eval $ac_link) 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag"
9161 || test ! -s conftest.err'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; } &&
9167 { ac_try='test -s conftest$ac_exeext'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 (eval $ac_try) 2>&5
9170 ac_status=$?
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; }; then
9173 ac_cv_search_ldexp="-l$ac_lib"
9174 break
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 fi
9180 rm -f conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 done
9183 fi
9184 LIBS=$ac_func_search_save_LIBS
9185 fi
9186 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9187 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9188 if test "$ac_cv_search_ldexp" != no; then
9189 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9190
9191 fi
9192
9193 LDEXP_LIB="$LIBS"
9194 LIBS="$save_LIBS"
9195
9196
9197 # Use <inttypes.h> only if it exists,
9198 # doesn't clash with <sys/types.h>, and declares intmax_t.
9199 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9200 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9201 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <sys/types.h>
9211 #include <inttypes.h>
9212 int
9213 main ()
9214 {
9215 intmax_t i = -1;
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 rm -f conftest.$ac_objext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try='test -z "$ac_c_werror_flag"
9230 || test ! -s conftest.err'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 gcc_cv_header_inttypes_h=yes
9243 else
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 gcc_cv_header_inttypes_h=no
9248 fi
9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250 fi
9251
9252 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9253 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9254 if test $gcc_cv_header_inttypes_h = yes; then
9255
9256 cat >>confdefs.h <<\_ACEOF
9257 #define HAVE_INTTYPES_H 1
9258 _ACEOF
9259
9260 fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9300 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9301 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9302 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
9303 do
9304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305 echo "$as_me:$LINENO: checking for $ac_func" >&5
9306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307 if eval "test \"\${$as_ac_var+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310 cat >conftest.$ac_ext <<_ACEOF
9311 /* confdefs.h. */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318 #define $ac_func innocuous_$ac_func
9319
9320 /* System header to define __stub macros and hopefully few prototypes,
9321 which can conflict with char $ac_func (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9324
9325 #ifdef __STDC__
9326 # include <limits.h>
9327 #else
9328 # include <assert.h>
9329 #endif
9330
9331 #undef $ac_func
9332
9333 /* Override any gcc2 internal prototype to avoid an error. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 {
9337 #endif
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340 char $ac_func ();
9341 /* The GNU C library defines this for functions which it implements
9342 to always fail with ENOSYS. Some functions are actually named
9343 something starting with __ and the normal name is an alias. */
9344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9345 choke me
9346 #else
9347 char (*f) () = $ac_func;
9348 #endif
9349 #ifdef __cplusplus
9350 }
9351 #endif
9352
9353 int
9354 main ()
9355 {
9356 return f != $ac_func;
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -z "$ac_c_werror_flag"
9371 || test ! -s conftest.err'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 eval "$as_ac_var=yes"
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388 eval "$as_ac_var=no"
9389 fi
9390 rm -f conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 fi
9393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9395 if test `eval echo '${'$as_ac_var'}'` = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9398 _ACEOF
9399
9400 fi
9401 done
9402
9403
9404 if test x$ac_cv_func_mbstowcs = xyes; then
9405 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9406 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9407 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 else
9410 if test "$cross_compiling" = yes; then
9411 gcc_cv_func_mbstowcs_works=yes
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h. */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 #include <stdlib.h>
9420 int main()
9421 {
9422 mbstowcs(0, "", 0);
9423 return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest$ac_exeext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9428 (eval $ac_link) 2>&5
9429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 (eval $ac_try) 2>&5
9434 ac_status=$?
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); }; }; then
9437 gcc_cv_func_mbstowcs_works=yes
9438 else
9439 echo "$as_me: program exited with status $ac_status" >&5
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ( exit $ac_status )
9444 gcc_cv_func_mbstowcs_works=no
9445 fi
9446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9447 fi
9448 fi
9449 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9450 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9451 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9452
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_WORKING_MBSTOWCS 1
9455 _ACEOF
9456
9457 fi
9458 fi
9459
9460 echo "$as_me:$LINENO: checking for ssize_t" >&5
9461 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9462 if test "${ac_cv_type_ssize_t+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 cat >conftest.$ac_ext <<_ACEOF
9466 /* confdefs.h. */
9467 _ACEOF
9468 cat confdefs.h >>conftest.$ac_ext
9469 cat >>conftest.$ac_ext <<_ACEOF
9470 /* end confdefs.h. */
9471 $ac_includes_default
9472 int
9473 main ()
9474 {
9475 if ((ssize_t *) 0)
9476 return 0;
9477 if (sizeof (ssize_t))
9478 return 0;
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485 (eval $ac_compile) 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag"
9493 || test ! -s conftest.err'
9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 (eval $ac_try) 2>&5
9496 ac_status=$?
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); }; } &&
9499 { ac_try='test -s conftest.$ac_objext'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 (eval $ac_try) 2>&5
9502 ac_status=$?
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9505 ac_cv_type_ssize_t=yes
9506 else
9507 echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 ac_cv_type_ssize_t=no
9511 fi
9512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9513 fi
9514 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9515 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9516 if test $ac_cv_type_ssize_t = yes; then
9517 :
9518 else
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define ssize_t int
9522 _ACEOF
9523
9524 fi
9525
9526
9527 # Try to determine the array type of the second argument of getgroups
9528 # for the target system (int or gid_t).
9529 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9530 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9531 if test "${ac_cv_type_uid_t+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <sys/types.h>
9541
9542 _ACEOF
9543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9544 $EGREP "uid_t" >/dev/null 2>&1; then
9545 ac_cv_type_uid_t=yes
9546 else
9547 ac_cv_type_uid_t=no
9548 fi
9549 rm -f conftest*
9550
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9553 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9554 if test $ac_cv_type_uid_t = no; then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define uid_t int
9558 _ACEOF
9559
9560
9561 cat >>confdefs.h <<\_ACEOF
9562 #define gid_t int
9563 _ACEOF
9564
9565 fi
9566
9567 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9568 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9569 if test "${ac_cv_type_getgroups+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 if test "$cross_compiling" = yes; then
9573 ac_cv_type_getgroups=cross
9574 else
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 /* Thanks to Mike Rendell for this test. */
9582 #include <sys/types.h>
9583 #define NGID 256
9584 #undef MAX
9585 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9586
9587 int
9588 main ()
9589 {
9590 gid_t gidset[NGID];
9591 int i, n;
9592 union { gid_t gval; long lval; } val;
9593
9594 val.lval = -1;
9595 for (i = 0; i < NGID; i++)
9596 gidset[i] = val.gval;
9597 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9598 gidset);
9599 /* Exit non-zero if getgroups seems to require an array of ints. This
9600 happens when gid_t is short but getgroups modifies an array of ints. */
9601 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9602 }
9603 _ACEOF
9604 rm -f conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_type_getgroups=gid_t
9616 else
9617 echo "$as_me: program exited with status $ac_status" >&5
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.$ac_ext >&5
9620
9621 ( exit $ac_status )
9622 ac_cv_type_getgroups=int
9623 fi
9624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9625 fi
9626 if test $ac_cv_type_getgroups = cross; then
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <unistd.h>
9634
9635 _ACEOF
9636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9637 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9638 ac_cv_type_getgroups=gid_t
9639 else
9640 ac_cv_type_getgroups=int
9641 fi
9642 rm -f conftest*
9643
9644 fi
9645 fi
9646 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9647 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9648
9649 cat >>confdefs.h <<_ACEOF
9650 #define GETGROUPS_T $ac_cv_type_getgroups
9651 _ACEOF
9652
9653
9654 if test "${target}" = "${build}"; then
9655 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9656 else
9657 case "${target}" in
9658 # This condition may need some tweaking. It should include all
9659 # targets where the array type of the second argument of getgroups
9660 # is int and the type of gid_t is not equivalent to int.
9661 *-*-sunos* | *-*-ultrix*)
9662 TARGET_GETGROUPS_T=int
9663 ;;
9664 *)
9665 TARGET_GETGROUPS_T=gid_t
9666 ;;
9667 esac
9668 fi
9669
9670
9671
9672 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9673 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9674 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 #include <sys/mman.h>
9684 _ACEOF
9685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } >/dev/null; then
9693 if test -s conftest.err; then
9694 ac_cpp_err=$ac_c_preproc_warn_flag
9695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9696 else
9697 ac_cpp_err=
9698 fi
9699 else
9700 ac_cpp_err=yes
9701 fi
9702 if test -z "$ac_cpp_err"; then
9703 ac_cv_header_sys_mman_h=yes
9704 else
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708 ac_cv_header_sys_mman_h=no
9709 fi
9710 rm -f conftest.err conftest.$ac_ext
9711 fi
9712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9713 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9714 if test $ac_cv_header_sys_mman_h = yes; then
9715 gcc_header_sys_mman_h=yes
9716 else
9717 gcc_header_sys_mman_h=no
9718 fi
9719
9720 echo "$as_me:$LINENO: checking for mmap" >&5
9721 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9722 if test "${ac_cv_func_mmap+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define mmap innocuous_mmap
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char mmap (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef mmap
9747
9748 /* Override any gcc2 internal prototype to avoid an error. */
9749 #ifdef __cplusplus
9750 extern "C"
9751 {
9752 #endif
9753 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */
9755 char mmap ();
9756 /* The GNU C library defines this for functions which it implements
9757 to always fail with ENOSYS. Some functions are actually named
9758 something starting with __ and the normal name is an alias. */
9759 #if defined (__stub_mmap) || defined (__stub___mmap)
9760 choke me
9761 #else
9762 char (*f) () = mmap;
9763 #endif
9764 #ifdef __cplusplus
9765 }
9766 #endif
9767
9768 int
9769 main ()
9770 {
9771 return f != mmap;
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_func_mmap=yes
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 ac_cv_func_mmap=no
9804 fi
9805 rm -f conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9809 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9810 if test $ac_cv_func_mmap = yes; then
9811 gcc_func_mmap=yes
9812 else
9813 gcc_func_mmap=no
9814 fi
9815
9816 if test "$gcc_header_sys_mman_h" != yes \
9817 || test "$gcc_func_mmap" != yes; then
9818 gcc_cv_func_mmap_file=no
9819 gcc_cv_func_mmap_dev_zero=no
9820 gcc_cv_func_mmap_anon=no
9821 else
9822 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9823 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9824 if test "${gcc_cv_func_mmap_file+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827 # Add a system to this blacklist if
9828 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9829 # memory area containing the same data that you'd get if you applied
9830 # read() to the same fd. The only system known to have a problem here
9831 # is VMS, where text files have record structure.
9832 case "$host_os" in
9833 vms* | ultrix*)
9834 gcc_cv_func_mmap_file=no ;;
9835 *)
9836 gcc_cv_func_mmap_file=yes;;
9837 esac
9838 fi
9839 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9840 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9841 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9842 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9843 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 # Add a system to this blacklist if it has mmap() but /dev/zero
9847 # does not exist, or if mmapping /dev/zero does not give anonymous
9848 # zeroed pages with both the following properties:
9849 # 1. If you map N consecutive pages in with one call, and then
9850 # unmap any subset of those pages, the pages that were not
9851 # explicitly unmapped remain accessible.
9852 # 2. If you map two adjacent blocks of memory and then unmap them
9853 # both at once, they must both go away.
9854 # Systems known to be in this category are Windows (all variants),
9855 # VMS, and Darwin.
9856 case "$host_os" in
9857 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9858 gcc_cv_func_mmap_dev_zero=no ;;
9859 *)
9860 gcc_cv_func_mmap_dev_zero=yes;;
9861 esac
9862 fi
9863 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9864 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9865
9866 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9867 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9868 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9869 if test "${gcc_cv_decl_map_anon+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <sys/types.h>
9879 #include <sys/mman.h>
9880 #include <unistd.h>
9881
9882 #ifndef MAP_ANONYMOUS
9883 #define MAP_ANONYMOUS MAP_ANON
9884 #endif
9885
9886 int
9887 main ()
9888 {
9889 int n = MAP_ANONYMOUS;
9890 ;
9891 return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 gcc_cv_decl_map_anon=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921 gcc_cv_decl_map_anon=no
9922 fi
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9926 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9927
9928 if test $gcc_cv_decl_map_anon = no; then
9929 gcc_cv_func_mmap_anon=no
9930 else
9931 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9932 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9933 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9937 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9938 # doesn't give anonymous zeroed pages with the same properties listed
9939 # above for use of /dev/zero.
9940 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9941 case "$host_os" in
9942 vms* | cygwin* | pe | mingw* | sco* | udk* )
9943 gcc_cv_func_mmap_anon=no ;;
9944 *)
9945 gcc_cv_func_mmap_anon=yes;;
9946 esac
9947 fi
9948 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9949 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9950 fi
9951 fi
9952
9953 if test $gcc_cv_func_mmap_file = yes; then
9954
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_MMAP_FILE 1
9957 _ACEOF
9958
9959 fi
9960 if test $gcc_cv_func_mmap_dev_zero = yes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_MMAP_DEV_ZERO 1
9964 _ACEOF
9965
9966 fi
9967 if test $gcc_cv_func_mmap_anon = yes; then
9968
9969 cat >>confdefs.h <<\_ACEOF
9970 #define HAVE_MMAP_ANON 1
9971 _ACEOF
9972
9973 fi
9974
9975
9976 case "${host}" in
9977 *-*-*vms*)
9978 # Under VMS, vfork works very differently than on Unix. The standard test
9979 # won't work, and it isn't easily adaptable. It makes more sense to
9980 # just force it.
9981 ac_cv_func_vfork_works=yes
9982 ;;
9983 esac
9984 echo "$as_me:$LINENO: checking for pid_t" >&5
9985 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9986 if test "${ac_cv_type_pid_t+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989 cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 $ac_includes_default
9996 int
9997 main ()
9998 {
9999 if ((pid_t *) 0)
10000 return 0;
10001 if (sizeof (pid_t))
10002 return 0;
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 rm -f conftest.$ac_objext
10008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10009 (eval $ac_compile) 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -z "$ac_c_werror_flag"
10017 || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest.$ac_objext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10026 ac_status=$?
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_type_pid_t=yes
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10033
10034 ac_cv_type_pid_t=no
10035 fi
10036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10037 fi
10038 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10039 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10040 if test $ac_cv_type_pid_t = yes; then
10041 :
10042 else
10043
10044 cat >>confdefs.h <<_ACEOF
10045 #define pid_t int
10046 _ACEOF
10047
10048 fi
10049
10050
10051
10052 for ac_header in unistd.h vfork.h
10053 do
10054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 echo "$as_me:$LINENO: checking for $ac_header" >&5
10056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059 else
10060 cat >conftest.$ac_ext <<_ACEOF
10061 /* confdefs.h. */
10062 _ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 #include <$ac_header>
10067 _ACEOF
10068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } >/dev/null; then
10076 if test -s conftest.err; then
10077 ac_cpp_err=$ac_c_preproc_warn_flag
10078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10079 else
10080 ac_cpp_err=
10081 fi
10082 else
10083 ac_cpp_err=yes
10084 fi
10085 if test -z "$ac_cpp_err"; then
10086 eval "$as_ac_Header=yes"
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 eval "$as_ac_Header=no"
10092 fi
10093 rm -f conftest.err conftest.$ac_ext
10094 fi
10095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10098 cat >>confdefs.h <<_ACEOF
10099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10100 _ACEOF
10101
10102 fi
10103 done
10104
10105
10106
10107 for ac_func in fork vfork
10108 do
10109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10110 echo "$as_me:$LINENO: checking for $ac_func" >&5
10111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10112 if eval "test \"\${$as_ac_var+set}\" = set"; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define $ac_func innocuous_$ac_func
10124
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char $ac_func (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10129
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10135
10136 #undef $ac_func
10137
10138 /* Override any gcc2 internal prototype to avoid an error. */
10139 #ifdef __cplusplus
10140 extern "C"
10141 {
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10145 char $ac_func ();
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 choke me
10151 #else
10152 char (*f) () = $ac_func;
10153 #endif
10154 #ifdef __cplusplus
10155 }
10156 #endif
10157
10158 int
10159 main ()
10160 {
10161 return f != $ac_func;
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 eval "$as_ac_var=yes"
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 eval "$as_ac_var=no"
10194 fi
10195 rm -f conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10203 _ACEOF
10204
10205 fi
10206 done
10207
10208 if test "x$ac_cv_func_fork" = xyes; then
10209 echo "$as_me:$LINENO: checking for working fork" >&5
10210 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10211 if test "${ac_cv_func_fork_works+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214 if test "$cross_compiling" = yes; then
10215 ac_cv_func_fork_works=cross
10216 else
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* By Ruediger Kuhlmann. */
10219 #include <sys/types.h>
10220 #if HAVE_UNISTD_H
10221 # include <unistd.h>
10222 #endif
10223 /* Some systems only have a dummy stub for fork() */
10224 int main ()
10225 {
10226 if (fork() < 0)
10227 exit (1);
10228 exit (0);
10229 }
10230 _ACEOF
10231 rm -f conftest$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_cv_func_fork_works=yes
10243 else
10244 echo "$as_me: program exited with status $ac_status" >&5
10245 echo "$as_me: failed program was:" >&5
10246 sed 's/^/| /' conftest.$ac_ext >&5
10247
10248 ( exit $ac_status )
10249 ac_cv_func_fork_works=no
10250 fi
10251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10252 fi
10253 fi
10254 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10255 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10256
10257 else
10258 ac_cv_func_fork_works=$ac_cv_func_fork
10259 fi
10260 if test "x$ac_cv_func_fork_works" = xcross; then
10261 case $host in
10262 *-*-amigaos* | *-*-msdosdjgpp*)
10263 # Override, as these systems have only a dummy fork() stub
10264 ac_cv_func_fork_works=no
10265 ;;
10266 *)
10267 ac_cv_func_fork_works=yes
10268 ;;
10269 esac
10270 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10271 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10272 fi
10273 ac_cv_func_vfork_works=$ac_cv_func_vfork
10274 if test "x$ac_cv_func_vfork" = xyes; then
10275 echo "$as_me:$LINENO: checking for working vfork" >&5
10276 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10277 if test "${ac_cv_func_vfork_works+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 if test "$cross_compiling" = yes; then
10281 ac_cv_func_vfork_works=cross
10282 else
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 /* Thanks to Paul Eggert for this test. */
10290 #include <stdio.h>
10291 #include <stdlib.h>
10292 #include <sys/types.h>
10293 #include <sys/stat.h>
10294 #include <sys/wait.h>
10295 #if HAVE_UNISTD_H
10296 # include <unistd.h>
10297 #endif
10298 #if HAVE_VFORK_H
10299 # include <vfork.h>
10300 #endif
10301 /* On some sparc systems, changes by the child to local and incoming
10302 argument registers are propagated back to the parent. The compiler
10303 is told about this with #include <vfork.h>, but some compilers
10304 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10305 static variable whose address is put into a register that is
10306 clobbered by the vfork. */
10307 static void
10308 #ifdef __cplusplus
10309 sparc_address_test (int arg)
10310 # else
10311 sparc_address_test (arg) int arg;
10312 #endif
10313 {
10314 static pid_t child;
10315 if (!child) {
10316 child = vfork ();
10317 if (child < 0) {
10318 perror ("vfork");
10319 _exit(2);
10320 }
10321 if (!child) {
10322 arg = getpid();
10323 write(-1, "", 0);
10324 _exit (arg);
10325 }
10326 }
10327 }
10328
10329 int
10330 main ()
10331 {
10332 pid_t parent = getpid ();
10333 pid_t child;
10334
10335 sparc_address_test (0);
10336
10337 child = vfork ();
10338
10339 if (child == 0) {
10340 /* Here is another test for sparc vfork register problems. This
10341 test uses lots of local variables, at least as many local
10342 variables as main has allocated so far including compiler
10343 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10344 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10345 reuse the register of parent for one of the local variables,
10346 since it will think that parent can't possibly be used any more
10347 in this routine. Assigning to the local variable will thus
10348 munge parent in the parent process. */
10349 pid_t
10350 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10351 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10352 /* Convince the compiler that p..p7 are live; otherwise, it might
10353 use the same hardware register for all 8 local variables. */
10354 if (p != p1 || p != p2 || p != p3 || p != p4
10355 || p != p5 || p != p6 || p != p7)
10356 _exit(1);
10357
10358 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10359 from child file descriptors. If the child closes a descriptor
10360 before it execs or exits, this munges the parent's descriptor
10361 as well. Test for this by closing stdout in the child. */
10362 _exit(close(fileno(stdout)) != 0);
10363 } else {
10364 int status;
10365 struct stat st;
10366
10367 while (wait(&status) != child)
10368 ;
10369 exit(
10370 /* Was there some problem with vforking? */
10371 child < 0
10372
10373 /* Did the child fail? (This shouldn't happen.) */
10374 || status
10375
10376 /* Did the vfork/compiler bug occur? */
10377 || parent != getpid()
10378
10379 /* Did the file descriptor bug occur? */
10380 || fstat(fileno(stdout), &st) != 0
10381 );
10382 }
10383 }
10384 _ACEOF
10385 rm -f conftest$ac_exeext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387 (eval $ac_link) 2>&5
10388 ac_status=$?
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
10396 ac_cv_func_vfork_works=yes
10397 else
10398 echo "$as_me: program exited with status $ac_status" >&5
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 ( exit $ac_status )
10403 ac_cv_func_vfork_works=no
10404 fi
10405 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10406 fi
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10409 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10410
10411 fi;
10412 if test "x$ac_cv_func_fork_works" = xcross; then
10413 ac_cv_func_vfork_works=$ac_cv_func_vfork
10414 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10415 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10416 fi
10417
10418 if test "x$ac_cv_func_vfork_works" = xyes; then
10419
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_WORKING_VFORK 1
10422 _ACEOF
10423
10424 else
10425
10426 cat >>confdefs.h <<\_ACEOF
10427 #define vfork fork
10428 _ACEOF
10429
10430 fi
10431 if test "x$ac_cv_func_fork_works" = xyes; then
10432
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_WORKING_FORK 1
10435 _ACEOF
10436
10437 fi
10438
10439
10440
10441 if test "X$prefix" = "XNONE"; then
10442 acl_final_prefix="$ac_default_prefix"
10443 else
10444 acl_final_prefix="$prefix"
10445 fi
10446 if test "X$exec_prefix" = "XNONE"; then
10447 acl_final_exec_prefix='${prefix}'
10448 else
10449 acl_final_exec_prefix="$exec_prefix"
10450 fi
10451 acl_save_prefix="$prefix"
10452 prefix="$acl_final_prefix"
10453 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10454 prefix="$acl_save_prefix"
10455
10456
10457 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10458 if test "${with_gnu_ld+set}" = set; then
10459 withval="$with_gnu_ld"
10460 test "$withval" = no || with_gnu_ld=yes
10461 else
10462 with_gnu_ld=no
10463 fi;
10464 # Prepare PATH_SEPARATOR.
10465 # The user is always right.
10466 if test "${PATH_SEPARATOR+set}" != set; then
10467 echo "#! /bin/sh" >conf$$.sh
10468 echo "exit 0" >>conf$$.sh
10469 chmod +x conf$$.sh
10470 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10471 PATH_SEPARATOR=';'
10472 else
10473 PATH_SEPARATOR=:
10474 fi
10475 rm -f conf$$.sh
10476 fi
10477 ac_prog=ld
10478 if test "$GCC" = yes; then
10479 # Check if gcc -print-prog-name=ld gives a path.
10480 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10481 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10482 case $host in
10483 *-*-mingw*)
10484 # gcc leaves a trailing carriage return which upsets mingw
10485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10486 *)
10487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10488 esac
10489 case $ac_prog in
10490 # Accept absolute paths.
10491 [\\/]* | [A-Za-z]:[\\/]*)
10492 re_direlt='/[^/][^/]*/\.\./'
10493 # Canonicalize the path of ld
10494 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10495 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10496 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10497 done
10498 test -z "$LD" && LD="$ac_prog"
10499 ;;
10500 "")
10501 # If it fails, then pretend we aren't using GCC.
10502 ac_prog=ld
10503 ;;
10504 *)
10505 # If it is relative, then search for the first ld in PATH.
10506 with_gnu_ld=unknown
10507 ;;
10508 esac
10509 elif test "$with_gnu_ld" = yes; then
10510 echo "$as_me:$LINENO: checking for GNU ld" >&5
10511 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10512 else
10513 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10514 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10515 fi
10516 if test "${acl_cv_path_LD+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 if test -z "$LD"; then
10520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10521 for ac_dir in $PATH; do
10522 test -z "$ac_dir" && ac_dir=.
10523 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10524 acl_cv_path_LD="$ac_dir/$ac_prog"
10525 # Check to see if the program is GNU ld. I'd rather use --version,
10526 # but apparently some GNU ld's only accept -v.
10527 # Break only if it was the GNU/non-GNU ld that we prefer.
10528 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10529 test "$with_gnu_ld" != no && break
10530 else
10531 test "$with_gnu_ld" != yes && break
10532 fi
10533 fi
10534 done
10535 IFS="$ac_save_ifs"
10536 else
10537 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10538 fi
10539 fi
10540
10541 LD="$acl_cv_path_LD"
10542 if test -n "$LD"; then
10543 echo "$as_me:$LINENO: result: $LD" >&5
10544 echo "${ECHO_T}$LD" >&6
10545 else
10546 echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6
10548 fi
10549 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10550 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10551 { (exit 1); exit 1; }; }
10552 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10553 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10554 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10558 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10559 acl_cv_prog_gnu_ld=yes
10560 else
10561 acl_cv_prog_gnu_ld=no
10562 fi
10563 fi
10564 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10565 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10566 with_gnu_ld=$acl_cv_prog_gnu_ld
10567
10568
10569
10570 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10571 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10572 if test "${acl_cv_rpath+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575
10576 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10577 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10578 . ./conftest.sh
10579 rm -f ./conftest.sh
10580 acl_cv_rpath=done
10581
10582 fi
10583 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10584 echo "${ECHO_T}$acl_cv_rpath" >&6
10585 wl="$acl_cv_wl"
10586 libext="$acl_cv_libext"
10587 shlibext="$acl_cv_shlibext"
10588 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10589 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10590 hardcode_direct="$acl_cv_hardcode_direct"
10591 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10592 # Check whether --enable-rpath or --disable-rpath was given.
10593 if test "${enable_rpath+set}" = set; then
10594 enableval="$enable_rpath"
10595 :
10596 else
10597 enable_rpath=yes
10598 fi;
10599
10600
10601
10602
10603
10604
10605
10606 use_additional=yes
10607
10608 acl_save_prefix="$prefix"
10609 prefix="$acl_final_prefix"
10610 acl_save_exec_prefix="$exec_prefix"
10611 exec_prefix="$acl_final_exec_prefix"
10612
10613 eval additional_includedir=\"$includedir\"
10614 eval additional_libdir=\"$libdir\"
10615
10616 exec_prefix="$acl_save_exec_prefix"
10617 prefix="$acl_save_prefix"
10618
10619
10620 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10621 if test "${with_libiconv_prefix+set}" = set; then
10622 withval="$with_libiconv_prefix"
10623
10624 if test "X$withval" = "Xno"; then
10625 use_additional=no
10626 else
10627 if test "X$withval" = "X"; then
10628
10629 acl_save_prefix="$prefix"
10630 prefix="$acl_final_prefix"
10631 acl_save_exec_prefix="$exec_prefix"
10632 exec_prefix="$acl_final_exec_prefix"
10633
10634 eval additional_includedir=\"$includedir\"
10635 eval additional_libdir=\"$libdir\"
10636
10637 exec_prefix="$acl_save_exec_prefix"
10638 prefix="$acl_save_prefix"
10639
10640 else
10641 additional_includedir="$withval/include"
10642 additional_libdir="$withval/lib"
10643 fi
10644 fi
10645
10646 fi;
10647 LIBICONV=
10648 LTLIBICONV=
10649 INCICONV=
10650 rpathdirs=
10651 ltrpathdirs=
10652 names_already_handled=
10653 names_next_round='iconv '
10654 while test -n "$names_next_round"; do
10655 names_this_round="$names_next_round"
10656 names_next_round=
10657 for name in $names_this_round; do
10658 already_handled=
10659 for n in $names_already_handled; do
10660 if test "$n" = "$name"; then
10661 already_handled=yes
10662 break
10663 fi
10664 done
10665 if test -z "$already_handled"; then
10666 names_already_handled="$names_already_handled $name"
10667 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10668 eval value=\"\$HAVE_LIB$uppername\"
10669 if test -n "$value"; then
10670 if test "$value" = yes; then
10671 eval value=\"\$LIB$uppername\"
10672 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10673 eval value=\"\$LTLIB$uppername\"
10674 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10675 else
10676 :
10677 fi
10678 else
10679 found_dir=
10680 found_la=
10681 found_so=
10682 found_a=
10683 if test $use_additional = yes; then
10684 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10685 found_dir="$additional_libdir"
10686 found_so="$additional_libdir/lib$name.$shlibext"
10687 if test -f "$additional_libdir/lib$name.la"; then
10688 found_la="$additional_libdir/lib$name.la"
10689 fi
10690 else
10691 if test -f "$additional_libdir/lib$name.$libext"; then
10692 found_dir="$additional_libdir"
10693 found_a="$additional_libdir/lib$name.$libext"
10694 if test -f "$additional_libdir/lib$name.la"; then
10695 found_la="$additional_libdir/lib$name.la"
10696 fi
10697 fi
10698 fi
10699 fi
10700 if test "X$found_dir" = "X"; then
10701 for x in $LDFLAGS $LTLIBICONV; do
10702
10703 acl_save_prefix="$prefix"
10704 prefix="$acl_final_prefix"
10705 acl_save_exec_prefix="$exec_prefix"
10706 exec_prefix="$acl_final_exec_prefix"
10707 eval x=\"$x\"
10708 exec_prefix="$acl_save_exec_prefix"
10709 prefix="$acl_save_prefix"
10710
10711 case "$x" in
10712 -L*)
10713 dir=`echo "X$x" | sed -e 's/^X-L//'`
10714 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10715 found_dir="$dir"
10716 found_so="$dir/lib$name.$shlibext"
10717 if test -f "$dir/lib$name.la"; then
10718 found_la="$dir/lib$name.la"
10719 fi
10720 else
10721 if test -f "$dir/lib$name.$libext"; then
10722 found_dir="$dir"
10723 found_a="$dir/lib$name.$libext"
10724 if test -f "$dir/lib$name.la"; then
10725 found_la="$dir/lib$name.la"
10726 fi
10727 fi
10728 fi
10729 ;;
10730 esac
10731 if test "X$found_dir" != "X"; then
10732 break
10733 fi
10734 done
10735 fi
10736 if test "X$found_dir" != "X"; then
10737 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10738 if test "X$found_so" != "X"; then
10739 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10741 else
10742 haveit=
10743 for x in $ltrpathdirs; do
10744 if test "X$x" = "X$found_dir"; then
10745 haveit=yes
10746 break
10747 fi
10748 done
10749 if test -z "$haveit"; then
10750 ltrpathdirs="$ltrpathdirs $found_dir"
10751 fi
10752 if test "$hardcode_direct" = yes; then
10753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10754 else
10755 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10756 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10757 haveit=
10758 for x in $rpathdirs; do
10759 if test "X$x" = "X$found_dir"; then
10760 haveit=yes
10761 break
10762 fi
10763 done
10764 if test -z "$haveit"; then
10765 rpathdirs="$rpathdirs $found_dir"
10766 fi
10767 else
10768 haveit=
10769 for x in $LDFLAGS $LIBICONV; do
10770
10771 acl_save_prefix="$prefix"
10772 prefix="$acl_final_prefix"
10773 acl_save_exec_prefix="$exec_prefix"
10774 exec_prefix="$acl_final_exec_prefix"
10775 eval x=\"$x\"
10776 exec_prefix="$acl_save_exec_prefix"
10777 prefix="$acl_save_prefix"
10778
10779 if test "X$x" = "X-L$found_dir"; then
10780 haveit=yes
10781 break
10782 fi
10783 done
10784 if test -z "$haveit"; then
10785 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10786 fi
10787 if test "$hardcode_minus_L" != no; then
10788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10789 else
10790 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10791 fi
10792 fi
10793 fi
10794 fi
10795 else
10796 if test "X$found_a" != "X"; then
10797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10798 else
10799 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10800 fi
10801 fi
10802 additional_includedir=
10803 case "$found_dir" in
10804 */lib | */lib/)
10805 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10806 additional_includedir="$basedir/include"
10807 ;;
10808 esac
10809 if test "X$additional_includedir" != "X"; then
10810 if test "X$additional_includedir" != "X/usr/include"; then
10811 haveit=
10812 if test "X$additional_includedir" = "X/usr/local/include"; then
10813 if test -n "$GCC"; then
10814 case $host_os in
10815 linux*) haveit=yes;;
10816 esac
10817 fi
10818 fi
10819 if test -z "$haveit"; then
10820 for x in $CPPFLAGS $INCICONV; do
10821
10822 acl_save_prefix="$prefix"
10823 prefix="$acl_final_prefix"
10824 acl_save_exec_prefix="$exec_prefix"
10825 exec_prefix="$acl_final_exec_prefix"
10826 eval x=\"$x\"
10827 exec_prefix="$acl_save_exec_prefix"
10828 prefix="$acl_save_prefix"
10829
10830 if test "X$x" = "X-I$additional_includedir"; then
10831 haveit=yes
10832 break
10833 fi
10834 done
10835 if test -z "$haveit"; then
10836 if test -d "$additional_includedir"; then
10837 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10838 fi
10839 fi
10840 fi
10841 fi
10842 fi
10843 if test -n "$found_la"; then
10844 save_libdir="$libdir"
10845 case "$found_la" in
10846 */* | *\\*) . "$found_la" ;;
10847 *) . "./$found_la" ;;
10848 esac
10849 libdir="$save_libdir"
10850 for dep in $dependency_libs; do
10851 case "$dep" in
10852 -L*)
10853 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10854 if test "X$additional_libdir" != "X/usr/lib"; then
10855 haveit=
10856 if test "X$additional_libdir" = "X/usr/local/lib"; then
10857 if test -n "$GCC"; then
10858 case $host_os in
10859 linux*) haveit=yes;;
10860 esac
10861 fi
10862 fi
10863 if test -z "$haveit"; then
10864 haveit=
10865 for x in $LDFLAGS $LIBICONV; do
10866
10867 acl_save_prefix="$prefix"
10868 prefix="$acl_final_prefix"
10869 acl_save_exec_prefix="$exec_prefix"
10870 exec_prefix="$acl_final_exec_prefix"
10871 eval x=\"$x\"
10872 exec_prefix="$acl_save_exec_prefix"
10873 prefix="$acl_save_prefix"
10874
10875 if test "X$x" = "X-L$additional_libdir"; then
10876 haveit=yes
10877 break
10878 fi
10879 done
10880 if test -z "$haveit"; then
10881 if test -d "$additional_libdir"; then
10882 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10883 fi
10884 fi
10885 haveit=
10886 for x in $LDFLAGS $LTLIBICONV; do
10887
10888 acl_save_prefix="$prefix"
10889 prefix="$acl_final_prefix"
10890 acl_save_exec_prefix="$exec_prefix"
10891 exec_prefix="$acl_final_exec_prefix"
10892 eval x=\"$x\"
10893 exec_prefix="$acl_save_exec_prefix"
10894 prefix="$acl_save_prefix"
10895
10896 if test "X$x" = "X-L$additional_libdir"; then
10897 haveit=yes
10898 break
10899 fi
10900 done
10901 if test -z "$haveit"; then
10902 if test -d "$additional_libdir"; then
10903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10904 fi
10905 fi
10906 fi
10907 fi
10908 ;;
10909 -R*)
10910 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10911 if test "$enable_rpath" != no; then
10912 haveit=
10913 for x in $rpathdirs; do
10914 if test "X$x" = "X$dir"; then
10915 haveit=yes
10916 break
10917 fi
10918 done
10919 if test -z "$haveit"; then
10920 rpathdirs="$rpathdirs $dir"
10921 fi
10922 haveit=
10923 for x in $ltrpathdirs; do
10924 if test "X$x" = "X$dir"; then
10925 haveit=yes
10926 break
10927 fi
10928 done
10929 if test -z "$haveit"; then
10930 ltrpathdirs="$ltrpathdirs $dir"
10931 fi
10932 fi
10933 ;;
10934 -l*)
10935 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10936 ;;
10937 *.la)
10938 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10939 ;;
10940 *)
10941 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10942 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10943 ;;
10944 esac
10945 done
10946 fi
10947 else
10948 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10949 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10950 fi
10951 fi
10952 fi
10953 done
10954 done
10955 if test "X$rpathdirs" != "X"; then
10956 if test -n "$hardcode_libdir_separator"; then
10957 alldirs=
10958 for found_dir in $rpathdirs; do
10959 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10960 done
10961 acl_save_libdir="$libdir"
10962 libdir="$alldirs"
10963 eval flag=\"$hardcode_libdir_flag_spec\"
10964 libdir="$acl_save_libdir"
10965 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10966 else
10967 for found_dir in $rpathdirs; do
10968 acl_save_libdir="$libdir"
10969 libdir="$found_dir"
10970 eval flag=\"$hardcode_libdir_flag_spec\"
10971 libdir="$acl_save_libdir"
10972 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10973 done
10974 fi
10975 fi
10976 if test "X$ltrpathdirs" != "X"; then
10977 for found_dir in $ltrpathdirs; do
10978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10979 done
10980 fi
10981
10982
10983
10984
10985
10986
10987
10988 am_save_CPPFLAGS="$CPPFLAGS"
10989
10990 for element in $INCICONV; do
10991 haveit=
10992 for x in $CPPFLAGS; do
10993
10994 acl_save_prefix="$prefix"
10995 prefix="$acl_final_prefix"
10996 acl_save_exec_prefix="$exec_prefix"
10997 exec_prefix="$acl_final_exec_prefix"
10998 eval x=\"$x\"
10999 exec_prefix="$acl_save_exec_prefix"
11000 prefix="$acl_save_prefix"
11001
11002 if test "X$x" = "X$element"; then
11003 haveit=yes
11004 break
11005 fi
11006 done
11007 if test -z "$haveit"; then
11008 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11009 fi
11010 done
11011
11012
11013 echo "$as_me:$LINENO: checking for iconv" >&5
11014 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11015 if test "${am_cv_func_iconv+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018
11019 am_cv_func_iconv="no, consider installing GNU libiconv"
11020 am_cv_lib_iconv=no
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 #include <stdlib.h>
11028 #include <iconv.h>
11029 int
11030 main ()
11031 {
11032 iconv_t cd = iconv_open("","");
11033 iconv(cd,NULL,NULL,NULL,NULL);
11034 iconv_close(cd);
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -z "$ac_c_werror_flag"
11049 || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try='test -s conftest$ac_exeext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 am_cv_func_iconv=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 fi
11067 rm -f conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 if test "$am_cv_func_iconv" != yes; then
11070 am_save_LIBS="$LIBS"
11071 LIBS="$LIBS $LIBICONV"
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h. */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 #include <stdlib.h>
11079 #include <iconv.h>
11080 int
11081 main ()
11082 {
11083 iconv_t cd = iconv_open("","");
11084 iconv(cd,NULL,NULL,NULL,NULL);
11085 iconv_close(cd);
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag"
11100 || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest$ac_exeext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 am_cv_lib_iconv=yes
11113 am_cv_func_iconv=yes
11114 else
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11117
11118 fi
11119 rm -f conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS="$am_save_LIBS"
11122 fi
11123
11124 fi
11125 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11126 echo "${ECHO_T}$am_cv_func_iconv" >&6
11127 if test "$am_cv_func_iconv" = yes; then
11128
11129 cat >>confdefs.h <<\_ACEOF
11130 #define HAVE_ICONV 1
11131 _ACEOF
11132
11133 fi
11134 if test "$am_cv_lib_iconv" = yes; then
11135 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11136 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11137 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11138 echo "${ECHO_T}$LIBICONV" >&6
11139 else
11140 CPPFLAGS="$am_save_CPPFLAGS"
11141 LIBICONV=
11142 LTLIBICONV=
11143 fi
11144
11145
11146
11147 if test "$am_cv_func_iconv" = yes; then
11148 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11149 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11150 if test "${am_cv_proto_iconv+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 else
11153
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160
11161 #include <stdlib.h>
11162 #include <iconv.h>
11163 extern
11164 #ifdef __cplusplus
11165 "C"
11166 #endif
11167 #if defined(__STDC__) || defined(__cplusplus)
11168 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11169 #else
11170 size_t iconv();
11171 #endif
11172
11173 int
11174 main ()
11175 {
11176
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag"
11191 || test ! -s conftest.err'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 am_cv_proto_iconv_arg1=""
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208 am_cv_proto_iconv_arg1="const"
11209 fi
11210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11211 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);"
11212 fi
11213
11214 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11215 echo "$as_me:$LINENO: result: ${ac_t:-
11216 }$am_cv_proto_iconv" >&5
11217 echo "${ECHO_T}${ac_t:-
11218 }$am_cv_proto_iconv" >&6
11219
11220 cat >>confdefs.h <<_ACEOF
11221 #define ICONV_CONST $am_cv_proto_iconv_arg1
11222 _ACEOF
11223
11224 fi
11225
11226 # Until we have in-tree GNU iconv:
11227 LIBICONV_DEP=
11228
11229
11230
11231 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11232 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11233 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h. */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <locale.h>
11243 int
11244 main ()
11245 {
11246 return LC_MESSAGES
11247 ;
11248 return 0;
11249 }
11250 _ACEOF
11251 rm -f conftest.$ac_objext conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_c_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
11273 am_cv_val_LC_MESSAGES=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 am_cv_val_LC_MESSAGES=no
11279 fi
11280 rm -f conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11282 fi
11283 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11284 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11285 if test $am_cv_val_LC_MESSAGES = yes; then
11286
11287 cat >>confdefs.h <<\_ACEOF
11288 #define HAVE_LC_MESSAGES 1
11289 _ACEOF
11290
11291 fi
11292
11293
11294
11295 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11296 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11297 if test "${am_cv_langinfo_codeset+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <langinfo.h>
11307 int
11308 main ()
11309 {
11310 char* cs = nl_langinfo(CODESET);
11311 ;
11312 return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } &&
11324 { ac_try='test -z "$ac_c_werror_flag"
11325 || test ! -s conftest.err'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; } &&
11331 { ac_try='test -s conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 am_cv_langinfo_codeset=yes
11338 else
11339 echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 am_cv_langinfo_codeset=no
11343 fi
11344 rm -f conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346
11347 fi
11348 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11349 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11350 if test $am_cv_langinfo_codeset = yes; then
11351
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_LANGINFO_CODESET 1
11354 _ACEOF
11355
11356 fi
11357
11358
11359 # We will need to find libiberty.h and ansidecl.h
11360 saved_CFLAGS="$CFLAGS"
11361 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11402 strsignal strstr strverscmp \
11403 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11404 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
11405 do
11406 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11407 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11408 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11409 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #undef $ac_tr_decl
11419 #define $ac_tr_decl 1
11420
11421 #include "ansidecl.h"
11422 #include "system.h"
11423
11424 int
11425 main ()
11426 {
11427 #ifndef $ac_func
11428 char *(*pfn) = (char *(*)) $ac_func ;
11429 #endif
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11436 (eval $ac_compile) 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag"
11444 || test ! -s conftest.err'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest.$ac_objext'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 eval "gcc_cv_have_decl_$ac_func=yes"
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 eval "gcc_cv_have_decl_$ac_func=no"
11462 fi
11463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11464 fi
11465
11466 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11467 echo "$as_me:$LINENO: result: yes" >&5
11468 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11469 #define $ac_tr_decl 1
11470 _ACEOF
11471
11472 else
11473 echo "$as_me:$LINENO: result: no" >&5
11474 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11475 #define $ac_tr_decl 0
11476 _ACEOF
11477
11478 fi
11479
11480 done
11481
11482
11483
11484
11485
11486 for ac_func in getrlimit setrlimit getrusage
11487 do
11488 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11489 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11490 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11491 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 else
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 #undef $ac_tr_decl
11501 #define $ac_tr_decl 1
11502
11503 #include "ansidecl.h"
11504 #include "system.h"
11505 #ifdef HAVE_SYS_RESOURCE_H
11506 #include <sys/resource.h>
11507 #endif
11508
11509
11510 int
11511 main ()
11512 {
11513 #ifndef $ac_func
11514 char *(*pfn) = (char *(*)) $ac_func ;
11515 #endif
11516 ;
11517 return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 eval "gcc_cv_have_decl_$ac_func=yes"
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 eval "gcc_cv_have_decl_$ac_func=no"
11548 fi
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 fi
11551
11552 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11553 echo "$as_me:$LINENO: result: yes" >&5
11554 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11555 #define $ac_tr_decl 1
11556 _ACEOF
11557
11558 else
11559 echo "$as_me:$LINENO: result: no" >&5
11560 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11561 #define $ac_tr_decl 0
11562 _ACEOF
11563
11564 fi
11565
11566 done
11567
11568
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h. */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575
11576 #include "ansidecl.h"
11577 #include "system.h"
11578 #ifdef HAVE_SYS_RESOURCE_H
11579 #include <sys/resource.h>
11580 #endif
11581
11582 int
11583 main ()
11584 {
11585 rlim_t l = 0;
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_c_werror_flag"
11600 || test ! -s conftest.err'
11601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11602 (eval $ac_try) 2>&5
11603 ac_status=$?
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); }; } &&
11606 { ac_try='test -s conftest.$ac_objext'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; }; then
11612 :
11613 else
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617
11618 cat >>confdefs.h <<\_ACEOF
11619 #define rlim_t long
11620 _ACEOF
11621
11622 fi
11623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11624
11625 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11626 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11627 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11628 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11629
11630 for ac_func in ldgetname
11631 do
11632 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11633 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11634 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11635 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638 cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h. */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11644 #undef $ac_tr_decl
11645 #define $ac_tr_decl 1
11646
11647 #include "ansidecl.h"
11648 #include "system.h"
11649 #ifdef HAVE_LDFCN_H
11650 #undef FREAD
11651 #undef FWRITE
11652 #include <ldfcn.h>
11653 #endif
11654
11655
11656 int
11657 main ()
11658 {
11659 #ifndef $ac_func
11660 char *(*pfn) = (char *(*)) $ac_func ;
11661 #endif
11662 ;
11663 return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11668 (eval $ac_compile) 2>conftest.er1
11669 ac_status=$?
11670 grep -v '^ *+' conftest.er1 >conftest.err
11671 rm -f conftest.er1
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag"
11676 || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 eval "gcc_cv_have_decl_$ac_func=yes"
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 eval "gcc_cv_have_decl_$ac_func=no"
11694 fi
11695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11696 fi
11697
11698 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11699 echo "$as_me:$LINENO: result: yes" >&5
11700 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11701 #define $ac_tr_decl 1
11702 _ACEOF
11703
11704 else
11705 echo "$as_me:$LINENO: result: no" >&5
11706 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11707 #define $ac_tr_decl 0
11708 _ACEOF
11709
11710 fi
11711
11712 done
11713
11714
11715
11716 for ac_func in times
11717 do
11718 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11719 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11720 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11721 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h. */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #undef $ac_tr_decl
11731 #define $ac_tr_decl 1
11732
11733 #include "ansidecl.h"
11734 #include "system.h"
11735 #ifdef HAVE_SYS_TIMES_H
11736 #include <sys/times.h>
11737 #endif
11738
11739
11740 int
11741 main ()
11742 {
11743 #ifndef $ac_func
11744 char *(*pfn) = (char *(*)) $ac_func ;
11745 #endif
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 eval "gcc_cv_have_decl_$ac_func=yes"
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777 eval "gcc_cv_have_decl_$ac_func=no"
11778 fi
11779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 fi
11781
11782 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11783 echo "$as_me:$LINENO: result: yes" >&5
11784 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11785 #define $ac_tr_decl 1
11786 _ACEOF
11787
11788 else
11789 echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11791 #define $ac_tr_decl 0
11792 _ACEOF
11793
11794 fi
11795
11796 done
11797
11798
11799
11800 for ac_func in sigaltstack
11801 do
11802 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11803 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11804 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11805 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #undef $ac_tr_decl
11815 #define $ac_tr_decl 1
11816
11817 #include "ansidecl.h"
11818 #include "system.h"
11819 #include <signal.h>
11820
11821
11822 int
11823 main ()
11824 {
11825 #ifndef $ac_func
11826 char *(*pfn) = (char *(*)) $ac_func ;
11827 #endif
11828 ;
11829 return 0;
11830 }
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 eval "gcc_cv_have_decl_$ac_func=yes"
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 eval "gcc_cv_have_decl_$ac_func=no"
11860 fi
11861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11862 fi
11863
11864 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11865 echo "$as_me:$LINENO: result: yes" >&5
11866 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11867 #define $ac_tr_decl 1
11868 _ACEOF
11869
11870 else
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11873 #define $ac_tr_decl 0
11874 _ACEOF
11875
11876 fi
11877
11878 done
11879
11880
11881 # More time-related stuff.
11882 echo "$as_me:$LINENO: checking for struct tms" >&5
11883 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11884 if test "${ac_cv_struct_tms+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894
11895 #include "ansidecl.h"
11896 #include "system.h"
11897 #ifdef HAVE_SYS_TIMES_H
11898 #include <sys/times.h>
11899 #endif
11900
11901 int
11902 main ()
11903 {
11904 struct tms tms;
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_struct_tms=yes
11932 else
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_struct_tms=no
11937 fi
11938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11939 fi
11940 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11941 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11942 if test $ac_cv_struct_tms = yes; then
11943
11944 cat >>confdefs.h <<\_ACEOF
11945 #define HAVE_STRUCT_TMS 1
11946 _ACEOF
11947
11948 fi
11949
11950 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11951 # revisit after autoconf 2.50.
11952 echo "$as_me:$LINENO: checking for clock_t" >&5
11953 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11954 if test "${gcc_cv_type_clock_t+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964
11965 #include "ansidecl.h"
11966 #include "system.h"
11967
11968 int
11969 main ()
11970 {
11971 clock_t x;
11972 ;
11973 return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 gcc_cv_type_clock_t=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 gcc_cv_type_clock_t=no
12004 fi
12005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006 fi
12007 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12008 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12009 if test $gcc_cv_type_clock_t = yes; then
12010
12011 cat >>confdefs.h <<\_ACEOF
12012 #define HAVE_CLOCK_T 1
12013 _ACEOF
12014
12015 fi
12016
12017 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12018 CFLAGS="$saved_CFLAGS"
12019
12020 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12021 if test "${enable_initfini_array+set}" = set; then
12022 enableval="$enable_initfini_array"
12023
12024 else
12025
12026 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12027 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12028 if test "${gcc_cv_initfini_array+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 if test "$cross_compiling" = yes; then
12032 gcc_cv_initfini_array=no
12033 else
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040
12041 static int x = -1;
12042 int main (void) { return x; }
12043 int foo (void) { x = 0; }
12044 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12045 _ACEOF
12046 rm -f conftest$ac_exeext
12047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12048 (eval $ac_link) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 gcc_cv_initfini_array=yes
12058 else
12059 echo "$as_me: program exited with status $ac_status" >&5
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 ( exit $ac_status )
12064 gcc_cv_initfini_array=no
12065 fi
12066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 fi
12069 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12070 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12071 enable_initfini_array=$gcc_cv_initfini_array
12072
12073 fi;
12074 if test $enable_initfini_array = yes; then
12075
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_INITFINI_ARRAY 1
12078 _ACEOF
12079
12080 fi
12081
12082 # mkdir takes a single argument on some systems.
12083 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12084 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12085 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094
12095 #include <sys/types.h>
12096 #ifdef HAVE_SYS_STAT_H
12097 # include <sys/stat.h>
12098 #endif
12099 #ifdef HAVE_UNISTD_H
12100 # include <unistd.h>
12101 #endif
12102 #ifdef HAVE_DIRECT_H
12103 # include <direct.h>
12104 #endif
12105 int
12106 main ()
12107 {
12108 mkdir ("foo", 0);
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 gcc_cv_mkdir_takes_one_arg=no
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 gcc_cv_mkdir_takes_one_arg=yes
12141 fi
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12145 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12146 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12147
12148 cat >>confdefs.h <<\_ACEOF
12149 #define MKDIR_TAKES_ONE_ARG 1
12150 _ACEOF
12151
12152 fi
12153
12154
12155 # File extensions
12156 manext='.1'
12157 objext='.o'
12158
12159
12160
12161 # With Setjmp/Longjmp based exception handling.
12162 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12163 if test "${enable_sjlj_exceptions+set}" = set; then
12164 enableval="$enable_sjlj_exceptions"
12165 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12166
12167 cat >>confdefs.h <<_ACEOF
12168 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12169 _ACEOF
12170
12171 fi;
12172
12173 # For platforms with the unwind ABI which includes an unwind library,
12174 # libunwind, we can choose to use the system libunwind.
12175
12176 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12177 if test "${with_system_libunwind+set}" = set; then
12178 withval="$with_system_libunwind"
12179
12180 fi;
12181
12182 # config.gcc also contains tests of with_system_libunwind.
12183 if test x$with_system_libunwind = xyes; then
12184
12185 cat >>confdefs.h <<\_ACEOF
12186 #define HAVE_GETIPINFO 1
12187 _ACEOF
12188
12189 fi
12190
12191 # --------------------------------------------------------
12192 # Build, host, and target specific configuration fragments
12193 # --------------------------------------------------------
12194
12195 # Collect build-machine-specific information.
12196 . ${srcdir}/config.build
12197
12198 # Collect host-machine-specific information.
12199 . ${srcdir}/config.host
12200
12201 target_gtfiles=
12202
12203 # Collect target-machine-specific information.
12204 . ${srcdir}/config.gcc
12205
12206 extra_objs="${host_extra_objs} ${extra_objs}"
12207 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12208
12209 # Default the target-machine variables that were not explicitly set.
12210 if test x"$tm_file" = x
12211 then tm_file=$cpu_type/$cpu_type.h; fi
12212
12213 if test x"$extra_headers" = x
12214 then extra_headers=; fi
12215
12216 if test x$md_file = x
12217 then md_file=$cpu_type/$cpu_type.md; fi
12218
12219 if test x$out_file = x
12220 then out_file=$cpu_type/$cpu_type.c; fi
12221
12222 if test x"$tmake_file" = x
12223 then tmake_file=$cpu_type/t-$cpu_type
12224 fi
12225
12226 if test x"$dwarf2" = xyes
12227 then tm_file="$tm_file tm-dwarf2.h"
12228 fi
12229
12230 # Say what files are being used for the output code and MD file.
12231 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12232 echo "Using \`$srcdir/config/$md_file' as machine description file."
12233
12234 # If any of the xm_file variables contain nonexistent files, warn
12235 # about them and drop them.
12236
12237 bx=
12238 for x in $build_xm_file; do
12239 if test -f $srcdir/config/$x
12240 then bx="$bx $x"
12241 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12242 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12243 fi
12244 done
12245 build_xm_file="$bx"
12246
12247 hx=
12248 for x in $host_xm_file; do
12249 if test -f $srcdir/config/$x
12250 then hx="$hx $x"
12251 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12252 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12253 fi
12254 done
12255 host_xm_file="$hx"
12256
12257 tx=
12258 for x in $xm_file; do
12259 if test -f $srcdir/config/$x
12260 then tx="$tx $x"
12261 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12262 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12263 fi
12264 done
12265 xm_file="$tx"
12266
12267 count=a
12268 for f in $tm_file; do
12269 count=${count}x
12270 done
12271 if test $count = ax; then
12272 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12273 else
12274 echo "Using the following target machine macro files:"
12275 for f in $tm_file; do
12276 echo " $srcdir/config/$f"
12277 done
12278 fi
12279
12280 if test x$need_64bit_hwint = xyes; then
12281
12282 cat >>confdefs.h <<\_ACEOF
12283 #define NEED_64BIT_HOST_WIDE_INT 1
12284 _ACEOF
12285
12286 fi
12287
12288 if test x$use_long_long_for_widest_fast_int = xyes; then
12289
12290 cat >>confdefs.h <<\_ACEOF
12291 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12292 _ACEOF
12293
12294 fi
12295
12296 count=a
12297 for f in $host_xm_file; do
12298 count=${count}x
12299 done
12300 if test $count = a; then
12301 :
12302 elif test $count = ax; then
12303 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12304 else
12305 echo "Using the following host machine macro files:"
12306 for f in $host_xm_file; do
12307 echo " $srcdir/config/$f"
12308 done
12309 fi
12310 echo "Using ${out_host_hook_obj} for host machine hooks."
12311
12312 if test "$host_xm_file" != "$build_xm_file"; then
12313 count=a
12314 for f in $build_xm_file; do
12315 count=${count}x
12316 done
12317 if test $count = a; then
12318 :
12319 elif test $count = ax; then
12320 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12321 else
12322 echo "Using the following build machine macro files:"
12323 for f in $build_xm_file; do
12324 echo " $srcdir/config/$f"
12325 done
12326 fi
12327 fi
12328
12329 case ${host} in
12330 powerpc*-*-darwin*)
12331 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12332 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12333 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 cat >conftest.$ac_ext <<_ACEOF
12337
12338 #include <sys/cdefs.h>
12339 #include <sys/signal.h>
12340 #include <ucontext.h>
12341 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12342
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag"
12354 || test ! -s conftest.err'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest.$ac_objext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 gcc_cv_mcontext_underscores=no
12367 else
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12370
12371 gcc_cv_mcontext_underscores=yes
12372 fi
12373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12376 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12377 if test $gcc_cv_mcontext_underscores = yes; then
12378
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAS_MCONTEXT_T_UNDERSCORES
12381 _ACEOF
12382
12383 fi
12384 ;;
12385 esac
12386
12387 # ---------
12388 # Threading
12389 # ---------
12390
12391 # Check if a valid thread package
12392 case ${enable_threads} in
12393 "" | no)
12394 # No threads
12395 target_thread_file='single'
12396 ;;
12397 yes)
12398 # default
12399 target_thread_file='single'
12400 ;;
12401 aix | dce | gnat | irix | posix | posix95 | rtems | \
12402 single | solaris | vxworks | win32 )
12403 target_thread_file=${enable_threads}
12404 ;;
12405 *)
12406 echo "${enable_threads} is an unknown thread package" 1>&2
12407 exit 1
12408 ;;
12409 esac
12410
12411 if test x${thread_file} = x; then
12412 # No thread file set by target-specific clauses in config.gcc,
12413 # so use file chosen by default logic above
12414 thread_file=${target_thread_file}
12415 fi
12416
12417 # Make gthr-default.h if we have a thread file.
12418 gthread_flags=
12419 if test $thread_file != single; then
12420 rm -f gthr-default.h
12421 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12422 gthread_flags=-DHAVE_GTHR_DEFAULT
12423 fi
12424
12425
12426 # --------
12427 # UNSORTED
12428 # --------
12429
12430 use_cxa_atexit=no
12431 if test x$enable___cxa_atexit = xyes || \
12432 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12433 if test x$host = x$target; then
12434 case $host in
12435 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12436 # keyed to flag_use_cxa_atexit
12437 *-*-mingw32*)
12438 use_cxa_atexit=yes
12439 ;;
12440 *)
12441 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12442 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12443 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 else
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12454 #define __cxa_atexit innocuous___cxa_atexit
12455
12456 /* System header to define __stub macros and hopefully few prototypes,
12457 which can conflict with char __cxa_atexit (); below.
12458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12459 <limits.h> exists even on freestanding compilers. */
12460
12461 #ifdef __STDC__
12462 # include <limits.h>
12463 #else
12464 # include <assert.h>
12465 #endif
12466
12467 #undef __cxa_atexit
12468
12469 /* Override any gcc2 internal prototype to avoid an error. */
12470 #ifdef __cplusplus
12471 extern "C"
12472 {
12473 #endif
12474 /* We use char because int might match the return type of a gcc2
12475 builtin and then its argument prototype would still apply. */
12476 char __cxa_atexit ();
12477 /* The GNU C library defines this for functions which it implements
12478 to always fail with ENOSYS. Some functions are actually named
12479 something starting with __ and the normal name is an alias. */
12480 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12481 choke me
12482 #else
12483 char (*f) () = __cxa_atexit;
12484 #endif
12485 #ifdef __cplusplus
12486 }
12487 #endif
12488
12489 int
12490 main ()
12491 {
12492 return f != __cxa_atexit;
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext conftest$ac_exeext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12499 (eval $ac_link) 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 ac_cv_func___cxa_atexit=yes
12520 else
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 ac_cv_func___cxa_atexit=no
12525 fi
12526 rm -f conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 fi
12529 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12530 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12531 if test $ac_cv_func___cxa_atexit = yes; then
12532 use_cxa_atexit=yes
12533 else
12534 echo "__cxa_atexit can't be enabled on this target"
12535 fi
12536
12537 ;;
12538 esac
12539 else
12540 # We can't check for __cxa_atexit when building a cross, so assume
12541 # it is available
12542 use_cxa_atexit=yes
12543 fi
12544 if test x$use_cxa_atexit = xyes; then
12545
12546 cat >>confdefs.h <<\_ACEOF
12547 #define DEFAULT_USE_CXA_ATEXIT 2
12548 _ACEOF
12549
12550 fi
12551 fi
12552
12553 use_getipinfo=yes
12554 if test x$with_system_libunwind = xyes; then
12555 if test x$host = x$target; then
12556 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12557 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12558 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561 ac_func_search_save_LIBS=$LIBS
12562 ac_cv_search__Unwind_GetIPInfo=no
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h. */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569
12570 /* Override any gcc2 internal prototype to avoid an error. */
12571 #ifdef __cplusplus
12572 extern "C"
12573 #endif
12574 /* We use char because int might match the return type of a gcc2
12575 builtin and then its argument prototype would still apply. */
12576 char _Unwind_GetIPInfo ();
12577 int
12578 main ()
12579 {
12580 _Unwind_GetIPInfo ();
12581 ;
12582 return 0;
12583 }
12584 _ACEOF
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12587 (eval $ac_link) 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 ac_cv_search__Unwind_GetIPInfo="none required"
12608 else
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 fi
12613 rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
12615 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12616 for ac_lib in unwind; do
12617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624
12625 /* Override any gcc2 internal prototype to avoid an error. */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 /* We use char because int might match the return type of a gcc2
12630 builtin and then its argument prototype would still apply. */
12631 char _Unwind_GetIPInfo ();
12632 int
12633 main ()
12634 {
12635 _Unwind_GetIPInfo ();
12636 ;
12637 return 0;
12638 }
12639 _ACEOF
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12663 break
12664 else
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 fi
12669 rm -f conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 done
12672 fi
12673 LIBS=$ac_func_search_save_LIBS
12674 fi
12675 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12676 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12677 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12678 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12679
12680 else
12681 use_getipinfo=no
12682 fi
12683
12684 fi
12685 fi
12686
12687 if test x$use_getipinfo = xyes; then
12688
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_GETIPINFO 1
12691 _ACEOF
12692
12693 else
12694 echo "The system unwind library does not support _Unwind_GetIPInfo."
12695 fi
12696
12697 # Look for a file containing extra machine modes.
12698 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12699 extra_modes_file='$(srcdir)'/config/${extra_modes}
12700
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define EXTRA_MODES_FILE "config/$extra_modes"
12704 _ACEOF
12705
12706 fi
12707
12708 # Convert extra_options into a form suitable for Makefile use.
12709 extra_opt_files=
12710 for f in $extra_options; do
12711 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12712 done
12713
12714
12715 # auto-host.h is the file containing items generated by autoconf and is
12716 # the first file included by config.h.
12717 # If host=build, it is correct to have bconfig include auto-host.h
12718 # as well. If host!=build, we are in error and need to do more
12719 # work to find out the build config parameters.
12720 if test x$host = x$build
12721 then
12722 build_auto=auto-host.h
12723 else
12724 # We create a subdir, then run autoconf in the subdir.
12725 # To prevent recursion we set host and build for the new
12726 # invocation of configure to the build for this invocation
12727 # of configure.
12728 tempdir=build.$$
12729 rm -rf $tempdir
12730 mkdir $tempdir
12731 cd $tempdir
12732 case ${srcdir} in
12733 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12734 *) realsrcdir=../${srcdir};;
12735 esac
12736 saved_CFLAGS="${CFLAGS}"
12737 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12738 ${realsrcdir}/configure \
12739 --enable-languages=${enable_languages-all} \
12740 --target=$target_alias --host=$build_alias --build=$build_alias
12741 CFLAGS="${saved_CFLAGS}"
12742
12743 # We just finished tests for the build machine, so rename
12744 # the file auto-build.h in the gcc directory.
12745 mv auto-host.h ../auto-build.h
12746 cd ..
12747 rm -rf $tempdir
12748 build_auto=auto-build.h
12749 fi
12750
12751
12752 tm_file="${tm_file} defaults.h"
12753 tm_p_file="${tm_p_file} tm-preds.h"
12754 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12755 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12756 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12757 # put this back in temporarily.
12758 xm_file="auto-host.h ansidecl.h ${xm_file}"
12759
12760 # --------
12761 # UNSORTED
12762 # --------
12763
12764 # Compile in configure arguments.
12765 if test -f configargs.h ; then
12766 # Being re-configured.
12767 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12768 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12769 else
12770 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12771 fi
12772
12773 # Double all backslashes and backslash all quotes to turn
12774 # gcc_config_arguments into a C string.
12775 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12776 $gcc_config_arguments
12777 EOF
12778 gcc_config_arguments_str=`cat conftest.out`
12779 rm -f conftest.out
12780
12781 cat > configargs.h <<EOF
12782 /* Generated automatically. */
12783 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12784 static const char thread_model[] = "$thread_file";
12785
12786 static const struct {
12787 const char *name, *value;
12788 } configure_default_options[] = $configure_default_options;
12789 EOF
12790
12791 # Internationalization
12792 # If we haven't got the data from the intl directory,
12793 # assume NLS is disabled.
12794 USE_NLS=no
12795 LIBINTL=
12796 LIBINTL_DEP=
12797 INCINTL=
12798 XGETTEXT=
12799 GMSGFMT=
12800 POSUB=
12801
12802 if test -f ../intl/config.intl; then
12803 . ../intl/config.intl
12804 fi
12805 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12806 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12807 if test x"$USE_NLS" != xyes; then
12808 echo "$as_me:$LINENO: result: no" >&5
12809 echo "${ECHO_T}no" >&6
12810 else
12811 echo "$as_me:$LINENO: result: yes" >&5
12812 echo "${ECHO_T}yes" >&6
12813
12814 cat >>confdefs.h <<\_ACEOF
12815 #define ENABLE_NLS 1
12816 _ACEOF
12817
12818
12819 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12820 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12821 # Look for .po and .gmo files in the source directory.
12822 CATALOGS=
12823 XLINGUAS=
12824 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12825 # If there aren't any .gmo files the shell will give us the
12826 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12827 # weeded out.
12828 case "$cat" in *\**)
12829 continue;;
12830 esac
12831 # The quadruple backslash is collapsed to a double backslash
12832 # by the backticks, then collapsed again by the double quotes,
12833 # leaving us with one backslash in the sed expression (right
12834 # before the dot that mustn't act as a wildcard).
12835 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12836 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12837 # The user is allowed to set LINGUAS to a list of languages to
12838 # install catalogs for. If it's empty that means "all of them."
12839 if test "x$LINGUAS" = x; then
12840 CATALOGS="$CATALOGS $cat"
12841 XLINGUAS="$XLINGUAS $lang"
12842 else
12843 case "$LINGUAS" in *$lang*)
12844 CATALOGS="$CATALOGS $cat"
12845 XLINGUAS="$XLINGUAS $lang"
12846 ;;
12847 esac
12848 fi
12849 done
12850 LINGUAS="$XLINGUAS"
12851 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12852 echo "${ECHO_T}$LINGUAS" >&6
12853
12854
12855 DATADIRNAME=share
12856
12857 INSTOBJEXT=.mo
12858
12859 GENCAT=gencat
12860
12861 CATOBJEXT=.gmo
12862
12863 fi
12864
12865 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12866 # -liconv on the link line twice.
12867 case "$LIBINTL" in *$LIBICONV*)
12868 LIBICONV= ;;
12869 esac
12870
12871 # Check whether --enable-secureplt or --disable-secureplt was given.
12872 if test "${enable_secureplt+set}" = set; then
12873 enableval="$enable_secureplt"
12874
12875 fi;
12876
12877 # Windows32 Registry support for specifying GCC installation paths.
12878 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12879 if test "${enable_win32_registry+set}" = set; then
12880 enableval="$enable_win32_registry"
12881
12882 fi;
12883
12884 case $host_os in
12885 win32 | pe | cygwin* | mingw32* | uwin*)
12886 if test "x$enable_win32_registry" != xno; then
12887 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12888 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12889 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892 ac_func_search_save_LIBS=$LIBS
12893 ac_cv_search_RegOpenKeyExA=no
12894 cat >conftest.$ac_ext <<_ACEOF
12895 /* confdefs.h. */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900
12901 /* Override any gcc2 internal prototype to avoid an error. */
12902 #ifdef __cplusplus
12903 extern "C"
12904 #endif
12905 /* We use char because int might match the return type of a gcc2
12906 builtin and then its argument prototype would still apply. */
12907 char RegOpenKeyExA ();
12908 int
12909 main ()
12910 {
12911 RegOpenKeyExA ();
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest$ac_exeext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_cv_search_RegOpenKeyExA="none required"
12939 else
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12942
12943 fi
12944 rm -f conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12946 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12947 for ac_lib in advapi32; do
12948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12949 cat >conftest.$ac_ext <<_ACEOF
12950 /* confdefs.h. */
12951 _ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955
12956 /* Override any gcc2 internal prototype to avoid an error. */
12957 #ifdef __cplusplus
12958 extern "C"
12959 #endif
12960 /* We use char because int might match the return type of a gcc2
12961 builtin and then its argument prototype would still apply. */
12962 char RegOpenKeyExA ();
12963 int
12964 main ()
12965 {
12966 RegOpenKeyExA ();
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12973 (eval $ac_link) 2>conftest.er1
12974 ac_status=$?
12975 grep -v '^ *+' conftest.er1 >conftest.err
12976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_c_werror_flag"
12981 || test ! -s conftest.err'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; } &&
12987 { ac_try='test -s conftest$ac_exeext'
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12994 break
12995 else
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 fi
13000 rm -f conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 done
13003 fi
13004 LIBS=$ac_func_search_save_LIBS
13005 fi
13006 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13007 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13008 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13009 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13010
13011 else
13012 enable_win32_registry=no
13013 fi
13014
13015 fi
13016
13017 if test "x$enable_win32_registry" != xno; then
13018
13019 cat >>confdefs.h <<\_ACEOF
13020 #define ENABLE_WIN32_REGISTRY 1
13021 _ACEOF
13022
13023
13024 if test "x$enable_win32_registry" != xyes \
13025 && test "x$enable_win32_registry" != x; then
13026
13027 cat >>confdefs.h <<_ACEOF
13028 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13029 _ACEOF
13030
13031 fi
13032 fi
13033 ;;
13034 esac
13035
13036 # Get an absolute path to the GCC top-level source directory
13037 holddir=`${PWDCMD-pwd}`
13038 cd $srcdir
13039 topdir=`${PWDCMD-pwd}`
13040 cd $holddir
13041
13042 # Conditionalize the makefile for this host machine.
13043 xmake_file=
13044 for f in ${host_xmake_file}
13045 do
13046 if test -f ${srcdir}/config/$f
13047 then
13048 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13049 fi
13050 done
13051
13052 # Conditionalize the makefile for this target machine.
13053 tmake_file_=
13054 for f in ${tmake_file}
13055 do
13056 if test -f ${srcdir}/config/$f
13057 then
13058 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13059 fi
13060 done
13061 tmake_file="${tmake_file_}"
13062
13063 # This is a terrible hack which will go away some day.
13064 host_cc_for_libada=${CC}
13065
13066
13067 out_object_file=`basename $out_file .c`.o
13068
13069 tm_file_list="options.h"
13070 tm_include_list="options.h"
13071 for f in $tm_file; do
13072 case $f in
13073 ./* )
13074 f=`echo $f | sed 's/^..//'`
13075 tm_file_list="${tm_file_list} $f"
13076 tm_include_list="${tm_include_list} $f"
13077 ;;
13078 defaults.h )
13079 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13080 tm_include_list="${tm_include_list} $f"
13081 ;;
13082 * )
13083 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13084 tm_include_list="${tm_include_list} config/$f"
13085 ;;
13086 esac
13087 done
13088
13089 tm_p_file_list=
13090 tm_p_include_list=
13091 for f in $tm_p_file; do
13092 case $f in
13093 tm-preds.h )
13094 tm_p_file_list="${tm_p_file_list} $f"
13095 tm_p_include_list="${tm_p_include_list} $f"
13096 ;;
13097 * )
13098 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13099 tm_p_include_list="${tm_p_include_list} config/$f"
13100 esac
13101 done
13102
13103 xm_file_list=
13104 xm_include_list=
13105 for f in $xm_file; do
13106 case $f in
13107 ansidecl.h )
13108 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13109 xm_include_list="${xm_include_list} $f"
13110 ;;
13111 auto-host.h )
13112 xm_file_list="${xm_file_list} $f"
13113 xm_include_list="${xm_include_list} $f"
13114 ;;
13115 * )
13116 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13117 xm_include_list="${xm_include_list} config/$f"
13118 ;;
13119 esac
13120 done
13121
13122 host_xm_file_list=
13123 host_xm_include_list=
13124 for f in $host_xm_file; do
13125 case $f in
13126 ansidecl.h )
13127 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13128 host_xm_include_list="${host_xm_include_list} $f"
13129 ;;
13130 auto-host.h )
13131 host_xm_file_list="${host_xm_file_list} $f"
13132 host_xm_include_list="${host_xm_include_list} $f"
13133 ;;
13134 * )
13135 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13136 host_xm_include_list="${host_xm_include_list} config/$f"
13137 ;;
13138 esac
13139 done
13140
13141 build_xm_file_list=
13142 for f in $build_xm_file; do
13143 case $f in
13144 ansidecl.h )
13145 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13146 build_xm_include_list="${build_xm_include_list} $f"
13147 ;;
13148 auto-build.h | auto-host.h )
13149 build_xm_file_list="${build_xm_file_list} $f"
13150 build_xm_include_list="${build_xm_include_list} $f"
13151 ;;
13152 * )
13153 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13154 build_xm_include_list="${build_xm_include_list} config/$f"
13155 ;;
13156 esac
13157 done
13158
13159 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13160 # cross-compiler which does not use the native headers and libraries.
13161 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13162 CROSS=
13163 ALL=all.internal
13164 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13165
13166 if test "x$with_build_sysroot" != x; then
13167 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13168 else
13169 # This value is used, even on a native system, because
13170 # CROSS_SYSTEM_HEADER_DIR is just
13171 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13172 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13173 fi
13174
13175 if test x$host != x$target
13176 then
13177 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13178 ALL=all.cross
13179 SYSTEM_HEADER_DIR=$build_system_header_dir
13180 case "$host","$target" in
13181 # Darwin crosses can use the host system's libraries and headers,
13182 # because of the fat library support. Of course, it must be the
13183 # same version of Darwin on both sides. Allow the user to
13184 # just say --target=foo-darwin without a version number to mean
13185 # "the version on this system".
13186 *-*-darwin*,*-*-darwin*)
13187 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13188 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13189 if test $hostos = $targetos -o $targetos = darwin ; then
13190 CROSS=
13191 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13192 with_headers=yes
13193 fi
13194 ;;
13195
13196 i?86-*-*,x86_64-*-* \
13197 | powerpc*-*-*,powerpc64*-*-*)
13198 CROSS="$CROSS -DNATIVE_CROSS" ;;
13199 esac
13200 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13201 SYSTEM_HEADER_DIR=$build_system_header_dir
13202 fi
13203
13204 # If this is a cross-compiler that does not
13205 # have its own set of headers then define
13206 # inhibit_libc
13207
13208 # If this is using newlib, without having the headers available now,
13209 # then define inhibit_libc in LIBGCC2_CFLAGS.
13210 # This prevents libgcc2 from containing any code which requires libc
13211 # support.
13212 inhibit_libc=false
13213 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13214 test x$with_newlib = xyes ; } &&
13215 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13216 inhibit_libc=true
13217 fi
13218
13219
13220 # When building gcc with a cross-compiler, we need to adjust things so
13221 # that the generator programs are still built with the native compiler.
13222 # Also, we cannot run fixincludes or fix-header.
13223
13224 # These are the normal (build=host) settings:
13225 CC_FOR_BUILD='$(CC)'
13226 BUILD_CFLAGS='$(ALL_CFLAGS)'
13227 STMP_FIXINC=stmp-fixinc
13228
13229 # Possibly disable fixproto, on a per-target basis.
13230 case ${use_fixproto} in
13231 no)
13232 STMP_FIXPROTO=
13233 ;;
13234 yes)
13235 STMP_FIXPROTO=stmp-fixproto
13236 ;;
13237 esac
13238
13239
13240 # And these apply if build != host, or we are generating coverage data
13241 if test x$build != x$host || test "x$coverage_flags" != x
13242 then
13243 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13244
13245 if test "x$TARGET_SYSTEM_ROOT" = x; then
13246 if test "x$STMP_FIXPROTO" != x; then
13247 STMP_FIXPROTO=stmp-install-fixproto
13248 fi
13249 fi
13250 fi
13251
13252 # Expand extra_headers to include complete path.
13253 # This substitutes for lots of t-* files.
13254 extra_headers_list=
13255 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13256 for file in ${extra_headers} ; do
13257 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13258 done
13259
13260 # Define collect2 in Makefile.
13261 case $host_can_use_collect2 in
13262 no) collect2= ;;
13263 *) collect2='collect2$(exeext)' ;;
13264 esac
13265
13266
13267 # Add a definition of USE_COLLECT2 if system wants one.
13268 case $use_collect2 in
13269 no) use_collect2= ;;
13270 "") ;;
13271 *)
13272 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13273 xm_defines="${xm_defines} USE_COLLECT2"
13274 case $host_can_use_collect2 in
13275 no)
13276 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13277 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13278 { (exit 1); exit 1; }; }
13279 ;;
13280 esac
13281 ;;
13282 esac
13283
13284 # ---------------------------
13285 # Assembler & linker features
13286 # ---------------------------
13287
13288 # Identify the assembler which will work hand-in-glove with the newly
13289 # built GCC, so that we can examine its features. This is the assembler
13290 # which will be driven by the driver program.
13291 #
13292 # If build != host, and we aren't building gas in-tree, we identify a
13293 # build->target assembler and hope that it will have the same features
13294 # as the host->target assembler we'll be using.
13295 gcc_cv_gas_major_version=
13296 gcc_cv_gas_minor_version=
13297 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13298
13299 if test "${gcc_cv_as+set}" = set; then
13300 :
13301 else
13302
13303 if test -x "$DEFAULT_ASSEMBLER"; then
13304 gcc_cv_as="$DEFAULT_ASSEMBLER"
13305 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13306 && test -f ../gas/Makefile \
13307 && test x$build = x$host; then
13308 gcc_cv_as=../gas/as-new$build_exeext
13309 elif test -x as$build_exeext; then
13310 # Build using assembler in the current directory.
13311 gcc_cv_as=./as$build_exeext
13312 elif test -x $AS_FOR_TARGET; then
13313 gcc_cv_as="$AS_FOR_TARGET"
13314 else
13315 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13316 set dummy $AS_FOR_TARGET; ac_word=$2
13317 echo "$as_me:$LINENO: checking for $ac_word" >&5
13318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13319 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321 else
13322 case $gcc_cv_as in
13323 [\\/]* | ?:[\\/]*)
13324 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13325 ;;
13326 *)
13327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13328 for as_dir in $PATH
13329 do
13330 IFS=$as_save_IFS
13331 test -z "$as_dir" && as_dir=.
13332 for ac_exec_ext in '' $ac_executable_extensions; do
13333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13334 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13336 break 2
13337 fi
13338 done
13339 done
13340
13341 ;;
13342 esac
13343 fi
13344 gcc_cv_as=$ac_cv_path_gcc_cv_as
13345
13346 if test -n "$gcc_cv_as"; then
13347 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13348 echo "${ECHO_T}$gcc_cv_as" >&6
13349 else
13350 echo "$as_me:$LINENO: result: no" >&5
13351 echo "${ECHO_T}no" >&6
13352 fi
13353
13354 fi
13355 fi
13356
13357
13358 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13359
13360 case "$ORIGINAL_AS_FOR_TARGET" in
13361 ./as | ./as$build_exeext) ;;
13362 *) ac_config_files="$ac_config_files as:exec-tool.in"
13363 ;;
13364 esac
13365
13366 echo "$as_me:$LINENO: checking what assembler to use" >&5
13367 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13368 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13369 # Single tree build which includes gas. We want to prefer it
13370 # over whatever linker top-level may have detected, since
13371 # we'll use what we're building after installation anyway.
13372 echo "$as_me:$LINENO: result: newly built gas" >&5
13373 echo "${ECHO_T}newly built gas" >&6
13374 in_tree_gas=yes
13375 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13376 for f in $gcc_cv_as_bfd_srcdir/configure \
13377 $gcc_cv_as_gas_srcdir/configure \
13378 $gcc_cv_as_gas_srcdir/configure.in \
13379 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13380 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13381 if test x$gcc_cv_gas_version != x; then
13382 break
13383 fi
13384 done
13385 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13386 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13387 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13388 case $gcc_cv_gas_patch_version in
13389 "") gcc_cv_gas_patch_version="0" ;;
13390 esac
13391 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13392 + $gcc_cv_gas_minor_version \) \* 1000 \
13393 + $gcc_cv_gas_patch_version`
13394
13395 in_tree_gas_is_elf=no
13396 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13397 || (grep 'obj_format = multi' ../gas/Makefile \
13398 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13399 then
13400 in_tree_gas_is_elf=yes
13401 fi
13402 else
13403 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13404 echo "${ECHO_T}$gcc_cv_as" >&6
13405 in_tree_gas=no
13406 fi
13407
13408 # Identify the linker which will work hand-in-glove with the newly
13409 # built GCC, so that we can examine its features. This is the linker
13410 # which will be driven by the driver program.
13411 #
13412 # If build != host, and we aren't building gas in-tree, we identify a
13413 # build->target linker and hope that it will have the same features
13414 # as the host->target linker we'll be using.
13415 gcc_cv_gld_major_version=
13416 gcc_cv_gld_minor_version=
13417 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13418 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13419
13420 if test "${gcc_cv_ld+set}" = set; then
13421 :
13422 else
13423
13424 if test -x "$DEFAULT_LINKER"; then
13425 gcc_cv_ld="$DEFAULT_LINKER"
13426 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13427 && test -f ../ld/Makefile \
13428 && test x$build = x$host; then
13429 gcc_cv_ld=../ld/ld-new$build_exeext
13430 elif test -x collect-ld$build_exeext; then
13431 # Build using linker in the current directory.
13432 gcc_cv_ld=./collect-ld$build_exeext
13433 elif test -x $LD_FOR_TARGET; then
13434 gcc_cv_ld="$LD_FOR_TARGET"
13435 else
13436 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13437 set dummy $LD_FOR_TARGET; ac_word=$2
13438 echo "$as_me:$LINENO: checking for $ac_word" >&5
13439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13440 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 case $gcc_cv_ld in
13444 [\\/]* | ?:[\\/]*)
13445 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13446 ;;
13447 *)
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13450 do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459 done
13460 done
13461
13462 ;;
13463 esac
13464 fi
13465 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13466
13467 if test -n "$gcc_cv_ld"; then
13468 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13469 echo "${ECHO_T}$gcc_cv_ld" >&6
13470 else
13471 echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13473 fi
13474
13475 fi
13476 fi
13477
13478
13479 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13480
13481 case "$ORIGINAL_LD_FOR_TARGET" in
13482 ./collect-ld | ./collect-ld$build_exeext) ;;
13483 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13484 ;;
13485 esac
13486
13487 echo "$as_me:$LINENO: checking what linker to use" >&5
13488 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13489 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13490 # Single tree build which includes ld. We want to prefer it
13491 # over whatever linker top-level may have detected, since
13492 # we'll use what we're building after installation anyway.
13493 echo "$as_me:$LINENO: result: newly built ld" >&5
13494 echo "${ECHO_T}newly built ld" >&6
13495 in_tree_ld=yes
13496 in_tree_ld_is_elf=no
13497 if (grep 'EMUL = .*elf' ../ld/Makefile \
13498 || grep 'EMUL = .*linux' ../ld/Makefile \
13499 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13500 in_tree_ld_is_elf=yes
13501 fi
13502 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
13503 do
13504 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13505 if test x$gcc_cv_gld_version != x; then
13506 break
13507 fi
13508 done
13509 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13510 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13511 else
13512 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13513 echo "${ECHO_T}$gcc_cv_ld" >&6
13514 in_tree_ld=no
13515 fi
13516
13517 # Figure out what nm we will be using.
13518 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13519 if test "${gcc_cv_nm+set}" = set; then
13520 :
13521 else
13522
13523 if test -f $gcc_cv_binutils_srcdir/configure.in \
13524 && test -f ../binutils/Makefile \
13525 && test x$build = x$host; then
13526 gcc_cv_nm=../binutils/nm-new$build_exeext
13527 elif test -x nm$build_exeext; then
13528 gcc_cv_nm=./nm$build_exeext
13529 elif test -x $NM_FOR_TARGET; then
13530 gcc_cv_nm="$NM_FOR_TARGET"
13531 else
13532 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13533 set dummy $NM_FOR_TARGET; ac_word=$2
13534 echo "$as_me:$LINENO: checking for $ac_word" >&5
13535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13536 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539 case $gcc_cv_nm in
13540 [\\/]* | ?:[\\/]*)
13541 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13542 ;;
13543 *)
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13554 fi
13555 done
13556 done
13557
13558 ;;
13559 esac
13560 fi
13561 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13562
13563 if test -n "$gcc_cv_nm"; then
13564 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13565 echo "${ECHO_T}$gcc_cv_nm" >&6
13566 else
13567 echo "$as_me:$LINENO: result: no" >&5
13568 echo "${ECHO_T}no" >&6
13569 fi
13570
13571 fi
13572 fi
13573
13574
13575 echo "$as_me:$LINENO: checking what nm to use" >&5
13576 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13577 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13578 # Single tree build which includes binutils.
13579 echo "$as_me:$LINENO: result: newly built nm" >&5
13580 echo "${ECHO_T}newly built nm" >&6
13581 in_tree_nm=yes
13582 else
13583 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13584 echo "${ECHO_T}$gcc_cv_nm" >&6
13585 in_tree_nm=no
13586 fi
13587
13588 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13589
13590 case "$ORIGINAL_NM_FOR_TARGET" in
13591 ./nm | ./nm$build_exeext) ;;
13592 *) ac_config_files="$ac_config_files nm:exec-tool.in"
13593 ;;
13594 esac
13595
13596
13597 # Figure out what objdump we will be using.
13598 if test "${gcc_cv_objdump+set}" = set; then
13599 :
13600 else
13601
13602 if test -f $gcc_cv_binutils_srcdir/configure.in \
13603 && test -f ../binutils/Makefile \
13604 && test x$build = x$host; then
13605 # Single tree build which includes binutils.
13606 gcc_cv_objdump=../binutils/objdump$build_exeext
13607 elif test -x objdump$build_exeext; then
13608 gcc_cv_objdump=./objdump$build_exeext
13609 elif test -x $OBJDUMP_FOR_TARGET; then
13610 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13611 else
13612 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13613 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13614 echo "$as_me:$LINENO: checking for $ac_word" >&5
13615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13616 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 case $gcc_cv_objdump in
13620 [\\/]* | ?:[\\/]*)
13621 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13622 ;;
13623 *)
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13626 do
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13634 fi
13635 done
13636 done
13637
13638 ;;
13639 esac
13640 fi
13641 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13642
13643 if test -n "$gcc_cv_objdump"; then
13644 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13645 echo "${ECHO_T}$gcc_cv_objdump" >&6
13646 else
13647 echo "$as_me:$LINENO: result: no" >&5
13648 echo "${ECHO_T}no" >&6
13649 fi
13650
13651 fi
13652 fi
13653
13654
13655 echo "$as_me:$LINENO: checking what objdump to use" >&5
13656 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13657 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13658 # Single tree build which includes binutils.
13659 echo "$as_me:$LINENO: result: newly built objdump" >&5
13660 echo "${ECHO_T}newly built objdump" >&6
13661 elif test x$gcc_cv_objdump = x; then
13662 echo "$as_me:$LINENO: result: not found" >&5
13663 echo "${ECHO_T}not found" >&6
13664 else
13665 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13666 echo "${ECHO_T}$gcc_cv_objdump" >&6
13667 fi
13668
13669 # Figure out what assembler alignment features are present.
13670 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13671 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13672 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 gcc_cv_as_balign_and_p2align=no
13676 if test $in_tree_gas = yes; then
13677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13678 then gcc_cv_as_balign_and_p2align=yes
13679 fi
13680 elif test x$gcc_cv_as != x; then
13681 echo '.balign 4
13682 .p2align 2' > conftest.s
13683 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }
13689 then
13690 gcc_cv_as_balign_and_p2align=yes
13691 else
13692 echo "configure: failed program was" >&5
13693 cat conftest.s >&5
13694 fi
13695 rm -f conftest.o conftest.s
13696 fi
13697 fi
13698 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13699 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13700 if test $gcc_cv_as_balign_and_p2align = yes; then
13701
13702 cat >>confdefs.h <<\_ACEOF
13703 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13704 _ACEOF
13705
13706 fi
13707
13708 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13709 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13710 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 gcc_cv_as_max_skip_p2align=no
13714 if test $in_tree_gas = yes; then
13715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13716 then gcc_cv_as_max_skip_p2align=yes
13717 fi
13718 elif test x$gcc_cv_as != x; then
13719 echo '.p2align 4,,7' > conftest.s
13720 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }
13726 then
13727 gcc_cv_as_max_skip_p2align=yes
13728 else
13729 echo "configure: failed program was" >&5
13730 cat conftest.s >&5
13731 fi
13732 rm -f conftest.o conftest.s
13733 fi
13734 fi
13735 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13736 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13737 if test $gcc_cv_as_max_skip_p2align = yes; then
13738
13739 cat >>confdefs.h <<\_ACEOF
13740 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13741 _ACEOF
13742
13743 fi
13744
13745 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13746 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13747 if test "${gcc_cv_as_literal16+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750 gcc_cv_as_literal16=no
13751 if test $in_tree_gas = yes; then
13752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13753 then gcc_cv_as_literal16=yes
13754 fi
13755 elif test x$gcc_cv_as != x; then
13756 echo '.literal16' > conftest.s
13757 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }
13763 then
13764 gcc_cv_as_literal16=yes
13765 else
13766 echo "configure: failed program was" >&5
13767 cat conftest.s >&5
13768 fi
13769 rm -f conftest.o conftest.s
13770 fi
13771 fi
13772 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13773 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13774 if test $gcc_cv_as_literal16 = yes; then
13775
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE_GAS_LITERAL16 1
13778 _ACEOF
13779
13780 fi
13781
13782 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13783 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13784 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 gcc_cv_as_subsection_m1=no
13788 if test $in_tree_gas = yes; then
13789 if test $in_tree_gas_is_elf = yes \
13790 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13791 then gcc_cv_as_subsection_m1=yes
13792 fi
13793 elif test x$gcc_cv_as != x; then
13794 echo 'conftest_label1: .word 0
13795 .subsection -1
13796 conftest_label2: .word 0
13797 .previous' > conftest.s
13798 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }
13804 then
13805 if test x$gcc_cv_nm != x; then
13806 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13807 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13808 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13809 then :
13810 else gcc_cv_as_subsection_m1=yes
13811 fi
13812 rm -f conftest.nm1 conftest.nm2
13813 fi
13814 else
13815 echo "configure: failed program was" >&5
13816 cat conftest.s >&5
13817 fi
13818 rm -f conftest.o conftest.s
13819 fi
13820 fi
13821 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13822 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13823 if test $gcc_cv_as_subsection_m1 = yes; then
13824
13825 cat >>confdefs.h <<\_ACEOF
13826 #define HAVE_GAS_SUBSECTION_ORDERING 1
13827 _ACEOF
13828
13829 fi
13830
13831 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13832 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13833 if test "${gcc_cv_as_weak+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 else
13836 gcc_cv_as_weak=no
13837 if test $in_tree_gas = yes; then
13838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13839 then gcc_cv_as_weak=yes
13840 fi
13841 elif test x$gcc_cv_as != x; then
13842 echo ' .weak foobar' > conftest.s
13843 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }
13849 then
13850 gcc_cv_as_weak=yes
13851 else
13852 echo "configure: failed program was" >&5
13853 cat conftest.s >&5
13854 fi
13855 rm -f conftest.o conftest.s
13856 fi
13857 fi
13858 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13859 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13860 if test $gcc_cv_as_weak = yes; then
13861
13862 cat >>confdefs.h <<\_ACEOF
13863 #define HAVE_GAS_WEAK 1
13864 _ACEOF
13865
13866 fi
13867
13868 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13869 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13870 if test "${gcc_cv_as_weakref+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 gcc_cv_as_weakref=no
13874 if test $in_tree_gas = yes; then
13875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13876 then gcc_cv_as_weakref=yes
13877 fi
13878 elif test x$gcc_cv_as != x; then
13879 echo ' .weakref foobar, barfnot' > conftest.s
13880 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13883 ac_status=$?
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }
13886 then
13887 gcc_cv_as_weakref=yes
13888 else
13889 echo "configure: failed program was" >&5
13890 cat conftest.s >&5
13891 fi
13892 rm -f conftest.o conftest.s
13893 fi
13894 fi
13895 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13896 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13897 if test $gcc_cv_as_weakref = yes; then
13898
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_GAS_WEAKREF 1
13901 _ACEOF
13902
13903 fi
13904
13905 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13906 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13907 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910 gcc_cv_as_nsubspa_comdat=no
13911 if test $in_tree_gas = yes; then
13912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13913 then gcc_cv_as_nsubspa_comdat=yes
13914 fi
13915 elif test x$gcc_cv_as != x; then
13916 echo ' .SPACE $TEXT$
13917 .NSUBSPA $CODE$,COMDAT' > conftest.s
13918 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }
13924 then
13925 gcc_cv_as_nsubspa_comdat=yes
13926 else
13927 echo "configure: failed program was" >&5
13928 cat conftest.s >&5
13929 fi
13930 rm -f conftest.o conftest.s
13931 fi
13932 fi
13933 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13934 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13935 if test $gcc_cv_as_nsubspa_comdat = yes; then
13936
13937 cat >>confdefs.h <<\_ACEOF
13938 #define HAVE_GAS_NSUBSPA_COMDAT 1
13939 _ACEOF
13940
13941 fi
13942
13943 # .hidden needs to be supported in both the assembler and the linker,
13944 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13945 # This is irritatingly difficult to feature test for; we have to check the
13946 # date string after the version number. If we've got an in-tree
13947 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13948 # to be safe.
13949 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13950 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13951 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13952 if test "${gcc_cv_as_hidden+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955 gcc_cv_as_hidden=no
13956 if test $in_tree_gas = yes; then
13957 if test $in_tree_gas_is_elf = yes \
13958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13959 then gcc_cv_as_hidden=yes
13960 fi
13961 elif test x$gcc_cv_as != x; then
13962 echo ' .hidden foobar
13963 foobar:' > conftest.s
13964 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }
13970 then
13971 gcc_cv_as_hidden=yes
13972 else
13973 echo "configure: failed program was" >&5
13974 cat conftest.s >&5
13975 fi
13976 rm -f conftest.o conftest.s
13977 fi
13978 fi
13979 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13980 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13981
13982
13983 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13984 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13985 if test "${gcc_cv_ld_hidden+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988 if test $in_tree_ld = yes ; then
13989 gcc_cv_ld_hidden=no
13990 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 \
13991 && test $in_tree_ld_is_elf = yes; then
13992 gcc_cv_ld_hidden=yes
13993 fi
13994 else
13995 gcc_cv_ld_hidden=yes
13996 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13997 if echo "$ld_ver" | grep GNU > /dev/null; then
13998 ld_vers=`echo $ld_ver | sed -n \
13999 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14000 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14001 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14002 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14003 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14004 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
14005 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
14006 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'`
14007 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14008 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14009 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14010 if test 0"$ld_date" -lt 20020404; then
14011 if test -n "$ld_date"; then
14012 # If there was date string, but was earlier than 2002-04-04, fail
14013 gcc_cv_ld_hidden=no
14014 elif test -z "$ld_vers"; then
14015 # If there was no date string nor ld version number, something is wrong
14016 gcc_cv_ld_hidden=no
14017 else
14018 test -z "$ld_vers_patch" && ld_vers_patch=0
14019 if test "$ld_vers_major" -lt 2; then
14020 gcc_cv_ld_hidden=no
14021 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14022 gcc_cv_ld_hidden="no"
14023 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14024 gcc_cv_ld_hidden=no
14025 fi
14026 fi
14027 fi
14028 else
14029 case "${target}" in
14030 hppa64*-*-hpux* | ia64*-*-hpux*)
14031 gcc_cv_ld_hidden=yes
14032 ;;
14033 *)
14034 gcc_cv_ld_hidden=no
14035 ;;
14036 esac
14037 fi
14038 fi
14039 fi
14040 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14041 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14042 libgcc_visibility=no
14043
14044
14045 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14046 libgcc_visibility=yes
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_GAS_HIDDEN 1
14050 _ACEOF
14051
14052 fi
14053
14054 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14055 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14056 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14057 if test "${gcc_cv_as_leb128+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 gcc_cv_as_leb128=no
14061 if test $in_tree_gas = yes; then
14062 if test $in_tree_gas_is_elf = yes \
14063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14064 then gcc_cv_as_leb128=yes
14065 fi
14066 elif test x$gcc_cv_as != x; then
14067 echo ' .data
14068 .uleb128 L2 - L1
14069 L1:
14070 .uleb128 1280
14071 .sleb128 -1010
14072 L2:' > conftest.s
14073 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }
14079 then
14080 # GAS versions before 2.11 do not support uleb128,
14081 # despite appearing to.
14082 # ??? There exists an elf-specific test that will crash
14083 # the assembler. Perhaps it's better to figure out whether
14084 # arbitrary sections are supported and try the test.
14085 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14086 if echo "$as_ver" | grep GNU > /dev/null; then
14087 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14088 as_major=`echo $as_ver | sed 's/\..*//'`
14089 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14090 if test $as_major -eq 2 && test $as_minor -lt 11
14091 then :
14092 else gcc_cv_as_leb128=yes
14093 fi
14094 fi
14095 else
14096 echo "configure: failed program was" >&5
14097 cat conftest.s >&5
14098 fi
14099 rm -f conftest.o conftest.s
14100 fi
14101 fi
14102 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14103 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14104 if test $gcc_cv_as_leb128 = yes; then
14105
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_AS_LEB128 1
14108 _ACEOF
14109
14110 fi
14111
14112 # GAS versions up to and including 2.11.0 may mis-optimize
14113 # .eh_frame data.
14114 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14115 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14116 if test "${gcc_cv_as_eh_frame+set}" = set; then
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119 gcc_cv_as_eh_frame=no
14120 if test $in_tree_gas = yes; then
14121 if test $in_tree_gas_is_elf = yes \
14122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14123 then gcc_cv_as_eh_frame=yes
14124 fi
14125 elif test x$gcc_cv_as != x; then
14126 echo ' .text
14127 .LFB1:
14128 .4byte 0
14129 .L1:
14130 .4byte 0
14131 .LFE1:
14132 .section .eh_frame,"aw",@progbits
14133 __FRAME_BEGIN__:
14134 .4byte .LECIE1-.LSCIE1
14135 .LSCIE1:
14136 .4byte 0x0
14137 .byte 0x1
14138 .ascii "z\0"
14139 .byte 0x1
14140 .byte 0x78
14141 .byte 0x1a
14142 .byte 0x0
14143 .byte 0x4
14144 .4byte 1
14145 .p2align 1
14146 .LECIE1:
14147 .LSFDE1:
14148 .4byte .LEFDE1-.LASFDE1
14149 .LASFDE1:
14150 .4byte .LASFDE1-__FRAME_BEGIN__
14151 .4byte .LFB1
14152 .4byte .LFE1-.LFB1
14153 .byte 0x4
14154 .4byte .LFE1-.LFB1
14155 .byte 0x4
14156 .4byte .L1-.LFB1
14157 .LEFDE1:' > conftest.s
14158 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }
14164 then
14165 cat > conftest.lit <<EOF
14166 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14167 0010 01000000 12000000 18000000 00000000 ................
14168 0020 08000000 04080000 0044 .........D
14169 EOF
14170 cat > conftest.big <<EOF
14171 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14172 0010 00000001 00000012 00000018 00000000 ................
14173 0020 00000008 04000000 0844 .........D
14174 EOF
14175 # If the assembler didn't choke, and we can objdump,
14176 # and we got the correct data, then succeed.
14177 # The text in the here-document typically retains its unix-style line
14178 # endings, while the output of objdump will use host line endings.
14179 # Therefore, use diff -b for the comparisons.
14180 if test x$gcc_cv_objdump != x \
14181 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14182 | tail -3 > conftest.got \
14183 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14184 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14185 then
14186 gcc_cv_as_eh_frame=yes
14187 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 gcc_cv_as_eh_frame=buggy
14194 else
14195 # Uh oh, what do we do now?
14196 gcc_cv_as_eh_frame=no
14197 fi
14198 else
14199 echo "configure: failed program was" >&5
14200 cat conftest.s >&5
14201 fi
14202 rm -f conftest.o conftest.s
14203 fi
14204 fi
14205 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14206 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14207
14208
14209 if test $gcc_cv_as_eh_frame = buggy; then
14210
14211 cat >>confdefs.h <<\_ACEOF
14212 #define USE_AS_TRADITIONAL_FORMAT 1
14213 _ACEOF
14214
14215 fi
14216
14217 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14218 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14219 if test "${gcc_cv_as_shf_merge+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222 gcc_cv_as_shf_merge=no
14223 if test $in_tree_gas = yes; then
14224 if test $in_tree_gas_is_elf = yes \
14225 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14226 then gcc_cv_as_shf_merge=yes
14227 fi
14228 elif test x$gcc_cv_as != x; then
14229 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14230 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }
14236 then
14237 gcc_cv_as_shf_merge=yes
14238 else
14239 echo "configure: failed program was" >&5
14240 cat conftest.s >&5
14241 fi
14242 rm -f conftest.o conftest.s
14243 fi
14244 fi
14245 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14246 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14247
14248 if test $gcc_cv_as_shf_merge = no; then
14249 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14250 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14251 if test "${gcc_cv_as_shf_merge+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 gcc_cv_as_shf_merge=no
14255 if test $in_tree_gas = yes; then
14256 if test $in_tree_gas_is_elf = yes \
14257 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14258 then gcc_cv_as_shf_merge=yes
14259 fi
14260 elif test x$gcc_cv_as != x; then
14261 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14262 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }
14268 then
14269 gcc_cv_as_shf_merge=yes
14270 else
14271 echo "configure: failed program was" >&5
14272 cat conftest.s >&5
14273 fi
14274 rm -f conftest.o conftest.s
14275 fi
14276 fi
14277 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14278 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14279
14280 fi
14281
14282 cat >>confdefs.h <<_ACEOF
14283 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14284 _ACEOF
14285
14286
14287 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14288 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14289 if test "${gcc_cv_as_comdat_group+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 gcc_cv_as_comdat_group=no
14293 if test $in_tree_gas = yes; then
14294 if test $in_tree_gas_is_elf = yes \
14295 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14296 then gcc_cv_as_comdat_group=yes
14297 fi
14298 elif test x$gcc_cv_as != x; then
14299 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14300 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }
14306 then
14307 gcc_cv_as_comdat_group=yes
14308 else
14309 echo "configure: failed program was" >&5
14310 cat conftest.s >&5
14311 fi
14312 rm -f conftest.o conftest.s
14313 fi
14314 fi
14315 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14316 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14317
14318 if test $gcc_cv_as_comdat_group = yes; then
14319 gcc_cv_as_comdat_group_percent=no
14320 else
14321 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14322 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14323 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326 gcc_cv_as_comdat_group_percent=no
14327 if test $in_tree_gas = yes; then
14328 if test $in_tree_gas_is_elf = yes \
14329 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14330 then gcc_cv_as_comdat_group_percent=yes
14331 fi
14332 elif test x$gcc_cv_as != x; then
14333 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14334 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }
14340 then
14341 gcc_cv_as_comdat_group_percent=yes
14342 else
14343 echo "configure: failed program was" >&5
14344 cat conftest.s >&5
14345 fi
14346 rm -f conftest.o conftest.s
14347 fi
14348 fi
14349 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14350 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14351
14352 fi
14353 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14354 comdat_group=yes
14355 if test 0"$ld_date" -lt 20050308; then
14356 if test -n "$ld_date"; then
14357 # If there was date string, but was earlier than 2005-03-08, fail
14358 comdat_group=no
14359 elif test "$ld_vers_major" -lt 2; then
14360 comdat_group=no
14361 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14362 comdat_group=no
14363 fi
14364 fi
14365 else
14366 # assume linkers other than GNU ld don't support COMDAT group
14367 comdat_group=no
14368 fi
14369 if test $comdat_group = no; then
14370 gcc_cv_as_comdat_group=no
14371 gcc_cv_as_comdat_group_percent=no
14372 fi
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #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`
14376 _ACEOF
14377
14378
14379 # Thread-local storage - the check is heavily parametrized.
14380 conftest_s=
14381 tls_first_major=
14382 tls_first_minor=
14383 tls_as_opt=
14384 case "$target" in
14385 alpha*-*-*)
14386 conftest_s='
14387 .section ".tdata","awT",@progbits
14388 foo: .long 25
14389 .text
14390 ldq $27,__tls_get_addr($29) !literal!1
14391 lda $16,foo($29) !tlsgd!1
14392 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14393 ldq $27,__tls_get_addr($29) !literal!2
14394 lda $16,foo($29) !tlsldm!2
14395 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14396 ldq $1,foo($29) !gotdtprel
14397 ldah $2,foo($29) !dtprelhi
14398 lda $3,foo($2) !dtprello
14399 lda $4,foo($29) !dtprel
14400 ldq $1,foo($29) !gottprel
14401 ldah $2,foo($29) !tprelhi
14402 lda $3,foo($2) !tprello
14403 lda $4,foo($29) !tprel'
14404 tls_first_major=2
14405 tls_first_minor=13
14406 tls_as_opt=--fatal-warnings
14407 ;;
14408 frv*-*-*)
14409 conftest_s='
14410 .section ".tdata","awT",@progbits
14411 x: .long 25
14412 .text
14413 call #gettlsoff(x)'
14414 tls_first_major=2
14415 tls_first_minor=14
14416 ;;
14417 hppa*-*-linux*)
14418 conftest_s='
14419 t1: .reg %r20
14420 t2: .reg %r21
14421 gp: .reg %r19
14422 .section ".tdata","awT",@progbits
14423 foo: .long 25
14424 .text
14425 .align 4
14426 addil LT%foo-$tls_gdidx$,gp
14427 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14428 b __tls_get_addr
14429 nop
14430 addil LT%foo-$tls_ldidx$,gp
14431 b __tls_get_addr
14432 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14433 addil LR%foo-$tls_dtpoff$,%ret0
14434 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14435 mfctl %cr27,%t1
14436 addil LT%foo-$tls_ieoff$,gp
14437 ldw RT%foo-$tls_ieoff$(%r1),%t2
14438 add %t1,%t2,%t3
14439 mfctl %cr27,%t1
14440 addil LR%foo-$tls_leoff$,%t1
14441 ldo RR%foo-$tls_leoff$(%r1),%t2'
14442 tls_first_major=2
14443 tls_first_minor=15
14444 tls_as_opt=--fatal-warnings
14445 ;;
14446 arm*-*-*)
14447 conftest_s='
14448 .section ".tdata","awT",%progbits
14449 foo: .long 25
14450 .text
14451 .word foo(gottpoff)
14452 .word foo(tpoff)
14453 .word foo(tlsgd)
14454 .word foo(tlsldm)
14455 .word foo(tlsldo)'
14456 tls_first_major=2
14457 tls_first_minor=17
14458 ;;
14459 i[34567]86-*-*)
14460 conftest_s='
14461 .section ".tdata","awT",@progbits
14462 foo: .long 25
14463 .text
14464 movl %gs:0, %eax
14465 leal foo@TLSGD(,%ebx,1), %eax
14466 leal foo@TLSLDM(%ebx), %eax
14467 leal foo@DTPOFF(%eax), %edx
14468 movl foo@GOTTPOFF(%ebx), %eax
14469 subl foo@GOTTPOFF(%ebx), %eax
14470 addl foo@GOTNTPOFF(%ebx), %eax
14471 movl foo@INDNTPOFF, %eax
14472 movl $foo@TPOFF, %eax
14473 subl $foo@TPOFF, %eax
14474 leal foo@NTPOFF(%ecx), %eax'
14475 tls_first_major=2
14476 tls_first_minor=14
14477 tls_as_opt=--fatal-warnings
14478 ;;
14479 x86_64-*-*)
14480 conftest_s='
14481 .section ".tdata","awT",@progbits
14482 foo: .long 25
14483 .text
14484 movq %fs:0, %rax
14485 leaq foo@TLSGD(%rip), %rdi
14486 leaq foo@TLSLD(%rip), %rdi
14487 leaq foo@DTPOFF(%rax), %rdx
14488 movq foo@GOTTPOFF(%rip), %rax
14489 movq $foo@TPOFF, %rax'
14490 tls_first_major=2
14491 tls_first_minor=14
14492 tls_as_opt=--fatal-warnings
14493 ;;
14494 ia64-*-*)
14495 conftest_s='
14496 .section ".tdata","awT",@progbits
14497 foo: data8 25
14498 .text
14499 addl r16 = @ltoff(@dtpmod(foo#)), gp
14500 addl r17 = @ltoff(@dtprel(foo#)), gp
14501 addl r18 = @ltoff(@tprel(foo#)), gp
14502 addl r19 = @dtprel(foo#), gp
14503 adds r21 = @dtprel(foo#), r13
14504 movl r23 = @dtprel(foo#)
14505 addl r20 = @tprel(foo#), gp
14506 adds r22 = @tprel(foo#), r13
14507 movl r24 = @tprel(foo#)'
14508 tls_first_major=2
14509 tls_first_minor=13
14510 tls_as_opt=--fatal-warnings
14511 ;;
14512 mips*-*-*)
14513 conftest_s='
14514 .section .tdata,"awT",@progbits
14515 x:
14516 .word 2
14517 .text
14518 addiu $4, $28, %tlsgd(x)
14519 addiu $4, $28, %tlsldm(x)
14520 lui $4, %dtprel_hi(x)
14521 addiu $4, $4, %dtprel_lo(x)
14522 lw $4, %gottprel(x)($28)
14523 lui $4, %tprel_hi(x)
14524 addiu $4, $4, %tprel_lo(x)'
14525 tls_first_major=2
14526 tls_first_minor=16
14527 tls_as_opt='-32 --fatal-warnings'
14528 ;;
14529 powerpc-*-*)
14530 conftest_s='
14531 .section ".tdata","awT",@progbits
14532 .align 2
14533 ld0: .space 4
14534 ld1: .space 4
14535 x1: .space 4
14536 x2: .space 4
14537 x3: .space 4
14538 .text
14539 addi 3,31,ld0@got@tlsgd
14540 bl __tls_get_addr
14541 addi 3,31,x1@got@tlsld
14542 bl __tls_get_addr
14543 addi 9,3,x1@dtprel
14544 addis 9,3,x2@dtprel@ha
14545 addi 9,9,x2@dtprel@l
14546 lwz 9,x3@got@tprel(31)
14547 add 9,9,x@tls
14548 addi 9,2,x1@tprel
14549 addis 9,2,x2@tprel@ha
14550 addi 9,9,x2@tprel@l'
14551 tls_first_major=2
14552 tls_first_minor=14
14553 tls_as_opt="-a32 --fatal-warnings"
14554 ;;
14555 powerpc64-*-*)
14556 conftest_s='
14557 .section ".tdata","awT",@progbits
14558 .align 3
14559 ld0: .space 8
14560 ld1: .space 8
14561 x1: .space 8
14562 x2: .space 8
14563 x3: .space 8
14564 .text
14565 addi 3,2,ld0@got@tlsgd
14566 bl .__tls_get_addr
14567 nop
14568 addi 3,2,ld1@toc
14569 bl .__tls_get_addr
14570 nop
14571 addi 3,2,x1@got@tlsld
14572 bl .__tls_get_addr
14573 nop
14574 addi 9,3,x1@dtprel
14575 bl .__tls_get_addr
14576 nop
14577 addis 9,3,x2@dtprel@ha
14578 addi 9,9,x2@dtprel@l
14579 bl .__tls_get_addr
14580 nop
14581 ld 9,x3@got@dtprel(2)
14582 add 9,9,3
14583 bl .__tls_get_addr
14584 nop'
14585 tls_first_major=2
14586 tls_first_minor=14
14587 tls_as_opt="-a64 --fatal-warnings"
14588 ;;
14589 s390-*-*)
14590 conftest_s='
14591 .section ".tdata","awT",@progbits
14592 foo: .long 25
14593 .text
14594 .long foo@TLSGD
14595 .long foo@TLSLDM
14596 .long foo@DTPOFF
14597 .long foo@NTPOFF
14598 .long foo@GOTNTPOFF
14599 .long foo@INDNTPOFF
14600 l %r1,foo@GOTNTPOFF(%r12)
14601 l %r1,0(%r1):tls_load:foo
14602 bas %r14,0(%r1,%r13):tls_gdcall:foo
14603 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14604 tls_first_major=2
14605 tls_first_minor=14
14606 tls_as_opt="-m31 --fatal-warnings"
14607 ;;
14608 s390x-*-*)
14609 conftest_s='
14610 .section ".tdata","awT",@progbits
14611 foo: .long 25
14612 .text
14613 .quad foo@TLSGD
14614 .quad foo@TLSLDM
14615 .quad foo@DTPOFF
14616 .quad foo@NTPOFF
14617 .quad foo@GOTNTPOFF
14618 lg %r1,foo@GOTNTPOFF(%r12)
14619 larl %r1,foo@INDNTPOFF
14620 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14621 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14622 tls_first_major=2
14623 tls_first_minor=14
14624 tls_as_opt="-m64 -Aesame --fatal-warnings"
14625 ;;
14626 sh-*-* | sh[34]-*-*)
14627 conftest_s='
14628 .section ".tdata","awT",@progbits
14629 foo: .long 25
14630 .text
14631 .long foo@TLSGD
14632 .long foo@TLSLDM
14633 .long foo@DTPOFF
14634 .long foo@GOTTPOFF
14635 .long foo@TPOFF'
14636 tls_first_major=2
14637 tls_first_minor=13
14638 tls_as_opt=--fatal-warnings
14639 ;;
14640 sparc*-*-*)
14641 case "$target" in
14642 sparc*-sun-solaris2.[56789]*)
14643 # TLS was introduced in the Solaris 9 4/04 release but
14644 # we do not enable it by default on Solaris 9 either.
14645 if test "x$enable_tls" = xyes ; then
14646 on_solaris=yes
14647 else
14648 enable_tls=no;
14649 fi
14650 ;;
14651 sparc*-sun-solaris2.*)
14652 on_solaris=yes
14653 ;;
14654 *)
14655 on_solaris=no
14656 ;;
14657 esac
14658 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14659 conftest_s='
14660 .section ".tdata",#alloc,#write,#tls
14661 foo: .long 25
14662 .text
14663 sethi %tgd_hi22(foo), %o0
14664 add %o0, %tgd_lo10(foo), %o1
14665 add %l7, %o1, %o0, %tgd_add(foo)
14666 call __tls_get_addr, %tgd_call(foo)
14667 sethi %tldm_hi22(foo), %l1
14668 add %l1, %tldm_lo10(foo), %l2
14669 add %l7, %l2, %o0, %tldm_add(foo)
14670 call __tls_get_addr, %tldm_call(foo)
14671 sethi %tldo_hix22(foo), %l3
14672 xor %l3, %tldo_lox10(foo), %l4
14673 add %o0, %l4, %l5, %tldo_add(foo)
14674 sethi %tie_hi22(foo), %o3
14675 add %o3, %tie_lo10(foo), %o3
14676 ld [%l7 + %o3], %o2, %tie_ld(foo)
14677 add %g7, %o2, %o4, %tie_add(foo)
14678 sethi %tle_hix22(foo), %l1
14679 xor %l1, %tle_lox10(foo), %o5
14680 ld [%g7 + %o5], %o1'
14681 tls_first_major=0
14682 tls_first_minor=0
14683 else
14684 conftest_s='
14685 .section ".tdata","awT",@progbits
14686 foo: .long 25
14687 .text
14688 sethi %tgd_hi22(foo), %o0
14689 add %o0, %tgd_lo10(foo), %o1
14690 add %l7, %o1, %o0, %tgd_add(foo)
14691 call __tls_get_addr, %tgd_call(foo)
14692 sethi %tldm_hi22(foo), %l1
14693 add %l1, %tldm_lo10(foo), %l2
14694 add %l7, %l2, %o0, %tldm_add(foo)
14695 call __tls_get_addr, %tldm_call(foo)
14696 sethi %tldo_hix22(foo), %l3
14697 xor %l3, %tldo_lox10(foo), %l4
14698 add %o0, %l4, %l5, %tldo_add(foo)
14699 sethi %tie_hi22(foo), %o3
14700 add %o3, %tie_lo10(foo), %o3
14701 ld [%l7 + %o3], %o2, %tie_ld(foo)
14702 add %g7, %o2, %o4, %tie_add(foo)
14703 sethi %tle_hix22(foo), %l1
14704 xor %l1, %tle_lox10(foo), %o5
14705 ld [%g7 + %o5], %o1'
14706 tls_first_major=2
14707 tls_first_minor=14
14708 tls_as_opt="-32 --fatal-warnings"
14709 fi
14710 ;;
14711 esac
14712 set_have_as_tls=no
14713 if test "x$enable_tls" = xno ; then
14714 : # TLS explicitly disabled.
14715 elif test "x$enable_tls" = xyes ; then
14716 set_have_as_tls=yes # TLS explicitly enabled.
14717 elif test -z "$tls_first_major"; then
14718 : # If we don't have a check, assume no support.
14719 else
14720 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14721 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14722 if test "${gcc_cv_as_tls+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725 gcc_cv_as_tls=no
14726 if test $in_tree_gas = yes; then
14727 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14728 then gcc_cv_as_tls=yes
14729 fi
14730 elif test x$gcc_cv_as != x; then
14731 echo "$conftest_s" > conftest.s
14732 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }
14738 then
14739 gcc_cv_as_tls=yes
14740 else
14741 echo "configure: failed program was" >&5
14742 cat conftest.s >&5
14743 fi
14744 rm -f conftest.o conftest.s
14745 fi
14746 fi
14747 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14748 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14749 if test $gcc_cv_as_tls = yes; then
14750 set_have_as_tls=yes
14751 fi
14752 fi
14753 if test $set_have_as_tls = yes ; then
14754
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_AS_TLS 1
14757 _ACEOF
14758
14759 fi
14760
14761 # Target-specific assembler checks.
14762
14763 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14764 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14765 gcc_cv_ld_static_dynamic=no
14766 if test $in_tree_ld = yes ; then
14767 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14768 gcc_cv_ld_static_dynamic=yes
14769 fi
14770 elif test x$gcc_cv_ld != x; then
14771 # Check if linker supports -Bstatic/-Bdynamic option
14772 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14773 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14774 gcc_cv_ld_static_dynamic=yes
14775 fi
14776 fi
14777 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14778
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_LD_STATIC_DYNAMIC 1
14781 _ACEOF
14782
14783 fi
14784 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14785 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14786
14787 if test x"$demangler_in_ld" = xyes; then
14788 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14789 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14790 gcc_cv_ld_demangle=no
14791 if test $in_tree_ld = yes; then
14792 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 \
14793 gcc_cv_ld_demangle=yes
14794 fi
14795 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14796 # Check if the GNU linker supports --demangle option
14797 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14798 gcc_cv_ld_demangle=yes
14799 fi
14800 fi
14801 if test x"$gcc_cv_ld_demangle" = xyes; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_LD_DEMANGLE 1
14805 _ACEOF
14806
14807 fi
14808 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14809 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14810 fi
14811
14812 case "$target" in
14813 # All TARGET_ABI_OSF targets.
14814 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14815 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14816 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14817 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820 gcc_cv_as_alpha_explicit_relocs=no
14821 if test $in_tree_gas = yes; then
14822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14823 then gcc_cv_as_alpha_explicit_relocs=yes
14824 fi
14825 elif test x$gcc_cv_as != x; then
14826 echo ' .set nomacro
14827 .text
14828 extbl $3, $2, $3 !lituse_bytoff!1
14829 ldq $2, a($29) !literal!1
14830 ldq $4, b($29) !literal!2
14831 ldq_u $3, 0($2) !lituse_base!1
14832 ldq $27, f($29) !literal!5
14833 jsr $26, ($27), f !lituse_jsr!5
14834 ldah $29, 0($26) !gpdisp!3
14835 lda $0, c($29) !gprel
14836 ldah $1, d($29) !gprelhigh
14837 lda $1, d($1) !gprellow
14838 lda $29, 0($29) !gpdisp!3' > conftest.s
14839 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }
14845 then
14846 gcc_cv_as_alpha_explicit_relocs=yes
14847 else
14848 echo "configure: failed program was" >&5
14849 cat conftest.s >&5
14850 fi
14851 rm -f conftest.o conftest.s
14852 fi
14853 fi
14854 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14855 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14856 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14857
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_AS_EXPLICIT_RELOCS 1
14860 _ACEOF
14861
14862 fi
14863 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14864 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14865 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868 gcc_cv_as_alpha_jsrdirect_relocs=no
14869 if test $in_tree_gas = yes; then
14870 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14871 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14872 fi
14873 elif test x$gcc_cv_as != x; then
14874 echo ' .set nomacro
14875 .text
14876 ldq $27, a($29) !literal!1
14877 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14878 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }
14884 then
14885 gcc_cv_as_alpha_jsrdirect_relocs=yes
14886 else
14887 echo "configure: failed program was" >&5
14888 cat conftest.s >&5
14889 fi
14890 rm -f conftest.o conftest.s
14891 fi
14892 fi
14893 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14894 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14895 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14896
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_AS_JSRDIRECT_RELOCS 1
14899 _ACEOF
14900
14901 fi
14902 ;;
14903
14904 cris-*-*)
14905 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14906 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14907 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910 gcc_cv_as_cris_no_mul_bug=no
14911 if test $in_tree_gas = yes; then
14912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14913 then gcc_cv_as_cris_no_mul_bug=yes
14914 fi
14915 elif test x$gcc_cv_as != x; then
14916 echo '.text' > conftest.s
14917 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }
14923 then
14924 gcc_cv_as_cris_no_mul_bug=yes
14925 else
14926 echo "configure: failed program was" >&5
14927 cat conftest.s >&5
14928 fi
14929 rm -f conftest.o conftest.s
14930 fi
14931 fi
14932 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14933 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14934 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14935
14936 cat >>confdefs.h <<\_ACEOF
14937 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14938 _ACEOF
14939
14940 fi
14941 ;;
14942
14943 sparc*-*-*)
14944 echo "$as_me:$LINENO: checking assembler for .register" >&5
14945 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14946 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949 gcc_cv_as_sparc_register_op=no
14950 if test x$gcc_cv_as != x; then
14951 echo '.register %g2, #scratch' > conftest.s
14952 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954 (eval $ac_try) 2>&5
14955 ac_status=$?
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); }; }
14958 then
14959 gcc_cv_as_sparc_register_op=yes
14960 else
14961 echo "configure: failed program was" >&5
14962 cat conftest.s >&5
14963 fi
14964 rm -f conftest.o conftest.s
14965 fi
14966 fi
14967 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14968 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14969 if test $gcc_cv_as_sparc_register_op = yes; then
14970
14971 cat >>confdefs.h <<\_ACEOF
14972 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14973 _ACEOF
14974
14975 fi
14976
14977 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14978 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14979 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982 gcc_cv_as_sparc_relax=no
14983 if test x$gcc_cv_as != x; then
14984 echo '.text' > conftest.s
14985 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }
14991 then
14992 gcc_cv_as_sparc_relax=yes
14993 else
14994 echo "configure: failed program was" >&5
14995 cat conftest.s >&5
14996 fi
14997 rm -f conftest.o conftest.s
14998 fi
14999 fi
15000 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15001 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15002 if test $gcc_cv_as_sparc_relax = yes; then
15003
15004 cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_AS_RELAX_OPTION 1
15006 _ACEOF
15007
15008 fi
15009
15010 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15011 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15012 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 else
15015 gcc_cv_as_sparc_ua_pcrel=no
15016 if test x$gcc_cv_as != x; then
15017 echo '.text
15018 foo:
15019 nop
15020 .data
15021 .align 4
15022 .byte 0
15023 .uaword %r_disp32(foo)' > conftest.s
15024 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }
15030 then
15031 if test x$gcc_cv_ld != x \
15032 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15033 gcc_cv_as_sparc_ua_pcrel=yes
15034 fi
15035 rm -f conftest
15036 else
15037 echo "configure: failed program was" >&5
15038 cat conftest.s >&5
15039 fi
15040 rm -f conftest.o conftest.s
15041 fi
15042 fi
15043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15044 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15045 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15046
15047 cat >>confdefs.h <<\_ACEOF
15048 #define HAVE_AS_SPARC_UA_PCREL 1
15049 _ACEOF
15050
15051
15052 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15053 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15054 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 gcc_cv_as_sparc_ua_pcrel_hidden=no
15058 if test x$gcc_cv_as != x; then
15059 echo '.data
15060 .align 4
15061 .byte 0x31
15062 .uaword %r_disp32(foo)
15063 .byte 0x32, 0x33, 0x34
15064 .global foo
15065 .hidden foo
15066 foo:
15067 .skip 4' > conftest.s
15068 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; }
15074 then
15075 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15076 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15077 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15078 | grep ' 31000000 07323334' > /dev/null 2>&1; then
15079 if $gcc_cv_objdump -R conftest 2> /dev/null \
15080 | grep 'DISP32' > /dev/null 2>&1; then
15081 :
15082 else
15083 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15084 fi
15085 fi
15086 rm -f conftest
15087 else
15088 echo "configure: failed program was" >&5
15089 cat conftest.s >&5
15090 fi
15091 rm -f conftest.o conftest.s
15092 fi
15093 fi
15094 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15095 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15096 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15097
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15100 _ACEOF
15101
15102 fi
15103
15104 fi # unaligned pcrel relocs
15105
15106 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15107 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15108 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 else
15111 gcc_cv_as_sparc_offsetable_lo10=no
15112 if test x$gcc_cv_as != x; then
15113 echo '.text
15114 or %g1, %lo(ab) + 12, %g1
15115 or %g1, %lo(ab + 12), %g1' > conftest.s
15116 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }
15122 then
15123 if test x$gcc_cv_objdump != x \
15124 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15125 | grep ' 82106000 82106000' > /dev/null 2>&1; then
15126 gcc_cv_as_sparc_offsetable_lo10=yes
15127 fi
15128 else
15129 echo "configure: failed program was" >&5
15130 cat conftest.s >&5
15131 fi
15132 rm -f conftest.o conftest.s
15133 fi
15134 fi
15135 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15136 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15137 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15138
15139 cat >>confdefs.h <<\_ACEOF
15140 #define HAVE_AS_OFFSETABLE_LO10 1
15141 _ACEOF
15142
15143 fi
15144 ;;
15145
15146 i[34567]86-*-* | x86_64-*-*)
15147 case $target_os in
15148 cygwin* | pe | mingw32*)
15149 # Used for DWARF 2 in PE
15150 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15151 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15152 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155 gcc_cv_as_ix86_pe_secrel32=no
15156 if test $in_tree_gas = yes; then
15157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15158 then gcc_cv_as_ix86_pe_secrel32=yes
15159 fi
15160 elif test x$gcc_cv_as != x; then
15161 echo '.text
15162 foo: nop
15163 .data
15164 .secrel32 foo' > conftest.s
15165 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }
15171 then
15172 if test x$gcc_cv_ld != x \
15173 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15174 gcc_cv_as_ix86_pe_secrel32=yes
15175 fi
15176 rm -f conftest
15177 else
15178 echo "configure: failed program was" >&5
15179 cat conftest.s >&5
15180 fi
15181 rm -f conftest.o conftest.s
15182 fi
15183 fi
15184 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15185 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15186 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15187
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_GAS_PE_SECREL32_RELOC 1
15190 _ACEOF
15191
15192 fi
15193 ;;
15194 esac
15195
15196 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15197 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15198 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201 gcc_cv_as_ix86_filds_fists=no
15202 if test $in_tree_gas = yes; then
15203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15204 then gcc_cv_as_ix86_filds_fists=yes
15205 fi
15206 elif test x$gcc_cv_as != x; then
15207 echo 'filds mem; fists mem' > conftest.s
15208 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }
15214 then
15215 gcc_cv_as_ix86_filds_fists=yes
15216 else
15217 echo "configure: failed program was" >&5
15218 cat conftest.s >&5
15219 fi
15220 rm -f conftest.o conftest.s
15221 fi
15222 fi
15223 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15224 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15225 if test $gcc_cv_as_ix86_filds_fists = yes; then
15226
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_GAS_FILDS_FISTS 1
15229 _ACEOF
15230
15231 fi
15232
15233 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15234 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15235 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238 gcc_cv_as_ix86_cmov_sun_syntax=no
15239 if test x$gcc_cv_as != x; then
15240 echo 'cmovl.l %edx, %eax' > conftest.s
15241 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }
15247 then
15248 gcc_cv_as_ix86_cmov_sun_syntax=yes
15249 else
15250 echo "configure: failed program was" >&5
15251 cat conftest.s >&5
15252 fi
15253 rm -f conftest.o conftest.s
15254 fi
15255 fi
15256 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15257 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15258 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15259
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15262 _ACEOF
15263
15264 fi
15265
15266 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15267 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15268 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271 gcc_cv_as_ix86_ffreep=no
15272 if test x$gcc_cv_as != x; then
15273 echo 'ffreep %st(1)' > conftest.s
15274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }
15280 then
15281 gcc_cv_as_ix86_ffreep=yes
15282 else
15283 echo "configure: failed program was" >&5
15284 cat conftest.s >&5
15285 fi
15286 rm -f conftest.o conftest.s
15287 fi
15288 fi
15289 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15290 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15291 if test $gcc_cv_as_ix86_ffreep = yes; then
15292
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_AS_IX86_FFREEP 1
15295 _ACEOF
15296
15297 fi
15298
15299 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15300 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15301 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 else
15304 gcc_cv_as_ix86_sahf=no
15305 if test x$gcc_cv_as != x; then
15306 echo 'sahf' > conftest.s
15307 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }
15313 then
15314 gcc_cv_as_ix86_sahf=yes
15315 else
15316 echo "configure: failed program was" >&5
15317 cat conftest.s >&5
15318 fi
15319 rm -f conftest.o conftest.s
15320 fi
15321 fi
15322 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15323 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15324 if test $gcc_cv_as_ix86_sahf = yes; then
15325
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_AS_IX86_SAHF 1
15328 _ACEOF
15329
15330 fi
15331
15332 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15333 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15334 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337 gcc_cv_as_ix86_diff_sect_delta=no
15338 if test x$gcc_cv_as != x; then
15339 echo '.section .rodata
15340 .L1:
15341 .long .L2-.L1
15342 .long .L3-.L1
15343 .text
15344 .L3: nop
15345 .L2: nop' > conftest.s
15346 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }
15352 then
15353 gcc_cv_as_ix86_diff_sect_delta=yes
15354 else
15355 echo "configure: failed program was" >&5
15356 cat conftest.s >&5
15357 fi
15358 rm -f conftest.o conftest.s
15359 fi
15360 fi
15361 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15362 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15363 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15364
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15367 _ACEOF
15368
15369 fi
15370
15371 # This one is used unconditionally by i386.[ch]; it is to be defined
15372 # to 1 if the feature is present, 0 otherwise.
15373 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15374 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15375 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378 gcc_cv_as_ix86_gotoff_in_data=no
15379 if test $in_tree_gas = yes; then
15380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15381 then gcc_cv_as_ix86_gotoff_in_data=yes
15382 fi
15383 elif test x$gcc_cv_as != x; then
15384 echo ' .text
15385 .L0:
15386 nop
15387 .data
15388 .long .L0@GOTOFF' > conftest.s
15389 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15392 ac_status=$?
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }
15395 then
15396 gcc_cv_as_ix86_gotoff_in_data=yes
15397 else
15398 echo "configure: failed program was" >&5
15399 cat conftest.s >&5
15400 fi
15401 rm -f conftest.o conftest.s
15402 fi
15403 fi
15404 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15405 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15406
15407
15408 cat >>confdefs.h <<_ACEOF
15409 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15410 _ACEOF
15411
15412 ;;
15413
15414 ia64*-*-*)
15415 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15416 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15417 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15421 if test $in_tree_gas = yes; then
15422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15423 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15424 fi
15425 elif test x$gcc_cv_as != x; then
15426 echo ' .text
15427 addl r15 = @ltoffx(x#), gp
15428 ;;
15429 ld8.mov r16 = [r15], x#' > conftest.s
15430 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }
15436 then
15437 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15438 else
15439 echo "configure: failed program was" >&5
15440 cat conftest.s >&5
15441 fi
15442 rm -f conftest.o conftest.s
15443 fi
15444 fi
15445 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15446 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15447 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15448
15449 cat >>confdefs.h <<\_ACEOF
15450 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15451 _ACEOF
15452
15453 fi
15454
15455 ;;
15456
15457 powerpc*-*-*)
15458 case $target in
15459 *-*-aix*) conftest_s=' .machine "pwr5"
15460 .csect .text[PR]
15461 mfcr 3,128';;
15462 *-*-darwin*)
15463 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15464 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15465 if test "${gcc_cv_as_machine_directive+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 gcc_cv_as_machine_directive=no
15469 if test x$gcc_cv_as != x; then
15470 echo ' .machine ppc7400' > conftest.s
15471 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }
15477 then
15478 gcc_cv_as_machine_directive=yes
15479 else
15480 echo "configure: failed program was" >&5
15481 cat conftest.s >&5
15482 fi
15483 rm -f conftest.o conftest.s
15484 fi
15485 fi
15486 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15487 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15488
15489 if test x$gcc_cv_as_machine_directive != xyes; then
15490 echo "*** This target requires an assembler supporting \".machine\"" >&2
15491 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15492 test x$build = x$target && exit 1
15493 fi
15494 conftest_s=' .text
15495 mfcr r3,128';;
15496 *) conftest_s=' .machine power4
15497 .text
15498 mfcr 3,128';;
15499 esac
15500
15501 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15502 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15503 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506 gcc_cv_as_powerpc_mfcrf=no
15507 if test $in_tree_gas = yes; then
15508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15509 then gcc_cv_as_powerpc_mfcrf=yes
15510 fi
15511 elif test x$gcc_cv_as != x; then
15512 echo "$conftest_s" > conftest.s
15513 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; }
15519 then
15520 gcc_cv_as_powerpc_mfcrf=yes
15521 else
15522 echo "configure: failed program was" >&5
15523 cat conftest.s >&5
15524 fi
15525 rm -f conftest.o conftest.s
15526 fi
15527 fi
15528 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15529 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15530 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15531
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_AS_MFCRF 1
15534 _ACEOF
15535
15536 fi
15537
15538 case $target in
15539 *-*-aix*) conftest_s=' .machine "pwr5"
15540 .csect .text[PR]
15541 popcntb 3,3';;
15542 *) conftest_s=' .machine power5
15543 .text
15544 popcntb 3,3';;
15545 esac
15546
15547 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15548 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15549 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552 gcc_cv_as_powerpc_popcntb=no
15553 if test $in_tree_gas = yes; then
15554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15555 then gcc_cv_as_powerpc_popcntb=yes
15556 fi
15557 elif test x$gcc_cv_as != x; then
15558 echo "$conftest_s" > conftest.s
15559 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }
15565 then
15566 gcc_cv_as_powerpc_popcntb=yes
15567 else
15568 echo "configure: failed program was" >&5
15569 cat conftest.s >&5
15570 fi
15571 rm -f conftest.o conftest.s
15572 fi
15573 fi
15574 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15575 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15576 if test $gcc_cv_as_powerpc_popcntb = yes; then
15577
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_AS_POPCNTB 1
15580 _ACEOF
15581
15582 fi
15583
15584 case $target in
15585 *-*-aix*) conftest_s=' .machine "pwr5x"
15586 .csect .text[PR]
15587 frin 1,1';;
15588 *) conftest_s=' .machine power5
15589 .text
15590 frin 1,1';;
15591 esac
15592
15593 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15594 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15595 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598 gcc_cv_as_powerpc_fprnd=no
15599 if test $in_tree_gas = yes; then
15600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15601 then gcc_cv_as_powerpc_fprnd=yes
15602 fi
15603 elif test x$gcc_cv_as != x; then
15604 echo "$conftest_s" > conftest.s
15605 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }
15611 then
15612 gcc_cv_as_powerpc_fprnd=yes
15613 else
15614 echo "configure: failed program was" >&5
15615 cat conftest.s >&5
15616 fi
15617 rm -f conftest.o conftest.s
15618 fi
15619 fi
15620 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15621 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15622 if test $gcc_cv_as_powerpc_fprnd = yes; then
15623
15624 cat >>confdefs.h <<\_ACEOF
15625 #define HAVE_AS_FPRND 1
15626 _ACEOF
15627
15628 fi
15629
15630 case $target in
15631 *-*-aix*) conftest_s=' .machine "pwr6"
15632 .csect .text[PR]
15633 mffgpr 1,3';;
15634 *) conftest_s=' .machine power6
15635 .text
15636 mffgpr 1,3';;
15637 esac
15638
15639 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15640 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15641 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644 gcc_cv_as_powerpc_mfpgpr=no
15645 if test $in_tree_gas = yes; then
15646 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15647 then gcc_cv_as_powerpc_mfpgpr=yes
15648 fi
15649 elif test x$gcc_cv_as != x; then
15650 echo "$conftest_s" > conftest.s
15651 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }
15657 then
15658 gcc_cv_as_powerpc_mfpgpr=yes
15659 else
15660 echo "configure: failed program was" >&5
15661 cat conftest.s >&5
15662 fi
15663 rm -f conftest.o conftest.s
15664 fi
15665 fi
15666 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15667 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15668 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15669
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE_AS_MFPGPR 1
15672 _ACEOF
15673
15674 fi
15675
15676 case $target in
15677 *-*-aix*) conftest_s=' .csect .text[PR]
15678 LCF..0:
15679 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15680 *-*-darwin*)
15681 conftest_s=' .text
15682 LCF0:
15683 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15684 *) conftest_s=' .text
15685 .LCF0:
15686 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15687 esac
15688
15689 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15690 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15691 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694 gcc_cv_as_powerpc_rel16=no
15695 if test $in_tree_gas = yes; then
15696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15697 then gcc_cv_as_powerpc_rel16=yes
15698 fi
15699 elif test x$gcc_cv_as != x; then
15700 echo "$conftest_s" > conftest.s
15701 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }
15707 then
15708 gcc_cv_as_powerpc_rel16=yes
15709 else
15710 echo "configure: failed program was" >&5
15711 cat conftest.s >&5
15712 fi
15713 rm -f conftest.o conftest.s
15714 fi
15715 fi
15716 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15717 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15718 if test $gcc_cv_as_powerpc_rel16 = yes; then
15719
15720 cat >>confdefs.h <<\_ACEOF
15721 #define HAVE_AS_REL16 1
15722 _ACEOF
15723
15724 fi
15725
15726 case $target in
15727 *-*-aix*) conftest_s=' .machine "pwr6"
15728 .csect .text[PR]
15729 cmpb 3,4,5';;
15730 *) conftest_s=' .machine power6
15731 .text
15732 cmpb 3,4,5';;
15733 esac
15734
15735 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15736 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15737 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 gcc_cv_as_powerpc_cmpb=no
15741 if test $in_tree_gas = yes; then
15742 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15743 then gcc_cv_as_powerpc_cmpb=yes
15744 fi
15745 elif test x$gcc_cv_as != x; then
15746 echo "$conftest_s" > conftest.s
15747 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }
15753 then
15754 gcc_cv_as_powerpc_cmpb=yes
15755 else
15756 echo "configure: failed program was" >&5
15757 cat conftest.s >&5
15758 fi
15759 rm -f conftest.o conftest.s
15760 fi
15761 fi
15762 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15763 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15764 if test $gcc_cv_as_powerpc_cmpb = yes; then
15765
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_AS_CMPB 1
15768 _ACEOF
15769
15770 fi
15771
15772 case $target in
15773 *-*-aix*) conftest_s=' .machine "pwr6"
15774 .csect .text[PR]
15775 dadd 1,2,3';;
15776 *) conftest_s=' .machine power6
15777 .text
15778 dadd 1,2,3';;
15779 esac
15780
15781 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15782 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15783 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786 gcc_cv_as_powerpc_dfp=no
15787 if test $in_tree_gas = yes; then
15788 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15789 then gcc_cv_as_powerpc_dfp=yes
15790 fi
15791 elif test x$gcc_cv_as != x; then
15792 echo "$conftest_s" > conftest.s
15793 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }
15799 then
15800 gcc_cv_as_powerpc_dfp=yes
15801 else
15802 echo "configure: failed program was" >&5
15803 cat conftest.s >&5
15804 fi
15805 rm -f conftest.o conftest.s
15806 fi
15807 fi
15808 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15809 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15810 if test $gcc_cv_as_powerpc_dfp = yes; then
15811
15812 cat >>confdefs.h <<\_ACEOF
15813 #define HAVE_AS_DFP 1
15814 _ACEOF
15815
15816 fi
15817 ;;
15818
15819 mips*-*-*)
15820 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15821 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15822 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 else
15825 gcc_cv_as_mips_explicit_relocs=no
15826 if test $in_tree_gas = yes; then
15827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15828 then gcc_cv_as_mips_explicit_relocs=yes
15829 fi
15830 elif test x$gcc_cv_as != x; then
15831 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15832 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }
15838 then
15839 gcc_cv_as_mips_explicit_relocs=yes
15840 else
15841 echo "configure: failed program was" >&5
15842 cat conftest.s >&5
15843 fi
15844 rm -f conftest.o conftest.s
15845 fi
15846 fi
15847 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15848 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15849 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15850 if test x$target_cpu_default = x
15851 then target_cpu_default=MASK_EXPLICIT_RELOCS
15852 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15853 fi
15854 fi
15855 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15856 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15857 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 gcc_cv_as_mips_no_shared=no
15861 if test $in_tree_gas = yes; then
15862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15863 then gcc_cv_as_mips_no_shared=yes
15864 fi
15865 elif test x$gcc_cv_as != x; then
15866 echo 'nop' > conftest.s
15867 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }
15873 then
15874 gcc_cv_as_mips_no_shared=yes
15875 else
15876 echo "configure: failed program was" >&5
15877 cat conftest.s >&5
15878 fi
15879 rm -f conftest.o conftest.s
15880 fi
15881 fi
15882 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15883 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15884 if test $gcc_cv_as_mips_no_shared = yes; then
15885
15886 cat >>confdefs.h <<\_ACEOF
15887 #define HAVE_AS_NO_SHARED 1
15888 _ACEOF
15889
15890 fi
15891 ;;
15892 esac
15893
15894 # Mips and HP-UX need the GNU assembler.
15895 # Linux on IA64 might be able to use the Intel assembler.
15896
15897 case "$target" in
15898 mips*-*-* | *-*-hpux* )
15899 if test x$gas_flag = xyes \
15900 || test x"$host" != x"$build" \
15901 || test ! -x "$gcc_cv_as" \
15902 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15903 :
15904 else
15905 echo "*** This configuration requires the GNU assembler" >&2
15906 exit 1
15907 fi
15908 ;;
15909 esac
15910
15911 # ??? Not all targets support dwarf2 debug_line, even within a version
15912 # of gas. Moreover, we need to emit a valid instruction to trigger any
15913 # info to the output file. So, as supported targets are added to gas 2.11,
15914 # add some instruction here to (also) show we expect this might work.
15915 # ??? Once 2.11 is released, probably need to add first known working
15916 # version to the per-target configury.
15917 case "$target" in
15918 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15919 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15920 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
15921 insn="nop"
15922 ;;
15923 ia64*-*-* | s390*-*-*)
15924 insn="nop 0"
15925 ;;
15926 mmix-*-*)
15927 insn="swym 0"
15928 ;;
15929 esac
15930 if test x"$insn" != x; then
15931 conftest_s="\
15932 .file 1 \"conftest.s\"
15933 .loc 1 3 0
15934 $insn"
15935 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15936 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15937 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940 gcc_cv_as_dwarf2_debug_line=no
15941 if test $in_tree_gas = yes; then
15942 if test $in_tree_gas_is_elf = yes \
15943 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15944 then gcc_cv_as_dwarf2_debug_line=yes
15945 fi
15946 elif test x$gcc_cv_as != x; then
15947 echo "$conftest_s" > conftest.s
15948 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }
15954 then
15955 if test x$gcc_cv_objdump != x \
15956 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15957 | grep debug_line > /dev/null 2>&1; then
15958 gcc_cv_as_dwarf2_debug_line=yes
15959 fi
15960 else
15961 echo "configure: failed program was" >&5
15962 cat conftest.s >&5
15963 fi
15964 rm -f conftest.o conftest.s
15965 fi
15966 fi
15967 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15968 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15969
15970
15971 # The .debug_line file table must be in the exact order that
15972 # we specified the files, since these indices are also used
15973 # by DW_AT_decl_file. Approximate this test by testing if
15974 # the assembler bitches if the same index is assigned twice.
15975 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15976 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15977 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 gcc_cv_as_dwarf2_file_buggy=no
15981 if test x$gcc_cv_as != x; then
15982 echo ' .file 1 "foo.s"
15983 .file 1 "bar.s"' > conftest.s
15984 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }
15990 then
15991 gcc_cv_as_dwarf2_file_buggy=yes
15992 else
15993 echo "configure: failed program was" >&5
15994 cat conftest.s >&5
15995 fi
15996 rm -f conftest.o conftest.s
15997 fi
15998 fi
15999 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16000 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16001
16002
16003 if test $gcc_cv_as_dwarf2_debug_line = yes \
16004 && test $gcc_cv_as_dwarf2_file_buggy = no; then
16005
16006 cat >>confdefs.h <<\_ACEOF
16007 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16008 _ACEOF
16009
16010 fi
16011
16012 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16013 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16014 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 else
16017 gcc_cv_as_gdwarf2_flag=no
16018 if test $in_tree_gas = yes; then
16019 if test $in_tree_gas_is_elf = yes \
16020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16021 then gcc_cv_as_gdwarf2_flag=yes
16022 fi
16023 elif test x$gcc_cv_as != x; then
16024 echo "$insn" > conftest.s
16025 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16028 ac_status=$?
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; }
16031 then
16032 gcc_cv_as_gdwarf2_flag=yes
16033 else
16034 echo "configure: failed program was" >&5
16035 cat conftest.s >&5
16036 fi
16037 rm -f conftest.o conftest.s
16038 fi
16039 fi
16040 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16041 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16042 if test $gcc_cv_as_gdwarf2_flag = yes; then
16043
16044 cat >>confdefs.h <<\_ACEOF
16045 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16046 _ACEOF
16047
16048 fi
16049
16050 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16051 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16052 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 else
16055 gcc_cv_as_gstabs_flag=no
16056 if test $in_tree_gas = yes; then
16057 if test $in_tree_gas_is_elf = yes \
16058 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16059 then gcc_cv_as_gstabs_flag=yes
16060 fi
16061 elif test x$gcc_cv_as != x; then
16062 echo "$insn" > conftest.s
16063 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16066 ac_status=$?
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }
16069 then
16070 # The native Solaris 9/Intel assembler doesn't understand --gstabs
16071 # and warns about it, but still exits successfully. So check for
16072 # this.
16073 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; }
16079 then :
16080 else gcc_cv_as_gstabs_flag=yes
16081 fi
16082 else
16083 echo "configure: failed program was" >&5
16084 cat conftest.s >&5
16085 fi
16086 rm -f conftest.o conftest.s
16087 fi
16088 fi
16089 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16090 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16091 if test $gcc_cv_as_gstabs_flag = yes; then
16092
16093 cat >>confdefs.h <<\_ACEOF
16094 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16095 _ACEOF
16096
16097 fi
16098 fi
16099
16100 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16101 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16102 if test "${gcc_cv_as_line_zero+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105 gcc_cv_as_line_zero=no
16106 if test $in_tree_gas = yes; then
16107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16108 then gcc_cv_as_line_zero=yes
16109 fi
16110 elif test "x$gcc_cv_as" != x; then
16111 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16112 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 test "x`cat conftest.out`" = x
16119 then
16120 gcc_cv_as_line_zero=yes
16121 else
16122 echo "configure: failed program was" >&5
16123 cat conftest.s >&5
16124 echo "configure: error output was" >&5
16125 cat conftest.out >&5
16126 fi
16127 rm -f conftest.o conftest.s conftest.out
16128 fi
16129 fi
16130 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16131 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16132 if test "x$gcc_cv_as_line_zero" = xyes; then
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE_AS_LINE_ZERO 1
16136 _ACEOF
16137
16138 fi
16139
16140 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16141 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16142 gcc_cv_ld_ro_rw_mix=unknown
16143 if test $in_tree_ld = yes ; then
16144 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 \
16145 && test $in_tree_ld_is_elf = yes; then
16146 gcc_cv_ld_ro_rw_mix=read-write
16147 fi
16148 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16149 echo '.section myfoosect, "a"' > conftest1.s
16150 echo '.section myfoosect, "aw"' > conftest2.s
16151 echo '.byte 1' >> conftest2.s
16152 echo '.section myfoosect, "a"' > conftest3.s
16153 echo '.byte 0' >> conftest3.s
16154 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16155 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16156 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16157 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16158 conftest2.o conftest3.o > /dev/null 2>&1; then
16159 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16160 | sed -e '/myfoosect/!d' -e N`
16161 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16162 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16163 gcc_cv_ld_ro_rw_mix=read-only
16164 else
16165 gcc_cv_ld_ro_rw_mix=read-write
16166 fi
16167 fi
16168 fi
16169 rm -f conftest.* conftest[123].*
16170 fi
16171 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16172
16173 cat >>confdefs.h <<\_ACEOF
16174 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16175 _ACEOF
16176
16177 fi
16178 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16179 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16180
16181 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16182 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16183 gcc_cv_ld_eh_frame_hdr=no
16184 if test $in_tree_ld = yes ; then
16185 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 \
16186 && test $in_tree_ld_is_elf = yes; then
16187 gcc_cv_ld_eh_frame_hdr=yes
16188 fi
16189 elif test x$gcc_cv_ld != x; then
16190 # Check if linker supports --eh-frame-hdr option
16191 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16192 gcc_cv_ld_eh_frame_hdr=yes
16193 fi
16194 fi
16195
16196 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16197
16198 cat >>confdefs.h <<\_ACEOF
16199 #define HAVE_LD_EH_FRAME_HDR 1
16200 _ACEOF
16201
16202 fi
16203 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16204 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16205
16206 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16207 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16208 gcc_cv_ld_pie=no
16209 if test $in_tree_ld = yes ; then
16210 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 \
16211 && test $in_tree_ld_is_elf = yes; then
16212 gcc_cv_ld_pie=yes
16213 fi
16214 elif test x$gcc_cv_ld != x; then
16215 # Check if linker supports -pie option
16216 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16217 gcc_cv_ld_pie=yes
16218 fi
16219 fi
16220 if test x"$gcc_cv_ld_pie" = xyes; then
16221
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_LD_PIE 1
16224 _ACEOF
16225
16226 fi
16227 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16228 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16229
16230 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16231 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16232 gcc_cv_ld_eh_gc_sections=no
16233 if test $in_tree_ld = yes ; then
16234 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16235 && test $in_tree_ld_is_elf = yes; then
16236 gcc_cv_ld_eh_gc_sections=yes
16237 fi
16238 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16239 cat > conftest.s <<EOF
16240 .section .text
16241 .globl _start
16242 .type _start, @function
16243 _start:
16244 .long foo
16245 .size _start, .-_start
16246 .section .text.foo,"ax",@progbits
16247 .type foo, @function
16248 foo:
16249 .long 0
16250 .size foo, .-foo
16251 .section .gcc_except_table.foo,"a",@progbits
16252 .L0:
16253 .long 0
16254 .section .eh_frame,"a",@progbits
16255 .long .L0
16256 EOF
16257 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16258 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16259 | grep "gc-sections option ignored" > /dev/null; then
16260 gcc_cv_ld_eh_gc_sections=no
16261 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16262 gcc_cv_ld_eh_gc_sections=yes
16263 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16264 if test x$gcc_cv_as_comdat_group != xyes; then
16265 gcc_cv_ld_eh_gc_sections=no
16266 cat > conftest.s <<EOF
16267 .section .text
16268 .globl _start
16269 .type _start, @function
16270 _start:
16271 .long foo
16272 .size _start, .-_start
16273 .section .gnu.linkonce.t.foo,"ax",@progbits
16274 .type foo, @function
16275 foo:
16276 .long 0
16277 .size foo, .-foo
16278 .section .gcc_except_table.foo,"a",@progbits
16279 .L0:
16280 .long 0
16281 .section .eh_frame,"a",@progbits
16282 .long .L0
16283 EOF
16284 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16285 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16286 | grep "gc-sections option ignored" > /dev/null; then
16287 gcc_cv_ld_eh_gc_sections=no
16288 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16289 gcc_cv_ld_eh_gc_sections=yes
16290 fi
16291 fi
16292 fi
16293 fi
16294 fi
16295 rm -f conftest.s conftest.o conftest
16296 fi
16297 case "$target" in
16298 hppa*-*-linux*)
16299 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16300 gcc_cv_ld_eh_gc_sections=no
16301 ;;
16302 esac
16303 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16304
16305 cat >>confdefs.h <<\_ACEOF
16306 #define HAVE_LD_EH_GC_SECTIONS 1
16307 _ACEOF
16308
16309 fi
16310 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16311 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16312
16313 # --------
16314 # UNSORTED
16315 # --------
16316
16317 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16318 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16319 if test "${gcc_cv_ld_as_needed+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322 gcc_cv_ld_as_needed=no
16323 if test $in_tree_ld = yes ; then
16324 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 \
16325 && test $in_tree_ld_is_elf = yes; then
16326 gcc_cv_ld_as_needed=yes
16327 fi
16328 elif test x$gcc_cv_ld != x; then
16329 # Check if linker supports --as-needed and --no-as-needed options
16330 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16331 gcc_cv_ld_as_needed=yes
16332 fi
16333 fi
16334
16335 fi
16336 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16337 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16338 if test x"$gcc_cv_ld_as_needed" = xyes; then
16339
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_LD_AS_NEEDED 1
16342 _ACEOF
16343
16344 fi
16345
16346 case "$target:$tm_file" in
16347 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16348 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16349 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16350 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16351 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353 gcc_cv_ld_no_dot_syms=no
16354 if test $in_tree_ld = yes ; then
16355 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
16356 gcc_cv_ld_no_dot_syms=yes
16357 fi
16358 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16359 cat > conftest1.s <<EOF
16360 .text
16361 bl .foo
16362 EOF
16363 cat > conftest2.s <<EOF
16364 .section ".opd","aw"
16365 .align 3
16366 .globl foo
16367 .type foo,@function
16368 foo:
16369 .quad .LEfoo,.TOC.@tocbase,0
16370 .text
16371 .LEfoo:
16372 blr
16373 .size foo,.-.LEfoo
16374 EOF
16375 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16376 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16377 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16378 gcc_cv_ld_no_dot_syms=yes
16379 fi
16380 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16381 fi
16382
16383 fi
16384 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16385 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16386 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16387
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_LD_NO_DOT_SYMS 1
16390 _ACEOF
16391
16392 fi
16393 ;;
16394 esac
16395
16396 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16397 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16398 if test "${gcc_cv_ld_sysroot+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401 gcc_cv_ld_sysroot=no
16402 if test $in_tree_ld = yes ; then
16403 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
16404 gcc_cv_ld_sysroot=yes
16405 fi
16406 elif test x$gcc_cv_ld != x; then
16407 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16408 gcc_cv_ld_sysroot=yes
16409 fi
16410 fi
16411 fi
16412 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16413 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16414 if test x"$gcc_cv_ld_sysroot" = xyes; then
16415
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_LD_SYSROOT 1
16418 _ACEOF
16419
16420 fi
16421
16422 if test x$with_sysroot = x && test x$host = x$target \
16423 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16424 && test "$prefix" != "NONE"; then
16425
16426 cat >>confdefs.h <<_ACEOF
16427 #define PREFIX_INCLUDE_DIR "$prefix/include"
16428 _ACEOF
16429
16430 fi
16431
16432 # Test for stack protector support in target C library.
16433 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16434 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16435 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438 gcc_cv_libc_provides_ssp=no
16439 case "$target" in
16440 *-*-linux*)
16441 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16442 if test "x$with_sysroot" = x; then
16443 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16444 elif test "x$with_build_sysroot" != "x"; then
16445 glibc_header_dir="${with_build_sysroot}/usr/include"
16446 elif test "x$with_sysroot" = xyes; then
16447 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16448 else
16449 glibc_header_dir="${with_sysroot}/usr/include"
16450 fi
16451 else
16452 glibc_header_dir=/usr/include
16453 fi
16454 # glibc 2.4 and later provides __stack_chk_fail and
16455 # either __stack_chk_guard, or TLS access to stack guard canary.
16456 if test -f $glibc_header_dir/features.h \
16457 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16458 $glibc_header_dir/features.h > /dev/null; then
16459 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16460 $glibc_header_dir/features.h > /dev/null; then
16461 gcc_cv_libc_provides_ssp=yes
16462 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16463 $glibc_header_dir/features.h > /dev/null \
16464 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16465 $glibc_header_dir/features.h > /dev/null; then
16466 gcc_cv_libc_provides_ssp=yes
16467 fi
16468 fi
16469 ;;
16470 *-*-darwin*)
16471 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16472 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16473 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16484 #define __stack_chk_fail innocuous___stack_chk_fail
16485
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char __stack_chk_fail (); below.
16488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16489 <limits.h> exists even on freestanding compilers. */
16490
16491 #ifdef __STDC__
16492 # include <limits.h>
16493 #else
16494 # include <assert.h>
16495 #endif
16496
16497 #undef __stack_chk_fail
16498
16499 /* Override any gcc2 internal prototype to avoid an error. */
16500 #ifdef __cplusplus
16501 extern "C"
16502 {
16503 #endif
16504 /* We use char because int might match the return type of a gcc2
16505 builtin and then its argument prototype would still apply. */
16506 char __stack_chk_fail ();
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16511 choke me
16512 #else
16513 char (*f) () = __stack_chk_fail;
16514 #endif
16515 #ifdef __cplusplus
16516 }
16517 #endif
16518
16519 int
16520 main ()
16521 {
16522 return f != __stack_chk_fail;
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 rm -f conftest.$ac_objext conftest$ac_exeext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16529 (eval $ac_link) 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try='test -z "$ac_c_werror_flag"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try='test -s conftest$ac_exeext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16546 ac_status=$?
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_func___stack_chk_fail=yes
16550 else
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.$ac_ext >&5
16553
16554 ac_cv_func___stack_chk_fail=no
16555 fi
16556 rm -f conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16558 fi
16559 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16560 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16561 if test $ac_cv_func___stack_chk_fail = yes; then
16562 gcc_cv_libc_provides_ssp=yes
16563 else
16564 echo "no __stack_chk_fail on this target"
16565 fi
16566
16567 ;;
16568 *) gcc_cv_libc_provides_ssp=no ;;
16569 esac
16570 fi
16571 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16572 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16573
16574 if test x$gcc_cv_libc_provides_ssp = xyes; then
16575
16576 cat >>confdefs.h <<\_ACEOF
16577 #define TARGET_LIBC_PROVIDES_SSP 1
16578 _ACEOF
16579
16580 fi
16581
16582 # Check if TFmode long double should be used by default or not.
16583 # Some glibc targets used DFmode long double, but with glibc 2.4
16584 # and later they can use TFmode.
16585 case "$target" in
16586 powerpc*-*-linux* | \
16587 powerpc*-*-gnu* | \
16588 sparc*-*-linux* | \
16589 s390*-*-linux* | \
16590 alpha*-*-linux*)
16591
16592 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16593 if test "${with_long_double_128+set}" = set; then
16594 withval="$with_long_double_128"
16595 gcc_cv_target_ldbl128="$with_long_double_128"
16596 else
16597 gcc_cv_target_ldbl128=no
16598 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16599 if test "x$with_sysroot" = x; then
16600 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16601 elif test "x$with_build_sysroot" != "x"; then
16602 glibc_header_dir="${with_build_sysroot}/usr/include"
16603 elif test "x$with_sysroot" = xyes; then
16604 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16605 else
16606 glibc_header_dir="${with_sysroot}/usr/include"
16607 fi
16608 else
16609 glibc_header_dir=/usr/include
16610 fi
16611 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16612 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16613 && gcc_cv_target_ldbl128=yes
16614
16615 fi;
16616 ;;
16617 esac
16618 if test x$gcc_cv_target_ldbl128 = xyes; then
16619
16620 cat >>confdefs.h <<\_ACEOF
16621 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16622 _ACEOF
16623
16624 fi
16625
16626 # Find out what GC implementation we want, or may, use.
16627
16628 # Check whether --with-gc or --without-gc was given.
16629 if test "${with_gc+set}" = set; then
16630 withval="$with_gc"
16631 case "$withval" in
16632 page)
16633 GGC=ggc-$withval
16634 ;;
16635 zone)
16636 GGC=ggc-$withval
16637
16638 cat >>confdefs.h <<\_ACEOF
16639 #define GGC_ZONE 1
16640 _ACEOF
16641
16642 ;;
16643 *)
16644 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16645 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16646 { (exit 1); exit 1; }; }
16647 ;;
16648 esac
16649 else
16650 GGC=ggc-page
16651 fi;
16652
16653 echo "Using $GGC for garbage collection."
16654
16655 # Use the system's zlib library.
16656 zlibdir=-L../zlib
16657 zlibinc="-I\$(srcdir)/../zlib"
16658
16659 # Check whether --with-system-zlib or --without-system-zlib was given.
16660 if test "${with_system_zlib+set}" = set; then
16661 withval="$with_system_zlib"
16662 zlibdir=
16663 zlibinc=
16664
16665 fi;
16666
16667
16668
16669
16670 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16671 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16672 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16673 if test "${enable_maintainer_mode+set}" = set; then
16674 enableval="$enable_maintainer_mode"
16675 maintainer_mode=$enableval
16676 else
16677 maintainer_mode=no
16678 fi;
16679
16680 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16681 echo "${ECHO_T}$maintainer_mode" >&6
16682
16683 if test "$maintainer_mode" = "yes"; then
16684 MAINT=''
16685 else
16686 MAINT='#'
16687 fi
16688
16689 # --------------
16690 # Language hooks
16691 # --------------
16692
16693 # Make empty files to contain the specs and options for each language.
16694 # Then add #include lines to for a compiler that has specs and/or options.
16695
16696 subdirs=
16697 lang_opt_files=
16698 lang_specs_files=
16699 lang_tree_files=
16700 # These (without "all_") are set in each config-lang.in.
16701 # `language' must be a single word so is spelled singularly.
16702 all_languages=
16703 all_compilers=
16704 all_outputs='Makefile gccbug libada-mk'
16705 # List of language makefile fragments.
16706 all_lang_makefrags=
16707 # List of language subdirectory makefiles. Deprecated.
16708 all_lang_makefiles=
16709 # Additional files for gengtype
16710 all_gtfiles="$target_gtfiles"
16711
16712 # These are the languages that are set in --enable-languages,
16713 # and are available in the GCC tree.
16714 all_selected_languages=
16715
16716 # Add the language fragments.
16717 # Languages are added via two mechanisms. Some information must be
16718 # recorded in makefile variables, these are defined in config-lang.in.
16719 # We accumulate them and plug them into the main Makefile.
16720 # The other mechanism is a set of hooks for each of the main targets
16721 # like `clean', `install', etc.
16722
16723 language_hooks="Make-hooks"
16724
16725 for lang in ${srcdir}/*/config-lang.in
16726 do
16727 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16728
16729 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16730 if test "x$lang_alias" = x
16731 then
16732 echo "$lang doesn't set \$language." 1>&2
16733 exit 1
16734 fi
16735 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16736 subdirs="$subdirs $subdir"
16737 case ",$enable_languages," in
16738 *,$lang_alias,*)
16739 all_selected_languages="$all_selected_languages $lang_alias"
16740 if test -f $srcdir/$subdir/lang-specs.h; then
16741 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16742 fi
16743 ;;
16744 esac
16745
16746 language=
16747 boot_language=
16748 compilers=
16749 outputs=
16750 gtfiles=
16751 subdir_requires=
16752 . ${srcdir}/$subdir/config-lang.in
16753 if test "x$language" = x
16754 then
16755 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16756 exit 1
16757 fi
16758
16759 ok=:
16760 case ",$enable_languages," in
16761 *,$lang_alias,*) ;;
16762 *)
16763 for i in $subdir_requires; do
16764 test -f "${srcdir}/$i/config-lang.in" && continue
16765 ok=false
16766 break
16767 done
16768 ;;
16769 esac
16770 $ok || continue
16771
16772 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16773 if test -f $srcdir/$subdir/lang.opt; then
16774 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16775 fi
16776 if test -f $srcdir/$subdir/$subdir-tree.def; then
16777 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16778 fi
16779 if test -f ${srcdir}/$subdir/Makefile.in
16780 then all_lang_makefiles="$subdir/Makefile"
16781 fi
16782 all_languages="$all_languages $language"
16783 all_compilers="$all_compilers $compilers"
16784 all_outputs="$all_outputs $outputs"
16785 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16786 done
16787
16788 # Pick up gtfiles for c
16789 gtfiles=
16790 . ${srcdir}/c-config-lang.in
16791 all_gtfiles="$all_gtfiles [c] $gtfiles"
16792
16793 check_languages=
16794 for language in $all_selected_languages
16795 do
16796 check_languages="$check_languages check-$language"
16797 done
16798
16799 # We link each language in with a set of hooks, reached indirectly via
16800 # lang.${target}. Only do so for selected languages.
16801
16802 rm -f Make-hooks
16803 touch Make-hooks
16804 target_list="all.cross start.encap rest.encap tags \
16805 install-common install-man install-info install-pdf dvi pdf \
16806 html uninstall info man srcextra srcman srcinfo \
16807 mostlyclean clean distclean maintainer-clean"
16808
16809 for t in $target_list
16810 do
16811 x=
16812 for lang in $all_selected_languages
16813 do
16814 x="$x $lang.$t"
16815 done
16816 echo "lang.$t: $x" >> Make-hooks
16817 done
16818
16819 # --------
16820 # UNSORTED
16821 # --------
16822
16823 # Create .gdbinit.
16824
16825 echo "dir ." > .gdbinit
16826 echo "dir ${srcdir}" >> .gdbinit
16827 if test x$gdb_needs_out_file_path = xyes
16828 then
16829 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16830 fi
16831 if test "x$subdirs" != x; then
16832 for s in $subdirs
16833 do
16834 echo "dir ${srcdir}/$s" >> .gdbinit
16835 done
16836 fi
16837 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16838
16839 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16840 # absolute path for gcc_tooldir based on inserting the number of up-directory
16841 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16842 # $(libsubdir)/@(unlibsubdir) based path.
16843 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16844 # make and thus we'd get different behavior depending on where we built the
16845 # sources.
16846 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16847 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16848 else
16849 # An explanation of the sed strings:
16850 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16851 # -e 's|/$||' match a trailing forward slash and eliminates it
16852 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16853 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16854 #
16855 # (*) Note this pattern overwrites the first character of the string
16856 # with a forward slash if one is not already present. This is not a
16857 # problem because the exact names of the sub-directories concerned is
16858 # unimportant, just the number of them matters.
16859 #
16860 # The practical upshot of these patterns is like this:
16861 #
16862 # prefix exec_prefix result
16863 # ------ ----------- ------
16864 # /foo /foo/bar ../
16865 # /foo/ /foo/bar ../
16866 # /foo /foo/bar/ ../
16867 # /foo/ /foo/bar/ ../
16868 # /foo /foo/bar/ugg ../../
16869 #
16870 dollar='$$'
16871 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16872 fi
16873
16874
16875
16876 # Find a directory in which to install a shared libgcc.
16877
16878 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16879 if test "${enable_version_specific_runtime_libs+set}" = set; then
16880 enableval="$enable_version_specific_runtime_libs"
16881
16882 fi;
16883
16884
16885 # Check whether --with-slibdir or --without-slibdir was given.
16886 if test "${with_slibdir+set}" = set; then
16887 withval="$with_slibdir"
16888 slibdir="$with_slibdir"
16889 else
16890 if test "${enable_version_specific_runtime_libs+set}" = set; then
16891 slibdir='$(libsubdir)'
16892 elif test "$host" != "$target"; then
16893 slibdir='$(build_tooldir)/lib'
16894 else
16895 slibdir='$(libdir)'
16896 fi
16897 fi;
16898
16899
16900 objdir=`${PWDCMD-pwd}`
16901
16902
16903
16904 # Check whether --with-datarootdir or --without-datarootdir was given.
16905 if test "${with_datarootdir+set}" = set; then
16906 withval="$with_datarootdir"
16907 datarootdir="\${prefix}/$with_datarootdir"
16908 else
16909 datarootdir='$(prefix)/share'
16910 fi;
16911
16912
16913
16914 # Check whether --with-docdir or --without-docdir was given.
16915 if test "${with_docdir+set}" = set; then
16916 withval="$with_docdir"
16917 docdir="\${prefix}/$with_docdir"
16918 else
16919 docdir='$(datarootdir)'
16920 fi;
16921
16922
16923
16924 # Check whether --with-htmldir or --without-htmldir was given.
16925 if test "${with_htmldir+set}" = set; then
16926 withval="$with_htmldir"
16927 htmldir="\${prefix}/$with_htmldir"
16928 else
16929 htmldir='$(docdir)'
16930 fi;
16931
16932
16933 # Substitute configuration variables
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989 # Echo link setup.
16990 if test x${build} = x${host} ; then
16991 if test x${host} = x${target} ; then
16992 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16993 else
16994 echo "Links are now set up to build a cross-compiler" 1>&2
16995 echo " from ${host} to ${target}." 1>&2
16996 fi
16997 else
16998 if test x${host} = x${target} ; then
16999 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17000 echo " for ${target}." 1>&2
17001 else
17002 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17003 echo " from ${host} to ${target}." 1>&2
17004 fi
17005 fi
17006
17007
17008
17009
17010 # Configure the subdirectories
17011 # AC_CONFIG_SUBDIRS($subdirs)
17012
17013 # Create the Makefile
17014 # and configure language subdirectories
17015 ac_config_files="$ac_config_files $all_outputs"
17016
17017
17018 ac_config_commands="$ac_config_commands default"
17019
17020 cat >confcache <<\_ACEOF
17021 # This file is a shell script that caches the results of configure
17022 # tests run on this system so they can be shared between configure
17023 # scripts and configure runs, see configure's option --config-cache.
17024 # It is not useful on other systems. If it contains results you don't
17025 # want to keep, you may remove or edit it.
17026 #
17027 # config.status only pays attention to the cache file if you give it
17028 # the --recheck option to rerun configure.
17029 #
17030 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17031 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17032 # following values.
17033
17034 _ACEOF
17035
17036 # The following way of writing the cache mishandles newlines in values,
17037 # but we know of no workaround that is simple, portable, and efficient.
17038 # So, don't put newlines in cache variables' values.
17039 # Ultrix sh set writes to stderr and can't be redirected directly,
17040 # and sets the high bit in the cache file unless we assign to the vars.
17041 {
17042 (set) 2>&1 |
17043 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17044 *ac_space=\ *)
17045 # `set' does not quote correctly, so add quotes (double-quote
17046 # substitution turns \\\\ into \\, and sed turns \\ into \).
17047 sed -n \
17048 "s/'/'\\\\''/g;
17049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17050 ;;
17051 *)
17052 # `set' quotes correctly as required by POSIX, so do not add quotes.
17053 sed -n \
17054 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17055 ;;
17056 esac;
17057 } |
17058 sed '
17059 t clear
17060 : clear
17061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17062 t end
17063 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17064 : end' >>confcache
17065 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17066 if test -w $cache_file; then
17067 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17068 cat confcache >$cache_file
17069 else
17070 echo "not updating unwritable cache $cache_file"
17071 fi
17072 fi
17073 rm -f confcache
17074
17075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17076 # Let make expand exec_prefix.
17077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17078
17079 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17080 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17081 # trailing colons and then remove the whole line if VPATH becomes empty
17082 # (actually we leave an empty line to preserve line numbers).
17083 if test "x$srcdir" = x.; then
17084 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17085 s/:*\$(srcdir):*/:/;
17086 s/:*\${srcdir}:*/:/;
17087 s/:*@srcdir@:*/:/;
17088 s/^\([^=]*=[ ]*\):*/\1/;
17089 s/:*$//;
17090 s/^[^=]*=[ ]*$//;
17091 }'
17092 fi
17093
17094 DEFS=-DHAVE_CONFIG_H
17095
17096 ac_libobjs=
17097 ac_ltlibobjs=
17098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17099 # 1. Remove the extension, and $U if already installed.
17100 ac_i=`echo "$ac_i" |
17101 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17102 # 2. Add them.
17103 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17104 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17105 done
17106 LIBOBJS=$ac_libobjs
17107
17108 LTLIBOBJS=$ac_ltlibobjs
17109
17110
17111
17112 : ${CONFIG_STATUS=./config.status}
17113 ac_clean_files_save=$ac_clean_files
17114 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17115 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17116 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17117 cat >$CONFIG_STATUS <<_ACEOF
17118 #! $SHELL
17119 # Generated by $as_me.
17120 # Run this file to recreate the current configuration.
17121 # Compiler output produced by configure, useful for debugging
17122 # configure, is in config.log if it exists.
17123
17124 debug=false
17125 ac_cs_recheck=false
17126 ac_cs_silent=false
17127 SHELL=\${CONFIG_SHELL-$SHELL}
17128 _ACEOF
17129
17130 cat >>$CONFIG_STATUS <<\_ACEOF
17131 ## --------------------- ##
17132 ## M4sh Initialization. ##
17133 ## --------------------- ##
17134
17135 # Be Bourne compatible
17136 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17137 emulate sh
17138 NULLCMD=:
17139 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17140 # is contrary to our usage. Disable this feature.
17141 alias -g '${1+"$@"}'='"$@"'
17142 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17143 set -o posix
17144 fi
17145 DUALCASE=1; export DUALCASE # for MKS sh
17146
17147 # Support unset when possible.
17148 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17149 as_unset=unset
17150 else
17151 as_unset=false
17152 fi
17153
17154
17155 # Work around bugs in pre-3.0 UWIN ksh.
17156 $as_unset ENV MAIL MAILPATH
17157 PS1='$ '
17158 PS2='> '
17159 PS4='+ '
17160
17161 # NLS nuisances.
17162 for as_var in \
17163 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17164 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17165 LC_TELEPHONE LC_TIME
17166 do
17167 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17168 eval $as_var=C; export $as_var
17169 else
17170 $as_unset $as_var
17171 fi
17172 done
17173
17174 # Required to use basename.
17175 if expr a : '\(a\)' >/dev/null 2>&1; then
17176 as_expr=expr
17177 else
17178 as_expr=false
17179 fi
17180
17181 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17182 as_basename=basename
17183 else
17184 as_basename=false
17185 fi
17186
17187
17188 # Name of the executable.
17189 as_me=`$as_basename "$0" ||
17190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17191 X"$0" : 'X\(//\)$' \| \
17192 X"$0" : 'X\(/\)$' \| \
17193 . : '\(.\)' 2>/dev/null ||
17194 echo X/"$0" |
17195 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17196 /^X\/\(\/\/\)$/{ s//\1/; q; }
17197 /^X\/\(\/\).*/{ s//\1/; q; }
17198 s/.*/./; q'`
17199
17200
17201 # PATH needs CR, and LINENO needs CR and PATH.
17202 # Avoid depending upon Character Ranges.
17203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17206 as_cr_digits='0123456789'
17207 as_cr_alnum=$as_cr_Letters$as_cr_digits
17208
17209 # The user is always right.
17210 if test "${PATH_SEPARATOR+set}" != set; then
17211 echo "#! /bin/sh" >conf$$.sh
17212 echo "exit 0" >>conf$$.sh
17213 chmod +x conf$$.sh
17214 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17215 PATH_SEPARATOR=';'
17216 else
17217 PATH_SEPARATOR=:
17218 fi
17219 rm -f conf$$.sh
17220 fi
17221
17222
17223 as_lineno_1=$LINENO
17224 as_lineno_2=$LINENO
17225 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17226 test "x$as_lineno_1" != "x$as_lineno_2" &&
17227 test "x$as_lineno_3" = "x$as_lineno_2" || {
17228 # Find who we are. Look in the path if we contain no path at all
17229 # relative or not.
17230 case $0 in
17231 *[\\/]* ) as_myself=$0 ;;
17232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17233 for as_dir in $PATH
17234 do
17235 IFS=$as_save_IFS
17236 test -z "$as_dir" && as_dir=.
17237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17238 done
17239
17240 ;;
17241 esac
17242 # We did not find ourselves, most probably we were run as `sh COMMAND'
17243 # in which case we are not to be found in the path.
17244 if test "x$as_myself" = x; then
17245 as_myself=$0
17246 fi
17247 if test ! -f "$as_myself"; then
17248 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17249 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17250 { (exit 1); exit 1; }; }
17251 fi
17252 case $CONFIG_SHELL in
17253 '')
17254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17255 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17256 do
17257 IFS=$as_save_IFS
17258 test -z "$as_dir" && as_dir=.
17259 for as_base in sh bash ksh sh5; do
17260 case $as_dir in
17261 /*)
17262 if ("$as_dir/$as_base" -c '
17263 as_lineno_1=$LINENO
17264 as_lineno_2=$LINENO
17265 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17266 test "x$as_lineno_1" != "x$as_lineno_2" &&
17267 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17268 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17269 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17270 CONFIG_SHELL=$as_dir/$as_base
17271 export CONFIG_SHELL
17272 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17273 fi;;
17274 esac
17275 done
17276 done
17277 ;;
17278 esac
17279
17280 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17281 # uniformly replaced by the line number. The first 'sed' inserts a
17282 # line-number line before each line; the second 'sed' does the real
17283 # work. The second script uses 'N' to pair each line-number line
17284 # with the numbered line, and appends trailing '-' during
17285 # substitution so that $LINENO is not a special case at line end.
17286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17287 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17288 sed '=' <$as_myself |
17289 sed '
17290 N
17291 s,$,-,
17292 : loop
17293 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17294 t loop
17295 s,-$,,
17296 s,^['$as_cr_digits']*\n,,
17297 ' >$as_me.lineno &&
17298 chmod +x $as_me.lineno ||
17299 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17300 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17301 { (exit 1); exit 1; }; }
17302
17303 # Don't try to exec as it changes $[0], causing all sort of problems
17304 # (the dirname of $[0] is not the place where we might find the
17305 # original and so on. Autoconf is especially sensible to this).
17306 . ./$as_me.lineno
17307 # Exit status is that of the last command.
17308 exit
17309 }
17310
17311
17312 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17313 *c*,-n*) ECHO_N= ECHO_C='
17314 ' ECHO_T=' ' ;;
17315 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17316 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17317 esac
17318
17319 if expr a : '\(a\)' >/dev/null 2>&1; then
17320 as_expr=expr
17321 else
17322 as_expr=false
17323 fi
17324
17325 rm -f conf$$ conf$$.exe conf$$.file
17326 echo >conf$$.file
17327 if ln -s conf$$.file conf$$ 2>/dev/null; then
17328 # We could just check for DJGPP; but this test a) works b) is more generic
17329 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17330 if test -f conf$$.exe; then
17331 # Don't use ln at all; we don't have any links
17332 as_ln_s='cp -p'
17333 else
17334 as_ln_s='ln -s'
17335 fi
17336 elif ln conf$$.file conf$$ 2>/dev/null; then
17337 as_ln_s=ln
17338 else
17339 as_ln_s='cp -p'
17340 fi
17341 rm -f conf$$ conf$$.exe conf$$.file
17342
17343 if mkdir -p . 2>/dev/null; then
17344 as_mkdir_p=:
17345 else
17346 test -d ./-p && rmdir ./-p
17347 as_mkdir_p=false
17348 fi
17349
17350 as_executable_p="test -f"
17351
17352 # Sed expression to map a string onto a valid CPP name.
17353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17354
17355 # Sed expression to map a string onto a valid variable name.
17356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17357
17358
17359 # IFS
17360 # We need space, tab and new line, in precisely that order.
17361 as_nl='
17362 '
17363 IFS=" $as_nl"
17364
17365 # CDPATH.
17366 $as_unset CDPATH
17367
17368 exec 6>&1
17369
17370 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17371 # report actual input values of CONFIG_FILES etc. instead of their
17372 # values after options handling. Logging --version etc. is OK.
17373 exec 5>>config.log
17374 {
17375 echo
17376 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17377 ## Running $as_me. ##
17378 _ASBOX
17379 } >&5
17380 cat >&5 <<_CSEOF
17381
17382 This file was extended by $as_me, which was
17383 generated by GNU Autoconf 2.59. Invocation command line was
17384
17385 CONFIG_FILES = $CONFIG_FILES
17386 CONFIG_HEADERS = $CONFIG_HEADERS
17387 CONFIG_LINKS = $CONFIG_LINKS
17388 CONFIG_COMMANDS = $CONFIG_COMMANDS
17389 $ $0 $@
17390
17391 _CSEOF
17392 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17393 echo >&5
17394 _ACEOF
17395
17396 # Files that config.status was made for.
17397 if test -n "$ac_config_files"; then
17398 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17399 fi
17400
17401 if test -n "$ac_config_headers"; then
17402 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17403 fi
17404
17405 if test -n "$ac_config_links"; then
17406 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17407 fi
17408
17409 if test -n "$ac_config_commands"; then
17410 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17411 fi
17412
17413 cat >>$CONFIG_STATUS <<\_ACEOF
17414
17415 ac_cs_usage="\
17416 \`$as_me' instantiates files from templates according to the
17417 current configuration.
17418
17419 Usage: $0 [OPTIONS] [FILE]...
17420
17421 -h, --help print this help, then exit
17422 -V, --version print version number, then exit
17423 -q, --quiet do not print progress messages
17424 -d, --debug don't remove temporary files
17425 --recheck update $as_me by reconfiguring in the same conditions
17426 --file=FILE[:TEMPLATE]
17427 instantiate the configuration file FILE
17428 --header=FILE[:TEMPLATE]
17429 instantiate the configuration header FILE
17430
17431 Configuration files:
17432 $config_files
17433
17434 Configuration headers:
17435 $config_headers
17436
17437 Configuration commands:
17438 $config_commands
17439
17440 Report bugs to <bug-autoconf@gnu.org>."
17441 _ACEOF
17442
17443 cat >>$CONFIG_STATUS <<_ACEOF
17444 ac_cs_version="\\
17445 config.status
17446 configured by $0, generated by GNU Autoconf 2.59,
17447 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17448
17449 Copyright (C) 2003 Free Software Foundation, Inc.
17450 This config.status script is free software; the Free Software Foundation
17451 gives unlimited permission to copy, distribute and modify it."
17452 srcdir=$srcdir
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<\_ACEOF
17456 # If no file are specified by the user, then we need to provide default
17457 # value. By we need to know if files were specified by the user.
17458 ac_need_defaults=:
17459 while test $# != 0
17460 do
17461 case $1 in
17462 --*=*)
17463 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17464 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17465 ac_shift=:
17466 ;;
17467 -*)
17468 ac_option=$1
17469 ac_optarg=$2
17470 ac_shift=shift
17471 ;;
17472 *) # This is not an option, so the user has probably given explicit
17473 # arguments.
17474 ac_option=$1
17475 ac_need_defaults=false;;
17476 esac
17477
17478 case $ac_option in
17479 # Handling of the options.
17480 _ACEOF
17481 cat >>$CONFIG_STATUS <<\_ACEOF
17482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17483 ac_cs_recheck=: ;;
17484 --version | --vers* | -V )
17485 echo "$ac_cs_version"; exit 0 ;;
17486 --he | --h)
17487 # Conflict between --help and --header
17488 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17489 Try \`$0 --help' for more information." >&5
17490 echo "$as_me: error: ambiguous option: $1
17491 Try \`$0 --help' for more information." >&2;}
17492 { (exit 1); exit 1; }; };;
17493 --help | --hel | -h )
17494 echo "$ac_cs_usage"; exit 0 ;;
17495 --debug | --d* | -d )
17496 debug=: ;;
17497 --file | --fil | --fi | --f )
17498 $ac_shift
17499 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17500 ac_need_defaults=false;;
17501 --header | --heade | --head | --hea )
17502 $ac_shift
17503 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17504 ac_need_defaults=false;;
17505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17507 ac_cs_silent=: ;;
17508
17509 # This is an error.
17510 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17511 Try \`$0 --help' for more information." >&5
17512 echo "$as_me: error: unrecognized option: $1
17513 Try \`$0 --help' for more information." >&2;}
17514 { (exit 1); exit 1; }; } ;;
17515
17516 *) ac_config_targets="$ac_config_targets $1" ;;
17517
17518 esac
17519 shift
17520 done
17521
17522 ac_configure_extra_args=
17523
17524 if $ac_cs_silent; then
17525 exec 6>/dev/null
17526 ac_configure_extra_args="$ac_configure_extra_args --silent"
17527 fi
17528
17529 _ACEOF
17530 cat >>$CONFIG_STATUS <<_ACEOF
17531 if \$ac_cs_recheck; then
17532 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17533 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17534 fi
17535
17536 _ACEOF
17537
17538 cat >>$CONFIG_STATUS <<_ACEOF
17539 #
17540 # INIT-COMMANDS section.
17541 #
17542
17543 subdirs='$subdirs'
17544
17545 _ACEOF
17546
17547
17548
17549 cat >>$CONFIG_STATUS <<\_ACEOF
17550 for ac_config_target in $ac_config_targets
17551 do
17552 case "$ac_config_target" in
17553 # Handling of arguments.
17554 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17555 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17556 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17557 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17558 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17559 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17560 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17561 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17562 { (exit 1); exit 1; }; };;
17563 esac
17564 done
17565
17566 # If the user did not use the arguments to specify the items to instantiate,
17567 # then the envvar interface is used. Set only those that are not.
17568 # We use the long form for the default assignment because of an extremely
17569 # bizarre bug on SunOS 4.1.3.
17570 if $ac_need_defaults; then
17571 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17572 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17573 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17574 fi
17575
17576 # Have a temporary directory for convenience. Make it in the build tree
17577 # simply because there is no reason to put it here, and in addition,
17578 # creating and moving files from /tmp can sometimes cause problems.
17579 # Create a temporary directory, and hook for its removal unless debugging.
17580 $debug ||
17581 {
17582 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17583 trap '{ (exit 1); exit 1; }' 1 2 13 15
17584 }
17585
17586 # Create a (secure) tmp directory for tmp files.
17587
17588 {
17589 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17590 test -n "$tmp" && test -d "$tmp"
17591 } ||
17592 {
17593 tmp=./confstat$$-$RANDOM
17594 (umask 077 && mkdir $tmp)
17595 } ||
17596 {
17597 echo "$me: cannot create a temporary directory in ." >&2
17598 { (exit 1); exit 1; }
17599 }
17600
17601 _ACEOF
17602
17603 cat >>$CONFIG_STATUS <<_ACEOF
17604
17605 #
17606 # CONFIG_FILES section.
17607 #
17608
17609 # No need to generate the scripts if there are no CONFIG_FILES.
17610 # This happens for instance when ./config.status config.h
17611 if test -n "\$CONFIG_FILES"; then
17612 # Protect against being on the right side of a sed subst in config.status.
17613 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17614 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17615 s,@SHELL@,$SHELL,;t t
17616 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17617 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17618 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17619 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17620 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17621 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17622 s,@exec_prefix@,$exec_prefix,;t t
17623 s,@prefix@,$prefix,;t t
17624 s,@program_transform_name@,$program_transform_name,;t t
17625 s,@bindir@,$bindir,;t t
17626 s,@sbindir@,$sbindir,;t t
17627 s,@libexecdir@,$libexecdir,;t t
17628 s,@datadir@,$datadir,;t t
17629 s,@sysconfdir@,$sysconfdir,;t t
17630 s,@sharedstatedir@,$sharedstatedir,;t t
17631 s,@localstatedir@,$localstatedir,;t t
17632 s,@libdir@,$libdir,;t t
17633 s,@includedir@,$includedir,;t t
17634 s,@oldincludedir@,$oldincludedir,;t t
17635 s,@infodir@,$infodir,;t t
17636 s,@mandir@,$mandir,;t t
17637 s,@build_alias@,$build_alias,;t t
17638 s,@host_alias@,$host_alias,;t t
17639 s,@target_alias@,$target_alias,;t t
17640 s,@DEFS@,$DEFS,;t t
17641 s,@ECHO_C@,$ECHO_C,;t t
17642 s,@ECHO_N@,$ECHO_N,;t t
17643 s,@ECHO_T@,$ECHO_T,;t t
17644 s,@LIBS@,$LIBS,;t t
17645 s,@build@,$build,;t t
17646 s,@build_cpu@,$build_cpu,;t t
17647 s,@build_vendor@,$build_vendor,;t t
17648 s,@build_os@,$build_os,;t t
17649 s,@host@,$host,;t t
17650 s,@host_cpu@,$host_cpu,;t t
17651 s,@host_vendor@,$host_vendor,;t t
17652 s,@host_os@,$host_os,;t t
17653 s,@target@,$target,;t t
17654 s,@target_cpu@,$target_cpu,;t t
17655 s,@target_vendor@,$target_vendor,;t t
17656 s,@target_os@,$target_os,;t t
17657 s,@target_noncanonical@,$target_noncanonical,;t t
17658 s,@build_libsubdir@,$build_libsubdir,;t t
17659 s,@build_subdir@,$build_subdir,;t t
17660 s,@host_subdir@,$host_subdir,;t t
17661 s,@target_subdir@,$target_subdir,;t t
17662 s,@GENINSRC@,$GENINSRC,;t t
17663 s,@CC@,$CC,;t t
17664 s,@CFLAGS@,$CFLAGS,;t t
17665 s,@LDFLAGS@,$LDFLAGS,;t t
17666 s,@CPPFLAGS@,$CPPFLAGS,;t t
17667 s,@ac_ct_CC@,$ac_ct_CC,;t t
17668 s,@EXEEXT@,$EXEEXT,;t t
17669 s,@OBJEXT@,$OBJEXT,;t t
17670 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17671 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17672 s,@CPP@,$CPP,;t t
17673 s,@EGREP@,$EGREP,;t t
17674 s,@strict_warn@,$strict_warn,;t t
17675 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17676 s,@warn_cflags@,$warn_cflags,;t t
17677 s,@nocommon_flag@,$nocommon_flag,;t t
17678 s,@TREEBROWSER@,$TREEBROWSER,;t t
17679 s,@valgrind_path@,$valgrind_path,;t t
17680 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17681 s,@valgrind_command@,$valgrind_command,;t t
17682 s,@coverage_flags@,$coverage_flags,;t t
17683 s,@enable_multilib@,$enable_multilib,;t t
17684 s,@enable_decimal_float@,$enable_decimal_float,;t t
17685 s,@enable_shared@,$enable_shared,;t t
17686 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17687 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17688 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17689 s,@onestep@,$onestep,;t t
17690 s,@datarootdir@,$datarootdir,;t t
17691 s,@docdir@,$docdir,;t t
17692 s,@htmldir@,$htmldir,;t t
17693 s,@SET_MAKE@,$SET_MAKE,;t t
17694 s,@AWK@,$AWK,;t t
17695 s,@LN_S@,$LN_S,;t t
17696 s,@LN@,$LN,;t t
17697 s,@RANLIB@,$RANLIB,;t t
17698 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17699 s,@ranlib_flags@,$ranlib_flags,;t t
17700 s,@INSTALL@,$INSTALL,;t t
17701 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17702 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17703 s,@make_compare_target@,$make_compare_target,;t t
17704 s,@have_mktemp_command@,$have_mktemp_command,;t t
17705 s,@MAKEINFO@,$MAKEINFO,;t t
17706 s,@BUILD_INFO@,$BUILD_INFO,;t t
17707 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17708 s,@FLEX@,$FLEX,;t t
17709 s,@BISON@,$BISON,;t t
17710 s,@NM@,$NM,;t t
17711 s,@AR@,$AR,;t t
17712 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17713 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17714 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17715 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17716 s,@LIBICONV@,$LIBICONV,;t t
17717 s,@LTLIBICONV@,$LTLIBICONV,;t t
17718 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17719 s,@manext@,$manext,;t t
17720 s,@objext@,$objext,;t t
17721 s,@gthread_flags@,$gthread_flags,;t t
17722 s,@extra_modes_file@,$extra_modes_file,;t t
17723 s,@extra_opt_files@,$extra_opt_files,;t t
17724 s,@USE_NLS@,$USE_NLS,;t t
17725 s,@LIBINTL@,$LIBINTL,;t t
17726 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17727 s,@INCINTL@,$INCINTL,;t t
17728 s,@XGETTEXT@,$XGETTEXT,;t t
17729 s,@GMSGFMT@,$GMSGFMT,;t t
17730 s,@POSUB@,$POSUB,;t t
17731 s,@CATALOGS@,$CATALOGS,;t t
17732 s,@DATADIRNAME@,$DATADIRNAME,;t t
17733 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17734 s,@GENCAT@,$GENCAT,;t t
17735 s,@CATOBJEXT@,$CATOBJEXT,;t t
17736 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17737 s,@CROSS@,$CROSS,;t t
17738 s,@ALL@,$ALL,;t t
17739 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17740 s,@inhibit_libc@,$inhibit_libc,;t t
17741 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17742 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17743 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17744 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17745 s,@collect2@,$collect2,;t t
17746 s,@gcc_cv_as@,$gcc_cv_as,;t t
17747 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17748 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17749 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17750 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17751 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17752 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17753 s,@libgcc_visibility@,$libgcc_visibility,;t t
17754 s,@GGC@,$GGC,;t t
17755 s,@zlibdir@,$zlibdir,;t t
17756 s,@zlibinc@,$zlibinc,;t t
17757 s,@MAINT@,$MAINT,;t t
17758 s,@gcc_tooldir@,$gcc_tooldir,;t t
17759 s,@dollar@,$dollar,;t t
17760 s,@slibdir@,$slibdir,;t t
17761 s,@objdir@,$objdir,;t t
17762 s,@subdirs@,$subdirs,;t t
17763 s,@srcdir@,$srcdir,;t t
17764 s,@all_compilers@,$all_compilers,;t t
17765 s,@all_gtfiles@,$all_gtfiles,;t t
17766 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17767 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17768 s,@all_languages@,$all_languages,;t t
17769 s,@all_selected_languages@,$all_selected_languages,;t t
17770 s,@build_exeext@,$build_exeext,;t t
17771 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17772 s,@build_xm_file_list@,$build_xm_file_list,;t t
17773 s,@build_xm_include_list@,$build_xm_include_list,;t t
17774 s,@build_xm_defines@,$build_xm_defines,;t t
17775 s,@check_languages@,$check_languages,;t t
17776 s,@cpp_install_dir@,$cpp_install_dir,;t t
17777 s,@xmake_file@,$xmake_file,;t t
17778 s,@tmake_file@,$tmake_file,;t t
17779 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17780 s,@extra_headers_list@,$extra_headers_list,;t t
17781 s,@extra_objs@,$extra_objs,;t t
17782 s,@extra_parts@,$extra_parts,;t t
17783 s,@extra_passes@,$extra_passes,;t t
17784 s,@extra_programs@,$extra_programs,;t t
17785 s,@float_h_file@,$float_h_file,;t t
17786 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17787 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17788 s,@host_exeext@,$host_exeext,;t t
17789 s,@host_xm_file_list@,$host_xm_file_list,;t t
17790 s,@host_xm_include_list@,$host_xm_include_list,;t t
17791 s,@host_xm_defines@,$host_xm_defines,;t t
17792 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17793 s,@install@,$install,;t t
17794 s,@lang_opt_files@,$lang_opt_files,;t t
17795 s,@lang_specs_files@,$lang_specs_files,;t t
17796 s,@lang_tree_files@,$lang_tree_files,;t t
17797 s,@local_prefix@,$local_prefix,;t t
17798 s,@md_file@,$md_file,;t t
17799 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17800 s,@out_file@,$out_file,;t t
17801 s,@out_object_file@,$out_object_file,;t t
17802 s,@thread_file@,$thread_file,;t t
17803 s,@tm_file_list@,$tm_file_list,;t t
17804 s,@tm_include_list@,$tm_include_list,;t t
17805 s,@tm_defines@,$tm_defines,;t t
17806 s,@tm_p_file_list@,$tm_p_file_list,;t t
17807 s,@tm_p_include_list@,$tm_p_include_list,;t t
17808 s,@xm_file_list@,$xm_file_list,;t t
17809 s,@xm_include_list@,$xm_include_list,;t t
17810 s,@xm_defines@,$xm_defines,;t t
17811 s,@c_target_objs@,$c_target_objs,;t t
17812 s,@cxx_target_objs@,$cxx_target_objs,;t t
17813 s,@target_cpu_default@,$target_cpu_default,;t t
17814 s,@GMPLIBS@,$GMPLIBS,;t t
17815 s,@GMPINC@,$GMPINC,;t t
17816 s,@LIBOBJS@,$LIBOBJS,;t t
17817 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17818 /@language_hooks@/r $language_hooks
17819 s,@language_hooks@,,;t t
17820 CEOF
17821
17822 _ACEOF
17823
17824 cat >>$CONFIG_STATUS <<\_ACEOF
17825 # Split the substitutions into bite-sized pieces for seds with
17826 # small command number limits, like on Digital OSF/1 and HP-UX.
17827 ac_max_sed_lines=48
17828 ac_sed_frag=1 # Number of current file.
17829 ac_beg=1 # First line for current file.
17830 ac_end=$ac_max_sed_lines # Line after last line for current file.
17831 ac_more_lines=:
17832 ac_sed_cmds=
17833 while $ac_more_lines; do
17834 if test $ac_beg -gt 1; then
17835 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17836 else
17837 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17838 fi
17839 if test ! -s $tmp/subs.frag; then
17840 ac_more_lines=false
17841 else
17842 # The purpose of the label and of the branching condition is to
17843 # speed up the sed processing (if there are no `@' at all, there
17844 # is no need to browse any of the substitutions).
17845 # These are the two extra sed commands mentioned above.
17846 (echo ':t
17847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17848 if test -z "$ac_sed_cmds"; then
17849 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17850 else
17851 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17852 fi
17853 ac_sed_frag=`expr $ac_sed_frag + 1`
17854 ac_beg=$ac_end
17855 ac_end=`expr $ac_end + $ac_max_sed_lines`
17856 fi
17857 done
17858 if test -z "$ac_sed_cmds"; then
17859 ac_sed_cmds=cat
17860 fi
17861 fi # test -n "$CONFIG_FILES"
17862
17863 _ACEOF
17864 cat >>$CONFIG_STATUS <<\_ACEOF
17865 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17866 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17867 case $ac_file in
17868 - | *:- | *:-:* ) # input from stdin
17869 cat >$tmp/stdin
17870 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17871 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17872 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17874 * ) ac_file_in=$ac_file.in ;;
17875 esac
17876
17877 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17878 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17879 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880 X"$ac_file" : 'X\(//\)[^/]' \| \
17881 X"$ac_file" : 'X\(//\)$' \| \
17882 X"$ac_file" : 'X\(/\)' \| \
17883 . : '\(.\)' 2>/dev/null ||
17884 echo X"$ac_file" |
17885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17887 /^X\(\/\/\)$/{ s//\1/; q; }
17888 /^X\(\/\).*/{ s//\1/; q; }
17889 s/.*/./; q'`
17890 { if $as_mkdir_p; then
17891 mkdir -p "$ac_dir"
17892 else
17893 as_dir="$ac_dir"
17894 as_dirs=
17895 while test ! -d "$as_dir"; do
17896 as_dirs="$as_dir $as_dirs"
17897 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17899 X"$as_dir" : 'X\(//\)[^/]' \| \
17900 X"$as_dir" : 'X\(//\)$' \| \
17901 X"$as_dir" : 'X\(/\)' \| \
17902 . : '\(.\)' 2>/dev/null ||
17903 echo X"$as_dir" |
17904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17906 /^X\(\/\/\)$/{ s//\1/; q; }
17907 /^X\(\/\).*/{ s//\1/; q; }
17908 s/.*/./; q'`
17909 done
17910 test ! -n "$as_dirs" || mkdir $as_dirs
17911 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17912 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17913 { (exit 1); exit 1; }; }; }
17914
17915 ac_builddir=.
17916
17917 if test "$ac_dir" != .; then
17918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17919 # A "../" for each directory in $ac_dir_suffix.
17920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17921 else
17922 ac_dir_suffix= ac_top_builddir=
17923 fi
17924
17925 case $srcdir in
17926 .) # No --srcdir option. We are building in place.
17927 ac_srcdir=.
17928 if test -z "$ac_top_builddir"; then
17929 ac_top_srcdir=.
17930 else
17931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17932 fi ;;
17933 [\\/]* | ?:[\\/]* ) # Absolute path.
17934 ac_srcdir=$srcdir$ac_dir_suffix;
17935 ac_top_srcdir=$srcdir ;;
17936 *) # Relative path.
17937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17939 esac
17940
17941 # Do not use `cd foo && pwd` to compute absolute paths, because
17942 # the directories may not exist.
17943 case `pwd` in
17944 .) ac_abs_builddir="$ac_dir";;
17945 *)
17946 case "$ac_dir" in
17947 .) ac_abs_builddir=`pwd`;;
17948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17950 esac;;
17951 esac
17952 case $ac_abs_builddir in
17953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17954 *)
17955 case ${ac_top_builddir}. in
17956 .) ac_abs_top_builddir=$ac_abs_builddir;;
17957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17959 esac;;
17960 esac
17961 case $ac_abs_builddir in
17962 .) ac_abs_srcdir=$ac_srcdir;;
17963 *)
17964 case $ac_srcdir in
17965 .) ac_abs_srcdir=$ac_abs_builddir;;
17966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17968 esac;;
17969 esac
17970 case $ac_abs_builddir in
17971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17972 *)
17973 case $ac_top_srcdir in
17974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17977 esac;;
17978 esac
17979
17980
17981
17982 if test x"$ac_file" != x-; then
17983 { echo "$as_me:$LINENO: creating $ac_file" >&5
17984 echo "$as_me: creating $ac_file" >&6;}
17985 rm -f "$ac_file"
17986 fi
17987 # Let's still pretend it is `configure' which instantiates (i.e., don't
17988 # use $as_me), people would be surprised to read:
17989 # /* config.h. Generated by config.status. */
17990 if test x"$ac_file" = x-; then
17991 configure_input=
17992 else
17993 configure_input="$ac_file. "
17994 fi
17995 configure_input=$configure_input"Generated from `echo $ac_file_in |
17996 sed 's,.*/,,'` by configure."
17997
17998 # First look for the input files in the build tree, otherwise in the
17999 # src tree.
18000 ac_file_inputs=`IFS=:
18001 for f in $ac_file_in; do
18002 case $f in
18003 -) echo $tmp/stdin ;;
18004 [\\/$]*)
18005 # Absolute (can't be DOS-style, as IFS=:)
18006 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18007 echo "$as_me: error: cannot find input file: $f" >&2;}
18008 { (exit 1); exit 1; }; }
18009 echo "$f";;
18010 *) # Relative
18011 if test -f "$f"; then
18012 # Build tree
18013 echo "$f"
18014 elif test -f "$srcdir/$f"; then
18015 # Source tree
18016 echo "$srcdir/$f"
18017 else
18018 # /dev/null tree
18019 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18020 echo "$as_me: error: cannot find input file: $f" >&2;}
18021 { (exit 1); exit 1; }; }
18022 fi;;
18023 esac
18024 done` || { (exit 1); exit 1; }
18025 _ACEOF
18026 cat >>$CONFIG_STATUS <<_ACEOF
18027 sed "$ac_vpsub
18028 $extrasub
18029 _ACEOF
18030 cat >>$CONFIG_STATUS <<\_ACEOF
18031 :t
18032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18033 s,@configure_input@,$configure_input,;t t
18034 s,@srcdir@,$ac_srcdir,;t t
18035 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18036 s,@top_srcdir@,$ac_top_srcdir,;t t
18037 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18038 s,@builddir@,$ac_builddir,;t t
18039 s,@abs_builddir@,$ac_abs_builddir,;t t
18040 s,@top_builddir@,$ac_top_builddir,;t t
18041 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18042 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18043 rm -f $tmp/stdin
18044 if test x"$ac_file" != x-; then
18045 mv $tmp/out $ac_file
18046 else
18047 cat $tmp/out
18048 rm -f $tmp/out
18049 fi
18050
18051 # Run the commands associated with the file.
18052 case $ac_file in
18053 as ) chmod +x as ;;
18054 collect-ld ) chmod +x collect-ld ;;
18055 nm ) chmod +x nm ;;
18056 esac
18057 done
18058 _ACEOF
18059 cat >>$CONFIG_STATUS <<\_ACEOF
18060
18061 #
18062 # CONFIG_HEADER section.
18063 #
18064
18065 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18066 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18067 #
18068 # ac_d sets the value in "#define NAME VALUE" lines.
18069 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18070 ac_dB='[ ].*$,\1#\2'
18071 ac_dC=' '
18072 ac_dD=',;t'
18073 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18074 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18075 ac_uB='$,\1#\2define\3'
18076 ac_uC=' '
18077 ac_uD=',;t'
18078
18079 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18081 case $ac_file in
18082 - | *:- | *:-:* ) # input from stdin
18083 cat >$tmp/stdin
18084 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18086 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18088 * ) ac_file_in=$ac_file.in ;;
18089 esac
18090
18091 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18092 echo "$as_me: creating $ac_file" >&6;}
18093
18094 # First look for the input files in the build tree, otherwise in the
18095 # src tree.
18096 ac_file_inputs=`IFS=:
18097 for f in $ac_file_in; do
18098 case $f in
18099 -) echo $tmp/stdin ;;
18100 [\\/$]*)
18101 # Absolute (can't be DOS-style, as IFS=:)
18102 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18103 echo "$as_me: error: cannot find input file: $f" >&2;}
18104 { (exit 1); exit 1; }; }
18105 # Do quote $f, to prevent DOS paths from being IFS'd.
18106 echo "$f";;
18107 *) # Relative
18108 if test -f "$f"; then
18109 # Build tree
18110 echo "$f"
18111 elif test -f "$srcdir/$f"; then
18112 # Source tree
18113 echo "$srcdir/$f"
18114 else
18115 # /dev/null tree
18116 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18117 echo "$as_me: error: cannot find input file: $f" >&2;}
18118 { (exit 1); exit 1; }; }
18119 fi;;
18120 esac
18121 done` || { (exit 1); exit 1; }
18122 # Remove the trailing spaces.
18123 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18124
18125 _ACEOF
18126
18127 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18128 # `conftest.undefs', that substitutes the proper values into
18129 # config.h.in to produce config.h. The first handles `#define'
18130 # templates, and the second `#undef' templates.
18131 # And first: Protect against being on the right side of a sed subst in
18132 # config.status. Protect against being in an unquoted here document
18133 # in config.status.
18134 rm -f conftest.defines conftest.undefs
18135 # Using a here document instead of a string reduces the quoting nightmare.
18136 # Putting comments in sed scripts is not portable.
18137 #
18138 # `end' is used to avoid that the second main sed command (meant for
18139 # 0-ary CPP macros) applies to n-ary macro definitions.
18140 # See the Autoconf documentation for `clear'.
18141 cat >confdef2sed.sed <<\_ACEOF
18142 s/[\\&,]/\\&/g
18143 s,[\\$`],\\&,g
18144 t clear
18145 : clear
18146 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18147 t end
18148 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18149 : end
18150 _ACEOF
18151 # If some macros were called several times there might be several times
18152 # the same #defines, which is useless. Nevertheless, we may not want to
18153 # sort them, since we want the *last* AC-DEFINE to be honored.
18154 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18155 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18156 rm -f confdef2sed.sed
18157
18158 # This sed command replaces #undef with comments. This is necessary, for
18159 # example, in the case of _POSIX_SOURCE, which is predefined and required
18160 # on some systems where configure will not decide to define it.
18161 cat >>conftest.undefs <<\_ACEOF
18162 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18163 _ACEOF
18164
18165 # Break up conftest.defines because some shells have a limit on the size
18166 # of here documents, and old seds have small limits too (100 cmds).
18167 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18168 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18169 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18170 echo ' :' >>$CONFIG_STATUS
18171 rm -f conftest.tail
18172 while grep . conftest.defines >/dev/null
18173 do
18174 # Write a limited-size here document to $tmp/defines.sed.
18175 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18176 # Speed up: don't consider the non `#define' lines.
18177 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18178 # Work around the forget-to-reset-the-flag bug.
18179 echo 't clr' >>$CONFIG_STATUS
18180 echo ': clr' >>$CONFIG_STATUS
18181 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18182 echo 'CEOF
18183 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18184 rm -f $tmp/in
18185 mv $tmp/out $tmp/in
18186 ' >>$CONFIG_STATUS
18187 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18188 rm -f conftest.defines
18189 mv conftest.tail conftest.defines
18190 done
18191 rm -f conftest.defines
18192 echo ' fi # grep' >>$CONFIG_STATUS
18193 echo >>$CONFIG_STATUS
18194
18195 # Break up conftest.undefs because some shells have a limit on the size
18196 # of here documents, and old seds have small limits too (100 cmds).
18197 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18198 rm -f conftest.tail
18199 while grep . conftest.undefs >/dev/null
18200 do
18201 # Write a limited-size here document to $tmp/undefs.sed.
18202 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18203 # Speed up: don't consider the non `#undef'
18204 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18205 # Work around the forget-to-reset-the-flag bug.
18206 echo 't clr' >>$CONFIG_STATUS
18207 echo ': clr' >>$CONFIG_STATUS
18208 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18209 echo 'CEOF
18210 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18211 rm -f $tmp/in
18212 mv $tmp/out $tmp/in
18213 ' >>$CONFIG_STATUS
18214 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18215 rm -f conftest.undefs
18216 mv conftest.tail conftest.undefs
18217 done
18218 rm -f conftest.undefs
18219
18220 cat >>$CONFIG_STATUS <<\_ACEOF
18221 # Let's still pretend it is `configure' which instantiates (i.e., don't
18222 # use $as_me), people would be surprised to read:
18223 # /* config.h. Generated by config.status. */
18224 if test x"$ac_file" = x-; then
18225 echo "/* Generated by configure. */" >$tmp/config.h
18226 else
18227 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18228 fi
18229 cat $tmp/in >>$tmp/config.h
18230 rm -f $tmp/in
18231 if test x"$ac_file" != x-; then
18232 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18233 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18234 echo "$as_me: $ac_file is unchanged" >&6;}
18235 else
18236 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18238 X"$ac_file" : 'X\(//\)[^/]' \| \
18239 X"$ac_file" : 'X\(//\)$' \| \
18240 X"$ac_file" : 'X\(/\)' \| \
18241 . : '\(.\)' 2>/dev/null ||
18242 echo X"$ac_file" |
18243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18245 /^X\(\/\/\)$/{ s//\1/; q; }
18246 /^X\(\/\).*/{ s//\1/; q; }
18247 s/.*/./; q'`
18248 { if $as_mkdir_p; then
18249 mkdir -p "$ac_dir"
18250 else
18251 as_dir="$ac_dir"
18252 as_dirs=
18253 while test ! -d "$as_dir"; do
18254 as_dirs="$as_dir $as_dirs"
18255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18257 X"$as_dir" : 'X\(//\)[^/]' \| \
18258 X"$as_dir" : 'X\(//\)$' \| \
18259 X"$as_dir" : 'X\(/\)' \| \
18260 . : '\(.\)' 2>/dev/null ||
18261 echo X"$as_dir" |
18262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18264 /^X\(\/\/\)$/{ s//\1/; q; }
18265 /^X\(\/\).*/{ s//\1/; q; }
18266 s/.*/./; q'`
18267 done
18268 test ! -n "$as_dirs" || mkdir $as_dirs
18269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18271 { (exit 1); exit 1; }; }; }
18272
18273 rm -f $ac_file
18274 mv $tmp/config.h $ac_file
18275 fi
18276 else
18277 cat $tmp/config.h
18278 rm -f $tmp/config.h
18279 fi
18280 done
18281 _ACEOF
18282 cat >>$CONFIG_STATUS <<\_ACEOF
18283
18284 #
18285 # CONFIG_COMMANDS section.
18286 #
18287 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18288 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18289 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18290 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18291 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292 X"$ac_dest" : 'X\(//\)[^/]' \| \
18293 X"$ac_dest" : 'X\(//\)$' \| \
18294 X"$ac_dest" : 'X\(/\)' \| \
18295 . : '\(.\)' 2>/dev/null ||
18296 echo X"$ac_dest" |
18297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18299 /^X\(\/\/\)$/{ s//\1/; q; }
18300 /^X\(\/\).*/{ s//\1/; q; }
18301 s/.*/./; q'`
18302 { if $as_mkdir_p; then
18303 mkdir -p "$ac_dir"
18304 else
18305 as_dir="$ac_dir"
18306 as_dirs=
18307 while test ! -d "$as_dir"; do
18308 as_dirs="$as_dir $as_dirs"
18309 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18311 X"$as_dir" : 'X\(//\)[^/]' \| \
18312 X"$as_dir" : 'X\(//\)$' \| \
18313 X"$as_dir" : 'X\(/\)' \| \
18314 . : '\(.\)' 2>/dev/null ||
18315 echo X"$as_dir" |
18316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18318 /^X\(\/\/\)$/{ s//\1/; q; }
18319 /^X\(\/\).*/{ s//\1/; q; }
18320 s/.*/./; q'`
18321 done
18322 test ! -n "$as_dirs" || mkdir $as_dirs
18323 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18324 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18325 { (exit 1); exit 1; }; }; }
18326
18327 ac_builddir=.
18328
18329 if test "$ac_dir" != .; then
18330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18331 # A "../" for each directory in $ac_dir_suffix.
18332 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18333 else
18334 ac_dir_suffix= ac_top_builddir=
18335 fi
18336
18337 case $srcdir in
18338 .) # No --srcdir option. We are building in place.
18339 ac_srcdir=.
18340 if test -z "$ac_top_builddir"; then
18341 ac_top_srcdir=.
18342 else
18343 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18344 fi ;;
18345 [\\/]* | ?:[\\/]* ) # Absolute path.
18346 ac_srcdir=$srcdir$ac_dir_suffix;
18347 ac_top_srcdir=$srcdir ;;
18348 *) # Relative path.
18349 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18350 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18351 esac
18352
18353 # Do not use `cd foo && pwd` to compute absolute paths, because
18354 # the directories may not exist.
18355 case `pwd` in
18356 .) ac_abs_builddir="$ac_dir";;
18357 *)
18358 case "$ac_dir" in
18359 .) ac_abs_builddir=`pwd`;;
18360 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18361 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18362 esac;;
18363 esac
18364 case $ac_abs_builddir in
18365 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18366 *)
18367 case ${ac_top_builddir}. in
18368 .) ac_abs_top_builddir=$ac_abs_builddir;;
18369 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18370 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18371 esac;;
18372 esac
18373 case $ac_abs_builddir in
18374 .) ac_abs_srcdir=$ac_srcdir;;
18375 *)
18376 case $ac_srcdir in
18377 .) ac_abs_srcdir=$ac_abs_builddir;;
18378 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18379 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18380 esac;;
18381 esac
18382 case $ac_abs_builddir in
18383 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18384 *)
18385 case $ac_top_srcdir in
18386 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18387 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18388 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18389 esac;;
18390 esac
18391
18392
18393 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18394 echo "$as_me: executing $ac_dest commands" >&6;}
18395 case $ac_dest in
18396 default )
18397 case ${CONFIG_HEADERS} in
18398 *auto-host.h:config.in*)
18399 echo > cstamp-h ;;
18400 esac
18401 # Make sure all the subdirs exist.
18402 for d in $subdirs doc build
18403 do
18404 test -d $d || mkdir $d
18405 done
18406 ;;
18407 esac
18408 done
18409 _ACEOF
18410
18411 cat >>$CONFIG_STATUS <<\_ACEOF
18412
18413 { (exit 0); exit 0; }
18414 _ACEOF
18415 chmod +x $CONFIG_STATUS
18416 ac_clean_files=$ac_clean_files_save
18417
18418
18419 # configure is writing to config.log, and then calls config.status.
18420 # config.status does its own redirection, appending to config.log.
18421 # Unfortunately, on DOS this fails, as config.log is still kept open
18422 # by configure, so config.status won't be able to write to it; its
18423 # output is simply discarded. So we exec the FD to /dev/null,
18424 # effectively closing config.log, so it can be properly (re)opened and
18425 # appended to by config.status. When coming back to configure, we
18426 # need to make the FD available again.
18427 if test "$no_create" != yes; then
18428 ac_cs_success=:
18429 ac_config_status_args=
18430 test "$silent" = yes &&
18431 ac_config_status_args="$ac_config_status_args --quiet"
18432 exec 5>/dev/null
18433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18434 exec 5>>config.log
18435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18436 # would make configure fail if this is the last instruction.
18437 $ac_cs_success || { (exit 1); exit 1; }
18438 fi
18439