]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac: Rearrange some threading code for clarity; add section comment.
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link 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 target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='language_hooks'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832
833 Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-generated-files-in-srcdir
853 put copies of generated files in source dir
854 intended for creating source tarballs for users
855 without texinfo bison or flex.
856 --enable-werror enable -Werror in bootstrap stage2 and later
857 --enable-checking=LIST
858 enable expensive run-time checks. With LIST,
859 enable only specific categories of checks.
860 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
861 default is misc,tree,gc,rtlflag
862 --enable-coverage=LEVEL
863 enable compiler\'s code coverage collection.
864 Use to measure compiler performance and locate
865 unused parts of the compiler. With LEVEL, specify
866 optimization. Values are opt, noopt,
867 default is noopt
868 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
869 --enable-multilib enable library support for multiple ABIs
870 --enable-__cxa_atexit enable __cxa_atexit for C++
871 --enable-threads enable thread usage for target GCC
872 --enable-threads=LIB use LIB thread package for target GCC
873 --enable-objc-gc enable the use of Boehm's garbage collector with
874 the GNU Objective-C runtime
875 --disable-shared don't provide a shared libgcc
876 --enable-intermodule build the compiler in one step
877 --enable-initfini-array use .init_array/.fini_array sections
878 --enable-sjlj-exceptions
879 arrange to use setjmp/longjmp exception handling
880 --enable-libunwind-exceptions force use libunwind for exceptions
881 --disable-win32-registry
882 disable lookup of installation paths in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup (default)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
887 of the registry key
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed in a compiler-specific directory
894
895 Optional Packages:
896 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
897 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
898 --with-local-prefix=DIR specifies directory to put local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor in DIR
903 (relative to PREFIX) as well as PREFIX/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld (full pathname)
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as (full pathname)
908 --with-stabs arrange to use stabs instead of host debug format
909 --with-dwarf2 force the default debug format to be DWARF 2
910 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
911 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
912 --with-gc={page,zone} choose the garbage collection mechanism to use
913 with the compiler
914 --with-system-zlib use installed libz
915 --with-slibdir=DIR shared libraries in DIR LIBDIR
916
917 Some influential environment variables:
918 CC C compiler command
919 CFLAGS C compiler flags
920 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
921 nonstandard directory <lib dir>
922 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
923 headers in a nonstandard directory <include dir>
924 CPP C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
934 ac_popdir=`pwd`
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
937 ac_builddir=.
938
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944 ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948 .) # No --srcdir option. We are building in place.
949 ac_srcdir=.
950 if test -z "$ac_top_builddir"; then
951 ac_top_srcdir=.
952 else
953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 fi ;;
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
958 *) # Relative path.
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 fi
984 cd "$ac_popdir"
985 done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997 exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1006
1007 $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024
1025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067 for ac_arg
1068 do
1069 case $ac_arg in
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 continue ;;
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 esac
1077 case $ac_pass in
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 2)
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1083 else
1084 case $ac_arg in
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 esac
1092 ;;
1093 -* ) ac_must_keep_next=true ;;
1094 esac
1095 fi
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1098 ac_sep=" "
1099 ;;
1100 esac
1101 done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1113 {
1114 echo
1115
1116 cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121 echo
1122 # The following way of writing the cache mishandles newlines in values,
1123 {
1124 (set) 2>&1 |
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 *ac_space=\ *)
1127 sed -n \
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 ;;
1131 *)
1132 sed -n \
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 ;;
1135 esac;
1136 }
1137 echo
1138
1139 cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_vars
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151
1152 if test -n "$ac_subst_files"; then
1153 cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158 echo
1159 for ac_var in $ac_subst_files
1160 do
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1165 fi
1166
1167 if test -s confdefs.h; then
1168 cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173 echo
1174 sed "/^$/d" confdefs.h | sort
1175 echo
1176 fi
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1180 } >&5
1181 rm -f core *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 exit $exit_status
1184 ' 0
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 else
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1236 . "$ac_site_file"
1237 fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1250 fi
1251 else
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1267 set,)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,set)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,);;
1276 *)
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1285 fi;;
1286 esac
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1289 case $ac_new_val in
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1293 esac
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 esac
1298 fi
1299 done
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1334
1335
1336 # Determine the host, build, and target systems
1337 ac_aux_dir=
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 break
1343 elif test -f $ac_dir/install.sh; then
1344 ac_aux_dir=$ac_dir
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 break
1347 elif test -f $ac_dir/shtool; then
1348 ac_aux_dir=$ac_dir
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 break
1351 fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362 # Make sure we can run config.sub.
1363 $ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1367
1368 echo "$as_me:$LINENO: checking build system type" >&5
1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370 if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_build_alias=$build_alias
1374 test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376 test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1384
1385 fi
1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387 echo "${ECHO_T}$ac_cv_build" >&6
1388 build=$ac_cv_build
1389 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1390 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1391 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392
1393
1394 echo "$as_me:$LINENO: checking host system type" >&5
1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396 if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_host_alias=$host_alias
1400 test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407 fi
1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409 echo "${ECHO_T}$ac_cv_host" >&6
1410 host=$ac_cv_host
1411 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1412 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1413 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1414
1415
1416 echo "$as_me:$LINENO: checking target system type" >&5
1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418 if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 ac_cv_target_alias=$target_alias
1422 test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1428
1429 fi
1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431 echo "${ECHO_T}$ac_cv_target" >&6
1432 target=$ac_cv_target
1433 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1434 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1435 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1436
1437
1438 # The aliases save the names the user supplied, while $host etc.
1439 # will get canonicalized.
1440 test -n "$target_alias" &&
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1442 NONENONEs,x,x, &&
1443 program_prefix=${target_alias}-
1444
1445 # Determine the noncanonical target name, for directory use.
1446 case ${build_alias} in
1447 "") build_noncanonical=${build} ;;
1448 *) build_noncanonical=${build_alias} ;;
1449 esac
1450
1451 case ${host_alias} in
1452 "") host_noncanonical=${build_noncanonical} ;;
1453 *) host_noncanonical=${host_alias} ;;
1454 esac
1455
1456 case ${target_alias} in
1457 "") target_noncanonical=${host_noncanonical} ;;
1458 *) target_noncanonical=${target_alias} ;;
1459 esac
1460
1461
1462 # Determine the target- and build-specific subdirectories
1463 # Prefix 'build-' so this never conflicts with target_subdir.
1464 build_subdir="build-${build_noncanonical}"
1465 # Not really a subdirectory, but here for completeness.
1466 host_subdir=.
1467 # No prefix.
1468 target_subdir=${target_noncanonical}
1469
1470
1471 # Set program_transform_name
1472 test "$program_prefix" != NONE &&
1473 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1474 # Use a double $ so make ignores it.
1475 test "$program_suffix" != NONE &&
1476 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1477 # Double any \ or $. echo might interpret backslashes.
1478 # By default was `s,x,x', remove it if useless.
1479 cat <<\_ACEOF >conftest.sed
1480 s/[\\$]/&&/g;s/;s,x,x,$//
1481 _ACEOF
1482 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483 rm conftest.sed
1484
1485
1486 # Check for bogus environment variables.
1487 # Test if LIBRARY_PATH contains the notation for the current directory
1488 # since this would lead to problems installing/building glibc.
1489 # LIBRARY_PATH contains the current directory if one of the following
1490 # is true:
1491 # - one of the terminals (":" and ";") is the first or last sign
1492 # - two terminals occur directly after each other
1493 # - the path contains an element with a dot in it
1494 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1495 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1496 case ${LIBRARY_PATH} in
1497 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1498 library_path_setting="contains current directory"
1499 ;;
1500 *)
1501 library_path_setting="ok"
1502 ;;
1503 esac
1504 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1505 echo "${ECHO_T}$library_path_setting" >&6
1506 if test "$library_path_setting" != "ok"; then
1507 { { echo "$as_me:$LINENO: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&5
1511 echo "$as_me: error:
1512 *** LIBRARY_PATH shouldn't contain the current directory when
1513 *** building gcc. Please change the environment variable
1514 *** and run configure again." >&2;}
1515 { (exit 1); exit 1; }; }
1516 fi
1517
1518 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1519 # since this would lead to problems installing/building glibc.
1520 # GCC_EXEC_PREFIX contains the current directory if one of the following
1521 # is true:
1522 # - one of the terminals (":" and ";") is the first or last sign
1523 # - two terminals occur directly after each other
1524 # - the path contains an element with a dot in it
1525 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1526 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1527 case ${GCC_EXEC_PREFIX} in
1528 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1529 gcc_exec_prefix_setting="contains current directory"
1530 ;;
1531 *)
1532 gcc_exec_prefix_setting="ok"
1533 ;;
1534 esac
1535 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1536 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1537 if test "$gcc_exec_prefix_setting" != "ok"; then
1538 { { echo "$as_me:$LINENO: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&5
1542 echo "$as_me: error:
1543 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&2;}
1546 { (exit 1); exit 1; }; }
1547 fi
1548
1549 # -----------
1550 # Directories
1551 # -----------
1552
1553 # Specify the local prefix
1554 local_prefix=
1555
1556 # Check whether --with-local-prefix or --without-local-prefix was given.
1557 if test "${with_local_prefix+set}" = set; then
1558 withval="$with_local_prefix"
1559 case "${withval}" in
1560 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1561 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1563 no) ;;
1564 *) local_prefix=$with_local_prefix ;;
1565 esac
1566 fi;
1567
1568 # Default local prefix if it is empty
1569 if test x$local_prefix = x; then
1570 local_prefix=/usr/local
1571 fi
1572
1573 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1574 # passed in by the toplevel make and thus we'd get different behavior
1575 # depending on where we built the sources.
1576 gcc_gxx_include_dir=
1577 # Specify the g++ header file directory
1578
1579 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1580 if test "${with_gxx_include_dir+set}" = set; then
1581 withval="$with_gxx_include_dir"
1582 case "${withval}" in
1583 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1584 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1585 { (exit 1); exit 1; }; } ;;
1586 no) ;;
1587 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1588 esac
1589 fi;
1590
1591 if test x${gcc_gxx_include_dir} = x; then
1592 if test x${enable_version_specific_runtime_libs} = xyes; then
1593 gcc_gxx_include_dir='${libsubdir}/include/c++'
1594 else
1595 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1596 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1597 fi
1598 fi
1599
1600
1601 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1602 if test "${with_cpp_install_dir+set}" = set; then
1603 withval="$with_cpp_install_dir"
1604 if test x$withval = xyes; then
1605 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1606 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1607 { (exit 1); exit 1; }; }
1608 elif test x$withval != xno; then
1609 cpp_install_dir=$withval
1610 fi
1611 fi;
1612
1613 # We would like to our source tree to be readonly. However when releases or
1614 # pre-releases are generated, the flex/bison generated files as well as the
1615 # various formats of manuals need to be included along with the rest of the
1616 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1617 # just that.
1618
1619 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1620 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1621 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1622 if test "${enable_generated_files_in_srcdir+set}" = set; then
1623 enableval="$enable_generated_files_in_srcdir"
1624 generated_files_in_srcdir=$enableval
1625 else
1626 generated_files_in_srcdir=no
1627 fi;
1628
1629 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1630 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1631
1632 if test "$generated_files_in_srcdir" = "yes"; then
1633 GENINSRC=''
1634 else
1635 GENINSRC='#'
1636 fi
1637
1638
1639 # -------------------
1640 # Find default linker
1641 # -------------------
1642
1643 # With GNU ld
1644
1645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1646 if test "${with_gnu_ld+set}" = set; then
1647 withval="$with_gnu_ld"
1648 gnu_ld_flag="$with_gnu_ld"
1649 else
1650 gnu_ld_flag=no
1651 fi;
1652
1653 # With pre-defined ld
1654
1655 # Check whether --with-ld or --without-ld was given.
1656 if test "${with_ld+set}" = set; then
1657 withval="$with_ld"
1658 DEFAULT_LINKER="$with_ld"
1659 fi;
1660 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1661 if test ! -x "$DEFAULT_LINKER"; then
1662 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1663 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1664 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1665 gnu_ld_flag=yes
1666 fi
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1670 _ACEOF
1671
1672 fi
1673
1674 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1675 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1676 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1677 if test x"$gnu_ld_flag" = x"no"; then
1678 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1679 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1680 else
1681 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1682 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1683 fi
1684 else
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689 # ----------------------
1690 # Find default assembler
1691 # ----------------------
1692
1693 # With GNU as
1694
1695 # Check whether --with-gnu-as or --without-gnu-as was given.
1696 if test "${with_gnu_as+set}" = set; then
1697 withval="$with_gnu_as"
1698 gas_flag="$with_gnu_as"
1699 else
1700 gas_flag=no
1701 fi;
1702
1703
1704 # Check whether --with-as or --without-as was given.
1705 if test "${with_as+set}" = set; then
1706 withval="$with_as"
1707 DEFAULT_ASSEMBLER="$with_as"
1708 fi;
1709 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1710 if test ! -x "$DEFAULT_ASSEMBLER"; then
1711 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1712 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1713 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1714 gas_flag=yes
1715 fi
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1719 _ACEOF
1720
1721 fi
1722
1723 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1724 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1725 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1726 if test x"$gas_flag" = x"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1729 else
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1732 fi
1733 else
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 # ---------------
1739 # Find C compiler
1740 # ---------------
1741
1742 # If a non-executable a.out is present (e.g. created by GNU as above even if
1743 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1744 # file, even when creating an executable, so an execution test fails.
1745 # Remove possible default executable files to avoid this.
1746 #
1747 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1748 # Autoconf includes it.
1749 rm -f a.out a.exe b.out
1750
1751 # Find the native compiler
1752 ac_ext=c
1753 ac_cpp='$CPP $CPPFLAGS'
1754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 CC=$ac_cv_prog_CC
1785 if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787 echo "${ECHO_T}$CC" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793 fi
1794 if test -z "$ac_cv_prog_CC"; then
1795 ac_ct_CC=$CC
1796 # Extract the first word of "gcc", so it can be a program name with args.
1797 set dummy gcc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC="gcc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 break 2
1816 fi
1817 done
1818 done
1819
1820 fi
1821 fi
1822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823 if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825 echo "${ECHO_T}$ac_ct_CC" >&6
1826 else
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 fi
1830
1831 CC=$ac_ct_CC
1832 else
1833 CC="$ac_cv_prog_CC"
1834 fi
1835
1836 if test -z "$CC"; then
1837 if test -n "$ac_tool_prefix"; then
1838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1839 set dummy ${ac_tool_prefix}cc; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
1850 do
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_CC="${ac_tool_prefix}cc"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1858 fi
1859 done
1860 done
1861
1862 fi
1863 fi
1864 CC=$ac_cv_prog_CC
1865 if test -n "$CC"; then
1866 echo "$as_me:$LINENO: result: $CC" >&5
1867 echo "${ECHO_T}$CC" >&6
1868 else
1869 echo "$as_me:$LINENO: result: no" >&5
1870 echo "${ECHO_T}no" >&6
1871 fi
1872
1873 fi
1874 if test -z "$ac_cv_prog_CC"; then
1875 ac_ct_CC=$CC
1876 # Extract the first word of "cc", so it can be a program name with args.
1877 set dummy cc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_ac_ct_CC="cc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1896 fi
1897 done
1898 done
1899
1900 fi
1901 fi
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1909 fi
1910
1911 CC=$ac_ct_CC
1912 else
1913 CC="$ac_cv_prog_CC"
1914 fi
1915
1916 fi
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928 ac_prog_rejected=no
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected=yes
1938 continue
1939 fi
1940 ac_cv_prog_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944 done
1945 done
1946
1947 if test $ac_prog_rejected = yes; then
1948 # We found a bogon in the path, so make sure we never use it.
1949 set dummy $ac_cv_prog_CC
1950 shift
1951 if test $# != 0; then
1952 # We chose a different compiler from the bogus one.
1953 # However, it has the same basename, so the bogon will be chosen
1954 # first if we set CC to just the basename; use the full file name.
1955 shift
1956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1957 fi
1958 fi
1959 fi
1960 fi
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970 fi
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 for ac_prog in cl
1974 do
1975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_CC+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982 if test -n "$CC"; then
1983 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988 IFS=$as_save_IFS
1989 test -z "$as_dir" && as_dir=.
1990 for ac_exec_ext in '' $ac_executable_extensions; do
1991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994 break 2
1995 fi
1996 done
1997 done
1998
1999 fi
2000 fi
2001 CC=$ac_cv_prog_CC
2002 if test -n "$CC"; then
2003 echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6
2005 else
2006 echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6
2008 fi
2009
2010 test -n "$CC" && break
2011 done
2012 fi
2013 if test -z "$CC"; then
2014 ac_ct_CC=$CC
2015 for ac_prog in cl
2016 do
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 else
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 else
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 break 2
2037 fi
2038 done
2039 done
2040
2041 fi
2042 fi
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6
2047 else
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2050 fi
2051
2052 test -n "$ac_ct_CC" && break
2053 done
2054
2055 CC=$ac_ct_CC
2056 fi
2057
2058 fi
2059
2060
2061 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: no acceptable C compiler found in \$PATH
2064 See \`config.log' for more details." >&2;}
2065 { (exit 1); exit 1; }; }
2066
2067 # Provide some information about the compiler.
2068 echo "$as_me:$LINENO:" \
2069 "checking for C compiler version" >&5
2070 ac_compiler=`set X $ac_compile; echo $2`
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072 (eval $ac_compiler --version </dev/null >&5) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }
2076 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077 (eval $ac_compiler -v </dev/null >&5) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082 (eval $ac_compiler -V </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086
2087 cat >conftest.$ac_ext <<_ACEOF
2088 #line $LINENO "configure"
2089 /* confdefs.h. */
2090 _ACEOF
2091 cat confdefs.h >>conftest.$ac_ext
2092 cat >>conftest.$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2094
2095 int
2096 main ()
2097 {
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 ac_clean_files_save=$ac_clean_files
2104 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2105 # Try to create an executable without -o first, disregard a.out.
2106 # It will help us diagnose broken compilers, and finding out an intuition
2107 # of exeext.
2108 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2109 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2110 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2111 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2112 (eval $ac_link_default) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; then
2116 # Find the output, starting from the most likely. This scheme is
2117 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118 # resort.
2119
2120 # Be careful to initialize this variable, since it used to be cached.
2121 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2122 ac_cv_exeext=
2123 # b.out is created by i960 compilers.
2124 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2125 do
2126 test -f "$ac_file" || continue
2127 case $ac_file in
2128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129 ;;
2130 conftest.$ac_ext )
2131 # This is the source file.
2132 ;;
2133 [ab].out )
2134 # We found the default executable, but exeext='' is most
2135 # certainly right.
2136 break;;
2137 *.* )
2138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139 # FIXME: I believe we export ac_cv_exeext for Libtool,
2140 # but it would be cool to find out if it's true. Does anybody
2141 # maintain Libtool? --akim.
2142 export ac_cv_exeext
2143 break;;
2144 * )
2145 break;;
2146 esac
2147 done
2148 else
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2151
2152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: C compiler cannot create executables
2155 See \`config.log' for more details." >&2;}
2156 { (exit 77); exit 77; }; }
2157 fi
2158
2159 ac_exeext=$ac_cv_exeext
2160 echo "$as_me:$LINENO: result: $ac_file" >&5
2161 echo "${ECHO_T}$ac_file" >&6
2162
2163 # Check the compiler produces executables we can run. If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2168 # If not cross compiling, check that we can run a simple program.
2169 if test "$cross_compiling" != yes; then
2170 if { ac_try='./$ac_file'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; }; then
2176 cross_compiling=no
2177 else
2178 if test "$cross_compiling" = maybe; then
2179 cross_compiling=yes
2180 else
2181 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2182 If you meant to cross compile, use \`--host'.
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot run C compiled programs.
2185 If you meant to cross compile, use \`--host'.
2186 See \`config.log' for more details." >&2;}
2187 { (exit 1); exit 1; }; }
2188 fi
2189 fi
2190 fi
2191 echo "$as_me:$LINENO: result: yes" >&5
2192 echo "${ECHO_T}yes" >&6
2193
2194 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2195 ac_clean_files=$ac_clean_files_save
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2199 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2200 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2201 echo "${ECHO_T}$cross_compiling" >&6
2202
2203 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2204 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2206 (eval $ac_link) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2212 # work properly (i.e., refer to `conftest.exe'), while it won't with
2213 # `rm'.
2214 for ac_file in conftest.exe conftest conftest.*; do
2215 test -f "$ac_file" || continue
2216 case $ac_file in
2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2219 export ac_cv_exeext
2220 break;;
2221 * ) break;;
2222 esac
2223 done
2224 else
2225 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2228 See \`config.log' for more details." >&2;}
2229 { (exit 1); exit 1; }; }
2230 fi
2231
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2235
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2238 ac_exeext=$EXEEXT
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h. */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2251
2252 int
2253 main ()
2254 {
2255
2256 ;
2257 return 0;
2258 }
2259 _ACEOF
2260 rm -f conftest.o conftest.obj
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2267 case $ac_file in
2268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2270 break;;
2271 esac
2272 done
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2280 See \`config.log' for more details." >&2;}
2281 { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2287 echo "${ECHO_T}$ac_cv_objext" >&6
2288 OBJEXT=$ac_cv_objext
2289 ac_objext=$OBJEXT
2290 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2291 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2292 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2302
2303 int
2304 main ()
2305 {
2306 #ifndef __GNUC__
2307 choke me
2308 #endif
2309
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 ac_compiler_gnu=yes
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 ac_compiler_gnu=no
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
2336 fi
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2342 CFLAGS="-g"
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 /* confdefs.h. */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2355
2356 int
2357 main ()
2358 {
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 (eval $ac_try) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2376 ac_cv_prog_cc_g=yes
2377 else
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388 CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390 if test "$GCC" = yes; then
2391 CFLAGS="-g -O2"
2392 else
2393 CFLAGS="-g"
2394 fi
2395 else
2396 if test "$GCC" = yes; then
2397 CFLAGS="-O2"
2398 else
2399 CFLAGS=
2400 fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 #line $LINENO "configure"
2411 /* confdefs.h. */
2412 _ACEOF
2413 cat confdefs.h >>conftest.$ac_ext
2414 cat >>conftest.$ac_ext <<_ACEOF
2415 /* end confdefs.h. */
2416 #include <stdarg.h>
2417 #include <stdio.h>
2418 #include <sys/types.h>
2419 #include <sys/stat.h>
2420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2421 struct buf { int x; };
2422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2423 static char *e (p, i)
2424 char **p;
2425 int i;
2426 {
2427 return p[i];
2428 }
2429 static char *f (char * (*g) (char **, int), char **p, ...)
2430 {
2431 char *s;
2432 va_list v;
2433 va_start (v,p);
2434 s = g (p, va_arg (v,int));
2435 va_end (v);
2436 return s;
2437 }
2438 int test (int i, double x);
2439 struct s1 {int (*f) (int a);};
2440 struct s2 {int (*f) (double a);};
2441 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2442 int argc;
2443 char **argv;
2444 int
2445 main ()
2446 {
2447 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2448 ;
2449 return 0;
2450 }
2451 _ACEOF
2452 # Don't try gcc -ansi; that turns off useful extensions and
2453 # breaks some systems' header files.
2454 # AIX -qlanglvl=ansi
2455 # Ultrix and OSF/1 -std1
2456 # HP-UX 10.20 and later -Ae
2457 # HP-UX older versions -Aa -D_HPUX_SOURCE
2458 # SVR4 -Xc -D__EXTENSIONS__
2459 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2460 do
2461 CC="$ac_save_CC $ac_arg"
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 ac_cv_prog_cc_stdc=$ac_arg
2475 break
2476 else
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 fi
2481 rm -f conftest.$ac_objext
2482 done
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2484 CC=$ac_save_CC
2485
2486 fi
2487
2488 case "x$ac_cv_prog_cc_stdc" in
2489 x|xno)
2490 echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2492 *)
2493 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495 CC="$CC $ac_cv_prog_cc_stdc" ;;
2496 esac
2497
2498 # Some people use a C++ compiler to compile C. Since we use `exit',
2499 # in C++ we need to declare it. In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #ifndef __cplusplus
2504 choke me
2505 #endif
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 for ac_declaration in \
2520 '' \
2521 'extern "C" void std::exit (int) throw (); using std::exit;' \
2522 'extern "C" void std::exit (int); using std::exit;' \
2523 'extern "C" void exit (int) throw ();' \
2524 'extern "C" void exit (int);' \
2525 'void exit (int);'
2526 do
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 $ac_declaration
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539 exit (42);
2540 ;
2541 return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552 (eval $ac_try) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 :
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 continue
2562 fi
2563 rm -f conftest.$ac_objext conftest.$ac_ext
2564 cat >conftest.$ac_ext <<_ACEOF
2565 #line $LINENO "configure"
2566 /* confdefs.h. */
2567 _ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2571 $ac_declaration
2572 int
2573 main ()
2574 {
2575 exit (42);
2576 ;
2577 return 0;
2578 }
2579 _ACEOF
2580 rm -f conftest.$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 break
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2596
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 done
2600 rm -f conftest*
2601 if test -n "$ac_declaration"; then
2602 echo '#ifdef __cplusplus' >>confdefs.h
2603 echo $ac_declaration >>confdefs.h
2604 echo '#endif' >>confdefs.h
2605 fi
2606
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 fi
2612 rm -f conftest.$ac_objext conftest.$ac_ext
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619 if test "x$CC" != xcc; then
2620 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2621 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2622 else
2623 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2624 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2625 fi
2626 set dummy $CC; ac_cc=`echo $2 |
2627 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2628 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638
2639 int
2640 main ()
2641 {
2642
2643 ;
2644 return 0;
2645 }
2646 _ACEOF
2647 # Make sure it works both with $CC and with simple cc.
2648 # We do the test twice because some compilers refuse to overwrite an
2649 # existing .o file with -o, though they will create one.
2650 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2651 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } &&
2656 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); };
2661 then
2662 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2663 if test "x$CC" != xcc; then
2664 # Test first that cc exists at all.
2665 if { ac_try='cc -c conftest.$ac_ext >&5'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2672 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); };
2682 then
2683 # cc works too.
2684 :
2685 else
2686 # cc exists but doesn't like -o.
2687 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2688 fi
2689 fi
2690 fi
2691 else
2692 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2693 fi
2694 rm -f conftest*
2695
2696 fi
2697 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2698 echo "$as_me:$LINENO: result: yes" >&5
2699 echo "${ECHO_T}yes" >&6
2700 else
2701 echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2703
2704 cat >>confdefs.h <<\_ACEOF
2705 #define NO_MINUS_C_MINUS_O 1
2706 _ACEOF
2707
2708 fi
2709
2710 # autoconf is lame and doesn't give us any substitution variable for this.
2711 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2712 NO_MINUS_C_MINUS_O=yes
2713 else
2714 OUTPUT_OPTION='-o $@'
2715 fi
2716
2717
2718
2719 # -------------------------
2720 # Check C compiler features
2721 # -------------------------
2722
2723
2724 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2725 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2726 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 save_CFLAGS="$CFLAGS"
2730 CFLAGS="-Wno-long-long"
2731 cat >conftest.$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738
2739 int
2740 main ()
2741 {
2742
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>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 (eval $ac_try) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_no_long_long=yes
2760 else
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 ac_cv_prog_cc_no_long_long=no
2765 fi
2766 rm -f conftest.$ac_objext conftest.$ac_ext
2767 CFLAGS="$save_CFLAGS"
2768 fi
2769 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2778 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2779 # On Suns, sometimes $CPP names a directory.
2780 if test -n "$CPP" && test -d "$CPP"; then
2781 CPP=
2782 fi
2783 if test -z "$CPP"; then
2784 if test "${ac_cv_prog_CPP+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 # Double quotes because CPP needs to be expanded
2788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2789 do
2790 ac_preproc_ok=false
2791 for ac_c_preproc_warn_flag in '' yes
2792 do
2793 # Use a header file that comes with gcc, so configuring glibc
2794 # with a fresh cross-compiler works.
2795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2796 # <limits.h> exists even on freestanding compilers.
2797 # On the NeXT, cc -E runs the code through the compiler's parser,
2798 # not just through cpp. "Syntax error" is here to catch this case.
2799 cat >conftest.$ac_ext <<_ACEOF
2800 #line $LINENO "configure"
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 #ifdef __STDC__
2807 # include <limits.h>
2808 #else
2809 # include <assert.h>
2810 #endif
2811 Syntax error
2812 _ACEOF
2813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } >/dev/null; then
2821 if test -s conftest.err; then
2822 ac_cpp_err=$ac_c_preproc_warn_flag
2823 else
2824 ac_cpp_err=
2825 fi
2826 else
2827 ac_cpp_err=yes
2828 fi
2829 if test -z "$ac_cpp_err"; then
2830 :
2831 else
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2834
2835 # Broken: fails on valid input.
2836 continue
2837 fi
2838 rm -f conftest.err conftest.$ac_ext
2839
2840 # OK, works on sane cases. Now check whether non-existent headers
2841 # can be detected and how.
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line $LINENO "configure"
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <ac_nonexistent.h>
2850 _ACEOF
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2861 else
2862 ac_cpp_err=
2863 fi
2864 else
2865 ac_cpp_err=yes
2866 fi
2867 if test -z "$ac_cpp_err"; then
2868 # Broken: success on invalid input.
2869 continue
2870 else
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 # Passes both tests.
2875 ac_preproc_ok=:
2876 break
2877 fi
2878 rm -f conftest.err conftest.$ac_ext
2879
2880 done
2881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2882 rm -f conftest.err conftest.$ac_ext
2883 if $ac_preproc_ok; then
2884 break
2885 fi
2886
2887 done
2888 ac_cv_prog_CPP=$CPP
2889
2890 fi
2891 CPP=$ac_cv_prog_CPP
2892 else
2893 ac_cv_prog_CPP=$CPP
2894 fi
2895 echo "$as_me:$LINENO: result: $CPP" >&5
2896 echo "${ECHO_T}$CPP" >&6
2897 ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2899 do
2900 # Use a header file that comes with gcc, so configuring glibc
2901 # with a fresh cross-compiler works.
2902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 # <limits.h> exists even on freestanding compilers.
2904 # On the NeXT, cc -E runs the code through the compiler's parser,
2905 # not just through cpp. "Syntax error" is here to catch this case.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #ifdef __STDC__
2914 # include <limits.h>
2915 #else
2916 # include <assert.h>
2917 #endif
2918 Syntax error
2919 _ACEOF
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 else
2931 ac_cpp_err=
2932 fi
2933 else
2934 ac_cpp_err=yes
2935 fi
2936 if test -z "$ac_cpp_err"; then
2937 :
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 # Broken: fails on valid input.
2943 continue
2944 fi
2945 rm -f conftest.err conftest.$ac_ext
2946
2947 # OK, works on sane cases. Now check whether non-existent headers
2948 # can be detected and how.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ac_nonexistent.h>
2957 _ACEOF
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 else
2969 ac_cpp_err=
2970 fi
2971 else
2972 ac_cpp_err=yes
2973 fi
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2976 continue
2977 else
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2984 fi
2985 rm -f conftest.err conftest.$ac_ext
2986
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991 :
2992 else
2993 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2996 See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000 ac_ext=c
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005
3006 echo "$as_me:$LINENO: checking for inline" >&5
3007 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3008 if test "${ac_cv_c_inline+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011 ac_cv_c_inline=no
3012 for ac_kw in inline __inline__ __inline; do
3013 cat >conftest.$ac_ext <<_ACEOF
3014 #line $LINENO "configure"
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #ifndef __cplusplus
3021 typedef int foo_t;
3022 static $ac_kw foo_t static_foo () {return 0; }
3023 $ac_kw foo_t foo () {return 0; }
3024 #endif
3025
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_c_inline=$ac_kw; break
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 fi
3045 rm -f conftest.$ac_objext conftest.$ac_ext
3046 done
3047
3048 fi
3049 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3050 echo "${ECHO_T}$ac_cv_c_inline" >&6
3051 case $ac_cv_c_inline in
3052 inline | yes) ;;
3053 no)
3054 cat >>confdefs.h <<\_ACEOF
3055 #define inline
3056 _ACEOF
3057 ;;
3058 *) cat >>confdefs.h <<_ACEOF
3059 #define inline $ac_cv_c_inline
3060 _ACEOF
3061 ;;
3062 esac
3063
3064
3065 echo "$as_me:$LINENO: checking for long long int" >&5
3066 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3067 if test "${ac_cv_c_long_long+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 else
3070 cat >conftest.$ac_ext <<_ACEOF
3071 #line $LINENO "configure"
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077
3078 int
3079 main ()
3080 {
3081 long long int i;
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088 (eval $ac_compile) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 (eval $ac_try) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; }; then
3098 ac_cv_c_long_long=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 ac_cv_c_long_long=no
3104 fi
3105 rm -f conftest.$ac_objext conftest.$ac_ext
3106 fi
3107 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3108 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3109 if test $ac_cv_c_long_long = yes; then
3110
3111 cat >>confdefs.h <<\_ACEOF
3112 #define HAVE_LONG_LONG 1
3113 _ACEOF
3114
3115 fi
3116 echo "$as_me:$LINENO: checking for __int64" >&5
3117 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3118 if test "${ac_cv_c___int64+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121 cat >conftest.$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128
3129 int
3130 main ()
3131 {
3132 __int64 i;
3133 ;
3134 return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139 (eval $ac_compile) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 (eval $ac_try) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c___int64=yes
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_cv_c___int64=no
3155 fi
3156 rm -f conftest.$ac_objext conftest.$ac_ext
3157 fi
3158 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3159 echo "${ECHO_T}$ac_cv_c___int64" >&6
3160 if test $ac_cv_c___int64 = yes; then
3161
3162 cat >>confdefs.h <<\_ACEOF
3163 #define HAVE___INT64 1
3164 _ACEOF
3165
3166 fi
3167
3168 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3169 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3170 if test "${gcc_cv_c__bool+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line $LINENO "configure"
3175 /* confdefs.h. */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180
3181 int
3182 main ()
3183 {
3184 _Bool foo;
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 (eval $ac_try) 2>&5
3198 ac_status=$?
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 gcc_cv_c__bool=yes
3202 else
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 gcc_cv_c__bool=no
3207 fi
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3209
3210 fi
3211 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3212 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3213 if test $gcc_cv_c__bool = yes; then
3214
3215 cat >>confdefs.h <<\_ACEOF
3216 #define HAVE__BOOL 1
3217 _ACEOF
3218
3219 fi
3220
3221
3222 # sizeof(char) is 1 by definition.
3223 echo "$as_me:$LINENO: checking size of void *" >&5
3224 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3225 if test "${ac_cv_sizeof_void_p+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3229 cat >conftest.$ac_ext <<_ACEOF
3230 #line $LINENO "configure"
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include "confdefs.h"
3237 #include <sys/types.h>
3238
3239
3240 int
3241 main ()
3242 {
3243 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_sizeof_void_p=$ac_size
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 fi
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3267 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3268 done
3269
3270 fi
3271
3272 if test x$ac_cv_sizeof_void_p = x ; then
3273 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3274 echo "$as_me: error: cannot determine a size for void *" >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3278 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3279
3280 cat >>confdefs.h <<_ACEOF
3281 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3282 _ACEOF
3283
3284
3285 echo "$as_me:$LINENO: checking size of short" >&5
3286 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3287 if test "${ac_cv_sizeof_short+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3291 cat >conftest.$ac_ext <<_ACEOF
3292 #line $LINENO "configure"
3293 /* confdefs.h. */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3300
3301
3302 int
3303 main ()
3304 {
3305 switch (0) case 0: case (sizeof (short) == $ac_size):;
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312 (eval $ac_compile) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3322 ac_cv_sizeof_short=$ac_size
3323 else
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 fi
3328 rm -f conftest.$ac_objext conftest.$ac_ext
3329 if test x$ac_cv_sizeof_short != x ; then break; fi
3330 done
3331
3332 fi
3333
3334 if test x$ac_cv_sizeof_short = x ; then
3335 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3336 echo "$as_me: error: cannot determine a size for short" >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3340 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3341
3342 cat >>confdefs.h <<_ACEOF
3343 #define SIZEOF_SHORT $ac_cv_sizeof_short
3344 _ACEOF
3345
3346
3347 echo "$as_me:$LINENO: checking size of int" >&5
3348 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3349 if test "${ac_cv_sizeof_int+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line $LINENO "configure"
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3362
3363
3364 int
3365 main ()
3366 {
3367 switch (0) case 0: case (sizeof (int) == $ac_size):;
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>&5
3375 ac_status=$?
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -s conftest.$ac_objext'
3379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380 (eval $ac_try) 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }; }; then
3384 ac_cv_sizeof_int=$ac_size
3385 else
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3388
3389 fi
3390 rm -f conftest.$ac_objext conftest.$ac_ext
3391 if test x$ac_cv_sizeof_int != x ; then break; fi
3392 done
3393
3394 fi
3395
3396 if test x$ac_cv_sizeof_int = x ; then
3397 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3398 echo "$as_me: error: cannot determine a size for int" >&2;}
3399 { (exit 1); exit 1; }; }
3400 fi
3401 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3402 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define SIZEOF_INT $ac_cv_sizeof_int
3406 _ACEOF
3407
3408
3409 echo "$as_me:$LINENO: checking size of long" >&5
3410 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3411 if test "${ac_cv_sizeof_long+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 #include "confdefs.h"
3423 #include <sys/types.h>
3424
3425
3426 int
3427 main ()
3428 {
3429 switch (0) case 0: case (sizeof (long) == $ac_size):;
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 ac_cv_sizeof_long=$ac_size
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 fi
3452 rm -f conftest.$ac_objext conftest.$ac_ext
3453 if test x$ac_cv_sizeof_long != x ; then break; fi
3454 done
3455
3456 fi
3457
3458 if test x$ac_cv_sizeof_long = x ; then
3459 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3460 echo "$as_me: error: cannot determine a size for long" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3464 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3465
3466 cat >>confdefs.h <<_ACEOF
3467 #define SIZEOF_LONG $ac_cv_sizeof_long
3468 _ACEOF
3469
3470
3471 if test $ac_cv_c_long_long = yes; then
3472 echo "$as_me:$LINENO: checking size of long long" >&5
3473 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3474 if test "${ac_cv_sizeof_long_long+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3478 cat >conftest.$ac_ext <<_ACEOF
3479 #line $LINENO "configure"
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3487
3488
3489 int
3490 main ()
3491 {
3492 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>&5
3500 ac_status=$?
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505 (eval $ac_try) 2>&5
3506 ac_status=$?
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3509 ac_cv_sizeof_long_long=$ac_size
3510 else
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514 fi
3515 rm -f conftest.$ac_objext conftest.$ac_ext
3516 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3517 done
3518
3519 fi
3520
3521 if test x$ac_cv_sizeof_long_long = x ; then
3522 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3523 echo "$as_me: error: cannot determine a size for long long" >&2;}
3524 { (exit 1); exit 1; }; }
3525 fi
3526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3527 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3528
3529 cat >>confdefs.h <<_ACEOF
3530 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3531 _ACEOF
3532
3533
3534 fi
3535 if test $ac_cv_c___int64 = yes; then
3536 echo "$as_me:$LINENO: checking size of __int64" >&5
3537 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3538 if test "${ac_cv_sizeof___int64+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3542 cat >conftest.$ac_ext <<_ACEOF
3543 #line $LINENO "configure"
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3551
3552
3553 int
3554 main ()
3555 {
3556 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 rm -f conftest.$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>&5
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -s conftest.$ac_objext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_sizeof___int64=$ac_size
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 fi
3579 rm -f conftest.$ac_objext conftest.$ac_ext
3580 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3581 done
3582
3583 fi
3584
3585 if test x$ac_cv_sizeof___int64 = x ; then
3586 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3587 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3588 { (exit 1); exit 1; }; }
3589 fi
3590 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3591 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3592
3593 cat >>confdefs.h <<_ACEOF
3594 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3595 _ACEOF
3596
3597
3598 fi
3599
3600 # -----------------
3601 # Find Ada compiler
3602 # -----------------
3603
3604 # See if GNAT has been installed
3605
3606
3607
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616 if test -n "$GNATBIND"; then
3617 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3618 else
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620 for as_dir in $PATH
3621 do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3629 fi
3630 done
3631 done
3632
3633 fi
3634 fi
3635 GNATBIND=$ac_cv_prog_GNATBIND
3636 if test -n "$GNATBIND"; then
3637 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3638 echo "${ECHO_T}$GNATBIND" >&6
3639 else
3640 echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642 fi
3643
3644 fi
3645 if test -z "$ac_cv_prog_GNATBIND"; then
3646 ac_ct_GNATBIND=$GNATBIND
3647 # Extract the first word of "gnatbind", so it can be a program name with args.
3648 set dummy gnatbind; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654 if test -n "$ac_ct_GNATBIND"; then
3655 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668 done
3669 done
3670
3671 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3672 fi
3673 fi
3674 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3675 if test -n "$ac_ct_GNATBIND"; then
3676 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3677 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683 GNATBIND=$ac_ct_GNATBIND
3684 else
3685 GNATBIND="$ac_cv_prog_GNATBIND"
3686 fi
3687
3688 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3689 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3690 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 cat >conftest.adb <<EOF
3694 procedure conftest is begin null; end conftest;
3695 EOF
3696 gcc_cv_cc_supports_ada=no
3697 # There is a bug in old released versions of GCC which causes the
3698 # driver to exit successfully when the appropriate language module
3699 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3700 # Therefore we must check for the error message as well as an
3701 # unsuccessful exit.
3702 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3703 if test x"$errors" = x; then
3704 gcc_cv_cc_supports_ada=yes
3705 break
3706 fi
3707 rm -f conftest.*
3708 fi
3709 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3710 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3711
3712 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3713 have_gnat=yes
3714 else
3715 have_gnat=no
3716 fi
3717
3718
3719 # ---------------------
3720 # Warnings and checking
3721 # ---------------------
3722
3723 strict1_warn=
3724 if test $ac_cv_prog_cc_no_long_long = yes ; then
3725 strict1_warn="-pedantic -Wno-long-long"
3726 fi
3727
3728
3729 # If the native compiler is GCC, we can enable warnings even in stage1.
3730 # That's useful for people building cross-compilers, or just running a
3731 # quick `make'.
3732 warn_cflags=
3733 if test "x$GCC" = "xyes"; then
3734 warn_cflags='$(GCC_WARN_CFLAGS)'
3735 fi
3736
3737
3738 # Enable -Werror in bootstrap stage2 and later.
3739 # Change the default to "no" on release branches.
3740 # Check whether --enable-werror or --disable-werror was given.
3741 if test "${enable_werror+set}" = set; then
3742 enableval="$enable_werror"
3743
3744 else
3745 enable_werror=yes
3746 fi;
3747 if test x$enable_werror = xyes ; then
3748 WERROR=-Werror
3749 fi
3750
3751
3752 # Enable expensive internal checks
3753 # Check whether --enable-checking or --disable-checking was given.
3754 if test "${enable_checking+set}" = set; then
3755 enableval="$enable_checking"
3756 ac_checking=
3757 ac_tree_checking=
3758 ac_rtl_checking=
3759 ac_rtlflag_checking=
3760 ac_gc_checking=
3761 ac_gc_always_collect=
3762 ac_fold_checking=
3763 case "${enableval}" in
3764 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3765 ac_rtlflag_checking=1 ;;
3766 no) ;;
3767 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3768 set fnord $enableval; shift
3769 IFS="$ac_save_IFS"
3770 for check
3771 do
3772 case $check in
3773 misc) ac_checking=1 ;;
3774 tree) ac_tree_checking=1 ;;
3775 rtlflag) ac_rtlflag_checking=1 ;;
3776 rtl) ac_rtl_checking=1 ;;
3777 gc) ac_gc_checking=1 ;;
3778 gcac) ac_gc_always_collect=1 ;;
3779 fold) ac_fold_checking=1 ;;
3780 valgrind) ac_checking_valgrind=1 ;;
3781 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3782 echo "$as_me: error: unknown check category $check" >&2;}
3783 { (exit 1); exit 1; }; } ;;
3784 esac
3785 done
3786 ;;
3787 esac
3788
3789 else
3790 # Enable some checks by default for development versions of GCC
3791 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3792 fi;
3793 nocommon_flag=""
3794 if test x$ac_checking != x ; then
3795
3796 cat >>confdefs.h <<\_ACEOF
3797 #define ENABLE_CHECKING 1
3798 _ACEOF
3799
3800 nocommon_flag=-fno-common
3801 fi
3802
3803 if test x$ac_tree_checking != x ; then
3804
3805 cat >>confdefs.h <<\_ACEOF
3806 #define ENABLE_TREE_CHECKING 1
3807 _ACEOF
3808
3809 fi
3810 if test x$ac_rtl_checking != x ; then
3811
3812 cat >>confdefs.h <<\_ACEOF
3813 #define ENABLE_RTL_CHECKING 1
3814 _ACEOF
3815
3816 fi
3817 if test x$ac_rtlflag_checking != x ; then
3818
3819 cat >>confdefs.h <<\_ACEOF
3820 #define ENABLE_RTL_FLAG_CHECKING 1
3821 _ACEOF
3822
3823 fi
3824 if test x$ac_gc_checking != x ; then
3825
3826 cat >>confdefs.h <<\_ACEOF
3827 #define ENABLE_GC_CHECKING 1
3828 _ACEOF
3829
3830 fi
3831 if test x$ac_gc_always_collect != x ; then
3832
3833 cat >>confdefs.h <<\_ACEOF
3834 #define ENABLE_GC_ALWAYS_COLLECT 1
3835 _ACEOF
3836
3837 fi
3838 if test x$ac_fold_checking != x ; then
3839
3840 cat >>confdefs.h <<\_ACEOF
3841 #define ENABLE_FOLD_CHECKING 1
3842 _ACEOF
3843
3844 fi
3845 valgrind_path_defines=
3846 valgrind_command=
3847
3848
3849 echo "$as_me:$LINENO: checking for egrep" >&5
3850 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3851 if test "${ac_cv_prog_egrep+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3855 then ac_cv_prog_egrep='grep -E'
3856 else ac_cv_prog_egrep='egrep'
3857 fi
3858 fi
3859 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3860 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3861 EGREP=$ac_cv_prog_egrep
3862
3863
3864 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3866 if test "${ac_cv_header_stdc+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 #include <stdlib.h>
3877 #include <stdarg.h>
3878 #include <string.h>
3879 #include <float.h>
3880
3881 int
3882 main ()
3883 {
3884
3885 ;
3886 return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_cv_header_stdc=yes
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 ac_cv_header_stdc=no
3907 fi
3908 rm -f conftest.$ac_objext conftest.$ac_ext
3909
3910 if test $ac_cv_header_stdc = yes; then
3911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line $LINENO "configure"
3914 /* confdefs.h. */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3919 #include <string.h>
3920
3921 _ACEOF
3922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3923 $EGREP "memchr" >/dev/null 2>&1; then
3924 :
3925 else
3926 ac_cv_header_stdc=no
3927 fi
3928 rm -f conftest*
3929
3930 fi
3931
3932 if test $ac_cv_header_stdc = yes; then
3933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3934 cat >conftest.$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <stdlib.h>
3942
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "free" >/dev/null 2>&1; then
3946 :
3947 else
3948 ac_cv_header_stdc=no
3949 fi
3950 rm -f conftest*
3951
3952 fi
3953
3954 if test $ac_cv_header_stdc = yes; then
3955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3956 if test "$cross_compiling" = yes; then
3957 :
3958 else
3959 cat >conftest.$ac_ext <<_ACEOF
3960 #line $LINENO "configure"
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 #include <ctype.h>
3967 #if ((' ' & 0x0FF) == 0x020)
3968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3970 #else
3971 # define ISLOWER(c) \
3972 (('a' <= (c) && (c) <= 'i') \
3973 || ('j' <= (c) && (c) <= 'r') \
3974 || ('s' <= (c) && (c) <= 'z'))
3975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976 #endif
3977
3978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3979 int
3980 main ()
3981 {
3982 int i;
3983 for (i = 0; i < 256; i++)
3984 if (XOR (islower (i), ISLOWER (i))
3985 || toupper (i) != TOUPPER (i))
3986 exit(2);
3987 exit (0);
3988 }
3989 _ACEOF
3990 rm -f conftest$ac_exeext
3991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992 (eval $ac_link) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4001 :
4002 else
4003 echo "$as_me: program exited with status $ac_status" >&5
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 ( exit $ac_status )
4008 ac_cv_header_stdc=no
4009 fi
4010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4011 fi
4012 fi
4013 fi
4014 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4016 if test $ac_cv_header_stdc = yes; then
4017
4018 cat >>confdefs.h <<\_ACEOF
4019 #define STDC_HEADERS 1
4020 _ACEOF
4021
4022 fi
4023
4024 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035 inttypes.h stdint.h unistd.h
4036 do
4037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038 echo "$as_me:$LINENO: checking for $ac_header" >&5
4039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 cat >conftest.$ac_ext <<_ACEOF
4044 #line $LINENO "configure"
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4051
4052 #include <$ac_header>
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 eval "$as_ac_Header=yes"
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 eval "$as_ac_Header=no"
4072 fi
4073 rm -f conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4078 cat >>confdefs.h <<_ACEOF
4079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080 _ACEOF
4081
4082 fi
4083
4084 done
4085
4086
4087 if test "${ac_cv_header_valgrind_h+set}" = set; then
4088 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4089 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4090 if test "${ac_cv_header_valgrind_h+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 fi
4093 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4094 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4095 else
4096 # Is the header compilable?
4097 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4098 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4099 cat >conftest.$ac_ext <<_ACEOF
4100 #line $LINENO "configure"
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4107 #include <valgrind.h>
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4111 (eval $ac_compile) 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -s conftest.$ac_objext'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 (eval $ac_try) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; }; then
4121 ac_header_compiler=yes
4122 else
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ac_header_compiler=no
4127 fi
4128 rm -f conftest.$ac_objext conftest.$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4130 echo "${ECHO_T}$ac_header_compiler" >&6
4131
4132 # Is the header present?
4133 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4134 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4135 cat >conftest.$ac_ext <<_ACEOF
4136 #line $LINENO "configure"
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <valgrind.h>
4143 _ACEOF
4144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } >/dev/null; then
4152 if test -s conftest.err; then
4153 ac_cpp_err=$ac_c_preproc_warn_flag
4154 else
4155 ac_cpp_err=
4156 fi
4157 else
4158 ac_cpp_err=yes
4159 fi
4160 if test -z "$ac_cpp_err"; then
4161 ac_header_preproc=yes
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4165
4166 ac_header_preproc=no
4167 fi
4168 rm -f conftest.err conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4170 echo "${ECHO_T}$ac_header_preproc" >&6
4171
4172 # So? What about this header?
4173 case $ac_header_compiler:$ac_header_preproc in
4174 yes:no )
4175 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4176 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4177 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4178 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4179 (
4180 cat <<\_ASBOX
4181 ## ------------------------------------ ##
4182 ## Report this to bug-autoconf@gnu.org. ##
4183 ## ------------------------------------ ##
4184 _ASBOX
4185 ) |
4186 sed "s/^/$as_me: WARNING: /" >&2
4187 ;;
4188 no:yes )
4189 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4190 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4192 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4194 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4195 (
4196 cat <<\_ASBOX
4197 ## ------------------------------------ ##
4198 ## Report this to bug-autoconf@gnu.org. ##
4199 ## ------------------------------------ ##
4200 _ASBOX
4201 ) |
4202 sed "s/^/$as_me: WARNING: /" >&2
4203 ;;
4204 esac
4205 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4206 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4207 if test "${ac_cv_header_valgrind_h+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210 ac_cv_header_valgrind_h=$ac_header_preproc
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4213 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4214
4215 fi
4216 if test $ac_cv_header_valgrind_h = yes; then
4217 have_valgrind_h=yes
4218 else
4219 have_valgrind_h=no
4220 fi
4221
4222
4223
4224 if test x$ac_checking_valgrind != x ; then
4225 # It is certainly possible that there's valgrind but no valgrind.h.
4226 # GCC relies on making annotations so we must have both.
4227 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4228 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4229 cat >conftest.$ac_ext <<_ACEOF
4230 #line $LINENO "configure"
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <valgrind/memcheck.h>
4237 #ifndef VALGRIND_DISCARD
4238 #error VALGRIND_DISCARD not defined
4239 #endif
4240 _ACEOF
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_c_preproc_warn_flag
4251 else
4252 ac_cpp_err=
4253 fi
4254 else
4255 ac_cpp_err=yes
4256 fi
4257 if test -z "$ac_cpp_err"; then
4258 gcc_cv_header_valgrind_memcheck_h=yes
4259 else
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263 gcc_cv_header_valgrind_memcheck_h=no
4264 fi
4265 rm -f conftest.err conftest.$ac_ext
4266 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4267 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4268 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4269 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4271 #line $LINENO "configure"
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <memcheck.h>
4278 #ifndef VALGRIND_DISCARD
4279 #error VALGRIND_DISCARD not defined
4280 #endif
4281 _ACEOF
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev/null; then
4290 if test -s conftest.err; then
4291 ac_cpp_err=$ac_c_preproc_warn_flag
4292 else
4293 ac_cpp_err=
4294 fi
4295 else
4296 ac_cpp_err=yes
4297 fi
4298 if test -z "$ac_cpp_err"; then
4299 gcc_cv_header_memcheck_h=yes
4300 else
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 gcc_cv_header_memcheck_h=no
4305 fi
4306 rm -f conftest.err conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4308 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4309
4310 # Prepare PATH_SEPARATOR.
4311 # The user is always right.
4312 if test "${PATH_SEPARATOR+set}" != set; then
4313 echo "#! /bin/sh" >conf$$.sh
4314 echo "exit 0" >>conf$$.sh
4315 chmod +x conf$$.sh
4316 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4317 PATH_SEPARATOR=';'
4318 else
4319 PATH_SEPARATOR=:
4320 fi
4321 rm -f conf$$.sh
4322 fi
4323
4324 # Find out how to test for executable files. Don't use a zero-byte file,
4325 # as systems may use methods other than mode bits to determine executability.
4326 cat >conf$$.file <<_ASEOF
4327 #! /bin/sh
4328 exit 0
4329 _ASEOF
4330 chmod +x conf$$.file
4331 if test -x conf$$.file >/dev/null 2>&1; then
4332 ac_executable_p="test -x"
4333 else
4334 ac_executable_p="test -f"
4335 fi
4336 rm -f conf$$.file
4337
4338 # Extract the first word of "valgrind", so it can be a program name with args.
4339 set dummy valgrind; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_path_valgrind_path+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 case "$valgrind_path" in
4346 [\\/]* | ?:[\\/]*)
4347 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4348 ;;
4349 *)
4350 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4351 for ac_dir in $PATH; do
4352 IFS="$ac_save_IFS"
4353 test -z "$ac_dir" && ac_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4356 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4357 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4358 break 2
4359 fi
4360 fi
4361 done
4362 done
4363 IFS="$ac_save_IFS"
4364 ;;
4365 esac
4366 fi
4367 valgrind_path="$ac_cv_path_valgrind_path"
4368 if test -n "$valgrind_path"; then
4369 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4370 echo "${ECHO_T}$valgrind_path" >&6
4371 else
4372 echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
4376 if test "x$valgrind_path" = "x" \
4377 || (test $have_valgrind_h = no \
4378 && test $gcc_cv_header_memcheck_h = no \
4379 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4380 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4381 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4382 { (exit 1); exit 1; }; }
4383 fi
4384 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4385 valgrind_command="$valgrind_path -q"
4386
4387 cat >>confdefs.h <<\_ACEOF
4388 #define ENABLE_VALGRIND_CHECKING 1
4389 _ACEOF
4390
4391 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4392
4393 cat >>confdefs.h <<\_ACEOF
4394 #define HAVE_VALGRIND_MEMCHECK_H 1
4395 _ACEOF
4396
4397 fi
4398 if test $gcc_cv_header_memcheck_h = yes; then
4399
4400 cat >>confdefs.h <<\_ACEOF
4401 #define HAVE_MEMCHECK_H 1
4402 _ACEOF
4403
4404 fi
4405 fi
4406
4407
4408
4409 # Enable code coverage collection
4410 # Check whether --enable-coverage or --disable-coverage was given.
4411 if test "${enable_coverage+set}" = set; then
4412 enableval="$enable_coverage"
4413 case "${enableval}" in
4414 yes|noopt)
4415 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4416 ;;
4417 opt)
4418 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4419 ;;
4420 *)
4421 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4422 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4423 { (exit 1); exit 1; }; }
4424 ;;
4425 esac
4426 else
4427 coverage_flags=""
4428 fi;
4429
4430
4431 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4432 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4433 enableval="$enable_gather_detailed_mem_stats"
4434
4435 else
4436 enable_gather_detailed_mem_stats=no
4437 fi;
4438 if test x$enable_gather_detailed_mem_stats = xyes ; then
4439
4440 cat >>confdefs.h <<\_ACEOF
4441 #define GATHER_STATISTICS 1
4442 _ACEOF
4443
4444 fi
4445
4446 # -------------------------------
4447 # Miscenalleous configure options
4448 # -------------------------------
4449
4450 # With stabs
4451
4452 # Check whether --with-stabs or --without-stabs was given.
4453 if test "${with_stabs+set}" = set; then
4454 withval="$with_stabs"
4455 stabs="$with_stabs"
4456 else
4457 stabs=no
4458 fi;
4459
4460 # Determine whether or not multilibs are enabled.
4461 # Check whether --enable-multilib or --disable-multilib was given.
4462 if test "${enable_multilib+set}" = set; then
4463 enableval="$enable_multilib"
4464
4465 else
4466 enable_multilib=yes
4467 fi;
4468
4469
4470 # Enable __cxa_atexit for C++.
4471 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4472 if test "${enable___cxa_atexit+set}" = set; then
4473 enableval="$enable___cxa_atexit"
4474
4475 fi;
4476
4477 # Enable threads
4478 # Pass with no value to take the default
4479 # Pass with a value to specify a thread package
4480 # Check whether --enable-threads or --disable-threads was given.
4481 if test "${enable_threads+set}" = set; then
4482 enableval="$enable_threads"
4483
4484 else
4485 enable_threads=''
4486 fi;
4487 # Save in case it gets overwritten in config.gcc
4488 enable_threads_flag=$enable_threads
4489
4490 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4491 if test "${enable_objc_gc+set}" = set; then
4492 enableval="$enable_objc_gc"
4493 if test x$enable_objc_gc = xno; then
4494 objc_boehm_gc=''
4495 else
4496 objc_boehm_gc=1
4497 fi
4498 else
4499 objc_boehm_gc=''
4500 fi;
4501
4502
4503 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4504 if test "${with_dwarf2+set}" = set; then
4505 withval="$with_dwarf2"
4506 dwarf2="$with_dwarf2"
4507 else
4508 dwarf2=no
4509 fi;
4510
4511 # Check whether --enable-shared or --disable-shared was given.
4512 if test "${enable_shared+set}" = set; then
4513 enableval="$enable_shared"
4514
4515 case $enable_shared in
4516 yes | no) ;;
4517 *)
4518 enable_shared=no
4519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4520 for pkg in $enableval; do
4521 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4522 enable_shared=yes
4523 fi
4524 done
4525 IFS="$ac_save_ifs"
4526 ;;
4527 esac
4528
4529 else
4530 enable_shared=yes
4531 fi;
4532
4533
4534
4535 # Check whether --with-sysroot or --without-sysroot was given.
4536 if test "${with_sysroot+set}" = set; then
4537 withval="$with_sysroot"
4538
4539 case ${with_sysroot} in
4540 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4541 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4542 esac
4543
4544 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4545 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4546
4547 if test "x$exec_prefix" = xNONE; then
4548 if test "x$prefix" = xNONE; then
4549 test_prefix=/usr/local
4550 else
4551 test_prefix=$prefix
4552 fi
4553 else
4554 test_prefix=$exec_prefix
4555 fi
4556 case ${TARGET_SYSTEM_ROOT} in
4557 "${test_prefix}"|"${test_prefix}/"*|\
4558 '${exec_prefix}'|'${exec_prefix}/'*)
4559 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4560 TARGET_SYSTEM_ROOT_DEFINE="$t"
4561 ;;
4562 esac
4563
4564 else
4565
4566 TARGET_SYSTEM_ROOT=
4567 TARGET_SYSTEM_ROOT_DEFINE=
4568 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4569
4570 fi;
4571
4572
4573
4574
4575 # Build with intermodule optimisations
4576 # Check whether --enable-intermodule or --disable-intermodule was given.
4577 if test "${enable_intermodule+set}" = set; then
4578 enableval="$enable_intermodule"
4579 case ${enable_intermodule} in
4580 yes) onestep="-onestep";;
4581 *) onestep="";;
4582 esac
4583 else
4584 onestep=""
4585 fi;
4586
4587
4588 # -------------------------
4589 # Checks for other programs
4590 # -------------------------
4591
4592 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4593 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4594 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4595 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 cat >conftest.make <<\_ACEOF
4599 all:
4600 @echo 'ac_maketemp="$(MAKE)"'
4601 _ACEOF
4602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4603 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4604 if test -n "$ac_maketemp"; then
4605 eval ac_cv_prog_make_${ac_make}_set=yes
4606 else
4607 eval ac_cv_prog_make_${ac_make}_set=no
4608 fi
4609 rm -f conftest.make
4610 fi
4611 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4612 echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6
4614 SET_MAKE=
4615 else
4616 echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6
4618 SET_MAKE="MAKE=${MAKE-make}"
4619 fi
4620
4621
4622 # Find some useful tools
4623 for ac_prog in gawk mawk nawk awk
4624 do
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629 if test "${ac_cv_prog_AWK+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632 if test -n "$AWK"; then
4633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_AWK="$ac_prog"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646 done
4647 done
4648
4649 fi
4650 fi
4651 AWK=$ac_cv_prog_AWK
4652 if test -n "$AWK"; then
4653 echo "$as_me:$LINENO: result: $AWK" >&5
4654 echo "${ECHO_T}$AWK" >&6
4655 else
4656 echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6
4658 fi
4659
4660 test -n "$AWK" && break
4661 done
4662
4663 # We need awk to run opts.sh (to create options.c and options.h).
4664 # Bail out if it's missing.
4665 case ${AWK} in
4666 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4667 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4668 { (exit 1); exit 1; }; } ;;
4669 esac
4670
4671 echo "$as_me:$LINENO: checking whether ln works" >&5
4672 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4673 if test "${gcc_cv_prog_LN+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 rm -f conftestdata_t
4677 echo >conftestdata_f
4678 if ln conftestdata_f conftestdata_t 2>/dev/null
4679 then
4680 gcc_cv_prog_LN="ln"
4681 else
4682 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4683 then
4684 gcc_cv_prog_LN="ln -s"
4685 else
4686 gcc_cv_prog_LN=cp
4687 fi
4688 fi
4689 rm -f conftestdata_f conftestdata_t
4690
4691 fi
4692 LN="$gcc_cv_prog_LN"
4693 if test "$gcc_cv_prog_LN" = "ln"; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6
4696 else
4697 if test "$gcc_cv_prog_LN" = "ln -s"; then
4698 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4699 echo "${ECHO_T}no, using ln -s" >&6
4700 else
4701 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4702 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4703 fi
4704 fi
4705
4706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4708 if test "${gcc_cv_prog_LN_S+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711 rm -f conftestdata_t
4712 echo >conftestdata_f
4713 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4714 then
4715 gcc_cv_prog_LN_S="ln -s"
4716 else
4717 if ln conftestdata_f conftestdata_t 2>/dev/null
4718 then
4719 gcc_cv_prog_LN_S=ln
4720 else
4721 gcc_cv_prog_LN_S=cp
4722 fi
4723 fi
4724 rm -f conftestdata_f conftestdata_t
4725
4726 fi
4727 LN_S="$gcc_cv_prog_LN_S"
4728 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4729 echo "$as_me:$LINENO: result: yes" >&5
4730 echo "${ECHO_T}yes" >&6
4731 else
4732 if test "$gcc_cv_prog_LN_S" = "ln"; then
4733 echo "$as_me:$LINENO: result: no, using ln" >&5
4734 echo "${ECHO_T}no, using ln" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4737 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4738 fi
4739 fi
4740
4741 if test -n "$ac_tool_prefix"; then
4742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4744 echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746 if test "${ac_cv_prog_RANLIB+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 if test -n "$RANLIB"; then
4750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765
4766 fi
4767 fi
4768 RANLIB=$ac_cv_prog_RANLIB
4769 if test -n "$RANLIB"; then
4770 echo "$as_me:$LINENO: result: $RANLIB" >&5
4771 echo "${ECHO_T}$RANLIB" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4775 fi
4776
4777 fi
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib; ac_word=$2
4782 echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_RANLIB="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803
4804 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4805 fi
4806 fi
4807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6
4814 fi
4815
4816 RANLIB=$ac_ct_RANLIB
4817 else
4818 RANLIB="$ac_cv_prog_RANLIB"
4819 fi
4820
4821 # Find a good install program. We prefer a C program (faster),
4822 # so one script is as good as another. But avoid the broken or
4823 # incompatible versions:
4824 # SysV /etc/install, /usr/sbin/install
4825 # SunOS /usr/etc/install
4826 # IRIX /sbin/install
4827 # AIX /bin/install
4828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4830 # ./install, which can be erroneously created by make from ./install.sh.
4831 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4832 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4833 if test -z "$INSTALL"; then
4834 if test "${ac_cv_path_install+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4838 for ac_dir in $PATH; do
4839 # Account for people who put trailing slashes in PATH elements.
4840 case "$ac_dir/" in
4841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4842 *)
4843 # OSF1 and SCO ODT 3.0 have their own names for install.
4844 for ac_prog in ginstall scoinst install; do
4845 if test -f $ac_dir/$ac_prog; then
4846 if test $ac_prog = install &&
4847 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4848 # AIX install. It has an incompatible calling convention.
4849 # OSF/1 installbsd also uses dspmsg, but is usable.
4850 :
4851 else
4852 ac_cv_path_install="$ac_dir/$ac_prog -c"
4853 break 2
4854 fi
4855 fi
4856 done
4857 ;;
4858 esac
4859 done
4860 IFS="$ac_save_IFS"
4861
4862 fi
4863 if test "${ac_cv_path_install+set}" = set; then
4864 INSTALL="$ac_cv_path_install"
4865 else
4866 # As a last resort, use the slow shell script. We don't cache a
4867 # path for INSTALL within a source directory, because that will
4868 # break other packages using the cache if that directory is
4869 # removed, or if the path is relative.
4870 INSTALL="$ac_install_sh"
4871 fi
4872 fi
4873 echo "$as_me:$LINENO: result: $INSTALL" >&5
4874 echo "${ECHO_T}$INSTALL" >&6
4875
4876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4877 # It thinks the first close brace ends the variable substitution.
4878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4879
4880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4881
4882
4883 # See if cmp has --ignore-initial.
4884 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4885 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4886 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 echo abfoo >t1
4890 echo cdfoo >t2
4891 gcc_cv_prog_cmp_skip=slowcompare
4892 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4893 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4894 :
4895 else
4896 gcc_cv_prog_cmp_skip=gnucompare
4897 fi
4898 fi
4899 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
4900 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4901 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4902 :
4903 else
4904 gcc_cv_prog_cmp_skip=fastcompare
4905 fi
4906 fi
4907 fi
4908 rm t1 t2
4909
4910 fi
4911 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4912 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4913 make_compare_target=$gcc_cv_prog_cmp_skip
4914
4915
4916
4917 # See if we have the mktemp command.
4918 # Extract the first word of "mktemp", so it can be a program name with args.
4919 set dummy mktemp; ac_word=$2
4920 echo "$as_me:$LINENO: checking for $ac_word" >&5
4921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 else
4925 if test -n "$have_mktemp_command"; then
4926 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_have_mktemp_command="yes"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941
4942 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4943 fi
4944 fi
4945 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4946 if test -n "$have_mktemp_command"; then
4947 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4948 echo "${ECHO_T}$have_mktemp_command" >&6
4949 else
4950 echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954
4955 # Do we have a single-tree copy of texinfo?
4956 if test -f $srcdir/../texinfo/Makefile.in; then
4957 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4958 gcc_cv_prog_makeinfo_modern=yes
4959 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4960 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4961 else
4962 # See if makeinfo has been installed and is modern enough
4963 # that we can use it.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo; ac_word=$2
4966 echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 if test -n "$MAKEINFO"; then
4972 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_MAKEINFO="makeinfo"
4982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987
4988 fi
4989 fi
4990 MAKEINFO=$ac_cv_prog_MAKEINFO
4991 if test -n "$MAKEINFO"; then
4992 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4993 echo "${ECHO_T}$MAKEINFO" >&6
4994 else
4995 echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4997 fi
4998
4999 if test -n "$MAKEINFO"; then
5000 # Found it, now check the version.
5001 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5002 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5003 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 ac_prog_version=`$MAKEINFO --version 2>&1 |
5007 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5008 echo "configure:5008: version of makeinfo is $ac_prog_version" >&5
5009 case $ac_prog_version in
5010 '') gcc_cv_prog_makeinfo_modern=no;;
5011 4.[2-9]*)
5012 gcc_cv_prog_makeinfo_modern=yes;;
5013 *) gcc_cv_prog_makeinfo_modern=no;;
5014 esac
5015
5016 fi
5017 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5018 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5019 else
5020 gcc_cv_prog_makeinfo_modern=no
5021 fi
5022
5023 fi
5024
5025 if test $gcc_cv_prog_makeinfo_modern = no; then
5026 { echo "$as_me:$LINENO: WARNING:
5027 *** Makeinfo is missing or too old.
5028 *** Info documentation will not be built." >&5
5029 echo "$as_me: WARNING:
5030 *** Makeinfo is missing or too old.
5031 *** Info documentation will not be built." >&2;}
5032 BUILD_INFO=
5033 else
5034 BUILD_INFO=info
5035 fi
5036
5037 # Is pod2man recent enough to regenerate manpages?
5038 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5039 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5040 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043 GENERATED_MANPAGES=generated-manpages
5044 else
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 GENERATED_MANPAGES=
5048 fi
5049
5050 # How about lex?
5051 if test -f $srcdir/../flex/skel.c; then
5052 FLEX='$(objdir)/../flex/flex'
5053 else
5054 # Extract the first word of "flex", so it can be a program name with args.
5055 set dummy flex; ac_word=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_prog_FLEX+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 else
5061 if test -n "$FLEX"; then
5062 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_FLEX="flex"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075 done
5076 done
5077
5078 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5079 fi
5080 fi
5081 FLEX=$ac_cv_prog_FLEX
5082 if test -n "$FLEX"; then
5083 echo "$as_me:$LINENO: result: $FLEX" >&5
5084 echo "${ECHO_T}$FLEX" >&6
5085 else
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5088 fi
5089
5090 fi
5091
5092 # Bison?
5093 # The -L switch is so bison can find its skeleton file.
5094 if test -f $srcdir/../bison/bison.simple; then
5095 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5096 else
5097 # Extract the first word of "bison", so it can be a program name with args.
5098 set dummy bison; ac_word=$2
5099 echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101 if test "${ac_cv_prog_BISON+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 if test -n "$BISON"; then
5105 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_BISON="bison"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118 done
5119 done
5120
5121 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5122 fi
5123 fi
5124 BISON=$ac_cv_prog_BISON
5125 if test -n "$BISON"; then
5126 echo "$as_me:$LINENO: result: $BISON" >&5
5127 echo "${ECHO_T}$BISON" >&6
5128 else
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5131 fi
5132
5133 fi
5134
5135 # --------------------
5136 # Checks for C headers
5137 # --------------------
5138
5139 echo "$as_me:$LINENO: checking for GNU C library" >&5
5140 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5141 if test "${gcc_cv_glibc+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 cat >conftest.$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <features.h>
5152 int
5153 main ()
5154 {
5155
5156 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5157 #error Not a GNU C library system
5158 #endif
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 gcc_cv_glibc=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 gcc_cv_glibc=no
5181 fi
5182 rm -f conftest.$ac_objext conftest.$ac_ext
5183 fi
5184
5185 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5186 echo "${ECHO_T}$gcc_cv_glibc" >&6
5187 if test $gcc_cv_glibc = yes; then
5188
5189 cat >>confdefs.h <<\_ACEOF
5190 #define _GNU_SOURCE 1
5191 _ACEOF
5192
5193 fi
5194
5195 # Need to reject headers which give warnings, so that the -Werror bootstrap
5196 # works later. *sigh* This needs to come before all header checks.
5197
5198 ac_c_preproc_warn_flag=yes
5199
5200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5202 if test "${ac_cv_header_stdc+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line $LINENO "configure"
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5212 #include <stdlib.h>
5213 #include <stdarg.h>
5214 #include <string.h>
5215 #include <float.h>
5216
5217 int
5218 main ()
5219 {
5220
5221 ;
5222 return 0;
5223 }
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5227 (eval $ac_compile) 2>&5
5228 ac_status=$?
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -s conftest.$ac_objext'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233 (eval $ac_try) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; }; then
5237 ac_cv_header_stdc=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 ac_cv_header_stdc=no
5243 fi
5244 rm -f conftest.$ac_objext conftest.$ac_ext
5245
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <string.h>
5256
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then
5260 :
5261 else
5262 ac_cv_header_stdc=no
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.$ac_ext <<_ACEOF
5271 #line $LINENO "configure"
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 #include <stdlib.h>
5278
5279 _ACEOF
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "free" >/dev/null 2>&1; then
5282 :
5283 else
5284 ac_cv_header_stdc=no
5285 fi
5286 rm -f conftest*
5287
5288 fi
5289
5290 if test $ac_cv_header_stdc = yes; then
5291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5292 if test "$cross_compiling" = yes; then
5293 :
5294 else
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line $LINENO "configure"
5297 /* confdefs.h. */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h. */
5302 #include <ctype.h>
5303 #if ((' ' & 0x0FF) == 0x020)
5304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5306 #else
5307 # define ISLOWER(c) \
5308 (('a' <= (c) && (c) <= 'i') \
5309 || ('j' <= (c) && (c) <= 'r') \
5310 || ('s' <= (c) && (c) <= 'z'))
5311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #endif
5313
5314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5315 int
5316 main ()
5317 {
5318 int i;
5319 for (i = 0; i < 256; i++)
5320 if (XOR (islower (i), ISLOWER (i))
5321 || toupper (i) != TOUPPER (i))
5322 exit(2);
5323 exit (0);
5324 }
5325 _ACEOF
5326 rm -f conftest$ac_exeext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 :
5338 else
5339 echo "$as_me: program exited with status $ac_status" >&5
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ( exit $ac_status )
5344 ac_cv_header_stdc=no
5345 fi
5346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5347 fi
5348 fi
5349 fi
5350 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5351 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5352 if test $ac_cv_header_stdc = yes; then
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define STDC_HEADERS 1
5356 _ACEOF
5357
5358 fi
5359
5360 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5361 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5362 if test "${ac_cv_header_time+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <sys/types.h>
5373 #include <sys/time.h>
5374 #include <time.h>
5375
5376 int
5377 main ()
5378 {
5379 if ((struct tm *) 0)
5380 return 0;
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_header_time=yes
5398 else
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.$ac_ext >&5
5401
5402 ac_cv_header_time=no
5403 fi
5404 rm -f conftest.$ac_objext conftest.$ac_ext
5405 fi
5406 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5407 echo "${ECHO_T}$ac_cv_header_time" >&6
5408 if test $ac_cv_header_time = yes; then
5409
5410 cat >>confdefs.h <<\_ACEOF
5411 #define TIME_WITH_SYS_TIME 1
5412 _ACEOF
5413
5414 fi
5415
5416 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5417 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5418 if test "${ac_cv_header_stdbool_h+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 /* confdefs.h. */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #include <stdbool.h>
5429 int
5430 main ()
5431 {
5432 bool foo = false;
5433 ;
5434 return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 ac_cv_header_stdbool_h=yes
5450 else
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_cv_header_stdbool_h=no
5455 fi
5456 rm -f conftest.$ac_objext conftest.$ac_ext
5457 fi
5458 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5459 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5460 if test $ac_cv_header_stdbool_h = yes; then
5461
5462 cat >>confdefs.h <<\_ACEOF
5463 #define HAVE_STDBOOL_H 1
5464 _ACEOF
5465
5466 fi
5467
5468 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5469 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5470 if test "${gcc_cv_header_string+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <string.h>
5481 #include <strings.h>
5482 int
5483 main ()
5484 {
5485
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
5496 { ac_try='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 gcc_cv_header_string=yes
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507 gcc_cv_header_string=no
5508 fi
5509 rm -f conftest.$ac_objext conftest.$ac_ext
5510 fi
5511 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5512 echo "${ECHO_T}$gcc_cv_header_string" >&6
5513 if test $gcc_cv_header_string = yes; then
5514
5515 cat >>confdefs.h <<\_ACEOF
5516 #define STRING_WITH_STRINGS 1
5517 _ACEOF
5518
5519 fi
5520
5521 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5522 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5523 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line $LINENO "configure"
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5534 #include <sys/wait.h>
5535 #ifndef WEXITSTATUS
5536 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5537 #endif
5538 #ifndef WIFEXITED
5539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5540 #endif
5541
5542 int
5543 main ()
5544 {
5545 int s;
5546 wait (&s);
5547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 (eval $ac_try) 2>&5
5561 ac_status=$?
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 ac_cv_header_sys_wait_h=yes
5565 else
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.$ac_ext >&5
5568
5569 ac_cv_header_sys_wait_h=no
5570 fi
5571 rm -f conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5574 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5575 if test $ac_cv_header_sys_wait_h = yes; then
5576
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_SYS_WAIT_H 1
5579 _ACEOF
5580
5581 fi
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5605 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5606 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5607 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5608 do
5609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610 echo "$as_me:$LINENO: checking for $ac_header" >&5
5611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <$ac_header>
5623 _ACEOF
5624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } >/dev/null; then
5632 if test -s conftest.err; then
5633 ac_cpp_err=$ac_c_preproc_warn_flag
5634 else
5635 ac_cpp_err=
5636 fi
5637 else
5638 ac_cpp_err=yes
5639 fi
5640 if test -z "$ac_cpp_err"; then
5641 eval "$as_ac_Header=yes"
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 eval "$as_ac_Header=no"
5647 fi
5648 rm -f conftest.err conftest.$ac_ext
5649 fi
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5655 _ACEOF
5656
5657 fi
5658 done
5659
5660
5661 # Check for thread headers.
5662 echo "$as_me:$LINENO: checking for thread.h" >&5
5663 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5664 if test "${ac_cv_header_thread_h+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 cat >conftest.$ac_ext <<_ACEOF
5668 #line $LINENO "configure"
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <thread.h>
5675 _ACEOF
5676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } >/dev/null; then
5684 if test -s conftest.err; then
5685 ac_cpp_err=$ac_c_preproc_warn_flag
5686 else
5687 ac_cpp_err=
5688 fi
5689 else
5690 ac_cpp_err=yes
5691 fi
5692 if test -z "$ac_cpp_err"; then
5693 ac_cv_header_thread_h=yes
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_header_thread_h=no
5699 fi
5700 rm -f conftest.err conftest.$ac_ext
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5703 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5704 if test $ac_cv_header_thread_h = yes; then
5705 have_thread_h=yes
5706 else
5707 have_thread_h=
5708 fi
5709
5710 echo "$as_me:$LINENO: checking for pthread.h" >&5
5711 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5712 if test "${ac_cv_header_pthread_h+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #include <pthread.h>
5723 _ACEOF
5724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null; then
5732 if test -s conftest.err; then
5733 ac_cpp_err=$ac_c_preproc_warn_flag
5734 else
5735 ac_cpp_err=
5736 fi
5737 else
5738 ac_cpp_err=yes
5739 fi
5740 if test -z "$ac_cpp_err"; then
5741 ac_cv_header_pthread_h=yes
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746 ac_cv_header_pthread_h=no
5747 fi
5748 rm -f conftest.err conftest.$ac_ext
5749 fi
5750 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5751 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5752 if test $ac_cv_header_pthread_h = yes; then
5753 have_pthread_h=yes
5754 else
5755 have_pthread_h=
5756 fi
5757
5758
5759 # These tests can't be done till we know if we have limits.h.
5760 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5761 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5762 if test "${gcc_cv_decl_char_bit+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #ifdef HAVE_LIMITS_H
5773 #include <limits.h>
5774 #endif
5775 #ifdef CHAR_BIT
5776 found
5777 #endif
5778 _ACEOF
5779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5780 $EGREP "found" >/dev/null 2>&1; then
5781 gcc_cv_decl_char_bit=yes
5782 else
5783 gcc_cv_decl_char_bit=no
5784 fi
5785 rm -f conftest*
5786
5787
5788 fi
5789 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5790 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5791 if test $gcc_cv_decl_char_bit = no; then
5792 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5793 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5794 if test "${gcc_cv_c_nbby+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 i=8
5798 gcc_cv_c_nbby=
5799 while test $i -lt 65; do
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line $LINENO "configure"
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807
5808 int
5809 main ()
5810 {
5811 switch(0) {
5812 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5813 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5814 ; }
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821 (eval $ac_compile) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 gcc_cv_c_nbby=$i; break
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836 fi
5837 rm -f conftest.$ac_objext conftest.$ac_ext
5838 i=`expr $i + 1`
5839 done
5840 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5841
5842 fi
5843 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5844 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5845 if test $gcc_cv_c_nbby = failed; then
5846 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5847 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5848 { (exit 1); exit 1; }; }
5849 else
5850
5851 cat >>confdefs.h <<_ACEOF
5852 #define CHAR_BIT $gcc_cv_c_nbby
5853 _ACEOF
5854
5855 fi
5856 fi
5857 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5858 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5859 if test "${ac_cv_c_bigendian+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 ac_cv_c_bigendian=unknown
5863 # See if sys/param.h defines the BYTE_ORDER macro.
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <sys/types.h>
5872 #include <sys/param.h>
5873 int
5874 main ()
5875 {
5876
5877 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5878 bogus endian macros
5879 #endif
5880 ;
5881 return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>&5
5887 ac_status=$?
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } &&
5890 { ac_try='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 # It does; now see whether it defined to BIG_ENDIAN or not.
5897 cat >conftest.$ac_ext <<_ACEOF
5898 #line $LINENO "configure"
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #include <sys/types.h>
5905 #include <sys/param.h>
5906 int
5907 main ()
5908 {
5909
5910 #if BYTE_ORDER != BIG_ENDIAN
5911 not big endian
5912 #endif
5913 ;
5914 return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -s conftest.$ac_objext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 (eval $ac_try) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_c_bigendian=yes
5930 else
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934 ac_cv_c_bigendian=no
5935 fi
5936 rm -f conftest.$ac_objext conftest.$ac_ext
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941 fi
5942 rm -f conftest.$ac_objext conftest.$ac_ext
5943 if test $ac_cv_c_bigendian = unknown; then
5944 if test "$cross_compiling" = yes; then
5945 echo $ac_n "cross-compiling... " 2>&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 #line $LINENO "configure"
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 main () {
5955 /* Are we little or big endian? From Harbison&Steele. */
5956 union
5957 {
5958 long l;
5959 char c[sizeof (long)];
5960 } u;
5961 u.l = 1;
5962 exit (u.c[sizeof (long) - 1] == 1);
5963 }
5964 _ACEOF
5965 rm -f conftest$ac_exeext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_c_bigendian=no
5977 else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 ( exit $ac_status )
5983 ac_cv_c_bigendian=yes
5984 fi
5985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5986 fi
5987 fi
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5990 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5991 if test $ac_cv_c_bigendian = unknown; then
5992 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5993 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5994
5995 cat >conftest.c <<EOF
5996 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5997 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5998 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5999 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6000 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6001 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6002 int main() { _ascii (); _ebcdic (); return 0; }
6003 EOF
6004 if test -f conftest.c ; then
6005 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6006 if test `grep -l BIGenDianSyS conftest.o` ; then
6007 echo $ac_n ' big endian probe OK, ' 1>&6
6008 ac_cv_c_bigendian=yes
6009 fi
6010 if test `grep -l LiTTleEnDian conftest.o` ; then
6011 echo $ac_n ' little endian probe OK, ' 1>&6
6012 if test $ac_cv_c_bigendian = yes ; then
6013 ac_cv_c_bigendian=unknown;
6014 else
6015 ac_cv_c_bigendian=no
6016 fi
6017 fi
6018 echo $ac_n 'guessing bigendian ... ' >&6
6019 fi
6020 fi
6021 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6022 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6023 fi
6024 if test $ac_cv_c_bigendian = yes; then
6025
6026 cat >>confdefs.h <<\_ACEOF
6027 #define WORDS_BIGENDIAN 1
6028 _ACEOF
6029
6030
6031 cat >>confdefs.h <<\_ACEOF
6032 #define HOST_WORDS_BIG_ENDIAN 1
6033 _ACEOF
6034
6035 BYTEORDER=4321
6036 else
6037 BYTEORDER=1234
6038 fi
6039
6040 cat >>confdefs.h <<_ACEOF
6041 #define BYTEORDER $BYTEORDER
6042 _ACEOF
6043
6044 if test $ac_cv_c_bigendian = unknown; then
6045 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6046 echo "$as_me: error: unknown endianess - sorry" >&2;}
6047 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6048 fi
6049
6050
6051 # --------
6052 # UNSORTED
6053 # --------
6054
6055 # Stage specific cflags for build.
6056 stage1_cflags=
6057 case $build in
6058 vax-*-*)
6059 if test x$GCC = xyes
6060 then
6061 stage1_cflags="-Wa,-J"
6062 else
6063 stage1_cflags="-J"
6064 fi
6065 ;;
6066 powerpc-*-darwin*)
6067 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6068 # sources; use -no-cpp-precomp to get to GNU cpp.
6069 # Apple's GCC has bugs in designated initializer handling, so disable
6070 # that too.
6071 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6072 ;;
6073 esac
6074
6075
6076 # These libraries may be used by collect2.
6077 # We may need a special search path to get them linked.
6078 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6079 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6080 if test "${gcc_cv_collect2_libs+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 save_LIBS="$LIBS"
6084 for libs in '' -lld -lmld \
6085 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6086 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6087 do
6088 LIBS="$libs"
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h. */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char ldopen ();
6104 int
6105 main ()
6106 {
6107 ldopen ();
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 gcc_cv_collect2_libs="$libs"; break
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 fi
6130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 done
6132 LIBS="$save_LIBS"
6133 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6134 fi
6135 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6136 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6137 case $gcc_cv_collect2_libs in
6138 "none required") ;;
6139 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6140 esac
6141
6142
6143 # When building Ada code on Alpha, we need exc_resume which is usually in
6144 # -lexc. So test for it.
6145 save_LIBS="$LIBS"
6146 LIBS=
6147 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6148 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6149 if test "${ac_cv_search_exc_resume+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 ac_func_search_save_LIBS=$LIBS
6153 ac_cv_search_exc_resume=no
6154 cat >conftest.$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161
6162 /* Override any gcc2 internal prototype to avoid an error. */
6163 #ifdef __cplusplus
6164 extern "C"
6165 #endif
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6168 char exc_resume ();
6169 int
6170 main ()
6171 {
6172 exc_resume ();
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_search_exc_resume="none required"
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 fi
6195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6196 if test "$ac_cv_search_exc_resume" = no; then
6197 for ac_lib in exc; do
6198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6199 cat >conftest.$ac_ext <<_ACEOF
6200 #line $LINENO "configure"
6201 /* confdefs.h. */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6213 char exc_resume ();
6214 int
6215 main ()
6216 {
6217 exc_resume ();
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_search_exc_resume="-l$ac_lib"
6235 break
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 sed 's/^/| /' conftest.$ac_ext >&5
6239
6240 fi
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242 done
6243 fi
6244 LIBS=$ac_func_search_save_LIBS
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6247 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6248 if test "$ac_cv_search_exc_resume" != no; then
6249 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6250
6251 fi
6252
6253 GNAT_LIBEXC="$LIBS"
6254 LIBS="$save_LIBS"
6255
6256
6257 # Some systems put ldexp and frexp in libm instead of libc; assume
6258 # they're both in the same place. jcf-dump needs them.
6259 save_LIBS="$LIBS"
6260 LIBS=
6261 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6262 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6263 if test "${ac_cv_search_ldexp+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 ac_func_search_save_LIBS=$LIBS
6267 ac_cv_search_ldexp=no
6268 cat >conftest.$ac_ext <<_ACEOF
6269 #line $LINENO "configure"
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275
6276 /* Override any gcc2 internal prototype to avoid an error. */
6277 #ifdef __cplusplus
6278 extern "C"
6279 #endif
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6282 char ldexp ();
6283 int
6284 main ()
6285 {
6286 ldexp ();
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_search_ldexp="none required"
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 fi
6309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6310 if test "$ac_cv_search_ldexp" = no; then
6311 for ac_lib in m; do
6312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6313 cat >conftest.$ac_ext <<_ACEOF
6314 #line $LINENO "configure"
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 #ifdef __cplusplus
6323 extern "C"
6324 #endif
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6327 char ldexp ();
6328 int
6329 main ()
6330 {
6331 ldexp ();
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6338 (eval $ac_link) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -s conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 (eval $ac_try) 2>&5
6345 ac_status=$?
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_cv_search_ldexp="-l$ac_lib"
6349 break
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 fi
6355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6356 done
6357 fi
6358 LIBS=$ac_func_search_save_LIBS
6359 fi
6360 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6361 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6362 if test "$ac_cv_search_ldexp" != no; then
6363 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6364
6365 fi
6366
6367 LDEXP_LIB="$LIBS"
6368 LIBS="$save_LIBS"
6369
6370
6371 # Use <inttypes.h> only if it exists,
6372 # doesn't clash with <sys/types.h>, and declares intmax_t.
6373 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6374 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6375 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 else
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 /* confdefs.h. */
6381 _ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6386 #include <inttypes.h>
6387 int
6388 main ()
6389 {
6390 intmax_t i = -1;
6391 ;
6392 return 0;
6393 }
6394 _ACEOF
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 gcc_cv_header_inttypes_h=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 gcc_cv_header_inttypes_h=no
6413 fi
6414 rm -f conftest.$ac_objext conftest.$ac_ext
6415 fi
6416
6417 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6418 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6419 if test $gcc_cv_header_inttypes_h = yes; then
6420
6421 cat >>confdefs.h <<\_ACEOF
6422 #define HAVE_INTTYPES_H 1
6423 _ACEOF
6424
6425 fi
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6454 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6455 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6456 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6457 setlocale
6458 do
6459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6460 echo "$as_me:$LINENO: checking for $ac_func" >&5
6461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6462 if eval "test \"\${$as_ac_var+set}\" = set"; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 #line $LINENO "configure"
6467 /* confdefs.h. */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 /* System header to define __stub macros and hopefully few prototypes,
6473 which can conflict with char $ac_func (); below.
6474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6475 <limits.h> exists even on freestanding compilers. */
6476 #ifdef __STDC__
6477 # include <limits.h>
6478 #else
6479 # include <assert.h>
6480 #endif
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 #ifdef __cplusplus
6483 extern "C"
6484 {
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char $ac_func ();
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6493 choke me
6494 #else
6495 char (*f) () = $ac_func;
6496 #endif
6497 #ifdef __cplusplus
6498 }
6499 #endif
6500
6501 int
6502 main ()
6503 {
6504 return f != $ac_func;
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 eval "$as_ac_var=yes"
6522 else
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 eval "$as_ac_var=no"
6527 fi
6528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6529 fi
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6532 if test `eval echo '${'$as_ac_var'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538 done
6539
6540
6541 if test x$ac_cv_func_mbstowcs = xyes; then
6542 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6543 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6544 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 if test "$cross_compiling" = yes; then
6548 gcc_cv_func_mbstowcs_works=yes
6549 else
6550 cat >conftest.$ac_ext <<_ACEOF
6551 #line $LINENO "configure"
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <stdlib.h>
6558 int main()
6559 {
6560 mbstowcs(0, "", 0);
6561 return 0;
6562 }
6563 _ACEOF
6564 rm -f conftest$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 gcc_cv_func_mbstowcs_works=yes
6576 else
6577 echo "$as_me: program exited with status $ac_status" >&5
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ( exit $ac_status )
6582 gcc_cv_func_mbstowcs_works=no
6583 fi
6584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6585 fi
6586 fi
6587 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6588 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6589 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6590
6591 cat >>confdefs.h <<\_ACEOF
6592 #define HAVE_WORKING_MBSTOWCS 1
6593 _ACEOF
6594
6595 fi
6596 fi
6597
6598 echo "$as_me:$LINENO: checking for ssize_t" >&5
6599 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6600 if test "${ac_cv_type_ssize_t+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line $LINENO "configure"
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 int
6612 main ()
6613 {
6614 if ((ssize_t *) 0)
6615 return 0;
6616 if (sizeof (ssize_t))
6617 return 0;
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624 (eval $ac_compile) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -s conftest.$ac_objext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_type_ssize_t=yes
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 ac_cv_type_ssize_t=no
6640 fi
6641 rm -f conftest.$ac_objext conftest.$ac_ext
6642 fi
6643 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6644 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6645 if test $ac_cv_type_ssize_t = yes; then
6646 :
6647 else
6648
6649 cat >>confdefs.h <<_ACEOF
6650 #define ssize_t int
6651 _ACEOF
6652
6653 fi
6654
6655
6656 # Try to determine the array type of the second argument of getgroups
6657 # for the target system (int or gid_t).
6658 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6659 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6660 if test "${ac_cv_type_uid_t+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663 cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 #include <sys/types.h>
6671
6672 _ACEOF
6673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674 $EGREP "uid_t" >/dev/null 2>&1; then
6675 ac_cv_type_uid_t=yes
6676 else
6677 ac_cv_type_uid_t=no
6678 fi
6679 rm -f conftest*
6680
6681 fi
6682 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6683 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6684 if test $ac_cv_type_uid_t = no; then
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define uid_t int
6688 _ACEOF
6689
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define gid_t int
6693 _ACEOF
6694
6695 fi
6696
6697 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6698 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6699 if test "${ac_cv_type_getgroups+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 if test "$cross_compiling" = yes; then
6703 ac_cv_type_getgroups=cross
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 /* confdefs.h. */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 /* Thanks to Mike Rendell for this test. */
6713 #include <sys/types.h>
6714 #define NGID 256
6715 #undef MAX
6716 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6717
6718 int
6719 main ()
6720 {
6721 gid_t gidset[NGID];
6722 int i, n;
6723 union { gid_t gval; long lval; } val;
6724
6725 val.lval = -1;
6726 for (i = 0; i < NGID; i++)
6727 gidset[i] = val.gval;
6728 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6729 gidset);
6730 /* Exit non-zero if getgroups seems to require an array of ints. This
6731 happens when gid_t is short but getgroups modifies an array of ints. */
6732 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6733 }
6734 _ACEOF
6735 rm -f conftest$ac_exeext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737 (eval $ac_link) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_type_getgroups=gid_t
6747 else
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ( exit $ac_status )
6753 ac_cv_type_getgroups=int
6754 fi
6755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6756 fi
6757 if test $ac_cv_type_getgroups = cross; then
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line $LINENO "configure"
6760 /* confdefs.h. */
6761 _ACEOF
6762 cat confdefs.h >>conftest.$ac_ext
6763 cat >>conftest.$ac_ext <<_ACEOF
6764 /* end confdefs.h. */
6765 #include <unistd.h>
6766
6767 _ACEOF
6768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6769 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6770 ac_cv_type_getgroups=gid_t
6771 else
6772 ac_cv_type_getgroups=int
6773 fi
6774 rm -f conftest*
6775
6776 fi
6777 fi
6778 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6779 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6780
6781 cat >>confdefs.h <<_ACEOF
6782 #define GETGROUPS_T $ac_cv_type_getgroups
6783 _ACEOF
6784
6785
6786 if test "${target}" = "${build}"; then
6787 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
6788 else
6789 case "${target}" in
6790 # This condition may need some tweaking. It should include all
6791 # targets where the array type of the second argument of getgroups
6792 # is int and the type of gid_t is not equivalent to int.
6793 *-*-sunos* | *-*-ultrix*)
6794 TARGET_GETGROUPS_T=int
6795 ;;
6796 *)
6797 TARGET_GETGROUPS_T=gid_t
6798 ;;
6799 esac
6800 fi
6801
6802
6803 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6804 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6805 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 if test "$cross_compiling" = yes; then
6809 gcc_cv_func_printf_ptr=no
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <stdio.h>
6819
6820 int main()
6821 {
6822 char buf[64];
6823 char *p = buf, *q = NULL;
6824 sprintf(buf, "%p", p);
6825 sscanf(buf, "%p", &q);
6826 return (p != q);
6827 }
6828 _ACEOF
6829 rm -f conftest$ac_exeext
6830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6831 (eval $ac_link) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 gcc_cv_func_printf_ptr=yes
6841 else
6842 echo "$as_me: program exited with status $ac_status" >&5
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ( exit $ac_status )
6847 gcc_cv_func_printf_ptr=no
6848 fi
6849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6850 fi
6851 rm -f core core.* *.core
6852 fi
6853 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6854 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6855 if test $gcc_cv_func_printf_ptr = yes ; then
6856
6857 cat >>confdefs.h <<\_ACEOF
6858 #define HAVE_PRINTF_PTR 1
6859 _ACEOF
6860
6861 fi
6862
6863 if test $ac_cv_header_sys_mman_h != yes \
6864 || test $ac_cv_func_mmap != yes; then
6865 gcc_cv_func_mmap_file=no
6866 gcc_cv_func_mmap_dev_zero=no
6867 gcc_cv_func_mmap_anon=no
6868 else
6869 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6870 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6871 if test "${gcc_cv_func_mmap_file+set}" = set; then
6872 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874 # Add a system to this blacklist if
6875 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6876 # memory area containing the same data that you'd get if you applied
6877 # read() to the same fd. The only system known to have a problem here
6878 # is VMS, where text files have record structure.
6879 case "$host_os" in
6880 vms* | ultrix*)
6881 gcc_cv_func_mmap_file=no ;;
6882 *)
6883 gcc_cv_func_mmap_file=yes;;
6884 esac
6885 fi
6886 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6887 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6888 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6889 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6890 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 # Add a system to this blacklist if it has mmap() but /dev/zero
6894 # does not exist, or if mmapping /dev/zero does not give anonymous
6895 # zeroed pages with both the following properties:
6896 # 1. If you map N consecutive pages in with one call, and then
6897 # unmap any subset of those pages, the pages that were not
6898 # explicitly unmapped remain accessible.
6899 # 2. If you map two adjacent blocks of memory and then unmap them
6900 # both at once, they must both go away.
6901 # Systems known to be in this category are Windows (all variants),
6902 # VMS, and Darwin.
6903 case "$host_os" in
6904 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
6905 gcc_cv_func_mmap_dev_zero=no ;;
6906 *)
6907 gcc_cv_func_mmap_dev_zero=yes;;
6908 esac
6909 fi
6910 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6911 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6912
6913 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6914 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6915 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6916 if test "${gcc_cv_decl_map_anon+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line $LINENO "configure"
6921 /* confdefs.h. */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h. */
6926 #include <sys/types.h>
6927 #include <sys/mman.h>
6928 #include <unistd.h>
6929
6930 #ifndef MAP_ANONYMOUS
6931 #define MAP_ANONYMOUS MAP_ANON
6932 #endif
6933
6934 int
6935 main ()
6936 {
6937 int n = MAP_ANONYMOUS;
6938 ;
6939 return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6944 (eval $ac_compile) 2>&5
6945 ac_status=$?
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -s conftest.$ac_objext'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 (eval $ac_try) 2>&5
6951 ac_status=$?
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; }; then
6954 gcc_cv_decl_map_anon=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 gcc_cv_decl_map_anon=no
6960 fi
6961 rm -f conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6964 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6965
6966 if test $gcc_cv_decl_map_anon = no; then
6967 gcc_cv_func_mmap_anon=no
6968 else
6969 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6970 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6971 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6975 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6976 # doesn't give anonymous zeroed pages with the same properties listed
6977 # above for use of /dev/zero.
6978 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6979 case "$host_os" in
6980 vms* | cygwin* | pe | mingw* | sco* | udk* )
6981 gcc_cv_func_mmap_anon=no ;;
6982 *)
6983 gcc_cv_func_mmap_anon=yes;;
6984 esac
6985 fi
6986 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6987 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6988 fi
6989 fi
6990
6991 if test $gcc_cv_func_mmap_file = yes; then
6992
6993 cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_MMAP_FILE 1
6995 _ACEOF
6996
6997 fi
6998 if test $gcc_cv_func_mmap_dev_zero = yes; then
6999
7000 cat >>confdefs.h <<\_ACEOF
7001 #define HAVE_MMAP_DEV_ZERO 1
7002 _ACEOF
7003
7004 fi
7005 if test $gcc_cv_func_mmap_anon = yes; then
7006
7007 cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_MMAP_ANON 1
7009 _ACEOF
7010
7011 fi
7012
7013
7014 case "${host}" in
7015 *-*-*vms*)
7016 # Under VMS, vfork works very differently than on Unix. The standard test
7017 # won't work, and it isn't easily adaptable. It makes more sense to
7018 # just force it.
7019 ac_cv_func_vfork_works=yes
7020 ;;
7021 esac
7022 echo "$as_me:$LINENO: checking for pid_t" >&5
7023 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7024 if test "${ac_cv_type_pid_t+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 /* confdefs.h. */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 int
7036 main ()
7037 {
7038 if ((pid_t *) 0)
7039 return 0;
7040 if (sizeof (pid_t))
7041 return 0;
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_type_pid_t=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_cv_type_pid_t=no
7064 fi
7065 rm -f conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7069 if test $ac_cv_type_pid_t = yes; then
7070 :
7071 else
7072
7073 cat >>confdefs.h <<_ACEOF
7074 #define pid_t int
7075 _ACEOF
7076
7077 fi
7078
7079
7080
7081 for ac_header in unistd.h vfork.h
7082 do
7083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 echo "$as_me:$LINENO: checking for $ac_header" >&5
7085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 cat >conftest.$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <$ac_header>
7097 _ACEOF
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } >/dev/null; then
7106 if test -s conftest.err; then
7107 ac_cpp_err=$ac_c_preproc_warn_flag
7108 else
7109 ac_cpp_err=
7110 fi
7111 else
7112 ac_cpp_err=yes
7113 fi
7114 if test -z "$ac_cpp_err"; then
7115 eval "$as_ac_Header=yes"
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 eval "$as_ac_Header=no"
7121 fi
7122 rm -f conftest.err conftest.$ac_ext
7123 fi
7124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7127 cat >>confdefs.h <<_ACEOF
7128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7129 _ACEOF
7130
7131 fi
7132 done
7133
7134
7135
7136 for ac_func in fork vfork
7137 do
7138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7139 echo "$as_me:$LINENO: checking for $ac_func" >&5
7140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7141 if eval "test \"\${$as_ac_var+set}\" = set"; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 else
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char $ac_func (); below.
7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 <limits.h> exists even on freestanding compilers. */
7155 #ifdef __STDC__
7156 # include <limits.h>
7157 #else
7158 # include <assert.h>
7159 #endif
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 #ifdef __cplusplus
7162 extern "C"
7163 {
7164 #endif
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7167 char $ac_func ();
7168 /* The GNU C library defines this for functions which it implements
7169 to always fail with ENOSYS. Some functions are actually named
7170 something starting with __ and the normal name is an alias. */
7171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7172 choke me
7173 #else
7174 char (*f) () = $ac_func;
7175 #endif
7176 #ifdef __cplusplus
7177 }
7178 #endif
7179
7180 int
7181 main ()
7182 {
7183 return f != $ac_func;
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -s conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 eval "$as_ac_var=yes"
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 eval "$as_ac_var=no"
7206 fi
7207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7208 fi
7209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7211 if test `eval echo '${'$as_ac_var'}'` = yes; then
7212 cat >>confdefs.h <<_ACEOF
7213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7214 _ACEOF
7215
7216 fi
7217 done
7218
7219 if test "x$ac_cv_func_fork" = xyes; then
7220 echo "$as_me:$LINENO: checking for working fork" >&5
7221 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7222 if test "${ac_cv_func_fork_works+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 if test "$cross_compiling" = yes; then
7226 ac_cv_func_fork_works=cross
7227 else
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* By Ruediger Kuhlmann. */
7230 #include <sys/types.h>
7231 #if HAVE_UNISTD_H
7232 # include <unistd.h>
7233 #endif
7234 /* Some systems only have a dummy stub for fork() */
7235 int main ()
7236 {
7237 if (fork() < 0)
7238 exit (1);
7239 exit (0);
7240 }
7241 _ACEOF
7242 rm -f conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_cv_func_fork_works=yes
7254 else
7255 echo "$as_me: program exited with status $ac_status" >&5
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ( exit $ac_status )
7260 ac_cv_func_fork_works=no
7261 fi
7262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7263 fi
7264 fi
7265 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7266 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7267
7268 else
7269 ac_cv_func_fork_works=$ac_cv_func_fork
7270 fi
7271 if test "x$ac_cv_func_fork_works" = xcross; then
7272 case $host in
7273 *-*-amigaos* | *-*-msdosdjgpp*)
7274 # Override, as these systems have only a dummy fork() stub
7275 ac_cv_func_fork_works=no
7276 ;;
7277 *)
7278 ac_cv_func_fork_works=yes
7279 ;;
7280 esac
7281 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7282 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7283 fi
7284 ac_cv_func_vfork_works=$ac_cv_func_vfork
7285 if test "x$ac_cv_func_vfork" = xyes; then
7286 echo "$as_me:$LINENO: checking for working vfork" >&5
7287 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7288 if test "${ac_cv_func_vfork_works+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 if test "$cross_compiling" = yes; then
7292 ac_cv_func_vfork_works=cross
7293 else
7294 cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 /* Thanks to Paul Eggert for this test. */
7302 #include <stdio.h>
7303 #include <stdlib.h>
7304 #include <sys/types.h>
7305 #include <sys/stat.h>
7306 #include <sys/wait.h>
7307 #if HAVE_UNISTD_H
7308 # include <unistd.h>
7309 #endif
7310 #if HAVE_VFORK_H
7311 # include <vfork.h>
7312 #endif
7313 /* On some sparc systems, changes by the child to local and incoming
7314 argument registers are propagated back to the parent. The compiler
7315 is told about this with #include <vfork.h>, but some compilers
7316 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7317 static variable whose address is put into a register that is
7318 clobbered by the vfork. */
7319 static void
7320 #ifdef __cplusplus
7321 sparc_address_test (int arg)
7322 # else
7323 sparc_address_test (arg) int arg;
7324 #endif
7325 {
7326 static pid_t child;
7327 if (!child) {
7328 child = vfork ();
7329 if (child < 0) {
7330 perror ("vfork");
7331 _exit(2);
7332 }
7333 if (!child) {
7334 arg = getpid();
7335 write(-1, "", 0);
7336 _exit (arg);
7337 }
7338 }
7339 }
7340
7341 int
7342 main ()
7343 {
7344 pid_t parent = getpid ();
7345 pid_t child;
7346
7347 sparc_address_test (0);
7348
7349 child = vfork ();
7350
7351 if (child == 0) {
7352 /* Here is another test for sparc vfork register problems. This
7353 test uses lots of local variables, at least as many local
7354 variables as main has allocated so far including compiler
7355 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7356 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7357 reuse the register of parent for one of the local variables,
7358 since it will think that parent can't possibly be used any more
7359 in this routine. Assigning to the local variable will thus
7360 munge parent in the parent process. */
7361 pid_t
7362 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7363 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7364 /* Convince the compiler that p..p7 are live; otherwise, it might
7365 use the same hardware register for all 8 local variables. */
7366 if (p != p1 || p != p2 || p != p3 || p != p4
7367 || p != p5 || p != p6 || p != p7)
7368 _exit(1);
7369
7370 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7371 from child file descriptors. If the child closes a descriptor
7372 before it execs or exits, this munges the parent's descriptor
7373 as well. Test for this by closing stdout in the child. */
7374 _exit(close(fileno(stdout)) != 0);
7375 } else {
7376 int status;
7377 struct stat st;
7378
7379 while (wait(&status) != child)
7380 ;
7381 exit(
7382 /* Was there some problem with vforking? */
7383 child < 0
7384
7385 /* Did the child fail? (This shouldn't happen.) */
7386 || status
7387
7388 /* Did the vfork/compiler bug occur? */
7389 || parent != getpid()
7390
7391 /* Did the file descriptor bug occur? */
7392 || fstat(fileno(stdout), &st) != 0
7393 );
7394 }
7395 }
7396 _ACEOF
7397 rm -f conftest$ac_exeext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399 (eval $ac_link) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_func_vfork_works=yes
7409 else
7410 echo "$as_me: program exited with status $ac_status" >&5
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ( exit $ac_status )
7415 ac_cv_func_vfork_works=no
7416 fi
7417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 fi
7420 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7421 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7422
7423 fi;
7424 if test "x$ac_cv_func_fork_works" = xcross; then
7425 ac_cv_func_vfork_works=ac_cv_func_vfork
7426 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7427 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7428 fi
7429
7430 if test "x$ac_cv_func_vfork_works" = xyes; then
7431
7432 cat >>confdefs.h <<\_ACEOF
7433 #define HAVE_WORKING_VFORK 1
7434 _ACEOF
7435
7436 else
7437
7438 cat >>confdefs.h <<\_ACEOF
7439 #define vfork fork
7440 _ACEOF
7441
7442 fi
7443 if test "x$ac_cv_func_fork_works" = xyes; then
7444
7445 cat >>confdefs.h <<\_ACEOF
7446 #define HAVE_WORKING_FORK 1
7447 _ACEOF
7448
7449 fi
7450
7451
7452
7453
7454 am_cv_lib_iconv_ldpath=
7455
7456 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7457 if test "${with_libiconv_prefix+set}" = set; then
7458 withval="$with_libiconv_prefix"
7459
7460 for dir in `echo "$withval" | tr : ' '`; do
7461 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7462 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7463 done
7464
7465 fi;
7466
7467
7468 for ac_header in iconv.h
7469 do
7470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7471 echo "$as_me:$LINENO: checking for $ac_header" >&5
7472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476 cat >conftest.$ac_ext <<_ACEOF
7477 #line $LINENO "configure"
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <$ac_header>
7484 _ACEOF
7485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } >/dev/null; then
7493 if test -s conftest.err; then
7494 ac_cpp_err=$ac_c_preproc_warn_flag
7495 else
7496 ac_cpp_err=
7497 fi
7498 else
7499 ac_cpp_err=yes
7500 fi
7501 if test -z "$ac_cpp_err"; then
7502 eval "$as_ac_Header=yes"
7503 else
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507 eval "$as_ac_Header=no"
7508 fi
7509 rm -f conftest.err conftest.$ac_ext
7510 fi
7511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7514 cat >>confdefs.h <<_ACEOF
7515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516 _ACEOF
7517
7518 fi
7519 done
7520
7521
7522 echo "$as_me:$LINENO: checking for iconv" >&5
7523 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7524 if test "${am_cv_func_iconv+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527
7528 am_cv_func_iconv="no, consider installing GNU libiconv"
7529 am_cv_lib_iconv=no
7530 cat >conftest.$ac_ext <<_ACEOF
7531 #line $LINENO "configure"
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 #include <stdlib.h>
7538 #include <iconv.h>
7539 int
7540 main ()
7541 {
7542 iconv_t cd = iconv_open("","");
7543 iconv(cd,NULL,NULL,NULL,NULL);
7544 iconv_close(cd);
7545 ;
7546 return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551 (eval $ac_link) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest$ac_exeext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 (eval $ac_try) 2>&5
7558 ac_status=$?
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 am_cv_func_iconv=yes
7562 else
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 fi
7567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7568 if test "$am_cv_func_iconv" != yes; then
7569 am_save_LIBS="$LIBS"
7570 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7571 cat >conftest.$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 /* confdefs.h. */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578 #include <stdlib.h>
7579 #include <iconv.h>
7580 int
7581 main ()
7582 {
7583 iconv_t cd = iconv_open("","");
7584 iconv(cd,NULL,NULL,NULL,NULL);
7585 iconv_close(cd);
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592 (eval $ac_link) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 am_cv_lib_iconv=yes
7603 am_cv_func_iconv=yes
7604 else
7605 echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608 fi
7609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7610 LIBS="$am_save_LIBS"
7611 fi
7612
7613 fi
7614 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7615 echo "${ECHO_T}$am_cv_func_iconv" >&6
7616 if test "$am_cv_func_iconv" = yes; then
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define HAVE_ICONV 1
7620 _ACEOF
7621
7622 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7623 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7624 if test "${am_cv_proto_iconv+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627
7628 cat >conftest.$ac_ext <<_ACEOF
7629 #line $LINENO "configure"
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635
7636 #include <stdlib.h>
7637 #include <iconv.h>
7638 extern
7639 #ifdef __cplusplus
7640 "C"
7641 #endif
7642 #if defined(__STDC__) || defined(__cplusplus)
7643 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7644 #else
7645 size_t iconv();
7646 #endif
7647
7648 int
7649 main ()
7650 {
7651
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7658 (eval $ac_compile) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 am_cv_proto_iconv_arg1=""
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 am_cv_proto_iconv_arg1="const"
7674 fi
7675 rm -f conftest.$ac_objext conftest.$ac_ext
7676 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);"
7677 fi
7678
7679 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7680 echo "$as_me:$LINENO: result: ${ac_t:-
7681 }$am_cv_proto_iconv" >&5
7682 echo "${ECHO_T}${ac_t:-
7683 }$am_cv_proto_iconv" >&6
7684
7685 cat >>confdefs.h <<_ACEOF
7686 #define ICONV_CONST $am_cv_proto_iconv_arg1
7687 _ACEOF
7688
7689 fi
7690 LIBICONV=
7691 if test "$am_cv_lib_iconv" = yes; then
7692 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
7693 fi
7694
7695
7696 # Until we have in-tree GNU iconv:
7697 LIBICONV_DEP=
7698
7699
7700
7701 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7702 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7703 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 else
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line $LINENO "configure"
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 #include <locale.h>
7714 int
7715 main ()
7716 {
7717 return LC_MESSAGES
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7725 ac_status=$?
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 am_cv_val_LC_MESSAGES=yes
7735 else
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739 am_cv_val_LC_MESSAGES=no
7740 fi
7741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742 fi
7743 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7744 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7745 if test $am_cv_val_LC_MESSAGES = yes; then
7746
7747 cat >>confdefs.h <<\_ACEOF
7748 #define HAVE_LC_MESSAGES 1
7749 _ACEOF
7750
7751 fi
7752
7753
7754 # We will need to find libiberty.h and ansidecl.h
7755 saved_CFLAGS="$CFLAGS"
7756 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7757 for ac_func in getenv atol sbrk abort atof getcwd getwd \
7758 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7759 fprintf_unlocked strstr errno snprintf vasprintf \
7760 malloc realloc calloc free basename getopt clock
7761 do
7762 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7764 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7765 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 /* confdefs.h. */
7771 _ACEOF
7772 cat confdefs.h >>conftest.$ac_ext
7773 cat >>conftest.$ac_ext <<_ACEOF
7774 /* end confdefs.h. */
7775 #undef $ac_tr_decl
7776 #define $ac_tr_decl 1
7777
7778 #include "ansidecl.h"
7779 #include "system.h"
7780
7781 int
7782 main ()
7783 {
7784 #ifndef $ac_func
7785 char *(*pfn) = (char *(*)) $ac_func ;
7786 #endif
7787 ;
7788 return 0;
7789 }
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest.$ac_objext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799 (eval $ac_try) 2>&5
7800 ac_status=$?
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 eval "gcc_cv_have_decl_$ac_func=yes"
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 eval "gcc_cv_have_decl_$ac_func=no"
7809 fi
7810 rm -f conftest.$ac_objext conftest.$ac_ext
7811 fi
7812
7813 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7814 echo "$as_me:$LINENO: result: yes" >&5
7815 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7816 #define $ac_tr_decl 1
7817 _ACEOF
7818
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7822 #define $ac_tr_decl 0
7823 _ACEOF
7824
7825 fi
7826
7827 done
7828 if test x = y ; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_DECL_GETENV 1
7832 _ACEOF
7833
7834 cat >>confdefs.h <<\_ACEOF
7835 #define HAVE_DECL_ATOL 1
7836 _ACEOF
7837
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_DECL_SBRK 1
7840 _ACEOF
7841
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_DECL_ABORT 1
7844 _ACEOF
7845
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_DECL_ATOF 1
7848 _ACEOF
7849
7850 cat >>confdefs.h <<\_ACEOF
7851 #define HAVE_DECL_GETCWD 1
7852 _ACEOF
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define HAVE_DECL_GETWD 1
7856 _ACEOF
7857 \
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_DECL_STRSIGNAL 1
7861 _ACEOF
7862
7863 cat >>confdefs.h <<\_ACEOF
7864 #define HAVE_DECL_PUTC_UNLOCKED 1
7865 _ACEOF
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_DECL_FPUTS_UNLOCKED 1
7869 _ACEOF
7870
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_DECL_FWRITE_UNLOCKED 1
7873 _ACEOF
7874 \
7875
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7878 _ACEOF
7879
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_DECL_STRSTR 1
7882 _ACEOF
7883
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_DECL_ERRNO 1
7886 _ACEOF
7887
7888 cat >>confdefs.h <<\_ACEOF
7889 #define HAVE_DECL_SNPRINTF 1
7890 _ACEOF
7891
7892 cat >>confdefs.h <<\_ACEOF
7893 #define HAVE_DECL_VASPRINTF 1
7894 _ACEOF
7895 \
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_DECL_MALLOC 1
7899 _ACEOF
7900
7901 cat >>confdefs.h <<\_ACEOF
7902 #define HAVE_DECL_REALLOC 1
7903 _ACEOF
7904
7905 cat >>confdefs.h <<\_ACEOF
7906 #define HAVE_DECL_CALLOC 1
7907 _ACEOF
7908
7909 cat >>confdefs.h <<\_ACEOF
7910 #define HAVE_DECL_FREE 1
7911 _ACEOF
7912
7913 cat >>confdefs.h <<\_ACEOF
7914 #define HAVE_DECL_BASENAME 1
7915 _ACEOF
7916
7917 cat >>confdefs.h <<\_ACEOF
7918 #define HAVE_DECL_GETOPT 1
7919 _ACEOF
7920
7921 cat >>confdefs.h <<\_ACEOF
7922 #define HAVE_DECL_CLOCK 1
7923 _ACEOF
7924 fi
7925
7926
7927 for ac_func in getrlimit setrlimit getrusage
7928 do
7929 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7930 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7931 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7932 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 else
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 #undef $ac_tr_decl
7943 #define $ac_tr_decl 1
7944
7945 #include "ansidecl.h"
7946 #include "system.h"
7947 #ifdef HAVE_SYS_RESOURCE_H
7948 #include <sys/resource.h>
7949 #endif
7950
7951
7952 int
7953 main ()
7954 {
7955 #ifndef $ac_func
7956 char *(*pfn) = (char *(*)) $ac_func ;
7957 #endif
7958 ;
7959 return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7964 (eval $ac_compile) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 eval "gcc_cv_have_decl_$ac_func=yes"
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 eval "gcc_cv_have_decl_$ac_func=no"
7980 fi
7981 rm -f conftest.$ac_objext conftest.$ac_ext
7982 fi
7983
7984 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
7987 #define $ac_tr_decl 1
7988 _ACEOF
7989
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
7993 #define $ac_tr_decl 0
7994 _ACEOF
7995
7996 fi
7997
7998 done
7999 if test x = y ; then
8000
8001 cat >>confdefs.h <<\_ACEOF
8002 #define HAVE_DECL_GETRLIMIT 1
8003 _ACEOF
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_DECL_SETRLIMIT 1
8007 _ACEOF
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_DECL_GETRUSAGE 1
8011 _ACEOF
8012 fi
8013
8014
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line $LINENO "configure"
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022
8023 #include "ansidecl.h"
8024 #include "system.h"
8025 #ifdef HAVE_SYS_RESOURCE_H
8026 #include <sys/resource.h>
8027 #endif
8028
8029 int
8030 main ()
8031 {
8032 rlim_t l = 0;
8033 ;
8034 return 0;
8035 }
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>&5
8040 ac_status=$?
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 :
8050 else
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054
8055 cat >>confdefs.h <<\_ACEOF
8056 #define rlim_t long
8057 _ACEOF
8058
8059 fi
8060 rm -f conftest.$ac_objext conftest.$ac_ext
8061
8062 for ac_func in ldgetname
8063 do
8064 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8065 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8066 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8067 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #undef $ac_tr_decl
8078 #define $ac_tr_decl 1
8079
8080 #include "ansidecl.h"
8081 #include "system.h"
8082 #ifdef HAVE_LDFCN_H
8083 #include <ldfcn.h>
8084 #endif
8085
8086
8087 int
8088 main ()
8089 {
8090 #ifndef $ac_func
8091 char *(*pfn) = (char *(*)) $ac_func ;
8092 #endif
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 eval "gcc_cv_have_decl_$ac_func=yes"
8110 else
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8113
8114 eval "gcc_cv_have_decl_$ac_func=no"
8115 fi
8116 rm -f conftest.$ac_objext conftest.$ac_ext
8117 fi
8118
8119 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8120 echo "$as_me:$LINENO: result: yes" >&5
8121 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8122 #define $ac_tr_decl 1
8123 _ACEOF
8124
8125 else
8126 echo "$as_me:$LINENO: result: no" >&5
8127 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8128 #define $ac_tr_decl 0
8129 _ACEOF
8130
8131 fi
8132
8133 done
8134 if test x = y ; then
8135
8136 cat >>confdefs.h <<\_ACEOF
8137 #define HAVE_DECL_LDGETNAME 1
8138 _ACEOF
8139 fi
8140
8141
8142 for ac_func in times
8143 do
8144 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8145 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8146 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8147 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 /* confdefs.h. */
8153 _ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 #undef $ac_tr_decl
8158 #define $ac_tr_decl 1
8159
8160 #include "ansidecl.h"
8161 #include "system.h"
8162 #ifdef HAVE_SYS_TIMES_H
8163 #include <sys/times.h>
8164 #endif
8165
8166
8167 int
8168 main ()
8169 {
8170 #ifndef $ac_func
8171 char *(*pfn) = (char *(*)) $ac_func ;
8172 #endif
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -s conftest.$ac_objext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 (eval $ac_try) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 eval "gcc_cv_have_decl_$ac_func=yes"
8190 else
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 eval "gcc_cv_have_decl_$ac_func=no"
8195 fi
8196 rm -f conftest.$ac_objext conftest.$ac_ext
8197 fi
8198
8199 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8202 #define $ac_tr_decl 1
8203 _ACEOF
8204
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8208 #define $ac_tr_decl 0
8209 _ACEOF
8210
8211 fi
8212
8213 done
8214 if test x = y ; then
8215
8216 cat >>confdefs.h <<\_ACEOF
8217 #define HAVE_DECL_TIMES 1
8218 _ACEOF
8219 fi
8220
8221
8222 # More time-related stuff.
8223 echo "$as_me:$LINENO: checking for struct tms" >&5
8224 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8225 if test "${ac_cv_struct_tms+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228
8229 cat >conftest.$ac_ext <<_ACEOF
8230 #line $LINENO "configure"
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236
8237 #include "ansidecl.h"
8238 #include "system.h"
8239 #ifdef HAVE_SYS_TIMES_H
8240 #include <sys/times.h>
8241 #endif
8242
8243 int
8244 main ()
8245 {
8246 struct tms tms;
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253 (eval $ac_compile) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_struct_tms=yes
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_cv_struct_tms=no
8269 fi
8270 rm -f conftest.$ac_objext conftest.$ac_ext
8271 fi
8272 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8273 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8274 if test $ac_cv_struct_tms = yes; then
8275
8276 cat >>confdefs.h <<\_ACEOF
8277 #define HAVE_STRUCT_TMS 1
8278 _ACEOF
8279
8280 fi
8281
8282 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8283 # revisit after autoconf 2.50.
8284 echo "$as_me:$LINENO: checking for clock_t" >&5
8285 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8286 if test "${gcc_cv_type_clock_t+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297
8298 #include "ansidecl.h"
8299 #include "system.h"
8300
8301 int
8302 main ()
8303 {
8304 clock_t x;
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311 (eval $ac_compile) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -s conftest.$ac_objext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 (eval $ac_try) 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 gcc_cv_type_clock_t=yes
8322 else
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326 gcc_cv_type_clock_t=no
8327 fi
8328 rm -f conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8331 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8332 if test $gcc_cv_type_clock_t = yes; then
8333
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_CLOCK_T 1
8336 _ACEOF
8337
8338 fi
8339
8340 echo "$as_me:$LINENO: checking for uchar" >&5
8341 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8342 if test "${gcc_cv_type_uchar+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352
8353 #include "ansidecl.h"
8354 #include "system.h"
8355
8356 int
8357 main ()
8358 {
8359 if ((uchar *)0) return 0;
8360 if (sizeof(uchar)) return 0;
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -s conftest.$ac_objext'
8372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 (eval $ac_try) 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; }; then
8377 ac_cv_type_uchar=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_type_uchar=no
8383 fi
8384 rm -f conftest.$ac_objext conftest.$ac_ext
8385 fi
8386 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8387 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8388 if test $ac_cv_type_uchar = yes; then
8389
8390 cat >>confdefs.h <<\_ACEOF
8391 #define HAVE_UCHAR 1
8392 _ACEOF
8393
8394 fi
8395
8396 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8397 CFLAGS="$saved_CFLAGS"
8398
8399 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8400 if test "${enable_initfini_array+set}" = set; then
8401 enableval="$enable_initfini_array"
8402
8403 else
8404
8405 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8406 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8407 if test "${gcc_cv_initfini_array+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 if test "$cross_compiling" = yes; then
8411 gcc_cv_initfini_array=no
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420
8421 static int x = -1;
8422 int main (void) { return x; }
8423 int foo (void) { x = 0; }
8424 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8425 _ACEOF
8426 rm -f conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 gcc_cv_initfini_array=yes
8438 else
8439 echo "$as_me: program exited with status $ac_status" >&5
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 ( exit $ac_status )
8444 gcc_cv_initfini_array=no
8445 fi
8446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8447 fi
8448 fi
8449 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8450 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8451 enable_initfini_array=$gcc_cv_initfini_array
8452
8453 fi;
8454 if test $enable_initfini_array = yes; then
8455
8456 cat >>confdefs.h <<\_ACEOF
8457 #define HAVE_INITFINI_ARRAY 1
8458 _ACEOF
8459
8460 fi
8461
8462 # mkdir takes a single argument on some systems.
8463 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8464 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8465 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475
8476 #include <sys/types.h>
8477 #ifdef HAVE_SYS_STAT_H
8478 # include <sys/stat.h>
8479 #endif
8480 #ifdef HAVE_UNISTD_H
8481 # include <unistd.h>
8482 #endif
8483 #ifdef HAVE_DIRECT_H
8484 # include <direct.h>
8485 #endif
8486 int
8487 main ()
8488 {
8489 mkdir ("foo", 0);
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496 (eval $ac_compile) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try='test -s conftest.$ac_objext'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8506 gcc_cv_mkdir_takes_one_arg=no
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 gcc_cv_mkdir_takes_one_arg=yes
8512 fi
8513 rm -f conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8516 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8517 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8518
8519 cat >>confdefs.h <<\_ACEOF
8520 #define MKDIR_TAKES_ONE_ARG 1
8521 _ACEOF
8522
8523 fi
8524
8525
8526 # File extensions
8527 manext='.1'
8528 objext='.o'
8529
8530
8531
8532 # With Setjmp/Longjmp based exception handling.
8533 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8534 if test "${enable_sjlj_exceptions+set}" = set; then
8535 enableval="$enable_sjlj_exceptions"
8536 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8540 _ACEOF
8541
8542 fi;
8543
8544 if test x$host = x$target; then
8545 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8546 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8547 if test "${ac_cv_lib_unwind_main+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550 ac_check_lib_save_LIBS=$LIBS
8551 LIBS="-lunwind $LIBS"
8552 cat >conftest.$ac_ext <<_ACEOF
8553 #line $LINENO "configure"
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559
8560
8561 int
8562 main ()
8563 {
8564 main ();
8565 ;
8566 return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_lib_unwind_main=yes
8582 else
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_lib_unwind_main=no
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8592 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8593 if test $ac_cv_lib_unwind_main = yes; then
8594 use_libunwind_default=yes
8595 else
8596 use_libunwind_default=no
8597 fi
8598
8599 else
8600 use_libunwind_default=no
8601 fi
8602 # Use libunwind based exception handling.
8603 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8604 if test "${enable_libunwind_exceptions+set}" = set; then
8605 enableval="$enable_libunwind_exceptions"
8606 use_libunwind_exceptions=$enableval
8607 else
8608 use_libunwind_exceptions=$use_libunwind_default
8609 fi;
8610 if test x"$use_libunwind_exceptions" = xyes; then
8611
8612 cat >>confdefs.h <<\_ACEOF
8613 #define USE_LIBUNWIND_EXCEPTIONS 1
8614 _ACEOF
8615
8616 fi
8617
8618 # --------------------------------------------------------
8619 # Build, host, and target specific configuration fragments
8620 # --------------------------------------------------------
8621
8622 # Collect build-machine-specific information.
8623 . ${srcdir}/config.build
8624
8625 # Collect host-machine-specific information.
8626 . ${srcdir}/config.host
8627
8628 target_gtfiles=
8629
8630 # Collect target-machine-specific information.
8631 . ${srcdir}/config.gcc
8632
8633 extra_objs="${host_extra_objs} ${extra_objs}"
8634 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
8635
8636 # Default the target-machine variables that were not explicitly set.
8637 if test x"$tm_file" = x
8638 then tm_file=$cpu_type/$cpu_type.h; fi
8639
8640 if test x"$extra_headers" = x
8641 then extra_headers=; fi
8642
8643 if test x$md_file = x
8644 then md_file=$cpu_type/$cpu_type.md; fi
8645
8646 if test x$out_file = x
8647 then out_file=$cpu_type/$cpu_type.c; fi
8648
8649 if test x"$tmake_file" = x
8650 then tmake_file=$cpu_type/t-$cpu_type
8651 fi
8652
8653 if test x"$dwarf2" = xyes
8654 then tm_file="$tm_file tm-dwarf2.h"
8655 fi
8656
8657 # Say what files are being used for the output code and MD file.
8658 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8659 echo "Using \`$srcdir/config/$md_file' as machine description file."
8660
8661 # If any of the xm_file variables contain nonexistent files, warn
8662 # about them and drop them.
8663
8664 bx=
8665 for x in $build_xm_file; do
8666 if test -f $srcdir/config/$x
8667 then bx="$bx $x"
8668 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8669 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8670 fi
8671 done
8672 build_xm_file="$bx"
8673
8674 hx=
8675 for x in $host_xm_file; do
8676 if test -f $srcdir/config/$x
8677 then hx="$hx $x"
8678 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8679 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8680 fi
8681 done
8682 host_xm_file="$hx"
8683
8684 tx=
8685 for x in $xm_file; do
8686 if test -f $srcdir/config/$x
8687 then tx="$tx $x"
8688 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8689 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8690 fi
8691 done
8692 xm_file="$tx"
8693
8694 count=a
8695 for f in $tm_file; do
8696 count=${count}x
8697 done
8698 if test $count = ax; then
8699 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8700 else
8701 echo "Using the following target machine macro files:"
8702 for f in $tm_file; do
8703 echo " $srcdir/config/$f"
8704 done
8705 fi
8706
8707 if test x$need_64bit_hwint = xyes; then
8708
8709 cat >>confdefs.h <<\_ACEOF
8710 #define NEED_64BIT_HOST_WIDE_INT 1
8711 _ACEOF
8712
8713 fi
8714
8715 count=a
8716 for f in $host_xm_file; do
8717 count=${count}x
8718 done
8719 if test $count = a; then
8720 :
8721 elif test $count = ax; then
8722 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8723 else
8724 echo "Using the following host machine macro files:"
8725 for f in $host_xm_file; do
8726 echo " $srcdir/config/$f"
8727 done
8728 fi
8729 echo "Using ${out_host_hook_obj} for host machine hooks."
8730
8731 if test "$host_xm_file" != "$build_xm_file"; then
8732 count=a
8733 for f in $build_xm_file; do
8734 count=${count}x
8735 done
8736 if test $count = a; then
8737 :
8738 elif test $count = ax; then
8739 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8740 else
8741 echo "Using the following build machine macro files:"
8742 for f in $build_xm_file; do
8743 echo " $srcdir/config/$f"
8744 done
8745 fi
8746 fi
8747
8748 # ---------
8749 # Threading
8750 # ---------
8751
8752 # Check if a valid thread package
8753 case ${enable_threads_flag} in
8754 "" | no)
8755 # No threads
8756 target_thread_file='single'
8757 ;;
8758 yes)
8759 # default
8760 target_thread_file='single'
8761 ;;
8762 aix | dce | gnat | irix | posix | rtems | \
8763 single | solaris | vxworks | win32 )
8764 target_thread_file=${enable_threads_flag}
8765 ;;
8766 *)
8767 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8768 exit 1
8769 ;;
8770 esac
8771
8772 if test x${thread_file} = x; then
8773 # No thread file set by target-specific clauses in config.gcc,
8774 # so use file chosen by default logic above
8775 thread_file=${target_thread_file}
8776 fi
8777
8778 # Make gthr-default.h if we have a thread file.
8779 gthread_flags=
8780 if test $thread_file != single; then
8781 rm -f gthr-default.h
8782 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
8783 gthread_flags=-DHAVE_GTHR_DEFAULT
8784 fi
8785
8786
8787 # --------
8788 # UNSORTED
8789 # --------
8790
8791 if test x$enable___cxa_atexit = xyes || \
8792 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
8793 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
8794 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
8795 if test "${ac_cv_func___cxa_atexit+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char __cxa_atexit (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8814 /* Override any gcc2 internal prototype to avoid an error. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 {
8818 #endif
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char __cxa_atexit ();
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
8826 choke me
8827 #else
8828 char (*f) () = __cxa_atexit;
8829 #endif
8830 #ifdef __cplusplus
8831 }
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 return f != __cxa_atexit;
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_func___cxa_atexit=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859 ac_cv_func___cxa_atexit=no
8860 fi
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
8864 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
8865 if test $ac_cv_func___cxa_atexit = yes; then
8866
8867 cat >>confdefs.h <<\_ACEOF
8868 #define DEFAULT_USE_CXA_ATEXIT 1
8869 _ACEOF
8870
8871 else
8872 echo "__cxa_atexit can't be enabled on this target"
8873 fi
8874
8875 fi
8876
8877 # Look for a file containing extra machine modes.
8878 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
8879 extra_modes_file='$(srcdir)'/config/${extra_modes}
8880
8881
8882 cat >>confdefs.h <<_ACEOF
8883 #define EXTRA_MODES_FILE "config/$extra_modes"
8884 _ACEOF
8885
8886 fi
8887
8888 # auto-host.h is the file containing items generated by autoconf and is
8889 # the first file included by config.h.
8890 # If host=build, it is correct to have bconfig include auto-host.h
8891 # as well. If host!=build, we are in error and need to do more
8892 # work to find out the build config parameters.
8893 if test x$host = x$build
8894 then
8895 build_auto=auto-host.h
8896 FORBUILD=..
8897 else
8898 # We create a subdir, then run autoconf in the subdir.
8899 # To prevent recursion we set host and build for the new
8900 # invocation of configure to the build for this invocation
8901 # of configure.
8902 tempdir=build.$$
8903 rm -rf $tempdir
8904 mkdir $tempdir
8905 cd $tempdir
8906 case ${srcdir} in
8907 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
8908 *) realsrcdir=../${srcdir};;
8909 esac
8910 saved_CFLAGS="${CFLAGS}"
8911 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
8912 ${realsrcdir}/configure \
8913 --enable-languages=${enable_languages} \
8914 --target=$target_alias --host=$build_alias --build=$build_alias
8915 CFLAGS="${saved_CFLAGS}"
8916
8917 # We just finished tests for the build machine, so rename
8918 # the file auto-build.h in the gcc directory.
8919 mv auto-host.h ../auto-build.h
8920 cd ..
8921 rm -rf $tempdir
8922 build_auto=auto-build.h
8923 FORBUILD=../${build_subdir}
8924 fi
8925
8926
8927 tm_file="${tm_file} defaults.h"
8928 tm_p_file="${tm_p_file} tm-preds.h"
8929 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
8930 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
8931 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8932 # put this back in temporarily.
8933 xm_file="ansidecl.h ${xm_file}"
8934
8935 # --------
8936 # UNSORTED
8937 # --------
8938
8939 # Get the version trigger filename from the toplevel
8940 if test "${with_gcc_version_trigger+set}" = set; then
8941 gcc_version_trigger=$with_gcc_version_trigger
8942 else
8943 gcc_version_trigger=${srcdir}/version.c
8944 fi
8945 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8946 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8947
8948 # Compile in configure arguments.
8949 if test -f configargs.h ; then
8950 # Being re-configured.
8951 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8952 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8953 else
8954 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8955 fi
8956
8957 # Double all backslashes and backslash all quotes to turn
8958 # gcc_config_arguments into a C string.
8959 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8960 $gcc_config_arguments
8961 EOF
8962 gcc_config_arguments_str=`cat conftest.out`
8963 rm -f conftest.out
8964
8965 cat > configargs.h <<EOF
8966 /* Generated automatically. */
8967 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8968 static const char thread_model[] = "$thread_file";
8969
8970 static const struct {
8971 const char *name, *value;
8972 } configure_default_options[] = $configure_default_options;
8973 EOF
8974
8975 # Internationalization
8976 PACKAGE=gcc
8977 VERSION="$gcc_version"
8978
8979
8980
8981 # If we haven't got the data from the intl directory,
8982 # assume NLS is disabled.
8983 USE_NLS=no
8984 LIBINTL=
8985 LIBINTL_DEP=
8986 INCINTL=
8987 XGETTEXT=
8988 GMSGFMT=
8989 POSUB=
8990 if test -f ../intl/config.intl; then
8991 . ../intl/config.intl
8992 fi
8993 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8994 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8995 if test x"$USE_NLS" != xyes; then
8996 echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6
8998 else
8999 echo "$as_me:$LINENO: result: yes" >&5
9000 echo "${ECHO_T}yes" >&6
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define ENABLE_NLS 1
9004 _ACEOF
9005
9006
9007 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9008 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9009 # Look for .po and .gmo files in the source directory.
9010 CATALOGS=
9011 XLINGUAS=
9012 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9013 # If there aren't any .gmo files the shell will give us the
9014 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9015 # weeded out.
9016 case "$cat" in *\**)
9017 continue;;
9018 esac
9019 # The quadruple backslash is collapsed to a double backslash
9020 # by the backticks, then collapsed again by the double quotes,
9021 # leaving us with one backslash in the sed expression (right
9022 # before the dot that mustn't act as a wildcard).
9023 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9024 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9025 # The user is allowed to set LINGUAS to a list of languages to
9026 # install catalogs for. If it's empty that means "all of them."
9027 if test "x$LINGUAS" = x; then
9028 CATALOGS="$CATALOGS $cat"
9029 XLINGUAS="$XLINGUAS $lang"
9030 else
9031 case "$LINGUAS" in *$lang*)
9032 CATALOGS="$CATALOGS $cat"
9033 XLINGUAS="$XLINGUAS $lang"
9034 ;;
9035 esac
9036 fi
9037 done
9038 LINGUAS="$XLINGUAS"
9039 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9040 echo "${ECHO_T}$LINGUAS" >&6
9041 fi
9042
9043 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9044 # -liconv on the link line twice.
9045 case "$LIBINTL" in *$LIBICONV*)
9046 LIBICONV= ;;
9047 esac
9048
9049 # Windows32 Registry support for specifying GCC installation paths.
9050 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9051 if test "${enable_win32_registry+set}" = set; then
9052 enableval="$enable_win32_registry"
9053
9054 fi;
9055 case $host_os in
9056 win32 | pe | cygwin* | mingw32* | uwin*)
9057 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9058 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9059 if test "x$enable_win32_registry" != xno; then
9060
9061 cat >>confdefs.h <<\_ACEOF
9062 #define ENABLE_WIN32_REGISTRY 1
9063 _ACEOF
9064
9065 echo "$as_me:$LINENO: result: yes" >&5
9066 echo "${ECHO_T}yes" >&6
9067 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9068 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9069 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072 ac_func_search_save_LIBS=$LIBS
9073 ac_cv_search_RegOpenKeyExA=no
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 /* confdefs.h. */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081
9082 /* Override any gcc2 internal prototype to avoid an error. */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */
9088 char RegOpenKeyExA ();
9089 int
9090 main ()
9091 {
9092 RegOpenKeyExA ();
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_search_RegOpenKeyExA="none required"
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 fi
9115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9116 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9117 for ac_lib in advapi32; do
9118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9119 cat >conftest.$ac_ext <<_ACEOF
9120 #line $LINENO "configure"
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126
9127 /* Override any gcc2 internal prototype to avoid an error. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132 builtin and then its argument prototype would still apply. */
9133 char RegOpenKeyExA ();
9134 int
9135 main ()
9136 {
9137 RegOpenKeyExA ();
9138 ;
9139 return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9155 break
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9159
9160 fi
9161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9162 done
9163 fi
9164 LIBS=$ac_func_search_save_LIBS
9165 fi
9166 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9167 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9168 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9169 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9170
9171 fi
9172
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178 # Check if user specified a different registry key.
9179 case "x${enable_win32_registry}" in
9180 x | xyes)
9181 # default.
9182 gcc_cv_win32_registry_key="$VERSION"
9183 ;;
9184 xno)
9185 # no registry lookup.
9186 gcc_cv_win32_registry_key=''
9187 ;;
9188 *)
9189 # user-specified key.
9190 gcc_cv_win32_registry_key="$enable_win32_registry"
9191 ;;
9192 esac
9193
9194 if test "x$enable_win32_registry" != xno; then
9195 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9196 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9200 _ACEOF
9201
9202 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9203 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9204 fi
9205 ;;
9206 esac
9207
9208 # Get an absolute path to the GCC top-level source directory
9209 holddir=`${PWDCMD-pwd}`
9210 cd $srcdir
9211 topdir=`${PWDCMD-pwd}`
9212 cd $holddir
9213
9214 # Conditionalize the makefile for this host machine.
9215 xmake_file=
9216 for f in ${host_xmake_file}
9217 do
9218 if test -f ${srcdir}/config/$f
9219 then
9220 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9221 fi
9222 done
9223
9224 # Conditionalize the makefile for this target machine.
9225 tmake_file_=
9226 for f in ${tmake_file}
9227 do
9228 if test -f ${srcdir}/config/$f
9229 then
9230 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9231 fi
9232 done
9233 tmake_file="${tmake_file_}"
9234
9235 symbolic_link='ln -s'
9236
9237 # If the host doesn't support symlinks, modify CC in
9238 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9239 # Otherwise, we can use "CC=$(CC)".
9240 rm -f symtest.tem
9241 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9242 then
9243 cc_set_by_configure="\$(CC)"
9244 quoted_cc_set_by_configure="\$(CC)"
9245 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9246 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9247 else
9248 rm -f symtest.tem
9249 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9250 then
9251 symbolic_link="cp -p"
9252 else
9253 symbolic_link="cp"
9254 fi
9255 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9256 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9257 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9258 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9259 fi
9260 rm -f symtest.tem
9261
9262 out_object_file=`basename $out_file .c`.o
9263
9264 tm_file_list=
9265 tm_include_list=
9266 for f in $tm_file; do
9267 case $f in
9268 defaults.h )
9269 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9270 tm_include_list="${tm_include_list} $f"
9271 ;;
9272 * )
9273 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9274 tm_include_list="${tm_include_list} config/$f"
9275 ;;
9276 esac
9277 done
9278
9279 tm_p_file_list=
9280 tm_p_include_list=
9281 for f in $tm_p_file; do
9282 case $f in
9283 tm-preds.h )
9284 tm_p_file_list="${tm_p_file_list} $f"
9285 tm_p_include_list="${tm_p_include_list} $f"
9286 ;;
9287 * )
9288 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9289 tm_p_include_list="${tm_p_include_list} config/$f"
9290 esac
9291 done
9292
9293 xm_file_list=
9294 xm_include_list=
9295 for f in $xm_file; do
9296 case $f in
9297 ansidecl.h )
9298 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9299 xm_include_list="${xm_include_list} $f"
9300 ;;
9301 auto-host.h )
9302 xm_file_list="${xm_file_list} $f"
9303 xm_include_list="${xm_include_list} $f"
9304 ;;
9305 * )
9306 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9307 xm_include_list="${xm_include_list} config/$f"
9308 ;;
9309 esac
9310 done
9311
9312 host_xm_file_list=
9313 host_xm_include_list=
9314 for f in $host_xm_file; do
9315 case $f in
9316 ansidecl.h )
9317 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9318 host_xm_include_list="${host_xm_include_list} $f"
9319 ;;
9320 auto-host.h )
9321 host_xm_file_list="${host_xm_file_list} $f"
9322 host_xm_include_list="${host_xm_include_list} $f"
9323 ;;
9324 * )
9325 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9326 host_xm_include_list="${host_xm_include_list} config/$f"
9327 ;;
9328 esac
9329 done
9330
9331 build_xm_file_list=
9332 for f in $build_xm_file; do
9333 case $f in
9334 ansidecl.h )
9335 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9336 build_xm_include_list="${build_xm_include_list} $f"
9337 ;;
9338 auto-build.h | auto-host.h )
9339 build_xm_file_list="${build_xm_file_list} $f"
9340 build_xm_include_list="${build_xm_include_list} $f"
9341 ;;
9342 * )
9343 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9344 build_xm_include_list="${build_xm_include_list} config/$f"
9345 ;;
9346 esac
9347 done
9348
9349 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9350 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9351 CROSS=
9352 ALL=all.internal
9353 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9354 if test x$host != x$target
9355 then
9356 CROSS="-DCROSS_COMPILE"
9357 ALL=all.cross
9358 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9359 case "$host","$target" in
9360 # Darwin crosses can use the host system's libraries and headers,
9361 # because of the fat library support. Of course, it must be the
9362 # same version of Darwin on both sides. Allow the user to
9363 # just say --target=foo-darwin without a version number to mean
9364 # "the version on this system".
9365 *-*-darwin*,*-*-darwin*)
9366 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9367 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9368 if test $hostos = $targetos -o $targetos = darwin ; then
9369 CROSS=
9370 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9371 with_headers=yes
9372 fi
9373 ;;
9374
9375 i?86-*-*,x86_64-*-* \
9376 | powerpc*-*-*,powerpc64*-*-*)
9377 CROSS="$CROSS -DNATIVE_CROSS" ;;
9378 esac
9379 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9380 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9381 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9382 fi
9383
9384 # If this is a cross-compiler that does not
9385 # have its own set of headers then define
9386 # inhibit_libc
9387
9388 # If this is using newlib, without having the headers available now,
9389 # then define inhibit_libc in LIBGCC2_CFLAGS.
9390 # This prevents libgcc2 from containing any code which requires libc
9391 # support.
9392 inhibit_libc=
9393 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9394 test x$with_newlib = xyes ; } &&
9395 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9396 inhibit_libc=-Dinhibit_libc
9397 fi
9398
9399
9400 # When building gcc with a cross-compiler, we need to adjust things so
9401 # that the generator programs are still built with the native compiler.
9402 # Also, we cannot run fixincludes or fix-header.
9403
9404 # These are the normal (build=host) settings:
9405 BUILD_PREFIX=
9406 BUILD_PREFIX_1=ignore-
9407 CC_FOR_BUILD='$(CC)'
9408 BUILD_CFLAGS='$(ALL_CFLAGS)'
9409
9410 STMP_FIXINC=stmp-fixinc
9411
9412 # Possibly disable fixproto, on a per-target basis.
9413 case ${use_fixproto} in
9414 no)
9415 STMP_FIXPROTO=
9416 ;;
9417 yes)
9418 STMP_FIXPROTO=stmp-fixproto
9419 ;;
9420 esac
9421
9422
9423 # And these apply if build != host, or we are generating coverage data
9424 if test x$build != x$host || test "x$coverage_flags" != x
9425 then
9426 BUILD_PREFIX=build-
9427 BUILD_PREFIX_1=build-
9428 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9429
9430 if test "x$TARGET_SYSTEM_ROOT" = x; then
9431 STMP_FIXINC=
9432 STMP_FIXPROTO=
9433 fi
9434 fi
9435
9436 # Expand extra_headers to include complete path.
9437 # This substitutes for lots of t-* files.
9438 extra_headers_list=
9439 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9440 for file in ${extra_headers} ; do
9441 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9442 done
9443
9444 # Add a definition of USE_COLLECT2 if system wants one.
9445 case $use_collect2 in
9446 no) use_collect2= ;;
9447 "") ;;
9448 *)
9449 host_xm_defines="${host_xm_defines} USE_COLLECT2"
9450 xm_defines="${xm_defines} USE_COLLECT2"
9451 ;;
9452 esac
9453
9454 # ---------------------------
9455 # Assembler & linker features
9456 # ---------------------------
9457
9458 # Identify the assembler which will work hand-in-glove with the newly
9459 # built GCC, so that we can examine its features. This is the assembler
9460 # which will be driven by the driver program.
9461 #
9462 # If build != host, and we aren't building gas in-tree, we identify a
9463 # build->target assembler and hope that it will have the same features
9464 # as the host->target assembler we'll be using.
9465 echo "$as_me:$LINENO: checking what assembler to use" >&5
9466 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9467 in_tree_gas=no
9468 gcc_cv_as=
9469 gcc_cv_gas_major_version=
9470 gcc_cv_gas_minor_version=
9471 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9472 if test -x "$DEFAULT_ASSEMBLER"; then
9473 gcc_cv_as="$DEFAULT_ASSEMBLER"
9474 elif test -x "$AS"; then
9475 gcc_cv_as="$AS"
9476 elif test -x as$host_exeext; then
9477 # Build using assembler in the current directory.
9478 gcc_cv_as=./as$host_exeext
9479 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
9480 && test -f ../gas/Makefile; then
9481 # Single tree build which includes gas.
9482 in_tree_gas=yes
9483 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9484 for f in $gcc_cv_as_bfd_srcdir/configure \
9485 $gcc_cv_as_gas_srcdir/configure \
9486 $gcc_cv_as_gas_srcdir/configure.in \
9487 $gcc_cv_as_gas_srcdir/Makefile.in ; do
9488 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9489 if test x$gcc_cv_gas_version != x; then
9490 break
9491 fi
9492 done
9493 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9494 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9495 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9496 case $gcc_cv_gas_patch_version in
9497 "") gcc_cv_gas_patch_version="0" ;;
9498 esac
9499 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9500 + $gcc_cv_gas_minor_version \) \* 1000 \
9501 + $gcc_cv_gas_patch_version`
9502
9503 rm -f as$host_exeext
9504 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
9505 in_tree_gas_is_elf=no
9506 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
9507 || (grep 'obj_format = multi' ../gas/Makefile \
9508 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
9509 then
9510 in_tree_gas_is_elf=yes
9511 fi
9512 fi
9513
9514 if test "x$gcc_cv_as" = x; then
9515 # Search the same directories that the installed compiler will
9516 # search. Else we may find the wrong assembler and lose. If we
9517 # do not find a suitable assembler binary, then try the user's
9518 # path.
9519 #
9520 # Also note we have to check MD_EXEC_PREFIX before checking the
9521 # user's path. Unfortunately, there is no good way to get at the
9522 # value of MD_EXEC_PREFIX here. So we do a brute force search
9523 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9524 # to be fixed as part of the make/configure rewrite too.
9525
9526 if test "x$exec_prefix" = xNONE; then
9527 if test "x$prefix" = xNONE; then
9528 test_prefix=/usr/local
9529 else
9530 test_prefix=$prefix
9531 fi
9532 else
9533 test_prefix=$exec_prefix
9534 fi
9535
9536 # If the loop below does not find an assembler, then use whatever
9537 # one we can find in the users's path.
9538 # user's path.
9539 if test "x$program_prefix" != xNONE; then
9540 gcc_cv_as=${program_prefix}as$host_exeext
9541 else
9542 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
9543 fi
9544
9545 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9546 $test_prefix/libexec/gcc/$target_noncanonical \
9547 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9548 /usr/lib/gcc/$target_noncanonical \
9549 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9550 $test_prefix/$target_noncanonical/bin"
9551
9552 if test x$host = x$target; then
9553 test_dirs="$test_dirs \
9554 /usr/libexec \
9555 /usr/ccs/gcc \
9556 /usr/ccs/bin \
9557 /udk/usr/ccs/bin \
9558 /bsd43/usr/lib/cmplrs/cc \
9559 /usr/cross64/usr/bin \
9560 /usr/lib/cmplrs/cc \
9561 /sysv/usr/lib/cmplrs/cc \
9562 /svr4/usr/lib/cmplrs/cc \
9563 /usr/bin"
9564 fi
9565
9566 for dir in $test_dirs; do
9567 if test -x $dir/as$host_exeext; then
9568 gcc_cv_as=$dir/as$host_exeext
9569 break;
9570 fi
9571 done
9572 fi
9573 case $in_tree_gas in
9574 yes)
9575 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9576 echo "${ECHO_T}\"newly built gas\"" >&6
9577 ;;
9578 no)
9579 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9580 echo "${ECHO_T}$gcc_cv_as" >&6
9581 ;;
9582 esac
9583
9584 # Identify the linker which will work hand-in-glove with the newly
9585 # built GCC, so that we can examine its features. This is the linker
9586 # which will be driven by the driver program.
9587 #
9588 # If build != host, and we aren't building gas in-tree, we identify a
9589 # build->target linker and hope that it will have the same features
9590 # as the host->target linker we'll be using.
9591 echo "$as_me:$LINENO: checking what linker to use" >&5
9592 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9593 in_tree_ld=no
9594 gcc_cv_ld=
9595 gcc_cv_gld_major_version=
9596 gcc_cv_gld_minor_version=
9597 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9598 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9599 if test -x "$DEFAULT_LINKER"; then
9600 gcc_cv_ld="$DEFAULT_LINKER"
9601 elif test -x "$LD_FOR_TARGET"; then
9602 gcc_cv_ld="$LD_FOR_TARGET"
9603 elif test -x "$LD" && test x$host = x$target; then
9604 gcc_cv_ld="$LD"
9605 elif test -x collect-ld$host_exeext; then
9606 # Build using linker in the current directory.
9607 gcc_cv_ld=./collect-ld$host_exeext
9608 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
9609 && test -f ../ld/Makefile; then
9610 # Single tree build which includes ld.
9611 in_tree_ld=yes
9612 in_tree_ld_is_elf=no
9613 if (grep 'EMUL = .*elf' ../ld/Makefile \
9614 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
9615 in_tree_ld_is_elf=yes
9616 fi
9617 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
9618 do
9619 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9620 if test x$gcc_cv_gld_version != x; then
9621 break
9622 fi
9623 done
9624 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9625 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9626 rm -f collect-ld$host_exeext
9627 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
9628 2>/dev/null
9629 fi
9630
9631 if test "x$gcc_cv_ld" = x; then
9632 # Search the same directories that the installed compiler will
9633 # search. Else we may find the wrong linker and lose. If we
9634 # do not find a suitable linker binary, then try the user's
9635 # path.
9636 #
9637 # Also note we have to check MD_EXEC_PREFIX before checking the
9638 # user's path. Unfortunately, there is no good way to get at the
9639 # value of MD_EXEC_PREFIX here. So we do a brute force search
9640 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9641 # to be fixed as part of the make/configure rewrite too.
9642
9643 if test "x$exec_prefix" = xNONE; then
9644 if test "x$prefix" = xNONE; then
9645 test_prefix=/usr/local
9646 else
9647 test_prefix=$prefix
9648 fi
9649 else
9650 test_prefix=$exec_prefix
9651 fi
9652
9653 # If the loop below does not find an linker, then use whatever
9654 # one we can find in the users's path.
9655 # user's path.
9656 if test "x$program_prefix" != xNONE; then
9657 gcc_cv_ld=${program_prefix}ld$host_exeext
9658 else
9659 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
9660 fi
9661
9662 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9663 $test_prefix/libexec/gcc/$target_noncanonical \
9664 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9665 /usr/lib/gcc/$target_noncanonical \
9666 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9667 $test_prefix/$target_noncanonical/bin"
9668
9669 if test x$host = x$target; then
9670 test_dirs="$test_dirs \
9671 /usr/libexec \
9672 /usr/ccs/gcc \
9673 /usr/ccs/bin \
9674 /udk/usr/ccs/bin \
9675 /bsd43/usr/lib/cmplrs/cc \
9676 /usr/cross64/usr/bin \
9677 /usr/lib/cmplrs/cc \
9678 /sysv/usr/lib/cmplrs/cc \
9679 /svr4/usr/lib/cmplrs/cc \
9680 /usr/bin"
9681 fi
9682
9683 for dir in $test_dirs; do
9684 if test -x $dir/ld$host_exeext; then
9685 gcc_cv_ld=$dir/ld$host_exeext
9686 break;
9687 fi
9688 done
9689 fi
9690 case $in_tree_ld in
9691 yes)
9692 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9693 echo "${ECHO_T}\"newly built ld\"" >&6
9694 ;;
9695 no)
9696 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9697 echo "${ECHO_T}$gcc_cv_ld" >&6
9698 ;;
9699 esac
9700
9701 # Figure out what nm we will be using.
9702 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9703 echo "$as_me:$LINENO: checking what nm to use" >&5
9704 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9705 in_tree_nm=no
9706 if test -x nm$host_exeext; then
9707 gcc_cv_nm=./nm$host_exeext
9708 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9709 && test -f ../binutils/Makefile; then
9710 # Single tree build which includes binutils.
9711 in_tree_nm=yes
9712 gcc_cv_nm=./nm$host_exeext
9713 rm -f nm$host_exeext
9714 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
9715 elif test "x$program_prefix" != xNONE; then
9716 gcc_cv_nm=${program_prefix}nm$host_exeext
9717 else
9718 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
9719 fi
9720 case $in_tree_nm in
9721 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9722 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9723 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9724 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9725 esac
9726
9727 # Figure out what objdump we will be using.
9728 echo "$as_me:$LINENO: checking what objdump to use" >&5
9729 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9730 in_tree_objdump=no
9731 if test -x objdump$host_exeext; then
9732 gcc_cv_objdump=./objdump$host_exeext
9733 elif test -f $gcc_cv_binutils_srcdir/configure.in \
9734 && test -f ../binutils/Makefile; then
9735 # Single tree build which includes binutils.
9736 in_tree_objdump=yes
9737 gcc_cv_objdump=./objdump$host_exeext
9738 rm -f objdump$host_exeext
9739 $symbolic_link ../binutils/objdump$host_exeext \
9740 objdump$host_exeext 2>/dev/null
9741 elif test "x$program_prefix" != xNONE; then
9742 gcc_cv_objdump=${program_prefix}objdump$host_exeext
9743 else
9744 gcc_cv_objdump=`echo objdump | \
9745 sed "${program_transform_name}"`$host_exeext
9746 fi
9747 case $in_tree_objdump in
9748 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9749 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9750 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9751 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9752 esac
9753
9754 # Figure out what assembler alignment features are present.
9755 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9756 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9757 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 gcc_cv_as_balign_and_p2align=no
9761 if test $in_tree_gas = yes; then
9762 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9763 then gcc_cv_as_balign_and_p2align=yes
9764 fi
9765 elif test x$gcc_cv_as != x; then
9766 echo '.balign 4
9767 .p2align 2' > conftest.s
9768 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }
9774 then
9775 gcc_cv_as_balign_and_p2align=yes
9776 else
9777 echo "configure: failed program was" >&5
9778 cat conftest.s >&5
9779 fi
9780 rm -f conftest.o conftest.s
9781 fi
9782 fi
9783 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9784 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9785 if test $gcc_cv_as_balign_and_p2align = yes; then
9786
9787 cat >>confdefs.h <<\_ACEOF
9788 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9789 _ACEOF
9790
9791 fi
9792
9793 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9794 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9795 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 gcc_cv_as_max_skip_p2align=no
9799 if test $in_tree_gas = yes; then
9800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9801 then gcc_cv_as_max_skip_p2align=yes
9802 fi
9803 elif test x$gcc_cv_as != x; then
9804 echo '.p2align 4,,7' > conftest.s
9805 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 (eval $ac_try) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }
9811 then
9812 gcc_cv_as_max_skip_p2align=yes
9813 else
9814 echo "configure: failed program was" >&5
9815 cat conftest.s >&5
9816 fi
9817 rm -f conftest.o conftest.s
9818 fi
9819 fi
9820 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9821 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9822 if test $gcc_cv_as_max_skip_p2align = yes; then
9823
9824 cat >>confdefs.h <<\_ACEOF
9825 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9826 _ACEOF
9827
9828 fi
9829
9830 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9831 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9832 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835 gcc_cv_as_subsection_m1=no
9836 if test $in_tree_gas = yes; then
9837 if test $in_tree_gas_is_elf = yes \
9838 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9839 then gcc_cv_as_subsection_m1=yes
9840 fi
9841 elif test x$gcc_cv_as != x; then
9842 echo 'conftest_label1: .word 0
9843 .subsection -1
9844 conftest_label2: .word 0
9845 .previous' > conftest.s
9846 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }
9852 then
9853 if test x$gcc_cv_nm != x; then
9854 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
9855 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
9856 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
9857 then :
9858 else gcc_cv_as_subsection_m1=yes
9859 fi
9860 rm -f conftest.nm1 conftest.nm2
9861 fi
9862 else
9863 echo "configure: failed program was" >&5
9864 cat conftest.s >&5
9865 fi
9866 rm -f conftest.o conftest.s
9867 fi
9868 fi
9869 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9870 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9871 if test $gcc_cv_as_subsection_m1 = yes; then
9872
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_GAS_SUBSECTION_ORDERING 1
9875 _ACEOF
9876
9877 fi
9878
9879 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9880 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9881 if test "${gcc_cv_as_weak+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 gcc_cv_as_weak=no
9885 if test $in_tree_gas = yes; then
9886 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9887 then gcc_cv_as_weak=yes
9888 fi
9889 elif test x$gcc_cv_as != x; then
9890 echo ' .weak foobar' > conftest.s
9891 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }
9897 then
9898 gcc_cv_as_weak=yes
9899 else
9900 echo "configure: failed program was" >&5
9901 cat conftest.s >&5
9902 fi
9903 rm -f conftest.o conftest.s
9904 fi
9905 fi
9906 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9907 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9908 if test $gcc_cv_as_weak = yes; then
9909
9910 cat >>confdefs.h <<\_ACEOF
9911 #define HAVE_GAS_WEAK 1
9912 _ACEOF
9913
9914 fi
9915
9916 # .hidden needs to be supported in both the assembler and the linker,
9917 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9918 # This is irritatingly difficult to feature test for; we have to check the
9919 # date string after the version number. If we've got an in-tree
9920 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9921 # to be safe.
9922 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9923 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9924 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9925 if test "${gcc_cv_as_hidden+set}" = set; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 gcc_cv_as_hidden=no
9929 if test $in_tree_gas = yes; then
9930 if test $in_tree_gas_is_elf = yes \
9931 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9932 then gcc_cv_as_hidden=yes
9933 fi
9934 elif test x$gcc_cv_as != x; then
9935 echo ' .hidden foobar
9936 foobar:' > conftest.s
9937 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }
9943 then
9944 gcc_cv_as_hidden=yes
9945 else
9946 echo "configure: failed program was" >&5
9947 cat conftest.s >&5
9948 fi
9949 rm -f conftest.o conftest.s
9950 fi
9951 fi
9952 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9953 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9954
9955
9956 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9957 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9958 if test "${gcc_cv_ld_hidden+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961 if test $in_tree_ld = yes ; then
9962 gcc_cv_ld_hidden=no
9963 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 \
9964 && test $in_tree_ld_is_elf = yes; then
9965 gcc_cv_ld_hidden=yes
9966 fi
9967 else
9968 gcc_cv_ld_hidden=yes
9969 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9970 if echo "$ld_ver" | grep GNU > /dev/null; then
9971 ld_vers=`echo $ld_ver | sed -n \
9972 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9973 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9974 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9975 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9976 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9977 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9978 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'`
9979 if test 0"$ld_date" -lt 20020404; then
9980 if test -n "$ld_date"; then
9981 # If there was date string, but was earlier than 2002-04-04, fail
9982 gcc_cv_ld_hidden=no
9983 elif test -z "$ld_vers"; then
9984 # If there was no date string nor ld version number, something is wrong
9985 gcc_cv_ld_hidden=no
9986 else
9987 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
9988 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9989 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9990 test -z "$ld_vers_patch" && ld_vers_patch=0
9991 if test "$ld_vers_major" -lt 2; then
9992 gcc_cv_ld_hidden=no
9993 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9994 gcc_cv_ld_hidden="no"
9995 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9996 gcc_cv_ld_hidden=no
9997 fi
9998 fi
9999 fi
10000 else
10001 case "${target}" in
10002 hppa64*-*-hpux* | ia64*-*-hpux*)
10003 gcc_cv_ld_hidden=yes
10004 ;;
10005 *)
10006 gcc_cv_ld_hidden=no
10007 ;;
10008 esac
10009 fi
10010 fi
10011 fi
10012 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10013 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10014 libgcc_visibility=no
10015
10016 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10017 libgcc_visibility=yes
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_GAS_HIDDEN 1
10021 _ACEOF
10022
10023 fi
10024
10025 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10026 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10027 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10028 if test "${gcc_cv_as_leb128+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 gcc_cv_as_leb128=no
10032 if test $in_tree_gas = yes; then
10033 if test $in_tree_gas_is_elf = yes \
10034 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10035 then gcc_cv_as_leb128=yes
10036 fi
10037 elif test x$gcc_cv_as != x; then
10038 echo ' .data
10039 .uleb128 L2 - L1
10040 L1:
10041 .uleb128 1280
10042 .sleb128 -1010
10043 L2:' > conftest.s
10044 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }
10050 then
10051 # GAS versions before 2.11 do not support uleb128,
10052 # despite appearing to.
10053 # ??? There exists an elf-specific test that will crash
10054 # the assembler. Perhaps it's better to figure out whether
10055 # arbitrary sections are supported and try the test.
10056 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10057 if echo "$as_ver" | grep GNU > /dev/null; then
10058 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10059 as_major=`echo $as_ver | sed 's/\..*//'`
10060 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10061 if test $as_major -eq 2 && test $as_minor -lt 11
10062 then :
10063 else gcc_cv_as_leb128=yes
10064 fi
10065 fi
10066 else
10067 echo "configure: failed program was" >&5
10068 cat conftest.s >&5
10069 fi
10070 rm -f conftest.o conftest.s
10071 fi
10072 fi
10073 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10074 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10075 if test $gcc_cv_as_leb128 = yes; then
10076
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_AS_LEB128 1
10079 _ACEOF
10080
10081 fi
10082
10083 # GAS versions up to and including 2.11.0 may mis-optimize
10084 # .eh_frame data.
10085 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10086 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10087 if test "${gcc_cv_as_eh_frame+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090 gcc_cv_as_eh_frame=no
10091 if test $in_tree_gas = yes; then
10092 if test $in_tree_gas_is_elf = yes \
10093 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10094 then gcc_cv_as_eh_frame=yes
10095 fi
10096 elif test x$gcc_cv_as != x; then
10097 echo ' .text
10098 .LFB1:
10099 .4byte 0
10100 .L1:
10101 .4byte 0
10102 .LFE1:
10103 .section .eh_frame,"aw",@progbits
10104 __FRAME_BEGIN__:
10105 .4byte .LECIE1-.LSCIE1
10106 .LSCIE1:
10107 .4byte 0x0
10108 .byte 0x1
10109 .ascii "z\0"
10110 .byte 0x1
10111 .byte 0x78
10112 .byte 0x1a
10113 .byte 0x0
10114 .byte 0x4
10115 .4byte 1
10116 .p2align 1
10117 .LECIE1:
10118 .LSFDE1:
10119 .4byte .LEFDE1-.LASFDE1
10120 .LASFDE1:
10121 .4byte .LASFDE1-__FRAME_BEGIN__
10122 .4byte .LFB1
10123 .4byte .LFE1-.LFB1
10124 .byte 0x4
10125 .4byte .LFE1-.LFB1
10126 .byte 0x4
10127 .4byte .L1-.LFB1
10128 .LEFDE1:' > conftest.s
10129 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }
10135 then
10136 cat > conftest.lit <<EOF
10137 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10138 0010 01000000 12000000 18000000 00000000 ................
10139 0020 08000000 04080000 0044 .........D
10140 EOF
10141 cat > conftest.big <<EOF
10142 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10143 0010 00000001 00000012 00000018 00000000 ................
10144 0020 00000008 04000000 0844 .........D
10145 EOF
10146 # If the assembler didn't choke, and we can objdump,
10147 # and we got the correct data, then succeed.
10148 if test x$gcc_cv_objdump != x \
10149 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10150 | tail -3 > conftest.got \
10151 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10152 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10153 then
10154 gcc_cv_as_eh_frame=yes
10155 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 gcc_cv_as_eh_frame=buggy
10162 else
10163 # Uh oh, what do we do now?
10164 gcc_cv_as_eh_frame=no
10165 fi
10166 else
10167 echo "configure: failed program was" >&5
10168 cat conftest.s >&5
10169 fi
10170 rm -f conftest.o conftest.s
10171 fi
10172 fi
10173 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10174 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10175
10176
10177 if test $gcc_cv_as_eh_frame = buggy; then
10178
10179 cat >>confdefs.h <<\_ACEOF
10180 #define USE_AS_TRADITIONAL_FORMAT 1
10181 _ACEOF
10182
10183 fi
10184
10185 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10186 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10187 if test "${gcc_cv_as_shf_merge+set}" = set; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 gcc_cv_as_shf_merge=no
10191 if test $in_tree_gas = yes; then
10192 if test $in_tree_gas_is_elf = yes \
10193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10194 then gcc_cv_as_shf_merge=yes
10195 fi
10196 elif test x$gcc_cv_as != x; then
10197 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10198 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }
10204 then
10205 gcc_cv_as_shf_merge=yes
10206 else
10207 echo "configure: failed program was" >&5
10208 cat conftest.s >&5
10209 fi
10210 rm -f conftest.o conftest.s
10211 fi
10212 fi
10213 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10214 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10215
10216
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10219 _ACEOF
10220
10221
10222 # Thread-local storage - the check is heavily parametrized.
10223 conftest_s=
10224 tls_first_major=
10225 tls_first_minor=
10226 tls_as_opt=
10227 case "$target" in
10228 alpha*-*-*)
10229 conftest_s='
10230 .section ".tdata","awT",@progbits
10231 foo: .long 25
10232 .text
10233 ldq $27,__tls_get_addr($29) !literal!1
10234 lda $16,foo($29) !tlsgd!1
10235 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10236 ldq $27,__tls_get_addr($29) !literal!2
10237 lda $16,foo($29) !tlsldm!2
10238 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10239 ldq $1,foo($29) !gotdtprel
10240 ldah $2,foo($29) !dtprelhi
10241 lda $3,foo($2) !dtprello
10242 lda $4,foo($29) !dtprel
10243 ldq $1,foo($29) !gottprel
10244 ldah $2,foo($29) !tprelhi
10245 lda $3,foo($2) !tprello
10246 lda $4,foo($29) !tprel'
10247 tls_first_major=2
10248 tls_first_minor=13
10249 tls_as_opt=--fatal-warnings
10250 ;;
10251 i[34567]86-*-*)
10252 conftest_s='
10253 .section ".tdata","awT",@progbits
10254 foo: .long 25
10255 .text
10256 movl %gs:0, %eax
10257 leal foo@TLSGD(,%ebx,1), %eax
10258 leal foo@TLSLDM(%ebx), %eax
10259 leal foo@DTPOFF(%eax), %edx
10260 movl foo@GOTTPOFF(%ebx), %eax
10261 subl foo@GOTTPOFF(%ebx), %eax
10262 addl foo@GOTNTPOFF(%ebx), %eax
10263 movl foo@INDNTPOFF, %eax
10264 movl $foo@TPOFF, %eax
10265 subl $foo@TPOFF, %eax
10266 leal foo@NTPOFF(%ecx), %eax'
10267 tls_first_major=2
10268 tls_first_minor=14
10269 tls_as_opt=--fatal-warnings
10270 ;;
10271 x86_64-*-*)
10272 conftest_s='
10273 .section ".tdata","awT",@progbits
10274 foo: .long 25
10275 .text
10276 movq %fs:0, %rax
10277 leaq foo@TLSGD(%rip), %rdi
10278 leaq foo@TLSLD(%rip), %rdi
10279 leaq foo@DTPOFF(%rax), %rdx
10280 movq foo@GOTTPOFF(%rip), %rax
10281 movq $foo@TPOFF, %rax'
10282 tls_first_major=2
10283 tls_first_minor=14
10284 tls_as_opt=--fatal-warnings
10285 ;;
10286 ia64-*-*)
10287 conftest_s='
10288 .section ".tdata","awT",@progbits
10289 foo: data8 25
10290 .text
10291 addl r16 = @ltoff(@dtpmod(foo#)), gp
10292 addl r17 = @ltoff(@dtprel(foo#)), gp
10293 addl r18 = @ltoff(@tprel(foo#)), gp
10294 addl r19 = @dtprel(foo#), gp
10295 adds r21 = @dtprel(foo#), r13
10296 movl r23 = @dtprel(foo#)
10297 addl r20 = @tprel(foo#), gp
10298 adds r22 = @tprel(foo#), r13
10299 movl r24 = @tprel(foo#)'
10300 tls_first_major=2
10301 tls_first_minor=13
10302 tls_as_opt=--fatal-warnings
10303 ;;
10304 powerpc-*-*)
10305 conftest_s='
10306 .section ".tdata","awT",@progbits
10307 .align 2
10308 ld0: .space 4
10309 ld1: .space 4
10310 x1: .space 4
10311 x2: .space 4
10312 x3: .space 4
10313 .text
10314 addi 3,31,ld0@got@tlsgd
10315 bl __tls_get_addr
10316 addi 3,31,x1@got@tlsld
10317 bl __tls_get_addr
10318 addi 9,3,x1@dtprel
10319 addis 9,3,x2@dtprel@ha
10320 addi 9,9,x2@dtprel@l
10321 lwz 9,x3@got@tprel(31)
10322 add 9,9,x@tls
10323 addi 9,2,x1@tprel
10324 addis 9,2,x2@tprel@ha
10325 addi 9,9,x2@tprel@l'
10326 tls_first_major=2
10327 tls_first_minor=14
10328 tls_as_opt="-a32 --fatal-warnings"
10329 ;;
10330 powerpc64-*-*)
10331 conftest_s='
10332 .section ".tdata","awT",@progbits
10333 .align 3
10334 ld0: .space 8
10335 ld1: .space 8
10336 x1: .space 8
10337 x2: .space 8
10338 x3: .space 8
10339 .text
10340 addi 3,2,ld0@got@tlsgd
10341 bl .__tls_get_addr
10342 nop
10343 addi 3,2,ld1@toc
10344 bl .__tls_get_addr
10345 nop
10346 addi 3,2,x1@got@tlsld
10347 bl .__tls_get_addr
10348 nop
10349 addi 9,3,x1@dtprel
10350 bl .__tls_get_addr
10351 nop
10352 addis 9,3,x2@dtprel@ha
10353 addi 9,9,x2@dtprel@l
10354 bl .__tls_get_addr
10355 nop
10356 ld 9,x3@got@dtprel(2)
10357 add 9,9,3
10358 bl .__tls_get_addr
10359 nop'
10360 tls_first_major=2
10361 tls_first_minor=14
10362 tls_as_opt="-a64 --fatal-warnings"
10363 ;;
10364 s390-*-*)
10365 conftest_s='
10366 .section ".tdata","awT",@progbits
10367 foo: .long 25
10368 .text
10369 .long foo@TLSGD
10370 .long foo@TLSLDM
10371 .long foo@DTPOFF
10372 .long foo@NTPOFF
10373 .long foo@GOTNTPOFF
10374 .long foo@INDNTPOFF
10375 l %r1,foo@GOTNTPOFF(%r12)
10376 l %r1,0(%r1):tls_load:foo
10377 bas %r14,0(%r1,%r13):tls_gdcall:foo
10378 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10379 tls_first_major=2
10380 tls_first_minor=14
10381 tls_as_opt="-m31 --fatal-warnings"
10382 ;;
10383 s390x-*-*)
10384 conftest_s='
10385 .section ".tdata","awT",@progbits
10386 foo: .long 25
10387 .text
10388 .quad foo@TLSGD
10389 .quad foo@TLSLDM
10390 .quad foo@DTPOFF
10391 .quad foo@NTPOFF
10392 .quad foo@GOTNTPOFF
10393 lg %r1,foo@GOTNTPOFF(%r12)
10394 larl %r1,foo@INDNTPOFF
10395 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10396 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10397 tls_first_major=2
10398 tls_first_minor=14
10399 tls_as_opt="-m64 -Aesame --fatal-warnings"
10400 ;;
10401 sh-*-* | sh[34]-*-*)
10402 conftest_s='
10403 .section ".tdata","awT",@progbits
10404 foo: .long 25
10405 .text
10406 .long foo@TLSGD
10407 .long foo@TLSLDM
10408 .long foo@DTPOFF
10409 .long foo@GOTTPOFF
10410 .long foo@TPOFF'
10411 tls_first_major=2
10412 tls_first_minor=13
10413 tls_as_opt=--fatal-warnings
10414 ;;
10415 sparc*-*-*)
10416 case "$target" in
10417 sparc*-sun-solaris2.*)
10418 on_solaris=yes
10419 ;;
10420 *)
10421 on_solaris=no
10422 ;;
10423 esac
10424 if test x$on_solaris = xyes && test x$gas_flag = xno; then
10425 conftest_s='
10426 .section ".tdata",#alloc,#write,#tls
10427 foo: .long 25
10428 .text
10429 sethi %tgd_hi22(foo), %o0
10430 add %o0, %tgd_lo10(foo), %o1
10431 add %l7, %o1, %o0, %tgd_add(foo)
10432 call __tls_get_addr, %tgd_call(foo)
10433 sethi %tldm_hi22(foo), %l1
10434 add %l1, %tldm_lo10(foo), %l2
10435 add %l7, %l2, %o0, %tldm_add(foo)
10436 call __tls_get_addr, %tldm_call(foo)
10437 sethi %tldo_hix22(foo), %l3
10438 xor %l3, %tldo_lox10(foo), %l4
10439 add %o0, %l4, %l5, %tldo_add(foo)
10440 sethi %tie_hi22(foo), %o3
10441 add %o3, %tie_lo10(foo), %o3
10442 ld [%l7 + %o3], %o2, %tie_ld(foo)
10443 add %g7, %o2, %o4, %tie_add(foo)
10444 sethi %tle_hix22(foo), %l1
10445 xor %l1, %tle_lox10(foo), %o5
10446 ld [%g7 + %o5], %o1'
10447 tls_first_major=0
10448 tls_first_minor=0
10449 else
10450 conftest_s='
10451 .section ".tdata","awT",@progbits
10452 foo: .long 25
10453 .text
10454 sethi %tgd_hi22(foo), %o0
10455 add %o0, %tgd_lo10(foo), %o1
10456 add %l7, %o1, %o0, %tgd_add(foo)
10457 call __tls_get_addr, %tgd_call(foo)
10458 sethi %tldm_hi22(foo), %l1
10459 add %l1, %tldm_lo10(foo), %l2
10460 add %l7, %l2, %o0, %tldm_add(foo)
10461 call __tls_get_addr, %tldm_call(foo)
10462 sethi %tldo_hix22(foo), %l3
10463 xor %l3, %tldo_lox10(foo), %l4
10464 add %o0, %l4, %l5, %tldo_add(foo)
10465 sethi %tie_hi22(foo), %o3
10466 add %o3, %tie_lo10(foo), %o3
10467 ld [%l7 + %o3], %o2, %tie_ld(foo)
10468 add %g7, %o2, %o4, %tie_add(foo)
10469 sethi %tle_hix22(foo), %l1
10470 xor %l1, %tle_lox10(foo), %o5
10471 ld [%g7 + %o5], %o1'
10472 tls_first_major=2
10473 tls_first_minor=14
10474 tls_as_opt="-32 --fatal-warnings"
10475 fi
10476 ;;
10477 esac
10478 if test -z "$tls_first_major"; then
10479 : # If we don't have a check, assume no support.
10480 else
10481 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10482 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10483 if test "${gcc_cv_as_tls+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486 gcc_cv_as_tls=no
10487 if test $in_tree_gas = yes; then
10488 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10489 then gcc_cv_as_tls=yes
10490 fi
10491 elif test x$gcc_cv_as != x; then
10492 echo "$conftest_s" > conftest.s
10493 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }
10499 then
10500 gcc_cv_as_tls=yes
10501 else
10502 echo "configure: failed program was" >&5
10503 cat conftest.s >&5
10504 fi
10505 rm -f conftest.o conftest.s
10506 fi
10507 fi
10508 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10509 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10510 if test $gcc_cv_as_tls = yes; then
10511
10512 cat >>confdefs.h <<\_ACEOF
10513 #define HAVE_AS_TLS 1
10514 _ACEOF
10515
10516 fi
10517 fi
10518
10519 # Target-specific assembler checks.
10520
10521 case "$target" in
10522 # All TARGET_ABI_OSF targets.
10523 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
10524 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10525 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10526 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 gcc_cv_as_alpha_explicit_relocs=no
10530 if test $in_tree_gas = yes; then
10531 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10532 then gcc_cv_as_alpha_explicit_relocs=yes
10533 fi
10534 elif test x$gcc_cv_as != x; then
10535 echo ' .set nomacro
10536 .text
10537 extbl $3, $2, $3 !lituse_bytoff!1
10538 ldq $2, a($29) !literal!1
10539 ldq $4, b($29) !literal!2
10540 ldq_u $3, 0($2) !lituse_base!1
10541 ldq $27, f($29) !literal!5
10542 jsr $26, ($27), f !lituse_jsr!5
10543 ldah $29, 0($26) !gpdisp!3
10544 lda $0, c($29) !gprel
10545 ldah $1, d($29) !gprelhigh
10546 lda $1, d($1) !gprellow
10547 lda $29, 0($29) !gpdisp!3' > conftest.s
10548 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }
10554 then
10555 gcc_cv_as_alpha_explicit_relocs=yes
10556 else
10557 echo "configure: failed program was" >&5
10558 cat conftest.s >&5
10559 fi
10560 rm -f conftest.o conftest.s
10561 fi
10562 fi
10563 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10564 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10565 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10566
10567 cat >>confdefs.h <<\_ACEOF
10568 #define HAVE_AS_EXPLICIT_RELOCS 1
10569 _ACEOF
10570
10571 fi
10572 ;;
10573
10574 sparc*-*-*)
10575 echo "$as_me:$LINENO: checking assembler for .register" >&5
10576 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10577 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580 gcc_cv_as_sparc_register_op=no
10581 if test x$gcc_cv_as != x; then
10582 echo '.register %g2, #scratch' > conftest.s
10583 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }
10589 then
10590 gcc_cv_as_sparc_register_op=yes
10591 else
10592 echo "configure: failed program was" >&5
10593 cat conftest.s >&5
10594 fi
10595 rm -f conftest.o conftest.s
10596 fi
10597 fi
10598 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10599 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10600 if test $gcc_cv_as_sparc_register_op = yes; then
10601
10602 cat >>confdefs.h <<\_ACEOF
10603 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10604 _ACEOF
10605
10606 fi
10607
10608 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10609 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10610 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613 gcc_cv_as_sparc_relax=no
10614 if test x$gcc_cv_as != x; then
10615 echo '.text' > conftest.s
10616 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }
10622 then
10623 gcc_cv_as_sparc_relax=yes
10624 else
10625 echo "configure: failed program was" >&5
10626 cat conftest.s >&5
10627 fi
10628 rm -f conftest.o conftest.s
10629 fi
10630 fi
10631 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10632 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10633 if test $gcc_cv_as_sparc_relax = yes; then
10634
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_AS_RELAX_OPTION 1
10637 _ACEOF
10638
10639 fi
10640
10641 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10642 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10643 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 else
10646 gcc_cv_as_sparc_ua_pcrel=no
10647 if test x$gcc_cv_as != x; then
10648 echo '.text
10649 foo:
10650 nop
10651 .data
10652 .align 4
10653 .byte 0
10654 .uaword %r_disp32(foo)' > conftest.s
10655 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }
10661 then
10662 if test x$gcc_cv_ld != x \
10663 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
10664 gcc_cv_as_sparc_ua_pcrel=yes
10665 fi
10666 rm -f conftest
10667 else
10668 echo "configure: failed program was" >&5
10669 cat conftest.s >&5
10670 fi
10671 rm -f conftest.o conftest.s
10672 fi
10673 fi
10674 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10675 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10676 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define HAVE_AS_SPARC_UA_PCREL 1
10680 _ACEOF
10681
10682
10683 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10684 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10685 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 gcc_cv_as_sparc_ua_pcrel_hidden=no
10689 if test x$gcc_cv_as != x; then
10690 echo '.data
10691 .align 4
10692 .byte 0x31
10693 .uaword %r_disp32(foo)
10694 .byte 0x32, 0x33, 0x34
10695 .global foo
10696 .hidden foo
10697 foo:
10698 .skip 4' > conftest.s
10699 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }
10705 then
10706 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
10707 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
10708 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
10709 | grep ' 31000000 07323334' > /dev/null 2>&1; then
10710 if $gcc_cv_objdump -R conftest 2> /dev/null \
10711 | grep 'DISP32' > /dev/null 2>&1; then
10712 :
10713 else
10714 gcc_cv_as_sparc_ua_pcrel_hidden=yes
10715 fi
10716 fi
10717 rm -f conftest
10718 else
10719 echo "configure: failed program was" >&5
10720 cat conftest.s >&5
10721 fi
10722 rm -f conftest.o conftest.s
10723 fi
10724 fi
10725 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10726 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10727 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10728
10729 cat >>confdefs.h <<\_ACEOF
10730 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10731 _ACEOF
10732
10733 fi
10734
10735 fi # unaligned pcrel relocs
10736
10737 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10738 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10739 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 gcc_cv_as_sparc_offsetable_lo10=no
10743 if test x$gcc_cv_as != x; then
10744 echo '.text
10745 or %g1, %lo(ab) + 12, %g1
10746 or %g1, %lo(ab + 12), %g1' > conftest.s
10747 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }
10753 then
10754 if test x$gcc_cv_objdump != x \
10755 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
10756 | grep ' 82106000 82106000' > /dev/null 2>&1; then
10757 gcc_cv_as_offsetable_lo10=yes
10758 fi
10759 else
10760 echo "configure: failed program was" >&5
10761 cat conftest.s >&5
10762 fi
10763 rm -f conftest.o conftest.s
10764 fi
10765 fi
10766 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10767 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10768 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_AS_OFFSETABLE_LO10 1
10772 _ACEOF
10773
10774 fi
10775 ;;
10776
10777 i[34567]86-*-* | x86_64-*-*)
10778 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10779 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10780 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783 gcc_cv_as_ix86_filds_fists=no
10784 if test $in_tree_gas = yes; then
10785 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10786 then gcc_cv_as_ix86_filds_fists=yes
10787 fi
10788 elif test x$gcc_cv_as != x; then
10789 echo 'filds mem; fists mem' > conftest.s
10790 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }
10796 then
10797 gcc_cv_as_ix86_filds_fists=yes
10798 else
10799 echo "configure: failed program was" >&5
10800 cat conftest.s >&5
10801 fi
10802 rm -f conftest.o conftest.s
10803 fi
10804 fi
10805 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10806 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10807 if test $gcc_cv_as_ix86_filds_fists = yes; then
10808
10809 cat >>confdefs.h <<\_ACEOF
10810 #define HAVE_GAS_FILDS_FISTS 1
10811 _ACEOF
10812
10813 fi
10814
10815 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10816 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10817 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820 gcc_cv_as_ix86_cmov_sun_syntax=no
10821 if test x$gcc_cv_as != x; then
10822 echo 'cmovl.l %edx, %eax' > conftest.s
10823 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }
10829 then
10830 gcc_cv_as_ix86_cmov_sun_syntax=yes
10831 else
10832 echo "configure: failed program was" >&5
10833 cat conftest.s >&5
10834 fi
10835 rm -f conftest.o conftest.s
10836 fi
10837 fi
10838 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10839 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10840 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10841
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10844 _ACEOF
10845
10846 fi
10847
10848 # This one is used unconditionally by i386.[ch]; it is to be defined
10849 # to 1 if the feature is present, 0 otherwise.
10850 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10851 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10852 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 gcc_cv_as_ix86_gotoff_in_data=no
10856 if test $in_tree_gas = yes; then
10857 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10858 then gcc_cv_as_ix86_gotoff_in_data=yes
10859 fi
10860 elif test x$gcc_cv_as != x; then
10861 echo ' .text
10862 .L0:
10863 nop
10864 .data
10865 .long .L0@GOTOFF' > conftest.s
10866 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }
10872 then
10873 gcc_cv_as_ix86_gotoff_in_data=yes
10874 else
10875 echo "configure: failed program was" >&5
10876 cat conftest.s >&5
10877 fi
10878 rm -f conftest.o conftest.s
10879 fi
10880 fi
10881 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10882 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10883
10884
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10887 _ACEOF
10888
10889 ;;
10890
10891 ia64*-*-*)
10892 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10893 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10894 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
10898 if test $in_tree_gas = yes; then
10899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10900 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10901 fi
10902 elif test x$gcc_cv_as != x; then
10903 echo ' .text
10904 addl r15 = @ltoffx(x#), gp
10905 ;;
10906 ld8.mov r16 = [r15], x#' > conftest.s
10907 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }
10913 then
10914 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
10915 else
10916 echo "configure: failed program was" >&5
10917 cat conftest.s >&5
10918 fi
10919 rm -f conftest.o conftest.s
10920 fi
10921 fi
10922 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10923 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10924 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10925
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10928 _ACEOF
10929
10930 fi
10931
10932 ;;
10933
10934 powerpc*-*-*)
10935 case $target in
10936 *-*-aix*) conftest_s=' .csect .text[PR]
10937 mfcr 3,128';;
10938 *-*-darwin*) conftest_s=' .text
10939 mfcr r3,128';;
10940 *) conftest_s=' .text
10941 mfcr 3,128';;
10942 esac
10943
10944 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10945 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10946 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 gcc_cv_as_powerpc_mfcrf=no
10950 if test $in_tree_gas = yes; then
10951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10952 then gcc_cv_as_powerpc_mfcrf=yes
10953 fi
10954 elif test x$gcc_cv_as != x; then
10955 echo "$conftest_s" > conftest.s
10956 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10959 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }
10962 then
10963 gcc_cv_as_powerpc_mfcrf=yes
10964 else
10965 echo "configure: failed program was" >&5
10966 cat conftest.s >&5
10967 fi
10968 rm -f conftest.o conftest.s
10969 fi
10970 fi
10971 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10972 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10973 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10974
10975 cat >>confdefs.h <<\_ACEOF
10976 #define HAVE_AS_MFCRF 1
10977 _ACEOF
10978
10979 fi
10980 ;;
10981
10982 mips*-*-*)
10983 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10984 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10985 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 else
10988 gcc_cv_as_mips_explicit_relocs=no
10989 if test $in_tree_gas = yes; then
10990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10991 then gcc_cv_as_mips_explicit_relocs=yes
10992 fi
10993 elif test x$gcc_cv_as != x; then
10994 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10995 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10998 ac_status=$?
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }
11001 then
11002 gcc_cv_as_mips_explicit_relocs=yes
11003 else
11004 echo "configure: failed program was" >&5
11005 cat conftest.s >&5
11006 fi
11007 rm -f conftest.o conftest.s
11008 fi
11009 fi
11010 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11011 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11012 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11013 if test x$target_cpu_default = x
11014 then target_cpu_default=MASK_EXPLICIT_RELOCS
11015 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11016 fi
11017 fi
11018
11019 ;;
11020 esac
11021 # ??? Not all targets support dwarf2 debug_line, even within a version
11022 # of gas. Moreover, we need to emit a valid instruction to trigger any
11023 # info to the output file. So, as supported targets are added to gas 2.11,
11024 # add some instruction here to (also) show we expect this might work.
11025 # ??? Once 2.11 is released, probably need to add first known working
11026 # version to the per-target configury.
11027 case "$target" in
11028 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11029 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11030 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11031 insn="nop"
11032 ;;
11033 ia64*-*-* | s390*-*-*)
11034 insn="nop 0"
11035 ;;
11036 mmix-*-*)
11037 insn="swym 0"
11038 ;;
11039 esac
11040 if test x"$insn" != x; then
11041 conftest_s="\
11042 .file 1 \"conftest.s\"
11043 .loc 1 3 0
11044 $insn"
11045 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11046 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11047 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 else
11050 gcc_cv_as_dwarf2_debug_line=no
11051 if test $in_tree_gas = yes; then
11052 if test $in_tree_gas_is_elf = yes \
11053 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11054 then gcc_cv_as_dwarf2_debug_line=yes
11055 fi
11056 elif test x$gcc_cv_as != x; then
11057 echo "$conftest_s" > conftest.s
11058 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }
11064 then
11065 # ??? This fails with non-gnu grep. Maybe use objdump?
11066 if grep debug_line conftest.o > /dev/null 2>&1; then
11067 gcc_cv_as_dwarf2_debug_line=yes
11068 fi
11069 else
11070 echo "configure: failed program was" >&5
11071 cat conftest.s >&5
11072 fi
11073 rm -f conftest.o conftest.s
11074 fi
11075 fi
11076 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11077 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11078
11079
11080 # The .debug_line file table must be in the exact order that
11081 # we specified the files, since these indices are also used
11082 # by DW_AT_decl_file. Approximate this test by testing if
11083 # the assembler bitches if the same index is assigned twice.
11084 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11085 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11086 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 gcc_cv_as_dwarf2_file_buggy=no
11090 if test x$gcc_cv_as != x; then
11091 echo ' .file 1 "foo.s"
11092 .file 1 "bar.s"' > conftest.s
11093 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }
11099 then
11100 gcc_cv_as_dwarf2_file_buggy=yes
11101 else
11102 echo "configure: failed program was" >&5
11103 cat conftest.s >&5
11104 fi
11105 rm -f conftest.o conftest.s
11106 fi
11107 fi
11108 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11109 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11110
11111
11112 if test $gcc_cv_as_dwarf2_debug_line = yes \
11113 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11114
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11117 _ACEOF
11118
11119 fi
11120
11121 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11122 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11123 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126 gcc_cv_as_gdwarf2_flag=no
11127 if test $in_tree_gas = yes; then
11128 if test $in_tree_gas_is_elf = yes \
11129 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11130 then gcc_cv_as_gdwarf2_flag=yes
11131 fi
11132 elif test x$gcc_cv_as != x; then
11133 echo "$insn" > conftest.s
11134 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11137 ac_status=$?
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; }
11140 then
11141 gcc_cv_as_gdwarf2_flag=yes
11142 else
11143 echo "configure: failed program was" >&5
11144 cat conftest.s >&5
11145 fi
11146 rm -f conftest.o conftest.s
11147 fi
11148 fi
11149 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11150 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11151 if test $gcc_cv_as_gdwarf2_flag = yes; then
11152
11153 cat >>confdefs.h <<\_ACEOF
11154 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11155 _ACEOF
11156
11157 fi
11158
11159 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11160 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11161 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 else
11164 gcc_cv_as_gstabs_flag=no
11165 if test $in_tree_gas = yes; then
11166 if test $in_tree_gas_is_elf = yes \
11167 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11168 then gcc_cv_as_gstabs_flag=yes
11169 fi
11170 elif test x$gcc_cv_as != x; then
11171 echo "$insn" > conftest.s
11172 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }
11178 then
11179 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11180 # and warns about it, but still exits successfully. So check for
11181 # this.
11182 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }
11188 then :
11189 else gcc_cv_as_gstabs_flag=yes
11190 fi
11191 else
11192 echo "configure: failed program was" >&5
11193 cat conftest.s >&5
11194 fi
11195 rm -f conftest.o conftest.s
11196 fi
11197 fi
11198 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11199 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11200 if test $gcc_cv_as_gstabs_flag = yes; then
11201
11202 cat >>confdefs.h <<\_ACEOF
11203 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11204 _ACEOF
11205
11206 fi
11207 fi
11208
11209 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11210 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11211 gcc_cv_ld_ro_rw_mix=unknown
11212 if test $in_tree_ld = yes ; then
11213 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 \
11214 && test $in_tree_ld_is_elf = yes; then
11215 gcc_cv_ld_ro_rw_mix=read-write
11216 fi
11217 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11218 echo '.section myfoosect, "a"' > conftest1.s
11219 echo '.section myfoosect, "aw"' > conftest2.s
11220 echo '.byte 1' >> conftest2.s
11221 echo '.section myfoosect, "a"' > conftest3.s
11222 echo '.byte 0' >> conftest3.s
11223 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11224 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11225 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11226 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11227 conftest2.o conftest3.o > /dev/null 2>&1; then
11228 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11229 | sed -e '/myfoosect/!d' -e N`
11230 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11231 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11232 gcc_cv_ld_ro_rw_mix=read-only
11233 else
11234 gcc_cv_ld_ro_rw_mix=read-write
11235 fi
11236 fi
11237 fi
11238 rm -f conftest.* conftest[123].*
11239 fi
11240 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11241
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11244 _ACEOF
11245
11246 fi
11247 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11248 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11249
11250 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11251 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11252 gcc_cv_ld_eh_frame_hdr=no
11253 if test $in_tree_ld = yes ; then
11254 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 \
11255 && test $in_tree_ld_is_elf = yes; then
11256 gcc_cv_ld_eh_frame_hdr=yes
11257 fi
11258 elif test x$gcc_cv_ld != x; then
11259 # Check if linker supports --eh-frame-hdr option
11260 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11261 gcc_cv_ld_eh_frame_hdr=yes
11262 fi
11263 fi
11264 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11265
11266 cat >>confdefs.h <<\_ACEOF
11267 #define HAVE_LD_EH_FRAME_HDR 1
11268 _ACEOF
11269
11270 fi
11271 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11272 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11273
11274 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11275 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11276 gcc_cv_ld_pie=no
11277 if test $in_tree_ld = yes ; then
11278 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 \
11279 && test $in_tree_ld_is_elf = yes; then
11280 gcc_cv_ld_pie=yes
11281 fi
11282 elif test x$gcc_cv_ld != x; then
11283 # Check if linker supports -pie option
11284 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11285 gcc_cv_ld_pie=yes
11286 fi
11287 fi
11288 if test x"$gcc_cv_ld_pie" = xyes; then
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define HAVE_LD_PIE 1
11292 _ACEOF
11293
11294 fi
11295 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11296 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11297
11298 # --------
11299 # UNSORTED
11300 # --------
11301
11302 if test x$with_sysroot = x && test x$host = x$target \
11303 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11304
11305 cat >>confdefs.h <<_ACEOF
11306 #define PREFIX_INCLUDE_DIR "$prefix/include"
11307 _ACEOF
11308
11309 fi
11310
11311 # Figure out what language subdirectories are present.
11312 # Look if the user specified --enable-languages="..."; if not, use
11313 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11314 # go away some day.
11315 # NB: embedded tabs in this IF block -- do not untabify
11316 if test x"${enable_languages+set}" != xset; then
11317 if test x"${LANGUAGES+set}" = xset; then
11318 enable_languages="${LANGUAGES}"
11319 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11320 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11321
11322 else
11323 enable_languages=all
11324 fi
11325 else
11326 if test x"${enable_languages}" = x \
11327 || test x"${enable_languages}" = xyes;
11328 then
11329 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11330 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11331 { (exit 1); exit 1; }; }
11332 fi
11333 fi
11334 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11335
11336 # First scan to see if an enabled language requires some other language.
11337 # We assume that a given config-lang.in will list all the language
11338 # front ends it requires, even if some are required indirectly.
11339 for lang in ${srcdir}/*/config-lang.in
11340 do
11341 case $lang in
11342 # The odd quoting in the next line works around
11343 # an apparent bug in bash 1.12 on linux.
11344 ${srcdir}/[*]/config-lang.in)
11345 ;;
11346 *)
11347 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11348 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11349 for other in $this_lang_requires
11350 do
11351 case ,${enable_languages}, in
11352 *,$other,*)
11353 ;;
11354 *,all,*)
11355 ;;
11356 *,$lang_alias,*)
11357 enable_languages="$enable_languages,$other"
11358 ;;
11359 esac
11360 done
11361 ;;
11362 esac
11363 done
11364
11365 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11366 found_languages=
11367 subdirs=
11368 for lang in ${srcdir}/*/config-lang.in
11369 do
11370 case $lang in
11371 # The odd quoting in the next line works around
11372 # an apparent bug in bash 1.12 on linux.
11373 ${srcdir}/[*]/config-lang.in) ;;
11374 *)
11375 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11376 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11377 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11378 if test "x$lang_alias" = x
11379 then
11380 echo "$lang doesn't set \$language." 1>&2
11381 exit 1
11382 fi
11383 case ${build_by_default},${enable_languages}, in
11384 *,$lang_alias,*) add_this_lang=yes ;;
11385 no,*) add_this_lang=no ;;
11386 *,all,*) add_this_lang=yes ;;
11387 *) add_this_lang=no ;;
11388 esac
11389 found_languages="${found_languages} ${lang_alias}"
11390 if test x"${add_this_lang}" = xyes; then
11391 case $lang in
11392 ${srcdir}/ada/config-lang.in)
11393 if test x$have_gnat = xyes ; then
11394 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11395 fi
11396 ;;
11397 *)
11398 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11399 ;;
11400 esac
11401 fi
11402 ;;
11403 esac
11404 done
11405
11406 missing_languages=
11407 for expected_language in ${expected_languages} ..
11408 do
11409 if test "${expected_language}" != ..; then
11410 missing_language="${expected_language}"
11411 if test "${expected_language}" = "c" \
11412 || test "${expected_language}" = "all"; then
11413 missing_language=
11414 fi
11415 for found_language in ${found_languages} ..
11416 do
11417 if test "${found_language}" != ..; then
11418 if test "${expected_language}" = "${found_language}"; then
11419 missing_language=
11420 fi
11421 fi
11422 done
11423 if test "x${missing_language}" != x; then
11424 missing_languages="${missing_languages} ${missing_language}"
11425 fi
11426 fi
11427 done
11428
11429 if test "x$missing_languages" != x; then
11430 { { echo "$as_me:$LINENO: error:
11431 The following requested languages were not found:${missing_languages}
11432 The following languages were available: c${found_languages}" >&5
11433 echo "$as_me: error:
11434 The following requested languages were not found:${missing_languages}
11435 The following languages were available: c${found_languages}" >&2;}
11436 { (exit 1); exit 1; }; }
11437 fi
11438
11439 # Find out what GC implementation we want, or may, use.
11440
11441 # Check whether --with-gc or --without-gc was given.
11442 if test "${with_gc+set}" = set; then
11443 withval="$with_gc"
11444 case "$withval" in
11445 page | zone)
11446 GGC=ggc-$withval
11447 ;;
11448 *)
11449 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11450 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11451 { (exit 1); exit 1; }; }
11452 ;;
11453 esac
11454 else
11455 GGC=ggc-page
11456 fi;
11457
11458 echo "Using $GGC for garbage collection."
11459
11460 # Use the system's zlib library.
11461 zlibdir=-L../zlib
11462 zlibinc="-I\$(srcdir)/../zlib"
11463
11464 # Check whether --with-system-zlib or --without-system-zlib was given.
11465 if test "${with_system_zlib+set}" = set; then
11466 withval="$with_system_zlib"
11467 zlibdir=
11468 zlibinc=
11469
11470 fi;
11471
11472
11473
11474
11475 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11476 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11477 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11478 if test "${enable_maintainer_mode+set}" = set; then
11479 enableval="$enable_maintainer_mode"
11480 maintainer_mode=$enableval
11481 else
11482 maintainer_mode=no
11483 fi;
11484
11485 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11486 echo "${ECHO_T}$maintainer_mode" >&6
11487
11488 if test "$maintainer_mode" = "yes"; then
11489 MAINT=''
11490 else
11491 MAINT='#'
11492 fi
11493
11494 # --------------
11495 # Language hooks
11496 # --------------
11497
11498 # Make empty files to contain the specs and options for each language.
11499 # Then add #include lines to for a compiler that has specs and/or options.
11500
11501 lang_opt_files=
11502 lang_specs_files=
11503 lang_tree_files=
11504 for subdir in . $subdirs
11505 do
11506 if test -f $srcdir/$subdir/lang.opt; then
11507 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
11508 fi
11509 if test -f $srcdir/$subdir/lang-specs.h; then
11510 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11511 fi
11512 if test -f $srcdir/$subdir/$subdir-tree.def; then
11513 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11514 fi
11515 done
11516
11517 # These (without "all_") are set in each config-lang.in.
11518 # `language' must be a single word so is spelled singularly.
11519 all_languages=
11520 all_boot_languages=
11521 all_compilers=
11522 all_stagestuff=
11523 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11524 # List of language makefile fragments.
11525 all_lang_makefrags=
11526 # List of language subdirectory makefiles. Deprecated.
11527 all_lang_makefiles=
11528 # Files for gengtype
11529 all_gtfiles="$target_gtfiles"
11530 # Files for gengtype with language
11531 all_gtfiles_files_langs=
11532 all_gtfiles_files_files=
11533
11534 # Add the language fragments.
11535 # Languages are added via two mechanisms. Some information must be
11536 # recorded in makefile variables, these are defined in config-lang.in.
11537 # We accumulate them and plug them into the main Makefile.
11538 # The other mechanism is a set of hooks for each of the main targets
11539 # like `clean', `install', etc.
11540
11541 language_hooks="Make-hooks"
11542
11543 for s in $subdirs
11544 do
11545 language=
11546 boot_language=
11547 compilers=
11548 stagestuff=
11549 outputs=
11550 gtfiles=
11551 . ${srcdir}/$s/config-lang.in
11552 if test "x$language" = x
11553 then
11554 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11555 exit 1
11556 fi
11557 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11558 if test -f ${srcdir}/$s/Makefile.in
11559 then all_lang_makefiles="$s/Makefile"
11560 fi
11561 all_languages="$all_languages $language"
11562 if test "x$boot_language" = xyes
11563 then
11564 all_boot_languages="$all_boot_languages $language"
11565 fi
11566 all_compilers="$all_compilers $compilers"
11567 all_stagestuff="$all_stagestuff $stagestuff"
11568 all_outputs="$all_outputs $outputs"
11569 all_gtfiles="$all_gtfiles $gtfiles"
11570 for f in $gtfiles
11571 do
11572 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11573 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11574 done
11575 done
11576
11577 # Pick up gtfiles for c
11578 gtfiles=
11579 s="c"
11580 . ${srcdir}/c-config-lang.in
11581 all_gtfiles="$all_gtfiles $gtfiles"
11582 for f in $gtfiles
11583 do
11584 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
11585 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
11586 done
11587
11588 check_languages=
11589 for language in $all_languages
11590 do
11591 check_languages="$check_languages check-$language"
11592 done
11593
11594 # We link each language in with a set of hooks, reached indirectly via
11595 # lang.${target}.
11596
11597 rm -f Make-hooks
11598 touch Make-hooks
11599 target_list="all.build all.cross start.encap rest.encap tags \
11600 install-normal install-common install-man \
11601 uninstall info man srcextra srcman srcinfo \
11602 mostlyclean clean distclean maintainer-clean \
11603 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11604 for t in $target_list
11605 do
11606 x=
11607 for lang in $all_languages
11608 do
11609 x="$x $lang.$t"
11610 done
11611 echo "lang.$t: $x" >> Make-hooks
11612 done
11613
11614 # --------
11615 # UNSORTED
11616 # --------
11617
11618 # Create .gdbinit.
11619
11620 echo "dir ." > .gdbinit
11621 echo "dir ${srcdir}" >> .gdbinit
11622 if test x$gdb_needs_out_file_path = xyes
11623 then
11624 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11625 fi
11626 if test "x$subdirs" != x; then
11627 for s in $subdirs
11628 do
11629 echo "dir ${srcdir}/$s" >> .gdbinit
11630 done
11631 fi
11632 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11633
11634 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11635 # absolute path for gcc_tooldir based on inserting the number of up-directory
11636 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11637 # $(libsubdir)/@(unlibsubdir) based path.
11638 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11639 # make and thus we'd get different behavior depending on where we built the
11640 # sources.
11641 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
11642 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11643 else
11644 # An explanation of the sed strings:
11645 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11646 # -e 's|/$||' match a trailing forward slash and eliminates it
11647 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11648 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11649 #
11650 # (*) Note this pattern overwrites the first character of the string
11651 # with a forward slash if one is not already present. This is not a
11652 # problem because the exact names of the sub-directories concerned is
11653 # unimportant, just the number of them matters.
11654 #
11655 # The practical upshot of these patterns is like this:
11656 #
11657 # prefix exec_prefix result
11658 # ------ ----------- ------
11659 # /foo /foo/bar ../
11660 # /foo/ /foo/bar ../
11661 # /foo /foo/bar/ ../
11662 # /foo/ /foo/bar/ ../
11663 # /foo /foo/bar/ugg ../../
11664 #
11665 dollar='$$'
11666 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11667 fi
11668
11669
11670
11671 # Find a directory in which to install a shared libgcc.
11672
11673 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11674 if test "${enable_version_specific_runtime_libs+set}" = set; then
11675 enableval="$enable_version_specific_runtime_libs"
11676
11677 fi;
11678
11679
11680 # Check whether --with-slibdir or --without-slibdir was given.
11681 if test "${with_slibdir+set}" = set; then
11682 withval="$with_slibdir"
11683 slibdir="$with_slibdir"
11684 else
11685 if test "${enable_version_specific_runtime_libs+set}" = set; then
11686 slibdir='$(libsubdir)'
11687 elif test "$host" != "$target"; then
11688 slibdir='$(build_tooldir)/lib'
11689 else
11690 slibdir='$(libdir)'
11691 fi
11692 fi;
11693
11694
11695 objdir=`${PWDCMD-pwd}`
11696
11697
11698 # Substitute configuration variables
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 # If it doesn't already exist, create document directory
11768 echo "checking for the document directory." 1>&2
11769 if test -d doc ; then
11770 true
11771 else
11772 mkdir doc
11773 fi
11774
11775 # Echo link setup.
11776 if test x${build} = x${host} ; then
11777 if test x${host} = x${target} ; then
11778 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11779 else
11780 echo "Links are now set up to build a cross-compiler" 1>&2
11781 echo " from ${host} to ${target}." 1>&2
11782 fi
11783 else
11784 if test x${host} = x${target} ; then
11785 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11786 echo " for ${target}." 1>&2
11787 else
11788 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11789 echo " from ${host} to ${target}." 1>&2
11790 fi
11791 fi
11792
11793 # Configure the subdirectories
11794 # AC_CONFIG_SUBDIRS($subdirs)
11795
11796 # Create the Makefile
11797 # and configure language subdirectories
11798 ac_config_files="$ac_config_files $all_outputs"
11799
11800
11801 ac_config_commands="$ac_config_commands default"
11802
11803 cat >confcache <<\_ACEOF
11804 # This file is a shell script that caches the results of configure
11805 # tests run on this system so they can be shared between configure
11806 # scripts and configure runs, see configure's option --config-cache.
11807 # It is not useful on other systems. If it contains results you don't
11808 # want to keep, you may remove or edit it.
11809 #
11810 # config.status only pays attention to the cache file if you give it
11811 # the --recheck option to rerun configure.
11812 #
11813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11815 # following values.
11816
11817 _ACEOF
11818
11819 # The following way of writing the cache mishandles newlines in values,
11820 # but we know of no workaround that is simple, portable, and efficient.
11821 # So, don't put newlines in cache variables' values.
11822 # Ultrix sh set writes to stderr and can't be redirected directly,
11823 # and sets the high bit in the cache file unless we assign to the vars.
11824 {
11825 (set) 2>&1 |
11826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11827 *ac_space=\ *)
11828 # `set' does not quote correctly, so add quotes (double-quote
11829 # substitution turns \\\\ into \\, and sed turns \\ into \).
11830 sed -n \
11831 "s/'/'\\\\''/g;
11832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11833 ;;
11834 *)
11835 # `set' quotes correctly as required by POSIX, so do not add quotes.
11836 sed -n \
11837 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11838 ;;
11839 esac;
11840 } |
11841 sed '
11842 t clear
11843 : clear
11844 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11845 t end
11846 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11847 : end' >>confcache
11848 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11849 if test -w $cache_file; then
11850 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11851 cat confcache >$cache_file
11852 else
11853 echo "not updating unwritable cache $cache_file"
11854 fi
11855 fi
11856 rm -f confcache
11857
11858 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11859 # Let make expand exec_prefix.
11860 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11861
11862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11864 # trailing colons and then remove the whole line if VPATH becomes empty
11865 # (actually we leave an empty line to preserve line numbers).
11866 if test "x$srcdir" = x.; then
11867 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11868 s/:*\$(srcdir):*/:/;
11869 s/:*\${srcdir}:*/:/;
11870 s/:*@srcdir@:*/:/;
11871 s/^\([^=]*=[ ]*\):*/\1/;
11872 s/:*$//;
11873 s/^[^=]*=[ ]*$//;
11874 }'
11875 fi
11876
11877 DEFS=-DHAVE_CONFIG_H
11878
11879 ac_libobjs=
11880 ac_ltlibobjs=
11881 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11882 # 1. Remove the extension, and $U if already installed.
11883 ac_i=`echo "$ac_i" |
11884 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11885 # 2. Add them.
11886 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11887 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11888 done
11889 LIBOBJS=$ac_libobjs
11890
11891 LTLIBOBJS=$ac_ltlibobjs
11892
11893
11894
11895 : ${CONFIG_STATUS=./config.status}
11896 ac_clean_files_save=$ac_clean_files
11897 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11898 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11899 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11900 cat >$CONFIG_STATUS <<_ACEOF
11901 #! $SHELL
11902 # Generated by $as_me.
11903 # Run this file to recreate the current configuration.
11904 # Compiler output produced by configure, useful for debugging
11905 # configure, is in config.log if it exists.
11906
11907 debug=false
11908 ac_cs_recheck=false
11909 ac_cs_silent=false
11910 SHELL=\${CONFIG_SHELL-$SHELL}
11911 _ACEOF
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914 ## --------------------- ##
11915 ## M4sh Initialization. ##
11916 ## --------------------- ##
11917
11918 # Be Bourne compatible
11919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11920 emulate sh
11921 NULLCMD=:
11922 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11923 # is contrary to our usage. Disable this feature.
11924 alias -g '${1+"$@"}'='"$@"'
11925 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11926 set -o posix
11927 fi
11928
11929 # Support unset when possible.
11930 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11931 as_unset=unset
11932 else
11933 as_unset=false
11934 fi
11935
11936
11937 # Work around bugs in pre-3.0 UWIN ksh.
11938 $as_unset ENV MAIL MAILPATH
11939 PS1='$ '
11940 PS2='> '
11941 PS4='+ '
11942
11943 # NLS nuisances.
11944 for as_var in \
11945 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11946 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11947 LC_TELEPHONE LC_TIME
11948 do
11949 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11950 eval $as_var=C; export $as_var
11951 else
11952 $as_unset $as_var
11953 fi
11954 done
11955
11956 # Required to use basename.
11957 if expr a : '\(a\)' >/dev/null 2>&1; then
11958 as_expr=expr
11959 else
11960 as_expr=false
11961 fi
11962
11963 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11964 as_basename=basename
11965 else
11966 as_basename=false
11967 fi
11968
11969
11970 # Name of the executable.
11971 as_me=`$as_basename "$0" ||
11972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11973 X"$0" : 'X\(//\)$' \| \
11974 X"$0" : 'X\(/\)$' \| \
11975 . : '\(.\)' 2>/dev/null ||
11976 echo X/"$0" |
11977 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11978 /^X\/\(\/\/\)$/{ s//\1/; q; }
11979 /^X\/\(\/\).*/{ s//\1/; q; }
11980 s/.*/./; q'`
11981
11982
11983 # PATH needs CR, and LINENO needs CR and PATH.
11984 # Avoid depending upon Character Ranges.
11985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11988 as_cr_digits='0123456789'
11989 as_cr_alnum=$as_cr_Letters$as_cr_digits
11990
11991 # The user is always right.
11992 if test "${PATH_SEPARATOR+set}" != set; then
11993 echo "#! /bin/sh" >conf$$.sh
11994 echo "exit 0" >>conf$$.sh
11995 chmod +x conf$$.sh
11996 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11997 PATH_SEPARATOR=';'
11998 else
11999 PATH_SEPARATOR=:
12000 fi
12001 rm -f conf$$.sh
12002 fi
12003
12004
12005 as_lineno_1=$LINENO
12006 as_lineno_2=$LINENO
12007 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12008 test "x$as_lineno_1" != "x$as_lineno_2" &&
12009 test "x$as_lineno_3" = "x$as_lineno_2" || {
12010 # Find who we are. Look in the path if we contain no path at all
12011 # relative or not.
12012 case $0 in
12013 *[\\/]* ) as_myself=$0 ;;
12014 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12016 do
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12020 done
12021
12022 ;;
12023 esac
12024 # We did not find ourselves, most probably we were run as `sh COMMAND'
12025 # in which case we are not to be found in the path.
12026 if test "x$as_myself" = x; then
12027 as_myself=$0
12028 fi
12029 if test ! -f "$as_myself"; then
12030 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12031 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12032 { (exit 1); exit 1; }; }
12033 fi
12034 case $CONFIG_SHELL in
12035 '')
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12038 do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for as_base in sh bash ksh sh5; do
12042 case $as_dir in
12043 /*)
12044 if ("$as_dir/$as_base" -c '
12045 as_lineno_1=$LINENO
12046 as_lineno_2=$LINENO
12047 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12048 test "x$as_lineno_1" != "x$as_lineno_2" &&
12049 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12050 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12051 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12052 CONFIG_SHELL=$as_dir/$as_base
12053 export CONFIG_SHELL
12054 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12055 fi;;
12056 esac
12057 done
12058 done
12059 ;;
12060 esac
12061
12062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12063 # uniformly replaced by the line number. The first 'sed' inserts a
12064 # line-number line before each line; the second 'sed' does the real
12065 # work. The second script uses 'N' to pair each line-number line
12066 # with the numbered line, and appends trailing '-' during
12067 # substitution so that $LINENO is not a special case at line end.
12068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12069 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12070 sed '=' <$as_myself |
12071 sed '
12072 N
12073 s,$,-,
12074 : loop
12075 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12076 t loop
12077 s,-$,,
12078 s,^['$as_cr_digits']*\n,,
12079 ' >$as_me.lineno &&
12080 chmod +x $as_me.lineno ||
12081 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12082 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12083 { (exit 1); exit 1; }; }
12084
12085 # Don't try to exec as it changes $[0], causing all sort of problems
12086 # (the dirname of $[0] is not the place where we might find the
12087 # original and so on. Autoconf is especially sensible to this).
12088 . ./$as_me.lineno
12089 # Exit status is that of the last command.
12090 exit
12091 }
12092
12093
12094 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12095 *c*,-n*) ECHO_N= ECHO_C='
12096 ' ECHO_T=' ' ;;
12097 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12098 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12099 esac
12100
12101 if expr a : '\(a\)' >/dev/null 2>&1; then
12102 as_expr=expr
12103 else
12104 as_expr=false
12105 fi
12106
12107 rm -f conf$$ conf$$.exe conf$$.file
12108 echo >conf$$.file
12109 if ln -s conf$$.file conf$$ 2>/dev/null; then
12110 # We could just check for DJGPP; but this test a) works b) is more generic
12111 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12112 if test -f conf$$.exe; then
12113 # Don't use ln at all; we don't have any links
12114 as_ln_s='cp -p'
12115 else
12116 as_ln_s='ln -s'
12117 fi
12118 elif ln conf$$.file conf$$ 2>/dev/null; then
12119 as_ln_s=ln
12120 else
12121 as_ln_s='cp -p'
12122 fi
12123 rm -f conf$$ conf$$.exe conf$$.file
12124
12125 if mkdir -p . 2>/dev/null; then
12126 as_mkdir_p=:
12127 else
12128 as_mkdir_p=false
12129 fi
12130
12131 as_executable_p="test -f"
12132
12133 # Sed expression to map a string onto a valid CPP name.
12134 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12135
12136 # Sed expression to map a string onto a valid variable name.
12137 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12138
12139
12140 # IFS
12141 # We need space, tab and new line, in precisely that order.
12142 as_nl='
12143 '
12144 IFS=" $as_nl"
12145
12146 # CDPATH.
12147 $as_unset CDPATH
12148
12149 exec 6>&1
12150
12151 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12152 # report actual input values of CONFIG_FILES etc. instead of their
12153 # values after options handling. Logging --version etc. is OK.
12154 exec 5>>config.log
12155 {
12156 echo
12157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12158 ## Running $as_me. ##
12159 _ASBOX
12160 } >&5
12161 cat >&5 <<_CSEOF
12162
12163 This file was extended by $as_me, which was
12164 generated by GNU Autoconf 2.57. Invocation command line was
12165
12166 CONFIG_FILES = $CONFIG_FILES
12167 CONFIG_HEADERS = $CONFIG_HEADERS
12168 CONFIG_LINKS = $CONFIG_LINKS
12169 CONFIG_COMMANDS = $CONFIG_COMMANDS
12170 $ $0 $@
12171
12172 _CSEOF
12173 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12174 echo >&5
12175 _ACEOF
12176
12177 # Files that config.status was made for.
12178 if test -n "$ac_config_files"; then
12179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12180 fi
12181
12182 if test -n "$ac_config_headers"; then
12183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12184 fi
12185
12186 if test -n "$ac_config_links"; then
12187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12188 fi
12189
12190 if test -n "$ac_config_commands"; then
12191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12192 fi
12193
12194 cat >>$CONFIG_STATUS <<\_ACEOF
12195
12196 ac_cs_usage="\
12197 \`$as_me' instantiates files from templates according to the
12198 current configuration.
12199
12200 Usage: $0 [OPTIONS] [FILE]...
12201
12202 -h, --help print this help, then exit
12203 -V, --version print version number, then exit
12204 -q, --quiet do not print progress messages
12205 -d, --debug don't remove temporary files
12206 --recheck update $as_me by reconfiguring in the same conditions
12207 --file=FILE[:TEMPLATE]
12208 instantiate the configuration file FILE
12209 --header=FILE[:TEMPLATE]
12210 instantiate the configuration header FILE
12211
12212 Configuration files:
12213 $config_files
12214
12215 Configuration headers:
12216 $config_headers
12217
12218 Configuration commands:
12219 $config_commands
12220
12221 Report bugs to <bug-autoconf@gnu.org>."
12222 _ACEOF
12223
12224 cat >>$CONFIG_STATUS <<_ACEOF
12225 ac_cs_version="\\
12226 config.status
12227 configured by $0, generated by GNU Autoconf 2.57,
12228 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12229
12230 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12231 Free Software Foundation, Inc.
12232 This config.status script is free software; the Free Software Foundation
12233 gives unlimited permission to copy, distribute and modify it."
12234 srcdir=$srcdir
12235 _ACEOF
12236
12237 cat >>$CONFIG_STATUS <<\_ACEOF
12238 # If no file are specified by the user, then we need to provide default
12239 # value. By we need to know if files were specified by the user.
12240 ac_need_defaults=:
12241 while test $# != 0
12242 do
12243 case $1 in
12244 --*=*)
12245 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12246 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12247 ac_shift=:
12248 ;;
12249 -*)
12250 ac_option=$1
12251 ac_optarg=$2
12252 ac_shift=shift
12253 ;;
12254 *) # This is not an option, so the user has probably given explicit
12255 # arguments.
12256 ac_option=$1
12257 ac_need_defaults=false;;
12258 esac
12259
12260 case $ac_option in
12261 # Handling of the options.
12262 _ACEOF
12263 cat >>$CONFIG_STATUS <<\_ACEOF
12264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12265 ac_cs_recheck=: ;;
12266 --version | --vers* | -V )
12267 echo "$ac_cs_version"; exit 0 ;;
12268 --he | --h)
12269 # Conflict between --help and --header
12270 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12271 Try \`$0 --help' for more information." >&5
12272 echo "$as_me: error: ambiguous option: $1
12273 Try \`$0 --help' for more information." >&2;}
12274 { (exit 1); exit 1; }; };;
12275 --help | --hel | -h )
12276 echo "$ac_cs_usage"; exit 0 ;;
12277 --debug | --d* | -d )
12278 debug=: ;;
12279 --file | --fil | --fi | --f )
12280 $ac_shift
12281 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12282 ac_need_defaults=false;;
12283 --header | --heade | --head | --hea )
12284 $ac_shift
12285 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12286 ac_need_defaults=false;;
12287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12289 ac_cs_silent=: ;;
12290
12291 # This is an error.
12292 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12293 Try \`$0 --help' for more information." >&5
12294 echo "$as_me: error: unrecognized option: $1
12295 Try \`$0 --help' for more information." >&2;}
12296 { (exit 1); exit 1; }; } ;;
12297
12298 *) ac_config_targets="$ac_config_targets $1" ;;
12299
12300 esac
12301 shift
12302 done
12303
12304 ac_configure_extra_args=
12305
12306 if $ac_cs_silent; then
12307 exec 6>/dev/null
12308 ac_configure_extra_args="$ac_configure_extra_args --silent"
12309 fi
12310
12311 _ACEOF
12312 cat >>$CONFIG_STATUS <<_ACEOF
12313 if \$ac_cs_recheck; then
12314 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12315 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12316 fi
12317
12318 _ACEOF
12319
12320 cat >>$CONFIG_STATUS <<_ACEOF
12321 #
12322 # INIT-COMMANDS section.
12323 #
12324
12325 subdirs='$subdirs'
12326 symbolic_link='$symbolic_link'
12327
12328
12329 _ACEOF
12330
12331
12332
12333 cat >>$CONFIG_STATUS <<\_ACEOF
12334 for ac_config_target in $ac_config_targets
12335 do
12336 case "$ac_config_target" in
12337 # Handling of arguments.
12338 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12339 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12340 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12342 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12343 { (exit 1); exit 1; }; };;
12344 esac
12345 done
12346
12347 # If the user did not use the arguments to specify the items to instantiate,
12348 # then the envvar interface is used. Set only those that are not.
12349 # We use the long form for the default assignment because of an extremely
12350 # bizarre bug on SunOS 4.1.3.
12351 if $ac_need_defaults; then
12352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12355 fi
12356
12357 # Have a temporary directory for convenience. Make it in the build tree
12358 # simply because there is no reason to put it here, and in addition,
12359 # creating and moving files from /tmp can sometimes cause problems.
12360 # Create a temporary directory, and hook for its removal unless debugging.
12361 $debug ||
12362 {
12363 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12364 trap '{ (exit 1); exit 1; }' 1 2 13 15
12365 }
12366
12367 # Create a (secure) tmp directory for tmp files.
12368
12369 {
12370 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12371 test -n "$tmp" && test -d "$tmp"
12372 } ||
12373 {
12374 tmp=./confstat$$-$RANDOM
12375 (umask 077 && mkdir $tmp)
12376 } ||
12377 {
12378 echo "$me: cannot create a temporary directory in ." >&2
12379 { (exit 1); exit 1; }
12380 }
12381
12382 _ACEOF
12383
12384 cat >>$CONFIG_STATUS <<_ACEOF
12385
12386 #
12387 # CONFIG_FILES section.
12388 #
12389
12390 # No need to generate the scripts if there are no CONFIG_FILES.
12391 # This happens for instance when ./config.status config.h
12392 if test -n "\$CONFIG_FILES"; then
12393 # Protect against being on the right side of a sed subst in config.status.
12394 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12395 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12396 s,@SHELL@,$SHELL,;t t
12397 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12398 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12399 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12400 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12401 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12402 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12403 s,@exec_prefix@,$exec_prefix,;t t
12404 s,@prefix@,$prefix,;t t
12405 s,@program_transform_name@,$program_transform_name,;t t
12406 s,@bindir@,$bindir,;t t
12407 s,@sbindir@,$sbindir,;t t
12408 s,@libexecdir@,$libexecdir,;t t
12409 s,@datadir@,$datadir,;t t
12410 s,@sysconfdir@,$sysconfdir,;t t
12411 s,@sharedstatedir@,$sharedstatedir,;t t
12412 s,@localstatedir@,$localstatedir,;t t
12413 s,@libdir@,$libdir,;t t
12414 s,@includedir@,$includedir,;t t
12415 s,@oldincludedir@,$oldincludedir,;t t
12416 s,@infodir@,$infodir,;t t
12417 s,@mandir@,$mandir,;t t
12418 s,@build_alias@,$build_alias,;t t
12419 s,@host_alias@,$host_alias,;t t
12420 s,@target_alias@,$target_alias,;t t
12421 s,@DEFS@,$DEFS,;t t
12422 s,@ECHO_C@,$ECHO_C,;t t
12423 s,@ECHO_N@,$ECHO_N,;t t
12424 s,@ECHO_T@,$ECHO_T,;t t
12425 s,@LIBS@,$LIBS,;t t
12426 s,@build@,$build,;t t
12427 s,@build_cpu@,$build_cpu,;t t
12428 s,@build_vendor@,$build_vendor,;t t
12429 s,@build_os@,$build_os,;t t
12430 s,@host@,$host,;t t
12431 s,@host_cpu@,$host_cpu,;t t
12432 s,@host_vendor@,$host_vendor,;t t
12433 s,@host_os@,$host_os,;t t
12434 s,@target@,$target,;t t
12435 s,@target_cpu@,$target_cpu,;t t
12436 s,@target_vendor@,$target_vendor,;t t
12437 s,@target_os@,$target_os,;t t
12438 s,@build_subdir@,$build_subdir,;t t
12439 s,@host_subdir@,$host_subdir,;t t
12440 s,@target_subdir@,$target_subdir,;t t
12441 s,@GENINSRC@,$GENINSRC,;t t
12442 s,@CC@,$CC,;t t
12443 s,@CFLAGS@,$CFLAGS,;t t
12444 s,@LDFLAGS@,$LDFLAGS,;t t
12445 s,@CPPFLAGS@,$CPPFLAGS,;t t
12446 s,@ac_ct_CC@,$ac_ct_CC,;t t
12447 s,@EXEEXT@,$EXEEXT,;t t
12448 s,@OBJEXT@,$OBJEXT,;t t
12449 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12450 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12451 s,@CPP@,$CPP,;t t
12452 s,@GNATBIND@,$GNATBIND,;t t
12453 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12454 s,@strict1_warn@,$strict1_warn,;t t
12455 s,@warn_cflags@,$warn_cflags,;t t
12456 s,@WERROR@,$WERROR,;t t
12457 s,@nocommon_flag@,$nocommon_flag,;t t
12458 s,@EGREP@,$EGREP,;t t
12459 s,@valgrind_path@,$valgrind_path,;t t
12460 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12461 s,@valgrind_command@,$valgrind_command,;t t
12462 s,@coverage_flags@,$coverage_flags,;t t
12463 s,@enable_multilib@,$enable_multilib,;t t
12464 s,@enable_shared@,$enable_shared,;t t
12465 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12466 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12467 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12468 s,@onestep@,$onestep,;t t
12469 s,@SET_MAKE@,$SET_MAKE,;t t
12470 s,@AWK@,$AWK,;t t
12471 s,@LN@,$LN,;t t
12472 s,@LN_S@,$LN_S,;t t
12473 s,@RANLIB@,$RANLIB,;t t
12474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12475 s,@INSTALL@,$INSTALL,;t t
12476 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12478 s,@make_compare_target@,$make_compare_target,;t t
12479 s,@have_mktemp_command@,$have_mktemp_command,;t t
12480 s,@MAKEINFO@,$MAKEINFO,;t t
12481 s,@BUILD_INFO@,$BUILD_INFO,;t t
12482 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12483 s,@FLEX@,$FLEX,;t t
12484 s,@BISON@,$BISON,;t t
12485 s,@stage1_cflags@,$stage1_cflags,;t t
12486 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12487 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12488 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12489 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12490 s,@LIBICONV@,$LIBICONV,;t t
12491 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12492 s,@manext@,$manext,;t t
12493 s,@objext@,$objext,;t t
12494 s,@gthread_flags@,$gthread_flags,;t t
12495 s,@extra_modes_file@,$extra_modes_file,;t t
12496 s,@FORBUILD@,$FORBUILD,;t t
12497 s,@PACKAGE@,$PACKAGE,;t t
12498 s,@VERSION@,$VERSION,;t t
12499 s,@USE_NLS@,$USE_NLS,;t t
12500 s,@LIBINTL@,$LIBINTL,;t t
12501 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12502 s,@INCINTL@,$INCINTL,;t t
12503 s,@XGETTEXT@,$XGETTEXT,;t t
12504 s,@GMSGFMT@,$GMSGFMT,;t t
12505 s,@POSUB@,$POSUB,;t t
12506 s,@CATALOGS@,$CATALOGS,;t t
12507 s,@CROSS@,$CROSS,;t t
12508 s,@ALL@,$ALL,;t t
12509 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12510 s,@inhibit_libc@,$inhibit_libc,;t t
12511 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12512 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12513 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12514 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12515 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12516 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12517 s,@libgcc_visibility@,$libgcc_visibility,;t t
12518 s,@GGC@,$GGC,;t t
12519 s,@zlibdir@,$zlibdir,;t t
12520 s,@zlibinc@,$zlibinc,;t t
12521 s,@MAINT@,$MAINT,;t t
12522 s,@gcc_tooldir@,$gcc_tooldir,;t t
12523 s,@dollar@,$dollar,;t t
12524 s,@slibdir@,$slibdir,;t t
12525 s,@objdir@,$objdir,;t t
12526 s,@subdirs@,$subdirs,;t t
12527 s,@srcdir@,$srcdir,;t t
12528 s,@all_boot_languages@,$all_boot_languages,;t t
12529 s,@all_compilers@,$all_compilers,;t t
12530 s,@all_gtfiles@,$all_gtfiles,;t t
12531 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12532 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12533 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12534 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12535 s,@all_languages@,$all_languages,;t t
12536 s,@all_stagestuff@,$all_stagestuff,;t t
12537 s,@build_exeext@,$build_exeext,;t t
12538 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12539 s,@build_xm_file_list@,$build_xm_file_list,;t t
12540 s,@build_xm_include_list@,$build_xm_include_list,;t t
12541 s,@build_xm_defines@,$build_xm_defines,;t t
12542 s,@check_languages@,$check_languages,;t t
12543 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12544 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12545 s,@cpp_install_dir@,$cpp_install_dir,;t t
12546 s,@xmake_file@,$xmake_file,;t t
12547 s,@tmake_file@,$tmake_file,;t t
12548 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12549 s,@extra_headers_list@,$extra_headers_list,;t t
12550 s,@extra_objs@,$extra_objs,;t t
12551 s,@extra_parts@,$extra_parts,;t t
12552 s,@extra_passes@,$extra_passes,;t t
12553 s,@extra_programs@,$extra_programs,;t t
12554 s,@float_h_file@,$float_h_file,;t t
12555 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12556 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12557 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12558 s,@gcc_version@,$gcc_version,;t t
12559 s,@gcc_version_full@,$gcc_version_full,;t t
12560 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12561 s,@host_exeext@,$host_exeext,;t t
12562 s,@host_xm_file_list@,$host_xm_file_list,;t t
12563 s,@host_xm_include_list@,$host_xm_include_list,;t t
12564 s,@host_xm_defines@,$host_xm_defines,;t t
12565 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12566 s,@install@,$install,;t t
12567 s,@lang_opt_files@,$lang_opt_files,;t t
12568 s,@lang_specs_files@,$lang_specs_files,;t t
12569 s,@lang_tree_files@,$lang_tree_files,;t t
12570 s,@local_prefix@,$local_prefix,;t t
12571 s,@md_file@,$md_file,;t t
12572 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12573 s,@out_file@,$out_file,;t t
12574 s,@out_object_file@,$out_object_file,;t t
12575 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12576 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12577 s,@symbolic_link@,$symbolic_link,;t t
12578 s,@thread_file@,$thread_file,;t t
12579 s,@tm_file_list@,$tm_file_list,;t t
12580 s,@tm_include_list@,$tm_include_list,;t t
12581 s,@tm_defines@,$tm_defines,;t t
12582 s,@tm_p_file_list@,$tm_p_file_list,;t t
12583 s,@tm_p_include_list@,$tm_p_include_list,;t t
12584 s,@xm_file_list@,$xm_file_list,;t t
12585 s,@xm_include_list@,$xm_include_list,;t t
12586 s,@xm_defines@,$xm_defines,;t t
12587 s,@target_noncanonical@,$target_noncanonical,;t t
12588 s,@c_target_objs@,$c_target_objs,;t t
12589 s,@cxx_target_objs@,$cxx_target_objs,;t t
12590 s,@target_cpu_default@,$target_cpu_default,;t t
12591 s,@LIBOBJS@,$LIBOBJS,;t t
12592 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12593 /@language_hooks@/r $language_hooks
12594 s,@language_hooks@,,;t t
12595 CEOF
12596
12597 _ACEOF
12598
12599 cat >>$CONFIG_STATUS <<\_ACEOF
12600 # Split the substitutions into bite-sized pieces for seds with
12601 # small command number limits, like on Digital OSF/1 and HP-UX.
12602 ac_max_sed_lines=48
12603 ac_sed_frag=1 # Number of current file.
12604 ac_beg=1 # First line for current file.
12605 ac_end=$ac_max_sed_lines # Line after last line for current file.
12606 ac_more_lines=:
12607 ac_sed_cmds=
12608 while $ac_more_lines; do
12609 if test $ac_beg -gt 1; then
12610 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12611 else
12612 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12613 fi
12614 if test ! -s $tmp/subs.frag; then
12615 ac_more_lines=false
12616 else
12617 # The purpose of the label and of the branching condition is to
12618 # speed up the sed processing (if there are no `@' at all, there
12619 # is no need to browse any of the substitutions).
12620 # These are the two extra sed commands mentioned above.
12621 (echo ':t
12622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12623 if test -z "$ac_sed_cmds"; then
12624 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12625 else
12626 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12627 fi
12628 ac_sed_frag=`expr $ac_sed_frag + 1`
12629 ac_beg=$ac_end
12630 ac_end=`expr $ac_end + $ac_max_sed_lines`
12631 fi
12632 done
12633 if test -z "$ac_sed_cmds"; then
12634 ac_sed_cmds=cat
12635 fi
12636 fi # test -n "$CONFIG_FILES"
12637
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<\_ACEOF
12640 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12641 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12642 case $ac_file in
12643 - | *:- | *:-:* ) # input from stdin
12644 cat >$tmp/stdin
12645 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12646 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12647 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12648 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12649 * ) ac_file_in=$ac_file.in ;;
12650 esac
12651
12652 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12653 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12654 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12655 X"$ac_file" : 'X\(//\)[^/]' \| \
12656 X"$ac_file" : 'X\(//\)$' \| \
12657 X"$ac_file" : 'X\(/\)' \| \
12658 . : '\(.\)' 2>/dev/null ||
12659 echo X"$ac_file" |
12660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12662 /^X\(\/\/\)$/{ s//\1/; q; }
12663 /^X\(\/\).*/{ s//\1/; q; }
12664 s/.*/./; q'`
12665 { if $as_mkdir_p; then
12666 mkdir -p "$ac_dir"
12667 else
12668 as_dir="$ac_dir"
12669 as_dirs=
12670 while test ! -d "$as_dir"; do
12671 as_dirs="$as_dir $as_dirs"
12672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12673 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12674 X"$as_dir" : 'X\(//\)[^/]' \| \
12675 X"$as_dir" : 'X\(//\)$' \| \
12676 X"$as_dir" : 'X\(/\)' \| \
12677 . : '\(.\)' 2>/dev/null ||
12678 echo X"$as_dir" |
12679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12681 /^X\(\/\/\)$/{ s//\1/; q; }
12682 /^X\(\/\).*/{ s//\1/; q; }
12683 s/.*/./; q'`
12684 done
12685 test ! -n "$as_dirs" || mkdir $as_dirs
12686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12687 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12688 { (exit 1); exit 1; }; }; }
12689
12690 ac_builddir=.
12691
12692 if test "$ac_dir" != .; then
12693 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12694 # A "../" for each directory in $ac_dir_suffix.
12695 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12696 else
12697 ac_dir_suffix= ac_top_builddir=
12698 fi
12699
12700 case $srcdir in
12701 .) # No --srcdir option. We are building in place.
12702 ac_srcdir=.
12703 if test -z "$ac_top_builddir"; then
12704 ac_top_srcdir=.
12705 else
12706 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12707 fi ;;
12708 [\\/]* | ?:[\\/]* ) # Absolute path.
12709 ac_srcdir=$srcdir$ac_dir_suffix;
12710 ac_top_srcdir=$srcdir ;;
12711 *) # Relative path.
12712 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12713 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12714 esac
12715 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12716 # absolute.
12717 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12718 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12719 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12720 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12721
12722
12723
12724 if test x"$ac_file" != x-; then
12725 { echo "$as_me:$LINENO: creating $ac_file" >&5
12726 echo "$as_me: creating $ac_file" >&6;}
12727 rm -f "$ac_file"
12728 fi
12729 # Let's still pretend it is `configure' which instantiates (i.e., don't
12730 # use $as_me), people would be surprised to read:
12731 # /* config.h. Generated by config.status. */
12732 if test x"$ac_file" = x-; then
12733 configure_input=
12734 else
12735 configure_input="$ac_file. "
12736 fi
12737 configure_input=$configure_input"Generated from `echo $ac_file_in |
12738 sed 's,.*/,,'` by configure."
12739
12740 # First look for the input files in the build tree, otherwise in the
12741 # src tree.
12742 ac_file_inputs=`IFS=:
12743 for f in $ac_file_in; do
12744 case $f in
12745 -) echo $tmp/stdin ;;
12746 [\\/$]*)
12747 # Absolute (can't be DOS-style, as IFS=:)
12748 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12749 echo "$as_me: error: cannot find input file: $f" >&2;}
12750 { (exit 1); exit 1; }; }
12751 echo $f;;
12752 *) # Relative
12753 if test -f "$f"; then
12754 # Build tree
12755 echo $f
12756 elif test -f "$srcdir/$f"; then
12757 # Source tree
12758 echo $srcdir/$f
12759 else
12760 # /dev/null tree
12761 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12762 echo "$as_me: error: cannot find input file: $f" >&2;}
12763 { (exit 1); exit 1; }; }
12764 fi;;
12765 esac
12766 done` || { (exit 1); exit 1; }
12767 _ACEOF
12768 cat >>$CONFIG_STATUS <<_ACEOF
12769 sed "$ac_vpsub
12770 $extrasub
12771 _ACEOF
12772 cat >>$CONFIG_STATUS <<\_ACEOF
12773 :t
12774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12775 s,@configure_input@,$configure_input,;t t
12776 s,@srcdir@,$ac_srcdir,;t t
12777 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12778 s,@top_srcdir@,$ac_top_srcdir,;t t
12779 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12780 s,@builddir@,$ac_builddir,;t t
12781 s,@abs_builddir@,$ac_abs_builddir,;t t
12782 s,@top_builddir@,$ac_top_builddir,;t t
12783 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12784 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12785 rm -f $tmp/stdin
12786 if test x"$ac_file" != x-; then
12787 mv $tmp/out $ac_file
12788 else
12789 cat $tmp/out
12790 rm -f $tmp/out
12791 fi
12792
12793 done
12794 _ACEOF
12795 cat >>$CONFIG_STATUS <<\_ACEOF
12796
12797 #
12798 # CONFIG_HEADER section.
12799 #
12800
12801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12803 #
12804 # ac_d sets the value in "#define NAME VALUE" lines.
12805 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12806 ac_dB='[ ].*$,\1#\2'
12807 ac_dC=' '
12808 ac_dD=',;t'
12809 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12810 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12811 ac_uB='$,\1#\2define\3'
12812 ac_uC=' '
12813 ac_uD=',;t'
12814
12815 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12817 case $ac_file in
12818 - | *:- | *:-:* ) # input from stdin
12819 cat >$tmp/stdin
12820 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12821 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12822 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12823 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12824 * ) ac_file_in=$ac_file.in ;;
12825 esac
12826
12827 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12828 echo "$as_me: creating $ac_file" >&6;}
12829
12830 # First look for the input files in the build tree, otherwise in the
12831 # src tree.
12832 ac_file_inputs=`IFS=:
12833 for f in $ac_file_in; do
12834 case $f in
12835 -) echo $tmp/stdin ;;
12836 [\\/$]*)
12837 # Absolute (can't be DOS-style, as IFS=:)
12838 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12839 echo "$as_me: error: cannot find input file: $f" >&2;}
12840 { (exit 1); exit 1; }; }
12841 echo $f;;
12842 *) # Relative
12843 if test -f "$f"; then
12844 # Build tree
12845 echo $f
12846 elif test -f "$srcdir/$f"; then
12847 # Source tree
12848 echo $srcdir/$f
12849 else
12850 # /dev/null tree
12851 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12852 echo "$as_me: error: cannot find input file: $f" >&2;}
12853 { (exit 1); exit 1; }; }
12854 fi;;
12855 esac
12856 done` || { (exit 1); exit 1; }
12857 # Remove the trailing spaces.
12858 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12859
12860 _ACEOF
12861
12862 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12863 # `conftest.undefs', that substitutes the proper values into
12864 # config.h.in to produce config.h. The first handles `#define'
12865 # templates, and the second `#undef' templates.
12866 # And first: Protect against being on the right side of a sed subst in
12867 # config.status. Protect against being in an unquoted here document
12868 # in config.status.
12869 rm -f conftest.defines conftest.undefs
12870 # Using a here document instead of a string reduces the quoting nightmare.
12871 # Putting comments in sed scripts is not portable.
12872 #
12873 # `end' is used to avoid that the second main sed command (meant for
12874 # 0-ary CPP macros) applies to n-ary macro definitions.
12875 # See the Autoconf documentation for `clear'.
12876 cat >confdef2sed.sed <<\_ACEOF
12877 s/[\\&,]/\\&/g
12878 s,[\\$`],\\&,g
12879 t clear
12880 : clear
12881 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12882 t end
12883 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12884 : end
12885 _ACEOF
12886 # If some macros were called several times there might be several times
12887 # the same #defines, which is useless. Nevertheless, we may not want to
12888 # sort them, since we want the *last* AC-DEFINE to be honored.
12889 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12890 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12891 rm -f confdef2sed.sed
12892
12893 # This sed command replaces #undef with comments. This is necessary, for
12894 # example, in the case of _POSIX_SOURCE, which is predefined and required
12895 # on some systems where configure will not decide to define it.
12896 cat >>conftest.undefs <<\_ACEOF
12897 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12898 _ACEOF
12899
12900 # Break up conftest.defines because some shells have a limit on the size
12901 # of here documents, and old seds have small limits too (100 cmds).
12902 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12903 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12904 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12905 echo ' :' >>$CONFIG_STATUS
12906 rm -f conftest.tail
12907 while grep . conftest.defines >/dev/null
12908 do
12909 # Write a limited-size here document to $tmp/defines.sed.
12910 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12911 # Speed up: don't consider the non `#define' lines.
12912 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12913 # Work around the forget-to-reset-the-flag bug.
12914 echo 't clr' >>$CONFIG_STATUS
12915 echo ': clr' >>$CONFIG_STATUS
12916 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12917 echo 'CEOF
12918 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12919 rm -f $tmp/in
12920 mv $tmp/out $tmp/in
12921 ' >>$CONFIG_STATUS
12922 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12923 rm -f conftest.defines
12924 mv conftest.tail conftest.defines
12925 done
12926 rm -f conftest.defines
12927 echo ' fi # grep' >>$CONFIG_STATUS
12928 echo >>$CONFIG_STATUS
12929
12930 # Break up conftest.undefs because some shells have a limit on the size
12931 # of here documents, and old seds have small limits too (100 cmds).
12932 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12933 rm -f conftest.tail
12934 while grep . conftest.undefs >/dev/null
12935 do
12936 # Write a limited-size here document to $tmp/undefs.sed.
12937 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12938 # Speed up: don't consider the non `#undef'
12939 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12940 # Work around the forget-to-reset-the-flag bug.
12941 echo 't clr' >>$CONFIG_STATUS
12942 echo ': clr' >>$CONFIG_STATUS
12943 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12944 echo 'CEOF
12945 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12946 rm -f $tmp/in
12947 mv $tmp/out $tmp/in
12948 ' >>$CONFIG_STATUS
12949 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12950 rm -f conftest.undefs
12951 mv conftest.tail conftest.undefs
12952 done
12953 rm -f conftest.undefs
12954
12955 cat >>$CONFIG_STATUS <<\_ACEOF
12956 # Let's still pretend it is `configure' which instantiates (i.e., don't
12957 # use $as_me), people would be surprised to read:
12958 # /* config.h. Generated by config.status. */
12959 if test x"$ac_file" = x-; then
12960 echo "/* Generated by configure. */" >$tmp/config.h
12961 else
12962 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12963 fi
12964 cat $tmp/in >>$tmp/config.h
12965 rm -f $tmp/in
12966 if test x"$ac_file" != x-; then
12967 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12968 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12969 echo "$as_me: $ac_file is unchanged" >&6;}
12970 else
12971 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12972 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12973 X"$ac_file" : 'X\(//\)[^/]' \| \
12974 X"$ac_file" : 'X\(//\)$' \| \
12975 X"$ac_file" : 'X\(/\)' \| \
12976 . : '\(.\)' 2>/dev/null ||
12977 echo X"$ac_file" |
12978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12980 /^X\(\/\/\)$/{ s//\1/; q; }
12981 /^X\(\/\).*/{ s//\1/; q; }
12982 s/.*/./; q'`
12983 { if $as_mkdir_p; then
12984 mkdir -p "$ac_dir"
12985 else
12986 as_dir="$ac_dir"
12987 as_dirs=
12988 while test ! -d "$as_dir"; do
12989 as_dirs="$as_dir $as_dirs"
12990 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992 X"$as_dir" : 'X\(//\)[^/]' \| \
12993 X"$as_dir" : 'X\(//\)$' \| \
12994 X"$as_dir" : 'X\(/\)' \| \
12995 . : '\(.\)' 2>/dev/null ||
12996 echo X"$as_dir" |
12997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12998 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12999 /^X\(\/\/\)$/{ s//\1/; q; }
13000 /^X\(\/\).*/{ s//\1/; q; }
13001 s/.*/./; q'`
13002 done
13003 test ! -n "$as_dirs" || mkdir $as_dirs
13004 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13006 { (exit 1); exit 1; }; }; }
13007
13008 rm -f $ac_file
13009 mv $tmp/config.h $ac_file
13010 fi
13011 else
13012 cat $tmp/config.h
13013 rm -f $tmp/config.h
13014 fi
13015 done
13016 _ACEOF
13017 cat >>$CONFIG_STATUS <<\_ACEOF
13018
13019 #
13020 # CONFIG_COMMANDS section.
13021 #
13022 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13023 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13024 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13025 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13026 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13027 X"$ac_dest" : 'X\(//\)[^/]' \| \
13028 X"$ac_dest" : 'X\(//\)$' \| \
13029 X"$ac_dest" : 'X\(/\)' \| \
13030 . : '\(.\)' 2>/dev/null ||
13031 echo X"$ac_dest" |
13032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13034 /^X\(\/\/\)$/{ s//\1/; q; }
13035 /^X\(\/\).*/{ s//\1/; q; }
13036 s/.*/./; q'`
13037 ac_builddir=.
13038
13039 if test "$ac_dir" != .; then
13040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13041 # A "../" for each directory in $ac_dir_suffix.
13042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13043 else
13044 ac_dir_suffix= ac_top_builddir=
13045 fi
13046
13047 case $srcdir in
13048 .) # No --srcdir option. We are building in place.
13049 ac_srcdir=.
13050 if test -z "$ac_top_builddir"; then
13051 ac_top_srcdir=.
13052 else
13053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13054 fi ;;
13055 [\\/]* | ?:[\\/]* ) # Absolute path.
13056 ac_srcdir=$srcdir$ac_dir_suffix;
13057 ac_top_srcdir=$srcdir ;;
13058 *) # Relative path.
13059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13061 esac
13062 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
13063 # absolute.
13064 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
13065 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
13066 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
13067 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
13068
13069
13070 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13071 echo "$as_me: executing $ac_dest commands" >&6;}
13072 case $ac_dest in
13073 default )
13074 case ${CONFIG_HEADERS} in
13075 *auto-host.h:config.in*)
13076 echo > cstamp-h ;;
13077 esac
13078 # Make sure all the subdirs exist.
13079 for d in $subdirs
13080 do
13081 test -d $d || mkdir $d
13082 done
13083 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13084 # bootstrapping and the installation procedure can still use
13085 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13086 # FLAGS_TO_PASS has been modified to solve the problem there.
13087 # This is virtually a duplicate of what happens in configure.lang; we do
13088 # an extra check to make sure this only happens if ln -s can be used.
13089 if test "$symbolic_link" = "ln -s"; then
13090 for d in ${subdirs} fixinc ; do
13091 STARTDIR=`${PWDCMD-pwd}`
13092 cd $d
13093 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13094 do
13095 rm -f $t
13096 $symbolic_link ../$t $t 2>/dev/null
13097 done
13098 cd $STARTDIR
13099 done
13100 else true ; fi
13101 ;;
13102 esac
13103 done
13104 _ACEOF
13105
13106 cat >>$CONFIG_STATUS <<\_ACEOF
13107
13108 { (exit 0); exit 0; }
13109 _ACEOF
13110 chmod +x $CONFIG_STATUS
13111 ac_clean_files=$ac_clean_files_save
13112
13113
13114 # configure is writing to config.log, and then calls config.status.
13115 # config.status does its own redirection, appending to config.log.
13116 # Unfortunately, on DOS this fails, as config.log is still kept open
13117 # by configure, so config.status won't be able to write to it; its
13118 # output is simply discarded. So we exec the FD to /dev/null,
13119 # effectively closing config.log, so it can be properly (re)opened and
13120 # appended to by config.status. When coming back to configure, we
13121 # need to make the FD available again.
13122 if test "$no_create" != yes; then
13123 ac_cs_success=:
13124 ac_config_status_args=
13125 test "$silent" = yes &&
13126 ac_config_status_args="$ac_config_status_args --quiet"
13127 exec 5>/dev/null
13128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13129 exec 5>>config.log
13130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13131 # would make configure fail if this is the last instruction.
13132 $ac_cs_success || { (exit 1); exit 1; }
13133 fi
13134