]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
Merge from rewrite branch.
[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_canonical host_canonical target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP GNATBIND ac_ct_GNATBIND ADAC strict1_warn warn_cflags WERROR nocommon_flag valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES make_compare_target FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV manext objext extra_modes_file FORBUILD PACKAGE VERSION ALLOCA GLIBC21 USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT INTLLIBS INTLDEPS INTLOBJS POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 BUILD_CC BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags 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_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_file build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir dep_host_xmake_file dep_tmake_file 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_extra_gcc_objs host_xm_file_list host_xm_file host_xm_defines out_host_hook_obj install lang_options_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_file tm_defines tm_p_file_list tm_p_file xm_file xm_defines c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files='target_overrides host_overrides language_fragments 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-werror enable -Werror in bootstrap stage2 and later
853 --enable-checking=LIST
854 enable expensive run-time checks. With LIST,
855 enable only specific categories of checks.
856 Categories are: misc,tree,rtl,rtlflag,gc,gcac;
857 default is misc,tree,gc,rtlflag
858 --enable-coverage=LEVEL
859 enable compiler\'s code coverage collection.
860 Use to measure compiler performance and locate
861 unused parts of the compiler. With LEVEL, specify
862 optimization. Values are opt, noopt,
863 default is noopt
864 --enable-multilib enable library support for multiple ABIs
865 --enable-__cxa_atexit enable __cxa_atexit for C++
866 --enable-c-mbchar enable multibyte characters for C and C++
867 --enable-threads enable thread usage for target GCC
868 --enable-threads=LIB use LIB thread package for target GCC
869 --enable-objc-gc enable the use of Boehm's garbage collector with
870 the GNU Objective-C runtime
871 --disable-shared don't provide a shared libgcc
872 --enable-initfini-array use .init_array/.fini_array sections
873 --enable-sjlj-exceptions
874 arrange to use setjmp/longjmp exception handling
875 --enable-libunwind-exceptions force use libunwind for exceptions
876 --enable-nls use Native Language Support (default)
877 --disable-nls do not use Native Language Support
878 --disable-win32-registry
879 disable lookup of installation paths in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup (default)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
884 of the registry key
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed in a compiler-specific directory
891
892 Optional Packages:
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-local-prefix=DIR specifies directory to put local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor in DIR
900 (relative to PREFIX) as well as PREFIX/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld (full pathname)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as (full pathname)
905 --with-stabs arrange to use stabs instead of host debug format
906 --with-elf arrange to use ELF instead of host debug format
907 --with-dwarf2 force the default debug format to be DWARF 2
908 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
909 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
910 --with-included-gettext use the GNU gettext library included here
911 --with-gc={simple,page} choose the garbage collection mechanism to use
912 with the compiler
913 --with-system-zlib use installed libz
914 --with-slibdir=DIR shared libraries in DIR LIBDIR
915
916 Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CPP C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 _ACEOF
929 fi
930
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
933 ac_popdir=`pwd`
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
936 ac_builddir=.
937
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 else
943 ac_dir_suffix= ac_top_builddir=
944 fi
945
946 case $srcdir in
947 .) # No --srcdir option. We are building in place.
948 ac_srcdir=.
949 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=.
951 else
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953 fi ;;
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
957 *) # Relative path.
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 esac
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 # absolute.
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd $ac_popdir
984 done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989 cat <<\_ACEOF
990
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57. Invocation command line was
1005
1006 $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066 for ac_arg
1067 do
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 2)
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1091 ;;
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1094 fi
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1098 ;;
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1112 {
1113 echo
1114
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1122 {
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129 ;;
1130 *)
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133 ;;
1134 esac;
1135 }
1136 echo
1137
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1145 do
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1150
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164 fi
1165
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1175 fi
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core core.* *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1183 ' 0
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1236 fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1249 fi
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1275 *)
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1297 fi
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1332
1333
1334 # Determine the host, build, and target systems
1335 ac_aux_dir=
1336 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337 if test -f $ac_dir/install-sh; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 break
1341 elif test -f $ac_dir/install.sh; then
1342 ac_aux_dir=$ac_dir
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 break
1345 elif test -f $ac_dir/shtool; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 break
1349 fi
1350 done
1351 if test -z "$ac_aux_dir"; then
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354 { (exit 1); exit 1; }; }
1355 fi
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359
1360 # Make sure we can run config.sub.
1361 $ac_config_sub sun4 >/dev/null 2>&1 ||
1362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1363 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1365
1366 echo "$as_me:$LINENO: checking build system type" >&5
1367 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368 if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 ac_cv_build_alias=$build_alias
1372 test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374 test -z "$ac_cv_build_alias" &&
1375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1381 { (exit 1); exit 1; }; }
1382
1383 fi
1384 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1385 echo "${ECHO_T}$ac_cv_build" >&6
1386 build=$ac_cv_build
1387 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390
1391
1392 echo "$as_me:$LINENO: checking host system type" >&5
1393 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394 if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397 ac_cv_host_alias=$host_alias
1398 test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1404
1405 fi
1406 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1407 echo "${ECHO_T}$ac_cv_host" >&6
1408 host=$ac_cv_host
1409 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
1413
1414 echo "$as_me:$LINENO: checking target system type" >&5
1415 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1416 if test "${ac_cv_target+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1418 else
1419 ac_cv_target_alias=$target_alias
1420 test "x$ac_cv_target_alias" = "x" &&
1421 ac_cv_target_alias=$ac_cv_host_alias
1422 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1426
1427 fi
1428 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1429 echo "${ECHO_T}$ac_cv_target" >&6
1430 target=$ac_cv_target
1431 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1432 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1433 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434
1435
1436 # The aliases save the names the user supplied, while $host etc.
1437 # will get canonicalized.
1438 test -n "$target_alias" &&
1439 test "$program_prefix$program_suffix$program_transform_name" = \
1440 NONENONEs,x,x, &&
1441 program_prefix=${target_alias}-
1442
1443 # Define variables host_canonical and build_canonical
1444 build_canonical=${build}
1445 host_canonical=${host}
1446
1447
1448
1449 target_subdir=
1450 if test "${host}" != "${target}" ; then
1451 target_subdir=${target_alias}/
1452 fi
1453
1454
1455 # Set program_transform_name
1456 test "$program_prefix" != NONE &&
1457 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1458 # Use a double $ so make ignores it.
1459 test "$program_suffix" != NONE &&
1460 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1461 # Double any \ or $. echo might interpret backslashes.
1462 # By default was `s,x,x', remove it if useless.
1463 cat <<\_ACEOF >conftest.sed
1464 s/[\\$]/&&/g;s/;s,x,x,$//
1465 _ACEOF
1466 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1467 rm conftest.sed
1468
1469
1470 # Check for bogus environment variables.
1471 # Test if LIBRARY_PATH contains the notation for the current directory
1472 # since this would lead to problems installing/building glibc.
1473 # LIBRARY_PATH contains the current directory if one of the following
1474 # is true:
1475 # - one of the terminals (":" and ";") is the first or last sign
1476 # - two terminals occur directly after each other
1477 # - the path contains an element with a dot in it
1478 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1479 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1480 case ${LIBRARY_PATH} in
1481 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1482 library_path_setting="contains current directory"
1483 ;;
1484 *)
1485 library_path_setting="ok"
1486 ;;
1487 esac
1488 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1489 echo "${ECHO_T}$library_path_setting" >&6
1490 if test "$library_path_setting" != "ok"; then
1491 { { echo "$as_me:$LINENO: error:
1492 *** LIBRARY_PATH shouldn't contain the current directory when
1493 *** building gcc. Please change the environment variable
1494 *** and run configure again." >&5
1495 echo "$as_me: error:
1496 *** LIBRARY_PATH shouldn't contain the current directory when
1497 *** building gcc. Please change the environment variable
1498 *** and run configure again." >&2;}
1499 { (exit 1); exit 1; }; }
1500 fi
1501
1502 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1503 # since this would lead to problems installing/building glibc.
1504 # GCC_EXEC_PREFIX contains the current directory if one of the following
1505 # is true:
1506 # - one of the terminals (":" and ";") is the first or last sign
1507 # - two terminals occur directly after each other
1508 # - the path contains an element with a dot in it
1509 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1510 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1511 case ${GCC_EXEC_PREFIX} in
1512 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1513 gcc_exec_prefix_setting="contains current directory"
1514 ;;
1515 *)
1516 gcc_exec_prefix_setting="ok"
1517 ;;
1518 esac
1519 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1520 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1521 if test "$gcc_exec_prefix_setting" != "ok"; then
1522 { { echo "$as_me:$LINENO: error:
1523 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1524 *** building gcc. Please change the environment variable
1525 *** and run configure again." >&5
1526 echo "$as_me: error:
1527 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1528 *** building gcc. Please change the environment variable
1529 *** and run configure again." >&2;}
1530 { (exit 1); exit 1; }; }
1531 fi
1532
1533 # -----------
1534 # Directories
1535 # -----------
1536
1537 # Specify the local prefix
1538 local_prefix=
1539
1540 # Check whether --with-local-prefix or --without-local-prefix was given.
1541 if test "${with_local_prefix+set}" = set; then
1542 withval="$with_local_prefix"
1543 case "${withval}" in
1544 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1545 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1546 { (exit 1); exit 1; }; } ;;
1547 no) ;;
1548 *) local_prefix=$with_local_prefix ;;
1549 esac
1550 fi;
1551
1552 # Default local prefix if it is empty
1553 if test x$local_prefix = x; then
1554 local_prefix=/usr/local
1555 fi
1556
1557 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1558 # passed in by the toplevel make and thus we'd get different behavior
1559 # depending on where we built the sources.
1560 gcc_gxx_include_dir=
1561 # Specify the g++ header file directory
1562
1563 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1564 if test "${with_gxx_include_dir+set}" = set; then
1565 withval="$with_gxx_include_dir"
1566 case "${withval}" in
1567 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1568 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1569 { (exit 1); exit 1; }; } ;;
1570 no) ;;
1571 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1572 esac
1573 fi;
1574
1575 if test x${gcc_gxx_include_dir} = x; then
1576 if test x${enable_version_specific_runtime_libs} = xyes; then
1577 gcc_gxx_include_dir='${libsubdir}/include/c++'
1578 else
1579 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1580 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1581 fi
1582 fi
1583
1584
1585 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1586 if test "${with_cpp_install_dir+set}" = set; then
1587 withval="$with_cpp_install_dir"
1588 if test x$withval = xyes; then
1589 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1590 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1591 { (exit 1); exit 1; }; }
1592 elif test x$withval != xno; then
1593 cpp_install_dir=$withval
1594 fi
1595 fi;
1596
1597 # -------------------
1598 # Find default linker
1599 # -------------------
1600
1601 # With GNU ld
1602
1603 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1604 if test "${with_gnu_ld+set}" = set; then
1605 withval="$with_gnu_ld"
1606 gnu_ld_flag="$with_gnu_ld"
1607 else
1608 gnu_ld_flag=no
1609 fi;
1610
1611 # With pre-defined ld
1612
1613 # Check whether --with-ld or --without-ld was given.
1614 if test "${with_ld+set}" = set; then
1615 withval="$with_ld"
1616 DEFAULT_LINKER="$with_ld"
1617 fi;
1618 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1619 if test ! -x "$DEFAULT_LINKER"; then
1620 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1621 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1622 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1623 gnu_ld_flag=yes
1624 fi
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1628 _ACEOF
1629
1630 fi
1631
1632 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1633 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1634 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1635 if test x"$gnu_ld_flag" = x"no"; then
1636 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1637 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1638 else
1639 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1640 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1641 fi
1642 else
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 # ----------------------
1648 # Find default assembler
1649 # ----------------------
1650
1651 # With GNU as
1652
1653 # Check whether --with-gnu-as or --without-gnu-as was given.
1654 if test "${with_gnu_as+set}" = set; then
1655 withval="$with_gnu_as"
1656 gas_flag="$with_gnu_as"
1657 else
1658 gas_flag=no
1659 fi;
1660
1661
1662 # Check whether --with-as or --without-as was given.
1663 if test "${with_as+set}" = set; then
1664 withval="$with_as"
1665 DEFAULT_ASSEMBLER="$with_as"
1666 fi;
1667 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1668 if test ! -x "$DEFAULT_ASSEMBLER"; then
1669 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1670 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1671 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1672 gas_flag=yes
1673 fi
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1677 _ACEOF
1678
1679 fi
1680
1681 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1682 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1683 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1684 if test x"$gas_flag" = x"no"; then
1685 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1686 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1687 else
1688 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1689 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1690 fi
1691 else
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 # ---------------
1697 # Find C compiler
1698 # ---------------
1699
1700 # Find the native compiler
1701 ac_ext=c
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1706 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720 IFS=$as_save_IFS
1721 test -z "$as_dir" && as_dir=.
1722 for ac_exec_ext in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726 break 2
1727 fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 CC=$ac_cv_prog_CC
1734 if test -n "$CC"; then
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1737 else
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742 fi
1743 if test -z "$ac_cv_prog_CC"; then
1744 ac_ct_CC=$CC
1745 # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752 if test -n "$ac_ct_CC"; then
1753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 for ac_exec_ext in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_ac_ct_CC="gcc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 break 2
1765 fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1772 if test -n "$ac_ct_CC"; then
1773 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1774 echo "${ECHO_T}$ac_ct_CC" >&6
1775 else
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780 CC=$ac_ct_CC
1781 else
1782 CC="$ac_cv_prog_CC"
1783 fi
1784
1785 if test -z "$CC"; then
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1788 set dummy ${ac_tool_prefix}cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_CC="${ac_tool_prefix}cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1807 fi
1808 done
1809 done
1810
1811 fi
1812 fi
1813 CC=$ac_cv_prog_CC
1814 if test -n "$CC"; then
1815 echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1817 else
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822 fi
1823 if test -z "$ac_cv_prog_CC"; then
1824 ac_ct_CC=$CC
1825 # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc; ac_word=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 else
1832 if test -n "$ac_ct_CC"; then
1833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1834 else
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1837 do
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_ac_ct_CC="cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 break 2
1845 fi
1846 done
1847 done
1848
1849 fi
1850 fi
1851 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6
1855 else
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1858 fi
1859
1860 CC=$ac_ct_CC
1861 else
1862 CC="$ac_cv_prog_CC"
1863 fi
1864
1865 fi
1866 if test -z "$CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc; ac_word=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else
1877 ac_prog_rejected=no
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1886 ac_prog_rejected=yes
1887 continue
1888 fi
1889 ac_cv_prog_CC="cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 break 2
1892 fi
1893 done
1894 done
1895
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy $ac_cv_prog_CC
1899 shift
1900 if test $# != 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1904 shift
1905 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1906 fi
1907 fi
1908 fi
1909 fi
1910 CC=$ac_cv_prog_CC
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1914 else
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919 fi
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1922 for ac_prog in cl
1923 do
1924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935 for as_dir in $PATH
1936 do
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1944 fi
1945 done
1946 done
1947
1948 fi
1949 fi
1950 CC=$ac_cv_prog_CC
1951 if test -n "$CC"; then
1952 echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1954 else
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959 test -n "$CC" && break
1960 done
1961 fi
1962 if test -z "$CC"; then
1963 ac_ct_CC=$CC
1964 for ac_prog in cl
1965 do
1966 # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy $ac_prog; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test -n "$ac_ct_CC"; then
1974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_CC="$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987 done
1988 done
1989
1990 fi
1991 fi
1992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1993 if test -n "$ac_ct_CC"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995 echo "${ECHO_T}$ac_ct_CC" >&6
1996 else
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
1999 fi
2000
2001 test -n "$ac_ct_CC" && break
2002 done
2003
2004 CC=$ac_ct_CC
2005 fi
2006
2007 fi
2008
2009
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2015
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO:" \
2018 "checking for C compiler version" >&5
2019 ac_compiler=`set X $ac_compile; echo $2`
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021 (eval $ac_compiler --version </dev/null >&5) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026 (eval $ac_compiler -v </dev/null >&5) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031 (eval $ac_compiler -V </dev/null >&5) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2035
2036 cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2038 /* confdefs.h. */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2043
2044 int
2045 main ()
2046 {
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 ac_clean_files_save=$ac_clean_files
2053 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2056 # of exeext.
2057 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2058 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2059 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2067 # resort.
2068
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2071 ac_cv_exeext=
2072 # b.out is created by i960 compilers.
2073 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2074 do
2075 test -f "$ac_file" || continue
2076 case $ac_file in
2077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2078 ;;
2079 conftest.$ac_ext )
2080 # This is the source file.
2081 ;;
2082 [ab].out )
2083 # We found the default executable, but exeext='' is most
2084 # certainly right.
2085 break;;
2086 *.* )
2087 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2091 export ac_cv_exeext
2092 break;;
2093 * )
2094 break;;
2095 esac
2096 done
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105 { (exit 77); exit 77; }; }
2106 fi
2107
2108 ac_exeext=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2111
2112 # Check the compiler produces executables we can run. If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119 if { ac_try='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2121 (eval $ac_try) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 cross_compiling=no
2126 else
2127 if test "$cross_compiling" = maybe; then
2128 cross_compiling=yes
2129 else
2130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2137 fi
2138 fi
2139 fi
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2142
2143 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2144 ac_clean_files=$ac_clean_files_save
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2151
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2162 # `rm'.
2163 for ac_file in conftest.exe conftest conftest.*; do
2164 test -f "$ac_file" || continue
2165 case $ac_file in
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2167 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168 export ac_cv_exeext
2169 break;;
2170 * ) break;;
2171 esac
2172 done
2173 else
2174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2179 fi
2180
2181 rm -f conftest$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2184
2185 rm -f conftest.$ac_ext
2186 EXEEXT=$ac_cv_exeext
2187 ac_exeext=$EXEEXT
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2195 /* confdefs.h. */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2200
2201 int
2202 main ()
2203 {
2204
2205 ;
2206 return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.o conftest.obj
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2216 case $ac_file in
2217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219 break;;
2220 esac
2221 done
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232
2233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 fi
2235 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236 echo "${ECHO_T}$ac_cv_objext" >&6
2237 OBJEXT=$ac_cv_objext
2238 ac_objext=$OBJEXT
2239 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2241 if test "${ac_cv_c_compiler_gnu+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 #ifndef __GNUC__
2256 choke me
2257 #endif
2258
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 rm -f conftest.$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 ac_compiler_gnu=yes
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_compiler_gnu=no
2281 fi
2282 rm -f conftest.$ac_objext conftest.$ac_ext
2283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2284
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2288 GCC=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CFLAGS=${CFLAGS+set}
2290 ac_save_CFLAGS=$CFLAGS
2291 CFLAGS="-g"
2292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2294 if test "${ac_cv_prog_cc_g+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2299 /* confdefs.h. */
2300 _ACEOF
2301 cat confdefs.h >>conftest.$ac_ext
2302 cat >>conftest.$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2304
2305 int
2306 main ()
2307 {
2308
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2325 ac_cv_prog_cc_g=yes
2326 else
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_cv_prog_cc_g=no
2331 fi
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336 if test "$ac_test_CFLAGS" = set; then
2337 CFLAGS=$ac_save_CFLAGS
2338 elif test $ac_cv_prog_cc_g = yes; then
2339 if test "$GCC" = yes; then
2340 CFLAGS="-g -O2"
2341 else
2342 CFLAGS="-g"
2343 fi
2344 else
2345 if test "$GCC" = yes; then
2346 CFLAGS="-O2"
2347 else
2348 CFLAGS=
2349 fi
2350 fi
2351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 ac_cv_prog_cc_stdc=no
2357 ac_save_CC=$CC
2358 cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2365 #include <stdarg.h>
2366 #include <stdio.h>
2367 #include <sys/types.h>
2368 #include <sys/stat.h>
2369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370 struct buf { int x; };
2371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 static char *e (p, i)
2373 char **p;
2374 int i;
2375 {
2376 return p[i];
2377 }
2378 static char *f (char * (*g) (char **, int), char **p, ...)
2379 {
2380 char *s;
2381 va_list v;
2382 va_start (v,p);
2383 s = g (p, va_arg (v,int));
2384 va_end (v);
2385 return s;
2386 }
2387 int test (int i, double x);
2388 struct s1 {int (*f) (int a);};
2389 struct s2 {int (*f) (double a);};
2390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2391 int argc;
2392 char **argv;
2393 int
2394 main ()
2395 {
2396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2397 ;
2398 return 0;
2399 }
2400 _ACEOF
2401 # Don't try gcc -ansi; that turns off useful extensions and
2402 # breaks some systems' header files.
2403 # AIX -qlanglvl=ansi
2404 # Ultrix and OSF/1 -std1
2405 # HP-UX 10.20 and later -Ae
2406 # HP-UX older versions -Aa -D_HPUX_SOURCE
2407 # SVR4 -Xc -D__EXTENSIONS__
2408 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2409 do
2410 CC="$ac_save_CC $ac_arg"
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_stdc=$ac_arg
2424 break
2425 else
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 fi
2430 rm -f conftest.$ac_objext
2431 done
2432 rm -f conftest.$ac_ext conftest.$ac_objext
2433 CC=$ac_save_CC
2434
2435 fi
2436
2437 case "x$ac_cv_prog_cc_stdc" in
2438 x|xno)
2439 echo "$as_me:$LINENO: result: none needed" >&5
2440 echo "${ECHO_T}none needed" >&6 ;;
2441 *)
2442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2443 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2444 CC="$CC $ac_cv_prog_cc_stdc" ;;
2445 esac
2446
2447 # Some people use a C++ compiler to compile C. Since we use `exit',
2448 # in C++ we need to declare it. In case someone uses the same compiler
2449 # for both compiling C and C++ we need to have the C++ compiler decide
2450 # the declaration of exit, since it's the most demanding environment.
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #ifndef __cplusplus
2453 choke me
2454 #endif
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 for ac_declaration in \
2469 ''\
2470 '#include <stdlib.h>' \
2471 'extern "C" void std::exit (int) throw (); using std::exit;' \
2472 'extern "C" void std::exit (int); using std::exit;' \
2473 'extern "C" void exit (int) throw ();' \
2474 'extern "C" void exit (int);' \
2475 'void exit (int);'
2476 do
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #include <stdlib.h>
2485 $ac_declaration
2486 int
2487 main ()
2488 {
2489 exit (42);
2490 ;
2491 return 0;
2492 }
2493 _ACEOF
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2497 ac_status=$?
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 (eval $ac_try) 2>&5
2503 ac_status=$?
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 :
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 continue
2512 fi
2513 rm -f conftest.$ac_objext conftest.$ac_ext
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 $ac_declaration
2522 int
2523 main ()
2524 {
2525 exit (42);
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 break
2543 else
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 fi
2548 rm -f conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2555 fi
2556
2557 else
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 fi
2562 rm -f conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569 if test "x$CC" != xcc; then
2570 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2571 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2572 else
2573 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2574 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2575 fi
2576 set dummy $CC; ac_cc=`echo $2 |
2577 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2578 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 /* confdefs.h. */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2588
2589 int
2590 main ()
2591 {
2592
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 # Make sure it works both with $CC and with simple cc.
2598 # We do the test twice because some compilers refuse to overwrite an
2599 # existing .o file with -o, though they will create one.
2600 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2601 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); };
2611 then
2612 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2613 if test "x$CC" != xcc; then
2614 # Test first that cc exists at all.
2615 if { ac_try='cc -c conftest.$ac_ext >&5'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2622 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); };
2632 then
2633 # cc works too.
2634 :
2635 else
2636 # cc exists but doesn't like -o.
2637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2638 fi
2639 fi
2640 fi
2641 else
2642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2643 fi
2644 rm -f conftest*
2645
2646 fi
2647 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2648 echo "$as_me:$LINENO: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2650 else
2651 echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2653
2654 cat >>confdefs.h <<\_ACEOF
2655 #define NO_MINUS_C_MINUS_O 1
2656 _ACEOF
2657
2658 fi
2659
2660 # autoconf is lame and doesn't give us any substitution variable for this.
2661 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2662 NO_MINUS_C_MINUS_O=yes
2663 else
2664 OUTPUT_OPTION='-o $@'
2665 fi
2666
2667
2668
2669 # -------------------------
2670 # Check C compiler features
2671 # -------------------------
2672
2673
2674 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2675 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2676 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 save_CFLAGS="$CFLAGS"
2680 CFLAGS="-Wno-long-long"
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688
2689 int
2690 main ()
2691 {
2692
2693 ;
2694 return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_cv_prog_cc_no_long_long=yes
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 ac_cv_prog_cc_no_long_long=no
2715 fi
2716 rm -f conftest.$ac_objext conftest.$ac_ext
2717 CFLAGS="$save_CFLAGS"
2718 fi
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2728 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2729 # On Suns, sometimes $CPP names a directory.
2730 if test -n "$CPP" && test -d "$CPP"; then
2731 CPP=
2732 fi
2733 if test -z "$CPP"; then
2734 if test "${ac_cv_prog_CPP+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 # Double quotes because CPP needs to be expanded
2738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2739 do
2740 ac_preproc_ok=false
2741 for ac_c_preproc_warn_flag in '' yes
2742 do
2743 # Use a header file that comes with gcc, so configuring glibc
2744 # with a fresh cross-compiler works.
2745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 # <limits.h> exists even on freestanding compilers.
2747 # On the NeXT, cc -E runs the code through the compiler's parser,
2748 # not just through cpp. "Syntax error" is here to catch this case.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 /* confdefs.h. */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2756 #ifdef __STDC__
2757 # include <limits.h>
2758 #else
2759 # include <assert.h>
2760 #endif
2761 Syntax error
2762 _ACEOF
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_c_preproc_warn_flag
2773 else
2774 ac_cpp_err=
2775 fi
2776 else
2777 ac_cpp_err=yes
2778 fi
2779 if test -z "$ac_cpp_err"; then
2780 :
2781 else
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2784
2785 # Broken: fails on valid input.
2786 continue
2787 fi
2788 rm -f conftest.err conftest.$ac_ext
2789
2790 # OK, works on sane cases. Now check whether non-existent headers
2791 # can be detected and how.
2792 cat >conftest.$ac_ext <<_ACEOF
2793 #line $LINENO "configure"
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <ac_nonexistent.h>
2800 _ACEOF
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev/null; then
2809 if test -s conftest.err; then
2810 ac_cpp_err=$ac_c_preproc_warn_flag
2811 else
2812 ac_cpp_err=
2813 fi
2814 else
2815 ac_cpp_err=yes
2816 fi
2817 if test -z "$ac_cpp_err"; then
2818 # Broken: success on invalid input.
2819 continue
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 # Passes both tests.
2825 ac_preproc_ok=:
2826 break
2827 fi
2828 rm -f conftest.err conftest.$ac_ext
2829
2830 done
2831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2832 rm -f conftest.err conftest.$ac_ext
2833 if $ac_preproc_ok; then
2834 break
2835 fi
2836
2837 done
2838 ac_cv_prog_CPP=$CPP
2839
2840 fi
2841 CPP=$ac_cv_prog_CPP
2842 else
2843 ac_cv_prog_CPP=$CPP
2844 fi
2845 echo "$as_me:$LINENO: result: $CPP" >&5
2846 echo "${ECHO_T}$CPP" >&6
2847 ac_preproc_ok=false
2848 for ac_c_preproc_warn_flag in '' yes
2849 do
2850 # Use a header file that comes with gcc, so configuring glibc
2851 # with a fresh cross-compiler works.
2852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2853 # <limits.h> exists even on freestanding compilers.
2854 # On the NeXT, cc -E runs the code through the compiler's parser,
2855 # not just through cpp. "Syntax error" is here to catch this case.
2856 cat >conftest.$ac_ext <<_ACEOF
2857 #line $LINENO "configure"
2858 /* confdefs.h. */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2863 #ifdef __STDC__
2864 # include <limits.h>
2865 #else
2866 # include <assert.h>
2867 #endif
2868 Syntax error
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2880 else
2881 ac_cpp_err=
2882 fi
2883 else
2884 ac_cpp_err=yes
2885 fi
2886 if test -z "$ac_cpp_err"; then
2887 :
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 # Broken: fails on valid input.
2893 continue
2894 fi
2895 rm -f conftest.err conftest.$ac_ext
2896
2897 # OK, works on sane cases. Now check whether non-existent headers
2898 # can be detected and how.
2899 cat >conftest.$ac_ext <<_ACEOF
2900 #line $LINENO "configure"
2901 /* confdefs.h. */
2902 _ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #include <ac_nonexistent.h>
2907 _ACEOF
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev/null; then
2916 if test -s conftest.err; then
2917 ac_cpp_err=$ac_c_preproc_warn_flag
2918 else
2919 ac_cpp_err=
2920 fi
2921 else
2922 ac_cpp_err=yes
2923 fi
2924 if test -z "$ac_cpp_err"; then
2925 # Broken: success on invalid input.
2926 continue
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 # Passes both tests.
2932 ac_preproc_ok=:
2933 break
2934 fi
2935 rm -f conftest.err conftest.$ac_ext
2936
2937 done
2938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2939 rm -f conftest.err conftest.$ac_ext
2940 if $ac_preproc_ok; then
2941 :
2942 else
2943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950 ac_ext=c
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955
2956 echo "$as_me:$LINENO: checking for inline" >&5
2957 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2958 if test "${ac_cv_c_inline+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 ac_cv_c_inline=no
2962 for ac_kw in inline __inline__ __inline; do
2963 cat >conftest.$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #ifndef __cplusplus
2971 typedef int foo_t;
2972 static $ac_kw foo_t static_foo () {return 0; }
2973 $ac_kw foo_t foo () {return 0; }
2974 #endif
2975
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 (eval $ac_try) 2>&5
2986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_cv_c_inline=$ac_kw; break
2990 else
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 fi
2995 rm -f conftest.$ac_objext conftest.$ac_ext
2996 done
2997
2998 fi
2999 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3000 echo "${ECHO_T}$ac_cv_c_inline" >&6
3001 case $ac_cv_c_inline in
3002 inline | yes) ;;
3003 no)
3004 cat >>confdefs.h <<\_ACEOF
3005 #define inline
3006 _ACEOF
3007 ;;
3008 *) cat >>confdefs.h <<_ACEOF
3009 #define inline $ac_cv_c_inline
3010 _ACEOF
3011 ;;
3012 esac
3013
3014 echo "$as_me:$LINENO: checking for volatile" >&5
3015 echo $ECHO_N "checking for volatile... $ECHO_C" >&6
3016 if test "${gcc_cv_c_volatile+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 cat >conftest.$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3021 /* confdefs.h. */
3022 _ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026
3027 int
3028 main ()
3029 {
3030 volatile int foo;
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 gcc_cv_c_volatile=yes
3048 else
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 gcc_cv_c_volatile=no
3053 fi
3054 rm -f conftest.$ac_objext conftest.$ac_ext
3055 fi
3056 echo "$as_me:$LINENO: result: $gcc_cv_c_volatile" >&5
3057 echo "${ECHO_T}$gcc_cv_c_volatile" >&6
3058 if test $gcc_cv_c_volatile = yes ; then
3059
3060 cat >>confdefs.h <<\_ACEOF
3061 #define HAVE_VOLATILE 1
3062 _ACEOF
3063
3064 fi
3065
3066
3067 echo "$as_me:$LINENO: checking for long double" >&5
3068 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3069 if test "${gcc_cv_c_long_double+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072 if test "$GCC" = yes; then
3073 gcc_cv_c_long_double=yes
3074 else
3075 cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082
3083 int
3084 main ()
3085 {
3086 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3087 long double foo = 0.0;
3088 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3089 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
3090 ;
3091 return 0;
3092 }
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 gcc_cv_c_long_double=yes
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 gcc_cv_c_long_double=no
3112 fi
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3114 fi
3115 fi
3116 echo "$as_me:$LINENO: result: $gcc_cv_c_long_double" >&5
3117 echo "${ECHO_T}$gcc_cv_c_long_double" >&6
3118 if test $gcc_cv_c_long_double = yes; then
3119
3120 cat >>confdefs.h <<\_ACEOF
3121 #define HAVE_LONG_DOUBLE 1
3122 _ACEOF
3123
3124 fi
3125
3126 echo "$as_me:$LINENO: checking for long long int" >&5
3127 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3128 if test "${ac_cv_c_long_long+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 else
3131 cat >conftest.$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138
3139 int
3140 main ()
3141 {
3142 long long int i;
3143 ;
3144 return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_c_long_long=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164 ac_cv_c_long_long=no
3165 fi
3166 rm -f conftest.$ac_objext conftest.$ac_ext
3167 fi
3168 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3169 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3170 if test $ac_cv_c_long_long = yes; then
3171
3172 cat >>confdefs.h <<\_ACEOF
3173 #define HAVE_LONG_LONG 1
3174 _ACEOF
3175
3176 fi
3177 echo "$as_me:$LINENO: checking for __int64" >&5
3178 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3179 if test "${ac_cv_c___int64+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189
3190 int
3191 main ()
3192 {
3193 __int64 i;
3194 ;
3195 return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 ac_cv_c___int64=yes
3211 else
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215 ac_cv_c___int64=no
3216 fi
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3218 fi
3219 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3220 echo "${ECHO_T}$ac_cv_c___int64" >&6
3221 if test $ac_cv_c___int64 = yes; then
3222
3223 cat >>confdefs.h <<\_ACEOF
3224 #define HAVE___INT64 1
3225 _ACEOF
3226
3227 fi
3228
3229 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3230 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3231 if test "${gcc_cv_c__bool+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234 cat >conftest.$ac_ext <<_ACEOF
3235 #line $LINENO "configure"
3236 /* confdefs.h. */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245 _Bool foo;
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 gcc_cv_c__bool=yes
3263 else
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 gcc_cv_c__bool=no
3268 fi
3269 rm -f conftest.$ac_objext conftest.$ac_ext
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3273 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3274 if test $gcc_cv_c__bool = yes; then
3275
3276 cat >>confdefs.h <<\_ACEOF
3277 #define HAVE__BOOL 1
3278 _ACEOF
3279
3280 fi
3281
3282
3283 # sizeof(char) is 1 by definition.
3284 echo "$as_me:$LINENO: checking size of short" >&5
3285 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3286 if test "${ac_cv_sizeof_short+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3292 /* confdefs.h. */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include "confdefs.h"
3298 #include <sys/types.h>
3299
3300
3301 int
3302 main ()
3303 {
3304 switch (0) case 0: case (sizeof (short) == $ac_size):;
3305 ;
3306 return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 (eval $ac_try) 2>&5
3318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_sizeof_short=$ac_size
3322 else
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326 fi
3327 rm -f conftest.$ac_objext conftest.$ac_ext
3328 if test x$ac_cv_sizeof_short != x ; then break; fi
3329 done
3330
3331 fi
3332
3333 if test x$ac_cv_sizeof_short = x ; then
3334 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3335 echo "$as_me: error: cannot determine a size for short" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define SIZEOF_SHORT $ac_cv_sizeof_short
3343 _ACEOF
3344
3345
3346 echo "$as_me:$LINENO: checking size of int" >&5
3347 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_int+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include "confdefs.h"
3360 #include <sys/types.h>
3361
3362
3363 int
3364 main ()
3365 {
3366 switch (0) case 0: case (sizeof (int) == $ac_size):;
3367 ;
3368 return 0;
3369 }
3370 _ACEOF
3371 rm -f conftest.$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_sizeof_int=$ac_size
3384 else
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388 fi
3389 rm -f conftest.$ac_objext conftest.$ac_ext
3390 if test x$ac_cv_sizeof_int != x ; then break; fi
3391 done
3392
3393 fi
3394
3395 if test x$ac_cv_sizeof_int = x ; then
3396 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3397 echo "$as_me: error: cannot determine a size for int" >&2;}
3398 { (exit 1); exit 1; }; }
3399 fi
3400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3401 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3402
3403 cat >>confdefs.h <<_ACEOF
3404 #define SIZEOF_INT $ac_cv_sizeof_int
3405 _ACEOF
3406
3407
3408 echo "$as_me:$LINENO: checking size of long" >&5
3409 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3410 if test "${ac_cv_sizeof_long+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 #line $LINENO "configure"
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include "confdefs.h"
3422 #include <sys/types.h>
3423
3424
3425 int
3426 main ()
3427 {
3428 switch (0) case 0: case (sizeof (long) == $ac_size):;
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_sizeof_long=$ac_size
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 fi
3451 rm -f conftest.$ac_objext conftest.$ac_ext
3452 if test x$ac_cv_sizeof_long != x ; then break; fi
3453 done
3454
3455 fi
3456
3457 if test x$ac_cv_sizeof_long = x ; then
3458 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3459 echo "$as_me: error: cannot determine a size for long" >&2;}
3460 { (exit 1); exit 1; }; }
3461 fi
3462 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3463 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3464
3465 cat >>confdefs.h <<_ACEOF
3466 #define SIZEOF_LONG $ac_cv_sizeof_long
3467 _ACEOF
3468
3469
3470 if test $ac_cv_c_long_long = yes; then
3471 echo "$as_me:$LINENO: checking size of long long" >&5
3472 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3473 if test "${ac_cv_sizeof_long_long+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3486
3487
3488 int
3489 main ()
3490 {
3491 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>&5
3499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try='test -s conftest.$ac_objext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 ac_cv_sizeof_long_long=$ac_size
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 fi
3514 rm -f conftest.$ac_objext conftest.$ac_ext
3515 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3516 done
3517
3518 fi
3519
3520 if test x$ac_cv_sizeof_long_long = x ; then
3521 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3522 echo "$as_me: error: cannot determine a size for long long" >&2;}
3523 { (exit 1); exit 1; }; }
3524 fi
3525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3526 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3527
3528 cat >>confdefs.h <<_ACEOF
3529 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3530 _ACEOF
3531
3532
3533 fi
3534 if test $ac_cv_c___int64 = yes; then
3535 echo "$as_me:$LINENO: checking size of __int64" >&5
3536 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3537 if test "${ac_cv_sizeof___int64+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3541 cat >conftest.$ac_ext <<_ACEOF
3542 #line $LINENO "configure"
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3550
3551
3552 int
3553 main ()
3554 {
3555 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_sizeof___int64=$ac_size
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 fi
3578 rm -f conftest.$ac_objext conftest.$ac_ext
3579 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3580 done
3581
3582 fi
3583
3584 if test x$ac_cv_sizeof___int64 = x ; then
3585 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3586 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3587 { (exit 1); exit 1; }; }
3588 fi
3589 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3590 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3591
3592 cat >>confdefs.h <<_ACEOF
3593 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3594 _ACEOF
3595
3596
3597 fi
3598
3599
3600 echo "$as_me:$LINENO: checking for egrep" >&5
3601 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3602 if test "${ac_cv_prog_egrep+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 else
3605 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3606 then ac_cv_prog_egrep='grep -E'
3607 else ac_cv_prog_egrep='egrep'
3608 fi
3609 fi
3610 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3611 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3612 EGREP=$ac_cv_prog_egrep
3613
3614
3615 echo "$as_me:$LINENO: checking execution character set" >&5
3616 echo $ECHO_N "checking execution character set... $ECHO_C" >&6
3617 if test "${ac_cv_c_charset+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 cat >conftest.$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
3628 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
3629 ASCII
3630 #endif
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "ASCII" >/dev/null 2>&1; then
3634 ac_cv_c_charset=ASCII
3635 fi
3636 rm -f conftest*
3637
3638 if test x${ac_cv_c_charset+set} != xset; then
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
3647 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
3648 EBCDIC
3649 #endif
3650 _ACEOF
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "EBCDIC" >/dev/null 2>&1; then
3653 ac_cv_c_charset=EBCDIC
3654 fi
3655 rm -f conftest*
3656
3657 fi
3658 if test x${ac_cv_c_charset+set} != xset; then
3659 ac_cv_c_charset=unknown
3660 fi
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
3663 echo "${ECHO_T}$ac_cv_c_charset" >&6
3664 if test $ac_cv_c_charset = unknown; then
3665 { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
3666 echo "$as_me: error: *** Cannot determine host character set." >&2;}
3667 { (exit 1); exit 1; }; }
3668 elif test $ac_cv_c_charset = EBCDIC; then
3669
3670 cat >>confdefs.h <<\_ACEOF
3671 #define HOST_EBCDIC 1
3672 _ACEOF
3673
3674 fi
3675
3676 # -----------------
3677 # Find Ada compiler
3678 # -----------------
3679
3680 # See if GNAT has been installed
3681
3682
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3685 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -n "$GNATBIND"; then
3692 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707
3708 fi
3709 fi
3710 GNATBIND=$ac_cv_prog_GNATBIND
3711 if test -n "$GNATBIND"; then
3712 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3713 echo "${ECHO_T}$GNATBIND" >&6
3714 else
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3717 fi
3718
3719 fi
3720 if test -z "$ac_cv_prog_GNATBIND"; then
3721 ac_ct_GNATBIND=$GNATBIND
3722 # Extract the first word of "gnatbind", so it can be a program name with args.
3723 set dummy gnatbind; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 if test -n "$ac_ct_GNATBIND"; then
3730 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3731 else
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 for as_dir in $PATH
3734 do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745
3746 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3747 fi
3748 fi
3749 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3750 if test -n "$ac_ct_GNATBIND"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3752 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3756 fi
3757
3758 GNATBIND=$ac_ct_GNATBIND
3759 else
3760 GNATBIND="$ac_cv_prog_GNATBIND"
3761 fi
3762
3763 echo "$as_me:$LINENO: checking for compiler driver that understands Ada" >&5
3764 echo $ECHO_N "checking for compiler driver that understands Ada... $ECHO_C" >&6
3765 if test "${gcc_cv_prog_adac+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 cat >conftest.adb <<EOF
3769 procedure conftest is begin null; end conftest;
3770 EOF
3771 gcc_cv_prog_adac=no
3772 # Have to do ac_tool_prefix and user overrides by hand.
3773 for cand in ${ADAC+"$ADAC"} ${CC+"$CC"} \
3774 ${ac_tool_prefix}gcc gcc \
3775 ${ac_tool_prefix}cc cc \
3776 ${ac_tool_prefix}gnatgcc gnatgcc \
3777 ${ac_tool_prefix}gnatcc gnatcc \
3778 ${ac_tool_prefix}adagcc adagcc \
3779 ${ac_tool_prefix}adacc adacc ; do
3780 # There is a bug in all released versions of GCC which causes the
3781 # driver to exit successfully when the appropriate language module
3782 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3783 # Therefore we must check for the error message as well as an
3784 # unsuccessful exit.
3785 errors=`($cand -c conftest.adb) 2>&1 || echo failure`
3786 if test x"$errors" = x; then
3787 gcc_cv_prog_adac=$cand
3788 break
3789 fi
3790 done
3791 rm -f conftest.*
3792 fi
3793 echo "$as_me:$LINENO: result: $gcc_cv_prog_adac" >&5
3794 echo "${ECHO_T}$gcc_cv_prog_adac" >&6
3795 ADAC=$gcc_cv_prog_adac
3796
3797
3798 if test x$GNATBIND != xno && test x$ADAC != xno; then
3799 have_gnat=yes
3800 else
3801 have_gnat=no
3802 fi
3803
3804
3805 if test x$have_gnat != xno ; then
3806 echo "$as_me:$LINENO: checking whether ${ADAC} accepts -Wno-long-long" >&5
3807 echo $ECHO_N "checking whether ${ADAC} accepts -Wno-long-long... $ECHO_C" >&6
3808 if test "${ac_cv_prog_adac_no_long_long+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 cat >conftest.adb <<EOF
3812 procedure conftest is begin null; end conftest;
3813 EOF
3814 if $ADAC -Wno-long-long -c conftest.adb 1>&5 2>&5 ; then
3815 ac_cv_prog_adac_no_long_long=yes
3816 else
3817 ac_cv_prog_adac_no_long_long=no
3818 fi
3819 rm -f conftest*
3820 fi
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_adac_no_long_long" >&5
3822 echo "${ECHO_T}$ac_cv_prog_adac_no_long_long" >&6
3823 else
3824 ac_cv_prog_adac_no_long_long=yes
3825 fi
3826
3827 # ---------------------
3828 # Warnings and checking
3829 # ---------------------
3830
3831 strict1_warn=
3832 if test $ac_cv_prog_cc_no_long_long = yes && \
3833 test $ac_cv_prog_adac_no_long_long = yes ; then
3834 strict1_warn="-pedantic -Wno-long-long"
3835 fi
3836
3837
3838 # If the native compiler is GCC, we can enable warnings even in stage1.
3839 # That's useful for people building cross-compilers, or just running a
3840 # quick `make'.
3841 warn_cflags=
3842 if test "x$GCC" = "xyes"; then
3843 warn_cflags='$(GCC_WARN_CFLAGS)'
3844 fi
3845
3846
3847 # Enable -Werror in bootstrap stage2 and later.
3848 # Change the default to "no" on release branches.
3849 # Check whether --enable-werror or --disable-werror was given.
3850 if test "${enable_werror+set}" = set; then
3851 enableval="$enable_werror"
3852
3853 else
3854 enable_werror=yes
3855 fi;
3856 if test x$enable_werror = xyes ; then
3857 WERROR=-Werror
3858 fi
3859
3860
3861 # Enable expensive internal checks
3862 # Check whether --enable-checking or --disable-checking was given.
3863 if test "${enable_checking+set}" = set; then
3864 enableval="$enable_checking"
3865 ac_checking=
3866 ac_tree_checking=
3867 ac_rtl_checking=
3868 ac_rtlflag_checking=
3869 ac_gc_checking=
3870 ac_gc_always_collect=
3871 case "${enableval}" in
3872 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3873 ac_rtlflag_checking=1 ;;
3874 no) ;;
3875 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3876 set fnord $enableval; shift
3877 IFS="$ac_save_IFS"
3878 for check
3879 do
3880 case $check in
3881 misc) ac_checking=1 ;;
3882 tree) ac_tree_checking=1 ;;
3883 rtlflag) ac_rtlflag_checking=1 ;;
3884 rtl) ac_rtl_checking=1 ;;
3885 gc) ac_gc_checking=1 ;;
3886 gcac) ac_gc_always_collect=1 ;;
3887 valgrind) ac_checking_valgrind=1 ;;
3888 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3889 echo "$as_me: error: unknown check category $check" >&2;}
3890 { (exit 1); exit 1; }; } ;;
3891 esac
3892 done
3893 ;;
3894 esac
3895
3896 else
3897 # Enable some checks by default for development versions of GCC
3898 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3899 fi;
3900 nocommon_flag=""
3901 if test x$ac_checking != x ; then
3902
3903 cat >>confdefs.h <<\_ACEOF
3904 #define ENABLE_CHECKING 1
3905 _ACEOF
3906
3907 nocommon_flag=-fno-common
3908 fi
3909
3910 if test x$ac_tree_checking != x ; then
3911
3912 cat >>confdefs.h <<\_ACEOF
3913 #define ENABLE_TREE_CHECKING 1
3914 _ACEOF
3915
3916 fi
3917 if test x$ac_rtl_checking != x ; then
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define ENABLE_RTL_CHECKING 1
3921 _ACEOF
3922
3923 fi
3924 if test x$ac_rtlflag_checking != x ; then
3925
3926 cat >>confdefs.h <<\_ACEOF
3927 #define ENABLE_RTL_FLAG_CHECKING 1
3928 _ACEOF
3929
3930 fi
3931 if test x$ac_gc_checking != x ; then
3932
3933 cat >>confdefs.h <<\_ACEOF
3934 #define ENABLE_GC_CHECKING 1
3935 _ACEOF
3936
3937 fi
3938 if test x$ac_gc_always_collect != x ; then
3939
3940 cat >>confdefs.h <<\_ACEOF
3941 #define ENABLE_GC_ALWAYS_COLLECT 1
3942 _ACEOF
3943
3944 fi
3945 valgrind_path_defines=
3946 valgrind_command=
3947 if test x$ac_checking_valgrind != x ; then
3948 # It is certainly possible that there's valgrind but no valgrind.h.
3949 # GCC relies on making annotations so we must have both.
3950 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
3951 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3953 #line $LINENO "configure"
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <memcheck.h>
3960 #ifndef VALGRIND_DISCARD
3961 #error VALGRIND_DISCARD not defined
3962 #endif
3963 _ACEOF
3964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev/null; then
3972 if test -s conftest.err; then
3973 ac_cpp_err=$ac_c_preproc_warn_flag
3974 else
3975 ac_cpp_err=
3976 fi
3977 else
3978 ac_cpp_err=yes
3979 fi
3980 if test -z "$ac_cpp_err"; then
3981 gcc_cv_header_memcheck_h=yes
3982 else
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986 gcc_cv_header_memcheck_h=no
3987 fi
3988 rm -f conftest.err conftest.$ac_ext
3989 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
3990 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
3991 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3992 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3993 if test "${ac_cv_header_stdc+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 cat >conftest.$ac_ext <<_ACEOF
3997 #line $LINENO "configure"
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <stdlib.h>
4004 #include <stdarg.h>
4005 #include <string.h>
4006 #include <float.h>
4007
4008 int
4009 main ()
4010 {
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_header_stdc=yes
4029 else
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 ac_cv_header_stdc=no
4034 fi
4035 rm -f conftest.$ac_objext conftest.$ac_ext
4036
4037 if test $ac_cv_header_stdc = yes; then
4038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4039 cat >conftest.$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4041 /* confdefs.h. */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <string.h>
4047
4048 _ACEOF
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 $EGREP "memchr" >/dev/null 2>&1; then
4051 :
4052 else
4053 ac_cv_header_stdc=no
4054 fi
4055 rm -f conftest*
4056
4057 fi
4058
4059 if test $ac_cv_header_stdc = yes; then
4060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <stdlib.h>
4069
4070 _ACEOF
4071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 $EGREP "free" >/dev/null 2>&1; then
4073 :
4074 else
4075 ac_cv_header_stdc=no
4076 fi
4077 rm -f conftest*
4078
4079 fi
4080
4081 if test $ac_cv_header_stdc = yes; then
4082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4083 if test "$cross_compiling" = yes; then
4084 :
4085 else
4086 cat >conftest.$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4093 #include <ctype.h>
4094 #if ((' ' & 0x0FF) == 0x020)
4095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4097 #else
4098 # define ISLOWER(c) \
4099 (('a' <= (c) && (c) <= 'i') \
4100 || ('j' <= (c) && (c) <= 'r') \
4101 || ('s' <= (c) && (c) <= 'z'))
4102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4103 #endif
4104
4105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4106 int
4107 main ()
4108 {
4109 int i;
4110 for (i = 0; i < 256; i++)
4111 if (XOR (islower (i), ISLOWER (i))
4112 || toupper (i) != TOUPPER (i))
4113 exit(2);
4114 exit (0);
4115 }
4116 _ACEOF
4117 rm -f conftest$ac_exeext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 :
4129 else
4130 echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 ( exit $ac_status )
4135 ac_cv_header_stdc=no
4136 fi
4137 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4138 fi
4139 fi
4140 fi
4141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143 if test $ac_cv_header_stdc = yes; then
4144
4145 cat >>confdefs.h <<\_ACEOF
4146 #define STDC_HEADERS 1
4147 _ACEOF
4148
4149 fi
4150
4151 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4162 inttypes.h stdint.h unistd.h
4163 do
4164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 else
4170 cat >conftest.$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4178
4179 #include <$ac_header>
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_Header=yes"
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 eval "$as_ac_Header=no"
4199 fi
4200 rm -f conftest.$ac_objext conftest.$ac_ext
4201 fi
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h <<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207 _ACEOF
4208
4209 fi
4210
4211 done
4212
4213
4214 if test "${ac_cv_header_valgrind_h+set}" = set; then
4215 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4216 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4217 if test "${ac_cv_header_valgrind_h+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 fi
4220 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4221 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4222 else
4223 # Is the header compilable?
4224 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4225 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 $ac_includes_default
4234 #include <valgrind.h>
4235 _ACEOF
4236 rm -f conftest.$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_header_compiler=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 ac_header_compiler=no
4254 fi
4255 rm -f conftest.$ac_objext conftest.$ac_ext
4256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4257 echo "${ECHO_T}$ac_header_compiler" >&6
4258
4259 # Is the header present?
4260 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4261 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <valgrind.h>
4270 _ACEOF
4271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4273 ac_status=$?
4274 grep -v '^ *+' conftest.er1 >conftest.err
4275 rm -f conftest.er1
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev/null; then
4279 if test -s conftest.err; then
4280 ac_cpp_err=$ac_c_preproc_warn_flag
4281 else
4282 ac_cpp_err=
4283 fi
4284 else
4285 ac_cpp_err=yes
4286 fi
4287 if test -z "$ac_cpp_err"; then
4288 ac_header_preproc=yes
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ac_header_preproc=no
4294 fi
4295 rm -f conftest.err conftest.$ac_ext
4296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4297 echo "${ECHO_T}$ac_header_preproc" >&6
4298
4299 # So? What about this header?
4300 case $ac_header_compiler:$ac_header_preproc in
4301 yes:no )
4302 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4303 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4305 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4306 (
4307 cat <<\_ASBOX
4308 ## ------------------------------------ ##
4309 ## Report this to bug-autoconf@gnu.org. ##
4310 ## ------------------------------------ ##
4311 _ASBOX
4312 ) |
4313 sed "s/^/$as_me: WARNING: /" >&2
4314 ;;
4315 no:yes )
4316 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4317 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4319 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4320 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4321 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4322 (
4323 cat <<\_ASBOX
4324 ## ------------------------------------ ##
4325 ## Report this to bug-autoconf@gnu.org. ##
4326 ## ------------------------------------ ##
4327 _ASBOX
4328 ) |
4329 sed "s/^/$as_me: WARNING: /" >&2
4330 ;;
4331 esac
4332 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4333 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4334 if test "${ac_cv_header_valgrind_h+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 ac_cv_header_valgrind_h=$ac_header_preproc
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4340 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4341
4342 fi
4343 if test $ac_cv_header_valgrind_h = yes; then
4344 have_valgrind_h=yes
4345 else
4346 have_valgrind_h=no
4347 fi
4348
4349
4350 # Extract the first word of "valgrind", so it can be a program name with args.
4351 set dummy valgrind; ac_word=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_path_valgrind_path+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 case "$valgrind_path" in
4358 /*)
4359 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4360 ;;
4361 *)
4362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4363 for ac_dir in $PATH; do
4364 test -z "$ac_dir" && ac_dir=.
4365 if test -f $ac_dir/$ac_word; then
4366 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4367 ac_cv_path_valgrind_path="$ac_dir/$ac_word"
4368 break
4369 fi
4370 fi
4371 done
4372 IFS="$ac_save_ifs"
4373 ;;
4374 esac
4375 fi
4376 valgrind_path="$ac_cv_path_valgrind_path"
4377 if test -n "$valgrind_path"; then
4378 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4379 echo "${ECHO_T}$valgrind_path" >&6
4380 else
4381 echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4383 fi
4384
4385 if test "x$valgrind_path" = "x" || (test $have_valgrind_h = no && test $gcc_cv_header_memcheck_h = no); then
4386 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind.h/memcheck.h" >&5
4387 echo "$as_me: error: *** Can't find both valgrind and valgrind.h/memcheck.h" >&2;}
4388 { (exit 1); exit 1; }; }
4389 fi
4390 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4391 valgrind_command="$valgrind_path -q"
4392
4393 cat >>confdefs.h <<\_ACEOF
4394 #define ENABLE_VALGRIND_CHECKING 1
4395 _ACEOF
4396
4397 if test $gcc_cv_header_memcheck_h = yes; then
4398
4399 cat >>confdefs.h <<\_ACEOF
4400 #define HAVE_MEMCHECK_H 1
4401 _ACEOF
4402
4403 fi
4404 fi
4405
4406
4407
4408 # Enable code coverage collection
4409 # Check whether --enable-coverage or --disable-coverage was given.
4410 if test "${enable_coverage+set}" = set; then
4411 enableval="$enable_coverage"
4412 case "${enableval}" in
4413 yes|noopt)
4414 coverage_flags="-fprofile-arcs -ftest-coverage -O0 -DSELF_COVERAGE=1"
4415 ;;
4416 opt)
4417 coverage_flags="-fprofile-arcs -ftest-coverage -O2 -DSELF_COVERAGE=2"
4418 ;;
4419 *)
4420 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4421 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4422 { (exit 1); exit 1; }; }
4423 ;;
4424 esac
4425 else
4426 coverage_flags=""
4427 fi;
4428
4429
4430 # -------------------------------
4431 # Miscenalleous configure options
4432 # -------------------------------
4433
4434 # With stabs
4435
4436 # Check whether --with-stabs or --without-stabs was given.
4437 if test "${with_stabs+set}" = set; then
4438 withval="$with_stabs"
4439 stabs="$with_stabs"
4440 else
4441 stabs=no
4442 fi;
4443
4444 # With ELF
4445
4446 # Check whether --with-elf or --without-elf was given.
4447 if test "${with_elf+set}" = set; then
4448 withval="$with_elf"
4449 elf="$with_elf"
4450 else
4451 elf=no
4452 fi;
4453
4454 # Determine whether or not multilibs are enabled.
4455 # Check whether --enable-multilib or --disable-multilib was given.
4456 if test "${enable_multilib+set}" = set; then
4457 enableval="$enable_multilib"
4458
4459 else
4460 enable_multilib=yes
4461 fi;
4462
4463
4464 # Enable __cxa_atexit for C++.
4465 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4466 if test "${enable___cxa_atexit+set}" = set; then
4467 enableval="$enable___cxa_atexit"
4468
4469 fi;
4470 if test x$enable___cxa_atexit = xyes; then
4471
4472 cat >>confdefs.h <<\_ACEOF
4473 #define DEFAULT_USE_CXA_ATEXIT 1
4474 _ACEOF
4475
4476 fi
4477
4478 # Enable Multibyte Characters for C/C++
4479 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
4480 if test "${enable_c_mbchar+set}" = set; then
4481 enableval="$enable_c_mbchar"
4482 if test x$enable_c_mbchar != xno; then
4483
4484 cat >>confdefs.h <<\_ACEOF
4485 #define MULTIBYTE_CHARS 1
4486 _ACEOF
4487
4488 fi
4489 fi;
4490
4491 # Enable threads
4492 # Pass with no value to take the default
4493 # Pass with a value to specify a thread package
4494 # Check whether --enable-threads or --disable-threads was given.
4495 if test "${enable_threads+set}" = set; then
4496 enableval="$enable_threads"
4497
4498 else
4499 enable_threads=''
4500 fi;
4501
4502 enable_threads_flag=$enable_threads
4503 # Check if a valid thread package
4504 case x${enable_threads_flag} in
4505 x | xno)
4506 # No threads
4507 target_thread_file='single'
4508 ;;
4509 xyes)
4510 # default
4511 target_thread_file=''
4512 ;;
4513 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
4514 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix | xgnat)
4515 target_thread_file=$enable_threads_flag
4516 ;;
4517 *)
4518 echo "$enable_threads is an unknown thread package" 1>&2
4519 exit 1
4520 ;;
4521 esac
4522
4523 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4524 if test "${enable_objc_gc+set}" = set; then
4525 enableval="$enable_objc_gc"
4526 if test x$enable_objc_gc = xno; then
4527 objc_boehm_gc=''
4528 else
4529 objc_boehm_gc=1
4530 fi
4531 else
4532 objc_boehm_gc=''
4533 fi;
4534
4535
4536 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4537 if test "${with_dwarf2+set}" = set; then
4538 withval="$with_dwarf2"
4539 dwarf2="$with_dwarf2"
4540 else
4541 dwarf2=no
4542 fi;
4543
4544 # Check whether --enable-shared or --disable-shared was given.
4545 if test "${enable_shared+set}" = set; then
4546 enableval="$enable_shared"
4547
4548 case $enable_shared in
4549 yes | no) ;;
4550 *)
4551 enable_shared=no
4552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4553 for pkg in $enableval; do
4554 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4555 enable_shared=yes
4556 fi
4557 done
4558 IFS="$ac_save_ifs"
4559 ;;
4560 esac
4561
4562 else
4563 enable_shared=yes
4564 fi;
4565
4566
4567
4568 # Check whether --with-sysroot or --without-sysroot was given.
4569 if test "${with_sysroot+set}" = set; then
4570 withval="$with_sysroot"
4571
4572 case ${with_sysroot} in
4573 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4574 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4575 esac
4576
4577 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4578 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4579
4580 if test "x$exec_prefix" = xNONE; then
4581 if test "x$prefix" = xNONE; then
4582 test_prefix=/usr/local
4583 else
4584 test_prefix=$prefix
4585 fi
4586 else
4587 test_prefix=$exec_prefix
4588 fi
4589 case ${TARGET_SYSTEM_ROOT} in
4590 "${test_prefix}"|"${test_prefix}/"*|\
4591 '${exec_prefix}'|'${exec_prefix}/'*)
4592 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4593 TARGET_SYSTEM_ROOT_DEFINE="$t"
4594 ;;
4595 esac
4596
4597 else
4598
4599 TARGET_SYSTEM_ROOT=
4600 TARGET_SYSTEM_ROOT_DEFINE=
4601 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4602
4603 fi;
4604
4605
4606
4607
4608 # -------------------------
4609 # Checks for other programs
4610 # -------------------------
4611
4612 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4613 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4614 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4615 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 cat >conftest.make <<\_ACEOF
4619 all:
4620 @echo 'ac_maketemp="$(MAKE)"'
4621 _ACEOF
4622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4623 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4624 if test -n "$ac_maketemp"; then
4625 eval ac_cv_prog_make_${ac_make}_set=yes
4626 else
4627 eval ac_cv_prog_make_${ac_make}_set=no
4628 fi
4629 rm -f conftest.make
4630 fi
4631 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4632 echo "$as_me:$LINENO: result: yes" >&5
4633 echo "${ECHO_T}yes" >&6
4634 SET_MAKE=
4635 else
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 SET_MAKE="MAKE=${MAKE-make}"
4639 fi
4640
4641
4642 # Find some useful tools
4643 for ac_prog in gawk mawk nawk awk
4644 do
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy $ac_prog; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_AWK+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$AWK"; then
4653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_AWK="$ac_prog"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668
4669 fi
4670 fi
4671 AWK=$ac_cv_prog_AWK
4672 if test -n "$AWK"; then
4673 echo "$as_me:$LINENO: result: $AWK" >&5
4674 echo "${ECHO_T}$AWK" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4678 fi
4679
4680 test -n "$AWK" && break
4681 done
4682
4683 echo "$as_me:$LINENO: checking whether ln works" >&5
4684 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4685 if test "${gcc_cv_prog_LN+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 rm -f conftestdata_t
4689 echo >conftestdata_f
4690 if ln conftestdata_f conftestdata_t 2>/dev/null
4691 then
4692 gcc_cv_prog_LN="ln"
4693 else
4694 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4695 then
4696 gcc_cv_prog_LN="ln -s"
4697 else
4698 gcc_cv_prog_LN=cp
4699 fi
4700 fi
4701 rm -f conftestdata_f conftestdata_t
4702
4703 fi
4704 LN="$gcc_cv_prog_LN"
4705 if test "$gcc_cv_prog_LN" = "ln"; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707 echo "${ECHO_T}yes" >&6
4708 else
4709 if test "$gcc_cv_prog_LN" = "ln -s"; then
4710 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4711 echo "${ECHO_T}no, using ln -s" >&6
4712 else
4713 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4714 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4715 fi
4716 fi
4717
4718 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4720 if test "${gcc_cv_prog_LN_S+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723 rm -f conftestdata_t
4724 echo >conftestdata_f
4725 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4726 then
4727 gcc_cv_prog_LN_S="ln -s"
4728 else
4729 if ln conftestdata_f conftestdata_t 2>/dev/null
4730 then
4731 gcc_cv_prog_LN_S=ln
4732 else
4733 gcc_cv_prog_LN_S=cp
4734 fi
4735 fi
4736 rm -f conftestdata_f conftestdata_t
4737
4738 fi
4739 LN_S="$gcc_cv_prog_LN_S"
4740 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4741 echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6
4743 else
4744 if test "$gcc_cv_prog_LN_S" = "ln"; then
4745 echo "$as_me:$LINENO: result: no, using ln" >&5
4746 echo "${ECHO_T}no, using ln" >&6
4747 else
4748 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4749 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4750 fi
4751 fi
4752
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777
4778 fi
4779 fi
4780 RANLIB=$ac_cv_prog_RANLIB
4781 if test -n "$RANLIB"; then
4782 echo "$as_me:$LINENO: result: $RANLIB" >&5
4783 echo "${ECHO_T}$RANLIB" >&6
4784 else
4785 echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4787 fi
4788
4789 fi
4790 if test -z "$ac_cv_prog_RANLIB"; then
4791 ac_ct_RANLIB=$RANLIB
4792 # Extract the first word of "ranlib", so it can be a program name with args.
4793 set dummy ranlib; ac_word=$2
4794 echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test -n "$ac_ct_RANLIB"; then
4800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_ac_ct_RANLIB="ranlib"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815
4816 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4817 fi
4818 fi
4819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4820 if test -n "$ac_ct_RANLIB"; then
4821 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4822 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4823 else
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4826 fi
4827
4828 RANLIB=$ac_ct_RANLIB
4829 else
4830 RANLIB="$ac_cv_prog_RANLIB"
4831 fi
4832
4833 # Find a good install program. We prefer a C program (faster),
4834 # so one script is as good as another. But avoid the broken or
4835 # incompatible versions:
4836 # SysV /etc/install, /usr/sbin/install
4837 # SunOS /usr/etc/install
4838 # IRIX /sbin/install
4839 # AIX /bin/install
4840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4842 # ./install, which can be erroneously created by make from ./install.sh.
4843 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4844 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4845 if test -z "$INSTALL"; then
4846 if test "${ac_cv_path_install+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4850 for ac_dir in $PATH; do
4851 # Account for people who put trailing slashes in PATH elements.
4852 case "$ac_dir/" in
4853 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4854 *)
4855 # OSF1 and SCO ODT 3.0 have their own names for install.
4856 for ac_prog in ginstall scoinst install; do
4857 if test -f $ac_dir/$ac_prog; then
4858 if test $ac_prog = install &&
4859 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4860 # AIX install. It has an incompatible calling convention.
4861 # OSF/1 installbsd also uses dspmsg, but is usable.
4862 :
4863 else
4864 ac_cv_path_install="$ac_dir/$ac_prog -c"
4865 break 2
4866 fi
4867 fi
4868 done
4869 ;;
4870 esac
4871 done
4872 IFS="$ac_save_IFS"
4873
4874 fi
4875 if test "${ac_cv_path_install+set}" = set; then
4876 INSTALL="$ac_cv_path_install"
4877 else
4878 # As a last resort, use the slow shell script. We don't cache a
4879 # path for INSTALL within a source directory, because that will
4880 # break other packages using the cache if that directory is
4881 # removed, or if the path is relative.
4882 INSTALL="$ac_install_sh"
4883 fi
4884 fi
4885 echo "$as_me:$LINENO: result: $INSTALL" >&5
4886 echo "${ECHO_T}$INSTALL" >&6
4887
4888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4889 # It thinks the first close brace ends the variable substitution.
4890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4891
4892 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4893
4894
4895 # See if we have the mktemp command.
4896 # Extract the first word of "mktemp", so it can be a program name with args.
4897 set dummy mktemp; ac_word=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903 if test -n "$have_mktemp_command"; then
4904 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_have_mktemp_command="yes"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917 done
4918 done
4919
4920 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
4921 fi
4922 fi
4923 have_mktemp_command=$ac_cv_prog_have_mktemp_command
4924 if test -n "$have_mktemp_command"; then
4925 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4926 echo "${ECHO_T}$have_mktemp_command" >&6
4927 else
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930 fi
4931
4932
4933 # Do we have a single-tree copy of texinfo?
4934 if test -f $srcdir/../texinfo/Makefile.in; then
4935 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
4936 gcc_cv_prog_makeinfo_modern=yes
4937 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4938 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4939 else
4940 # See if makeinfo has been installed and is modern enough
4941 # that we can use it.
4942 # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo; ac_word=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$MAKEINFO"; then
4950 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_MAKEINFO="makeinfo"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965
4966 fi
4967 fi
4968 MAKEINFO=$ac_cv_prog_MAKEINFO
4969 if test -n "$MAKEINFO"; then
4970 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4971 echo "${ECHO_T}$MAKEINFO" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977 if test -n "$MAKEINFO"; then
4978 # Found it, now check the version.
4979 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4980 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4981 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 ac_prog_version=`$MAKEINFO --version 2>&1 |
4985 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4986 echo "configure:4986: version of makeinfo is $ac_prog_version" >&5
4987 case $ac_prog_version in
4988 '') gcc_cv_prog_makeinfo_modern=no;;
4989 4.[2-9]*)
4990 gcc_cv_prog_makeinfo_modern=yes;;
4991 *) gcc_cv_prog_makeinfo_modern=no;;
4992 esac
4993
4994 fi
4995 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4996 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4997 else
4998 gcc_cv_prog_makeinfo_modern=no
4999 fi
5000
5001 fi
5002
5003 if test $gcc_cv_prog_makeinfo_modern = no; then
5004 { echo "$as_me:$LINENO: WARNING:
5005 *** Makeinfo is missing or too old.
5006 *** Info documentation will not be built." >&5
5007 echo "$as_me: WARNING:
5008 *** Makeinfo is missing or too old.
5009 *** Info documentation will not be built." >&2;}
5010 BUILD_INFO=
5011 else
5012 BUILD_INFO=info
5013 fi
5014
5015 # Is pod2man recent enough to regenerate manpages?
5016 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5017 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5018 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 GENERATED_MANPAGES=generated-manpages
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5025 GENERATED_MANPAGES=
5026 fi
5027
5028 # 'make compare' can be significantly faster, if cmp itself can
5029 # skip bytes instead of using tail. The test being performed is
5030 # "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
5031 # but we need to sink errors and handle broken shells.
5032 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5033 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5034 echo abfoo >t1
5035 echo cdfoo >t2
5036 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5037 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5038 make_compare_target=slowcompare
5039 else
5040 make_compare_target=gnucompare
5041 fi
5042 else
5043 make_compare_target=slowcompare
5044 fi
5045 rm t1 t2
5046
5047 echo "$as_me:$LINENO: result: $make_compare_target" >&5
5048 echo "${ECHO_T}$make_compare_target" >&6
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 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5197 if test "${ac_cv_header_stdc+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <stdlib.h>
5208 #include <stdarg.h>
5209 #include <string.h>
5210 #include <float.h>
5211
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 (eval $ac_try) 2>&5
5229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_header_stdc=yes
5233 else
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 ac_cv_header_stdc=no
5238 fi
5239 rm -f conftest.$ac_objext conftest.$ac_ext
5240
5241 if test $ac_cv_header_stdc = yes; then
5242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h. */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <string.h>
5251
5252 _ACEOF
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "memchr" >/dev/null 2>&1; then
5255 :
5256 else
5257 ac_cv_header_stdc=no
5258 fi
5259 rm -f conftest*
5260
5261 fi
5262
5263 if test $ac_cv_header_stdc = yes; then
5264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5265 cat >conftest.$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5267 /* confdefs.h. */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5272 #include <stdlib.h>
5273
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev/null 2>&1; then
5277 :
5278 else
5279 ac_cv_header_stdc=no
5280 fi
5281 rm -f conftest*
5282
5283 fi
5284
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then
5288 :
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <ctype.h>
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301 #else
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307 #endif
5308
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310 int
5311 main ()
5312 {
5313 int i;
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5317 exit(2);
5318 exit (0);
5319 }
5320 _ACEOF
5321 rm -f conftest$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 :
5333 else
5334 echo "$as_me: program exited with status $ac_status" >&5
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 ( exit $ac_status )
5339 ac_cv_header_stdc=no
5340 fi
5341 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5342 fi
5343 fi
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5346 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5347 if test $ac_cv_header_stdc = yes; then
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define STDC_HEADERS 1
5351 _ACEOF
5352
5353 fi
5354
5355 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5356 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5357 if test "${ac_cv_header_time+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5362 /* confdefs.h. */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <sys/types.h>
5368 #include <sys/time.h>
5369 #include <time.h>
5370
5371 int
5372 main ()
5373 {
5374 if ((struct tm *) 0)
5375 return 0;
5376 ;
5377 return 0;
5378 }
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_header_time=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_cv_header_time=no
5398 fi
5399 rm -f conftest.$ac_objext conftest.$ac_ext
5400 fi
5401 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5402 echo "${ECHO_T}$ac_cv_header_time" >&6
5403 if test $ac_cv_header_time = yes; then
5404
5405 cat >>confdefs.h <<\_ACEOF
5406 #define TIME_WITH_SYS_TIME 1
5407 _ACEOF
5408
5409 fi
5410
5411 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5412 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5413 if test "${ac_cv_header_stdbool_h+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 cat >conftest.$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <stdbool.h>
5424 int
5425 main ()
5426 {
5427 bool foo = false;
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_header_stdbool_h=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5448
5449 ac_cv_header_stdbool_h=no
5450 fi
5451 rm -f conftest.$ac_objext conftest.$ac_ext
5452 fi
5453 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5454 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5455 if test $ac_cv_header_stdbool_h = yes; then
5456
5457 cat >>confdefs.h <<\_ACEOF
5458 #define HAVE_STDBOOL_H 1
5459 _ACEOF
5460
5461 fi
5462
5463 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5464 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5465 if test "${gcc_cv_header_string+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 else
5468 cat >conftest.$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 #include <string.h>
5476 #include <strings.h>
5477 int
5478 main ()
5479 {
5480
5481 ;
5482 return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 (eval $ac_try) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 gcc_cv_header_string=yes
5498 else
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502 gcc_cv_header_string=no
5503 fi
5504 rm -f conftest.$ac_objext conftest.$ac_ext
5505 fi
5506 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5507 echo "${ECHO_T}$gcc_cv_header_string" >&6
5508 if test $gcc_cv_header_string = yes; then
5509
5510 cat >>confdefs.h <<\_ACEOF
5511 #define STRING_WITH_STRINGS 1
5512 _ACEOF
5513
5514 fi
5515
5516 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5517 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5518 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 #include <sys/wait.h>
5530 #ifndef WEXITSTATUS
5531 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5532 #endif
5533 #ifndef WIFEXITED
5534 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5535 #endif
5536
5537 int
5538 main ()
5539 {
5540 int s;
5541 wait (&s);
5542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest.$ac_objext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_header_sys_wait_h=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 ac_cv_header_sys_wait_h=no
5565 fi
5566 rm -f conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5569 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5570 if test $ac_cv_header_sys_wait_h = yes; then
5571
5572 cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_SYS_WAIT_H 1
5574 _ACEOF
5575
5576 fi
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5598 fcntl.h unistd.h sys/file.h sys/time.h \
5599 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5600 direct.h malloc.h langinfo.h ldfcn.h wchar.h
5601 do
5602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 fi
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5611 else
5612 # Is the header compilable?
5613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
5623 #include <$ac_header>
5624 _ACEOF
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_header_compiler=yes
5638 else
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642 ac_header_compiler=no
5643 fi
5644 rm -f conftest.$ac_objext conftest.$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6
5647
5648 # Is the header present?
5649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <$ac_header>
5659 _ACEOF
5660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null; then
5668 if test -s conftest.err; then
5669 ac_cpp_err=$ac_c_preproc_warn_flag
5670 else
5671 ac_cpp_err=
5672 fi
5673 else
5674 ac_cpp_err=yes
5675 fi
5676 if test -z "$ac_cpp_err"; then
5677 ac_header_preproc=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_header_preproc=no
5683 fi
5684 rm -f conftest.err conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5686 echo "${ECHO_T}$ac_header_preproc" >&6
5687
5688 # So? What about this header?
5689 case $ac_header_compiler:$ac_header_preproc in
5690 yes:no )
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5695 (
5696 cat <<\_ASBOX
5697 ## ------------------------------------ ##
5698 ## Report this to bug-autoconf@gnu.org. ##
5699 ## ------------------------------------ ##
5700 _ASBOX
5701 ) |
5702 sed "s/^/$as_me: WARNING: /" >&2
5703 ;;
5704 no:yes )
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 (
5712 cat <<\_ASBOX
5713 ## ------------------------------------ ##
5714 ## Report this to bug-autoconf@gnu.org. ##
5715 ## ------------------------------------ ##
5716 _ASBOX
5717 ) |
5718 sed "s/^/$as_me: WARNING: /" >&2
5719 ;;
5720 esac
5721 echo "$as_me:$LINENO: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 eval "$as_ac_Header=$ac_header_preproc"
5727 fi
5728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5730
5731 fi
5732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5733 cat >>confdefs.h <<_ACEOF
5734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 _ACEOF
5736
5737 fi
5738
5739 done
5740
5741
5742 # Check for thread headers.
5743 if test "${ac_cv_header_thread_h+set}" = set; then
5744 echo "$as_me:$LINENO: checking for thread.h" >&5
5745 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5746 if test "${ac_cv_header_thread_h+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 fi
5749 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5750 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5751 else
5752 # Is the header compilable?
5753 echo "$as_me:$LINENO: checking thread.h usability" >&5
5754 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 $ac_includes_default
5763 #include <thread.h>
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_header_compiler=yes
5778 else
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 ac_header_compiler=no
5783 fi
5784 rm -f conftest.$ac_objext conftest.$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5786 echo "${ECHO_T}$ac_header_compiler" >&6
5787
5788 # Is the header present?
5789 echo "$as_me:$LINENO: checking thread.h presence" >&5
5790 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <thread.h>
5799 _ACEOF
5800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev/null; then
5808 if test -s conftest.err; then
5809 ac_cpp_err=$ac_c_preproc_warn_flag
5810 else
5811 ac_cpp_err=
5812 fi
5813 else
5814 ac_cpp_err=yes
5815 fi
5816 if test -z "$ac_cpp_err"; then
5817 ac_header_preproc=yes
5818 else
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5821
5822 ac_header_preproc=no
5823 fi
5824 rm -f conftest.err conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5826 echo "${ECHO_T}$ac_header_preproc" >&6
5827
5828 # So? What about this header?
5829 case $ac_header_compiler:$ac_header_preproc in
5830 yes:no )
5831 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5832 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5834 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5835 (
5836 cat <<\_ASBOX
5837 ## ------------------------------------ ##
5838 ## Report this to bug-autoconf@gnu.org. ##
5839 ## ------------------------------------ ##
5840 _ASBOX
5841 ) |
5842 sed "s/^/$as_me: WARNING: /" >&2
5843 ;;
5844 no:yes )
5845 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5846 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5848 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5851 (
5852 cat <<\_ASBOX
5853 ## ------------------------------------ ##
5854 ## Report this to bug-autoconf@gnu.org. ##
5855 ## ------------------------------------ ##
5856 _ASBOX
5857 ) |
5858 sed "s/^/$as_me: WARNING: /" >&2
5859 ;;
5860 esac
5861 echo "$as_me:$LINENO: checking for thread.h" >&5
5862 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5863 if test "${ac_cv_header_thread_h+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 ac_cv_header_thread_h=$ac_header_preproc
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5869 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5870
5871 fi
5872 if test $ac_cv_header_thread_h = yes; then
5873 have_thread_h=yes
5874 else
5875 have_thread_h=
5876 fi
5877
5878
5879 if test "${ac_cv_header_pthread_h+set}" = set; then
5880 echo "$as_me:$LINENO: checking for pthread.h" >&5
5881 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5882 if test "${ac_cv_header_pthread_h+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 fi
5885 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5886 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5887 else
5888 # Is the header compilable?
5889 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5890 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <pthread.h>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_header_compiler=yes
5914 else
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 ac_header_compiler=no
5919 fi
5920 rm -f conftest.$ac_objext conftest.$ac_ext
5921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5922 echo "${ECHO_T}$ac_header_compiler" >&6
5923
5924 # Is the header present?
5925 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5926 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <pthread.h>
5935 _ACEOF
5936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev/null; then
5944 if test -s conftest.err; then
5945 ac_cpp_err=$ac_c_preproc_warn_flag
5946 else
5947 ac_cpp_err=
5948 fi
5949 else
5950 ac_cpp_err=yes
5951 fi
5952 if test -z "$ac_cpp_err"; then
5953 ac_header_preproc=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_header_preproc=no
5959 fi
5960 rm -f conftest.err conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5962 echo "${ECHO_T}$ac_header_preproc" >&6
5963
5964 # So? What about this header?
5965 case $ac_header_compiler:$ac_header_preproc in
5966 yes:no )
5967 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5968 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5970 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5971 (
5972 cat <<\_ASBOX
5973 ## ------------------------------------ ##
5974 ## Report this to bug-autoconf@gnu.org. ##
5975 ## ------------------------------------ ##
5976 _ASBOX
5977 ) |
5978 sed "s/^/$as_me: WARNING: /" >&2
5979 ;;
5980 no:yes )
5981 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5982 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5984 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5986 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5987 (
5988 cat <<\_ASBOX
5989 ## ------------------------------------ ##
5990 ## Report this to bug-autoconf@gnu.org. ##
5991 ## ------------------------------------ ##
5992 _ASBOX
5993 ) |
5994 sed "s/^/$as_me: WARNING: /" >&2
5995 ;;
5996 esac
5997 echo "$as_me:$LINENO: checking for pthread.h" >&5
5998 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5999 if test "${ac_cv_header_pthread_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 ac_cv_header_pthread_h=$ac_header_preproc
6003 fi
6004 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6005 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6006
6007 fi
6008 if test $ac_cv_header_pthread_h = yes; then
6009 have_pthread_h=yes
6010 else
6011 have_pthread_h=
6012 fi
6013
6014
6015
6016 # These tests can't be done till we know if we have limits.h.
6017 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6018 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6019 if test "${gcc_cv_decl_char_bit+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #ifdef HAVE_LIMITS_H
6030 #include <limits.h>
6031 #endif
6032 #ifdef CHAR_BIT
6033 found
6034 #endif
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "found" >/dev/null 2>&1; then
6038 gcc_cv_decl_char_bit=yes
6039 else
6040 gcc_cv_decl_char_bit=no
6041 fi
6042 rm -f conftest*
6043
6044
6045 fi
6046 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6047 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6048 if test $gcc_cv_decl_char_bit = no; then
6049 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6050 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6051 if test "${gcc_cv_c_nbby+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 i=8
6055 gcc_cv_c_nbby=
6056 while test $i -lt 65; do
6057 cat >conftest.$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064
6065 int
6066 main ()
6067 {
6068 switch(0) {
6069 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6070 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6071 ; }
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 gcc_cv_c_nbby=$i; break
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 fi
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 i=`expr $i + 1`
6096 done
6097 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6098
6099 fi
6100 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6101 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6102 if test $gcc_cv_c_nbby = failed; then
6103 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6104 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6105 { (exit 1); exit 1; }; }
6106 else
6107
6108 cat >>confdefs.h <<_ACEOF
6109 #define CHAR_BIT $gcc_cv_c_nbby
6110 _ACEOF
6111
6112 fi
6113 fi
6114 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6115 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6116 if test "${ac_cv_c_bigendian+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 ac_cv_c_bigendian=unknown
6120 # See if sys/param.h defines the BYTE_ORDER macro.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 #include <sys/param.h>
6130 int
6131 main ()
6132 {
6133
6134 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6135 bogus endian macros
6136 #endif
6137 ;
6138 return 0;
6139 }
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 # It does; now see whether it defined to BIG_ENDIAN or not.
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 #include <sys/types.h>
6162 #include <sys/param.h>
6163 int
6164 main ()
6165 {
6166
6167 #if BYTE_ORDER != BIG_ENDIAN
6168 not big endian
6169 #endif
6170 ;
6171 return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -s conftest.$ac_objext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_c_bigendian=yes
6187 else
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6190
6191 ac_cv_c_bigendian=no
6192 fi
6193 rm -f conftest.$ac_objext conftest.$ac_ext
6194 else
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 fi
6199 rm -f conftest.$ac_objext conftest.$ac_ext
6200 if test $ac_cv_c_bigendian = unknown; then
6201 if test "$cross_compiling" = yes; then
6202 echo $ac_n "cross-compiling... " 2>&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 main () {
6212 /* Are we little or big endian? From Harbison&Steele. */
6213 union
6214 {
6215 long l;
6216 char c[sizeof (long)];
6217 } u;
6218 u.l = 1;
6219 exit (u.c[sizeof (long) - 1] == 1);
6220 }
6221 _ACEOF
6222 rm -f 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); } && { ac_try='./conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 (eval $ac_try) 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_c_bigendian=no
6234 else
6235 echo "$as_me: program exited with status $ac_status" >&5
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ( exit $ac_status )
6240 ac_cv_c_bigendian=yes
6241 fi
6242 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6243 fi
6244 fi
6245 fi
6246 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6247 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6248 if test $ac_cv_c_bigendian = unknown; then
6249 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6250 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6251
6252 cat >conftest.c <<EOF
6253 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6254 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6255 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6256 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6257 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6258 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6259 int main() { _ascii (); _ebcdic (); return 0; }
6260 EOF
6261 if test -f conftest.c ; then
6262 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6263 if test `grep -l BIGenDianSyS conftest.o` ; then
6264 echo $ac_n ' big endian probe OK, ' 1>&6
6265 ac_cv_c_bigendian=yes
6266 fi
6267 if test `grep -l LiTTleEnDian conftest.o` ; then
6268 echo $ac_n ' little endian probe OK, ' 1>&6
6269 if test $ac_cv_c_bigendian = yes ; then
6270 ac_cv_c_bigendian=unknown;
6271 else
6272 ac_cv_c_bigendian=no
6273 fi
6274 fi
6275 echo $ac_n 'guessing bigendian ... ' >&6
6276 fi
6277 fi
6278 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6279 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6280 fi
6281 if test $ac_cv_c_bigendian = yes; then
6282
6283 cat >>confdefs.h <<\_ACEOF
6284 #define WORDS_BIGENDIAN 1
6285 _ACEOF
6286
6287
6288 cat >>confdefs.h <<\_ACEOF
6289 #define HOST_WORDS_BIG_ENDIAN 1
6290 _ACEOF
6291
6292 BYTEORDER=4321
6293 else
6294 BYTEORDER=1234
6295 fi
6296
6297 cat >>confdefs.h <<_ACEOF
6298 #define BYTEORDER $BYTEORDER
6299 _ACEOF
6300
6301 if test $ac_cv_c_bigendian = unknown; then
6302 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6303 echo "$as_me: error: unknown endianess - sorry" >&2;}
6304 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6305 fi
6306
6307
6308 # --------
6309 # UNSORTED
6310 # --------
6311
6312 # Stage specific cflags for build.
6313 stage1_cflags=
6314 case $build in
6315 vax-*-*)
6316 if test x$GCC = xyes
6317 then
6318 stage1_cflags="-Wa,-J"
6319 else
6320 stage1_cflags="-J"
6321 fi
6322 ;;
6323 powerpc-*-darwin*)
6324 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6325 # sources; use -no-cpp-precomp to get to GNU cpp.
6326 # Apple's GCC has bugs in designated initializer handling, so disable
6327 # that too.
6328 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6329 ;;
6330 esac
6331
6332
6333 # These libraries may be used by collect2.
6334 # We may need a special search path to get them linked.
6335 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6336 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6337 if test "${gcc_cv_collect2_libs+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 save_LIBS="$LIBS"
6341 for libs in '' -lld -lmld \
6342 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6343 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6344 do
6345 LIBS="$libs"
6346 cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6348 /* confdefs.h. */
6349 _ACEOF
6350 cat confdefs.h >>conftest.$ac_ext
6351 cat >>conftest.$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6353
6354 /* Override any gcc2 internal prototype to avoid an error. */
6355 #ifdef __cplusplus
6356 extern "C"
6357 #endif
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char ldopen ();
6361 int
6362 main ()
6363 {
6364 ldopen ();
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 gcc_cv_collect2_libs="$libs"; break
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6385
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 done
6389 LIBS="$save_LIBS"
6390 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6391 fi
6392 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6393 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6394 case $gcc_cv_collect2_libs in
6395 "none required") ;;
6396 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6397 esac
6398
6399
6400 # When building Ada code on Alpha, we need exc_resume which is usually in
6401 # -lexc. So test for it.
6402 save_LIBS="$LIBS"
6403 LIBS=
6404 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6405 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6406 if test "${ac_cv_search_exc_resume+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409 ac_func_search_save_LIBS=$LIBS
6410 ac_cv_search_exc_resume=no
6411 cat >conftest.$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6413 /* confdefs.h. */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6418
6419 /* Override any gcc2 internal prototype to avoid an error. */
6420 #ifdef __cplusplus
6421 extern "C"
6422 #endif
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char exc_resume ();
6426 int
6427 main ()
6428 {
6429 exc_resume ();
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 (eval $ac_try) 2>&5
6443 ac_status=$?
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_search_exc_resume="none required"
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 fi
6452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6453 if test "$ac_cv_search_exc_resume" = no; then
6454 for ac_lib in exc; do
6455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6456 cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6458 /* confdefs.h. */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463
6464 /* Override any gcc2 internal prototype to avoid an error. */
6465 #ifdef __cplusplus
6466 extern "C"
6467 #endif
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6470 char exc_resume ();
6471 int
6472 main ()
6473 {
6474 exc_resume ();
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_search_exc_resume="-l$ac_lib"
6492 break
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 fi
6498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6499 done
6500 fi
6501 LIBS=$ac_func_search_save_LIBS
6502 fi
6503 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6504 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6505 if test "$ac_cv_search_exc_resume" != no; then
6506 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6507
6508 fi
6509
6510 GNAT_LIBEXC="$LIBS"
6511 LIBS="$save_LIBS"
6512
6513
6514 # Some systems put ldexp and frexp in libm instead of libc; assume
6515 # they're both in the same place. jcf-dump needs them.
6516 save_LIBS="$LIBS"
6517 LIBS=
6518 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6519 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6520 if test "${ac_cv_search_ldexp+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 ac_func_search_save_LIBS=$LIBS
6524 ac_cv_search_ldexp=no
6525 cat >conftest.$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 #ifdef __cplusplus
6535 extern "C"
6536 #endif
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6539 char ldexp ();
6540 int
6541 main ()
6542 {
6543 ldexp ();
6544 ;
6545 return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -s conftest$ac_exeext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_search_ldexp="none required"
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6564
6565 fi
6566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6567 if test "$ac_cv_search_ldexp" = no; then
6568 for ac_lib in m; do
6569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6570 cat >conftest.$ac_ext <<_ACEOF
6571 #line $LINENO "configure"
6572 /* confdefs.h. */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577
6578 /* Override any gcc2 internal prototype to avoid an error. */
6579 #ifdef __cplusplus
6580 extern "C"
6581 #endif
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6584 char ldexp ();
6585 int
6586 main ()
6587 {
6588 ldexp ();
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest$ac_exeext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_search_ldexp="-l$ac_lib"
6606 break
6607 else
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 fi
6612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6613 done
6614 fi
6615 LIBS=$ac_func_search_save_LIBS
6616 fi
6617 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6618 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6619 if test "$ac_cv_search_ldexp" != no; then
6620 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6621
6622 fi
6623
6624 LDEXP_LIB="$LIBS"
6625 LIBS="$save_LIBS"
6626
6627
6628 # See if the stage1 system preprocessor understands the ANSI C
6629 # preprocessor stringification operator. (Used by symcat.h.)
6630 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6631 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
6632 if test "${ac_cv_c_stringize+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 #define x(y) #y
6643
6644 char *s = x(teststring);
6645 _ACEOF
6646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6647 $EGREP "#teststring" >/dev/null 2>&1; then
6648 ac_cv_c_stringize=no
6649 else
6650 ac_cv_c_stringize=yes
6651 fi
6652 rm -f conftest*
6653
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6656 echo "${ECHO_T}$ac_cv_c_stringize" >&6
6657 if test $ac_cv_c_stringize = yes; then
6658
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_STRINGIZE 1
6661 _ACEOF
6662
6663 fi
6664
6665
6666 # Use <inttypes.h> only if it exists,
6667 # doesn't clash with <sys/types.h>, and declares intmax_t.
6668 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6669 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6670 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673 cat >conftest.$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <inttypes.h>
6682 int
6683 main ()
6684 {
6685 intmax_t i = -1;
6686 ;
6687 return 0;
6688 }
6689 _ACEOF
6690 rm -f conftest.$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 (eval $ac_try) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 gcc_cv_header_inttypes_h=yes
6703 else
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.$ac_ext >&5
6706
6707 gcc_cv_header_inttypes_h=no
6708 fi
6709 rm -f conftest.$ac_objext conftest.$ac_ext
6710 fi
6711
6712 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6713 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6714 if test $gcc_cv_header_inttypes_h = yes; then
6715
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_INTTYPES_H 1
6718 _ACEOF
6719
6720 fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6747 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6748 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
6749 scandir alphasort gettimeofday mbstowcs wcswidth
6750 do
6751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6752 echo "$as_me:$LINENO: checking for $ac_func" >&5
6753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_var+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 /* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func (); below.
6766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6767 <limits.h> exists even on freestanding compilers. */
6768 #ifdef __STDC__
6769 # include <limits.h>
6770 #else
6771 # include <assert.h>
6772 #endif
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 #ifdef __cplusplus
6775 extern "C"
6776 {
6777 #endif
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6780 char $ac_func ();
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6785 choke me
6786 #else
6787 char (*f) () = $ac_func;
6788 #endif
6789 #ifdef __cplusplus
6790 }
6791 #endif
6792
6793 int
6794 main ()
6795 {
6796 return f != $ac_func;
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try='test -s conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 (eval $ac_try) 2>&5
6810 ac_status=$?
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 eval "$as_ac_var=yes"
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818 eval "$as_ac_var=no"
6819 fi
6820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6821 fi
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6824 if test `eval echo '${'$as_ac_var'}'` = yes; then
6825 cat >>confdefs.h <<_ACEOF
6826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6827 _ACEOF
6828
6829 fi
6830 done
6831
6832
6833 if test x$ac_cv_func_mbstowcs = xyes; then
6834 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6835 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6836 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839 if test "$cross_compiling" = yes; then
6840 gcc_cv_func_mbstowcs_works=yes
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 #include <stdlib.h>
6850 int main()
6851 {
6852 mbstowcs(0, "", 0);
6853 return 0;
6854 }
6855 _ACEOF
6856 rm -f conftest$ac_exeext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858 (eval $ac_link) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 gcc_cv_func_mbstowcs_works=yes
6868 else
6869 echo "$as_me: program exited with status $ac_status" >&5
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ( exit $ac_status )
6874 gcc_cv_func_mbstowcs_works=no
6875 fi
6876 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6877 fi
6878 fi
6879 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6880 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6881 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6882
6883 cat >>confdefs.h <<\_ACEOF
6884 #define HAVE_WORKING_MBSTOWCS 1
6885 _ACEOF
6886
6887 fi
6888 fi
6889
6890 echo "$as_me:$LINENO: checking for ssize_t" >&5
6891 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6892 if test "${ac_cv_type_ssize_t+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 cat >conftest.$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6903 int
6904 main ()
6905 {
6906 if ((ssize_t *) 0)
6907 return 0;
6908 if (sizeof (ssize_t))
6909 return 0;
6910 ;
6911 return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_type_ssize_t=yes
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ac_cv_type_ssize_t=no
6932 fi
6933 rm -f conftest.$ac_objext conftest.$ac_ext
6934 fi
6935 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6936 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6937 if test $ac_cv_type_ssize_t = yes; then
6938 :
6939 else
6940
6941 cat >>confdefs.h <<_ACEOF
6942 #define ssize_t int
6943 _ACEOF
6944
6945 fi
6946
6947
6948 # Try to determine the array type of the second argument of getgroups
6949 # for the target system (int or gid_t).
6950 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6951 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6952 if test "${ac_cv_type_uid_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955 cat >conftest.$ac_ext <<_ACEOF
6956 #line $LINENO "configure"
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <sys/types.h>
6963
6964 _ACEOF
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966 $EGREP "uid_t" >/dev/null 2>&1; then
6967 ac_cv_type_uid_t=yes
6968 else
6969 ac_cv_type_uid_t=no
6970 fi
6971 rm -f conftest*
6972
6973 fi
6974 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6975 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6976 if test $ac_cv_type_uid_t = no; then
6977
6978 cat >>confdefs.h <<\_ACEOF
6979 #define uid_t int
6980 _ACEOF
6981
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define gid_t int
6985 _ACEOF
6986
6987 fi
6988
6989 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6990 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6991 if test "${ac_cv_type_getgroups+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 if test "$cross_compiling" = yes; then
6995 ac_cv_type_getgroups=cross
6996 else
6997 cat >conftest.$ac_ext <<_ACEOF
6998 #line $LINENO "configure"
6999 /* confdefs.h. */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 /* Thanks to Mike Rendell for this test. */
7005 #include <sys/types.h>
7006 #define NGID 256
7007 #undef MAX
7008 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7009
7010 int
7011 main ()
7012 {
7013 gid_t gidset[NGID];
7014 int i, n;
7015 union { gid_t gval; long lval; } val;
7016
7017 val.lval = -1;
7018 for (i = 0; i < NGID; i++)
7019 gidset[i] = val.gval;
7020 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7021 gidset);
7022 /* Exit non-zero if getgroups seems to require an array of ints. This
7023 happens when gid_t is short but getgroups modifies an array of ints. */
7024 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7025 }
7026 _ACEOF
7027 rm -f conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_type_getgroups=gid_t
7039 else
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ( exit $ac_status )
7045 ac_cv_type_getgroups=int
7046 fi
7047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 if test $ac_cv_type_getgroups = cross; then
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <unistd.h>
7058
7059 _ACEOF
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7062 ac_cv_type_getgroups=gid_t
7063 else
7064 ac_cv_type_getgroups=int
7065 fi
7066 rm -f conftest*
7067
7068 fi
7069 fi
7070 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7071 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7072
7073 cat >>confdefs.h <<_ACEOF
7074 #define GETGROUPS_T $ac_cv_type_getgroups
7075 _ACEOF
7076
7077
7078 if test "${target}" = "${build}"; then
7079 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7080 else
7081 case "${target}" in
7082 # This condition may need some tweaking. It should include all
7083 # targets where the array type of the second argument of getgroups
7084 # is int and the type of gid_t is not equivalent to int.
7085 *-*-sunos* | *-*-ultrix*)
7086 TARGET_GETGROUPS_T=int
7087 ;;
7088 *)
7089 TARGET_GETGROUPS_T=gid_t
7090 ;;
7091 esac
7092 fi
7093
7094
7095 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7096 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7097 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 if test "$cross_compiling" = yes; then
7101 gcc_cv_func_printf_ptr=no
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 #include <stdio.h>
7111
7112 int main()
7113 {
7114 char buf[64];
7115 char *p = buf, *q = NULL;
7116 sprintf(buf, "%p", p);
7117 sscanf(buf, "%p", &q);
7118 return (p != q);
7119 }
7120 _ACEOF
7121 rm -f conftest$ac_exeext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 gcc_cv_func_printf_ptr=yes
7133 else
7134 echo "$as_me: program exited with status $ac_status" >&5
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 ( exit $ac_status )
7139 gcc_cv_func_printf_ptr=no
7140 fi
7141 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7142 fi
7143 rm -f core core.* *.core
7144 fi
7145 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7146 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7147 if test $gcc_cv_func_printf_ptr = yes ; then
7148
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_PRINTF_PTR 1
7151 _ACEOF
7152
7153 fi
7154
7155
7156 case "${host}" in
7157 *-*-uwin*)
7158 { { echo "$as_me:$LINENO: error:
7159 *** UWIN may not be used as a host platform because
7160 *** linking with posix.dll is not allowed by the GNU GPL" >&5
7161 echo "$as_me: error:
7162 *** UWIN may not be used as a host platform because
7163 *** linking with posix.dll is not allowed by the GNU GPL" >&2;}
7164 { (exit 1); exit 1; }; }
7165 ;;
7166 *-*-*vms*)
7167 # Under VMS, vfork works very different than on Unix. The standard test
7168 # won't work, and it isn't easily adaptable. It makes more sense to
7169 # just force it.
7170 ac_cv_func_vfork_works=yes
7171 ;;
7172 esac
7173 echo "$as_me:$LINENO: checking for pid_t" >&5
7174 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7175 if test "${ac_cv_type_pid_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 /* confdefs.h. */
7181 _ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 $ac_includes_default
7186 int
7187 main ()
7188 {
7189 if ((pid_t *) 0)
7190 return 0;
7191 if (sizeof (pid_t))
7192 return 0;
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199 (eval $ac_compile) 2>&5
7200 ac_status=$?
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_type_pid_t=yes
7210 else
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 ac_cv_type_pid_t=no
7215 fi
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7219 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7220 if test $ac_cv_type_pid_t = yes; then
7221 :
7222 else
7223
7224 cat >>confdefs.h <<_ACEOF
7225 #define pid_t int
7226 _ACEOF
7227
7228 fi
7229
7230
7231
7232 for ac_header in unistd.h vfork.h
7233 do
7234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 fi
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243 else
7244 # Is the header compilable?
7245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 /* confdefs.h. */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 #include <$ac_header>
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7260 ac_status=$?
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -s conftest.$ac_objext'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 ac_header_compiler=yes
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ac_header_compiler=no
7275 fi
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7279
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <$ac_header>
7291 _ACEOF
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } >/dev/null; then
7300 if test -s conftest.err; then
7301 ac_cpp_err=$ac_c_preproc_warn_flag
7302 else
7303 ac_cpp_err=
7304 fi
7305 else
7306 ac_cpp_err=yes
7307 fi
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc=yes
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_header_preproc=no
7315 fi
7316 rm -f conftest.err conftest.$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7319
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7322 yes:no )
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7327 (
7328 cat <<\_ASBOX
7329 ## ------------------------------------ ##
7330 ## Report this to bug-autoconf@gnu.org. ##
7331 ## ------------------------------------ ##
7332 _ASBOX
7333 ) |
7334 sed "s/^/$as_me: WARNING: /" >&2
7335 ;;
7336 no:yes )
7337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7343 (
7344 cat <<\_ASBOX
7345 ## ------------------------------------ ##
7346 ## Report this to bug-autoconf@gnu.org. ##
7347 ## ------------------------------------ ##
7348 _ASBOX
7349 ) |
7350 sed "s/^/$as_me: WARNING: /" >&2
7351 ;;
7352 esac
7353 echo "$as_me:$LINENO: checking for $ac_header" >&5
7354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358 eval "$as_ac_Header=$ac_header_preproc"
7359 fi
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362
7363 fi
7364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7365 cat >>confdefs.h <<_ACEOF
7366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 _ACEOF
7368
7369 fi
7370
7371 done
7372
7373
7374
7375 for ac_func in fork vfork
7376 do
7377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7378 echo "$as_me:$LINENO: checking for $ac_func" >&5
7379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_var+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 cat >conftest.$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 /* System header to define __stub macros and hopefully few prototypes,
7391 which can conflict with char $ac_func (); below.
7392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393 <limits.h> exists even on freestanding compilers. */
7394 #ifdef __STDC__
7395 # include <limits.h>
7396 #else
7397 # include <assert.h>
7398 #endif
7399 /* Override any gcc2 internal prototype to avoid an error. */
7400 #ifdef __cplusplus
7401 extern "C"
7402 {
7403 #endif
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7406 char $ac_func ();
7407 /* The GNU C library defines this for functions which it implements
7408 to always fail with ENOSYS. Some functions are actually named
7409 something starting with __ and the normal name is an alias. */
7410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7411 choke me
7412 #else
7413 char (*f) () = $ac_func;
7414 #endif
7415 #ifdef __cplusplus
7416 }
7417 #endif
7418
7419 int
7420 main ()
7421 {
7422 return f != $ac_func;
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7429 (eval $ac_link) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try='test -s conftest$ac_exeext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 eval "$as_ac_var=yes"
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7443
7444 eval "$as_ac_var=no"
7445 fi
7446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7447 fi
7448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7450 if test `eval echo '${'$as_ac_var'}'` = yes; then
7451 cat >>confdefs.h <<_ACEOF
7452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7453 _ACEOF
7454
7455 fi
7456 done
7457
7458 if test "x$ac_cv_func_fork" = xyes; then
7459 echo "$as_me:$LINENO: checking for working fork" >&5
7460 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7461 if test "${ac_cv_func_fork_works+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 if test "$cross_compiling" = yes; then
7465 ac_cv_func_fork_works=cross
7466 else
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* By Ruediger Kuhlmann. */
7469 #include <sys/types.h>
7470 #if HAVE_UNISTD_H
7471 # include <unistd.h>
7472 #endif
7473 /* Some systems only have a dummy stub for fork() */
7474 int main ()
7475 {
7476 if (fork() < 0)
7477 exit (1);
7478 exit (0);
7479 }
7480 _ACEOF
7481 rm -f conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_cv_func_fork_works=yes
7493 else
7494 echo "$as_me: program exited with status $ac_status" >&5
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7497
7498 ( exit $ac_status )
7499 ac_cv_func_fork_works=no
7500 fi
7501 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7502 fi
7503 fi
7504 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7505 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7506
7507 else
7508 ac_cv_func_fork_works=$ac_cv_func_fork
7509 fi
7510 if test "x$ac_cv_func_fork_works" = xcross; then
7511 case $host in
7512 *-*-amigaos* | *-*-msdosdjgpp*)
7513 # Override, as these systems have only a dummy fork() stub
7514 ac_cv_func_fork_works=no
7515 ;;
7516 *)
7517 ac_cv_func_fork_works=yes
7518 ;;
7519 esac
7520 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7521 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7522 fi
7523 ac_cv_func_vfork_works=$ac_cv_func_vfork
7524 if test "x$ac_cv_func_vfork" = xyes; then
7525 echo "$as_me:$LINENO: checking for working vfork" >&5
7526 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7527 if test "${ac_cv_func_vfork_works+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 if test "$cross_compiling" = yes; then
7531 ac_cv_func_vfork_works=cross
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7535 /* confdefs.h. */
7536 _ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 /* Thanks to Paul Eggert for this test. */
7541 #include <stdio.h>
7542 #include <stdlib.h>
7543 #include <sys/types.h>
7544 #include <sys/stat.h>
7545 #include <sys/wait.h>
7546 #if HAVE_UNISTD_H
7547 # include <unistd.h>
7548 #endif
7549 #if HAVE_VFORK_H
7550 # include <vfork.h>
7551 #endif
7552 /* On some sparc systems, changes by the child to local and incoming
7553 argument registers are propagated back to the parent. The compiler
7554 is told about this with #include <vfork.h>, but some compilers
7555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7556 static variable whose address is put into a register that is
7557 clobbered by the vfork. */
7558 static void
7559 #ifdef __cplusplus
7560 sparc_address_test (int arg)
7561 # else
7562 sparc_address_test (arg) int arg;
7563 #endif
7564 {
7565 static pid_t child;
7566 if (!child) {
7567 child = vfork ();
7568 if (child < 0) {
7569 perror ("vfork");
7570 _exit(2);
7571 }
7572 if (!child) {
7573 arg = getpid();
7574 write(-1, "", 0);
7575 _exit (arg);
7576 }
7577 }
7578 }
7579
7580 int
7581 main ()
7582 {
7583 pid_t parent = getpid ();
7584 pid_t child;
7585
7586 sparc_address_test (0);
7587
7588 child = vfork ();
7589
7590 if (child == 0) {
7591 /* Here is another test for sparc vfork register problems. This
7592 test uses lots of local variables, at least as many local
7593 variables as main has allocated so far including compiler
7594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7596 reuse the register of parent for one of the local variables,
7597 since it will think that parent can't possibly be used any more
7598 in this routine. Assigning to the local variable will thus
7599 munge parent in the parent process. */
7600 pid_t
7601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7603 /* Convince the compiler that p..p7 are live; otherwise, it might
7604 use the same hardware register for all 8 local variables. */
7605 if (p != p1 || p != p2 || p != p3 || p != p4
7606 || p != p5 || p != p6 || p != p7)
7607 _exit(1);
7608
7609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7610 from child file descriptors. If the child closes a descriptor
7611 before it execs or exits, this munges the parent's descriptor
7612 as well. Test for this by closing stdout in the child. */
7613 _exit(close(fileno(stdout)) != 0);
7614 } else {
7615 int status;
7616 struct stat st;
7617
7618 while (wait(&status) != child)
7619 ;
7620 exit(
7621 /* Was there some problem with vforking? */
7622 child < 0
7623
7624 /* Did the child fail? (This shouldn't happen.) */
7625 || status
7626
7627 /* Did the vfork/compiler bug occur? */
7628 || parent != getpid()
7629
7630 /* Did the file descriptor bug occur? */
7631 || fstat(fileno(stdout), &st) != 0
7632 );
7633 }
7634 }
7635 _ACEOF
7636 rm -f conftest$ac_exeext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7638 (eval $ac_link) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_func_vfork_works=yes
7648 else
7649 echo "$as_me: program exited with status $ac_status" >&5
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ( exit $ac_status )
7654 ac_cv_func_vfork_works=no
7655 fi
7656 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7660 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7661
7662 fi;
7663 if test "x$ac_cv_func_fork_works" = xcross; then
7664 ac_cv_func_vfork_works=ac_cv_func_vfork
7665 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7666 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7667 fi
7668
7669 if test "x$ac_cv_func_vfork_works" = xyes; then
7670
7671 cat >>confdefs.h <<\_ACEOF
7672 #define HAVE_WORKING_VFORK 1
7673 _ACEOF
7674
7675 else
7676
7677 cat >>confdefs.h <<\_ACEOF
7678 #define vfork fork
7679 _ACEOF
7680
7681 fi
7682 if test "x$ac_cv_func_fork_works" = xyes; then
7683
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_WORKING_FORK 1
7686 _ACEOF
7687
7688 fi
7689
7690
7691 for ac_func in getpagesize
7692 do
7693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7694 echo "$as_me:$LINENO: checking for $ac_func" >&5
7695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_var+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 cat >conftest.$ac_ext <<_ACEOF
7700 #line $LINENO "configure"
7701 /* confdefs.h. */
7702 _ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 /* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char $ac_func (); below.
7708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 <limits.h> exists even on freestanding compilers. */
7710 #ifdef __STDC__
7711 # include <limits.h>
7712 #else
7713 # include <assert.h>
7714 #endif
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 #ifdef __cplusplus
7717 extern "C"
7718 {
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char $ac_func ();
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7727 choke me
7728 #else
7729 char (*f) () = $ac_func;
7730 #endif
7731 #ifdef __cplusplus
7732 }
7733 #endif
7734
7735 int
7736 main ()
7737 {
7738 return f != $ac_func;
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 rm -f conftest.$ac_objext conftest$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7746 ac_status=$?
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7751 (eval $ac_try) 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 eval "$as_ac_var=yes"
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7759
7760 eval "$as_ac_var=no"
7761 fi
7762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7763 fi
7764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7766 if test `eval echo '${'$as_ac_var'}'` = yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7769 _ACEOF
7770
7771 fi
7772 done
7773
7774 # The test program for the next two tests is the same except for one
7775 # set of ifdefs.
7776 cat >ct-mmap.inc <<'EOF'
7777 #include <sys/types.h>
7778 #include <sys/mman.h>
7779 #include <fcntl.h>
7780 #include <signal.h>
7781 #include <setjmp.h>
7782 #include <stdio.h>
7783
7784 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
7785 # define MAP_ANONYMOUS MAP_ANON
7786 #endif
7787
7788 /* This mess was copied from the GNU getpagesize.h. */
7789 #ifndef HAVE_GETPAGESIZE
7790 # ifdef HAVE_UNISTD_H
7791 # include <unistd.h>
7792 # endif
7793
7794 /* Assume that all systems that can run configure have sys/param.h. */
7795 # ifndef HAVE_SYS_PARAM_H
7796 # define HAVE_SYS_PARAM_H 1
7797 # endif
7798
7799 # ifdef _SC_PAGESIZE
7800 # define getpagesize() sysconf(_SC_PAGESIZE)
7801 # else /* no _SC_PAGESIZE */
7802 # ifdef HAVE_SYS_PARAM_H
7803 # include <sys/param.h>
7804 # ifdef EXEC_PAGESIZE
7805 # define getpagesize() EXEC_PAGESIZE
7806 # else /* no EXEC_PAGESIZE */
7807 # ifdef NBPG
7808 # define getpagesize() NBPG * CLSIZE
7809 # ifndef CLSIZE
7810 # define CLSIZE 1
7811 # endif /* no CLSIZE */
7812 # else /* no NBPG */
7813 # ifdef NBPC
7814 # define getpagesize() NBPC
7815 # else /* no NBPC */
7816 # ifdef PAGESIZE
7817 # define getpagesize() PAGESIZE
7818 # endif /* PAGESIZE */
7819 # endif /* no NBPC */
7820 # endif /* no NBPG */
7821 # endif /* no EXEC_PAGESIZE */
7822 # else /* no HAVE_SYS_PARAM_H */
7823 # define getpagesize() 8192 /* punt totally */
7824 # endif /* no HAVE_SYS_PARAM_H */
7825 # endif /* no _SC_PAGESIZE */
7826
7827 #endif /* no HAVE_GETPAGESIZE */
7828
7829 #ifndef MAP_FAILED
7830 # define MAP_FAILED -1
7831 #endif
7832
7833 #undef perror_exit
7834 #define perror_exit(str, val) \
7835 do { perror(str); exit(val); } while (0)
7836
7837 /* Some versions of cygwin mmap require that munmap is called with the
7838 same parameters as mmap. GCC expects that this is not the case.
7839 Test for various forms of this problem. Warning - icky signal games. */
7840
7841 static sigset_t unblock_sigsegv;
7842 static jmp_buf r;
7843 static size_t pg;
7844 static int devzero;
7845
7846 static char *
7847 anonmap (size)
7848 size_t size;
7849 {
7850 #ifdef USE_MAP_ANON
7851 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
7852 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
7853 #else
7854 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
7855 MAP_PRIVATE, devzero, 0);
7856 #endif
7857 }
7858
7859 static void
7860 sigsegv (unused)
7861 int unused;
7862 {
7863 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
7864 longjmp (r, 1);
7865 }
7866
7867 /* Basic functionality test. */
7868 void
7869 test_0 ()
7870 {
7871 char *x = anonmap (pg);
7872 if (x == (char *) MAP_FAILED)
7873 perror_exit("test 0 mmap", 2);
7874
7875 *(int *)x += 1;
7876
7877 if (munmap(x, pg) < 0)
7878 perror_exit("test 0 munmap", 3);
7879 }
7880
7881 /* 1. If we map a 2-page region and unmap its second page, the first page
7882 must remain. */
7883 static void
7884 test_1 ()
7885 {
7886 char *x = anonmap (pg * 2);
7887 if (x == (char *)MAP_FAILED)
7888 perror_exit ("test 1 mmap", 4);
7889
7890 signal (SIGSEGV, sigsegv);
7891 if (setjmp (r))
7892 perror_exit ("test 1 fault", 5);
7893
7894 x[0] = 1;
7895 x[pg] = 1;
7896
7897 if (munmap (x + pg, pg) < 0)
7898 perror_exit ("test 1 munmap 1", 6);
7899 x[0] = 2;
7900
7901 if (setjmp (r) == 0)
7902 {
7903 x[pg] = 1;
7904 perror_exit ("test 1 no fault", 7);
7905 }
7906 if (munmap (x, pg) < 0)
7907 perror_exit ("test 1 munmap 2", 8);
7908 }
7909
7910 /* 2. If we map a 2-page region and unmap its first page, the second
7911 page must remain. */
7912 static void
7913 test_2 ()
7914 {
7915 char *x = anonmap (pg * 2);
7916 if (x == (char *)MAP_FAILED)
7917 perror_exit ("test 2 mmap", 9);
7918
7919 signal (SIGSEGV, sigsegv);
7920 if (setjmp (r))
7921 perror_exit ("test 2 fault", 10);
7922
7923 x[0] = 1;
7924 x[pg] = 1;
7925
7926 if (munmap (x, pg) < 0)
7927 perror_exit ("test 2 munmap 1", 11);
7928
7929 x[pg] = 2;
7930
7931 if (setjmp (r) == 0)
7932 {
7933 x[0] = 1;
7934 perror_exit ("test 2 no fault", 12);
7935 }
7936
7937 if (munmap (x+pg, pg) < 0)
7938 perror_exit ("test 2 munmap 2", 13);
7939 }
7940
7941 /* 3. If we map two adjacent 1-page regions and unmap them both with
7942 one munmap, both must go away.
7943
7944 Getting two adjacent 1-page regions with two mmap calls is slightly
7945 tricky. All OS's tested skip over already-allocated blocks; therefore
7946 we have been careful to unmap all allocated regions in previous tests.
7947 HP/UX allocates pages backward in memory. No OS has yet been observed
7948 to be so perverse as to leave unmapped space between consecutive calls
7949 to mmap. */
7950
7951 static void
7952 test_3 ()
7953 {
7954 char *x, *y, *z;
7955
7956 x = anonmap (pg);
7957 if (x == (char *)MAP_FAILED)
7958 perror_exit ("test 3 mmap 1", 14);
7959 y = anonmap (pg);
7960 if (y == (char *)MAP_FAILED)
7961 perror_exit ("test 3 mmap 2", 15);
7962
7963 if (y != x + pg)
7964 {
7965 if (y == x - pg)
7966 z = y, y = x, x = z;
7967 else
7968 {
7969 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
7970 (unsigned long)x, (unsigned long)y);
7971 exit (16);
7972 }
7973 }
7974
7975 signal (SIGSEGV, sigsegv);
7976 if (setjmp (r))
7977 perror_exit ("test 3 fault", 17);
7978
7979 x[0] = 1;
7980 y[0] = 1;
7981
7982 if (munmap (x, pg*2) < 0)
7983 perror_exit ("test 3 munmap", 18);
7984
7985 if (setjmp (r) == 0)
7986 {
7987 x[0] = 1;
7988 perror_exit ("test 3 no fault 1", 19);
7989 }
7990
7991 signal (SIGSEGV, sigsegv);
7992 if (setjmp (r) == 0)
7993 {
7994 y[0] = 1;
7995 perror_exit ("test 3 no fault 2", 20);
7996 }
7997 }
7998
7999 int
8000 main ()
8001 {
8002 sigemptyset (&unblock_sigsegv);
8003 sigaddset (&unblock_sigsegv, SIGSEGV);
8004 pg = getpagesize ();
8005 #ifndef USE_MAP_ANON
8006 devzero = open ("/dev/zero", O_RDWR);
8007 if (devzero < 0)
8008 perror_exit ("open /dev/zero", 1);
8009 #endif
8010
8011 test_0();
8012 test_1();
8013 test_2();
8014 test_3();
8015
8016 exit(0);
8017 }
8018 EOF
8019
8020 echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
8021 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6
8022 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 else
8025 if test "$cross_compiling" = yes; then
8026 # When cross-building, assume that this works, unless we know it
8027 # doesn't. Of course, we have no way of knowing if there even is a /dev/zero
8028 # on the host, let alone whether mmap will work on it.
8029 case "$host_os" in
8030 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
8031 darwin* ) ac_cv_func_mmap_dev_zero=no ;;
8032 * ) ac_cv_func_mmap_dev_zero=yes ;;
8033 esac
8034 else
8035 cat >conftest.$ac_ext <<_ACEOF
8036 #line $LINENO "configure"
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include "ct-mmap.inc"
8043 _ACEOF
8044 rm -f conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_func_mmap_dev_zero=yes
8056 else
8057 echo "$as_me: program exited with status $ac_status" >&5
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 ( exit $ac_status )
8062 if test $? -lt 4
8063 then ac_cv_func_mmap_dev_zero=no
8064 else ac_cv_func_mmap_dev_zero=buggy
8065 fi
8066 fi
8067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8068 fi
8069
8070 fi
8071 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
8072 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
8073 if test $ac_cv_func_mmap_dev_zero = yes; then
8074
8075 cat >>confdefs.h <<\_ACEOF
8076 #define HAVE_MMAP_DEV_ZERO 1
8077 _ACEOF
8078
8079 fi
8080
8081 echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
8082 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6
8083 if test "${ac_cv_func_mmap_anon+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 else
8086 if test "$cross_compiling" = yes; then
8087 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
8088 # just because it's there. Some SCO Un*xen define it but don't implement it.
8089 case "$host_os" in
8090 darwin* ) ac_cv_func_mmap_anon=yes ;;
8091 * ) ac_cv_func_mmap_anon=no ;;
8092 esac
8093 else
8094 cat >conftest.$ac_ext <<_ACEOF
8095 #line $LINENO "configure"
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #define USE_MAP_ANON
8102 #include "ct-mmap.inc"
8103 _ACEOF
8104 rm -f conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_cv_func_mmap_anon=yes
8116 else
8117 echo "$as_me: program exited with status $ac_status" >&5
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ( exit $ac_status )
8122 if test $? -lt 4
8123 then ac_cv_func_mmap_anon=no
8124 else ac_cv_func_mmap_anon=buggy
8125 fi
8126 fi
8127 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8128 fi
8129
8130 fi
8131 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
8132 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
8133 if test $ac_cv_func_mmap_anon = yes; then
8134
8135 cat >>confdefs.h <<\_ACEOF
8136 #define HAVE_MMAP_ANON 1
8137 _ACEOF
8138
8139 fi
8140 rm -f ct-mmap.inc
8141
8142 echo "$as_me:$LINENO: checking for working mmap of a file" >&5
8143 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6
8144 if test "${ac_cv_func_mmap_file+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147 # Create a file one thousand bytes long.
8148 for i in 1 2 3 4 5 6 7 8 9 0
8149 do for j in 1 2 3 4 5 6 7 8 9 0
8150 do echo $i $j xxxxx
8151 done
8152 done > conftestdata$$
8153
8154 if test "$cross_compiling" = yes; then
8155 case "$host_os" in
8156 darwin* ) ac_cv_func_mmap_file=yes ;;
8157 * ) ac_cv_func_mmap_file=no ;;
8158 esac
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167
8168 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
8169 Richard Henderson and Alexandre Oliva.
8170 Check whether read-only mmap of a plain file works. */
8171 #include <sys/types.h>
8172 #include <sys/stat.h>
8173 #include <fcntl.h>
8174 #include <sys/mman.h>
8175
8176 int main()
8177 {
8178 char *x;
8179 int fd;
8180 struct stat st;
8181
8182 fd = open("conftestdata$$", O_RDONLY);
8183 if (fd < 0)
8184 exit(1);
8185
8186 if (fstat (fd, &st))
8187 exit(2);
8188
8189 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
8190 if (x == (char *) -1)
8191 exit(3);
8192
8193 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
8194 exit(4);
8195
8196 if (munmap(x, st.st_size) < 0)
8197 exit(5);
8198
8199 exit(0);
8200 }
8201 _ACEOF
8202 rm -f conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 ac_cv_func_mmap_file=yes
8214 else
8215 echo "$as_me: program exited with status $ac_status" >&5
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ( exit $ac_status )
8220 ac_cv_func_mmap_file=no
8221 fi
8222 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 fi
8225 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
8226 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
8227 if test $ac_cv_func_mmap_file = yes; then
8228
8229 cat >>confdefs.h <<\_ACEOF
8230 #define HAVE_MMAP_FILE 1
8231 _ACEOF
8232
8233 fi
8234
8235
8236
8237
8238 am_cv_lib_iconv_ldpath=
8239
8240 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8241 if test "${with_libiconv_prefix+set}" = set; then
8242 withval="$with_libiconv_prefix"
8243
8244 for dir in `echo "$withval" | tr : ' '`; do
8245 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8246 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8247 done
8248
8249 fi;
8250
8251 echo "$as_me:$LINENO: checking for iconv" >&5
8252 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8253 if test "${am_cv_func_iconv+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256
8257 am_cv_func_iconv="no, consider installing GNU libiconv"
8258 am_cv_lib_iconv=no
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #include <stdlib.h>
8267 #include <iconv.h>
8268 int
8269 main ()
8270 {
8271 iconv_t cd = iconv_open("","");
8272 iconv(cd,NULL,NULL,NULL,NULL);
8273 iconv_close(cd);
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 am_cv_func_iconv=yes
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 if test "$am_cv_func_iconv" != yes; then
8298 am_save_LIBS="$LIBS"
8299 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 /* confdefs.h. */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8307 #include <stdlib.h>
8308 #include <iconv.h>
8309 int
8310 main ()
8311 {
8312 iconv_t cd = iconv_open("","");
8313 iconv(cd,NULL,NULL,NULL,NULL);
8314 iconv_close(cd);
8315 ;
8316 return 0;
8317 }
8318 _ACEOF
8319 rm -f conftest.$ac_objext conftest$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 am_cv_lib_iconv=yes
8332 am_cv_func_iconv=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 fi
8338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8339 LIBS="$am_save_LIBS"
8340 fi
8341
8342 fi
8343 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8344 echo "${ECHO_T}$am_cv_func_iconv" >&6
8345 if test "$am_cv_func_iconv" = yes; then
8346
8347 cat >>confdefs.h <<\_ACEOF
8348 #define HAVE_ICONV 1
8349 _ACEOF
8350
8351 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8352 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8353 if test "${am_cv_proto_iconv+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364
8365 #include <stdlib.h>
8366 #include <iconv.h>
8367 extern
8368 #ifdef __cplusplus
8369 "C"
8370 #endif
8371 #if defined(__STDC__) || defined(__cplusplus)
8372 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8373 #else
8374 size_t iconv();
8375 #endif
8376
8377 int
8378 main ()
8379 {
8380
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 am_cv_proto_iconv_arg1=""
8398 else
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 am_cv_proto_iconv_arg1="const"
8403 fi
8404 rm -f conftest.$ac_objext conftest.$ac_ext
8405 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);"
8406 fi
8407
8408 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8409 echo "$as_me:$LINENO: result: ${ac_t:-
8410 }$am_cv_proto_iconv" >&5
8411 echo "${ECHO_T}${ac_t:-
8412 }$am_cv_proto_iconv" >&6
8413
8414 cat >>confdefs.h <<_ACEOF
8415 #define ICONV_CONST $am_cv_proto_iconv_arg1
8416 _ACEOF
8417
8418 fi
8419 LIBICONV=
8420 if test "$am_cv_lib_iconv" = yes; then
8421 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8422 fi
8423
8424
8425
8426 # We will need to find libiberty.h and ansidecl.h
8427 saved_CFLAGS="$CFLAGS"
8428 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8429 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8430 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8431 fprintf_unlocked strstr errno vasprintf \
8432 malloc realloc calloc free basename getopt clock
8433 do
8434 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8435 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8436 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8437 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 #line $LINENO "configure"
8442 /* confdefs.h. */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 #undef $ac_tr_decl
8448 #define $ac_tr_decl 1
8449
8450 #include "ansidecl.h"
8451 #include "system.h"
8452
8453 int
8454 main ()
8455 {
8456 #ifndef $ac_func
8457 char *(*pfn) = (char *(*)) $ac_func ;
8458 #endif
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465 (eval $ac_compile) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 eval "gcc_cv_have_decl_$ac_func=yes"
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 eval "gcc_cv_have_decl_$ac_func=no"
8481 fi
8482 rm -f conftest.$ac_objext conftest.$ac_ext
8483 fi
8484
8485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8486 echo "$as_me:$LINENO: result: yes" >&5
8487 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8488 #define $ac_tr_decl 1
8489 _ACEOF
8490
8491 else
8492 echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8494 #define $ac_tr_decl 0
8495 _ACEOF
8496
8497 fi
8498
8499 done
8500 if test x = y ; then
8501
8502 cat >>confdefs.h <<\_ACEOF
8503 #define HAVE_DECL_GETENV 1
8504 _ACEOF
8505
8506 cat >>confdefs.h <<\_ACEOF
8507 #define HAVE_DECL_ATOL 1
8508 _ACEOF
8509
8510 cat >>confdefs.h <<\_ACEOF
8511 #define HAVE_DECL_SBRK 1
8512 _ACEOF
8513
8514 cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_DECL_ABORT 1
8516 _ACEOF
8517
8518 cat >>confdefs.h <<\_ACEOF
8519 #define HAVE_DECL_ATOF 1
8520 _ACEOF
8521
8522 cat >>confdefs.h <<\_ACEOF
8523 #define HAVE_DECL_GETCWD 1
8524 _ACEOF
8525
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_DECL_GETWD 1
8528 _ACEOF
8529 \
8530
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_DECL_STRSIGNAL 1
8533 _ACEOF
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_DECL_PUTC_UNLOCKED 1
8537 _ACEOF
8538
8539 cat >>confdefs.h <<\_ACEOF
8540 #define HAVE_DECL_FPUTS_UNLOCKED 1
8541 _ACEOF
8542
8543 cat >>confdefs.h <<\_ACEOF
8544 #define HAVE_DECL_FWRITE_UNLOCKED 1
8545 _ACEOF
8546 \
8547
8548 cat >>confdefs.h <<\_ACEOF
8549 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8550 _ACEOF
8551
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_DECL_STRSTR 1
8554 _ACEOF
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_DECL_ERRNO 1
8558 _ACEOF
8559
8560 cat >>confdefs.h <<\_ACEOF
8561 #define HAVE_DECL_VASPRINTF 1
8562 _ACEOF
8563 \
8564
8565 cat >>confdefs.h <<\_ACEOF
8566 #define HAVE_DECL_MALLOC 1
8567 _ACEOF
8568
8569 cat >>confdefs.h <<\_ACEOF
8570 #define HAVE_DECL_REALLOC 1
8571 _ACEOF
8572
8573 cat >>confdefs.h <<\_ACEOF
8574 #define HAVE_DECL_CALLOC 1
8575 _ACEOF
8576
8577 cat >>confdefs.h <<\_ACEOF
8578 #define HAVE_DECL_FREE 1
8579 _ACEOF
8580
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_DECL_BASENAME 1
8583 _ACEOF
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_DECL_GETOPT 1
8587 _ACEOF
8588
8589 cat >>confdefs.h <<\_ACEOF
8590 #define HAVE_DECL_CLOCK 1
8591 _ACEOF
8592 fi
8593
8594
8595 for ac_func in getrlimit setrlimit getrusage
8596 do
8597 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8598 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8599 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8600 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 #undef $ac_tr_decl
8611 #define $ac_tr_decl 1
8612
8613 #include "ansidecl.h"
8614 #include "system.h"
8615 #ifdef HAVE_SYS_RESOURCE_H
8616 #include <sys/resource.h>
8617 #endif
8618
8619
8620 int
8621 main ()
8622 {
8623 #ifndef $ac_func
8624 char *(*pfn) = (char *(*)) $ac_func ;
8625 #endif
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 eval "gcc_cv_have_decl_$ac_func=yes"
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 eval "gcc_cv_have_decl_$ac_func=no"
8648 fi
8649 rm -f conftest.$ac_objext conftest.$ac_ext
8650 fi
8651
8652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8653 echo "$as_me:$LINENO: result: yes" >&5
8654 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8655 #define $ac_tr_decl 1
8656 _ACEOF
8657
8658 else
8659 echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8661 #define $ac_tr_decl 0
8662 _ACEOF
8663
8664 fi
8665
8666 done
8667 if test x = y ; then
8668
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_DECL_GETRLIMIT 1
8671 _ACEOF
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_DECL_SETRLIMIT 1
8675 _ACEOF
8676
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_DECL_GETRUSAGE 1
8679 _ACEOF
8680 fi
8681
8682
8683 cat >conftest.$ac_ext <<_ACEOF
8684 #line $LINENO "configure"
8685 /* confdefs.h. */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690
8691 #include "ansidecl.h"
8692 #include "system.h"
8693 #ifdef HAVE_SYS_RESOURCE_H
8694 #include <sys/resource.h>
8695 #endif
8696
8697 int
8698 main ()
8699 {
8700 rlim_t l = 0;
8701 ;
8702 return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 :
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722
8723 cat >>confdefs.h <<\_ACEOF
8724 #define rlim_t long
8725 _ACEOF
8726
8727 fi
8728 rm -f conftest.$ac_objext conftest.$ac_ext
8729
8730 for ac_func in ldgetname
8731 do
8732 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8733 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8734 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8735 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 #undef $ac_tr_decl
8746 #define $ac_tr_decl 1
8747
8748 #include "ansidecl.h"
8749 #include "system.h"
8750 #ifdef HAVE_LDFCN_H
8751 #include <ldfcn.h>
8752 #endif
8753
8754
8755 int
8756 main ()
8757 {
8758 #ifndef $ac_func
8759 char *(*pfn) = (char *(*)) $ac_func ;
8760 #endif
8761 ;
8762 return 0;
8763 }
8764 _ACEOF
8765 rm -f conftest.$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 (eval $ac_try) 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 eval "gcc_cv_have_decl_$ac_func=yes"
8778 else
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 eval "gcc_cv_have_decl_$ac_func=no"
8783 fi
8784 rm -f conftest.$ac_objext conftest.$ac_ext
8785 fi
8786
8787 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8788 echo "$as_me:$LINENO: result: yes" >&5
8789 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8790 #define $ac_tr_decl 1
8791 _ACEOF
8792
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8796 #define $ac_tr_decl 0
8797 _ACEOF
8798
8799 fi
8800
8801 done
8802 if test x = y ; then
8803
8804 cat >>confdefs.h <<\_ACEOF
8805 #define HAVE_DECL_LDGETNAME 1
8806 _ACEOF
8807 fi
8808
8809
8810 for ac_func in times
8811 do
8812 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8813 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8814 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8815 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 #line $LINENO "configure"
8820 /* confdefs.h. */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 #undef $ac_tr_decl
8826 #define $ac_tr_decl 1
8827
8828 #include "ansidecl.h"
8829 #include "system.h"
8830 #ifdef HAVE_SYS_TIMES_H
8831 #include <sys/times.h>
8832 #endif
8833
8834
8835 int
8836 main ()
8837 {
8838 #ifndef $ac_func
8839 char *(*pfn) = (char *(*)) $ac_func ;
8840 #endif
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 eval "gcc_cv_have_decl_$ac_func=yes"
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 eval "gcc_cv_have_decl_$ac_func=no"
8863 fi
8864 rm -f conftest.$ac_objext conftest.$ac_ext
8865 fi
8866
8867 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8868 echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8870 #define $ac_tr_decl 1
8871 _ACEOF
8872
8873 else
8874 echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8876 #define $ac_tr_decl 0
8877 _ACEOF
8878
8879 fi
8880
8881 done
8882 if test x = y ; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_DECL_TIMES 1
8886 _ACEOF
8887 fi
8888
8889
8890 # More time-related stuff.
8891 echo "$as_me:$LINENO: checking for struct tms" >&5
8892 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8893 if test "${ac_cv_struct_tms+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896
8897 cat >conftest.$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8899 /* confdefs.h. */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904
8905 #include "ansidecl.h"
8906 #include "system.h"
8907 #ifdef HAVE_SYS_TIMES_H
8908 #include <sys/times.h>
8909 #endif
8910
8911 int
8912 main ()
8913 {
8914 struct tms tms;
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_struct_tms=yes
8932 else
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_cv_struct_tms=no
8937 fi
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8941 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8942 if test $ac_cv_struct_tms = yes; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_STRUCT_TMS 1
8946 _ACEOF
8947
8948 fi
8949
8950 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8951 # revisit after autoconf 2.50.
8952 echo "$as_me:$LINENO: checking for clock_t" >&5
8953 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8954 if test "${gcc_cv_type_clock_t+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957
8958 cat >conftest.$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8960 /* confdefs.h. */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965
8966 #include "ansidecl.h"
8967 #include "system.h"
8968
8969 int
8970 main ()
8971 {
8972 clock_t x;
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -s conftest.$ac_objext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 gcc_cv_type_clock_t=yes
8990 else
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 gcc_cv_type_clock_t=no
8995 fi
8996 rm -f conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8999 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
9000 if test $gcc_cv_type_clock_t = yes; then
9001
9002 cat >>confdefs.h <<\_ACEOF
9003 #define HAVE_CLOCK_T 1
9004 _ACEOF
9005
9006 fi
9007
9008 echo "$as_me:$LINENO: checking for uchar" >&5
9009 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
9010 if test "${gcc_cv_type_uchar+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020
9021 #include "ansidecl.h"
9022 #include "system.h"
9023
9024 int
9025 main ()
9026 {
9027 if ((uchar *)0) return 0;
9028 if (sizeof(uchar)) return 0;
9029 ;
9030 return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9035 (eval $ac_compile) 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -s conftest.$ac_objext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_type_uchar=yes
9046 else
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ac_cv_type_uchar=no
9051 fi
9052 rm -f conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
9055 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
9056 if test $ac_cv_type_uchar = yes; then
9057
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_UCHAR 1
9060 _ACEOF
9061
9062 fi
9063
9064 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9065 CFLAGS="$saved_CFLAGS"
9066
9067 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9068 if test "${enable_initfini_array+set}" = set; then
9069 enableval="$enable_initfini_array"
9070
9071 else
9072
9073 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9074 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9075 if test "${gcc_cv_initfini_array+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078 if test "$cross_compiling" = yes; then
9079 gcc_cv_initfini_array=no
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9083 /* confdefs.h. */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088
9089 static int x = -1;
9090 int main (void) { return x; }
9091 int foo (void) { x = 0; }
9092 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9093 _ACEOF
9094 rm -f conftest$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 gcc_cv_initfini_array=yes
9106 else
9107 echo "$as_me: program exited with status $ac_status" >&5
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9110
9111 ( exit $ac_status )
9112 gcc_cv_initfini_array=no
9113 fi
9114 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9115 fi
9116 fi
9117 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9118 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9119 enable_initfini_array=$gcc_cv_initfini_array
9120
9121 fi;
9122 if test $enable_initfini_array = yes; then
9123
9124 cat >>confdefs.h <<\_ACEOF
9125 #define HAVE_INITFINI_ARRAY 1
9126 _ACEOF
9127
9128 fi
9129
9130 # mkdir takes a single argument on some systems.
9131 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9132 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9133 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143
9144 #include <sys/types.h>
9145 #ifdef HAVE_SYS_STAT_H
9146 # include <sys/stat.h>
9147 #endif
9148 #ifdef HAVE_UNISTD_H
9149 # include <unistd.h>
9150 #endif
9151 #ifdef HAVE_DIRECT_H
9152 # include <direct.h>
9153 #endif
9154 int
9155 main ()
9156 {
9157 mkdir ("foo", 0);
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 gcc_cv_mkdir_takes_one_arg=no
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179 gcc_cv_mkdir_takes_one_arg=yes
9180 fi
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9184 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9185 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9186
9187 cat >>confdefs.h <<\_ACEOF
9188 #define MKDIR_TAKES_ONE_ARG 1
9189 _ACEOF
9190
9191 fi
9192
9193
9194 # File extensions
9195 manext='.1'
9196 objext='.o'
9197
9198
9199
9200 # With Setjmp/Longjmp based exception handling.
9201 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9202 if test "${enable_sjlj_exceptions+set}" = set; then
9203 enableval="$enable_sjlj_exceptions"
9204 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9205
9206 cat >>confdefs.h <<_ACEOF
9207 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9208 _ACEOF
9209
9210 fi;
9211
9212 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9213 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9214 if test "${ac_cv_lib_unwind_main+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217 ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-lunwind $LIBS"
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9221 /* confdefs.h. */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9226
9227
9228 int
9229 main ()
9230 {
9231 main ();
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_unwind_main=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 ac_cv_lib_unwind_main=no
9254 fi
9255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9257 fi
9258 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9259 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9260 if test $ac_cv_lib_unwind_main = yes; then
9261 use_libunwind_default=yes
9262 else
9263 use_libunwind_default=no
9264 fi
9265
9266 # Use libunwind based exception handling.
9267 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9268 if test "${enable_libunwind_exceptions+set}" = set; then
9269 enableval="$enable_libunwind_exceptions"
9270 use_libunwind_exceptions=$enableval
9271 else
9272 use_libunwind_exceptions=$use_libunwind_default
9273 fi;
9274 if test x"$use_libunwind_exceptions" = xyes; then
9275
9276 cat >>confdefs.h <<\_ACEOF
9277 #define USE_LIBUNWIND_EXCEPTIONS 1
9278 _ACEOF
9279
9280 fi
9281
9282 # --------------------------------------------------------
9283 # Build, host, and target specific configuration fragments
9284 # --------------------------------------------------------
9285
9286 target_gtfiles=
9287 build_xm_file=
9288 build_xm_defines=
9289 build_install_headers_dir=install-headers-tar
9290 build_exeext=
9291 host_xm_file=
9292 host_xm_defines=
9293 host_xmake_file=
9294 host_truncate_target=
9295 host_exeext=
9296
9297 # Decode the host machine, then the target machine.
9298 # For the host machine, we save the xm_file variable as host_xm_file;
9299 # then we decode the target machine and forget everything else
9300 # that came from the host machine.
9301 for machine in $build $host $target; do
9302 . ${srcdir}/config.gcc
9303 done
9304
9305 extra_objs="${host_extra_objs} ${extra_objs}"
9306
9307 # Default the target-machine variables that were not explicitly set.
9308 if test x"$tm_file" = x
9309 then tm_file=$cpu_type/$cpu_type.h; fi
9310
9311 if test x"$extra_headers" = x
9312 then extra_headers=; fi
9313
9314 if test x$md_file = x
9315 then md_file=$cpu_type/$cpu_type.md; fi
9316
9317 if test x$out_file = x
9318 then out_file=$cpu_type/$cpu_type.c; fi
9319
9320 if test x"$tmake_file" = x
9321 then tmake_file=$cpu_type/t-$cpu_type
9322 fi
9323
9324 if test x"$dwarf2" = xyes
9325 then tm_file="$tm_file tm-dwarf2.h"
9326 fi
9327
9328 # Say what files are being used for the output code and MD file.
9329 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9330 echo "Using \`$srcdir/config/$md_file' as machine description file."
9331
9332 # If any of the xm_file variables contain nonexistent files, warn
9333 # about them and drop them.
9334
9335 bx=
9336 for x in $build_xm_file; do
9337 if test -f $srcdir/config/$x
9338 then bx="$bx $x"
9339 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9340 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9341 fi
9342 done
9343 build_xm_file="$bx"
9344
9345 hx=
9346 for x in $host_xm_file; do
9347 if test -f $srcdir/config/$x
9348 then hx="$hx $x"
9349 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9350 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9351 fi
9352 done
9353 host_xm_file="$hx"
9354
9355 tx=
9356 for x in $xm_file; do
9357 if test -f $srcdir/config/$x
9358 then tx="$tx $x"
9359 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9360 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9361 fi
9362 done
9363 xm_file="$tx"
9364
9365 count=a
9366 for f in $tm_file; do
9367 count=${count}x
9368 done
9369 if test $count = ax; then
9370 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9371 else
9372 echo "Using the following target machine macro files:"
9373 for f in $tm_file; do
9374 echo " $srcdir/config/$f"
9375 done
9376 fi
9377
9378 if test x$need_64bit_hwint = xyes; then
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define NEED_64BIT_HOST_WIDE_INT 1
9382 _ACEOF
9383
9384 fi
9385
9386 count=a
9387 for f in $host_xm_file; do
9388 count=${count}x
9389 done
9390 if test $count = a; then
9391 :
9392 elif test $count = ax; then
9393 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9394 else
9395 echo "Using the following host machine macro files:"
9396 for f in $host_xm_file; do
9397 echo " $srcdir/config/$f"
9398 done
9399 fi
9400 echo "Using ${out_host_hook_obj} for host machine hooks."
9401
9402 if test "$host_xm_file" != "$build_xm_file"; then
9403 count=a
9404 for f in $build_xm_file; do
9405 count=${count}x
9406 done
9407 if test $count = a; then
9408 :
9409 elif test $count = ax; then
9410 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9411 else
9412 echo "Using the following build machine macro files:"
9413 for f in $build_xm_file; do
9414 echo " $srcdir/config/$f"
9415 done
9416 fi
9417 fi
9418
9419 if test x$thread_file = x; then
9420 if test x$target_thread_file != x; then
9421 thread_file=$target_thread_file
9422 else
9423 thread_file='single'
9424 fi
9425 fi
9426
9427 # Look for a file containing extra machine modes.
9428 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9429 extra_modes_file='$(srcdir)'/config/${extra_modes}
9430
9431
9432 cat >>confdefs.h <<_ACEOF
9433 #define EXTRA_MODES_FILE "$extra_modes"
9434 _ACEOF
9435
9436
9437 cat >>confdefs.h <<\_ACEOF
9438 #define EXTRA_CC_MODES 1
9439 _ACEOF
9440
9441 fi
9442
9443 # auto-host.h is the file containing items generated by autoconf and is
9444 # the first file included by config.h.
9445 # If host=build, it is correct to have bconfig include auto-host.h
9446 # as well. If host!=build, we are in error and need to do more
9447 # work to find out the build config parameters.
9448 if test x$host = x$build
9449 then
9450 build_auto=auto-host.h
9451 FORBUILD=..
9452 else
9453 # We create a subdir, then run autoconf in the subdir.
9454 # To prevent recursion we set host and build for the new
9455 # invocation of configure to the build for this invocation
9456 # of configure.
9457 tempdir=build.$$
9458 rm -rf $tempdir
9459 mkdir $tempdir
9460 cd $tempdir
9461 case ${srcdir} in
9462 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9463 *) realsrcdir=../${srcdir};;
9464 esac
9465 saved_CFLAGS="${CFLAGS}"
9466 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9467 ${realsrcdir}/configure \
9468 --target=$target_alias --host=$build_alias --build=$build_alias
9469 CFLAGS="${saved_CFLAGS}"
9470
9471 # We just finished tests for the build machine, so rename
9472 # the file auto-build.h in the gcc directory.
9473 mv auto-host.h ../auto-build.h
9474 cd ..
9475 rm -rf $tempdir
9476 build_auto=auto-build.h
9477 FORBUILD=../build-$build_alias
9478 fi
9479
9480
9481 tm_file="${tm_file} defaults.h"
9482 tm_p_file="${tm_p_file} tm-preds.h"
9483 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9484 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9485 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9486 # put this back in temporarily.
9487 xm_file="ansidecl.h ${xm_file}"
9488
9489 # --------
9490 # UNSORTED
9491 # --------
9492
9493 # Truncate the target if necessary
9494 if test x$host_truncate_target != x; then
9495 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
9496 fi
9497
9498 # Get the version trigger filename from the toplevel
9499 if test "${with_gcc_version_trigger+set}" = set; then
9500 gcc_version_trigger=$with_gcc_version_trigger
9501 else
9502 gcc_version_trigger=${srcdir}/version.c
9503 fi
9504 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9505 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9506
9507 # Compile in configure arguments.
9508 if test -f configargs.h ; then
9509 # Being re-configured.
9510 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9511 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9512 else
9513 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9514 fi
9515 cat > configargs.h <<EOF
9516 /* Generated automatically. */
9517 static const char configuration_arguments[] = "$gcc_config_arguments";
9518 static const char thread_model[] = "$thread_file";
9519 EOF
9520
9521 # Internationalization
9522 PACKAGE=gcc
9523 VERSION="$gcc_version"
9524
9525
9526
9527 # Enable NLS support by default
9528 # Check whether --enable-nls or --disable-nls was given.
9529 if test "${enable_nls+set}" = set; then
9530 enableval="$enable_nls"
9531
9532 else
9533 enable_nls=yes
9534 fi;
9535
9536 # if cross compiling, disable NLS support.
9537 # It's not worth the trouble, at least for now.
9538
9539 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
9540 { echo "$as_me:$LINENO: WARNING: Disabling NLS support for canadian cross compiler." >&5
9541 echo "$as_me: WARNING: Disabling NLS support for canadian cross compiler." >&2;}
9542 enable_nls=no
9543 fi
9544
9545
9546 echo "$as_me:$LINENO: checking for library containing strerror" >&5
9547 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
9548 if test "${ac_cv_search_strerror+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 ac_func_search_save_LIBS=$LIBS
9552 ac_cv_search_strerror=no
9553 cat >conftest.$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9555 /* confdefs.h. */
9556 _ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560
9561 /* Override any gcc2 internal prototype to avoid an error. */
9562 #ifdef __cplusplus
9563 extern "C"
9564 #endif
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9567 char strerror ();
9568 int
9569 main ()
9570 {
9571 strerror ();
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_search_strerror="none required"
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 fi
9594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9595 if test "$ac_cv_search_strerror" = no; then
9596 for ac_lib in cposix; do
9597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605
9606 /* Override any gcc2 internal prototype to avoid an error. */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9612 char strerror ();
9613 int
9614 main ()
9615 {
9616 strerror ();
9617 ;
9618 return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext conftest$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 (eval $ac_try) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_search_strerror="-l$ac_lib"
9634 break
9635 else
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 fi
9640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9641 done
9642 fi
9643 LIBS=$ac_func_search_save_LIBS
9644 fi
9645 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
9646 echo "${ECHO_T}$ac_cv_search_strerror" >&6
9647 if test "$ac_cv_search_strerror" != no; then
9648 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
9649
9650 fi
9651
9652
9653
9654 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9655 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9656 if test "${ac_cv_c_const+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666
9667 int
9668 main ()
9669 {
9670 /* FIXME: Include the comments suggested by Paul. */
9671 #ifndef __cplusplus
9672 /* Ultrix mips cc rejects this. */
9673 typedef int charset[2];
9674 const charset x;
9675 /* SunOS 4.1.1 cc rejects this. */
9676 char const *const *ccp;
9677 char **p;
9678 /* NEC SVR4.0.2 mips cc rejects this. */
9679 struct point {int x, y;};
9680 static struct point const zero = {0,0};
9681 /* AIX XL C 1.02.0.0 rejects this.
9682 It does not let you subtract one const X* pointer from another in
9683 an arm of an if-expression whose if-part is not a constant
9684 expression */
9685 const char *g = "string";
9686 ccp = &g + (g ? g-g : 0);
9687 /* HPUX 7.0 cc rejects these. */
9688 ++ccp;
9689 p = (char**) ccp;
9690 ccp = (char const *const *) p;
9691 { /* SCO 3.2v4 cc rejects this. */
9692 char *t;
9693 char const *s = 0 ? (char *) 0 : (char const *) 0;
9694
9695 *t++ = 0;
9696 }
9697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9698 int x[] = {25, 17};
9699 const int *foo = &x[0];
9700 ++foo;
9701 }
9702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9703 typedef const int *iptr;
9704 iptr p = 0;
9705 ++p;
9706 }
9707 { /* AIX XL C 1.02.0.0 rejects this saying
9708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9709 struct s { int j; const int *ap[3]; };
9710 struct s *b; b->j = 5;
9711 }
9712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9713 const int foo = 10;
9714 }
9715 #endif
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 rm -f conftest.$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_c_const=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_cv_c_const=no
9739 fi
9740 rm -f conftest.$ac_objext conftest.$ac_ext
9741 fi
9742 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9743 echo "${ECHO_T}$ac_cv_c_const" >&6
9744 if test $ac_cv_c_const = no; then
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define const
9748 _ACEOF
9749
9750 fi
9751
9752 echo "$as_me:$LINENO: checking for off_t" >&5
9753 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9754 if test "${ac_cv_type_off_t+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757 cat >conftest.$ac_ext <<_ACEOF
9758 #line $LINENO "configure"
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 $ac_includes_default
9765 int
9766 main ()
9767 {
9768 if ((off_t *) 0)
9769 return 0;
9770 if (sizeof (off_t))
9771 return 0;
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778 (eval $ac_compile) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_type_off_t=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_cv_type_off_t=no
9794 fi
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9796 fi
9797 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9798 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9799 if test $ac_cv_type_off_t = yes; then
9800 :
9801 else
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define off_t long
9805 _ACEOF
9806
9807 fi
9808
9809 echo "$as_me:$LINENO: checking for size_t" >&5
9810 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9811 if test "${ac_cv_type_size_t+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 #line $LINENO "configure"
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9821 $ac_includes_default
9822 int
9823 main ()
9824 {
9825 if ((size_t *) 0)
9826 return 0;
9827 if (sizeof (size_t))
9828 return 0;
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_type_size_t=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_cv_type_size_t=no
9851 fi
9852 rm -f conftest.$ac_objext conftest.$ac_ext
9853 fi
9854 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9855 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9856 if test $ac_cv_type_size_t = yes; then
9857 :
9858 else
9859
9860 cat >>confdefs.h <<_ACEOF
9861 #define size_t unsigned
9862 _ACEOF
9863
9864 fi
9865
9866 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9867 # for constant arguments. Useless!
9868 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9869 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9870 if test "${ac_cv_working_alloca_h+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873 cat >conftest.$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 #include <alloca.h>
9881 int
9882 main ()
9883 {
9884 char *p = (char *) alloca (2 * sizeof (int));
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>&5
9892 ac_status=$?
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try='test -s conftest$ac_exeext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897 (eval $ac_try) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_working_alloca_h=yes
9902 else
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_cv_working_alloca_h=no
9907 fi
9908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9909 fi
9910 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9911 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9912 if test $ac_cv_working_alloca_h = yes; then
9913
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_ALLOCA_H 1
9916 _ACEOF
9917
9918 fi
9919
9920 echo "$as_me:$LINENO: checking for alloca" >&5
9921 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9922 if test "${ac_cv_func_alloca_works+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925 cat >conftest.$ac_ext <<_ACEOF
9926 #line $LINENO "configure"
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 #ifdef __GNUC__
9933 # define alloca __builtin_alloca
9934 #else
9935 # ifdef _MSC_VER
9936 # include <malloc.h>
9937 # define alloca _alloca
9938 # else
9939 # if HAVE_ALLOCA_H
9940 # include <alloca.h>
9941 # else
9942 # ifdef _AIX
9943 #pragma alloca
9944 # else
9945 # ifndef alloca /* predefined by HP cc +Olibcalls */
9946 char *alloca ();
9947 # endif
9948 # endif
9949 # endif
9950 # endif
9951 #endif
9952
9953 int
9954 main ()
9955 {
9956 char *p = (char *) alloca (1);
9957 ;
9958 return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_func_alloca_works=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_cv_func_alloca_works=no
9979 fi
9980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9981 fi
9982 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9983 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9984
9985 if test $ac_cv_func_alloca_works = yes; then
9986
9987 cat >>confdefs.h <<\_ACEOF
9988 #define HAVE_ALLOCA 1
9989 _ACEOF
9990
9991 else
9992 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9993 # that cause trouble. Some versions do not even contain alloca or
9994 # contain a buggy version. If you still want to use their alloca,
9995 # use ar to extract alloca.o from them instead of compiling alloca.c.
9996
9997 ALLOCA=alloca.$ac_objext
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define C_ALLOCA 1
10001 _ACEOF
10002
10003
10004 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10005 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10006 if test "${ac_cv_os_cray+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #if defined(CRAY) && ! defined(CRAY2)
10017 webecray
10018 #else
10019 wenotbecray
10020 #endif
10021
10022 _ACEOF
10023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10024 $EGREP "webecray" >/dev/null 2>&1; then
10025 ac_cv_os_cray=yes
10026 else
10027 ac_cv_os_cray=no
10028 fi
10029 rm -f conftest*
10030
10031 fi
10032 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10033 echo "${ECHO_T}$ac_cv_os_cray" >&6
10034 if test $ac_cv_os_cray = yes; then
10035 for ac_func in _getb67 GETB67 getb67; do
10036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10037 echo "$as_me:$LINENO: checking for $ac_func" >&5
10038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_var+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10053 #ifdef __STDC__
10054 # include <limits.h>
10055 #else
10056 # include <assert.h>
10057 #endif
10058 /* Override any gcc2 internal prototype to avoid an error. */
10059 #ifdef __cplusplus
10060 extern "C"
10061 {
10062 #endif
10063 /* We use char because int might match the return type of a gcc2
10064 builtin and then its argument prototype would still apply. */
10065 char $ac_func ();
10066 /* The GNU C library defines this for functions which it implements
10067 to always fail with ENOSYS. Some functions are actually named
10068 something starting with __ and the normal name is an alias. */
10069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10070 choke me
10071 #else
10072 char (*f) () = $ac_func;
10073 #endif
10074 #ifdef __cplusplus
10075 }
10076 #endif
10077
10078 int
10079 main ()
10080 {
10081 return f != $ac_func;
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>&5
10089 ac_status=$?
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 eval "$as_ac_var=yes"
10099 else
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103 eval "$as_ac_var=no"
10104 fi
10105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106 fi
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10109 if test `eval echo '${'$as_ac_var'}'` = yes; then
10110
10111 cat >>confdefs.h <<_ACEOF
10112 #define CRAY_STACKSEG_END $ac_func
10113 _ACEOF
10114
10115 break
10116 fi
10117
10118 done
10119 fi
10120
10121 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10122 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10123 if test "${ac_cv_c_stack_direction+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 else
10126 if test "$cross_compiling" = yes; then
10127 ac_cv_c_stack_direction=0
10128 else
10129 cat >conftest.$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 int
10137 find_stack_direction ()
10138 {
10139 static char *addr = 0;
10140 auto char dummy;
10141 if (addr == 0)
10142 {
10143 addr = &dummy;
10144 return find_stack_direction ();
10145 }
10146 else
10147 return (&dummy > addr) ? 1 : -1;
10148 }
10149
10150 int
10151 main ()
10152 {
10153 exit (find_stack_direction () < 0);
10154 }
10155 _ACEOF
10156 rm -f conftest$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_c_stack_direction=1
10168 else
10169 echo "$as_me: program exited with status $ac_status" >&5
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ( exit $ac_status )
10174 ac_cv_c_stack_direction=-1
10175 fi
10176 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10177 fi
10178 fi
10179 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10180 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10181
10182 cat >>confdefs.h <<_ACEOF
10183 #define STACK_DIRECTION $ac_cv_c_stack_direction
10184 _ACEOF
10185
10186
10187 fi
10188
10189
10190 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10191 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
10192 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202
10203 #include <features.h>
10204 #ifdef __GNU_LIBRARY__
10205 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10206 Lucky GNU user
10207 #endif
10208 #endif
10209
10210 _ACEOF
10211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10212 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10213 ac_cv_gnu_library_2_1=yes
10214 else
10215 ac_cv_gnu_library_2_1=no
10216 fi
10217 rm -f conftest*
10218
10219
10220
10221 fi
10222 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10223 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
10224
10225 GLIBC21="$ac_cv_gnu_library_2_1"
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10240 stdlib.h string.h unistd.h sys/param.h
10241 do
10242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 fi
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10251 else
10252 # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 #include <$ac_header>
10264 _ACEOF
10265 rm -f conftest.$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_header_compiler=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_header_compiler=no
10283 fi
10284 rm -f conftest.$ac_objext conftest.$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286 echo "${ECHO_T}$ac_header_compiler" >&6
10287
10288 # Is the header present?
10289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <$ac_header>
10299 _ACEOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_c_preproc_warn_flag
10310 else
10311 ac_cpp_err=
10312 fi
10313 else
10314 ac_cpp_err=yes
10315 fi
10316 if test -z "$ac_cpp_err"; then
10317 ac_header_preproc=yes
10318 else
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_preproc=no
10323 fi
10324 rm -f conftest.err conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326 echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328 # So? What about this header?
10329 case $ac_header_compiler:$ac_header_preproc in
10330 yes:no )
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10335 (
10336 cat <<\_ASBOX
10337 ## ------------------------------------ ##
10338 ## Report this to bug-autoconf@gnu.org. ##
10339 ## ------------------------------------ ##
10340 _ASBOX
10341 ) |
10342 sed "s/^/$as_me: WARNING: /" >&2
10343 ;;
10344 no:yes )
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10351 (
10352 cat <<\_ASBOX
10353 ## ------------------------------------ ##
10354 ## Report this to bug-autoconf@gnu.org. ##
10355 ## ------------------------------------ ##
10356 _ASBOX
10357 ) |
10358 sed "s/^/$as_me: WARNING: /" >&2
10359 ;;
10360 esac
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 eval "$as_ac_Header=$ac_header_preproc"
10367 fi
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10370
10371 fi
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375 _ACEOF
10376
10377 fi
10378
10379 done
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
10403 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
10404 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
10405 do
10406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10407 echo "$as_me:$LINENO: checking for $ac_func" >&5
10408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10409 if eval "test \"\${$as_ac_var+set}\" = set"; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10423 #ifdef __STDC__
10424 # include <limits.h>
10425 #else
10426 # include <assert.h>
10427 #endif
10428 /* Override any gcc2 internal prototype to avoid an error. */
10429 #ifdef __cplusplus
10430 extern "C"
10431 {
10432 #endif
10433 /* We use char because int might match the return type of a gcc2
10434 builtin and then its argument prototype would still apply. */
10435 char $ac_func ();
10436 /* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
10439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10440 choke me
10441 #else
10442 char (*f) () = $ac_func;
10443 #endif
10444 #ifdef __cplusplus
10445 }
10446 #endif
10447
10448 int
10449 main ()
10450 {
10451 return f != $ac_func;
10452 ;
10453 return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10458 (eval $ac_link) 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 eval "$as_ac_var=yes"
10469 else
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10472
10473 eval "$as_ac_var=no"
10474 fi
10475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10476 fi
10477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482 _ACEOF
10483
10484 fi
10485 done
10486
10487
10488
10489
10490 am_cv_lib_iconv_ldpath=
10491
10492 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10493 if test "${with_libiconv_prefix+set}" = set; then
10494 withval="$with_libiconv_prefix"
10495
10496 for dir in `echo "$withval" | tr : ' '`; do
10497 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10498 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
10499 done
10500
10501 fi;
10502
10503 echo "$as_me:$LINENO: checking for iconv" >&5
10504 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10505 if test "${am_cv_func_iconv+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508
10509 am_cv_func_iconv="no, consider installing GNU libiconv"
10510 am_cv_lib_iconv=no
10511 cat >conftest.$ac_ext <<_ACEOF
10512 #line $LINENO "configure"
10513 /* confdefs.h. */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <stdlib.h>
10519 #include <iconv.h>
10520 int
10521 main ()
10522 {
10523 iconv_t cd = iconv_open("","");
10524 iconv(cd,NULL,NULL,NULL,NULL);
10525 iconv_close(cd);
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532 (eval $ac_link) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 am_cv_func_iconv=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547 fi
10548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10549 if test "$am_cv_func_iconv" != yes; then
10550 am_save_LIBS="$LIBS"
10551 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10552 cat >conftest.$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10554 /* confdefs.h. */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 #include <stdlib.h>
10560 #include <iconv.h>
10561 int
10562 main ()
10563 {
10564 iconv_t cd = iconv_open("","");
10565 iconv(cd,NULL,NULL,NULL,NULL);
10566 iconv_close(cd);
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 am_cv_lib_iconv=yes
10584 am_cv_func_iconv=yes
10585 else
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10588
10589 fi
10590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10591 LIBS="$am_save_LIBS"
10592 fi
10593
10594 fi
10595 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10596 echo "${ECHO_T}$am_cv_func_iconv" >&6
10597 if test "$am_cv_func_iconv" = yes; then
10598
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_ICONV 1
10601 _ACEOF
10602
10603 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10604 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10605 if test "${am_cv_proto_iconv+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608
10609 cat >conftest.$ac_ext <<_ACEOF
10610 #line $LINENO "configure"
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616
10617 #include <stdlib.h>
10618 #include <iconv.h>
10619 extern
10620 #ifdef __cplusplus
10621 "C"
10622 #endif
10623 #if defined(__STDC__) || defined(__cplusplus)
10624 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10625 #else
10626 size_t iconv();
10627 #endif
10628
10629 int
10630 main ()
10631 {
10632
10633 ;
10634 return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>&5
10640 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 am_cv_proto_iconv_arg1=""
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 am_cv_proto_iconv_arg1="const"
10655 fi
10656 rm -f conftest.$ac_objext conftest.$ac_ext
10657 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);"
10658 fi
10659
10660 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10661 echo "$as_me:$LINENO: result: ${ac_t:-
10662 }$am_cv_proto_iconv" >&5
10663 echo "${ECHO_T}${ac_t:-
10664 }$am_cv_proto_iconv" >&6
10665
10666 cat >>confdefs.h <<_ACEOF
10667 #define ICONV_CONST $am_cv_proto_iconv_arg1
10668 _ACEOF
10669
10670 fi
10671 LIBICONV=
10672 if test "$am_cv_lib_iconv" = yes; then
10673 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10674 fi
10675
10676
10677
10678 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10679 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10680 if test "${am_cv_langinfo_codeset+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <langinfo.h>
10691 int
10692 main ()
10693 {
10694 char* cs = nl_langinfo(CODESET);
10695 ;
10696 return 0;
10697 }
10698 _ACEOF
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 am_cv_langinfo_codeset=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716 am_cv_langinfo_codeset=no
10717 fi
10718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10719
10720 fi
10721 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10722 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10723 if test $am_cv_langinfo_codeset = yes; then
10724
10725 cat >>confdefs.h <<\_ACEOF
10726 #define HAVE_LANGINFO_CODESET 1
10727 _ACEOF
10728
10729 fi
10730
10731 if test $ac_cv_header_locale_h = yes; then
10732 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10733 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10734 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 else
10737 cat >conftest.$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <locale.h>
10745 int
10746 main ()
10747 {
10748 return LC_MESSAGES
10749 ;
10750 return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 am_cv_val_LC_MESSAGES=yes
10766 else
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 am_cv_val_LC_MESSAGES=no
10771 fi
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10773 fi
10774 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10775 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10776 if test $am_cv_val_LC_MESSAGES = yes; then
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_LC_MESSAGES 1
10780 _ACEOF
10781
10782 fi
10783 fi
10784 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10786 # Check whether --enable-nls or --disable-nls was given.
10787 if test "${enable_nls+set}" = set; then
10788 enableval="$enable_nls"
10789 USE_NLS=$enableval
10790 else
10791 USE_NLS=yes
10792 fi;
10793 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10794 echo "${ECHO_T}$USE_NLS" >&6
10795
10796
10797 BUILD_INCLUDED_LIBINTL=no
10798 USE_INCLUDED_LIBINTL=no
10799 INTLLIBS=
10800 INTLDEPS=
10801
10802 if test "$USE_NLS" = "yes"; then
10803
10804 cat >>confdefs.h <<\_ACEOF
10805 #define ENABLE_NLS 1
10806 _ACEOF
10807
10808 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10809 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10810
10811 # Check whether --with-included-gettext or --without-included-gettext was given.
10812 if test "${with_included_gettext+set}" = set; then
10813 withval="$with_included_gettext"
10814 nls_cv_force_use_gnu_gettext=$withval
10815 else
10816 nls_cv_force_use_gnu_gettext=no
10817 fi;
10818 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10819 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10820
10821 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10822 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10823 CATOBJEXT=NONE
10824
10825
10826
10827
10828 if test "${ac_cv_header_libintl_h+set}" = set; then
10829 echo "$as_me:$LINENO: checking for libintl.h" >&5
10830 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10831 if test "${ac_cv_header_libintl_h+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 fi
10834 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10835 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10836 else
10837 # Is the header compilable?
10838 echo "$as_me:$LINENO: checking libintl.h usability" >&5
10839 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10842 /* confdefs.h. */
10843 _ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 #include <libintl.h>
10849 _ACEOF
10850 rm -f conftest.$ac_objext
10851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler=yes
10863 else
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ac_header_compiler=no
10868 fi
10869 rm -f conftest.$ac_objext conftest.$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 echo "${ECHO_T}$ac_header_compiler" >&6
10872
10873 # Is the header present?
10874 echo "$as_me:$LINENO: checking libintl.h presence" >&5
10875 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10878 /* confdefs.h. */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <libintl.h>
10884 _ACEOF
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev/null; then
10893 if test -s conftest.err; then
10894 ac_cpp_err=$ac_c_preproc_warn_flag
10895 else
10896 ac_cpp_err=
10897 fi
10898 else
10899 ac_cpp_err=yes
10900 fi
10901 if test -z "$ac_cpp_err"; then
10902 ac_header_preproc=yes
10903 else
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 ac_header_preproc=no
10908 fi
10909 rm -f conftest.err conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 echo "${ECHO_T}$ac_header_preproc" >&6
10912
10913 # So? What about this header?
10914 case $ac_header_compiler:$ac_header_preproc in
10915 yes:no )
10916 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10917 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10919 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10920 (
10921 cat <<\_ASBOX
10922 ## ------------------------------------ ##
10923 ## Report this to bug-autoconf@gnu.org. ##
10924 ## ------------------------------------ ##
10925 _ASBOX
10926 ) |
10927 sed "s/^/$as_me: WARNING: /" >&2
10928 ;;
10929 no:yes )
10930 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10935 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10936 (
10937 cat <<\_ASBOX
10938 ## ------------------------------------ ##
10939 ## Report this to bug-autoconf@gnu.org. ##
10940 ## ------------------------------------ ##
10941 _ASBOX
10942 ) |
10943 sed "s/^/$as_me: WARNING: /" >&2
10944 ;;
10945 esac
10946 echo "$as_me:$LINENO: checking for libintl.h" >&5
10947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10948 if test "${ac_cv_header_libintl_h+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 ac_cv_header_libintl_h=$ac_header_preproc
10952 fi
10953 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10954 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10955
10956 fi
10957 if test $ac_cv_header_libintl_h = yes; then
10958
10959 cat >>confdefs.h <<\_ACEOF
10960 #define HAVE_LIBINTL_H 1
10961 _ACEOF
10962
10963 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10964 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10965 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968 cat >conftest.$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <libintl.h>
10976 extern int _nl_msg_cat_cntr;
10977 int
10978 main ()
10979 {
10980 bindtextdomain ("", "");
10981 return (int) gettext ("") + _nl_msg_cat_cntr
10982 ;
10983 return 0;
10984 }
10985 _ACEOF
10986 rm -f conftest.$ac_objext conftest$ac_exeext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 gt_cv_func_gnugettext1_libc=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 gt_cv_func_gnugettext1_libc=no
11004 fi
11005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11006 fi
11007 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11008 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11009
11010 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11011 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11012 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11013 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 gt_save_LIBS="$LIBS"
11017 LIBS="$LIBS -lintl $LIBICONV"
11018 cat >conftest.$ac_ext <<_ACEOF
11019 #line $LINENO "configure"
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <libintl.h>
11026 extern int _nl_msg_cat_cntr;
11027 int
11028 main ()
11029 {
11030 bindtextdomain ("", "");
11031 return (int) gettext ("") + _nl_msg_cat_cntr
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 gt_cv_func_gnugettext1_libintl=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 gt_cv_func_gnugettext1_libintl=no
11054 fi
11055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11056 LIBS="$gt_save_LIBS"
11057 fi
11058 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11059 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11060 fi
11061
11062 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11063 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11064 && test "$PACKAGE" != gettext; }; then
11065
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_GETTEXT 1
11068 _ACEOF
11069
11070
11071 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11072 INTLLIBS="-lintl $LIBICONV"
11073 fi
11074
11075 gt_save_LIBS="$LIBS"
11076 LIBS="$LIBS $INTLLIBS"
11077
11078 for ac_func in dcgettext
11079 do
11080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 echo "$as_me:$LINENO: checking for $ac_func" >&5
11082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11083 if eval "test \"\${$as_ac_var+set}\" = set"; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 cat >conftest.$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11097 #ifdef __STDC__
11098 # include <limits.h>
11099 #else
11100 # include <assert.h>
11101 #endif
11102 /* Override any gcc2 internal prototype to avoid an error. */
11103 #ifdef __cplusplus
11104 extern "C"
11105 {
11106 #endif
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char $ac_func ();
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11114 choke me
11115 #else
11116 char (*f) () = $ac_func;
11117 #endif
11118 #ifdef __cplusplus
11119 }
11120 #endif
11121
11122 int
11123 main ()
11124 {
11125 return f != $ac_func;
11126 ;
11127 return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 eval "$as_ac_var=yes"
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 eval "$as_ac_var=no"
11148 fi
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 fi
11151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11153 if test `eval echo '${'$as_ac_var'}'` = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11156 _ACEOF
11157
11158 fi
11159 done
11160
11161 LIBS="$gt_save_LIBS"
11162
11163 # Extract the first word of "msgfmt", so it can be a program name with args.
11164 set dummy msgfmt; ac_word=$2
11165 echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167 if test "${ac_cv_path_MSGFMT+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 case "$MSGFMT" in
11171 /*)
11172 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11173 ;;
11174 *)
11175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11176 for ac_dir in $PATH; do
11177 test -z "$ac_dir" && ac_dir=.
11178 if test -f $ac_dir/$ac_word; then
11179 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
11180 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11181 break
11182 fi
11183 fi
11184 done
11185 IFS="$ac_save_ifs"
11186 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11187 ;;
11188 esac
11189 fi
11190 MSGFMT="$ac_cv_path_MSGFMT"
11191 if test "$MSGFMT" != ":"; then
11192 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11193 echo "${ECHO_T}$MSGFMT" >&6
11194 else
11195 echo "$as_me:$LINENO: result: no" >&5
11196 echo "${ECHO_T}no" >&6
11197 fi
11198
11199 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11200 set dummy gmsgfmt; ac_word=$2
11201 echo "$as_me:$LINENO: checking for $ac_word" >&5
11202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11203 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 case $GMSGFMT in
11207 [\\/]* | ?:[\\/]*)
11208 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11209 ;;
11210 *)
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $PATH
11213 do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11221 fi
11222 done
11223 done
11224
11225 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11226 ;;
11227 esac
11228 fi
11229 GMSGFMT=$ac_cv_path_GMSGFMT
11230
11231 if test -n "$GMSGFMT"; then
11232 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11233 echo "${ECHO_T}$GMSGFMT" >&6
11234 else
11235 echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6
11237 fi
11238
11239
11240 # Extract the first word of "xgettext", so it can be a program name with args.
11241 set dummy xgettext; ac_word=$2
11242 echo "$as_me:$LINENO: checking for $ac_word" >&5
11243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11244 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247 case "$XGETTEXT" in
11248 /*)
11249 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11250 ;;
11251 *)
11252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11253 for ac_dir in $PATH; do
11254 test -z "$ac_dir" && ac_dir=.
11255 if test -f $ac_dir/$ac_word; then
11256 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
11257 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11258 break
11259 fi
11260 fi
11261 done
11262 IFS="$ac_save_ifs"
11263 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11264 ;;
11265 esac
11266 fi
11267 XGETTEXT="$ac_cv_path_XGETTEXT"
11268 if test "$XGETTEXT" != ":"; then
11269 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11270 echo "${ECHO_T}$XGETTEXT" >&6
11271 else
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6
11274 fi
11275
11276
11277 CATOBJEXT=.gmo
11278 fi
11279
11280 fi
11281
11282
11283
11284 if test "$CATOBJEXT" = "NONE"; then
11285 nls_cv_use_gnu_gettext=yes
11286 fi
11287 fi
11288
11289 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11290 INTLOBJS="\$(GETTOBJS)"
11291 # Extract the first word of "msgfmt", so it can be a program name with args.
11292 set dummy msgfmt; ac_word=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_path_MSGFMT+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 case "$MSGFMT" in
11299 /*)
11300 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11301 ;;
11302 *)
11303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11304 for ac_dir in $PATH; do
11305 test -z "$ac_dir" && ac_dir=.
11306 if test -f $ac_dir/$ac_word; then
11307 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
11308 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11309 break
11310 fi
11311 fi
11312 done
11313 IFS="$ac_save_ifs"
11314 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11315 ;;
11316 esac
11317 fi
11318 MSGFMT="$ac_cv_path_MSGFMT"
11319 if test "$MSGFMT" != ":"; then
11320 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11321 echo "${ECHO_T}$MSGFMT" >&6
11322 else
11323 echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11325 fi
11326
11327 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11328 set dummy gmsgfmt; ac_word=$2
11329 echo "$as_me:$LINENO: checking for $ac_word" >&5
11330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11331 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334 case $GMSGFMT in
11335 [\\/]* | ?:[\\/]*)
11336 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11337 ;;
11338 *)
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350 done
11351 done
11352
11353 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11354 ;;
11355 esac
11356 fi
11357 GMSGFMT=$ac_cv_path_GMSGFMT
11358
11359 if test -n "$GMSGFMT"; then
11360 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11361 echo "${ECHO_T}$GMSGFMT" >&6
11362 else
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6
11365 fi
11366
11367 # Extract the first word of "xgettext", so it can be a program name with args.
11368 set dummy xgettext; ac_word=$2
11369 echo "$as_me:$LINENO: checking for $ac_word" >&5
11370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11371 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 case "$XGETTEXT" in
11375 /*)
11376 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11377 ;;
11378 *)
11379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11380 for ac_dir in $PATH; do
11381 test -z "$ac_dir" && ac_dir=.
11382 if test -f $ac_dir/$ac_word; then
11383 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
11384 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11385 break
11386 fi
11387 fi
11388 done
11389 IFS="$ac_save_ifs"
11390 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11391 ;;
11392 esac
11393 fi
11394 XGETTEXT="$ac_cv_path_XGETTEXT"
11395 if test "$XGETTEXT" != ":"; then
11396 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11397 echo "${ECHO_T}$XGETTEXT" >&6
11398 else
11399 echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6
11401 fi
11402
11403
11404 BUILD_INCLUDED_LIBINTL=yes
11405 USE_INCLUDED_LIBINTL=yes
11406 CATOBJEXT=.gmo
11407 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
11408 INTLDEPS="\$(top_builddir)/intl/libintl.a"
11409 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11410 fi
11411
11412 if test "$GMSGFMT" != ":"; then
11413 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
11414 : ;
11415 else
11416 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
11417 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
11418 GMSGFMT=":"
11419 fi
11420 fi
11421
11422 if test "$XGETTEXT" != ":"; then
11423 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
11424 : ;
11425 else
11426 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11427 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11428 XGETTEXT=":"
11429 fi
11430 fi
11431
11432 POSUB=po
11433 fi
11434 ac_config_commands="$ac_config_commands default-1"
11435
11436
11437
11438 if test "$PACKAGE" = gettext; then
11439 BUILD_INCLUDED_LIBINTL=yes
11440 fi
11441
11442 for ac_prog in bison
11443 do
11444 # Extract the first word of "$ac_prog", so it can be a program name with args.
11445 set dummy $ac_prog; ac_word=$2
11446 echo "$as_me:$LINENO: checking for $ac_word" >&5
11447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11448 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451 if test -n "$INTLBISON"; then
11452 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11453 else
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_prog_INTLBISON="$ac_prog"
11462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 break 2
11464 fi
11465 done
11466 done
11467
11468 fi
11469 fi
11470 INTLBISON=$ac_cv_prog_INTLBISON
11471 if test -n "$INTLBISON"; then
11472 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11473 echo "${ECHO_T}$INTLBISON" >&6
11474 else
11475 echo "$as_me:$LINENO: result: no" >&5
11476 echo "${ECHO_T}no" >&6
11477 fi
11478
11479 test -n "$INTLBISON" && break
11480 done
11481
11482 if test -z "$INTLBISON"; then
11483 ac_verc_fail=yes
11484 else
11485 echo "$as_me:$LINENO: checking version of bison" >&5
11486 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11487 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11488 case $ac_prog_version in
11489 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11490 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11491 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11492 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11493 esac
11494 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11495 echo "${ECHO_T}$ac_prog_version" >&6
11496 fi
11497 if test $ac_verc_fail = yes; then
11498 INTLBISON=:
11499 fi
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510 if test $USE_INCLUDED_LIBINTL = yes; then
11511
11512 cat >>confdefs.h <<\_ACEOF
11513 #define USE_INCLUDED_LIBINTL 1
11514 _ACEOF
11515
11516 fi
11517
11518 nls_cv_header_intl=
11519 nls_cv_header_libgt=
11520
11521 DATADIRNAME=share
11522
11523
11524 INSTOBJEXT=.mo
11525
11526
11527 GENCAT=gencat
11528
11529
11530
11531 if test "x$CATOBJEXT" != x; then
11532 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11533 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11534 # Look for .po and .gmo files in the source directory.
11535 CATALOGS=
11536 XLINGUAS=
11537 for cat in $srcdir/po/*$CATOBJEXT $srcdir/po/*.po; do
11538 # If there aren't any .gmo files the shell will give us the
11539 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11540 # weeded out.
11541 case "$cat" in *\**)
11542 continue;;
11543 esac
11544 # The quadruple backslash is collapsed to a double backslash
11545 # by the backticks, then collapsed again by the double quotes,
11546 # leaving us with one backslash in the sed expression (right
11547 # before the dot that mustn't act as a wildcard). The dot to
11548 # be escaped in the second expression is hiding inside CATOBJEXT.
11549 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
11550 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
11551 # The user is allowed to set LINGUAS to a list of languages to
11552 # install catalogs for. If it's empty that means "all of them."
11553 if test "x$LINGUAS" = x; then
11554 CATALOGS="$CATALOGS $cat"
11555 XLINGUAS="$XLINGUAS $lang"
11556 else
11557 case "$LINGUAS" in *$lang*)
11558 CATALOGS="$CATALOGS $cat"
11559 XLINGUAS="$XLINGUAS $lang"
11560 ;;
11561 esac
11562 fi
11563 done
11564 LINGUAS="$XLINGUAS"
11565 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11566 echo "${ECHO_T}$LINGUAS" >&6
11567 fi
11568
11569 MKINSTALLDIRS=
11570 if test -n "$ac_aux_dir"; then
11571 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11572 fi
11573 if test -z "$MKINSTALLDIRS"; then
11574 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11575 fi
11576
11577
11578 INTL_LIBTOOL_SUFFIX_PREFIX=
11579
11580
11581
11582 # Windows32 Registry support for specifying GCC installation paths.
11583 # Check whether --enable-win32-registry or --disable-win32-registry was given.
11584 if test "${enable_win32_registry+set}" = set; then
11585 enableval="$enable_win32_registry"
11586
11587 fi;
11588 case $host_os in
11589 win32 | pe | cygwin* | mingw32* | uwin*)
11590 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
11591 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
11592 if test "x$enable_win32_registry" != xno; then
11593
11594 cat >>confdefs.h <<\_ACEOF
11595 #define ENABLE_WIN32_REGISTRY 1
11596 _ACEOF
11597
11598 echo "$as_me:$LINENO: result: yes" >&5
11599 echo "${ECHO_T}yes" >&6
11600 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
11601 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
11602 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 else
11605 ac_func_search_save_LIBS=$LIBS
11606 ac_cv_search_RegOpenKeyExA=no
11607 cat >conftest.$ac_ext <<_ACEOF
11608 #line $LINENO "configure"
11609 /* confdefs.h. */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614
11615 /* Override any gcc2 internal prototype to avoid an error. */
11616 #ifdef __cplusplus
11617 extern "C"
11618 #endif
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11621 char RegOpenKeyExA ();
11622 int
11623 main ()
11624 {
11625 RegOpenKeyExA ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632 (eval $ac_link) 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_search_RegOpenKeyExA="none required"
11643 else
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 fi
11648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11649 if test "$ac_cv_search_RegOpenKeyExA" = no; then
11650 for ac_lib in advapi32; do
11651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659
11660 /* Override any gcc2 internal prototype to avoid an error. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char RegOpenKeyExA ();
11667 int
11668 main ()
11669 {
11670 RegOpenKeyExA ();
11671 ;
11672 return 0;
11673 }
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
11688 break
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 fi
11694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11695 done
11696 fi
11697 LIBS=$ac_func_search_save_LIBS
11698 fi
11699 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
11700 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
11701 if test "$ac_cv_search_RegOpenKeyExA" != no; then
11702 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
11703
11704 fi
11705
11706 else
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11709 fi
11710
11711 # Check if user specified a different registry key.
11712 case "x${enable_win32_registry}" in
11713 x | xyes)
11714 # default.
11715 gcc_cv_win32_registry_key="$VERSION"
11716 ;;
11717 xno)
11718 # no registry lookup.
11719 gcc_cv_win32_registry_key=''
11720 ;;
11721 *)
11722 # user-specified key.
11723 gcc_cv_win32_registry_key="$enable_win32_registry"
11724 ;;
11725 esac
11726
11727 if test "x$enable_win32_registry" != xno; then
11728 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
11729 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
11730
11731 cat >>confdefs.h <<_ACEOF
11732 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
11733 _ACEOF
11734
11735 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
11736 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
11737 fi
11738 ;;
11739 esac
11740
11741 # Get an absolute path to the GCC top-level source directory
11742 holddir=`${PWDCMD-pwd}`
11743 cd $srcdir
11744 topdir=`${PWDCMD-pwd}`
11745 cd $holddir
11746
11747 # Conditionalize the makefile for this host machine.
11748 # Make-host contains the concatenation of all host makefile fragments
11749 # [there can be more than one]. This file is built by configure.frag.
11750 host_overrides=Make-host
11751 dep_host_xmake_file=
11752 for f in .. ${host_xmake_file}
11753 do
11754 if test -f ${srcdir}/config/$f
11755 then
11756 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
11757 fi
11758 done
11759
11760 # Conditionalize the makefile for this target machine.
11761 # Make-target contains the concatenation of all host makefile fragments
11762 # [there can be more than one]. This file is built by configure.frag.
11763 target_overrides=Make-target
11764 dep_tmake_file=
11765 for f in .. ${tmake_file}
11766 do
11767 if test -f ${srcdir}/config/$f
11768 then
11769 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
11770 fi
11771 done
11772
11773 symbolic_link='ln -s'
11774
11775 # If the host doesn't support symlinks, modify CC in
11776 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
11777 # Otherwise, we can use "CC=$(CC)".
11778 rm -f symtest.tem
11779 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
11780 then
11781 cc_set_by_configure="\$(CC)"
11782 quoted_cc_set_by_configure="\$(CC)"
11783 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11784 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
11785 else
11786 rm -f symtest.tem
11787 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
11788 then
11789 symbolic_link="cp -p"
11790 else
11791 symbolic_link="cp"
11792 fi
11793 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
11794 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
11795 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
11796 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
11797 fi
11798 rm -f symtest.tem
11799
11800 out_object_file=`basename $out_file .c`.o
11801
11802 tm_file_list=
11803 for f in $tm_file; do
11804 case $f in
11805 ansidecl.h )
11806 tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11807 defaults.h )
11808 tm_file_list="${tm_file_list} \$(srcdir)/$f" ;;
11809 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
11810 esac
11811 done
11812
11813 tm_p_file_list=
11814 for f in $tm_p_file; do
11815 case $f in
11816 tm-preds.h )
11817 tm_p_file_list="${tm_p_file_list} $f" ;;
11818 *) tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f" ;;
11819 esac
11820 done
11821
11822 host_xm_file_list=
11823 for f in $host_xm_file; do
11824 case $f in
11825 ansidecl.h )
11826 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11827 auto-host.h )
11828 host_xm_file_list="${host_xm_file_list} $f" ;;
11829 defaults.h )
11830 host_xm_file_list="${host_xm_file_list} \$(srcdir)/$f" ;;
11831 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
11832 esac
11833 done
11834
11835 build_xm_file_list=
11836 for f in $build_xm_file; do
11837 case $f in
11838 ansidecl.h )
11839 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11840 auto-build.h | auto-host.h )
11841 build_xm_file_list="${build_xm_file_list} $f" ;;
11842 defaults.h )
11843 host_xm_file_list="${host_xm_file_list} \$(srcdir)/$f" ;;
11844 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
11845 esac
11846 done
11847
11848 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
11849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11850 CROSS=
11851 ALL=all.internal
11852 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11853 if test x$host != x$target
11854 then
11855 CROSS="-DCROSS_COMPILE"
11856 ALL=all.cross
11857 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
11858 case "$host","$target" in
11859 i?86-*-*,x86_64-*-* \
11860 | powerpc*-*-*,powerpc64*-*-*)
11861 CROSS="$CROSS -DNATIVE_CROSS" ;;
11862 esac
11863 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11864 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
11865 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
11866 fi
11867
11868 # If this is a cross-compiler that does not
11869 # have its own set of headers then define
11870 # inhibit_libc
11871
11872 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
11873 # This prevents libgcc2 from containing any code which requires libc
11874 # support.
11875 inhibit_libc=
11876 if { test x$host != x$target && test "x$with_headers" = x &&
11877 test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then
11878 inhibit_libc=-Dinhibit_libc
11879 fi
11880
11881
11882 # When building gcc with a cross-compiler, we need to adjust things so
11883 # that the generator programs are still built with the native compiler.
11884 # Also, we cannot run fixincludes or fix-header.
11885
11886 # These are the normal (build=host) settings:
11887 BUILD_PREFIX=
11888 BUILD_PREFIX_1=ignore-
11889 BUILD_CC='$(CC)'
11890 BUILD_CFLAGS='$(ALL_CFLAGS)'
11891
11892 STMP_FIXINC=stmp-fixinc
11893 STMP_FIXPROTO=stmp-fixproto
11894
11895 # And these apply if build != host.
11896 if test x$build != x$host
11897 then
11898 BUILD_PREFIX=build-
11899 BUILD_PREFIX_1=build-
11900 BUILD_CC='$(CC_FOR_BUILD)'
11901 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
11902
11903 if test "x$TARGET_SYSTEM_ROOT" = x; then
11904 STMP_FIXINC=
11905 STMP_FIXPROTO=
11906 fi
11907 fi
11908
11909 # Expand extra_headers to include complete path.
11910 # This substitutes for lots of t-* files.
11911 extra_headers_list=
11912 if test "x$extra_headers" = x
11913 then true
11914 else
11915 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
11916 for file in $extra_headers;
11917 do
11918 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11919 done
11920 fi
11921
11922 # Add a definition of USE_COLLECT2 if system wants one.
11923 case $use_collect2 in
11924 no) use_collect2= ;;
11925 "") ;;
11926 *)
11927 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11928 xm_defines="${xm_defines} USE_COLLECT2"
11929 ;;
11930 esac
11931
11932 # Identify the assembler which will work hand-in-glove with the newly
11933 # built GCC, so that we can examine its features. This is the assembler
11934 # which will be driven by the driver program.
11935 #
11936 # If build != host, and we aren't building gas in-tree, we identify a
11937 # build->target assembler and hope that it will have the same features
11938 # as the host->target assembler we'll be using.
11939 echo "$as_me:$LINENO: checking what assembler to use" >&5
11940 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
11941 in_tree_gas=no
11942 gcc_cv_as=
11943 gcc_cv_gas_major_version=
11944 gcc_cv_gas_minor_version=
11945 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
11946 if test -x "$DEFAULT_ASSEMBLER"; then
11947 gcc_cv_as="$DEFAULT_ASSEMBLER"
11948 elif test -x "$AS"; then
11949 gcc_cv_as="$AS"
11950 elif test -x as$host_exeext; then
11951 # Build using assembler in the current directory.
11952 gcc_cv_as=./as$host_exeext
11953 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
11954 && test -f ../gas/Makefile; then
11955 # Single tree build which includes gas.
11956 in_tree_gas=yes
11957 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
11958 for f in $gcc_cv_as_bfd_srcdir/configure \
11959 $gcc_cv_as_gas_srcdir/configure \
11960 $gcc_cv_as_gas_srcdir/configure.in \
11961 $gcc_cv_as_gas_srcdir/Makefile.in ; do
11962 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
11963 if test x$gcc_cv_gas_version != x; then
11964 break
11965 fi
11966 done
11967 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
11968 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
11969 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
11970
11971 rm -f as$host_exeext
11972 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
11973 fi
11974
11975 if test "x$gcc_cv_as" = x; then
11976 # Search the same directories that the installed compiler will
11977 # search. Else we may find the wrong assembler and lose. If we
11978 # do not find a suitable assembler binary, then try the user's
11979 # path.
11980 #
11981 # Also note we have to check MD_EXEC_PREFIX before checking the
11982 # user's path. Unfortunately, there is no good way to get at the
11983 # value of MD_EXEC_PREFIX here. So we do a brute force search
11984 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
11985 # to be fixed as part of the make/configure rewrite too.
11986
11987 if test "x$exec_prefix" = xNONE; then
11988 if test "x$prefix" = xNONE; then
11989 test_prefix=/usr/local
11990 else
11991 test_prefix=$prefix
11992 fi
11993 else
11994 test_prefix=$exec_prefix
11995 fi
11996
11997 # If the loop below does not find an assembler, then use whatever
11998 # one we can find in the users's path.
11999 # user's path.
12000 if test "x$program_prefix" != xNONE; then
12001 gcc_cv_as=${program_prefix}as$host_exeext
12002 else
12003 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
12004 fi
12005
12006 test_dirs="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
12007 $test_prefix/lib/gcc-lib/$target_alias \
12008 /usr/lib/gcc/$target_alias/$gcc_version \
12009 /usr/lib/gcc/$target_alias \
12010 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
12011 $test_prefix/$target_alias/bin"
12012
12013 if test x$host = x$target; then
12014 test_dirs="$test_dirs \
12015 /usr/libexec \
12016 /usr/ccs/gcc \
12017 /usr/ccs/bin \
12018 /udk/usr/ccs/bin \
12019 /bsd43/usr/lib/cmplrs/cc \
12020 /usr/cross64/usr/bin \
12021 /usr/lib/cmplrs/cc \
12022 /sysv/usr/lib/cmplrs/cc \
12023 /svr4/usr/lib/cmplrs/cc \
12024 /usr/bin"
12025 fi
12026
12027 for dir in $test_dirs; do
12028 if test -x $dir/as$host_exeext; then
12029 gcc_cv_as=$dir/as$host_exeext
12030 break;
12031 fi
12032 done
12033 fi
12034 case $in_tree_gas in
12035 yes)
12036 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12037 echo "${ECHO_T}\"newly built gas\"" >&6
12038 ;;
12039 no)
12040 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12041 echo "${ECHO_T}$gcc_cv_as" >&6
12042 ;;
12043 esac
12044
12045 # Identify the linker which will work hand-in-glove with the newly
12046 # built GCC, so that we can examine its features. This is the linker
12047 # which will be driven by the driver program.
12048 #
12049 # If build != host, and we aren't building gas in-tree, we identify a
12050 # build->target linker and hope that it will have the same features
12051 # as the host->target linker we'll be using.
12052 echo "$as_me:$LINENO: checking what linker to use" >&5
12053 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12054 in_tree_ld=no
12055 gcc_cv_ld=
12056 gcc_cv_gld_major_version=
12057 gcc_cv_gld_minor_version=
12058 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12059 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12060 if test -x "$DEFAULT_LINKER"; then
12061 gcc_cv_ld="$DEFAULT_LINKER"
12062 elif test -x "$LD"; then
12063 gcc_cv_ld="$LD"
12064 elif test -x collect-ld$host_exeext; then
12065 # Build using linker in the current directory.
12066 gcc_cv_ld=./collect-ld$host_exeext
12067 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12068 && test -f ../ld/Makefile; then
12069 # Single tree build which includes ld.
12070 in_tree_ld=yes
12071 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
12072 do
12073 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
12074 if test x$gcc_cv_gld_version != x; then
12075 break
12076 fi
12077 done
12078 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12079 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12080 rm -f collect-ld$host_exeext
12081 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
12082 2>/dev/null
12083 fi
12084
12085 if test "x$gcc_cv_ld" = x; then
12086 # Search the same directories that the installed compiler will
12087 # search. Else we may find the wrong linker and lose. If we
12088 # do not find a suitable linker binary, then try the user's
12089 # path.
12090 #
12091 # Also note we have to check MD_EXEC_PREFIX before checking the
12092 # user's path. Unfortunately, there is no good way to get at the
12093 # value of MD_EXEC_PREFIX here. So we do a brute force search
12094 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12095 # to be fixed as part of the make/configure rewrite too.
12096
12097 if test "x$exec_prefix" = xNONE; then
12098 if test "x$prefix" = xNONE; then
12099 test_prefix=/usr/local
12100 else
12101 test_prefix=$prefix
12102 fi
12103 else
12104 test_prefix=$exec_prefix
12105 fi
12106
12107 # If the loop below does not find an linker, then use whatever
12108 # one we can find in the users's path.
12109 # user's path.
12110 if test "x$program_prefix" != xNONE; then
12111 gcc_cv_ld=${program_prefix}ld$host_exeext
12112 else
12113 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
12114 fi
12115
12116 test_dirs="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
12117 $test_prefix/lib/gcc-lib/$target_alias \
12118 /usr/lib/gcc/$target_alias/$gcc_version \
12119 /usr/lib/gcc/$target_alias \
12120 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
12121 $test_prefix/$target_alias/bin"
12122
12123 if test x$host = x$target; then
12124 test_dirs="$test_dirs \
12125 /usr/libexec \
12126 /usr/ccs/gcc \
12127 /usr/ccs/bin \
12128 /udk/usr/ccs/bin \
12129 /bsd43/usr/lib/cmplrs/cc \
12130 /usr/cross64/usr/bin \
12131 /usr/lib/cmplrs/cc \
12132 /sysv/usr/lib/cmplrs/cc \
12133 /svr4/usr/lib/cmplrs/cc \
12134 /usr/bin"
12135 fi
12136
12137 for dir in $test_dirs; do
12138 if test -x $dir/ld$host_exeext; then
12139 gcc_cv_ld=$dir/ld$host_exeext
12140 break;
12141 fi
12142 done
12143 fi
12144 case $in_tree_ld in
12145 yes)
12146 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12147 echo "${ECHO_T}\"newly built ld\"" >&6
12148 ;;
12149 no)
12150 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12151 echo "${ECHO_T}$gcc_cv_ld" >&6
12152 ;;
12153 esac
12154
12155 # Figure out what nm we will be using.
12156 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12157 echo "$as_me:$LINENO: checking what nm to use" >&5
12158 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12159 in_tree_nm=no
12160 if test -x nm$host_exeext; then
12161 gcc_cv_nm=./nm$host_exeext
12162 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12163 && test -f ../binutils/Makefile; then
12164 # Single tree build which includes binutils.
12165 in_tree_nm=yes
12166 gcc_cv_nm=./nm$host_exeext
12167 rm -f nm$host_exeext
12168 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
12169 elif test "x$program_prefix" != xNONE; then
12170 gcc_cv_nm=${program_prefix}nm$host_exeext
12171 else
12172 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
12173 fi
12174 case $in_tree_nm in
12175 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12176 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12177 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12178 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12179 esac
12180
12181 # Figure out what objdump we will be using.
12182 echo "$as_me:$LINENO: checking what objdump to use" >&5
12183 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12184 in_tree_objdump=no
12185 if test -x objdump$host_exeext; then
12186 gcc_cv_objdump=./objdump$host_exeext
12187 elif test -f $gcc_cv_binutils_srcdir/configure.in \
12188 && test -f ../binutils/Makefile; then
12189 # Single tree build which includes binutils.
12190 in_tree_objdump=yes
12191 gcc_cv_objdump=./objdump$host_exeext
12192 rm -f objdump$host_exeext
12193 $symbolic_link ../binutils/objdump$host_exeext \
12194 objdump$host_exeext 2>/dev/null
12195 elif test "x$program_prefix" != xNONE; then
12196 gcc_cv_objdump=${program_prefix}objdump$host_exeext
12197 else
12198 gcc_cv_objdump=`echo objdump | \
12199 sed ${program_transform_name}`$host_exeext
12200 fi
12201 case $in_tree_objdump in
12202 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12203 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12204 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12205 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12206 esac
12207
12208 # Figure out what assembler alignment features are present.
12209 echo "$as_me:$LINENO: checking assembler alignment features" >&5
12210 echo $ECHO_N "checking assembler alignment features... $ECHO_C" >&6
12211 gcc_cv_as_alignment_features=none
12212 if test $in_tree_gas = yes; then
12213 # Gas version 2.6 and later support for .balign and .p2align.
12214 if test $gcc_cv_gas_major_version -eq 2 \
12215 && test $gcc_cv_gas_minor_version -ge 6 \
12216 || test $gcc_cv_gas_major_version -gt 2 ; then
12217
12218
12219 gcc_cv_as_alignment_features=".balign and .p2align"
12220 cat >>confdefs.h <<\_ACEOF
12221 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12222 _ACEOF
12223
12224
12225
12226 fi
12227
12228 # Gas version 2.8 and later support specifying the maximum
12229 # bytes to skip when using .p2align.
12230 if test $gcc_cv_gas_major_version -eq 2 \
12231 && test $gcc_cv_gas_minor_version -ge 8 \
12232 || test $gcc_cv_gas_major_version -gt 2 ; then
12233
12234
12235 gcc_cv_as_alignment_features=".p2align including maximum skip"
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12238 _ACEOF
12239
12240
12241
12242 fi
12243
12244 elif test x$gcc_cv_as != x; then
12245 # Check if we have .balign and .p2align
12246 echo ".balign 4" > conftest.s
12247 echo ".p2align 2" >> conftest.s
12248 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12249 gcc_cv_as_alignment_features=".balign and .p2align"
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12252 _ACEOF
12253
12254 fi
12255 rm -f conftest.s conftest.o
12256 # Check if specifying the maximum bytes to skip when
12257 # using .p2align is supported.
12258 echo ".p2align 4,,7" > conftest.s
12259 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12260 gcc_cv_as_alignment_features=".p2align including maximum skip"
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12263 _ACEOF
12264
12265 fi
12266 rm -f conftest.s conftest.o
12267 fi
12268 echo "$as_me:$LINENO: result: $gcc_cv_as_alignment_features" >&5
12269 echo "${ECHO_T}$gcc_cv_as_alignment_features" >&6
12270
12271 echo "$as_me:$LINENO: checking assembler subsection support" >&5
12272 echo $ECHO_N "checking assembler subsection support... $ECHO_C" >&6
12273 gcc_cv_as_subsections=no
12274 if test $in_tree_gas = yes ; then
12275 if test $gcc_cv_gas_major_version -eq 2 \
12276 && test $gcc_cv_gas_minor_version -ge 9 \
12277 || test $gcc_cv_gas_major_version -gt 2 ; then
12278
12279
12280 if grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
12281 gcc_cv_as_subsections="working .subsection -1"
12282 fi
12283
12284
12285 fi
12286
12287 elif test x$gcc_cv_as != x; then
12288 # Check if we have .subsection
12289 echo ".subsection 1" > conftest.s
12290 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12291 gcc_cv_as_subsections=".subsection"
12292 if test x$gcc_cv_nm != x; then
12293 cat > conftest.s <<EOF
12294 conftest_label1: .word 0
12295 .subsection -1
12296 conftest_label2: .word 0
12297 .previous
12298 EOF
12299 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12300 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
12301 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
12302 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
12303 :
12304 else
12305 gcc_cv_as_subsections="working .subsection -1"
12306 fi
12307 fi
12308 fi
12309 fi
12310 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12311 fi
12312 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_GAS_SUBSECTION_ORDERING 1
12316 _ACEOF
12317
12318 fi
12319 echo "$as_me:$LINENO: result: $gcc_cv_as_subsections" >&5
12320 echo "${ECHO_T}$gcc_cv_as_subsections" >&6
12321
12322 echo "$as_me:$LINENO: checking assembler weak support" >&5
12323 echo $ECHO_N "checking assembler weak support... $ECHO_C" >&6
12324 gcc_cv_as_weak=no
12325 if test $in_tree_gas = yes ; then
12326 if test $gcc_cv_gas_major_version -eq 2 \
12327 && test $gcc_cv_gas_minor_version -ge 2 \
12328 || test $gcc_cv_gas_major_version -gt 2 ; then
12329
12330
12331 gcc_cv_as_weak="yes"
12332
12333
12334 fi
12335
12336 elif test x$gcc_cv_as != x; then
12337 # Check if we have .weak
12338 echo " .weak foobar" > conftest.s
12339 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12340 gcc_cv_as_weak="yes"
12341 fi
12342 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12343 fi
12344 if test x"$gcc_cv_as_weak" = xyes; then
12345
12346 cat >>confdefs.h <<\_ACEOF
12347 #define HAVE_GAS_WEAK 1
12348 _ACEOF
12349
12350 fi
12351 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
12352 echo "${ECHO_T}$gcc_cv_as_weak" >&6
12353
12354 echo "$as_me:$LINENO: checking assembler hidden support" >&5
12355 echo $ECHO_N "checking assembler hidden support... $ECHO_C" >&6
12356 gcc_cv_as_hidden=no
12357 if test $in_tree_gas = yes ; then
12358 if test $gcc_cv_gas_major_version -eq 2 \
12359 && (test $gcc_cv_gas_minor_version -gt 12 \
12360 || (test $gcc_cv_gas_minor_version -eq 12 \
12361 && test $gcc_cv_gas_patch_version -ge 1 )) \
12362 || test $gcc_cv_gas_major_version -gt 2 ; then
12363
12364
12365 if grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
12366 gcc_cv_as_hidden="yes"
12367 fi
12368
12369
12370 fi
12371
12372 elif test x$gcc_cv_as != x; then
12373 # Check if we have .hidden
12374 echo " .hidden foobar" > conftest.s
12375 echo "foobar:" >> conftest.s
12376 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12377 gcc_cv_as_hidden="yes"
12378 fi
12379 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12380
12381 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
12382 # This is irritatingly difficult to feature test for. Look for
12383 # the date string after the version number.
12384 ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
12385 if echo "$ld_ver" | grep GNU > /dev/null; then
12386 ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
12387 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'`
12388 if test 0"$ld_date" -lt 20020404; then
12389 if test -n "$ld_date"; then
12390 # If there was date string, but was earlier than 2002-04-04, fail
12391 gcc_cv_as_hidden="no"
12392 elif test -z "$ld_vers"; then
12393 # If there was no date string nor ld version number, something is wrong
12394 gcc_cv_as_hidden="no"
12395 else
12396 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
12397 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
12398 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12399 test -z "$ld_vers_patch" && ld_vers_patch=0
12400 if test "$ld_vers_major" -lt 2; then
12401 gcc_cv_as_hidden="no"
12402 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
12403 gcc_cv_as_hidden="no"
12404 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
12405 -a "$ld_vers_patch" -eq 0; then
12406 gcc_cv_as_hidden="no"
12407 fi
12408 fi
12409 fi
12410 fi
12411 fi
12412 if test x"$gcc_cv_as_hidden" = xyes; then
12413
12414 cat >>confdefs.h <<\_ACEOF
12415 #define HAVE_GAS_HIDDEN 1
12416 _ACEOF
12417
12418 fi
12419 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
12420 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
12421 libgcc_visibility=$gcc_cv_as_hidden
12422 case "$target" in
12423 mips-sgi-irix6*)
12424 if test x"$gnu_ld_flag" = x"no"; then
12425 # Even if using gas with .hidden support, the resulting object files
12426 # cannot be linked with the IRIX 6 O32 linker. With the N32 and
12427 # N64 linkers, the problem is that the linker refuses to accept
12428 # -call_shared (passed by default to the linker) and -r (used to
12429 # link the object file generated without .hidden directives with
12430 # one that hides symbols), so we also lose.
12431 libgcc_visibility=no
12432 fi
12433 ;;
12434 esac
12435
12436
12437 echo "$as_me:$LINENO: checking assembler leb128 support" >&5
12438 echo $ECHO_N "checking assembler leb128 support... $ECHO_C" >&6
12439 gcc_cv_as_leb128=no
12440 if test $in_tree_gas = yes ; then
12441 if test $gcc_cv_gas_major_version -eq 2 \
12442 && test $gcc_cv_gas_minor_version -ge 11 \
12443 || test $gcc_cv_gas_major_version -gt 2 ; then
12444
12445
12446 if grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
12447 gcc_cv_as_leb128="yes"
12448 fi
12449
12450
12451 fi
12452
12453 elif test x$gcc_cv_as != x; then
12454 # Check if we have .[us]leb128, and support symbol arithmetic with it.
12455 cat > conftest.s <<EOF
12456 .data
12457 .uleb128 L2 - L1
12458 L1:
12459 .uleb128 1280
12460 .sleb128 -1010
12461 L2:
12462 EOF
12463 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12464 gcc_cv_as_leb128="yes"
12465
12466 # GAS versions before 2.11 do not support uleb128,
12467 # despite appearing to.
12468 # ??? There exists an elf-specific test that will crash
12469 # the assembler. Perhaps it's better to figure out whether
12470 # arbitrary sections are supported and try the test.
12471 as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
12472 if echo "$as_ver" | grep GNU > /dev/null; then
12473 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
12474 as_major=`echo $as_ver | sed 's/\..*//'`
12475 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
12476 if test $as_major -eq 2 -a $as_minor -lt 11; then
12477 gcc_cv_as_leb128="no"
12478 fi
12479 fi
12480 fi
12481 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12482 fi
12483 if test x"$gcc_cv_as_leb128" = xyes; then
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define HAVE_AS_LEB128 1
12487 _ACEOF
12488
12489 fi
12490 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
12491 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
12492
12493 echo "$as_me:$LINENO: checking assembler eh_frame optimization" >&5
12494 echo $ECHO_N "checking assembler eh_frame optimization... $ECHO_C" >&6
12495 gcc_cv_as_eh_frame=no
12496 if test $in_tree_gas = yes ; then
12497 if test $gcc_cv_gas_major_version -eq 2 \
12498 && test $gcc_cv_gas_minor_version -ge 12 \
12499 || test $gcc_cv_gas_major_version -gt 2 ; then
12500
12501
12502 if grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
12503 gcc_cv_as_eh_frame="yes"
12504 fi
12505
12506
12507 fi
12508
12509 elif test x$gcc_cv_as != x; then
12510 # Check if this is GAS.
12511 as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
12512 rm -f a.out 2> /dev/null
12513 if echo "$as_ver" | grep GNU > /dev/null; then
12514 # Versions up to and including 2.11.0 may mis-optimize
12515 # .eh_frame data. Try something.
12516 cat > conftest.s <<EOF
12517 .text
12518 .LFB1:
12519 .4byte 0
12520 .L1:
12521 .4byte 0
12522 .LFE1:
12523 .section .eh_frame,"aw",@progbits
12524 __FRAME_BEGIN__:
12525 .4byte .LECIE1-.LSCIE1
12526 .LSCIE1:
12527 .4byte 0x0
12528 .byte 0x1
12529 .ascii "z\0"
12530 .byte 0x1
12531 .byte 0x78
12532 .byte 0x1a
12533 .byte 0x0
12534 .byte 0x4
12535 .4byte 1
12536 .p2align 1
12537 .LECIE1:
12538 .LSFDE1:
12539 .4byte .LEFDE1-.LASFDE1
12540 .LASFDE1:
12541 .4byte .LASFDE1-__FRAME_BEGIN__
12542 .4byte .LFB1
12543 .4byte .LFE1-.LFB1
12544 .byte 0x4
12545 .4byte .LFE1-.LFB1
12546 .byte 0x4
12547 .4byte .L1-.LFB1
12548 .LEFDE1:
12549 EOF
12550 cat > conftest.lit <<EOF
12551 0000 10000000 00000000 017a0001 781a0004 .........z..x...
12552 0010 01000000 12000000 18000000 00000000 ................
12553 0020 08000000 04080000 0044 .........D
12554 EOF
12555 cat > conftest.big <<EOF
12556 0000 00000010 00000000 017a0001 781a0004 .........z..x...
12557 0010 00000001 00000012 00000018 00000000 ................
12558 0020 00000008 04000000 0844 .........D
12559 EOF
12560 # If the assembler didn't choke, and we can objdump,
12561 # and we got the correct data, then succeed.
12562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
12563 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
12564 | tail -3 > conftest.got \
12565 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
12566 || cmp conftest.big conftest.got > /dev/null 2>&1; }
12567 then
12568 gcc_cv_as_eh_frame="yes"
12569 else
12570 gcc_cv_as_eh_frame="bad"
12571 if $gcc_cv_as -o conftest.o --traditional-format /dev/null; then
12572
12573 cat >>confdefs.h <<\_ACEOF
12574 #define USE_AS_TRADITIONAL_FORMAT 1
12575 _ACEOF
12576
12577 fi
12578 fi
12579 fi
12580 rm -f conftest.*
12581 fi
12582 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
12583 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
12584
12585 echo "$as_me:$LINENO: checking assembler section merging support" >&5
12586 echo $ECHO_N "checking assembler section merging support... $ECHO_C" >&6
12587 gcc_cv_as_shf_merge=no
12588 if test $in_tree_gas = yes ; then
12589 if test $gcc_cv_gas_major_version -eq 2 \
12590 && test $gcc_cv_gas_minor_version -ge 12 \
12591 || test $gcc_cv_gas_major_version -gt 2 ; then
12592
12593
12594 if grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
12595 gcc_cv_as_shf_merge=yes
12596 fi
12597
12598
12599 fi
12600
12601 elif test x$gcc_cv_as != x; then
12602 # Check if we support SHF_MERGE sections
12603 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
12604 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1; then
12605 gcc_cv_as_shf_merge=yes
12606 fi
12607 rm -f conftest.s conftest.o
12608 fi
12609 if test x"$gcc_cv_as_shf_merge" = xyes; then
12610
12611 cat >>confdefs.h <<\_ACEOF
12612 #define HAVE_GAS_SHF_MERGE 1
12613 _ACEOF
12614
12615 fi
12616 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12617 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12618
12619 echo "$as_me:$LINENO: checking assembler thread-local storage support" >&5
12620 echo $ECHO_N "checking assembler thread-local storage support... $ECHO_C" >&6
12621 gcc_cv_as_tls=no
12622 conftest_s=
12623 tls_first_major=
12624 tls_first_minor=
12625 case "$target" in
12626 alpha*-*-*)
12627 conftest_s='
12628 .section ".tdata","awT",@progbits
12629 foo: .long 25
12630 .text
12631 ldq $27,__tls_get_addr($29) !literal!1
12632 lda $16,foo($29) !tlsgd!1
12633 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
12634 ldq $27,__tls_get_addr($29) !literal!2
12635 lda $16,foo($29) !tlsldm!2
12636 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
12637 ldq $1,foo($29) !gotdtprel
12638 ldah $2,foo($29) !dtprelhi
12639 lda $3,foo($2) !dtprello
12640 lda $4,foo($29) !dtprel
12641 ldq $1,foo($29) !gottprel
12642 ldah $2,foo($29) !tprelhi
12643 lda $3,foo($2) !tprello
12644 lda $4,foo($29) !tprel'
12645 tls_first_major=2
12646 tls_first_minor=13
12647 ;;
12648 i[34567]86-*-*)
12649 conftest_s='
12650 .section ".tdata","awT",@progbits
12651 foo: .long 25
12652 .text
12653 movl %gs:0, %eax
12654 leal foo@TLSGD(,%ebx,1), %eax
12655 leal foo@TLSLDM(%ebx), %eax
12656 leal foo@DTPOFF(%eax), %edx
12657 movl foo@GOTTPOFF(%ebx), %eax
12658 subl foo@GOTTPOFF(%ebx), %eax
12659 addl foo@GOTNTPOFF(%ebx), %eax
12660 movl foo@INDNTPOFF, %eax
12661 movl $foo@TPOFF, %eax
12662 subl $foo@TPOFF, %eax
12663 leal foo@NTPOFF(%ecx), %eax'
12664 tls_first_major=2
12665 tls_first_minor=14
12666 ;;
12667 x86_64-*-*)
12668 conftest_s='
12669 .section ".tdata","awT",@progbits
12670 foo: .long 25
12671 .text
12672 movq %fs:0, %rax
12673 leaq foo@TLSGD(%rip), %rdi
12674 leaq foo@TLSLD(%rip), %rdi
12675 leaq foo@DTPOFF(%rax), %rdx
12676 movq foo@GOTTPOFF(%rip), %rax
12677 movq $foo@TPOFF, %rax'
12678 tls_first_major=2
12679 tls_first_minor=14
12680 ;;
12681 ia64-*-*)
12682 conftest_s='
12683 .section ".tdata","awT",@progbits
12684 foo: data8 25
12685 .text
12686 addl r16 = @ltoff(@dtpmod(foo#)), gp
12687 addl r17 = @ltoff(@dtprel(foo#)), gp
12688 addl r18 = @ltoff(@tprel(foo#)), gp
12689 addl r19 = @dtprel(foo#), gp
12690 adds r21 = @dtprel(foo#), r13
12691 movl r23 = @dtprel(foo#)
12692 addl r20 = @tprel(foo#), gp
12693 adds r22 = @tprel(foo#), r13
12694 movl r24 = @tprel(foo#)'
12695 tls_first_major=2
12696 tls_first_minor=13
12697 ;;
12698 s390-*-*)
12699 conftest_s='
12700 .section ".tdata","awT",@progbits
12701 foo: .long 25
12702 .text
12703 .long foo@TLSGD
12704 .long foo@TLSLDM
12705 .long foo@DTPOFF
12706 .long foo@NTPOFF
12707 .long foo@GOTNTPOFF
12708 .long foo@INDNTPOFF
12709 l %r1,foo@GOTNTPOFF(%r12)
12710 l %r1,0(%r1):tls_load:foo
12711 bas %r14,0(%r1,%r13):tls_gdcall:foo
12712 bas %r14,0(%r1,%r13):tls_ldcall:foo'
12713 tls_first_major=2
12714 tls_first_minor=14
12715 ;;
12716 s390x-*-*)
12717 conftest_s='
12718 .section ".tdata","awT",@progbits
12719 foo: .long 25
12720 .text
12721 .quad foo@TLSGD
12722 .quad foo@TLSLDM
12723 .quad foo@DTPOFF
12724 .quad foo@NTPOFF
12725 .quad foo@GOTNTPOFF
12726 lg %r1,foo@GOTNTPOFF(%r12)
12727 larl %r1,foo@INDNTPOFF
12728 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
12729 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
12730 tls_first_major=2
12731 tls_first_minor=14
12732 ;;
12733 esac
12734 if test -z "$tls_first_major"; then
12735 :
12736 elif test $in_tree_gas = yes ; then
12737 if test $gcc_cv_gas_major_version -eq $tls_first_major \
12738 && test $gcc_cv_gas_minor_version -ge $tls_first_minor \
12739 || test $gcc_cv_gas_major_version -gt $tls_first_major ; then
12740
12741
12742 gcc_cv_as_tls=yes
12743
12744
12745 fi
12746
12747 elif test x$gcc_cv_as != x; then
12748 echo "$conftest_s" > conftest.s
12749 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1
12750 then
12751 gcc_cv_as_tls=yes
12752 fi
12753 rm -f conftest.s conftest.o
12754 fi
12755 if test "$gcc_cv_as_tls" = yes; then
12756
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_AS_TLS 1
12759 _ACEOF
12760
12761 fi
12762 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
12763 echo "${ECHO_T}$gcc_cv_as_tls" >&6
12764
12765 case "$target" in
12766 # All TARGET_ABI_OSF targets.
12767 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
12768 echo "$as_me:$LINENO: checking assembler supports explicit relocations" >&5
12769 echo $ECHO_N "checking assembler supports explicit relocations... $ECHO_C" >&6
12770 if test "${gcc_cv_as_explicit_relocs+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773
12774 gcc_cv_as_explicit_relocs=unknown
12775 if test $in_tree_gas = yes ; then
12776 if test $gcc_cv_gas_major_version -eq 2 \
12777 && test $gcc_cv_gas_minor_version -ge 12 \
12778 || test $gcc_cv_gas_major_version -gt 2 ; then
12779
12780
12781 gcc_cv_as_explicit_relocs=yes
12782
12783
12784 fi
12785
12786 elif test x$gcc_cv_as != x; then
12787 cat > conftest.s << 'EOF'
12788 .set nomacro
12789 .text
12790 extbl $3, $2, $3 !lituse_bytoff!1
12791 ldq $2, a($29) !literal!1
12792 ldq $4, b($29) !literal!2
12793 ldq_u $3, 0($2) !lituse_base!1
12794 ldq $27, f($29) !literal!5
12795 jsr $26, ($27), f !lituse_jsr!5
12796 ldah $29, 0($26) !gpdisp!3
12797 lda $0, c($29) !gprel
12798 ldah $1, d($29) !gprelhigh
12799 lda $1, d($1) !gprellow
12800 lda $29, 0($29) !gpdisp!3
12801 EOF
12802 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12803 gcc_cv_as_explicit_relocs=yes
12804 else
12805 gcc_cv_as_explicit_relocs=no
12806 fi
12807 rm -f conftest.s conftest.o
12808 fi
12809
12810 fi
12811 echo "$as_me:$LINENO: result: $gcc_cv_as_explicit_relocs" >&5
12812 echo "${ECHO_T}$gcc_cv_as_explicit_relocs" >&6
12813 if test "x$gcc_cv_as_explicit_relocs" = xyes; then
12814
12815 cat >>confdefs.h <<\_ACEOF
12816 #define HAVE_AS_EXPLICIT_RELOCS 1
12817 _ACEOF
12818
12819 fi
12820 ;;
12821 sparc*-*-*)
12822 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12823 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12824 if test "${gcc_cv_as_register_pseudo_op+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827
12828 gcc_cv_as_register_pseudo_op=unknown
12829 if test x$gcc_cv_as != x; then
12830 # Check if we have .register
12831 echo ".register %g2, #scratch" > conftest.s
12832 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
12833 gcc_cv_as_register_pseudo_op=yes
12834 else
12835 gcc_cv_as_register_pseudo_op=no
12836 fi
12837 rm -f conftest.s conftest.o
12838 fi
12839
12840 fi
12841 echo "$as_me:$LINENO: result: $gcc_cv_as_register_pseudo_op" >&5
12842 echo "${ECHO_T}$gcc_cv_as_register_pseudo_op" >&6
12843 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
12844
12845 cat >>confdefs.h <<\_ACEOF
12846 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12847 _ACEOF
12848
12849 fi
12850
12851 echo "$as_me:$LINENO: checking assembler supports -relax" >&5
12852 echo $ECHO_N "checking assembler supports -relax... $ECHO_C" >&6
12853 if test "${gcc_cv_as_relax_opt+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856
12857 gcc_cv_as_relax_opt=unknown
12858 if test x$gcc_cv_as != x; then
12859 # Check if gas supports -relax
12860 echo ".text" > conftest.s
12861 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
12862 gcc_cv_as_relax_opt=yes
12863 else
12864 gcc_cv_as_relax_opt=no
12865 fi
12866 rm -f conftest.s conftest.o
12867 fi
12868
12869 fi
12870 echo "$as_me:$LINENO: result: $gcc_cv_as_relax_opt" >&5
12871 echo "${ECHO_T}$gcc_cv_as_relax_opt" >&6
12872 if test "x$gcc_cv_as_relax_opt" = xyes; then
12873
12874 cat >>confdefs.h <<\_ACEOF
12875 #define HAVE_AS_RELAX_OPTION 1
12876 _ACEOF
12877
12878 fi
12879
12880 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12881 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12882 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 else
12885
12886 gcc_cv_as_sparc_ua_pcrel=unknown
12887 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x; then
12888 gcc_cv_as_sparc_ua_pcrel=no
12889 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
12890 if $gcc_cv_as -K PIC -o conftest.o conftest.s > /dev/null 2>&1 \
12891 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
12892 gcc_cv_as_sparc_ua_pcrel=yes
12893 fi
12894 rm -f conftest.s conftest.o conftest
12895 fi
12896
12897 fi
12898 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
12899 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
12900 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes; then
12901
12902 cat >>confdefs.h <<\_ACEOF
12903 #define HAVE_AS_SPARC_UA_PCREL 1
12904 _ACEOF
12905
12906 fi
12907
12908 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
12909 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs against hidden symbols... $ECHO_C" >&6
12910 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913
12914 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes; then
12915 gcc_cv_as_sparc_ua_pcrel_hidden=unknown
12916 if test x$gcc_cv_objdump != x; then
12917 gcc_cv_as_sparc_ua_pcrel_hidden=no
12918 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
12919 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
12920 echo "foo: .skip 4" >> conftest.s
12921 if $gcc_cv_as -K PIC -o conftest.o conftest.s > /dev/null 2>&1 \
12922 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
12923 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
12924 | grep ' 31000000 07323334' > /dev/null 2>&1; then
12925 if $gcc_cv_objdump -R conftest 2> /dev/null \
12926 | grep 'DISP32' > /dev/null 2>&1; then
12927 :
12928 else
12929 gcc_cv_as_sparc_ua_pcrel_hidden=yes
12930 fi
12931 fi
12932 fi
12933 rm -f conftest.s conftest.o conftest
12934 else
12935 gcc_cv_as_sparc_ua_pcrel_hidden="$gcc_cv_as_sparc_ua_pcrel"
12936 fi
12937
12938 fi
12939 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
12940 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
12941 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes; then
12942
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
12945 _ACEOF
12946
12947 fi
12948
12949 echo "$as_me:$LINENO: checking for assembler offsetable %lo() support" >&5
12950 echo $ECHO_N "checking for assembler offsetable %lo() support... $ECHO_C" >&6
12951 if test "${gcc_cv_as_offsetable_lo10+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 else
12954
12955 gcc_cv_as_offsetable_lo10=unknown
12956 if test "x$gcc_cv_as" != x; then
12957 # Check if assembler has offsetable %lo()
12958 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
12959 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
12960 if $gcc_cv_as -xarch=v9 -o conftest.o conftest.s \
12961 > /dev/null 2>&1 &&
12962 $gcc_cv_as -xarch=v9 -o conftest1.o conftest1.s \
12963 > /dev/null 2>&1; then
12964 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
12965 gcc_cv_as_offsetable_lo10=no
12966 else
12967 gcc_cv_as_offsetable_lo10=yes
12968 fi
12969 else
12970 gcc_cv_as_offsetable_lo10=no
12971 fi
12972 rm -f conftest.s conftest.o conftest1.s conftest1.o
12973 fi
12974
12975 fi
12976 echo "$as_me:$LINENO: result: $gcc_cv_as_offsetable_lo10" >&5
12977 echo "${ECHO_T}$gcc_cv_as_offsetable_lo10" >&6
12978 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
12979
12980 cat >>confdefs.h <<\_ACEOF
12981 #define HAVE_AS_OFFSETABLE_LO10 1
12982 _ACEOF
12983
12984 fi
12985
12986 ;;
12987
12988 i[34567]86-*-* | x86_64-*-*)
12989 echo "$as_me:$LINENO: checking assembler instructions" >&5
12990 echo $ECHO_N "checking assembler instructions... $ECHO_C" >&6
12991 gcc_cv_as_instructions=
12992 if test $in_tree_gas = yes ; then
12993 if test $gcc_cv_gas_major_version -eq 2 \
12994 && test $gcc_cv_gas_minor_version -ge 9 \
12995 || test $gcc_cv_gas_major_version -gt 2 ; then
12996
12997
12998 gcc_cv_as_instructions="filds fists"
12999
13000
13001 fi
13002
13003 elif test x$gcc_cv_as != x; then
13004 set "filds fists" "filds mem; fists mem"
13005 while test $# -gt 0
13006 do
13007 echo "$2" > conftest.s
13008 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
13009 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
13010 fi
13011 shift 2
13012 done
13013 rm -f conftest.s conftest.o
13014 fi
13015 if test x"$gcc_cv_as_instructions" != x; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
13018 _ACEOF
13019
13020 fi
13021 echo "$as_me:$LINENO: result: $gcc_cv_as_instructions" >&5
13022 echo "${ECHO_T}$gcc_cv_as_instructions" >&6
13023
13024 echo "$as_me:$LINENO: checking assembler GOTOFF in data directives" >&5
13025 echo $ECHO_N "checking assembler GOTOFF in data directives... $ECHO_C" >&6
13026 gcc_cv_as_gotoff_in_data=no
13027 if test $in_tree_gas = yes ; then
13028 if test $gcc_cv_gas_major_version -eq 2 \
13029 && test $gcc_cv_gas_minor_version -ge 11 \
13030 || test $gcc_cv_gas_major_version -gt 2 ; then
13031
13032
13033 gcc_cv_as_gotoff_in_data=yes
13034
13035
13036 fi
13037
13038 elif test x$gcc_cv_as != x; then
13039 cat > conftest.s <<EOF
13040 .text
13041 .L0:
13042 nop
13043 .data
13044 .long .L0@GOTOFF
13045 EOF
13046 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
13047 gcc_cv_as_gotoff_in_data=yes
13048 fi
13049 fi
13050
13051 cat >>confdefs.h <<_ACEOF
13052 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
13053 _ACEOF
13054
13055 echo "$as_me:$LINENO: result: $gcc_cv_as_gotoff_in_data" >&5
13056 echo "${ECHO_T}$gcc_cv_as_gotoff_in_data" >&6
13057 ;;
13058
13059 ia64*-*-*)
13060 echo "$as_me:$LINENO: checking assembler supports ltoffx and ldxmov" >&5
13061 echo $ECHO_N "checking assembler supports ltoffx and ldxmov... $ECHO_C" >&6
13062 if test "${gcc_cv_as_ltoffx_ldxmov_relocs+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065
13066 gcc_cv_as_ltoffx_ldxmov_relocs=unknown
13067 if test $in_tree_gas = yes ; then
13068 if test $gcc_cv_gas_major_version -eq 2 \
13069 && test $gcc_cv_gas_minor_version -ge 14 \
13070 || test $gcc_cv_gas_major_version -gt 2 ; then
13071
13072
13073 gcc_cv_as_ltoffx_ldxmov_relocs=yes
13074
13075
13076 fi
13077
13078 elif test x$gcc_cv_as != x; then
13079 cat > conftest.s << 'EOF'
13080 .text
13081 addl r15 = @ltoffx(x#), gp
13082 ;;
13083 ld8.mov r16 = [r15], x#
13084 EOF
13085 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
13086 gcc_cv_as_ltoffx_ldxmov_relocs=yes
13087 else
13088 gcc_cv_as_ltoffx_ldxmov_relocs=no
13089 fi
13090 rm -f conftest.s conftest.o
13091 fi
13092
13093 fi
13094 echo "$as_me:$LINENO: result: $gcc_cv_as_ltoffx_ldxmov_relocs" >&5
13095 echo "${ECHO_T}$gcc_cv_as_ltoffx_ldxmov_relocs" >&6
13096 if test "x$gcc_cv_as_ltoffx_ldxmov_relocs" = xyes; then
13097
13098 cat >>confdefs.h <<\_ACEOF
13099 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
13100 _ACEOF
13101
13102 fi
13103 ;;
13104 esac
13105
13106 echo "$as_me:$LINENO: checking assembler dwarf2 debug_line support" >&5
13107 echo $ECHO_N "checking assembler dwarf2 debug_line support... $ECHO_C" >&6
13108 gcc_cv_as_dwarf2_debug_line=no
13109 # ??? Not all targets support dwarf2 debug_line, even within a version
13110 # of gas. Moreover, we need to emit a valid instruction to trigger any
13111 # info to the output file. So, as supported targets are added to gas 2.11,
13112 # add some instruction here to (also) show we expect this might work.
13113 # ??? Once 2.11 is released, probably need to add first known working
13114 # version to the per-target configury.
13115 case "$target" in
13116 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
13117 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-*)
13118 insn="nop"
13119 ;;
13120 ia64*-*-*)
13121 insn="nop 0"
13122 ;;
13123 esac
13124 if test $in_tree_gas = yes ; then
13125 if test $gcc_cv_gas_major_version -eq 2 \
13126 && test $gcc_cv_gas_minor_version -ge 11 \
13127 || test $gcc_cv_gas_major_version -gt 2 ; then
13128
13129
13130 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13131 && test x"$insn" != x ; then
13132 gcc_cv_as_dwarf2_debug_line="yes"
13133 fi
13134
13135
13136 fi
13137
13138 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
13139 echo ' .file 1 "conftest.s"' > conftest.s
13140 echo ' .loc 1 3 0' >> conftest.s
13141 echo " $insn" >> conftest.s
13142 # ??? This fails with non-gnu grep.
13143 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
13144 && grep debug_line conftest.o > /dev/null 2>&1 ; then
13145 # The .debug_line file table must be in the exact order that
13146 # we specified the files, since these indices are also used
13147 # by DW_AT_decl_file. Approximate this test by testing if
13148 # the assembler bitches if the same index is assigned twice.
13149 echo ' .file 1 "foo.s"' > conftest.s
13150 echo ' .file 1 "bar.s"' >> conftest.s
13151 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1
13152 then
13153 gcc_cv_as_dwarf2_debug_line="no"
13154 else
13155 gcc_cv_as_dwarf2_debug_line="yes"
13156 fi
13157 fi
13158 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
13159 fi
13160 if test x"$gcc_cv_as_dwarf2_debug_line" = xyes; then
13161
13162 cat >>confdefs.h <<\_ACEOF
13163 #define HAVE_AS_DWARF2_DEBUG_LINE 1
13164 _ACEOF
13165
13166 fi
13167 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
13168 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
13169
13170 echo "$as_me:$LINENO: checking assembler --gdwarf2 support" >&5
13171 echo $ECHO_N "checking assembler --gdwarf2 support... $ECHO_C" >&6
13172 gcc_cv_as_gdwarf2_flag=no
13173 if test $in_tree_gas = yes ; then
13174 if test $gcc_cv_gas_major_version -eq 2 \
13175 && test $gcc_cv_gas_minor_version -ge 11 \
13176 || test $gcc_cv_gas_major_version -gt 2 ; then
13177
13178
13179 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13180 && test x"$insn" != x ; then
13181 gcc_cv_as_gdwarf2_flag="yes"
13182 fi
13183
13184
13185 fi
13186
13187 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
13188 echo '' > conftest.s
13189 # ??? This fails with non-gnu grep.
13190 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s > /dev/null 2>&1
13191 then
13192 gcc_cv_as_gdwarf2_flag="yes"
13193 fi
13194 rm -f conftest.s conftest.o
13195 fi
13196 if test x"$gcc_cv_as_gdwarf2_flag" = xyes; then
13197
13198 cat >>confdefs.h <<\_ACEOF
13199 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
13200 _ACEOF
13201
13202 fi
13203 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
13204 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
13205
13206 echo "$as_me:$LINENO: checking assembler --gstabs support" >&5
13207 echo $ECHO_N "checking assembler --gstabs support... $ECHO_C" >&6
13208 gcc_cv_as_gstabs_flag=no
13209 if test $in_tree_gas = yes ; then
13210 if test $gcc_cv_gas_major_version -eq 2 \
13211 && test $gcc_cv_gas_minor_version -ge 11 \
13212 || test $gcc_cv_gas_major_version -gt 2 ; then
13213
13214
13215 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13216 && test x"$insn" != x ; then
13217 gcc_cv_as_gstabs_flag="yes"
13218 fi
13219
13220
13221 fi
13222
13223 elif test x$gcc_cv_as != x -a x"$insn" != x ; then
13224 echo '' > conftest.s
13225 # ??? This fails with non-gnu grep.
13226 if $gcc_cv_as --gstabs -o conftest.o conftest.s > /dev/null 2>&1 ; then
13227 gcc_cv_as_gstabs_flag="yes"
13228 fi
13229 rm -f conftest.s conftest.o
13230 fi
13231 if test x"$gcc_cv_as_gstabs_flag" = xyes; then
13232
13233 cat >>confdefs.h <<\_ACEOF
13234 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
13235 _ACEOF
13236
13237 fi
13238 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
13239 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
13240
13241 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
13242 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
13243 gcc_cv_ld_ro_rw_mix=unknown
13244 if test $in_tree_ld = yes ; then
13245 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 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
13246 gcc_cv_ld_ro_rw_mix=read-write
13247 fi
13248 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
13249 echo '.section "myfoosect", "a"' > conftest1.s
13250 echo '.section "myfoosect", "aw"' > conftest2.s
13251 echo '.byte 1' >> conftest2.s
13252 echo '.section "myfoosect", "a"' > conftest3.s
13253 echo '.byte 0' >> conftest3.s
13254 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
13255 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
13256 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
13257 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
13258 conftest2.o conftest3.o; then
13259 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
13260 | grep -A1 myfoosect`
13261 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
13262 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
13263 gcc_cv_ld_ro_rw_mix=read-only
13264 else
13265 gcc_cv_ld_ro_rw_mix=read-write
13266 fi
13267 fi
13268 fi
13269 rm -f conftest.* conftest[123].*
13270 fi
13271 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
13272
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_LD_RO_RW_SECTION_MIXING 1
13275 _ACEOF
13276
13277 fi
13278 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
13279 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
13280
13281 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
13282 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
13283 gcc_cv_ld_eh_frame_hdr=no
13284 if test $in_tree_ld = yes ; then
13285 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 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then
13286 gcc_cv_ld_eh_frame_hdr=yes
13287 fi
13288 elif test x$gcc_cv_ld != x; then
13289 # Check if linker supports --eh-frame-hdr option
13290 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
13291 gcc_cv_ld_eh_frame_hdr=yes
13292 fi
13293 fi
13294 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_LD_EH_FRAME_HDR 1
13298 _ACEOF
13299
13300 fi
13301 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
13302 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
13303
13304 # Miscellaneous target-specific checks.
13305 case "$target" in
13306 mips*-*-*)
13307 echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
13308 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
13309 gcc_cv_mips_libgloss_startup=no
13310 gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
13311 if test "x$exec_prefix" = xNONE; then
13312 if test "x$prefix" = xNONE; then
13313 test_prefix=/usr/local
13314 else
13315 test_prefix=$prefix
13316 fi
13317 else
13318 test_prefix=$exec_prefix
13319 fi
13320 for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_alias/lib/idt.ld
13321 do
13322 if grep '^STARTUP' $f > /dev/null 2>&1; then
13323 gcc_cv_mips_libgloss_startup=yes
13324 break
13325 fi
13326 done
13327 if test x"$gcc_cv_mips_libgloss_startup" = xyes; then
13328
13329 cat >>confdefs.h <<\_ACEOF
13330 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
13331 _ACEOF
13332
13333 fi
13334 echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
13335 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
13336
13337 echo "$as_me:$LINENO: checking whether the assembler has explicit relocation support" >&5
13338 echo $ECHO_N "checking whether the assembler has explicit relocation support... $ECHO_C" >&6
13339 if test x$gcc_cv_mips_explicit_relocs = x; then
13340 gcc_cv_mips_explicit_relocs=no
13341 if test x$gcc_cv_as != x; then
13342 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
13343 if $gcc_cv_as conftest.s -o conftest.o > /dev/null 2>&1; then
13344 gcc_cv_mips_explicit_relocs=yes
13345 fi
13346 rm -f conftest.s conftest.o
13347 fi
13348 fi
13349 if test $gcc_cv_mips_explicit_relocs = yes; then
13350 test x$target_cpu_default != x || target_cpu_default=0
13351 target_cpu_default="(${target_cpu_default}|MASK_EXPLICIT_RELOCS)"
13352 fi
13353 echo "$as_me:$LINENO: result: $gcc_cv_mips_explicit_relocs" >&5
13354 echo "${ECHO_T}$gcc_cv_mips_explicit_relocs" >&6
13355 ;;
13356 esac
13357
13358 if test x$with_sysroot = x && test x$host = x$target \
13359 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
13360 cat >>confdefs.h <<_ACEOF
13361 #define PREFIX_INCLUDE_DIR "$prefix/include"
13362 _ACEOF
13363
13364 fi
13365
13366 # Figure out what language subdirectories are present.
13367 # Look if the user specified --enable-languages="..."; if not, use
13368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
13369 # go away some day.
13370 # NB: embedded tabs in this IF block -- do not untabify
13371 if test x"${enable_languages+set}" != xset; then
13372 if test x"${LANGUAGES+set}" = xset; then
13373 enable_languages="${LANGUAGES}"
13374 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
13375 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
13376
13377 else
13378 enable_languages=all
13379 fi
13380 else
13381 if test x"${enable_languages}" = x \
13382 || test x"${enable_languages}" = xyes;
13383 then
13384 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
13385 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
13386 { (exit 1); exit 1; }; }
13387 fi
13388 fi
13389 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
13390
13391 # First scan to see if an enabled language requires some other language.
13392 # We assume that a given config-lang.in will list all the language
13393 # front ends it requires, even if some are required indirectly.
13394 for lang in ${srcdir}/*/config-lang.in ..
13395 do
13396 case $lang in
13397 ..)
13398 ;;
13399 # The odd quoting in the next line works around
13400 # an apparent bug in bash 1.12 on linux.
13401 ${srcdir}/[*]/config-lang.in)
13402 ;;
13403 *)
13404 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
13405 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
13406 for other in $this_lang_requires
13407 do
13408 case ,${enable_languages}, in
13409 *,$other,*)
13410 ;;
13411 *,all,*)
13412 ;;
13413 *,$lang_alias,*)
13414 enable_languages="$enable_languages,$other"
13415 ;;
13416 esac
13417 done
13418 ;;
13419 esac
13420 done
13421
13422 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
13423 found_languages=
13424 subdirs=
13425 for lang in ${srcdir}/*/config-lang.in ..
13426 do
13427 case $lang in
13428 ..) ;;
13429 # The odd quoting in the next line works around
13430 # an apparent bug in bash 1.12 on linux.
13431 ${srcdir}/[*]/config-lang.in) ;;
13432 *)
13433 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
13434 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
13435 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
13436 if test "x$lang_alias" = x
13437 then
13438 echo "$lang doesn't set \$language." 1>&2
13439 exit 1
13440 fi
13441 case ${build_by_default},${enable_languages}, in
13442 *,$lang_alias,*) add_this_lang=yes ;;
13443 no,*) add_this_lang=no ;;
13444 *,all,*) add_this_lang=yes ;;
13445 *) add_this_lang=no ;;
13446 esac
13447 found_languages="${found_languages} ${lang_alias}"
13448 if test x"${add_this_lang}" = xyes; then
13449 case $lang in
13450 ${srcdir}/ada/config-lang.in)
13451 if test x$have_gnat = xyes ; then
13452 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
13453 fi
13454 ;;
13455 *)
13456 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
13457 ;;
13458 esac
13459 fi
13460 ;;
13461 esac
13462 done
13463
13464 missing_languages=
13465 for expected_language in ${expected_languages} ..
13466 do
13467 if test "${expected_language}" != ..; then
13468 missing_language="${expected_language}"
13469 if test "${expected_language}" = "c" \
13470 || test "${expected_language}" = "all"; then
13471 missing_language=
13472 fi
13473 for found_language in ${found_languages} ..
13474 do
13475 if test "${found_language}" != ..; then
13476 if test "${expected_language}" = "${found_language}"; then
13477 missing_language=
13478 fi
13479 fi
13480 done
13481 if test "x${missing_language}" != x; then
13482 missing_languages="${missing_languages} ${missing_language}"
13483 fi
13484 fi
13485 done
13486
13487 if test "x$missing_languages" != x; then
13488 { { echo "$as_me:$LINENO: error:
13489 The following requested languages were not found:${missing_languages}
13490 The following languages were available: c${found_languages}" >&5
13491 echo "$as_me: error:
13492 The following requested languages were not found:${missing_languages}
13493 The following languages were available: c${found_languages}" >&2;}
13494 { (exit 1); exit 1; }; }
13495 fi
13496
13497 # Make gthr-default.h if we have a thread file.
13498 gthread_flags=
13499 if test $thread_file != single; then
13500 rm -f gthr-default.h
13501 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13502 gthread_flags=-DHAVE_GTHR_DEFAULT
13503 fi
13504
13505
13506 # Find out what GC implementation we want, or may, use.
13507
13508 # Check whether --with-gc or --without-gc was given.
13509 if test "${with_gc+set}" = set; then
13510 withval="$with_gc"
13511 case "$withval" in
13512 simple | page)
13513 GGC=ggc-$withval
13514 ;;
13515 *)
13516 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
13517 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
13518 { (exit 1); exit 1; }; }
13519 ;;
13520 esac
13521 else
13522 GGC=ggc-page
13523 fi;
13524
13525 echo "Using $GGC for garbage collection."
13526
13527 # Use the system's zlib library.
13528 zlibdir=-L../zlib
13529 zlibinc="-I\$(srcdir)/../zlib"
13530
13531 # Check whether --with-system-zlib or --without-system-zlib was given.
13532 if test "${with_system_zlib+set}" = set; then
13533 withval="$with_system_zlib"
13534 zlibdir=
13535 zlibinc=
13536
13537 fi;
13538
13539
13540
13541
13542 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13543 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13544 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13545 if test "${enable_maintainer_mode+set}" = set; then
13546 enableval="$enable_maintainer_mode"
13547 maintainer_mode=$enableval
13548 else
13549 maintainer_mode=no
13550 fi;
13551
13552 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
13553 echo "${ECHO_T}$maintainer_mode" >&6
13554
13555 if test "$maintainer_mode" = "yes"; then
13556 MAINT=''
13557 else
13558 MAINT='#'
13559 fi
13560
13561 # Make empty files to contain the specs and options for each language.
13562 # Then add #include lines to for a compiler that has specs and/or options.
13563
13564 lang_specs_files=
13565 lang_options_files=
13566 lang_tree_files=
13567 for subdir in . $subdirs
13568 do
13569 if test -f $srcdir/$subdir/lang-specs.h; then
13570 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
13571 fi
13572 if test -f $srcdir/$subdir/lang-options.h; then
13573 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
13574 fi
13575 if test -f $srcdir/$subdir/$subdir-tree.def; then
13576 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
13577 fi
13578 done
13579
13580 # These (without "all_") are set in each config-lang.in.
13581 # `language' must be a single word so is spelled singularly.
13582 all_languages=
13583 all_boot_languages=
13584 all_compilers=
13585 all_stagestuff=
13586 all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
13587 # List of language makefile fragments.
13588 all_lang_makefiles=
13589 # Files for gengtype
13590 all_gtfiles="$target_gtfiles"
13591 # Files for gengtype with language
13592 all_gtfiles_files_langs=
13593 all_gtfiles_files_files=
13594
13595 # Add the language fragments.
13596 # Languages are added via two mechanisms. Some information must be
13597 # recorded in makefile variables, these are defined in config-lang.in.
13598 # We accumulate them and plug them into the main Makefile.
13599 # The other mechanism is a set of hooks for each of the main targets
13600 # like `clean', `install', etc.
13601
13602 language_fragments="Make-lang"
13603 language_hooks="Make-hooks"
13604
13605 for s in .. $subdirs
13606 do
13607 if test $s != ".."
13608 then
13609 language=
13610 boot_language=
13611 compilers=
13612 stagestuff=
13613 outputs=
13614 gtfiles=
13615 . ${srcdir}/$s/config-lang.in
13616 if test "x$language" = x
13617 then
13618 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
13619 exit 1
13620 fi
13621 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
13622 if test -f ${srcdir}/$s/Makefile.in
13623 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
13624 fi
13625 all_languages="$all_languages $language"
13626 if test "x$boot_language" = xyes
13627 then
13628 all_boot_languages="$all_boot_languages $language"
13629 fi
13630 all_compilers="$all_compilers $compilers"
13631 all_stagestuff="$all_stagestuff $stagestuff"
13632 all_outputs="$all_outputs $outputs"
13633 all_gtfiles="$all_gtfiles $gtfiles"
13634 for f in .. $gtfiles
13635 do
13636 if test $f != ".."
13637 then
13638 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
13639 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
13640 fi
13641 done
13642 fi
13643 done
13644
13645 # Pick up gtfiles for c
13646 gtfiles=
13647 s="c"
13648 . ${srcdir}/c-config-lang.in
13649 all_gtfiles="$all_gtfiles $gtfiles"
13650 for f in .. $gtfiles
13651 do
13652 if test $f != ".."
13653 then
13654 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
13655 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
13656 fi
13657 done
13658
13659 check_languages=
13660 for language in .. $all_languages
13661 do
13662 if test $language != ".."
13663 then
13664 check_languages="$check_languages check-$language"
13665 fi
13666 done
13667
13668 # Since we can't use `::' targets, we link each language in
13669 # with a set of hooks, reached indirectly via lang.${target}.
13670
13671 rm -f Make-hooks
13672 touch Make-hooks
13673 target_list="all.build all.cross start.encap rest.encap tags \
13674 info dvi generated-manpages \
13675 install-normal install-common install-info install-man \
13676 uninstall \
13677 mostlyclean clean distclean extraclean maintainer-clean \
13678 stage1 stage2 stage3 stage4"
13679 for t in $target_list
13680 do
13681 x=
13682 for lang in .. $all_languages
13683 do
13684 if test $lang != ".."; then
13685 x="$x $lang.$t"
13686 fi
13687 done
13688 echo "lang.$t: $x" >> Make-hooks
13689 done
13690
13691 # Create .gdbinit.
13692
13693 echo "dir ." > .gdbinit
13694 echo "dir ${srcdir}" >> .gdbinit
13695 if test x$gdb_needs_out_file_path = xyes
13696 then
13697 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
13698 fi
13699 if test "x$subdirs" != x; then
13700 for s in $subdirs
13701 do
13702 echo "dir ${srcdir}/$s" >> .gdbinit
13703 done
13704 fi
13705 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
13706
13707 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
13708 # absolute path for gcc_tooldir based on inserting the number of up-directory
13709 # movements required to get from $(exec_prefix) to $(prefix) into the basic
13710 # $(libsubdir)/@(unlibsubdir) based path.
13711 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
13712 # make and thus we'd get different behavior depending on where we built the
13713 # sources.
13714 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
13715 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
13716 else
13717 # An explanation of the sed strings:
13718 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
13719 # -e 's|/$||' match a trailing forward slash and eliminates it
13720 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
13721 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
13722 #
13723 # (*) Note this pattern overwrites the first character of the string
13724 # with a forward slash if one is not already present. This is not a
13725 # problem because the exact names of the sub-directories concerned is
13726 # unimportant, just the number of them matters.
13727 #
13728 # The practical upshot of these patterns is like this:
13729 #
13730 # prefix exec_prefix result
13731 # ------ ----------- ------
13732 # /foo /foo/bar ../
13733 # /foo/ /foo/bar ../
13734 # /foo /foo/bar/ ../
13735 # /foo/ /foo/bar/ ../
13736 # /foo /foo/bar/ugg ../../
13737 #
13738 dollar='$$'
13739 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
13740 fi
13741
13742
13743
13744 # Find a directory in which to install a shared libgcc.
13745
13746 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
13747 if test "${enable_version_specific_runtime_libs+set}" = set; then
13748 enableval="$enable_version_specific_runtime_libs"
13749
13750 fi;
13751
13752
13753 # Check whether --with-slibdir or --without-slibdir was given.
13754 if test "${with_slibdir+set}" = set; then
13755 withval="$with_slibdir"
13756 slibdir="$with_slibdir"
13757 else
13758 if test "${enable_version_specific_runtime_libs+set}" = set; then
13759 slibdir='$(libsubdir)'
13760 elif test "$host" != "$target"; then
13761 slibdir='$(build_tooldir)/lib'
13762 else
13763 slibdir='$(libdir)'
13764 fi
13765 fi;
13766
13767
13768 objdir=`${PWDCMD-pwd}`
13769
13770
13771 # Process the language and host/target makefile fragments.
13772 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
13773
13774 # Substitute configuration variables
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 # Echo that links are built
13845 if test x$host = x$target
13846 then
13847 str1="native "
13848 else
13849 str1="cross-"
13850 str2=" from $host"
13851 fi
13852
13853 if test x$host != x$build
13854 then
13855 str3=" on a $build system"
13856 fi
13857
13858 if test "x$str2" != x || test "x$str3" != x
13859 then
13860 str4=
13861 fi
13862
13863 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
13864
13865 if test "x$str2" != x || test "x$str3" != x
13866 then
13867 echo " ${str2}${str3}." 1>&2
13868 fi
13869
13870 # Truncate the target if necessary
13871 if test x$host_truncate_target != x; then
13872 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
13873 fi
13874
13875 # Configure the subdirectories
13876 # AC_CONFIG_SUBDIRS($subdirs)
13877
13878 # Create the Makefile
13879 # and configure language subdirectories
13880 ac_config_files="$ac_config_files $all_outputs"
13881 ac_config_commands="$ac_config_commands default"
13882 cat >confcache <<\_ACEOF
13883 # This file is a shell script that caches the results of configure
13884 # tests run on this system so they can be shared between configure
13885 # scripts and configure runs, see configure's option --config-cache.
13886 # It is not useful on other systems. If it contains results you don't
13887 # want to keep, you may remove or edit it.
13888 #
13889 # config.status only pays attention to the cache file if you give it
13890 # the --recheck option to rerun configure.
13891 #
13892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13894 # following values.
13895
13896 _ACEOF
13897
13898 # The following way of writing the cache mishandles newlines in values,
13899 # but we know of no workaround that is simple, portable, and efficient.
13900 # So, don't put newlines in cache variables' values.
13901 # Ultrix sh set writes to stderr and can't be redirected directly,
13902 # and sets the high bit in the cache file unless we assign to the vars.
13903 {
13904 (set) 2>&1 |
13905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13906 *ac_space=\ *)
13907 # `set' does not quote correctly, so add quotes (double-quote
13908 # substitution turns \\\\ into \\, and sed turns \\ into \).
13909 sed -n \
13910 "s/'/'\\\\''/g;
13911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13912 ;;
13913 *)
13914 # `set' quotes correctly as required by POSIX, so do not add quotes.
13915 sed -n \
13916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13917 ;;
13918 esac;
13919 } |
13920 sed '
13921 t clear
13922 : clear
13923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13924 t end
13925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13926 : end' >>confcache
13927 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13928 if test -w $cache_file; then
13929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13930 cat confcache >$cache_file
13931 else
13932 echo "not updating unwritable cache $cache_file"
13933 fi
13934 fi
13935 rm -f confcache
13936
13937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13938 # Let make expand exec_prefix.
13939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13940
13941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13943 # trailing colons and then remove the whole line if VPATH becomes empty
13944 # (actually we leave an empty line to preserve line numbers).
13945 if test "x$srcdir" = x.; then
13946 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13947 s/:*\$(srcdir):*/:/;
13948 s/:*\${srcdir}:*/:/;
13949 s/:*@srcdir@:*/:/;
13950 s/^\([^=]*=[ ]*\):*/\1/;
13951 s/:*$//;
13952 s/^[^=]*=[ ]*$//;
13953 }'
13954 fi
13955
13956 DEFS=-DHAVE_CONFIG_H
13957
13958 ac_libobjs=
13959 ac_ltlibobjs=
13960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13961 # 1. Remove the extension, and $U if already installed.
13962 ac_i=`echo "$ac_i" |
13963 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13964 # 2. Add them.
13965 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13966 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13967 done
13968 LIBOBJS=$ac_libobjs
13969
13970 LTLIBOBJS=$ac_ltlibobjs
13971
13972
13973
13974 : ${CONFIG_STATUS=./config.status}
13975 ac_clean_files_save=$ac_clean_files
13976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13979 cat >$CONFIG_STATUS <<_ACEOF
13980 #! $SHELL
13981 # Generated by $as_me.
13982 # Run this file to recreate the current configuration.
13983 # Compiler output produced by configure, useful for debugging
13984 # configure, is in config.log if it exists.
13985
13986 debug=false
13987 ac_cs_recheck=false
13988 ac_cs_silent=false
13989 SHELL=\${CONFIG_SHELL-$SHELL}
13990 _ACEOF
13991
13992 cat >>$CONFIG_STATUS <<\_ACEOF
13993 ## --------------------- ##
13994 ## M4sh Initialization. ##
13995 ## --------------------- ##
13996
13997 # Be Bourne compatible
13998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13999 emulate sh
14000 NULLCMD=:
14001 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14002 # is contrary to our usage. Disable this feature.
14003 alias -g '${1+"$@"}'='"$@"'
14004 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14005 set -o posix
14006 fi
14007
14008 # Support unset when possible.
14009 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14010 as_unset=unset
14011 else
14012 as_unset=false
14013 fi
14014
14015
14016 # Work around bugs in pre-3.0 UWIN ksh.
14017 $as_unset ENV MAIL MAILPATH
14018 PS1='$ '
14019 PS2='> '
14020 PS4='+ '
14021
14022 # NLS nuisances.
14023 for as_var in \
14024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14026 LC_TELEPHONE LC_TIME
14027 do
14028 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14029 eval $as_var=C; export $as_var
14030 else
14031 $as_unset $as_var
14032 fi
14033 done
14034
14035 # Required to use basename.
14036 if expr a : '\(a\)' >/dev/null 2>&1; then
14037 as_expr=expr
14038 else
14039 as_expr=false
14040 fi
14041
14042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14043 as_basename=basename
14044 else
14045 as_basename=false
14046 fi
14047
14048
14049 # Name of the executable.
14050 as_me=`$as_basename "$0" ||
14051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14052 X"$0" : 'X\(//\)$' \| \
14053 X"$0" : 'X\(/\)$' \| \
14054 . : '\(.\)' 2>/dev/null ||
14055 echo X/"$0" |
14056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14057 /^X\/\(\/\/\)$/{ s//\1/; q; }
14058 /^X\/\(\/\).*/{ s//\1/; q; }
14059 s/.*/./; q'`
14060
14061
14062 # PATH needs CR, and LINENO needs CR and PATH.
14063 # Avoid depending upon Character Ranges.
14064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14067 as_cr_digits='0123456789'
14068 as_cr_alnum=$as_cr_Letters$as_cr_digits
14069
14070 # The user is always right.
14071 if test "${PATH_SEPARATOR+set}" != set; then
14072 echo "#! /bin/sh" >conf$$.sh
14073 echo "exit 0" >>conf$$.sh
14074 chmod +x conf$$.sh
14075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14076 PATH_SEPARATOR=';'
14077 else
14078 PATH_SEPARATOR=:
14079 fi
14080 rm -f conf$$.sh
14081 fi
14082
14083
14084 as_lineno_1=$LINENO
14085 as_lineno_2=$LINENO
14086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14087 test "x$as_lineno_1" != "x$as_lineno_2" &&
14088 test "x$as_lineno_3" = "x$as_lineno_2" || {
14089 # Find who we are. Look in the path if we contain no path at all
14090 # relative or not.
14091 case $0 in
14092 *[\\/]* ) as_myself=$0 ;;
14093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14094 for as_dir in $PATH
14095 do
14096 IFS=$as_save_IFS
14097 test -z "$as_dir" && as_dir=.
14098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14099 done
14100
14101 ;;
14102 esac
14103 # We did not find ourselves, most probably we were run as `sh COMMAND'
14104 # in which case we are not to be found in the path.
14105 if test "x$as_myself" = x; then
14106 as_myself=$0
14107 fi
14108 if test ! -f "$as_myself"; then
14109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14111 { (exit 1); exit 1; }; }
14112 fi
14113 case $CONFIG_SHELL in
14114 '')
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14117 do
14118 IFS=$as_save_IFS
14119 test -z "$as_dir" && as_dir=.
14120 for as_base in sh bash ksh sh5; do
14121 case $as_dir in
14122 /*)
14123 if ("$as_dir/$as_base" -c '
14124 as_lineno_1=$LINENO
14125 as_lineno_2=$LINENO
14126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14127 test "x$as_lineno_1" != "x$as_lineno_2" &&
14128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14131 CONFIG_SHELL=$as_dir/$as_base
14132 export CONFIG_SHELL
14133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14134 fi;;
14135 esac
14136 done
14137 done
14138 ;;
14139 esac
14140
14141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14142 # uniformly replaced by the line number. The first 'sed' inserts a
14143 # line-number line before each line; the second 'sed' does the real
14144 # work. The second script uses 'N' to pair each line-number line
14145 # with the numbered line, and appends trailing '-' during
14146 # substitution so that $LINENO is not a special case at line end.
14147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14149 sed '=' <$as_myself |
14150 sed '
14151 N
14152 s,$,-,
14153 : loop
14154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14155 t loop
14156 s,-$,,
14157 s,^['$as_cr_digits']*\n,,
14158 ' >$as_me.lineno &&
14159 chmod +x $as_me.lineno ||
14160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14162 { (exit 1); exit 1; }; }
14163
14164 # Don't try to exec as it changes $[0], causing all sort of problems
14165 # (the dirname of $[0] is not the place where we might find the
14166 # original and so on. Autoconf is especially sensible to this).
14167 . ./$as_me.lineno
14168 # Exit status is that of the last command.
14169 exit
14170 }
14171
14172
14173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14174 *c*,-n*) ECHO_N= ECHO_C='
14175 ' ECHO_T=' ' ;;
14176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14178 esac
14179
14180 if expr a : '\(a\)' >/dev/null 2>&1; then
14181 as_expr=expr
14182 else
14183 as_expr=false
14184 fi
14185
14186 rm -f conf$$ conf$$.exe conf$$.file
14187 echo >conf$$.file
14188 if ln -s conf$$.file conf$$ 2>/dev/null; then
14189 # We could just check for DJGPP; but this test a) works b) is more generic
14190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14191 if test -f conf$$.exe; then
14192 # Don't use ln at all; we don't have any links
14193 as_ln_s='cp -p'
14194 else
14195 as_ln_s='ln -s'
14196 fi
14197 elif ln conf$$.file conf$$ 2>/dev/null; then
14198 as_ln_s=ln
14199 else
14200 as_ln_s='cp -p'
14201 fi
14202 rm -f conf$$ conf$$.exe conf$$.file
14203
14204 if mkdir -p . 2>/dev/null; then
14205 as_mkdir_p=:
14206 else
14207 as_mkdir_p=false
14208 fi
14209
14210 as_executable_p="test -f"
14211
14212 # Sed expression to map a string onto a valid CPP name.
14213 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14214
14215 # Sed expression to map a string onto a valid variable name.
14216 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14217
14218
14219 # IFS
14220 # We need space, tab and new line, in precisely that order.
14221 as_nl='
14222 '
14223 IFS=" $as_nl"
14224
14225 # CDPATH.
14226 $as_unset CDPATH
14227
14228 exec 6>&1
14229
14230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14231 # report actual input values of CONFIG_FILES etc. instead of their
14232 # values after options handling. Logging --version etc. is OK.
14233 exec 5>>config.log
14234 {
14235 echo
14236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14237 ## Running $as_me. ##
14238 _ASBOX
14239 } >&5
14240 cat >&5 <<_CSEOF
14241
14242 This file was extended by $as_me, which was
14243 generated by GNU Autoconf 2.57. Invocation command line was
14244
14245 CONFIG_FILES = $CONFIG_FILES
14246 CONFIG_HEADERS = $CONFIG_HEADERS
14247 CONFIG_LINKS = $CONFIG_LINKS
14248 CONFIG_COMMANDS = $CONFIG_COMMANDS
14249 $ $0 $@
14250
14251 _CSEOF
14252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14253 echo >&5
14254 _ACEOF
14255
14256 # Files that config.status was made for.
14257 if test -n "$ac_config_files"; then
14258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14259 fi
14260
14261 if test -n "$ac_config_headers"; then
14262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14263 fi
14264
14265 if test -n "$ac_config_links"; then
14266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14267 fi
14268
14269 if test -n "$ac_config_commands"; then
14270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14271 fi
14272
14273 cat >>$CONFIG_STATUS <<\_ACEOF
14274
14275 ac_cs_usage="\
14276 \`$as_me' instantiates files from templates according to the
14277 current configuration.
14278
14279 Usage: $0 [OPTIONS] [FILE]...
14280
14281 -h, --help print this help, then exit
14282 -V, --version print version number, then exit
14283 -q, --quiet do not print progress messages
14284 -d, --debug don't remove temporary files
14285 --recheck update $as_me by reconfiguring in the same conditions
14286 --file=FILE[:TEMPLATE]
14287 instantiate the configuration file FILE
14288 --header=FILE[:TEMPLATE]
14289 instantiate the configuration header FILE
14290
14291 Configuration files:
14292 $config_files
14293
14294 Configuration headers:
14295 $config_headers
14296
14297 Configuration commands:
14298 $config_commands
14299
14300 Report bugs to <bug-autoconf@gnu.org>."
14301 _ACEOF
14302
14303 cat >>$CONFIG_STATUS <<_ACEOF
14304 ac_cs_version="\\
14305 config.status
14306 configured by $0, generated by GNU Autoconf 2.57,
14307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14308
14309 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14310 Free Software Foundation, Inc.
14311 This config.status script is free software; the Free Software Foundation
14312 gives unlimited permission to copy, distribute and modify it."
14313 srcdir=$srcdir
14314 _ACEOF
14315
14316 cat >>$CONFIG_STATUS <<\_ACEOF
14317 # If no file are specified by the user, then we need to provide default
14318 # value. By we need to know if files were specified by the user.
14319 ac_need_defaults=:
14320 while test $# != 0
14321 do
14322 case $1 in
14323 --*=*)
14324 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14325 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14326 ac_shift=:
14327 ;;
14328 -*)
14329 ac_option=$1
14330 ac_optarg=$2
14331 ac_shift=shift
14332 ;;
14333 *) # This is not an option, so the user has probably given explicit
14334 # arguments.
14335 ac_option=$1
14336 ac_need_defaults=false;;
14337 esac
14338
14339 case $ac_option in
14340 # Handling of the options.
14341 _ACEOF
14342 cat >>$CONFIG_STATUS <<\_ACEOF
14343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14344 ac_cs_recheck=: ;;
14345 --version | --vers* | -V )
14346 echo "$ac_cs_version"; exit 0 ;;
14347 --he | --h)
14348 # Conflict between --help and --header
14349 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14350 Try \`$0 --help' for more information." >&5
14351 echo "$as_me: error: ambiguous option: $1
14352 Try \`$0 --help' for more information." >&2;}
14353 { (exit 1); exit 1; }; };;
14354 --help | --hel | -h )
14355 echo "$ac_cs_usage"; exit 0 ;;
14356 --debug | --d* | -d )
14357 debug=: ;;
14358 --file | --fil | --fi | --f )
14359 $ac_shift
14360 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14361 ac_need_defaults=false;;
14362 --header | --heade | --head | --hea )
14363 $ac_shift
14364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14365 ac_need_defaults=false;;
14366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14367 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14368 ac_cs_silent=: ;;
14369
14370 # This is an error.
14371 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14372 Try \`$0 --help' for more information." >&5
14373 echo "$as_me: error: unrecognized option: $1
14374 Try \`$0 --help' for more information." >&2;}
14375 { (exit 1); exit 1; }; } ;;
14376
14377 *) ac_config_targets="$ac_config_targets $1" ;;
14378
14379 esac
14380 shift
14381 done
14382
14383 ac_configure_extra_args=
14384
14385 if $ac_cs_silent; then
14386 exec 6>/dev/null
14387 ac_configure_extra_args="$ac_configure_extra_args --silent"
14388 fi
14389
14390 _ACEOF
14391 cat >>$CONFIG_STATUS <<_ACEOF
14392 if \$ac_cs_recheck; then
14393 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14394 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14395 fi
14396
14397 _ACEOF
14398
14399 cat >>$CONFIG_STATUS <<_ACEOF
14400 #
14401 # INIT-COMMANDS section.
14402 #
14403
14404
14405 subdirs='$subdirs'
14406 symbolic_link='$symbolic_link'
14407
14408
14409 _ACEOF
14410
14411
14412
14413 cat >>$CONFIG_STATUS <<\_ACEOF
14414 for ac_config_target in $ac_config_targets
14415 do
14416 case "$ac_config_target" in
14417 # Handling of arguments.
14418 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
14419 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14420 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14421 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
14422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14424 { (exit 1); exit 1; }; };;
14425 esac
14426 done
14427
14428 # If the user did not use the arguments to specify the items to instantiate,
14429 # then the envvar interface is used. Set only those that are not.
14430 # We use the long form for the default assignment because of an extremely
14431 # bizarre bug on SunOS 4.1.3.
14432 if $ac_need_defaults; then
14433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14436 fi
14437
14438 # Have a temporary directory for convenience. Make it in the build tree
14439 # simply because there is no reason to put it here, and in addition,
14440 # creating and moving files from /tmp can sometimes cause problems.
14441 # Create a temporary directory, and hook for its removal unless debugging.
14442 $debug ||
14443 {
14444 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14445 trap '{ (exit 1); exit 1; }' 1 2 13 15
14446 }
14447
14448 # Create a (secure) tmp directory for tmp files.
14449
14450 {
14451 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14452 test -n "$tmp" && test -d "$tmp"
14453 } ||
14454 {
14455 tmp=./confstat$$-$RANDOM
14456 (umask 077 && mkdir $tmp)
14457 } ||
14458 {
14459 echo "$me: cannot create a temporary directory in ." >&2
14460 { (exit 1); exit 1; }
14461 }
14462
14463 _ACEOF
14464
14465 cat >>$CONFIG_STATUS <<_ACEOF
14466
14467 #
14468 # CONFIG_FILES section.
14469 #
14470
14471 # No need to generate the scripts if there are no CONFIG_FILES.
14472 # This happens for instance when ./config.status config.h
14473 if test -n "\$CONFIG_FILES"; then
14474 # Protect against being on the right side of a sed subst in config.status.
14475 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14476 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14477 s,@SHELL@,$SHELL,;t t
14478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14484 s,@exec_prefix@,$exec_prefix,;t t
14485 s,@prefix@,$prefix,;t t
14486 s,@program_transform_name@,$program_transform_name,;t t
14487 s,@bindir@,$bindir,;t t
14488 s,@sbindir@,$sbindir,;t t
14489 s,@libexecdir@,$libexecdir,;t t
14490 s,@datadir@,$datadir,;t t
14491 s,@sysconfdir@,$sysconfdir,;t t
14492 s,@sharedstatedir@,$sharedstatedir,;t t
14493 s,@localstatedir@,$localstatedir,;t t
14494 s,@libdir@,$libdir,;t t
14495 s,@includedir@,$includedir,;t t
14496 s,@oldincludedir@,$oldincludedir,;t t
14497 s,@infodir@,$infodir,;t t
14498 s,@mandir@,$mandir,;t t
14499 s,@build_alias@,$build_alias,;t t
14500 s,@host_alias@,$host_alias,;t t
14501 s,@target_alias@,$target_alias,;t t
14502 s,@DEFS@,$DEFS,;t t
14503 s,@ECHO_C@,$ECHO_C,;t t
14504 s,@ECHO_N@,$ECHO_N,;t t
14505 s,@ECHO_T@,$ECHO_T,;t t
14506 s,@LIBS@,$LIBS,;t t
14507 s,@build@,$build,;t t
14508 s,@build_cpu@,$build_cpu,;t t
14509 s,@build_vendor@,$build_vendor,;t t
14510 s,@build_os@,$build_os,;t t
14511 s,@host@,$host,;t t
14512 s,@host_cpu@,$host_cpu,;t t
14513 s,@host_vendor@,$host_vendor,;t t
14514 s,@host_os@,$host_os,;t t
14515 s,@target@,$target,;t t
14516 s,@target_cpu@,$target_cpu,;t t
14517 s,@target_vendor@,$target_vendor,;t t
14518 s,@target_os@,$target_os,;t t
14519 s,@build_canonical@,$build_canonical,;t t
14520 s,@host_canonical@,$host_canonical,;t t
14521 s,@target_subdir@,$target_subdir,;t t
14522 s,@CC@,$CC,;t t
14523 s,@CFLAGS@,$CFLAGS,;t t
14524 s,@LDFLAGS@,$LDFLAGS,;t t
14525 s,@CPPFLAGS@,$CPPFLAGS,;t t
14526 s,@ac_ct_CC@,$ac_ct_CC,;t t
14527 s,@EXEEXT@,$EXEEXT,;t t
14528 s,@OBJEXT@,$OBJEXT,;t t
14529 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
14530 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
14531 s,@CPP@,$CPP,;t t
14532 s,@EGREP@,$EGREP,;t t
14533 s,@GNATBIND@,$GNATBIND,;t t
14534 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
14535 s,@ADAC@,$ADAC,;t t
14536 s,@strict1_warn@,$strict1_warn,;t t
14537 s,@warn_cflags@,$warn_cflags,;t t
14538 s,@WERROR@,$WERROR,;t t
14539 s,@nocommon_flag@,$nocommon_flag,;t t
14540 s,@valgrind_path@,$valgrind_path,;t t
14541 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
14542 s,@valgrind_command@,$valgrind_command,;t t
14543 s,@coverage_flags@,$coverage_flags,;t t
14544 s,@enable_multilib@,$enable_multilib,;t t
14545 s,@enable_shared@,$enable_shared,;t t
14546 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14547 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14548 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
14549 s,@SET_MAKE@,$SET_MAKE,;t t
14550 s,@AWK@,$AWK,;t t
14551 s,@LN@,$LN,;t t
14552 s,@LN_S@,$LN_S,;t t
14553 s,@RANLIB@,$RANLIB,;t t
14554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14555 s,@INSTALL@,$INSTALL,;t t
14556 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14558 s,@have_mktemp_command@,$have_mktemp_command,;t t
14559 s,@MAKEINFO@,$MAKEINFO,;t t
14560 s,@BUILD_INFO@,$BUILD_INFO,;t t
14561 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
14562 s,@make_compare_target@,$make_compare_target,;t t
14563 s,@FLEX@,$FLEX,;t t
14564 s,@BISON@,$BISON,;t t
14565 s,@stage1_cflags@,$stage1_cflags,;t t
14566 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
14567 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
14568 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
14569 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
14570 s,@LIBICONV@,$LIBICONV,;t t
14571 s,@manext@,$manext,;t t
14572 s,@objext@,$objext,;t t
14573 s,@extra_modes_file@,$extra_modes_file,;t t
14574 s,@FORBUILD@,$FORBUILD,;t t
14575 s,@PACKAGE@,$PACKAGE,;t t
14576 s,@VERSION@,$VERSION,;t t
14577 s,@ALLOCA@,$ALLOCA,;t t
14578 s,@GLIBC21@,$GLIBC21,;t t
14579 s,@USE_NLS@,$USE_NLS,;t t
14580 s,@MSGFMT@,$MSGFMT,;t t
14581 s,@GMSGFMT@,$GMSGFMT,;t t
14582 s,@XGETTEXT@,$XGETTEXT,;t t
14583 s,@INTLBISON@,$INTLBISON,;t t
14584 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14585 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14586 s,@CATALOGS@,$CATALOGS,;t t
14587 s,@CATOBJEXT@,$CATOBJEXT,;t t
14588 s,@INTLLIBS@,$INTLLIBS,;t t
14589 s,@INTLDEPS@,$INTLDEPS,;t t
14590 s,@INTLOBJS@,$INTLOBJS,;t t
14591 s,@POSUB@,$POSUB,;t t
14592 s,@DATADIRNAME@,$DATADIRNAME,;t t
14593 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14594 s,@GENCAT@,$GENCAT,;t t
14595 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14596 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14597 s,@CROSS@,$CROSS,;t t
14598 s,@ALL@,$ALL,;t t
14599 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
14600 s,@inhibit_libc@,$inhibit_libc,;t t
14601 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
14602 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
14603 s,@BUILD_CC@,$BUILD_CC,;t t
14604 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
14605 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
14606 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
14607 s,@libgcc_visibility@,$libgcc_visibility,;t t
14608 s,@gthread_flags@,$gthread_flags,;t t
14609 s,@GGC@,$GGC,;t t
14610 s,@zlibdir@,$zlibdir,;t t
14611 s,@zlibinc@,$zlibinc,;t t
14612 s,@MAINT@,$MAINT,;t t
14613 s,@gcc_tooldir@,$gcc_tooldir,;t t
14614 s,@dollar@,$dollar,;t t
14615 s,@slibdir@,$slibdir,;t t
14616 s,@objdir@,$objdir,;t t
14617 s,@subdirs@,$subdirs,;t t
14618 s,@srcdir@,$srcdir,;t t
14619 s,@all_boot_languages@,$all_boot_languages,;t t
14620 s,@all_compilers@,$all_compilers,;t t
14621 s,@all_gtfiles@,$all_gtfiles,;t t
14622 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
14623 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
14624 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
14625 s,@all_languages@,$all_languages,;t t
14626 s,@all_stagestuff@,$all_stagestuff,;t t
14627 s,@build_exeext@,$build_exeext,;t t
14628 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
14629 s,@build_xm_file_list@,$build_xm_file_list,;t t
14630 s,@build_xm_file@,$build_xm_file,;t t
14631 s,@build_xm_defines@,$build_xm_defines,;t t
14632 s,@check_languages@,$check_languages,;t t
14633 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
14634 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
14635 s,@cpp_install_dir@,$cpp_install_dir,;t t
14636 s,@dep_host_xmake_file@,$dep_host_xmake_file,;t t
14637 s,@dep_tmake_file@,$dep_tmake_file,;t t
14638 s,@extra_headers_list@,$extra_headers_list,;t t
14639 s,@extra_objs@,$extra_objs,;t t
14640 s,@extra_parts@,$extra_parts,;t t
14641 s,@extra_passes@,$extra_passes,;t t
14642 s,@extra_programs@,$extra_programs,;t t
14643 s,@float_h_file@,$float_h_file,;t t
14644 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
14645 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
14646 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
14647 s,@gcc_version@,$gcc_version,;t t
14648 s,@gcc_version_full@,$gcc_version_full,;t t
14649 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
14650 s,@host_exeext@,$host_exeext,;t t
14651 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
14652 s,@host_xm_file_list@,$host_xm_file_list,;t t
14653 s,@host_xm_file@,$host_xm_file,;t t
14654 s,@host_xm_defines@,$host_xm_defines,;t t
14655 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
14656 s,@install@,$install,;t t
14657 s,@lang_options_files@,$lang_options_files,;t t
14658 s,@lang_specs_files@,$lang_specs_files,;t t
14659 s,@lang_tree_files@,$lang_tree_files,;t t
14660 s,@local_prefix@,$local_prefix,;t t
14661 s,@md_file@,$md_file,;t t
14662 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
14663 s,@out_file@,$out_file,;t t
14664 s,@out_object_file@,$out_object_file,;t t
14665 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
14666 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
14667 s,@symbolic_link@,$symbolic_link,;t t
14668 s,@thread_file@,$thread_file,;t t
14669 s,@tm_file_list@,$tm_file_list,;t t
14670 s,@tm_file@,$tm_file,;t t
14671 s,@tm_defines@,$tm_defines,;t t
14672 s,@tm_p_file_list@,$tm_p_file_list,;t t
14673 s,@tm_p_file@,$tm_p_file,;t t
14674 s,@xm_file@,$xm_file,;t t
14675 s,@xm_defines@,$xm_defines,;t t
14676 s,@c_target_objs@,$c_target_objs,;t t
14677 s,@cxx_target_objs@,$cxx_target_objs,;t t
14678 s,@target_cpu_default@,$target_cpu_default,;t t
14679 s,@LIBOBJS@,$LIBOBJS,;t t
14680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14681 /@target_overrides@/r $target_overrides
14682 s,@target_overrides@,,;t t
14683 /@host_overrides@/r $host_overrides
14684 s,@host_overrides@,,;t t
14685 /@language_fragments@/r $language_fragments
14686 s,@language_fragments@,,;t t
14687 /@language_hooks@/r $language_hooks
14688 s,@language_hooks@,,;t t
14689 CEOF
14690
14691 _ACEOF
14692
14693 cat >>$CONFIG_STATUS <<\_ACEOF
14694 # Split the substitutions into bite-sized pieces for seds with
14695 # small command number limits, like on Digital OSF/1 and HP-UX.
14696 ac_max_sed_lines=48
14697 ac_sed_frag=1 # Number of current file.
14698 ac_beg=1 # First line for current file.
14699 ac_end=$ac_max_sed_lines # Line after last line for current file.
14700 ac_more_lines=:
14701 ac_sed_cmds=
14702 while $ac_more_lines; do
14703 if test $ac_beg -gt 1; then
14704 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14705 else
14706 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14707 fi
14708 if test ! -s $tmp/subs.frag; then
14709 ac_more_lines=false
14710 else
14711 # The purpose of the label and of the branching condition is to
14712 # speed up the sed processing (if there are no `@' at all, there
14713 # is no need to browse any of the substitutions).
14714 # These are the two extra sed commands mentioned above.
14715 (echo ':t
14716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14717 if test -z "$ac_sed_cmds"; then
14718 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14719 else
14720 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14721 fi
14722 ac_sed_frag=`expr $ac_sed_frag + 1`
14723 ac_beg=$ac_end
14724 ac_end=`expr $ac_end + $ac_max_sed_lines`
14725 fi
14726 done
14727 if test -z "$ac_sed_cmds"; then
14728 ac_sed_cmds=cat
14729 fi
14730 fi # test -n "$CONFIG_FILES"
14731
14732 _ACEOF
14733 cat >>$CONFIG_STATUS <<\_ACEOF
14734 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14736 case $ac_file in
14737 - | *:- | *:-:* ) # input from stdin
14738 cat >$tmp/stdin
14739 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14741 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14742 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14743 * ) ac_file_in=$ac_file.in ;;
14744 esac
14745
14746 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14747 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$ac_file" : 'X\(//\)[^/]' \| \
14750 X"$ac_file" : 'X\(//\)$' \| \
14751 X"$ac_file" : 'X\(/\)' \| \
14752 . : '\(.\)' 2>/dev/null ||
14753 echo X"$ac_file" |
14754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14756 /^X\(\/\/\)$/{ s//\1/; q; }
14757 /^X\(\/\).*/{ s//\1/; q; }
14758 s/.*/./; q'`
14759 { if $as_mkdir_p; then
14760 mkdir -p "$ac_dir"
14761 else
14762 as_dir="$ac_dir"
14763 as_dirs=
14764 while test ! -d "$as_dir"; do
14765 as_dirs="$as_dir $as_dirs"
14766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$as_dir" : 'X\(//\)[^/]' \| \
14769 X"$as_dir" : 'X\(//\)$' \| \
14770 X"$as_dir" : 'X\(/\)' \| \
14771 . : '\(.\)' 2>/dev/null ||
14772 echo X"$as_dir" |
14773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14775 /^X\(\/\/\)$/{ s//\1/; q; }
14776 /^X\(\/\).*/{ s//\1/; q; }
14777 s/.*/./; q'`
14778 done
14779 test ! -n "$as_dirs" || mkdir $as_dirs
14780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14782 { (exit 1); exit 1; }; }; }
14783
14784 ac_builddir=.
14785
14786 if test "$ac_dir" != .; then
14787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14788 # A "../" for each directory in $ac_dir_suffix.
14789 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14790 else
14791 ac_dir_suffix= ac_top_builddir=
14792 fi
14793
14794 case $srcdir in
14795 .) # No --srcdir option. We are building in place.
14796 ac_srcdir=.
14797 if test -z "$ac_top_builddir"; then
14798 ac_top_srcdir=.
14799 else
14800 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14801 fi ;;
14802 [\\/]* | ?:[\\/]* ) # Absolute path.
14803 ac_srcdir=$srcdir$ac_dir_suffix;
14804 ac_top_srcdir=$srcdir ;;
14805 *) # Relative path.
14806 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14807 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14808 esac
14809 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14810 # absolute.
14811 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14812 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14813 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14814 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14815
14816
14817
14818 if test x"$ac_file" != x-; then
14819 { echo "$as_me:$LINENO: creating $ac_file" >&5
14820 echo "$as_me: creating $ac_file" >&6;}
14821 rm -f "$ac_file"
14822 fi
14823 # Let's still pretend it is `configure' which instantiates (i.e., don't
14824 # use $as_me), people would be surprised to read:
14825 # /* config.h. Generated by config.status. */
14826 if test x"$ac_file" = x-; then
14827 configure_input=
14828 else
14829 configure_input="$ac_file. "
14830 fi
14831 configure_input=$configure_input"Generated from `echo $ac_file_in |
14832 sed 's,.*/,,'` by configure."
14833
14834 # First look for the input files in the build tree, otherwise in the
14835 # src tree.
14836 ac_file_inputs=`IFS=:
14837 for f in $ac_file_in; do
14838 case $f in
14839 -) echo $tmp/stdin ;;
14840 [\\/$]*)
14841 # Absolute (can't be DOS-style, as IFS=:)
14842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14843 echo "$as_me: error: cannot find input file: $f" >&2;}
14844 { (exit 1); exit 1; }; }
14845 echo $f;;
14846 *) # Relative
14847 if test -f "$f"; then
14848 # Build tree
14849 echo $f
14850 elif test -f "$srcdir/$f"; then
14851 # Source tree
14852 echo $srcdir/$f
14853 else
14854 # /dev/null tree
14855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14856 echo "$as_me: error: cannot find input file: $f" >&2;}
14857 { (exit 1); exit 1; }; }
14858 fi;;
14859 esac
14860 done` || { (exit 1); exit 1; }
14861 _ACEOF
14862 cat >>$CONFIG_STATUS <<_ACEOF
14863 sed "$ac_vpsub
14864 $extrasub
14865 _ACEOF
14866 cat >>$CONFIG_STATUS <<\_ACEOF
14867 :t
14868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14869 s,@configure_input@,$configure_input,;t t
14870 s,@srcdir@,$ac_srcdir,;t t
14871 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14872 s,@top_srcdir@,$ac_top_srcdir,;t t
14873 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14874 s,@builddir@,$ac_builddir,;t t
14875 s,@abs_builddir@,$ac_abs_builddir,;t t
14876 s,@top_builddir@,$ac_top_builddir,;t t
14877 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14878 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14879 rm -f $tmp/stdin
14880 if test x"$ac_file" != x-; then
14881 mv $tmp/out $ac_file
14882 else
14883 cat $tmp/out
14884 rm -f $tmp/out
14885 fi
14886
14887 done
14888 _ACEOF
14889 cat >>$CONFIG_STATUS <<\_ACEOF
14890
14891 #
14892 # CONFIG_HEADER section.
14893 #
14894
14895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14897 #
14898 # ac_d sets the value in "#define NAME VALUE" lines.
14899 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14900 ac_dB='[ ].*$,\1#\2'
14901 ac_dC=' '
14902 ac_dD=',;t'
14903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14904 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14905 ac_uB='$,\1#\2define\3'
14906 ac_uC=' '
14907 ac_uD=',;t'
14908
14909 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14911 case $ac_file in
14912 - | *:- | *:-:* ) # input from stdin
14913 cat >$tmp/stdin
14914 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14915 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14916 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14917 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14918 * ) ac_file_in=$ac_file.in ;;
14919 esac
14920
14921 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14922 echo "$as_me: creating $ac_file" >&6;}
14923
14924 # First look for the input files in the build tree, otherwise in the
14925 # src tree.
14926 ac_file_inputs=`IFS=:
14927 for f in $ac_file_in; do
14928 case $f in
14929 -) echo $tmp/stdin ;;
14930 [\\/$]*)
14931 # Absolute (can't be DOS-style, as IFS=:)
14932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14933 echo "$as_me: error: cannot find input file: $f" >&2;}
14934 { (exit 1); exit 1; }; }
14935 echo $f;;
14936 *) # Relative
14937 if test -f "$f"; then
14938 # Build tree
14939 echo $f
14940 elif test -f "$srcdir/$f"; then
14941 # Source tree
14942 echo $srcdir/$f
14943 else
14944 # /dev/null tree
14945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14946 echo "$as_me: error: cannot find input file: $f" >&2;}
14947 { (exit 1); exit 1; }; }
14948 fi;;
14949 esac
14950 done` || { (exit 1); exit 1; }
14951 # Remove the trailing spaces.
14952 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14953
14954 _ACEOF
14955
14956 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14957 # `conftest.undefs', that substitutes the proper values into
14958 # config.h.in to produce config.h. The first handles `#define'
14959 # templates, and the second `#undef' templates.
14960 # And first: Protect against being on the right side of a sed subst in
14961 # config.status. Protect against being in an unquoted here document
14962 # in config.status.
14963 rm -f conftest.defines conftest.undefs
14964 # Using a here document instead of a string reduces the quoting nightmare.
14965 # Putting comments in sed scripts is not portable.
14966 #
14967 # `end' is used to avoid that the second main sed command (meant for
14968 # 0-ary CPP macros) applies to n-ary macro definitions.
14969 # See the Autoconf documentation for `clear'.
14970 cat >confdef2sed.sed <<\_ACEOF
14971 s/[\\&,]/\\&/g
14972 s,[\\$`],\\&,g
14973 t clear
14974 : clear
14975 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14976 t end
14977 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14978 : end
14979 _ACEOF
14980 # If some macros were called several times there might be several times
14981 # the same #defines, which is useless. Nevertheless, we may not want to
14982 # sort them, since we want the *last* AC-DEFINE to be honored.
14983 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14984 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14985 rm -f confdef2sed.sed
14986
14987 # This sed command replaces #undef with comments. This is necessary, for
14988 # example, in the case of _POSIX_SOURCE, which is predefined and required
14989 # on some systems where configure will not decide to define it.
14990 cat >>conftest.undefs <<\_ACEOF
14991 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14992 _ACEOF
14993
14994 # Break up conftest.defines because some shells have a limit on the size
14995 # of here documents, and old seds have small limits too (100 cmds).
14996 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14997 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14998 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14999 echo ' :' >>$CONFIG_STATUS
15000 rm -f conftest.tail
15001 while grep . conftest.defines >/dev/null
15002 do
15003 # Write a limited-size here document to $tmp/defines.sed.
15004 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15005 # Speed up: don't consider the non `#define' lines.
15006 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15007 # Work around the forget-to-reset-the-flag bug.
15008 echo 't clr' >>$CONFIG_STATUS
15009 echo ': clr' >>$CONFIG_STATUS
15010 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15011 echo 'CEOF
15012 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15013 rm -f $tmp/in
15014 mv $tmp/out $tmp/in
15015 ' >>$CONFIG_STATUS
15016 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15017 rm -f conftest.defines
15018 mv conftest.tail conftest.defines
15019 done
15020 rm -f conftest.defines
15021 echo ' fi # grep' >>$CONFIG_STATUS
15022 echo >>$CONFIG_STATUS
15023
15024 # Break up conftest.undefs because some shells have a limit on the size
15025 # of here documents, and old seds have small limits too (100 cmds).
15026 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15027 rm -f conftest.tail
15028 while grep . conftest.undefs >/dev/null
15029 do
15030 # Write a limited-size here document to $tmp/undefs.sed.
15031 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15032 # Speed up: don't consider the non `#undef'
15033 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15034 # Work around the forget-to-reset-the-flag bug.
15035 echo 't clr' >>$CONFIG_STATUS
15036 echo ': clr' >>$CONFIG_STATUS
15037 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15038 echo 'CEOF
15039 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15040 rm -f $tmp/in
15041 mv $tmp/out $tmp/in
15042 ' >>$CONFIG_STATUS
15043 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15044 rm -f conftest.undefs
15045 mv conftest.tail conftest.undefs
15046 done
15047 rm -f conftest.undefs
15048
15049 cat >>$CONFIG_STATUS <<\_ACEOF
15050 # Let's still pretend it is `configure' which instantiates (i.e., don't
15051 # use $as_me), people would be surprised to read:
15052 # /* config.h. Generated by config.status. */
15053 if test x"$ac_file" = x-; then
15054 echo "/* Generated by configure. */" >$tmp/config.h
15055 else
15056 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15057 fi
15058 cat $tmp/in >>$tmp/config.h
15059 rm -f $tmp/in
15060 if test x"$ac_file" != x-; then
15061 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15063 echo "$as_me: $ac_file is unchanged" >&6;}
15064 else
15065 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$ac_file" : 'X\(//\)[^/]' \| \
15068 X"$ac_file" : 'X\(//\)$' \| \
15069 X"$ac_file" : 'X\(/\)' \| \
15070 . : '\(.\)' 2>/dev/null ||
15071 echo X"$ac_file" |
15072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15074 /^X\(\/\/\)$/{ s//\1/; q; }
15075 /^X\(\/\).*/{ s//\1/; q; }
15076 s/.*/./; q'`
15077 { if $as_mkdir_p; then
15078 mkdir -p "$ac_dir"
15079 else
15080 as_dir="$ac_dir"
15081 as_dirs=
15082 while test ! -d "$as_dir"; do
15083 as_dirs="$as_dir $as_dirs"
15084 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15086 X"$as_dir" : 'X\(//\)[^/]' \| \
15087 X"$as_dir" : 'X\(//\)$' \| \
15088 X"$as_dir" : 'X\(/\)' \| \
15089 . : '\(.\)' 2>/dev/null ||
15090 echo X"$as_dir" |
15091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15093 /^X\(\/\/\)$/{ s//\1/; q; }
15094 /^X\(\/\).*/{ s//\1/; q; }
15095 s/.*/./; q'`
15096 done
15097 test ! -n "$as_dirs" || mkdir $as_dirs
15098 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15100 { (exit 1); exit 1; }; }; }
15101
15102 rm -f $ac_file
15103 mv $tmp/config.h $ac_file
15104 fi
15105 else
15106 cat $tmp/config.h
15107 rm -f $tmp/config.h
15108 fi
15109 done
15110 _ACEOF
15111 cat >>$CONFIG_STATUS <<\_ACEOF
15112
15113 #
15114 # CONFIG_COMMANDS section.
15115 #
15116 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15117 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15118 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15119 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15121 X"$ac_dest" : 'X\(//\)[^/]' \| \
15122 X"$ac_dest" : 'X\(//\)$' \| \
15123 X"$ac_dest" : 'X\(/\)' \| \
15124 . : '\(.\)' 2>/dev/null ||
15125 echo X"$ac_dest" |
15126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15128 /^X\(\/\/\)$/{ s//\1/; q; }
15129 /^X\(\/\).*/{ s//\1/; q; }
15130 s/.*/./; q'`
15131 ac_builddir=.
15132
15133 if test "$ac_dir" != .; then
15134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15135 # A "../" for each directory in $ac_dir_suffix.
15136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15137 else
15138 ac_dir_suffix= ac_top_builddir=
15139 fi
15140
15141 case $srcdir in
15142 .) # No --srcdir option. We are building in place.
15143 ac_srcdir=.
15144 if test -z "$ac_top_builddir"; then
15145 ac_top_srcdir=.
15146 else
15147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15148 fi ;;
15149 [\\/]* | ?:[\\/]* ) # Absolute path.
15150 ac_srcdir=$srcdir$ac_dir_suffix;
15151 ac_top_srcdir=$srcdir ;;
15152 *) # Relative path.
15153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15155 esac
15156 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15157 # absolute.
15158 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15159 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15160 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15161 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15162
15163
15164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15165 echo "$as_me: executing $ac_dest commands" >&6;}
15166 case $ac_dest in
15167 default-1 ) for ac_file in $CONFIG_FILES; do
15168 # Support "outfile[:infile[:infile...]]"
15169 case "$ac_file" in
15170 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15171 esac
15172 # PO directories have a Makefile.in generated from Makefile.in.in.
15173 case "$ac_file" in */Makefile.in)
15174 # Adjust a relative srcdir.
15175 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15176 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15177 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15178 # In autoconf-2.13 it is called $ac_given_srcdir.
15179 # In autoconf-2.50 it is called $srcdir.
15180 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15181 case "$ac_given_srcdir" in
15182 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15183 /*) top_srcdir="$ac_given_srcdir" ;;
15184 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15185 esac
15186 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15187 rm -f "$ac_dir/POTFILES"
15188 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15189 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
15190 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15191 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15192 fi
15193 ;;
15194 esac
15195 done ;;
15196 default )
15197 case x$CONFIG_HEADERS in
15198 xauto-host.h:config.in)
15199 echo > cstamp-h ;;
15200 esac
15201 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
15202 # bootstrapping and the installation procedure can still use
15203 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
15204 # FLAGS_TO_PASS has been modified to solve the problem there.
15205 # This is virtually a duplicate of what happens in configure.lang; we do
15206 # an extra check to make sure this only happens if ln -s can be used.
15207 if test "$symbolic_link" = "ln -s"; then
15208 for d in .. ${subdirs} fixinc ; do
15209 if test $d != ..; then
15210 STARTDIR=`${PWDCMD-pwd}`
15211 cd $d
15212 for t in stage1 stage2 stage3 stage4 include
15213 do
15214 rm -f $t
15215 $symbolic_link ../$t $t 2>/dev/null
15216 done
15217 cd $STARTDIR
15218 fi
15219 done
15220 else true ; fi
15221 # Avoid having to add intl to our include paths.
15222 if test -f intl/libintl.h; then
15223 echo creating libintl.h
15224 echo '#include "intl/libintl.h"' >libintl.h
15225 fi
15226 ;;
15227 esac
15228 done
15229 _ACEOF
15230
15231 cat >>$CONFIG_STATUS <<\_ACEOF
15232
15233 { (exit 0); exit 0; }
15234 _ACEOF
15235 chmod +x $CONFIG_STATUS
15236 ac_clean_files=$ac_clean_files_save
15237
15238
15239 # configure is writing to config.log, and then calls config.status.
15240 # config.status does its own redirection, appending to config.log.
15241 # Unfortunately, on DOS this fails, as config.log is still kept open
15242 # by configure, so config.status won't be able to write to it; its
15243 # output is simply discarded. So we exec the FD to /dev/null,
15244 # effectively closing config.log, so it can be properly (re)opened and
15245 # appended to by config.status. When coming back to configure, we
15246 # need to make the FD available again.
15247 if test "$no_create" != yes; then
15248 ac_cs_success=:
15249 ac_config_status_args=
15250 test "$silent" = yes &&
15251 ac_config_status_args="$ac_config_status_args --quiet"
15252 exec 5>/dev/null
15253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15254 exec 5>>config.log
15255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15256 # would make configure fail if this is the last instruction.
15257 $ac_cs_success || { (exit 1); exit 1; }
15258 fi
15259