]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
re PR bootstrap/17383 (Building in src dir fails)
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir gcc_version_trigger gcc_version_full gcc_version GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default set_gcc_lib_path GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: assert,fold,gc,gcac,misc,
871 rtlflag,rtl,tree,valgrind,release,yes,all;
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
878 default is noopt
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --disable-rpath do not hardcode runtime library paths
890 --enable-initfini-array use .init_array/.fini_array sections
891 --enable-sjlj-exceptions
892 arrange to use setjmp/longjmp exception handling
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
899 of the registry key
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
906
907 Optional Packages:
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-gnu-ld assume the C compiler uses GNU ld default=no
925 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
926 --without-libiconv-prefix don't search for libiconv in includedir and libdir
927 --with-system-libunwind use installed libunwind
928 --with-gc={page,zone} choose the garbage collection mechanism to use
929 with the compiler
930 --with-system-zlib use installed libz
931 --with-slibdir=DIR shared libraries in DIR LIBDIR
932
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
940 CPP C preprocessor
941 GMPLIBS How to link GMP
942 GMPINC How to find GMP include files
943
944 Use these variables to override the choices made by `configure' or to help
945 it to find libraries and programs with nonstandard names/locations.
946
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
956
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1019
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034 fi
1035 cd $ac_popdir
1036 done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1042
1043 Copyright (C) 2003 Free Software Foundation, Inc.
1044 This configure script is free software; the Free Software Foundation
1045 gives unlimited permission to copy, distribute and modify it.
1046 _ACEOF
1047 exit 0
1048 fi
1049 exec 5>config.log
1050 cat >&5 <<_ACEOF
1051 This file contains any messages produced by compilers while
1052 running configure, to aid debugging if configure makes a mistake.
1053
1054 It was created by $as_me, which was
1055 generated by GNU Autoconf 2.59. Invocation command line was
1056
1057 $ $0 $@
1058
1059 _ACEOF
1060 {
1061 cat <<_ASUNAME
1062 ## --------- ##
1063 ## Platform. ##
1064 ## --------- ##
1065
1066 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1067 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1068 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1069 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1070 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1071
1072 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1073 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1074
1075 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1076 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1077 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1078 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1079 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1080 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1081 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1082
1083 _ASUNAME
1084
1085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 for as_dir in $PATH
1087 do
1088 IFS=$as_save_IFS
1089 test -z "$as_dir" && as_dir=.
1090 echo "PATH: $as_dir"
1091 done
1092
1093 } >&5
1094
1095 cat >&5 <<_ACEOF
1096
1097
1098 ## ----------- ##
1099 ## Core tests. ##
1100 ## ----------- ##
1101
1102 _ACEOF
1103
1104
1105 # Keep a trace of the command line.
1106 # Strip out --no-create and --no-recursion so they do not pile up.
1107 # Strip out --silent because we don't want to record it for future runs.
1108 # Also quote any args containing shell meta-characters.
1109 # Make two passes to allow for proper duplicate-argument suppression.
1110 ac_configure_args=
1111 ac_configure_args0=
1112 ac_configure_args1=
1113 ac_sep=
1114 ac_must_keep_next=false
1115 for ac_pass in 1 2
1116 do
1117 for ac_arg
1118 do
1119 case $ac_arg in
1120 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 continue ;;
1124 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1125 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 esac
1127 case $ac_pass in
1128 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1129 2)
1130 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1131 if test $ac_must_keep_next = true; then
1132 ac_must_keep_next=false # Got value, back to normal.
1133 else
1134 case $ac_arg in
1135 *=* | --config-cache | -C | -disable-* | --disable-* \
1136 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1137 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1138 | -with-* | --with-* | -without-* | --without-* | --x)
1139 case "$ac_configure_args0 " in
1140 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 esac
1142 ;;
1143 -* ) ac_must_keep_next=true ;;
1144 esac
1145 fi
1146 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1147 # Get rid of the leading space.
1148 ac_sep=" "
1149 ;;
1150 esac
1151 done
1152 done
1153 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1154 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1155
1156 # When interrupted or exit'd, cleanup temporary files, and complete
1157 # config.log. We remove comments because anyway the quotes in there
1158 # would cause problems or look ugly.
1159 # WARNING: Be sure not to use single quotes in there, as some shells,
1160 # such as our DU 5.0 friend, will then `close' the trap.
1161 trap 'exit_status=$?
1162 # Save into config.log some information that might help in debugging.
1163 {
1164 echo
1165
1166 cat <<\_ASBOX
1167 ## ---------------- ##
1168 ## Cache variables. ##
1169 ## ---------------- ##
1170 _ASBOX
1171 echo
1172 # The following way of writing the cache mishandles newlines in values,
1173 {
1174 (set) 2>&1 |
1175 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 *ac_space=\ *)
1177 sed -n \
1178 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 ;;
1181 *)
1182 sed -n \
1183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184 ;;
1185 esac;
1186 }
1187 echo
1188
1189 cat <<\_ASBOX
1190 ## ----------------- ##
1191 ## Output variables. ##
1192 ## ----------------- ##
1193 _ASBOX
1194 echo
1195 for ac_var in $ac_subst_vars
1196 do
1197 eval ac_val=$`echo $ac_var`
1198 echo "$ac_var='"'"'$ac_val'"'"'"
1199 done | sort
1200 echo
1201
1202 if test -n "$ac_subst_files"; then
1203 cat <<\_ASBOX
1204 ## ------------- ##
1205 ## Output files. ##
1206 ## ------------- ##
1207 _ASBOX
1208 echo
1209 for ac_var in $ac_subst_files
1210 do
1211 eval ac_val=$`echo $ac_var`
1212 echo "$ac_var='"'"'$ac_val'"'"'"
1213 done | sort
1214 echo
1215 fi
1216
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219 ## ----------- ##
1220 ## confdefs.h. ##
1221 ## ----------- ##
1222 _ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h | sort
1225 echo
1226 fi
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1234 ' 0
1235 for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 done
1238 ac_signal=0
1239
1240 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1241 rm -rf conftest* confdefs.h
1242 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 echo >confdefs.h
1244
1245 # Predefined preprocessor variables.
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 _ACEOF
1260
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 _ACEOF
1270
1271
1272 # Let the site file select an alternate cache file if it wants to.
1273 # Prefer explicitly selected file to automatically selected ones.
1274 if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 fi
1280 fi
1281 for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
1283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284 echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
1286 . "$ac_site_file"
1287 fi
1288 done
1289
1290 if test -r "$cache_file"; then
1291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295 echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1300 fi
1301 else
1302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303 echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1305 fi
1306
1307 # Check that the precious variables saved in the cache have kept the same
1308 # value.
1309 ac_cache_corrupted=false
1310 for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1326 *)
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331 echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333 echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1348 fi
1349 done
1350 if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
1356 fi
1357
1358 ac_ext=c
1359 ac_cpp='$CPP $CPPFLAGS'
1360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384
1385
1386 #Set to 1 on a release branch
1387 is_release=
1388
1389 # Determine the host, build, and target systems
1390 ac_aux_dir=
1391 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1392 if test -f $ac_dir/install-sh; then
1393 ac_aux_dir=$ac_dir
1394 ac_install_sh="$ac_aux_dir/install-sh -c"
1395 break
1396 elif test -f $ac_dir/install.sh; then
1397 ac_aux_dir=$ac_dir
1398 ac_install_sh="$ac_aux_dir/install.sh -c"
1399 break
1400 elif test -f $ac_dir/shtool; then
1401 ac_aux_dir=$ac_dir
1402 ac_install_sh="$ac_aux_dir/shtool install -c"
1403 break
1404 fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1409 { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415 # Make sure we can run config.sub.
1416 $ac_config_sub sun4 >/dev/null 2>&1 ||
1417 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1418 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421 echo "$as_me:$LINENO: checking build system type" >&5
1422 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1423 if test "${ac_cv_build+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 ac_cv_build_alias=$build_alias
1427 test -z "$ac_cv_build_alias" &&
1428 ac_cv_build_alias=`$ac_config_guess`
1429 test -z "$ac_cv_build_alias" &&
1430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1432 { (exit 1); exit 1; }; }
1433 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1434 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1435 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1436 { (exit 1); exit 1; }; }
1437
1438 fi
1439 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1440 echo "${ECHO_T}$ac_cv_build" >&6
1441 build=$ac_cv_build
1442 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1443 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1444 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1445
1446
1447 echo "$as_me:$LINENO: checking host system type" >&5
1448 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1449 if test "${ac_cv_host+set}" = set; then
1450 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 else
1452 ac_cv_host_alias=$host_alias
1453 test -z "$ac_cv_host_alias" &&
1454 ac_cv_host_alias=$ac_cv_build_alias
1455 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1456 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1457 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1458 { (exit 1); exit 1; }; }
1459
1460 fi
1461 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1462 echo "${ECHO_T}$ac_cv_host" >&6
1463 host=$ac_cv_host
1464 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1465 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1466 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1467
1468
1469 echo "$as_me:$LINENO: checking target system type" >&5
1470 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1471 if test "${ac_cv_target+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 ac_cv_target_alias=$target_alias
1475 test "x$ac_cv_target_alias" = "x" &&
1476 ac_cv_target_alias=$ac_cv_host_alias
1477 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1478 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1479 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1480 { (exit 1); exit 1; }; }
1481
1482 fi
1483 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1484 echo "${ECHO_T}$ac_cv_target" >&6
1485 target=$ac_cv_target
1486 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1487 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1488 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489
1490
1491 # The aliases save the names the user supplied, while $host etc.
1492 # will get canonicalized.
1493 test -n "$target_alias" &&
1494 test "$program_prefix$program_suffix$program_transform_name" = \
1495 NONENONEs,x,x, &&
1496 program_prefix=${target_alias}-
1497
1498 # Determine the noncanonical target name, for directory use.
1499 case ${build_alias} in
1500 "") build_noncanonical=${build} ;;
1501 *) build_noncanonical=${build_alias} ;;
1502 esac
1503
1504 case ${host_alias} in
1505 "") host_noncanonical=${build_noncanonical} ;;
1506 *) host_noncanonical=${host_alias} ;;
1507 esac
1508
1509 case ${target_alias} in
1510 "") target_noncanonical=${host_noncanonical} ;;
1511 *) target_noncanonical=${target_alias} ;;
1512 esac
1513
1514
1515
1516
1517 # Determine the target- and build-specific subdirectories
1518 # Prefix 'build-' so this never conflicts with target_subdir.
1519 build_subdir="build-${build_noncanonical}"
1520 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1521 if ( test $srcdir = . && test -d gcc ) \
1522 || test -d $srcdir/../host-${host_noncanonical}; then
1523 host_subdir="host-${host_noncanonical}"
1524 else
1525 host_subdir=.
1526 fi
1527 # No prefix.
1528 target_subdir=${target_noncanonical}
1529
1530
1531 # Set program_transform_name
1532 test "$program_prefix" != NONE &&
1533 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1534 # Use a double $ so make ignores it.
1535 test "$program_suffix" != NONE &&
1536 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1537 # Double any \ or $. echo might interpret backslashes.
1538 # By default was `s,x,x', remove it if useless.
1539 cat <<\_ACEOF >conftest.sed
1540 s/[\\$]/&&/g;s/;s,x,x,$//
1541 _ACEOF
1542 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1543 rm conftest.sed
1544
1545
1546 # Check for bogus environment variables.
1547 # Test if LIBRARY_PATH contains the notation for the current directory
1548 # since this would lead to problems installing/building glibc.
1549 # LIBRARY_PATH contains the current directory if one of the following
1550 # is true:
1551 # - one of the terminals (":" and ";") is the first or last sign
1552 # - two terminals occur directly after each other
1553 # - the path contains an element with a dot in it
1554 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1555 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1556 case ${LIBRARY_PATH} in
1557 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1558 library_path_setting="contains current directory"
1559 ;;
1560 *)
1561 library_path_setting="ok"
1562 ;;
1563 esac
1564 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1565 echo "${ECHO_T}$library_path_setting" >&6
1566 if test "$library_path_setting" != "ok"; then
1567 { { echo "$as_me:$LINENO: error:
1568 *** LIBRARY_PATH shouldn't contain the current directory when
1569 *** building gcc. Please change the environment variable
1570 *** and run configure again." >&5
1571 echo "$as_me: error:
1572 *** LIBRARY_PATH shouldn't contain the current directory when
1573 *** building gcc. Please change the environment variable
1574 *** and run configure again." >&2;}
1575 { (exit 1); exit 1; }; }
1576 fi
1577
1578 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # GCC_EXEC_PREFIX contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1586 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1587 case ${GCC_EXEC_PREFIX} in
1588 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589 gcc_exec_prefix_setting="contains current directory"
1590 ;;
1591 *)
1592 gcc_exec_prefix_setting="ok"
1593 ;;
1594 esac
1595 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1596 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1597 if test "$gcc_exec_prefix_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606 { (exit 1); exit 1; }; }
1607 fi
1608
1609
1610 if test "${with_gcc_version_trigger+set}" = set; then
1611 gcc_version_trigger=$with_gcc_version_trigger
1612 else
1613 gcc_version_trigger=$srcdir/../gcc/version.c
1614 fi
1615 if test -f "${gcc_version_trigger}"; then
1616 gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
1617 else
1618 gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
1619 fi
1620 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
1621
1622
1623
1624
1625
1626 # -----------
1627 # Directories
1628 # -----------
1629
1630 # Specify the local prefix
1631 local_prefix=
1632
1633 # Check whether --with-local-prefix or --without-local-prefix was given.
1634 if test "${with_local_prefix+set}" = set; then
1635 withval="$with_local_prefix"
1636 case "${withval}" in
1637 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1638 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1639 { (exit 1); exit 1; }; } ;;
1640 no) ;;
1641 *) local_prefix=$with_local_prefix ;;
1642 esac
1643 fi;
1644
1645 # Default local prefix if it is empty
1646 if test x$local_prefix = x; then
1647 local_prefix=/usr/local
1648 fi
1649
1650 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1651 # passed in by the toplevel make and thus we'd get different behavior
1652 # depending on where we built the sources.
1653 gcc_gxx_include_dir=
1654 # Specify the g++ header file directory
1655
1656 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1657 if test "${with_gxx_include_dir+set}" = set; then
1658 withval="$with_gxx_include_dir"
1659 case "${withval}" in
1660 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1661 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1663 no) ;;
1664 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1665 esac
1666 fi;
1667
1668 if test x${gcc_gxx_include_dir} = x; then
1669 if test x${enable_version_specific_runtime_libs} = xyes; then
1670 gcc_gxx_include_dir='${libsubdir}/include/c++'
1671 else
1672 libstdcxx_incdir=c++/${gcc_version}
1673 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1674 fi
1675 fi
1676
1677
1678 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1679 if test "${with_cpp_install_dir+set}" = set; then
1680 withval="$with_cpp_install_dir"
1681 if test x$withval = xyes; then
1682 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1683 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1684 { (exit 1); exit 1; }; }
1685 elif test x$withval != xno; then
1686 cpp_install_dir=$withval
1687 fi
1688 fi;
1689
1690 # We would like to our source tree to be readonly. However when releases or
1691 # pre-releases are generated, the flex/bison generated files as well as the
1692 # various formats of manuals need to be included along with the rest of the
1693 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1694 # just that.
1695
1696 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1697 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1698 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1699 if test "${enable_generated_files_in_srcdir+set}" = set; then
1700 enableval="$enable_generated_files_in_srcdir"
1701 generated_files_in_srcdir=$enableval
1702 else
1703 generated_files_in_srcdir=no
1704 fi;
1705
1706 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1707 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1708
1709 if test "$generated_files_in_srcdir" = "yes"; then
1710 GENINSRC=''
1711 else
1712 GENINSRC='#'
1713 fi
1714
1715
1716 # -------------------
1717 # Find default linker
1718 # -------------------
1719
1720 # With GNU ld
1721
1722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1723 if test "${with_gnu_ld+set}" = set; then
1724 withval="$with_gnu_ld"
1725 gnu_ld_flag="$with_gnu_ld"
1726 else
1727 gnu_ld_flag=no
1728 fi;
1729
1730 # With pre-defined ld
1731
1732 # Check whether --with-ld or --without-ld was given.
1733 if test "${with_ld+set}" = set; then
1734 withval="$with_ld"
1735 DEFAULT_LINKER="$with_ld"
1736 fi;
1737 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1738 if test ! -x "$DEFAULT_LINKER"; then
1739 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1740 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1741 { (exit 1); exit 1; }; }
1742 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1743 gnu_ld_flag=yes
1744 fi
1745
1746 cat >>confdefs.h <<_ACEOF
1747 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1748 _ACEOF
1749
1750 fi
1751
1752 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1753 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1754 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1755 if test x"$gnu_ld_flag" = x"no"; then
1756 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1757 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1758 else
1759 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1760 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1761 fi
1762 else
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1765 fi
1766
1767 # With demangler in GNU ld
1768
1769 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1770 if test "${with_demangler_in_ld+set}" = set; then
1771 withval="$with_demangler_in_ld"
1772 demangler_in_ld="$with_demangler_in_ld"
1773 else
1774 demangler_in_ld=no
1775 fi;
1776
1777 # ----------------------
1778 # Find default assembler
1779 # ----------------------
1780
1781 # With GNU as
1782
1783 # Check whether --with-gnu-as or --without-gnu-as was given.
1784 if test "${with_gnu_as+set}" = set; then
1785 withval="$with_gnu_as"
1786 gas_flag="$with_gnu_as"
1787 else
1788 gas_flag=no
1789 fi;
1790
1791
1792 # Check whether --with-as or --without-as was given.
1793 if test "${with_as+set}" = set; then
1794 withval="$with_as"
1795 DEFAULT_ASSEMBLER="$with_as"
1796 fi;
1797 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1798 if test ! -x "$DEFAULT_ASSEMBLER"; then
1799 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1800 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1801 { (exit 1); exit 1; }; }
1802 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1803 gas_flag=yes
1804 fi
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1808 _ACEOF
1809
1810 fi
1811
1812 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1813 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1814 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1815 if test x"$gas_flag" = x"no"; then
1816 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1817 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1818 else
1819 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1820 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1821 fi
1822 else
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 # ---------------
1828 # Find C compiler
1829 # ---------------
1830
1831 # If a non-executable a.out is present (e.g. created by GNU as above even if
1832 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1833 # file, even when creating an executable, so an execution test fails.
1834 # Remove possible default executable files to avoid this.
1835 #
1836 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1837 # Autoconf includes it.
1838 rm -f a.out a.exe b.out
1839
1840 # Find the native compiler
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 if test -n "$ac_tool_prefix"; then
1847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1848 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1849 echo "$as_me:$LINENO: checking for $ac_word" >&5
1850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1851 if test "${ac_cv_prog_CC+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 if test -n "$CC"; then
1855 ac_cv_prog_CC="$CC" # Let the user override the test.
1856 else
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 for ac_exec_ext in '' $ac_executable_extensions; do
1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 break 2
1867 fi
1868 done
1869 done
1870
1871 fi
1872 fi
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875 echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6
1877 else
1878 echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6
1880 fi
1881
1882 fi
1883 if test -z "$ac_cv_prog_CC"; then
1884 ac_ct_CC=$CC
1885 # Extract the first word of "gcc", so it can be a program name with args.
1886 set dummy gcc; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$ac_ct_CC"; then
1893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_ac_ct_CC="gcc"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912 if test -n "$ac_ct_CC"; then
1913 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914 echo "${ECHO_T}$ac_ct_CC" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 CC=$ac_ct_CC
1921 else
1922 CC="$ac_cv_prog_CC"
1923 fi
1924
1925 if test -z "$CC"; then
1926 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}cc; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC="${ac_tool_prefix}cc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 CC=$ac_cv_prog_CC
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1957 else
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 fi
1963 if test -z "$ac_cv_prog_CC"; then
1964 ac_ct_CC=$CC
1965 # Extract the first word of "cc", so it can be a program name with args.
1966 set dummy cc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 if test -n "$ac_ct_CC"; then
1973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978 IFS=$as_save_IFS
1979 test -z "$as_dir" && as_dir=.
1980 for ac_exec_ext in '' $ac_executable_extensions; do
1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982 ac_cv_prog_ac_ct_CC="cc"
1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 break 2
1985 fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992 if test -n "$ac_ct_CC"; then
1993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994 echo "${ECHO_T}$ac_ct_CC" >&6
1995 else
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 CC=$ac_ct_CC
2001 else
2002 CC="$ac_cv_prog_CC"
2003 fi
2004
2005 fi
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2027 continue
2028 fi
2029 ac_cv_prog_CC="cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035
2036 if test $ac_prog_rejected = yes; then
2037 # We found a bogon in the path, so make sure we never use it.
2038 set dummy $ac_cv_prog_CC
2039 shift
2040 if test $# != 0; then
2041 # We chose a different compiler from the bogus one.
2042 # However, it has the same basename, so the bogon will be chosen
2043 # first if we set CC to just the basename; use the full file name.
2044 shift
2045 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2046 fi
2047 fi
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2054 else
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2057 fi
2058
2059 fi
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2062 for ac_prog in cl
2063 do
2064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2081 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2084 fi
2085 done
2086 done
2087
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6
2094 else
2095 echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6
2097 fi
2098
2099 test -n "$CC" && break
2100 done
2101 fi
2102 if test -z "$CC"; then
2103 ac_ct_CC=$CC
2104 for ac_prog in cl
2105 do
2106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2107 set dummy $ac_prog; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_ac_ct_CC="$ac_prog"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2126 fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2136 else
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141 test -n "$ac_ct_CC" && break
2142 done
2143
2144 CC=$ac_ct_CC
2145 fi
2146
2147 fi
2148
2149
2150 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2151 See \`config.log' for more details." >&5
2152 echo "$as_me: error: no acceptable C compiler found in \$PATH
2153 See \`config.log' for more details." >&2;}
2154 { (exit 1); exit 1; }; }
2155
2156 # Provide some information about the compiler.
2157 echo "$as_me:$LINENO:" \
2158 "checking for C compiler version" >&5
2159 ac_compiler=`set X $ac_compile; echo $2`
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2161 (eval $ac_compiler --version </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2166 (eval $ac_compiler -v </dev/null >&5) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }
2170 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2171 (eval $ac_compiler -V </dev/null >&5) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }
2175
2176 cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h. */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2182
2183 int
2184 main ()
2185 {
2186
2187 ;
2188 return 0;
2189 }
2190 _ACEOF
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2195 # of exeext.
2196 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2200 (eval $ac_link_default) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 # Find the output, starting from the most likely. This scheme is
2205 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2206 # resort.
2207
2208 # Be careful to initialize this variable, since it used to be cached.
2209 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2210 ac_cv_exeext=
2211 # b.out is created by i960 compilers.
2212 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2213 do
2214 test -f "$ac_file" || continue
2215 case $ac_file in
2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2217 ;;
2218 conftest.$ac_ext )
2219 # This is the source file.
2220 ;;
2221 [ab].out )
2222 # We found the default executable, but exeext='' is most
2223 # certainly right.
2224 break;;
2225 *.* )
2226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 # FIXME: I believe we export ac_cv_exeext for Libtool,
2228 # but it would be cool to find out if it's true. Does anybody
2229 # maintain Libtool? --akim.
2230 export ac_cv_exeext
2231 break;;
2232 * )
2233 break;;
2234 esac
2235 done
2236 else
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244 { (exit 77); exit 77; }; }
2245 fi
2246
2247 ac_exeext=$ac_cv_exeext
2248 echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6
2250
2251 # Check the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258 if { ac_try='./$ac_file'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 cross_compiling=no
2265 else
2266 if test "$cross_compiling" = maybe; then
2267 cross_compiling=yes
2268 else
2269 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2270 If you meant to cross compile, use \`--host'.
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot run C compiled programs.
2273 If you meant to cross compile, use \`--host'.
2274 See \`config.log' for more details." >&2;}
2275 { (exit 1); exit 1; }; }
2276 fi
2277 fi
2278 fi
2279 echo "$as_me:$LINENO: result: yes" >&5
2280 echo "${ECHO_T}yes" >&6
2281
2282 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2283 ac_clean_files=$ac_clean_files_save
2284 # Check the compiler produces executables we can run. If not, either
2285 # the compiler is broken, or we cross compile.
2286 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2287 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2288 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2289 echo "${ECHO_T}$cross_compiling" >&6
2290
2291 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2292 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2300 # work properly (i.e., refer to `conftest.exe'), while it won't with
2301 # `rm'.
2302 for ac_file in conftest.exe conftest conftest.*; do
2303 test -f "$ac_file" || continue
2304 case $ac_file in
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2307 export ac_cv_exeext
2308 break;;
2309 * ) break;;
2310 esac
2311 done
2312 else
2313 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2314 See \`config.log' for more details." >&5
2315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2316 See \`config.log' for more details." >&2;}
2317 { (exit 1); exit 1; }; }
2318 fi
2319
2320 rm -f conftest$ac_cv_exeext
2321 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2322 echo "${ECHO_T}$ac_cv_exeext" >&6
2323
2324 rm -f conftest.$ac_ext
2325 EXEEXT=$ac_cv_exeext
2326 ac_exeext=$EXEEXT
2327 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2329 if test "${ac_cv_objext+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338
2339 int
2340 main ()
2341 {
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 rm -f conftest.o conftest.obj
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2354 case $ac_file in
2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357 break;;
2358 esac
2359 done
2360 else
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2369 fi
2370
2371 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372 fi
2373 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2374 echo "${ECHO_T}$ac_cv_objext" >&6
2375 OBJEXT=$ac_cv_objext
2376 ac_objext=$OBJEXT
2377 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2378 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2379 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2388
2389 int
2390 main ()
2391 {
2392 #ifndef __GNUC__
2393 choke me
2394 #endif
2395
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 (eval $ac_try) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 ac_compiler_gnu=yes
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_compiler_gnu=no
2428 fi
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2431
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2434 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2435 GCC=`test $ac_compiler_gnu = yes && echo yes`
2436 ac_test_CFLAGS=${CFLAGS+set}
2437 ac_save_CFLAGS=$CFLAGS
2438 CFLAGS="-g"
2439 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 cat >conftest.$ac_ext <<_ACEOF
2445 /* confdefs.h. */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2450
2451 int
2452 main ()
2453 {
2454
2455 ;
2456 return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2462 ac_status=$?
2463 grep -v '^ *+' conftest.er1 >conftest.err
2464 rm -f conftest.er1
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 (eval $ac_try) 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 ac_cv_prog_cc_g=yes
2482 else
2483 echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 ac_cv_prog_cc_g=no
2487 fi
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2491 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2492 if test "$ac_test_CFLAGS" = set; then
2493 CFLAGS=$ac_save_CFLAGS
2494 elif test $ac_cv_prog_cc_g = yes; then
2495 if test "$GCC" = yes; then
2496 CFLAGS="-g -O2"
2497 else
2498 CFLAGS="-g"
2499 fi
2500 else
2501 if test "$GCC" = yes; then
2502 CFLAGS="-O2"
2503 else
2504 CFLAGS=
2505 fi
2506 fi
2507 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2508 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2509 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512 ac_cv_prog_cc_stdc=no
2513 ac_save_CC=$CC
2514 cat >conftest.$ac_ext <<_ACEOF
2515 /* confdefs.h. */
2516 _ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2520 #include <stdarg.h>
2521 #include <stdio.h>
2522 #include <sys/types.h>
2523 #include <sys/stat.h>
2524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2525 struct buf { int x; };
2526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2527 static char *e (p, i)
2528 char **p;
2529 int i;
2530 {
2531 return p[i];
2532 }
2533 static char *f (char * (*g) (char **, int), char **p, ...)
2534 {
2535 char *s;
2536 va_list v;
2537 va_start (v,p);
2538 s = g (p, va_arg (v,int));
2539 va_end (v);
2540 return s;
2541 }
2542
2543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2544 function prototypes and stuff, but not '\xHH' hex character constants.
2545 These don't provoke an error unfortunately, instead are silently treated
2546 as 'x'. The following induces an error, until -std1 is added to get
2547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2548 array size at least. It's necessary to write '\x00'==0 to get something
2549 that's true only with -std1. */
2550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2551
2552 int test (int i, double x);
2553 struct s1 {int (*f) (int a);};
2554 struct s2 {int (*f) (double a);};
2555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2556 int argc;
2557 char **argv;
2558 int
2559 main ()
2560 {
2561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2562 ;
2563 return 0;
2564 }
2565 _ACEOF
2566 # Don't try gcc -ansi; that turns off useful extensions and
2567 # breaks some systems' header files.
2568 # AIX -qlanglvl=ansi
2569 # Ultrix and OSF/1 -std1
2570 # HP-UX 10.20 and later -Ae
2571 # HP-UX older versions -Aa -D_HPUX_SOURCE
2572 # SVR4 -Xc -D__EXTENSIONS__
2573 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2574 do
2575 CC="$ac_save_CC $ac_arg"
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>conftest.er1
2579 ac_status=$?
2580 grep -v '^ *+' conftest.er1 >conftest.err
2581 rm -f conftest.er1
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag"
2586 || test ! -s conftest.err'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 (eval $ac_try) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; } &&
2592 { ac_try='test -s conftest.$ac_objext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 ac_cv_prog_cc_stdc=$ac_arg
2599 break
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 fi
2605 rm -f conftest.err conftest.$ac_objext
2606 done
2607 rm -f conftest.$ac_ext conftest.$ac_objext
2608 CC=$ac_save_CC
2609
2610 fi
2611
2612 case "x$ac_cv_prog_cc_stdc" in
2613 x|xno)
2614 echo "$as_me:$LINENO: result: none needed" >&5
2615 echo "${ECHO_T}none needed" >&6 ;;
2616 *)
2617 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2618 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2619 CC="$CC $ac_cv_prog_cc_stdc" ;;
2620 esac
2621
2622 # Some people use a C++ compiler to compile C. Since we use `exit',
2623 # in C++ we need to declare it. In case someone uses the same compiler
2624 # for both compiling C and C++ we need to have the C++ compiler decide
2625 # the declaration of exit, since it's the most demanding environment.
2626 cat >conftest.$ac_ext <<_ACEOF
2627 #ifndef __cplusplus
2628 choke me
2629 #endif
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>conftest.er1
2634 ac_status=$?
2635 grep -v '^ *+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -z "$ac_c_werror_flag"
2641 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 for ac_declaration in \
2654 '' \
2655 'extern "C" void std::exit (int) throw (); using std::exit;' \
2656 'extern "C" void std::exit (int); using std::exit;' \
2657 'extern "C" void exit (int) throw ();' \
2658 'extern "C" void exit (int);' \
2659 'void exit (int);'
2660 do
2661 cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h. */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2667 $ac_declaration
2668 #include <stdlib.h>
2669 int
2670 main ()
2671 {
2672 exit (42);
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag"
2687 || test ! -s conftest.err'
2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689 (eval $ac_try) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }; } &&
2693 { ac_try='test -s conftest.$ac_objext'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; }; then
2699 :
2700 else
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 continue
2705 fi
2706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h. */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2713 $ac_declaration
2714 int
2715 main ()
2716 {
2717 exit (42);
2718 ;
2719 return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag"
2732 || test ! -s conftest.err'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; } &&
2738 { ac_try='test -s conftest.$ac_objext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 break
2745 else
2746 echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 fi
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 done
2752 rm -f conftest*
2753 if test -n "$ac_declaration"; then
2754 echo '#ifdef __cplusplus' >>confdefs.h
2755 echo $ac_declaration >>confdefs.h
2756 echo '#endif' >>confdefs.h
2757 fi
2758
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ac_ext=c
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770
2771 if test "x$CC" != xcc; then
2772 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2773 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2774 else
2775 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2776 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2777 fi
2778 set dummy $CC; ac_cc=`echo $2 |
2779 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2780 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 else
2783 cat >conftest.$ac_ext <<_ACEOF
2784 /* confdefs.h. */
2785 _ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2789
2790 int
2791 main ()
2792 {
2793
2794 ;
2795 return 0;
2796 }
2797 _ACEOF
2798 # Make sure it works both with $CC and with simple cc.
2799 # We do the test twice because some compilers refuse to overwrite an
2800 # existing .o file with -o, though they will create one.
2801 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2802 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
2807 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 (eval $ac_try) 2>&5
2809 ac_status=$?
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); };
2812 then
2813 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2814 if test "x$CC" != xcc; then
2815 # Test first that cc exists at all.
2816 if { ac_try='cc -c conftest.$ac_ext >&5'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2823 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } &&
2828 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); };
2833 then
2834 # cc works too.
2835 :
2836 else
2837 # cc exists but doesn't like -o.
2838 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2839 fi
2840 fi
2841 fi
2842 else
2843 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2844 fi
2845 rm -f conftest*
2846
2847 fi
2848 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850 echo "${ECHO_T}yes" >&6
2851 else
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854
2855 cat >>confdefs.h <<\_ACEOF
2856 #define NO_MINUS_C_MINUS_O 1
2857 _ACEOF
2858
2859 fi
2860
2861 # expand $ac_aux_dir to an absolute path
2862 am_aux_dir=`cd $ac_aux_dir && pwd`
2863
2864 # FIXME: we rely on the cache variable name because
2865 # there is no other way.
2866 set dummy $CC
2867 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2869 # Losing compiler, so override with the script.
2870 # FIXME: It is wrong to rewrite CC.
2871 # But if we don't then we get into trouble of one sort or another.
2872 # A longer-term fix would be to have automake use am__CC in this case,
2873 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2874 CC="$am_aux_dir/compile $CC"
2875 fi
2876
2877 # autoconf is lame and doesn't give us any substitution variable for this.
2878 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2879 NO_MINUS_C_MINUS_O=yes
2880 else
2881 OUTPUT_OPTION='-o $@'
2882 fi
2883
2884
2885
2886 # -------------------------
2887 # Check C compiler features
2888 # -------------------------
2889
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2897 # On Suns, sometimes $CPP names a directory.
2898 if test -n "$CPP" && test -d "$CPP"; then
2899 CPP=
2900 fi
2901 if test -z "$CPP"; then
2902 if test "${ac_cv_prog_CPP+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905 # Double quotes because CPP needs to be expanded
2906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2907 do
2908 ac_preproc_ok=false
2909 for ac_c_preproc_warn_flag in '' yes
2910 do
2911 # Use a header file that comes with gcc, so configuring glibc
2912 # with a fresh cross-compiler works.
2913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914 # <limits.h> exists even on freestanding compilers.
2915 # On the NeXT, cc -E runs the code through the compiler's parser,
2916 # not just through cpp. "Syntax error" is here to catch this case.
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #ifdef __STDC__
2924 # include <limits.h>
2925 #else
2926 # include <assert.h>
2927 #endif
2928 Syntax error
2929 _ACEOF
2930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } >/dev/null; then
2938 if test -s conftest.err; then
2939 ac_cpp_err=$ac_c_preproc_warn_flag
2940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2941 else
2942 ac_cpp_err=
2943 fi
2944 else
2945 ac_cpp_err=yes
2946 fi
2947 if test -z "$ac_cpp_err"; then
2948 :
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 # Broken: fails on valid input.
2954 continue
2955 fi
2956 rm -f conftest.err conftest.$ac_ext
2957
2958 # OK, works on sane cases. Now check whether non-existent headers
2959 # can be detected and how.
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <ac_nonexistent.h>
2967 _ACEOF
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 ac_status=$?
2971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2979 else
2980 ac_cpp_err=
2981 fi
2982 else
2983 ac_cpp_err=yes
2984 fi
2985 if test -z "$ac_cpp_err"; then
2986 # Broken: success on invalid input.
2987 continue
2988 else
2989 echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 # Passes both tests.
2993 ac_preproc_ok=:
2994 break
2995 fi
2996 rm -f conftest.err conftest.$ac_ext
2997
2998 done
2999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3000 rm -f conftest.err conftest.$ac_ext
3001 if $ac_preproc_ok; then
3002 break
3003 fi
3004
3005 done
3006 ac_cv_prog_CPP=$CPP
3007
3008 fi
3009 CPP=$ac_cv_prog_CPP
3010 else
3011 ac_cv_prog_CPP=$CPP
3012 fi
3013 echo "$as_me:$LINENO: result: $CPP" >&5
3014 echo "${ECHO_T}$CPP" >&6
3015 ac_preproc_ok=false
3016 for ac_c_preproc_warn_flag in '' yes
3017 do
3018 # Use a header file that comes with gcc, so configuring glibc
3019 # with a fresh cross-compiler works.
3020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021 # <limits.h> exists even on freestanding compilers.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #ifdef __STDC__
3031 # include <limits.h>
3032 #else
3033 # include <assert.h>
3034 #endif
3035 Syntax error
3036 _ACEOF
3037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } >/dev/null; then
3045 if test -s conftest.err; then
3046 ac_cpp_err=$ac_c_preproc_warn_flag
3047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3048 else
3049 ac_cpp_err=
3050 fi
3051 else
3052 ac_cpp_err=yes
3053 fi
3054 if test -z "$ac_cpp_err"; then
3055 :
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 # Broken: fails on valid input.
3061 continue
3062 fi
3063 rm -f conftest.err conftest.$ac_ext
3064
3065 # OK, works on sane cases. Now check whether non-existent headers
3066 # can be detected and how.
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h. */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <ac_nonexistent.h>
3074 _ACEOF
3075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } >/dev/null; then
3083 if test -s conftest.err; then
3084 ac_cpp_err=$ac_c_preproc_warn_flag
3085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3086 else
3087 ac_cpp_err=
3088 fi
3089 else
3090 ac_cpp_err=yes
3091 fi
3092 if test -z "$ac_cpp_err"; then
3093 # Broken: success on invalid input.
3094 continue
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 # Passes both tests.
3100 ac_preproc_ok=:
3101 break
3102 fi
3103 rm -f conftest.err conftest.$ac_ext
3104
3105 done
3106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3107 rm -f conftest.err conftest.$ac_ext
3108 if $ac_preproc_ok; then
3109 :
3110 else
3111 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }
3116 fi
3117
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123
3124
3125 echo "$as_me:$LINENO: checking for inline" >&5
3126 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3127 if test "${ac_cv_c_inline+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130 ac_cv_c_inline=no
3131 for ac_kw in inline __inline__ __inline; do
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #ifndef __cplusplus
3139 typedef int foo_t;
3140 static $ac_kw foo_t static_foo () {return 0; }
3141 $ac_kw foo_t foo () {return 0; }
3142 #endif
3143
3144 _ACEOF
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3148 ac_status=$?
3149 grep -v '^ *+' conftest.er1 >conftest.err
3150 rm -f conftest.er1
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_c_werror_flag"
3155 || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_c_inline=$ac_kw; break
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 fi
3173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3174 done
3175
3176 fi
3177 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3178 echo "${ECHO_T}$ac_cv_c_inline" >&6
3179
3180
3181 case $ac_cv_c_inline in
3182 inline | yes) ;;
3183 *)
3184 case $ac_cv_c_inline in
3185 no) ac_val=;;
3186 *) ac_val=$ac_cv_c_inline;;
3187 esac
3188 cat >>confdefs.h <<_ACEOF
3189 #ifndef __cplusplus
3190 #define inline $ac_val
3191 #endif
3192 _ACEOF
3193 ;;
3194 esac
3195
3196
3197 echo "$as_me:$LINENO: checking for long long int" >&5
3198 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3199 if test "${ac_cv_c_long_long+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208
3209 int
3210 main ()
3211 {
3212 long long int i;
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -z "$ac_c_werror_flag"
3227 || test ! -s conftest.err'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 (eval $ac_try) 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_c_long_long=yes
3240 else
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 ac_cv_c_long_long=no
3245 fi
3246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247 fi
3248 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3249 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3250 if test $ac_cv_c_long_long = yes; then
3251
3252 cat >>confdefs.h <<\_ACEOF
3253 #define HAVE_LONG_LONG 1
3254 _ACEOF
3255
3256 fi
3257 echo "$as_me:$LINENO: checking for __int64" >&5
3258 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3259 if test "${ac_cv_c___int64+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h. */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3268
3269 int
3270 main ()
3271 {
3272 __int64 i;
3273 ;
3274 return 0;
3275 }
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -z "$ac_c_werror_flag"
3287 || test ! -s conftest.err'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 ac_cv_c___int64=yes
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304 ac_cv_c___int64=no
3305 fi
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3309 echo "${ECHO_T}$ac_cv_c___int64" >&6
3310 if test $ac_cv_c___int64 = yes; then
3311
3312 cat >>confdefs.h <<\_ACEOF
3313 #define HAVE___INT64 1
3314 _ACEOF
3315
3316 fi
3317
3318
3319 # sizeof(char) is 1 by definition.
3320
3321 echo "$as_me:$LINENO: checking for egrep" >&5
3322 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3323 if test "${ac_cv_prog_egrep+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3327 then ac_cv_prog_egrep='grep -E'
3328 else ac_cv_prog_egrep='egrep'
3329 fi
3330 fi
3331 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3332 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3333 EGREP=$ac_cv_prog_egrep
3334
3335
3336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3338 if test "${ac_cv_header_stdc+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h. */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include <stdlib.h>
3348 #include <stdarg.h>
3349 #include <string.h>
3350 #include <float.h>
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } &&
3369 { ac_try='test -z "$ac_c_werror_flag"
3370 || test ! -s conftest.err'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; } &&
3376 { ac_try='test -s conftest.$ac_objext'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3382 ac_cv_header_stdc=yes
3383 else
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 ac_cv_header_stdc=no
3388 fi
3389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390
3391 if test $ac_cv_header_stdc = yes; then
3392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3393 cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h. */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h. */
3399 #include <string.h>
3400
3401 _ACEOF
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 $EGREP "memchr" >/dev/null 2>&1; then
3404 :
3405 else
3406 ac_cv_header_stdc=no
3407 fi
3408 rm -f conftest*
3409
3410 fi
3411
3412 if test $ac_cv_header_stdc = yes; then
3413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <stdlib.h>
3421
3422 _ACEOF
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "free" >/dev/null 2>&1; then
3425 :
3426 else
3427 ac_cv_header_stdc=no
3428 fi
3429 rm -f conftest*
3430
3431 fi
3432
3433 if test $ac_cv_header_stdc = yes; then
3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3435 if test "$cross_compiling" = yes; then
3436 :
3437 else
3438 cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h. */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 #include <ctype.h>
3445 #if ((' ' & 0x0FF) == 0x020)
3446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3448 #else
3449 # define ISLOWER(c) \
3450 (('a' <= (c) && (c) <= 'i') \
3451 || ('j' <= (c) && (c) <= 'r') \
3452 || ('s' <= (c) && (c) <= 'z'))
3453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3454 #endif
3455
3456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3457 int
3458 main ()
3459 {
3460 int i;
3461 for (i = 0; i < 256; i++)
3462 if (XOR (islower (i), ISLOWER (i))
3463 || toupper (i) != TOUPPER (i))
3464 exit(2);
3465 exit (0);
3466 }
3467 _ACEOF
3468 rm -f conftest$ac_exeext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3470 (eval $ac_link) 2>&5
3471 ac_status=$?
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475 (eval $ac_try) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3479 :
3480 else
3481 echo "$as_me: program exited with status $ac_status" >&5
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ( exit $ac_status )
3486 ac_cv_header_stdc=no
3487 fi
3488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 fi
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3493 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3494 if test $ac_cv_header_stdc = yes; then
3495
3496 cat >>confdefs.h <<\_ACEOF
3497 #define STDC_HEADERS 1
3498 _ACEOF
3499
3500 fi
3501
3502 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3513 inttypes.h stdint.h unistd.h
3514 do
3515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3516 echo "$as_me:$LINENO: checking for $ac_header" >&5
3517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 else
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 $ac_includes_default
3528
3529 #include <$ac_header>
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 eval "$as_ac_Header=yes"
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 eval "$as_ac_Header=no"
3559 fi
3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561 fi
3562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3565 cat >>confdefs.h <<_ACEOF
3566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3567 _ACEOF
3568
3569 fi
3570
3571 done
3572
3573
3574 echo "$as_me:$LINENO: checking for void *" >&5
3575 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3576 if test "${ac_cv_type_void_p+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 $ac_includes_default
3586 int
3587 main ()
3588 {
3589 if ((void * *) 0)
3590 return 0;
3591 if (sizeof (void *))
3592 return 0;
3593 ;
3594 return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599 (eval $ac_compile) 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_c_werror_flag"
3607 || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_type_void_p=yes
3620 else
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ac_cv_type_void_p=no
3625 fi
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3629 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3630
3631 echo "$as_me:$LINENO: checking size of void *" >&5
3632 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3633 if test "${ac_cv_sizeof_void_p+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 if test "$ac_cv_type_void_p" = yes; then
3637 # The cast to unsigned long works around a bug in the HP C Compiler
3638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3640 # This bug is HP SR number 8606223364.
3641 if test "$cross_compiling" = yes; then
3642 # Depending upon the size, compute the lo and hi bounds.
3643 cat >conftest.$ac_ext <<_ACEOF
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 $ac_includes_default
3650 int
3651 main ()
3652 {
3653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3654 test_array [0] = 0
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_lo=0 ac_mid=0
3683 while :; do
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 $ac_includes_default
3691 int
3692 main ()
3693 {
3694 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3695 test_array [0] = 0
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -z "$ac_c_werror_flag"
3711 || test ! -s conftest.err'
3712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 (eval $ac_try) 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }; } &&
3717 { ac_try='test -s conftest.$ac_objext'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 (eval $ac_try) 2>&5
3720 ac_status=$?
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; }; then
3723 ac_hi=$ac_mid; break
3724 else
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 ac_lo=`expr $ac_mid + 1`
3729 if test $ac_lo -le $ac_mid; then
3730 ac_lo= ac_hi=
3731 break
3732 fi
3733 ac_mid=`expr 2 '*' $ac_mid + 1`
3734 fi
3735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736 done
3737 else
3738 echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747 $ac_includes_default
3748 int
3749 main ()
3750 {
3751 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3752 test_array [0] = 0
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
3767 { ac_try='test -z "$ac_c_werror_flag"
3768 || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_hi=-1 ac_mid=-1
3781 while :; do
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 $ac_includes_default
3789 int
3790 main ()
3791 {
3792 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3793 test_array [0] = 0
3794
3795 ;
3796 return 0;
3797 }
3798 _ACEOF
3799 rm -f conftest.$ac_objext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } &&
3808 { ac_try='test -z "$ac_c_werror_flag"
3809 || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 ac_lo=$ac_mid; break
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 ac_hi=`expr '(' $ac_mid ')' - 1`
3827 if test $ac_mid -le $ac_hi; then
3828 ac_lo= ac_hi=
3829 break
3830 fi
3831 ac_mid=`expr 2 '*' $ac_mid`
3832 fi
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834 done
3835 else
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ac_lo= ac_hi=
3840 fi
3841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 # Binary search between lo and hi bounds.
3845 while test "x$ac_lo" != "x$ac_hi"; do
3846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 $ac_includes_default
3854 int
3855 main ()
3856 {
3857 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3858 test_array [0] = 0
3859
3860 ;
3861 return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866 (eval $ac_compile) 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -z "$ac_c_werror_flag"
3874 || test ! -s conftest.err'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 (eval $ac_try) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 (eval $ac_try) 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; }; then
3886 ac_hi=$ac_mid
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 ac_lo=`expr '(' $ac_mid ')' + 1`
3892 fi
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 done
3895 case $ac_lo in
3896 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3897 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: cannot compute sizeof (void *), 77
3900 See \`config.log' for more details." >&2;}
3901 { (exit 1); exit 1; }; } ;;
3902 esac
3903 else
3904 if test "$cross_compiling" = yes; then
3905 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3906 See \`config.log' for more details." >&5
3907 echo "$as_me: error: cannot run test program while cross compiling
3908 See \`config.log' for more details." >&2;}
3909 { (exit 1); exit 1; }; }
3910 else
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 $ac_includes_default
3918 long longval () { return (long) (sizeof (void *)); }
3919 unsigned long ulongval () { return (long) (sizeof (void *)); }
3920 #include <stdio.h>
3921 #include <stdlib.h>
3922 int
3923 main ()
3924 {
3925
3926 FILE *f = fopen ("conftest.val", "w");
3927 if (! f)
3928 exit (1);
3929 if (((long) (sizeof (void *))) < 0)
3930 {
3931 long i = longval ();
3932 if (i != ((long) (sizeof (void *))))
3933 exit (1);
3934 fprintf (f, "%ld\n", i);
3935 }
3936 else
3937 {
3938 unsigned long i = ulongval ();
3939 if (i != ((long) (sizeof (void *))))
3940 exit (1);
3941 fprintf (f, "%lu\n", i);
3942 }
3943 exit (ferror (f) || fclose (f) != 0);
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_cv_sizeof_void_p=`cat conftest.val`
3961 else
3962 echo "$as_me: program exited with status $ac_status" >&5
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 ( exit $ac_status )
3967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3968 See \`config.log' for more details." >&5
3969 echo "$as_me: error: cannot compute sizeof (void *), 77
3970 See \`config.log' for more details." >&2;}
3971 { (exit 1); exit 1; }; }
3972 fi
3973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3974 fi
3975 fi
3976 rm -f conftest.val
3977 else
3978 ac_cv_sizeof_void_p=0
3979 fi
3980 fi
3981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3982 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3983 cat >>confdefs.h <<_ACEOF
3984 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3985 _ACEOF
3986
3987
3988 echo "$as_me:$LINENO: checking for short" >&5
3989 echo $ECHO_N "checking for short... $ECHO_C" >&6
3990 if test "${ac_cv_type_short+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 $ac_includes_default
4000 int
4001 main ()
4002 {
4003 if ((short *) 0)
4004 return 0;
4005 if (sizeof (short))
4006 return 0;
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4023 (eval $ac_try) 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 ac_cv_type_short=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 ac_cv_type_short=no
4039 fi
4040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4043 echo "${ECHO_T}$ac_cv_type_short" >&6
4044
4045 echo "$as_me:$LINENO: checking size of short" >&5
4046 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4047 if test "${ac_cv_sizeof_short+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 if test "$ac_cv_type_short" = yes; then
4051 # The cast to unsigned long works around a bug in the HP C Compiler
4052 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4053 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4054 # This bug is HP SR number 8606223364.
4055 if test "$cross_compiling" = yes; then
4056 # Depending upon the size, compute the lo and hi bounds.
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064 int
4065 main ()
4066 {
4067 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4068 test_array [0] = 0
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag"
4084 || test ! -s conftest.err'
4085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 (eval $ac_try) 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_lo=0 ac_mid=0
4097 while :; do
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 $ac_includes_default
4105 int
4106 main ()
4107 {
4108 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4109 test_array [0] = 0
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag"
4125 || test ! -s conftest.err'
4126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127 (eval $ac_try) 2>&5
4128 ac_status=$?
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130 (exit $ac_status); }; } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_hi=$ac_mid; break
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142 ac_lo=`expr $ac_mid + 1`
4143 if test $ac_lo -le $ac_mid; then
4144 ac_lo= ac_hi=
4145 break
4146 fi
4147 ac_mid=`expr 2 '*' $ac_mid + 1`
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 done
4151 else
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4154
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4162 int
4163 main ()
4164 {
4165 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4166 test_array [0] = 0
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4175 ac_status=$?
4176 grep -v '^ *+' conftest.er1 >conftest.err
4177 rm -f conftest.er1
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -z "$ac_c_werror_flag"
4182 || test ! -s conftest.err'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try='test -s conftest.$ac_objext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_hi=-1 ac_mid=-1
4195 while :; do
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4203 int
4204 main ()
4205 {
4206 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4207 test_array [0] = 0
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 rm -f conftest.$ac_objext
4214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4215 (eval $ac_compile) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
4235 ac_lo=$ac_mid; break
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ac_hi=`expr '(' $ac_mid ')' - 1`
4241 if test $ac_mid -le $ac_hi; then
4242 ac_lo= ac_hi=
4243 break
4244 fi
4245 ac_mid=`expr 2 '*' $ac_mid`
4246 fi
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 done
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 ac_lo= ac_hi=
4254 fi
4255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256 fi
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 # Binary search between lo and hi bounds.
4259 while test "x$ac_lo" != "x$ac_hi"; do
4260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4268 int
4269 main ()
4270 {
4271 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4272 test_array [0] = 0
4273
4274 ;
4275 return 0;
4276 }
4277 _ACEOF
4278 rm -f conftest.$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_hi=$ac_mid
4301 else
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_lo=`expr '(' $ac_mid ')' + 1`
4306 fi
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 done
4309 case $ac_lo in
4310 ?*) ac_cv_sizeof_short=$ac_lo;;
4311 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4312 See \`config.log' for more details." >&5
4313 echo "$as_me: error: cannot compute sizeof (short), 77
4314 See \`config.log' for more details." >&2;}
4315 { (exit 1); exit 1; }; } ;;
4316 esac
4317 else
4318 if test "$cross_compiling" = yes; then
4319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4320 See \`config.log' for more details." >&5
4321 echo "$as_me: error: cannot run test program while cross compiling
4322 See \`config.log' for more details." >&2;}
4323 { (exit 1); exit 1; }; }
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4332 long longval () { return (long) (sizeof (short)); }
4333 unsigned long ulongval () { return (long) (sizeof (short)); }
4334 #include <stdio.h>
4335 #include <stdlib.h>
4336 int
4337 main ()
4338 {
4339
4340 FILE *f = fopen ("conftest.val", "w");
4341 if (! f)
4342 exit (1);
4343 if (((long) (sizeof (short))) < 0)
4344 {
4345 long i = longval ();
4346 if (i != ((long) (sizeof (short))))
4347 exit (1);
4348 fprintf (f, "%ld\n", i);
4349 }
4350 else
4351 {
4352 unsigned long i = ulongval ();
4353 if (i != ((long) (sizeof (short))))
4354 exit (1);
4355 fprintf (f, "%lu\n", i);
4356 }
4357 exit (ferror (f) || fclose (f) != 0);
4358
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4366 ac_status=$?
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 ac_cv_sizeof_short=`cat conftest.val`
4375 else
4376 echo "$as_me: program exited with status $ac_status" >&5
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 ( exit $ac_status )
4381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4382 See \`config.log' for more details." >&5
4383 echo "$as_me: error: cannot compute sizeof (short), 77
4384 See \`config.log' for more details." >&2;}
4385 { (exit 1); exit 1; }; }
4386 fi
4387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 fi
4390 rm -f conftest.val
4391 else
4392 ac_cv_sizeof_short=0
4393 fi
4394 fi
4395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4396 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4397 cat >>confdefs.h <<_ACEOF
4398 #define SIZEOF_SHORT $ac_cv_sizeof_short
4399 _ACEOF
4400
4401
4402 echo "$as_me:$LINENO: checking for int" >&5
4403 echo $ECHO_N "checking for int... $ECHO_C" >&6
4404 if test "${ac_cv_type_int+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 else
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 $ac_includes_default
4414 int
4415 main ()
4416 {
4417 if ((int *) 0)
4418 return 0;
4419 if (sizeof (int))
4420 return 0;
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 ac_cv_type_int=yes
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 ac_cv_type_int=no
4453 fi
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4457 echo "${ECHO_T}$ac_cv_type_int" >&6
4458
4459 echo "$as_me:$LINENO: checking size of int" >&5
4460 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4461 if test "${ac_cv_sizeof_int+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test "$ac_cv_type_int" = yes; then
4465 # The cast to unsigned long works around a bug in the HP C Compiler
4466 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4467 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4468 # This bug is HP SR number 8606223364.
4469 if test "$cross_compiling" = yes; then
4470 # Depending upon the size, compute the lo and hi bounds.
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 $ac_includes_default
4478 int
4479 main ()
4480 {
4481 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4482 test_array [0] = 0
4483
4484 ;
4485 return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag"
4498 || test ! -s conftest.err'
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_lo=0 ac_mid=0
4511 while :; do
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4519 int
4520 main ()
4521 {
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4523 test_array [0] = 0
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_hi=$ac_mid; break
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556 ac_lo=`expr $ac_mid + 1`
4557 if test $ac_lo -le $ac_mid; then
4558 ac_lo= ac_hi=
4559 break
4560 fi
4561 ac_mid=`expr 2 '*' $ac_mid + 1`
4562 fi
4563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4564 done
4565 else
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 cat >conftest.$ac_ext <<_ACEOF
4570 /* confdefs.h. */
4571 _ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 $ac_includes_default
4576 int
4577 main ()
4578 {
4579 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4580 test_array [0] = 0
4581
4582 ;
4583 return 0;
4584 }
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588 (eval $ac_compile) 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -z "$ac_c_werror_flag"
4596 || test ! -s conftest.err'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; } &&
4602 { ac_try='test -s conftest.$ac_objext'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; }; then
4608 ac_hi=-1 ac_mid=-1
4609 while :; do
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4617 int
4618 main ()
4619 {
4620 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4621 test_array [0] = 0
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 rm -f conftest.$ac_objext
4628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } &&
4636 { ac_try='test -z "$ac_c_werror_flag"
4637 || test ! -s conftest.err'
4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 ac_lo=$ac_mid; break
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654 ac_hi=`expr '(' $ac_mid ')' - 1`
4655 if test $ac_mid -le $ac_hi; then
4656 ac_lo= ac_hi=
4657 break
4658 fi
4659 ac_mid=`expr 2 '*' $ac_mid`
4660 fi
4661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4662 done
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 ac_lo= ac_hi=
4668 fi
4669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672 # Binary search between lo and hi bounds.
4673 while test "x$ac_lo" != "x$ac_hi"; do
4674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4682 int
4683 main ()
4684 {
4685 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4686 test_array [0] = 0
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_hi=$ac_mid
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 ac_lo=`expr '(' $ac_mid ')' + 1`
4720 fi
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4722 done
4723 case $ac_lo in
4724 ?*) ac_cv_sizeof_int=$ac_lo;;
4725 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4726 See \`config.log' for more details." >&5
4727 echo "$as_me: error: cannot compute sizeof (int), 77
4728 See \`config.log' for more details." >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730 esac
4731 else
4732 if test "$cross_compiling" = yes; then
4733 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4734 See \`config.log' for more details." >&5
4735 echo "$as_me: error: cannot run test program while cross compiling
4736 See \`config.log' for more details." >&2;}
4737 { (exit 1); exit 1; }; }
4738 else
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 $ac_includes_default
4746 long longval () { return (long) (sizeof (int)); }
4747 unsigned long ulongval () { return (long) (sizeof (int)); }
4748 #include <stdio.h>
4749 #include <stdlib.h>
4750 int
4751 main ()
4752 {
4753
4754 FILE *f = fopen ("conftest.val", "w");
4755 if (! f)
4756 exit (1);
4757 if (((long) (sizeof (int))) < 0)
4758 {
4759 long i = longval ();
4760 if (i != ((long) (sizeof (int))))
4761 exit (1);
4762 fprintf (f, "%ld\n", i);
4763 }
4764 else
4765 {
4766 unsigned long i = ulongval ();
4767 if (i != ((long) (sizeof (int))))
4768 exit (1);
4769 fprintf (f, "%lu\n", i);
4770 }
4771 exit (ferror (f) || fclose (f) != 0);
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4788 ac_cv_sizeof_int=`cat conftest.val`
4789 else
4790 echo "$as_me: program exited with status $ac_status" >&5
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 ( exit $ac_status )
4795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4796 See \`config.log' for more details." >&5
4797 echo "$as_me: error: cannot compute sizeof (int), 77
4798 See \`config.log' for more details." >&2;}
4799 { (exit 1); exit 1; }; }
4800 fi
4801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 fi
4804 rm -f conftest.val
4805 else
4806 ac_cv_sizeof_int=0
4807 fi
4808 fi
4809 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4810 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4811 cat >>confdefs.h <<_ACEOF
4812 #define SIZEOF_INT $ac_cv_sizeof_int
4813 _ACEOF
4814
4815
4816 echo "$as_me:$LINENO: checking for long" >&5
4817 echo $ECHO_N "checking for long... $ECHO_C" >&6
4818 if test "${ac_cv_type_long+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 $ac_includes_default
4828 int
4829 main ()
4830 {
4831 if ((long *) 0)
4832 return 0;
4833 if (sizeof (long))
4834 return 0;
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -z "$ac_c_werror_flag"
4849 || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 ac_cv_type_long=yes
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_cv_type_long=no
4867 fi
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4871 echo "${ECHO_T}$ac_cv_type_long" >&6
4872
4873 echo "$as_me:$LINENO: checking size of long" >&5
4874 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4875 if test "${ac_cv_sizeof_long+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 if test "$ac_cv_type_long" = yes; then
4879 # The cast to unsigned long works around a bug in the HP C Compiler
4880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4882 # This bug is HP SR number 8606223364.
4883 if test "$cross_compiling" = yes; then
4884 # Depending upon the size, compute the lo and hi bounds.
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4896 test_array [0] = 0
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>conftest.er1
4905 ac_status=$?
4906 grep -v '^ *+' conftest.er1 >conftest.err
4907 rm -f conftest.er1
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -z "$ac_c_werror_flag"
4912 || test ! -s conftest.err'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; } &&
4918 { ac_try='test -s conftest.$ac_objext'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 (eval $ac_try) 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }; then
4924 ac_lo=0 ac_mid=0
4925 while :; do
4926 cat >conftest.$ac_ext <<_ACEOF
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4933 int
4934 main ()
4935 {
4936 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4937 test_array [0] = 0
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } &&
4952 { ac_try='test -z "$ac_c_werror_flag"
4953 || test ! -s conftest.err'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; } &&
4959 { ac_try='test -s conftest.$ac_objext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 ac_hi=$ac_mid; break
4966 else
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 ac_lo=`expr $ac_mid + 1`
4971 if test $ac_lo -le $ac_mid; then
4972 ac_lo= ac_hi=
4973 break
4974 fi
4975 ac_mid=`expr 2 '*' $ac_mid + 1`
4976 fi
4977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4978 done
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4990 int
4991 main ()
4992 {
4993 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4994 test_array [0] = 0
4995
4996 ;
4997 return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 ac_hi=-1 ac_mid=-1
5023 while :; do
5024 cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h. */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 int
5032 main ()
5033 {
5034 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5035 test_array [0] = 0
5036
5037 ;
5038 return 0;
5039 }
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5043 (eval $ac_compile) 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } &&
5050 { ac_try='test -z "$ac_c_werror_flag"
5051 || test ! -s conftest.err'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; } &&
5057 { ac_try='test -s conftest.$ac_objext'
5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 (eval $ac_try) 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_lo=$ac_mid; break
5064 else
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ac_hi=`expr '(' $ac_mid ')' - 1`
5069 if test $ac_mid -le $ac_hi; then
5070 ac_lo= ac_hi=
5071 break
5072 fi
5073 ac_mid=`expr 2 '*' $ac_mid`
5074 fi
5075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 done
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 ac_lo= ac_hi=
5082 fi
5083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 # Binary search between lo and hi bounds.
5087 while test "x$ac_lo" != "x$ac_hi"; do
5088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095 $ac_includes_default
5096 int
5097 main ()
5098 {
5099 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5100 test_array [0] = 0
5101
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5108 (eval $ac_compile) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_hi=$ac_mid
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_lo=`expr '(' $ac_mid ')' + 1`
5134 fi
5135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5136 done
5137 case $ac_lo in
5138 ?*) ac_cv_sizeof_long=$ac_lo;;
5139 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5140 See \`config.log' for more details." >&5
5141 echo "$as_me: error: cannot compute sizeof (long), 77
5142 See \`config.log' for more details." >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144 esac
5145 else
5146 if test "$cross_compiling" = yes; then
5147 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5148 See \`config.log' for more details." >&5
5149 echo "$as_me: error: cannot run test program while cross compiling
5150 See \`config.log' for more details." >&2;}
5151 { (exit 1); exit 1; }; }
5152 else
5153 cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5160 long longval () { return (long) (sizeof (long)); }
5161 unsigned long ulongval () { return (long) (sizeof (long)); }
5162 #include <stdio.h>
5163 #include <stdlib.h>
5164 int
5165 main ()
5166 {
5167
5168 FILE *f = fopen ("conftest.val", "w");
5169 if (! f)
5170 exit (1);
5171 if (((long) (sizeof (long))) < 0)
5172 {
5173 long i = longval ();
5174 if (i != ((long) (sizeof (long))))
5175 exit (1);
5176 fprintf (f, "%ld\n", i);
5177 }
5178 else
5179 {
5180 unsigned long i = ulongval ();
5181 if (i != ((long) (sizeof (long))))
5182 exit (1);
5183 fprintf (f, "%lu\n", i);
5184 }
5185 exit (ferror (f) || fclose (f) != 0);
5186
5187 ;
5188 return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_sizeof_long=`cat conftest.val`
5203 else
5204 echo "$as_me: program exited with status $ac_status" >&5
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ( exit $ac_status )
5209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5210 See \`config.log' for more details." >&5
5211 echo "$as_me: error: cannot compute sizeof (long), 77
5212 See \`config.log' for more details." >&2;}
5213 { (exit 1); exit 1; }; }
5214 fi
5215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 fi
5218 rm -f conftest.val
5219 else
5220 ac_cv_sizeof_long=0
5221 fi
5222 fi
5223 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5224 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5225 cat >>confdefs.h <<_ACEOF
5226 #define SIZEOF_LONG $ac_cv_sizeof_long
5227 _ACEOF
5228
5229
5230 if test $ac_cv_c_long_long = yes; then
5231 echo "$as_me:$LINENO: checking for long long" >&5
5232 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5233 if test "${ac_cv_type_long_long+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 int
5244 main ()
5245 {
5246 if ((long long *) 0)
5247 return 0;
5248 if (sizeof (long long))
5249 return 0;
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256 (eval $ac_compile) 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -z "$ac_c_werror_flag"
5264 || test ! -s conftest.err'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; } &&
5270 { ac_try='test -s conftest.$ac_objext'
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; }; then
5276 ac_cv_type_long_long=yes
5277 else
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_cv_type_long_long=no
5282 fi
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5286 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5287
5288 echo "$as_me:$LINENO: checking size of long long" >&5
5289 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5290 if test "${ac_cv_sizeof_long_long+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if test "$ac_cv_type_long_long" = yes; then
5294 # The cast to unsigned long works around a bug in the HP C Compiler
5295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5297 # This bug is HP SR number 8606223364.
5298 if test "$cross_compiling" = yes; then
5299 # Depending upon the size, compute the lo and hi bounds.
5300 cat >conftest.$ac_ext <<_ACEOF
5301 /* confdefs.h. */
5302 _ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 int
5308 main ()
5309 {
5310 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5311 test_array [0] = 0
5312
5313 ;
5314 return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 (eval $ac_try) 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_lo=0 ac_mid=0
5340 while :; do
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 $ac_includes_default
5348 int
5349 main ()
5350 {
5351 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5352 test_array [0] = 0
5353
5354 ;
5355 return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } &&
5367 { ac_try='test -z "$ac_c_werror_flag"
5368 || test ! -s conftest.err'
5369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5370 (eval $ac_try) 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; } &&
5374 { ac_try='test -s conftest.$ac_objext'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5380 ac_hi=$ac_mid; break
5381 else
5382 echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ac_lo=`expr $ac_mid + 1`
5386 if test $ac_lo -le $ac_mid; then
5387 ac_lo= ac_hi=
5388 break
5389 fi
5390 ac_mid=`expr 2 '*' $ac_mid + 1`
5391 fi
5392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5393 done
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5405 int
5406 main ()
5407 {
5408 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5409 test_array [0] = 0
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -z "$ac_c_werror_flag"
5425 || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 (eval $ac_try) 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_hi=-1 ac_mid=-1
5438 while :; do
5439 cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h. */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 $ac_includes_default
5446 int
5447 main ()
5448 {
5449 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5450 test_array [0] = 0
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest.$ac_objext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_lo=$ac_mid; break
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_hi=`expr '(' $ac_mid ')' - 1`
5484 if test $ac_mid -le $ac_hi; then
5485 ac_lo= ac_hi=
5486 break
5487 fi
5488 ac_mid=`expr 2 '*' $ac_mid`
5489 fi
5490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5491 done
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496 ac_lo= ac_hi=
5497 fi
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5499 fi
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 # Binary search between lo and hi bounds.
5502 while test "x$ac_lo" != "x$ac_hi"; do
5503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5511 int
5512 main ()
5513 {
5514 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5515 test_array [0] = 0
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_hi=$ac_mid
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_lo=`expr '(' $ac_mid ')' + 1`
5549 fi
5550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551 done
5552 case $ac_lo in
5553 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5554 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&5
5556 echo "$as_me: error: cannot compute sizeof (long long), 77
5557 See \`config.log' for more details." >&2;}
5558 { (exit 1); exit 1; }; } ;;
5559 esac
5560 else
5561 if test "$cross_compiling" = yes; then
5562 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5563 See \`config.log' for more details." >&5
5564 echo "$as_me: error: cannot run test program while cross compiling
5565 See \`config.log' for more details." >&2;}
5566 { (exit 1); exit 1; }; }
5567 else
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574 $ac_includes_default
5575 long longval () { return (long) (sizeof (long long)); }
5576 unsigned long ulongval () { return (long) (sizeof (long long)); }
5577 #include <stdio.h>
5578 #include <stdlib.h>
5579 int
5580 main ()
5581 {
5582
5583 FILE *f = fopen ("conftest.val", "w");
5584 if (! f)
5585 exit (1);
5586 if (((long) (sizeof (long long))) < 0)
5587 {
5588 long i = longval ();
5589 if (i != ((long) (sizeof (long long))))
5590 exit (1);
5591 fprintf (f, "%ld\n", i);
5592 }
5593 else
5594 {
5595 unsigned long i = ulongval ();
5596 if (i != ((long) (sizeof (long long))))
5597 exit (1);
5598 fprintf (f, "%lu\n", i);
5599 }
5600 exit (ferror (f) || fclose (f) != 0);
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest$ac_exeext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5608 (eval $ac_link) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_sizeof_long_long=`cat conftest.val`
5618 else
5619 echo "$as_me: program exited with status $ac_status" >&5
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ( exit $ac_status )
5624 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5625 See \`config.log' for more details." >&5
5626 echo "$as_me: error: cannot compute sizeof (long long), 77
5627 See \`config.log' for more details." >&2;}
5628 { (exit 1); exit 1; }; }
5629 fi
5630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 fi
5633 rm -f conftest.val
5634 else
5635 ac_cv_sizeof_long_long=0
5636 fi
5637 fi
5638 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5639 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5640 cat >>confdefs.h <<_ACEOF
5641 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5642 _ACEOF
5643
5644
5645 fi
5646 if test $ac_cv_c___int64 = yes; then
5647 echo "$as_me:$LINENO: checking for __int64" >&5
5648 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5649 if test "${ac_cv_type___int64+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 $ac_includes_default
5659 int
5660 main ()
5661 {
5662 if ((__int64 *) 0)
5663 return 0;
5664 if (sizeof (__int64))
5665 return 0;
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_type___int64=yes
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_cv_type___int64=no
5698 fi
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5702 echo "${ECHO_T}$ac_cv_type___int64" >&6
5703
5704 echo "$as_me:$LINENO: checking size of __int64" >&5
5705 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5706 if test "${ac_cv_sizeof___int64+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709 if test "$ac_cv_type___int64" = yes; then
5710 # The cast to unsigned long works around a bug in the HP C Compiler
5711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5713 # This bug is HP SR number 8606223364.
5714 if test "$cross_compiling" = yes; then
5715 # Depending upon the size, compute the lo and hi bounds.
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 int
5724 main ()
5725 {
5726 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5727 test_array [0] = 0
5728
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 rm -f conftest.$ac_objext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>conftest.er1
5736 ac_status=$?
5737 grep -v '^ *+' conftest.er1 >conftest.err
5738 rm -f conftest.er1
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_c_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest.$ac_objext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_lo=0 ac_mid=0
5756 while :; do
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5768 test_array [0] = 0
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_hi=$ac_mid; break
5797 else
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ac_lo=`expr $ac_mid + 1`
5802 if test $ac_lo -le $ac_mid; then
5803 ac_lo= ac_hi=
5804 break
5805 fi
5806 ac_mid=`expr 2 '*' $ac_mid + 1`
5807 fi
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 done
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 $ac_includes_default
5821 int
5822 main ()
5823 {
5824 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5825 test_array [0] = 0
5826
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 rm -f conftest.$ac_objext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833 (eval $ac_compile) 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -z "$ac_c_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_hi=-1 ac_mid=-1
5854 while :; do
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 $ac_includes_default
5862 int
5863 main ()
5864 {
5865 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5866 test_array [0] = 0
5867
5868 ;
5869 return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -z "$ac_c_werror_flag"
5882 || test ! -s conftest.err'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 (eval $ac_try) 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_lo=$ac_mid; break
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_hi=`expr '(' $ac_mid ')' - 1`
5900 if test $ac_mid -le $ac_hi; then
5901 ac_lo= ac_hi=
5902 break
5903 fi
5904 ac_mid=`expr 2 '*' $ac_mid`
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 done
5908 else
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5911
5912 ac_lo= ac_hi=
5913 fi
5914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5917 # Binary search between lo and hi bounds.
5918 while test "x$ac_lo" != "x$ac_hi"; do
5919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h. */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h. */
5926 $ac_includes_default
5927 int
5928 main ()
5929 {
5930 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5931 test_array [0] = 0
5932
5933 ;
5934 return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>conftest.er1
5940 ac_status=$?
5941 grep -v '^ *+' conftest.er1 >conftest.err
5942 rm -f conftest.er1
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag"
5947 || test ! -s conftest.err'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 (eval $ac_try) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; }; then
5959 ac_hi=$ac_mid
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ac_lo=`expr '(' $ac_mid ')' + 1`
5965 fi
5966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 done
5968 case $ac_lo in
5969 ?*) ac_cv_sizeof___int64=$ac_lo;;
5970 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot compute sizeof (__int64), 77
5973 See \`config.log' for more details." >&2;}
5974 { (exit 1); exit 1; }; } ;;
5975 esac
5976 else
5977 if test "$cross_compiling" = yes; then
5978 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5979 See \`config.log' for more details." >&5
5980 echo "$as_me: error: cannot run test program while cross compiling
5981 See \`config.log' for more details." >&2;}
5982 { (exit 1); exit 1; }; }
5983 else
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h. */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
5991 long longval () { return (long) (sizeof (__int64)); }
5992 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5993 #include <stdio.h>
5994 #include <stdlib.h>
5995 int
5996 main ()
5997 {
5998
5999 FILE *f = fopen ("conftest.val", "w");
6000 if (! f)
6001 exit (1);
6002 if (((long) (sizeof (__int64))) < 0)
6003 {
6004 long i = longval ();
6005 if (i != ((long) (sizeof (__int64))))
6006 exit (1);
6007 fprintf (f, "%ld\n", i);
6008 }
6009 else
6010 {
6011 unsigned long i = ulongval ();
6012 if (i != ((long) (sizeof (__int64))))
6013 exit (1);
6014 fprintf (f, "%lu\n", i);
6015 }
6016 exit (ferror (f) || fclose (f) != 0);
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 rm -f conftest$ac_exeext
6023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_sizeof___int64=`cat conftest.val`
6034 else
6035 echo "$as_me: program exited with status $ac_status" >&5
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ( exit $ac_status )
6040 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6041 See \`config.log' for more details." >&5
6042 echo "$as_me: error: cannot compute sizeof (__int64), 77
6043 See \`config.log' for more details." >&2;}
6044 { (exit 1); exit 1; }; }
6045 fi
6046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6047 fi
6048 fi
6049 rm -f conftest.val
6050 else
6051 ac_cv_sizeof___int64=0
6052 fi
6053 fi
6054 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6055 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6058 _ACEOF
6059
6060
6061 fi
6062
6063 # ---------------------
6064 # Warnings and checking
6065 # ---------------------
6066
6067 # Check $CC warning features (if it's GCC).
6068 # We want to use -pedantic, but we don't want warnings about
6069 # * 'long long'
6070 # * variadic macros
6071 # So, we only use -pedantic if we can disable those warnings.
6072
6073 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6074 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6075 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 save_CFLAGS="$CFLAGS"
6079 CFLAGS="-Wno-long-long"
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_prog_cc_w_no_long_long=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 ac_cv_prog_cc_w_no_long_long=no
6116 fi
6117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6118 CFLAGS="$save_CFLAGS"
6119
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6122 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6123
6124 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6125 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6126 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129 save_CFLAGS="$CFLAGS"
6130 CFLAGS="-Wno-variadic-macros"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_prog_cc_w_no_variadic_macros=yes
6162 else
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6165
6166 ac_cv_prog_cc_w_no_variadic_macros=no
6167 fi
6168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6169 CFLAGS="$save_CFLAGS"
6170
6171 fi
6172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6173 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6174
6175 strict1_warn=
6176 if test $ac_cv_prog_cc_w_no_long_long = yes \
6177 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6178 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6179 fi
6180
6181
6182 # Add -Wold-style-definition if it's accepted
6183 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6184 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6185 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188 save_CFLAGS="$CFLAGS"
6189 CFLAGS="-Wold-style-definition"
6190 cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h. */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest.$ac_objext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_cv_prog_cc_w_old_style_definition=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_cv_prog_cc_w_old_style_definition=no
6226 fi
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228 CFLAGS="$save_CFLAGS"
6229
6230 fi
6231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6232 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6233 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6234 strict1_warn="${strict1_warn} -Wold-style-definition"
6235 fi
6236
6237 # Enable -Werror, period.
6238 # Check whether --enable-werror_always or --disable-werror_always was given.
6239 if test "${enable_werror_always+set}" = set; then
6240 enableval="$enable_werror_always"
6241
6242 else
6243 enable_werror_always=no
6244 fi;
6245 if test x${enable_werror_always} = xyes ; then
6246 strict1_warn="${strict1_warn} -Werror"
6247 WERROR=-Werror
6248 fi
6249
6250 # If the native compiler is GCC, we can enable warnings even in stage1.
6251 # That's useful for people building cross-compilers, or just running a
6252 # quick `make'.
6253 warn_cflags=
6254 if test "x$GCC" = "xyes"; then
6255 warn_cflags='$(GCC_WARN_CFLAGS)'
6256 fi
6257
6258
6259 # Enable -Werror in bootstrap stage2 and later.
6260 # Check whether --enable-werror or --disable-werror was given.
6261 if test "${enable_werror+set}" = set; then
6262 enableval="$enable_werror"
6263
6264 else
6265 if test x$is_release = x ; then
6266 # Default to "yes" on development branches.
6267 enable_werror=yes
6268 else
6269 # Default to "no" on release branches.
6270 enable_werror=no
6271 fi
6272 fi;
6273 if test x$enable_werror = xyes ; then
6274 WERROR=-Werror
6275 fi
6276
6277
6278 # Enable expensive internal checks
6279 # Check whether --enable-checking or --disable-checking was given.
6280 if test "${enable_checking+set}" = set; then
6281 enableval="$enable_checking"
6282 ac_checking_flags="${enableval}"
6283 else
6284
6285 # Determine the default checks.
6286 if test x$is_release = x ; then
6287 ac_checking_flags=yes
6288 else
6289 ac_checking_flags=release
6290 fi
6291 fi;
6292 ac_assert_checking=1
6293 ac_checking=
6294 ac_tree_checking=
6295 ac_rtl_checking=
6296 ac_rtlflag_checking=
6297 ac_gc_checking=
6298 ac_gc_always_collect=
6299 ac_fold_checking=
6300 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6301 for check in $ac_checking_flags
6302 do
6303 case $check in
6304 yes) ac_assert_checking=1 ; ac_checking=1 ;
6305 ac_tree_checking=1 ; ac_gc_checking=1 ;
6306 ac_rtlflag_checking=1 ;;
6307 no) ac_assert_checking= ; ac_checking= ;
6308 ac_tree_checking= ; ac_rtl_checking= ;
6309 ac_rtlflag_checking= ; ac_gc_checking= ;
6310 ac_gc_always_collect= ; ac_fold_checking= ;;
6311 all) ac_assert_checking=1 ; ac_checking=1 ;
6312 ac_tree_checking=1 ; ac_rtl_checking=1 ;
6313 ac_rtlflag_checking=1 ; ac_gc_checking=1 ;
6314 ac_gc_always_collect=1 ; ac_fold_checking=1 ;;
6315 release) ac_assert_checking=1 ;;
6316 assert) ac_assert_checking=1 ;;
6317 fold) ac_fold_checking=1 ;;
6318 gc) ac_gc_checking=1 ;;
6319 gcac) ac_gc_always_collect=1 ;;
6320 misc) ac_checking=1 ;;
6321 rtlflag) ac_rtlflag_checking=1 ;;
6322 rtl) ac_rtl_checking=1 ;;
6323 tree) ac_tree_checking=1 ;;
6324 valgrind) ac_checking_valgrind=1 ;;
6325 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6326 echo "$as_me: error: unknown check category $check" >&2;}
6327 { (exit 1); exit 1; }; } ;;
6328 esac
6329 done
6330 IFS="$ac_save_IFS"
6331
6332 nocommon_flag=""
6333 if test x$ac_checking != x ; then
6334
6335 cat >>confdefs.h <<\_ACEOF
6336 #define ENABLE_CHECKING 1
6337 _ACEOF
6338
6339 nocommon_flag=-fno-common
6340 fi
6341
6342 if test x$ac_assert_checking != x ; then
6343
6344 cat >>confdefs.h <<\_ACEOF
6345 #define ENABLE_ASSERT_CHECKING 1
6346 _ACEOF
6347
6348 fi
6349 if test x$ac_tree_checking != x ; then
6350
6351 cat >>confdefs.h <<\_ACEOF
6352 #define ENABLE_TREE_CHECKING 1
6353 _ACEOF
6354
6355 TREEBROWSER=tree-browser.o
6356 fi
6357
6358 if test x$ac_rtl_checking != x ; then
6359
6360 cat >>confdefs.h <<\_ACEOF
6361 #define ENABLE_RTL_CHECKING 1
6362 _ACEOF
6363
6364 fi
6365 if test x$ac_rtlflag_checking != x ; then
6366
6367 cat >>confdefs.h <<\_ACEOF
6368 #define ENABLE_RTL_FLAG_CHECKING 1
6369 _ACEOF
6370
6371 fi
6372 if test x$ac_gc_checking != x ; then
6373
6374 cat >>confdefs.h <<\_ACEOF
6375 #define ENABLE_GC_CHECKING 1
6376 _ACEOF
6377
6378 fi
6379 if test x$ac_gc_always_collect != x ; then
6380
6381 cat >>confdefs.h <<\_ACEOF
6382 #define ENABLE_GC_ALWAYS_COLLECT 1
6383 _ACEOF
6384
6385 fi
6386 if test x$ac_fold_checking != x ; then
6387
6388 cat >>confdefs.h <<\_ACEOF
6389 #define ENABLE_FOLD_CHECKING 1
6390 _ACEOF
6391
6392 fi
6393 valgrind_path_defines=
6394 valgrind_command=
6395
6396 if test "${ac_cv_header_valgrind_h+set}" = set; then
6397 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6398 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6399 if test "${ac_cv_header_valgrind_h+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6403 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6404 else
6405 # Is the header compilable?
6406 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6407 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 $ac_includes_default
6415 #include <valgrind.h>
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_header_compiler=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_header_compiler=no
6445 fi
6446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6448 echo "${ECHO_T}$ac_header_compiler" >&6
6449
6450 # Is the header present?
6451 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6452 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 #include <valgrind.h>
6460 _ACEOF
6461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6463 ac_status=$?
6464 grep -v '^ *+' conftest.er1 >conftest.err
6465 rm -f conftest.er1
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } >/dev/null; then
6469 if test -s conftest.err; then
6470 ac_cpp_err=$ac_c_preproc_warn_flag
6471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6472 else
6473 ac_cpp_err=
6474 fi
6475 else
6476 ac_cpp_err=yes
6477 fi
6478 if test -z "$ac_cpp_err"; then
6479 ac_header_preproc=yes
6480 else
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 ac_header_preproc=no
6485 fi
6486 rm -f conftest.err conftest.$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6
6489
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492 yes:no: )
6493 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc=yes
6498 ;;
6499 no:yes:* )
6500 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6512 (
6513 cat <<\_ASBOX
6514 ## ------------------------------------------ ##
6515 ## Report this to the AC_PACKAGE_NAME lists. ##
6516 ## ------------------------------------------ ##
6517 _ASBOX
6518 ) |
6519 sed "s/^/$as_me: WARNING: /" >&2
6520 ;;
6521 esac
6522 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6523 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6524 if test "${ac_cv_header_valgrind_h+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 ac_cv_header_valgrind_h=$ac_header_preproc
6528 fi
6529 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6530 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6531
6532 fi
6533 if test $ac_cv_header_valgrind_h = yes; then
6534 have_valgrind_h=yes
6535 else
6536 have_valgrind_h=no
6537 fi
6538
6539
6540
6541 if test x$ac_checking_valgrind != x ; then
6542 # It is certainly possible that there's valgrind but no valgrind.h.
6543 # GCC relies on making annotations so we must have both.
6544 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6545 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h. */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <valgrind/memcheck.h>
6553 #ifndef VALGRIND_DISCARD
6554 #error VALGRIND_DISCARD not defined
6555 #endif
6556 _ACEOF
6557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev/null; then
6565 if test -s conftest.err; then
6566 ac_cpp_err=$ac_c_preproc_warn_flag
6567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6568 else
6569 ac_cpp_err=
6570 fi
6571 else
6572 ac_cpp_err=yes
6573 fi
6574 if test -z "$ac_cpp_err"; then
6575 gcc_cv_header_valgrind_memcheck_h=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 gcc_cv_header_valgrind_memcheck_h=no
6581 fi
6582 rm -f conftest.err conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6584 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6585 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6586 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <memcheck.h>
6594 #ifndef VALGRIND_DISCARD
6595 #error VALGRIND_DISCARD not defined
6596 #endif
6597 _ACEOF
6598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null; then
6606 if test -s conftest.err; then
6607 ac_cpp_err=$ac_c_preproc_warn_flag
6608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6609 else
6610 ac_cpp_err=
6611 fi
6612 else
6613 ac_cpp_err=yes
6614 fi
6615 if test -z "$ac_cpp_err"; then
6616 gcc_cv_header_memcheck_h=yes
6617 else
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6620
6621 gcc_cv_header_memcheck_h=no
6622 fi
6623 rm -f conftest.err conftest.$ac_ext
6624 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6625 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6626
6627 # Prepare PATH_SEPARATOR.
6628 # The user is always right.
6629 if test "${PATH_SEPARATOR+set}" != set; then
6630 echo "#! /bin/sh" >conf$$.sh
6631 echo "exit 0" >>conf$$.sh
6632 chmod +x conf$$.sh
6633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6634 PATH_SEPARATOR=';'
6635 else
6636 PATH_SEPARATOR=:
6637 fi
6638 rm -f conf$$.sh
6639 fi
6640
6641 # Find out how to test for executable files. Don't use a zero-byte file,
6642 # as systems may use methods other than mode bits to determine executability.
6643 cat >conf$$.file <<_ASEOF
6644 #! /bin/sh
6645 exit 0
6646 _ASEOF
6647 chmod +x conf$$.file
6648 if test -x conf$$.file >/dev/null 2>&1; then
6649 ac_executable_p="test -x"
6650 else
6651 ac_executable_p="test -f"
6652 fi
6653 rm -f conf$$.file
6654
6655 # Extract the first word of "valgrind", so it can be a program name with args.
6656 set dummy valgrind; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_path_valgrind_path+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 case "$valgrind_path" in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6668 for ac_dir in $PATH; do
6669 IFS="$ac_save_IFS"
6670 test -z "$ac_dir" && ac_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6673 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6674 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6675 break 2
6676 fi
6677 fi
6678 done
6679 done
6680 IFS="$ac_save_IFS"
6681 ;;
6682 esac
6683 fi
6684 valgrind_path="$ac_cv_path_valgrind_path"
6685 if test -n "$valgrind_path"; then
6686 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6687 echo "${ECHO_T}$valgrind_path" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690 echo "${ECHO_T}no" >&6
6691 fi
6692
6693 if test "x$valgrind_path" = "x" \
6694 || (test $have_valgrind_h = no \
6695 && test $gcc_cv_header_memcheck_h = no \
6696 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6697 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6698 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6699 { (exit 1); exit 1; }; }
6700 fi
6701 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6702 valgrind_command="$valgrind_path -q"
6703
6704 cat >>confdefs.h <<\_ACEOF
6705 #define ENABLE_VALGRIND_CHECKING 1
6706 _ACEOF
6707
6708 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define HAVE_VALGRIND_MEMCHECK_H 1
6712 _ACEOF
6713
6714 fi
6715 if test $gcc_cv_header_memcheck_h = yes; then
6716
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_MEMCHECK_H 1
6719 _ACEOF
6720
6721 fi
6722 fi
6723
6724
6725
6726 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6727 if test "${enable_mapped_location+set}" = set; then
6728 enableval="$enable_mapped_location"
6729
6730 else
6731 enable_mapped_location=no
6732 fi;
6733
6734 if test "$enable_mapped_location" = yes ; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define USE_MAPPED_LOCATION 1
6738 _ACEOF
6739
6740 fi
6741
6742 # Enable code coverage collection
6743 # Check whether --enable-coverage or --disable-coverage was given.
6744 if test "${enable_coverage+set}" = set; then
6745 enableval="$enable_coverage"
6746 case "${enableval}" in
6747 yes|noopt)
6748 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6749 ;;
6750 opt)
6751 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6752 ;;
6753 no)
6754 # a.k.a. --disable-coverage
6755 coverage_flags=""
6756 ;;
6757 *)
6758 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6759 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6760 { (exit 1); exit 1; }; }
6761 ;;
6762 esac
6763 else
6764 coverage_flags=""
6765 fi;
6766
6767
6768 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6769 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6770 enableval="$enable_gather_detailed_mem_stats"
6771
6772 else
6773 enable_gather_detailed_mem_stats=no
6774 fi;
6775 if test x$enable_gather_detailed_mem_stats = xyes ; then
6776
6777 cat >>confdefs.h <<\_ACEOF
6778 #define GATHER_STATISTICS 1
6779 _ACEOF
6780
6781 fi
6782
6783 # -------------------------------
6784 # Miscenalleous configure options
6785 # -------------------------------
6786
6787 # With stabs
6788
6789 # Check whether --with-stabs or --without-stabs was given.
6790 if test "${with_stabs+set}" = set; then
6791 withval="$with_stabs"
6792 stabs="$with_stabs"
6793 else
6794 stabs=no
6795 fi;
6796
6797 # Determine whether or not multilibs are enabled.
6798 # Check whether --enable-multilib or --disable-multilib was given.
6799 if test "${enable_multilib+set}" = set; then
6800 enableval="$enable_multilib"
6801
6802 else
6803 enable_multilib=yes
6804 fi;
6805
6806
6807 # Enable __cxa_atexit for C++.
6808 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6809 if test "${enable___cxa_atexit+set}" = set; then
6810 enableval="$enable___cxa_atexit"
6811
6812 fi;
6813
6814 # Enable threads
6815 # Pass with no value to take the default
6816 # Pass with a value to specify a thread package
6817 # Check whether --enable-threads or --disable-threads was given.
6818 if test "${enable_threads+set}" = set; then
6819 enableval="$enable_threads"
6820
6821 else
6822 enable_threads=''
6823 fi;
6824
6825 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6826 if test "${enable_objc_gc+set}" = set; then
6827 enableval="$enable_objc_gc"
6828 if test x$enable_objc_gc = xno; then
6829 objc_boehm_gc=''
6830 else
6831 objc_boehm_gc=1
6832 fi
6833 else
6834 objc_boehm_gc=''
6835 fi;
6836
6837
6838 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6839 if test "${with_dwarf2+set}" = set; then
6840 withval="$with_dwarf2"
6841 dwarf2="$with_dwarf2"
6842 else
6843 dwarf2=no
6844 fi;
6845
6846 # Check whether --enable-shared or --disable-shared was given.
6847 if test "${enable_shared+set}" = set; then
6848 enableval="$enable_shared"
6849
6850 case $enable_shared in
6851 yes | no) ;;
6852 *)
6853 enable_shared=no
6854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6855 for pkg in $enableval; do
6856 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6857 enable_shared=yes
6858 fi
6859 done
6860 IFS="$ac_save_ifs"
6861 ;;
6862 esac
6863
6864 else
6865 enable_shared=yes
6866 fi;
6867
6868
6869
6870 # Check whether --with-sysroot or --without-sysroot was given.
6871 if test "${with_sysroot+set}" = set; then
6872 withval="$with_sysroot"
6873
6874 case ${with_sysroot} in
6875 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6876 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6877 esac
6878
6879 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6880 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6881
6882 if test "x$exec_prefix" = xNONE; then
6883 if test "x$prefix" = xNONE; then
6884 test_prefix=/usr/local
6885 else
6886 test_prefix=$prefix
6887 fi
6888 else
6889 test_prefix=$exec_prefix
6890 fi
6891 case ${TARGET_SYSTEM_ROOT} in
6892 "${test_prefix}"|"${test_prefix}/"*|\
6893 '${exec_prefix}'|'${exec_prefix}/'*)
6894 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6895 TARGET_SYSTEM_ROOT_DEFINE="$t"
6896 ;;
6897 esac
6898
6899 else
6900
6901 TARGET_SYSTEM_ROOT=
6902 TARGET_SYSTEM_ROOT_DEFINE=
6903 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6904
6905 fi;
6906
6907
6908
6909
6910 # Build with intermodule optimisations
6911 # Check whether --enable-intermodule or --disable-intermodule was given.
6912 if test "${enable_intermodule+set}" = set; then
6913 enableval="$enable_intermodule"
6914 case ${enable_intermodule} in
6915 yes) onestep="-onestep";;
6916 *) onestep="";;
6917 esac
6918 else
6919 onestep=""
6920 fi;
6921
6922
6923 # Sanity check enable_languages in case someone does not run the toplevel
6924 # configure # script.
6925 # Check whether --enable-languages or --disable-languages was given.
6926 if test "${enable_languages+set}" = set; then
6927 enableval="$enable_languages"
6928 case ,${enable_languages}, in
6929 ,,|,yes,)
6930 # go safe -- we cannot be much sure without the toplevel
6931 # configure's
6932 # analysis of which target libs are present and usable
6933 enable_languages=c
6934 ;;
6935 *,all,*)
6936 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6937 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6938 { (exit 1); exit 1; }; }
6939 ;;
6940 *,c,*)
6941 ;;
6942 *)
6943 enable_languages=c,${enable_languages}
6944 ;;
6945 esac
6946 else
6947 enable_languages=c
6948 fi;
6949
6950 subdirs=
6951 for lang in ${srcdir}/*/config-lang.in
6952 do
6953 case $lang in
6954 # The odd quoting in the next line works around
6955 # an apparent bug in bash 1.12 on linux.
6956 ${srcdir}/[*]/config-lang.in) ;;
6957 *)
6958 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6959 if test "x$lang_alias" = x
6960 then
6961 echo "$lang doesn't set \$language." 1>&2
6962 exit 1
6963 fi
6964 case ",$enable_languages," in
6965 *,$lang_alias,*)
6966 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6967 esac
6968 ;;
6969 esac
6970 done
6971
6972
6973 # -------------------------
6974 # Checks for other programs
6975 # -------------------------
6976
6977 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6978 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6979 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6980 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 cat >conftest.make <<\_ACEOF
6984 all:
6985 @echo 'ac_maketemp="$(MAKE)"'
6986 _ACEOF
6987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6988 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6989 if test -n "$ac_maketemp"; then
6990 eval ac_cv_prog_make_${ac_make}_set=yes
6991 else
6992 eval ac_cv_prog_make_${ac_make}_set=no
6993 fi
6994 rm -f conftest.make
6995 fi
6996 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6997 echo "$as_me:$LINENO: result: yes" >&5
6998 echo "${ECHO_T}yes" >&6
6999 SET_MAKE=
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6
7003 SET_MAKE="MAKE=${MAKE-make}"
7004 fi
7005
7006
7007 # Find some useful tools
7008 for ac_prog in gawk mawk nawk awk
7009 do
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014 if test "${ac_cv_prog_AWK+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017 if test -n "$AWK"; then
7018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_AWK="$ac_prog"
7028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7030 fi
7031 done
7032 done
7033
7034 fi
7035 fi
7036 AWK=$ac_cv_prog_AWK
7037 if test -n "$AWK"; then
7038 echo "$as_me:$LINENO: result: $AWK" >&5
7039 echo "${ECHO_T}$AWK" >&6
7040 else
7041 echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6
7043 fi
7044
7045 test -n "$AWK" && break
7046 done
7047
7048 # We need awk to create options.c and options.h.
7049 # Bail out if it's missing.
7050 case ${AWK} in
7051 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7052 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7053 { (exit 1); exit 1; }; } ;;
7054 esac
7055
7056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7058 if test "${gcc_cv_prog_LN_S+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 rm -f conftestdata_t
7062 echo >conftestdata_f
7063 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7064 then
7065 gcc_cv_prog_LN_S="ln -s"
7066 else
7067 if ln conftestdata_f conftestdata_t 2>/dev/null
7068 then
7069 gcc_cv_prog_LN_S=ln
7070 else
7071 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7072 then
7073 gcc_cv_prog_LN_S="cp -p"
7074 else
7075 gcc_cv_prog_LN_S=cp
7076 fi
7077 fi
7078 fi
7079 rm -f conftestdata_f conftestdata_t
7080
7081 fi
7082 LN_S="$gcc_cv_prog_LN_S"
7083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085 echo "${ECHO_T}yes" >&6
7086 else
7087 if test "$gcc_cv_prog_LN_S" = "ln"; then
7088 echo "$as_me:$LINENO: result: no, using ln" >&5
7089 echo "${ECHO_T}no, using ln" >&6
7090 else
7091 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7092 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7093 fi
7094 fi
7095
7096 echo "$as_me:$LINENO: checking whether ln works" >&5
7097 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7098 if test "${acx_cv_prog_LN+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 rm -f conftestdata_t
7102 echo >conftestdata_f
7103 if ln conftestdata_f conftestdata_t 2>/dev/null
7104 then
7105 acx_cv_prog_LN=ln
7106 else
7107 acx_cv_prog_LN=no
7108 fi
7109 rm -f conftestdata_f conftestdata_t
7110
7111 fi
7112 if test $acx_cv_prog_LN = no; then
7113 LN="$LN_S"
7114 echo "$as_me:$LINENO: result: no, using $LN" >&5
7115 echo "${ECHO_T}no, using $LN" >&6
7116 else
7117 LN="$acx_cv_prog_LN"
7118 echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6
7120 fi
7121
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7125 echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127 if test "${ac_cv_prog_RANLIB+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 if test -n "$RANLIB"; then
7131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144 done
7145 done
7146
7147 fi
7148 fi
7149 RANLIB=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151 echo "$as_me:$LINENO: result: $RANLIB" >&5
7152 echo "${ECHO_T}$RANLIB" >&6
7153 else
7154 echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6
7156 fi
7157
7158 fi
7159 if test -z "$ac_cv_prog_RANLIB"; then
7160 ac_ct_RANLIB=$RANLIB
7161 # Extract the first word of "ranlib", so it can be a program name with args.
7162 set dummy ranlib; ac_word=$2
7163 echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 else
7168 if test -n "$ac_ct_RANLIB"; then
7169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_RANLIB="ranlib"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184
7185 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7186 fi
7187 fi
7188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7189 if test -n "$ac_ct_RANLIB"; then
7190 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7192 else
7193 echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6
7195 fi
7196
7197 RANLIB=$ac_ct_RANLIB
7198 else
7199 RANLIB="$ac_cv_prog_RANLIB"
7200 fi
7201
7202 case "${host}" in
7203 *-*-darwin*)
7204 # By default, the Darwin ranlib will not treat common symbols as
7205 # definitions when building the archive table of contents. Other
7206 # ranlibs do that; pass an option to the Darwin ranlib that makes
7207 # it behave similarly.
7208 ranlib_flags="-c"
7209 ;;
7210 *)
7211 ranlib_flags=""
7212 esac
7213
7214
7215 # Find a good install program. We prefer a C program (faster),
7216 # so one script is as good as another. But avoid the broken or
7217 # incompatible versions:
7218 # SysV /etc/install, /usr/sbin/install
7219 # SunOS /usr/etc/install
7220 # IRIX /sbin/install
7221 # AIX /bin/install
7222 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7223 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7224 # ./install, which can be erroneously created by make from ./install.sh.
7225 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7226 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7227 if test -z "$INSTALL"; then
7228 if test "${ac_cv_path_install+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7232 for ac_dir in $PATH; do
7233 # Account for people who put trailing slashes in PATH elements.
7234 case "$ac_dir/" in
7235 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7236 *)
7237 # OSF1 and SCO ODT 3.0 have their own names for install.
7238 for ac_prog in ginstall scoinst install; do
7239 if test -f $ac_dir/$ac_prog; then
7240 if test $ac_prog = install &&
7241 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7242 # AIX install. It has an incompatible calling convention.
7243 # OSF/1 installbsd also uses dspmsg, but is usable.
7244 :
7245 else
7246 ac_cv_path_install="$ac_dir/$ac_prog -c"
7247 break 2
7248 fi
7249 fi
7250 done
7251 ;;
7252 esac
7253 done
7254 IFS="$ac_save_IFS"
7255
7256 fi
7257 if test "${ac_cv_path_install+set}" = set; then
7258 INSTALL="$ac_cv_path_install"
7259 else
7260 # As a last resort, use the slow shell script. We don't cache a
7261 # path for INSTALL within a source directory, because that will
7262 # break other packages using the cache if that directory is
7263 # removed, or if the path is relative.
7264 INSTALL="$ac_install_sh"
7265 fi
7266 fi
7267 echo "$as_me:$LINENO: result: $INSTALL" >&5
7268 echo "${ECHO_T}$INSTALL" >&6
7269
7270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7271 # It thinks the first close brace ends the variable substitution.
7272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7273
7274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7275
7276
7277 # See if cmp has --ignore-initial.
7278 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7279 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7280 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 echo abfoo >t1
7284 echo cdfoo >t2
7285 gcc_cv_prog_cmp_skip=slowcompare
7286 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7287 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7288 :
7289 else
7290 gcc_cv_prog_cmp_skip=gnucompare
7291 fi
7292 fi
7293 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7294 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7295 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7296 :
7297 else
7298 gcc_cv_prog_cmp_skip=fastcompare
7299 fi
7300 fi
7301 fi
7302 rm t1 t2
7303
7304 fi
7305 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7306 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7307 make_compare_target=$gcc_cv_prog_cmp_skip
7308
7309
7310
7311 # See if we have the mktemp command.
7312 # Extract the first word of "mktemp", so it can be a program name with args.
7313 set dummy mktemp; ac_word=$2
7314 echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7316 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 if test -n "$have_mktemp_command"; then
7320 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_have_mktemp_command="yes"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7332 fi
7333 done
7334 done
7335
7336 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7337 fi
7338 fi
7339 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7340 if test -n "$have_mktemp_command"; then
7341 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7342 echo "${ECHO_T}$have_mktemp_command" >&6
7343 else
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7346 fi
7347
7348
7349 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7350
7351 # See if makeinfo has been installed and is modern enough
7352 # that we can use it.
7353 # Extract the first word of "makeinfo", so it can be a program name with args.
7354 set dummy makeinfo; ac_word=$2
7355 echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 if test -n "$MAKEINFO"; then
7361 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_MAKEINFO="makeinfo"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376
7377 fi
7378 fi
7379 MAKEINFO=$ac_cv_prog_MAKEINFO
7380 if test -n "$MAKEINFO"; then
7381 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7382 echo "${ECHO_T}$MAKEINFO" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7386 fi
7387
7388 if test -n "$MAKEINFO"; then
7389 # Found it, now check the version.
7390 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7391 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7392 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 ac_prog_version=`$MAKEINFO --version 2>&1 |
7396 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7397 echo "configure:7397: version of makeinfo is $ac_prog_version" >&5
7398 case $ac_prog_version in
7399 '') gcc_cv_prog_makeinfo_modern=no;;
7400 4.[2-9]*)
7401 gcc_cv_prog_makeinfo_modern=yes;;
7402 *) gcc_cv_prog_makeinfo_modern=no;;
7403 esac
7404
7405 fi
7406 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7407 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7408 else
7409 gcc_cv_prog_makeinfo_modern=no
7410 fi
7411
7412 if test $gcc_cv_prog_makeinfo_modern = no; then
7413 MAKEINFO="$MISSING makeinfo"
7414 { echo "$as_me:$LINENO: WARNING:
7415 *** Makeinfo is missing or too old.
7416 *** Info documentation will not be built." >&5
7417 echo "$as_me: WARNING:
7418 *** Makeinfo is missing or too old.
7419 *** Info documentation will not be built." >&2;}
7420 BUILD_INFO=
7421 else
7422 BUILD_INFO=info
7423 fi
7424
7425
7426 # Is pod2man recent enough to regenerate manpages?
7427 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7428 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7429 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7430 echo "$as_me:$LINENO: result: yes" >&5
7431 echo "${ECHO_T}yes" >&6
7432 GENERATED_MANPAGES=generated-manpages
7433 else
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7436 GENERATED_MANPAGES=
7437 fi
7438
7439
7440 # How about lex?
7441 for ac_prog in flex
7442 do
7443 # Extract the first word of "$ac_prog", so it can be a program name with args.
7444 set dummy $ac_prog; ac_word=$2
7445 echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447 if test "${ac_cv_prog_FLEX+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 if test -n "$FLEX"; then
7451 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_FLEX="$ac_prog"
7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466
7467 fi
7468 fi
7469 FLEX=$ac_cv_prog_FLEX
7470 if test -n "$FLEX"; then
7471 echo "$as_me:$LINENO: result: $FLEX" >&5
7472 echo "${ECHO_T}$FLEX" >&6
7473 else
7474 echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6
7476 fi
7477
7478 test -n "$FLEX" && break
7479 done
7480 test -n "$FLEX" || FLEX="$MISSING flex"
7481
7482
7483 # Bison?
7484 for ac_prog in bison
7485 do
7486 # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_prog_BISON+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493 if test -n "$BISON"; then
7494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_prog_BISON="$ac_prog"
7504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 break 2
7506 fi
7507 done
7508 done
7509
7510 fi
7511 fi
7512 BISON=$ac_cv_prog_BISON
7513 if test -n "$BISON"; then
7514 echo "$as_me:$LINENO: result: $BISON" >&5
7515 echo "${ECHO_T}$BISON" >&6
7516 else
7517 echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7519 fi
7520
7521 test -n "$BISON" && break
7522 done
7523 test -n "$BISON" || BISON="$MISSING bison"
7524
7525
7526 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7527 # check for build == host before using them.
7528
7529 # NM
7530 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7531 && test -d ../binutils ; then
7532 NM='$(objdir)/../binutils/nm-new'
7533 else
7534 # Extract the first word of "nm", so it can be a program name with args.
7535 set dummy nm; ac_word=$2
7536 echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7538 if test "${ac_cv_prog_NM+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 if test -n "$NM"; then
7542 ac_cv_prog_NM="$NM" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_NM="nm"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557
7558 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7559 fi
7560 fi
7561 NM=$ac_cv_prog_NM
7562 if test -n "$NM"; then
7563 echo "$as_me:$LINENO: result: $NM" >&5
7564 echo "${ECHO_T}$NM" >&6
7565 else
7566 echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7568 fi
7569
7570 fi
7571
7572 # AR
7573 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7574 && test -d ../binutils ; then
7575 AR='$(objdir)/../binutils/ar'
7576 else
7577 # Extract the first word of "ar", so it can be a program name with args.
7578 set dummy ar; ac_word=$2
7579 echo "$as_me:$LINENO: checking for $ac_word" >&5
7580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7581 if test "${ac_cv_prog_AR+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 if test -n "$AR"; then
7585 ac_cv_prog_AR="$AR" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_AR="ar"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600
7601 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7602 fi
7603 fi
7604 AR=$ac_cv_prog_AR
7605 if test -n "$AR"; then
7606 echo "$as_me:$LINENO: result: $AR" >&5
7607 echo "${ECHO_T}$AR" >&6
7608 else
7609 echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6
7611 fi
7612
7613 fi
7614
7615
7616 # --------------------
7617 # Checks for C headers
7618 # --------------------
7619
7620 echo "$as_me:$LINENO: checking for GNU C library" >&5
7621 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7622 if test "${gcc_cv_glibc+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625 cat >conftest.$ac_ext <<_ACEOF
7626 /* confdefs.h. */
7627 _ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 #include <features.h>
7632 int
7633 main ()
7634 {
7635
7636 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7637 #error Not a GNU C library system
7638 #endif
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7646 ac_status=$?
7647 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_c_werror_flag"
7653 || test ! -s conftest.err'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest.$ac_objext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 gcc_cv_glibc=yes
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 gcc_cv_glibc=no
7671 fi
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673 fi
7674
7675 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7676 echo "${ECHO_T}$gcc_cv_glibc" >&6
7677 if test $gcc_cv_glibc = yes; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define _GNU_SOURCE 1
7681 _ACEOF
7682
7683 fi
7684
7685 # Need to reject headers which give warnings, so that the -Werror bootstrap
7686 # works later. *sigh* This needs to come before all header checks.
7687
7688 ac_c_preproc_warn_flag=yes
7689
7690 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7691 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7692 if test "${ac_cv_header_stdc+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 #include <stdlib.h>
7702 #include <stdarg.h>
7703 #include <string.h>
7704 #include <float.h>
7705
7706 int
7707 main ()
7708 {
7709
7710 ;
7711 return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } &&
7723 { ac_try='test -z "$ac_c_werror_flag"
7724 || test ! -s conftest.err'
7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); }; } &&
7730 { ac_try='test -s conftest.$ac_objext'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7736 ac_cv_header_stdc=yes
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7740
7741 ac_cv_header_stdc=no
7742 fi
7743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7744
7745 if test $ac_cv_header_stdc = yes; then
7746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <string.h>
7754
7755 _ACEOF
7756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7757 $EGREP "memchr" >/dev/null 2>&1; then
7758 :
7759 else
7760 ac_cv_header_stdc=no
7761 fi
7762 rm -f conftest*
7763
7764 fi
7765
7766 if test $ac_cv_header_stdc = yes; then
7767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <stdlib.h>
7775
7776 _ACEOF
7777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7778 $EGREP "free" >/dev/null 2>&1; then
7779 :
7780 else
7781 ac_cv_header_stdc=no
7782 fi
7783 rm -f conftest*
7784
7785 fi
7786
7787 if test $ac_cv_header_stdc = yes; then
7788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7789 if test "$cross_compiling" = yes; then
7790 :
7791 else
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 #include <ctype.h>
7799 #if ((' ' & 0x0FF) == 0x020)
7800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7802 #else
7803 # define ISLOWER(c) \
7804 (('a' <= (c) && (c) <= 'i') \
7805 || ('j' <= (c) && (c) <= 'r') \
7806 || ('s' <= (c) && (c) <= 'z'))
7807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7808 #endif
7809
7810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7811 int
7812 main ()
7813 {
7814 int i;
7815 for (i = 0; i < 256; i++)
7816 if (XOR (islower (i), ISLOWER (i))
7817 || toupper (i) != TOUPPER (i))
7818 exit(2);
7819 exit (0);
7820 }
7821 _ACEOF
7822 rm -f conftest$ac_exeext
7823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 :
7834 else
7835 echo "$as_me: program exited with status $ac_status" >&5
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ( exit $ac_status )
7840 ac_cv_header_stdc=no
7841 fi
7842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7843 fi
7844 fi
7845 fi
7846 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7847 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7848 if test $ac_cv_header_stdc = yes; then
7849
7850 cat >>confdefs.h <<\_ACEOF
7851 #define STDC_HEADERS 1
7852 _ACEOF
7853
7854 fi
7855
7856 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7857 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7858 if test "${ac_cv_header_time+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <sys/types.h>
7868 #include <sys/time.h>
7869 #include <time.h>
7870
7871 int
7872 main ()
7873 {
7874 if ((struct tm *) 0)
7875 return 0;
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } &&
7889 { ac_try='test -z "$ac_c_werror_flag"
7890 || test ! -s conftest.err'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 (eval $ac_try) 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest.$ac_objext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_header_time=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_cv_header_time=no
7908 fi
7909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7910 fi
7911 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7912 echo "${ECHO_T}$ac_cv_header_time" >&6
7913 if test $ac_cv_header_time = yes; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define TIME_WITH_SYS_TIME 1
7917 _ACEOF
7918
7919 fi
7920
7921 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7922 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7923 if test "${gcc_cv_header_string+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <string.h>
7933 #include <strings.h>
7934 int
7935 main ()
7936 {
7937
7938 ;
7939 return 0;
7940 }
7941 _ACEOF
7942 rm -f conftest.$ac_objext
7943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>conftest.er1
7945 ac_status=$?
7946 grep -v '^ *+' conftest.er1 >conftest.err
7947 rm -f conftest.er1
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -z "$ac_c_werror_flag"
7952 || test ! -s conftest.err'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; } &&
7958 { ac_try='test -s conftest.$ac_objext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 gcc_cv_header_string=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 gcc_cv_header_string=no
7970 fi
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7974 echo "${ECHO_T}$gcc_cv_header_string" >&6
7975 if test $gcc_cv_header_string = yes; then
7976
7977 cat >>confdefs.h <<\_ACEOF
7978 #define STRING_WITH_STRINGS 1
7979 _ACEOF
7980
7981 fi
7982
7983 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7984 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7985 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 #include <sys/types.h>
7995 #include <sys/wait.h>
7996 #ifndef WEXITSTATUS
7997 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7998 #endif
7999 #ifndef WIFEXITED
8000 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8001 #endif
8002
8003 int
8004 main ()
8005 {
8006 int s;
8007 wait (&s);
8008 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8009 ;
8010 return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8015 (eval $ac_compile) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag"
8023 || test ! -s conftest.err'
8024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025 (eval $ac_try) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); }; } &&
8029 { ac_try='test -s conftest.$ac_objext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_header_sys_wait_h=yes
8036 else
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 ac_cv_header_sys_wait_h=no
8041 fi
8042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8043 fi
8044 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8045 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8046 if test $ac_cv_header_sys_wait_h = yes; then
8047
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_SYS_WAIT_H 1
8050 _ACEOF
8051
8052 fi
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8077 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8078 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8079 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8080 do
8081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 echo "$as_me:$LINENO: checking for $ac_header" >&5
8083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <$ac_header>
8094 _ACEOF
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } >/dev/null; then
8103 if test -s conftest.err; then
8104 ac_cpp_err=$ac_c_preproc_warn_flag
8105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8106 else
8107 ac_cpp_err=
8108 fi
8109 else
8110 ac_cpp_err=yes
8111 fi
8112 if test -z "$ac_cpp_err"; then
8113 eval "$as_ac_Header=yes"
8114 else
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8117
8118 eval "$as_ac_Header=no"
8119 fi
8120 rm -f conftest.err conftest.$ac_ext
8121 fi
8122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127 _ACEOF
8128
8129 fi
8130 done
8131
8132
8133 # Check for thread headers.
8134 echo "$as_me:$LINENO: checking for thread.h" >&5
8135 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8136 if test "${ac_cv_header_thread_h+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 #include <thread.h>
8146 _ACEOF
8147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } >/dev/null; then
8155 if test -s conftest.err; then
8156 ac_cpp_err=$ac_c_preproc_warn_flag
8157 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8158 else
8159 ac_cpp_err=
8160 fi
8161 else
8162 ac_cpp_err=yes
8163 fi
8164 if test -z "$ac_cpp_err"; then
8165 ac_cv_header_thread_h=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 ac_cv_header_thread_h=no
8171 fi
8172 rm -f conftest.err conftest.$ac_ext
8173 fi
8174 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8175 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8176 if test $ac_cv_header_thread_h = yes; then
8177 have_thread_h=yes
8178 else
8179 have_thread_h=
8180 fi
8181
8182 echo "$as_me:$LINENO: checking for pthread.h" >&5
8183 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8184 if test "${ac_cv_header_pthread_h+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 #include <pthread.h>
8194 _ACEOF
8195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } >/dev/null; then
8203 if test -s conftest.err; then
8204 ac_cpp_err=$ac_c_preproc_warn_flag
8205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8206 else
8207 ac_cpp_err=
8208 fi
8209 else
8210 ac_cpp_err=yes
8211 fi
8212 if test -z "$ac_cpp_err"; then
8213 ac_cv_header_pthread_h=yes
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218 ac_cv_header_pthread_h=no
8219 fi
8220 rm -f conftest.err conftest.$ac_ext
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8223 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8224 if test $ac_cv_header_pthread_h = yes; then
8225 have_pthread_h=yes
8226 else
8227 have_pthread_h=
8228 fi
8229
8230
8231 # These tests can't be done till we know if we have limits.h.
8232 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8233 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8234 if test "${gcc_cv_decl_char_bit+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 #ifdef HAVE_LIMITS_H
8244 #include <limits.h>
8245 #endif
8246 #ifdef CHAR_BIT
8247 found
8248 #endif
8249 _ACEOF
8250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8251 $EGREP "found" >/dev/null 2>&1; then
8252 gcc_cv_decl_char_bit=yes
8253 else
8254 gcc_cv_decl_char_bit=no
8255 fi
8256 rm -f conftest*
8257
8258
8259 fi
8260 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8261 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8262 if test $gcc_cv_decl_char_bit = no; then
8263 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8264 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8265 if test "${gcc_cv_c_nbby+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 i=8
8269 gcc_cv_c_nbby=
8270 while test $i -lt 65; do
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277
8278 int
8279 main ()
8280 {
8281 switch(0) {
8282 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8283 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8284 ; }
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8291 (eval $ac_compile) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest.$ac_objext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 gcc_cv_c_nbby=$i; break
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 fi
8317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8318 i=`expr $i + 1`
8319 done
8320 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8321
8322 fi
8323 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8324 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8325 if test $gcc_cv_c_nbby = failed; then
8326 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8327 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8328 { (exit 1); exit 1; }; }
8329 else
8330
8331 cat >>confdefs.h <<_ACEOF
8332 #define CHAR_BIT $gcc_cv_c_nbby
8333 _ACEOF
8334
8335 fi
8336 fi
8337 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8338 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8339 if test "${ac_cv_c_bigendian+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342 ac_cv_c_bigendian=unknown
8343 # See if sys/param.h defines the BYTE_ORDER macro.
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <sys/types.h>
8351 #include <sys/param.h>
8352 int
8353 main ()
8354 {
8355
8356 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8357 bogus endian macros
8358 #endif
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8365 (eval $ac_compile) 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 # It does; now see whether it defined to BIG_ENDIAN or not.
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h. */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 #include <sys/types.h>
8393 #include <sys/param.h>
8394 int
8395 main ()
8396 {
8397
8398 #if BYTE_ORDER != BIG_ENDIAN
8399 not big endian
8400 #endif
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 ac_cv_c_bigendian=yes
8428 else
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_c_bigendian=no
8433 fi
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8435 else
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 fi
8440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8441 if test $ac_cv_c_bigendian = unknown; then
8442 if test "$cross_compiling" = yes; then
8443 echo $ac_n "cross-compiling... " 2>&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h. */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 main () {
8452 /* Are we little or big endian? From Harbison&Steele. */
8453 union
8454 {
8455 long l;
8456 char c[sizeof (long)];
8457 } u;
8458 u.l = 1;
8459 exit (u.c[sizeof (long) - 1] == 1);
8460 }
8461 _ACEOF
8462 rm -f conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; }; then
8473 ac_cv_c_bigendian=no
8474 else
8475 echo "$as_me: program exited with status $ac_status" >&5
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 ( exit $ac_status )
8480 ac_cv_c_bigendian=yes
8481 fi
8482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8483 fi
8484 fi
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8488 if test $ac_cv_c_bigendian = unknown; then
8489 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8490 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8491
8492 cat >conftest.c <<EOF
8493 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8494 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8495 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8496 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8497 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8498 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8499 int main() { _ascii (); _ebcdic (); return 0; }
8500 EOF
8501 if test -f conftest.c ; then
8502 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
8503 if test `grep -l BIGenDianSyS conftest.o` ; then
8504 echo $ac_n ' big endian probe OK, ' 1>&6
8505 ac_cv_c_bigendian=yes
8506 fi
8507 if test `grep -l LiTTleEnDian conftest.o` ; then
8508 echo $ac_n ' little endian probe OK, ' 1>&6
8509 if test $ac_cv_c_bigendian = yes ; then
8510 ac_cv_c_bigendian=unknown;
8511 else
8512 ac_cv_c_bigendian=no
8513 fi
8514 fi
8515 echo $ac_n 'guessing bigendian ... ' >&6
8516 fi
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8519 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8520 fi
8521 if test $ac_cv_c_bigendian = yes; then
8522
8523 cat >>confdefs.h <<\_ACEOF
8524 #define WORDS_BIGENDIAN 1
8525 _ACEOF
8526
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define HOST_WORDS_BIG_ENDIAN 1
8530 _ACEOF
8531
8532 BYTEORDER=4321
8533 else
8534 BYTEORDER=1234
8535 fi
8536
8537 cat >>confdefs.h <<_ACEOF
8538 #define BYTEORDER $BYTEORDER
8539 _ACEOF
8540
8541 if test $ac_cv_c_bigendian = unknown; then
8542 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
8543 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
8544 { (exit 1); exit 1; }; }
8545 fi
8546
8547
8548 # --------
8549 # UNSORTED
8550 # --------
8551
8552 # Stage specific cflags for build.
8553 stage1_cflags=
8554 case $build in
8555 vax-*-*)
8556 if test x$GCC = xyes
8557 then
8558 stage1_cflags="-Wa,-J"
8559 else
8560 stage1_cflags="-J"
8561 fi
8562 ;;
8563 powerpc-*-darwin*)
8564 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8565 # sources; use -no-cpp-precomp to get to GNU cpp.
8566 # Apple's GCC has bugs in designated initializer handling, so disable
8567 # that too.
8568 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8569 ;;
8570 esac
8571
8572
8573 # These libraries may be used by collect2.
8574 # We may need a special search path to get them linked.
8575 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8576 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8577 if test "${gcc_cv_collect2_libs+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580 save_LIBS="$LIBS"
8581 for libs in '' -lld -lmld \
8582 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8583 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8584 do
8585 LIBS="$libs"
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599 char ldopen ();
8600 int
8601 main ()
8602 {
8603 ldopen ();
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8610 (eval $ac_link) 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 gcc_cv_collect2_libs="$libs"; break
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635 fi
8636 rm -f conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 done
8639 LIBS="$save_LIBS"
8640 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8641 fi
8642 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8643 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8644 case $gcc_cv_collect2_libs in
8645 "none required") ;;
8646 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8647 esac
8648
8649
8650 # When building Ada code on Alpha, we need exc_resume which is usually in
8651 # -lexc. So test for it.
8652 save_LIBS="$LIBS"
8653 LIBS=
8654 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8655 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8656 if test "${ac_cv_search_exc_resume+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 ac_func_search_save_LIBS=$LIBS
8660 ac_cv_search_exc_resume=no
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h. */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667
8668 /* Override any gcc2 internal prototype to avoid an error. */
8669 #ifdef __cplusplus
8670 extern "C"
8671 #endif
8672 /* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8674 char exc_resume ();
8675 int
8676 main ()
8677 {
8678 exc_resume ();
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
8692 { ac_try='test -z "$ac_c_werror_flag"
8693 || test ! -s conftest.err'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 (eval $ac_try) 2>&5
8702 ac_status=$?
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_cv_search_exc_resume="none required"
8706 else
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 fi
8711 rm -f conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 if test "$ac_cv_search_exc_resume" = no; then
8714 for ac_lib in exc; do
8715 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722
8723 /* Override any gcc2 internal prototype to avoid an error. */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 /* We use char because int might match the return type of a gcc2
8728 builtin and then its argument prototype would still apply. */
8729 char exc_resume ();
8730 int
8731 main ()
8732 {
8733 exc_resume ();
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest$ac_exeext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_search_exc_resume="-l$ac_lib"
8761 break
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 fi
8767 rm -f conftest.err conftest.$ac_objext \
8768 conftest$ac_exeext conftest.$ac_ext
8769 done
8770 fi
8771 LIBS=$ac_func_search_save_LIBS
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8774 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8775 if test "$ac_cv_search_exc_resume" != no; then
8776 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8777
8778 fi
8779
8780 GNAT_LIBEXC="$LIBS"
8781 LIBS="$save_LIBS"
8782
8783
8784 # Some systems put ldexp and frexp in libm instead of libc; assume
8785 # they're both in the same place. jcf-dump needs them.
8786 save_LIBS="$LIBS"
8787 LIBS=
8788 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8789 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8790 if test "${ac_cv_search_ldexp+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_func_search_save_LIBS=$LIBS
8794 ac_cv_search_ldexp=no
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8808 char ldexp ();
8809 int
8810 main ()
8811 {
8812 ldexp ();
8813 ;
8814 return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_search_ldexp="none required"
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846 conftest$ac_exeext conftest.$ac_ext
8847 if test "$ac_cv_search_ldexp" = no; then
8848 for ac_lib in m; do
8849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8850 cat >conftest.$ac_ext <<_ACEOF
8851 /* confdefs.h. */
8852 _ACEOF
8853 cat confdefs.h >>conftest.$ac_ext
8854 cat >>conftest.$ac_ext <<_ACEOF
8855 /* end confdefs.h. */
8856
8857 /* Override any gcc2 internal prototype to avoid an error. */
8858 #ifdef __cplusplus
8859 extern "C"
8860 #endif
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8863 char ldexp ();
8864 int
8865 main ()
8866 {
8867 ldexp ();
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 rm -f conftest.$ac_objext conftest$ac_exeext
8873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874 (eval $ac_link) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -z "$ac_c_werror_flag"
8882 || test ! -s conftest.err'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; } &&
8888 { ac_try='test -s conftest$ac_exeext'
8889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 (eval $ac_try) 2>&5
8891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; }; then
8894 ac_cv_search_ldexp="-l$ac_lib"
8895 break
8896 else
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 fi
8901 rm -f conftest.err conftest.$ac_objext \
8902 conftest$ac_exeext conftest.$ac_ext
8903 done
8904 fi
8905 LIBS=$ac_func_search_save_LIBS
8906 fi
8907 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8908 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8909 if test "$ac_cv_search_ldexp" != no; then
8910 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
8911
8912 fi
8913
8914 LDEXP_LIB="$LIBS"
8915 LIBS="$save_LIBS"
8916
8917
8918 # Use <inttypes.h> only if it exists,
8919 # doesn't clash with <sys/types.h>, and declares intmax_t.
8920 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8921 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8922 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h. */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 #include <sys/types.h>
8932 #include <inttypes.h>
8933 int
8934 main ()
8935 {
8936 intmax_t i = -1;
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag"
8951 || test ! -s conftest.err'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 (eval $ac_try) 2>&5
8960 ac_status=$?
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 gcc_cv_header_inttypes_h=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968 gcc_cv_header_inttypes_h=no
8969 fi
8970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8971 fi
8972
8973 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
8974 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
8975 if test $gcc_cv_header_inttypes_h = yes; then
8976
8977 cat >>confdefs.h <<\_ACEOF
8978 #define HAVE_INTTYPES_H 1
8979 _ACEOF
8980
8981 fi
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9010 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
9011 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
9012 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
9013 setlocale
9014 do
9015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9016 echo "$as_me:$LINENO: checking for $ac_func" >&5
9017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9018 if eval "test \"\${$as_ac_var+set}\" = set"; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9029 #define $ac_func innocuous_$ac_func
9030
9031 /* System header to define __stub macros and hopefully few prototypes,
9032 which can conflict with char $ac_func (); below.
9033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9034 <limits.h> exists even on freestanding compilers. */
9035
9036 #ifdef __STDC__
9037 # include <limits.h>
9038 #else
9039 # include <assert.h>
9040 #endif
9041
9042 #undef $ac_func
9043
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 {
9048 #endif
9049 /* We use char because int might match the return type of a gcc2
9050 builtin and then its argument prototype would still apply. */
9051 char $ac_func ();
9052 /* The GNU C library defines this for functions which it implements
9053 to always fail with ENOSYS. Some functions are actually named
9054 something starting with __ and the normal name is an alias. */
9055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9056 choke me
9057 #else
9058 char (*f) () = $ac_func;
9059 #endif
9060 #ifdef __cplusplus
9061 }
9062 #endif
9063
9064 int
9065 main ()
9066 {
9067 return f != $ac_func;
9068 ;
9069 return 0;
9070 }
9071 _ACEOF
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } &&
9081 { ac_try='test -z "$ac_c_werror_flag"
9082 || test ! -s conftest.err'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 eval "$as_ac_var=yes"
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 eval "$as_ac_var=no"
9100 fi
9101 rm -f conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103 fi
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9106 if test `eval echo '${'$as_ac_var'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9109 _ACEOF
9110
9111 fi
9112 done
9113
9114
9115 if test x$ac_cv_func_mbstowcs = xyes; then
9116 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9117 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9118 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 if test "$cross_compiling" = yes; then
9122 gcc_cv_func_mbstowcs_works=yes
9123 else
9124 cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h. */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h. */
9130 #include <stdlib.h>
9131 int main()
9132 {
9133 mbstowcs(0, "", 0);
9134 return 0;
9135 }
9136 _ACEOF
9137 rm -f conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 gcc_cv_func_mbstowcs_works=yes
9149 else
9150 echo "$as_me: program exited with status $ac_status" >&5
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ( exit $ac_status )
9155 gcc_cv_func_mbstowcs_works=no
9156 fi
9157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9158 fi
9159 fi
9160 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9161 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9162 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9163
9164 cat >>confdefs.h <<\_ACEOF
9165 #define HAVE_WORKING_MBSTOWCS 1
9166 _ACEOF
9167
9168 fi
9169 fi
9170
9171 echo "$as_me:$LINENO: checking for ssize_t" >&5
9172 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9173 if test "${ac_cv_type_ssize_t+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 int
9184 main ()
9185 {
9186 if ((ssize_t *) 0)
9187 return 0;
9188 if (sizeof (ssize_t))
9189 return 0;
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest.$ac_objext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_type_ssize_t=yes
9217 else
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_cv_type_ssize_t=no
9222 fi
9223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9224 fi
9225 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9226 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9227 if test $ac_cv_type_ssize_t = yes; then
9228 :
9229 else
9230
9231 cat >>confdefs.h <<_ACEOF
9232 #define ssize_t int
9233 _ACEOF
9234
9235 fi
9236
9237
9238 # Try to determine the array type of the second argument of getgroups
9239 # for the target system (int or gid_t).
9240 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9241 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9242 if test "${ac_cv_type_uid_t+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #include <sys/types.h>
9252
9253 _ACEOF
9254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9255 $EGREP "uid_t" >/dev/null 2>&1; then
9256 ac_cv_type_uid_t=yes
9257 else
9258 ac_cv_type_uid_t=no
9259 fi
9260 rm -f conftest*
9261
9262 fi
9263 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9264 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9265 if test $ac_cv_type_uid_t = no; then
9266
9267 cat >>confdefs.h <<\_ACEOF
9268 #define uid_t int
9269 _ACEOF
9270
9271
9272 cat >>confdefs.h <<\_ACEOF
9273 #define gid_t int
9274 _ACEOF
9275
9276 fi
9277
9278 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9279 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9280 if test "${ac_cv_type_getgroups+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 if test "$cross_compiling" = yes; then
9284 ac_cv_type_getgroups=cross
9285 else
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 /* Thanks to Mike Rendell for this test. */
9293 #include <sys/types.h>
9294 #define NGID 256
9295 #undef MAX
9296 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9297
9298 int
9299 main ()
9300 {
9301 gid_t gidset[NGID];
9302 int i, n;
9303 union { gid_t gval; long lval; } val;
9304
9305 val.lval = -1;
9306 for (i = 0; i < NGID; i++)
9307 gidset[i] = val.gval;
9308 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9309 gidset);
9310 /* Exit non-zero if getgroups seems to require an array of ints. This
9311 happens when gid_t is short but getgroups modifies an array of ints. */
9312 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9313 }
9314 _ACEOF
9315 rm -f conftest$ac_exeext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317 (eval $ac_link) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_type_getgroups=gid_t
9327 else
9328 echo "$as_me: program exited with status $ac_status" >&5
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ( exit $ac_status )
9333 ac_cv_type_getgroups=int
9334 fi
9335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9336 fi
9337 if test $ac_cv_type_getgroups = cross; then
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <unistd.h>
9345
9346 _ACEOF
9347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9348 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9349 ac_cv_type_getgroups=gid_t
9350 else
9351 ac_cv_type_getgroups=int
9352 fi
9353 rm -f conftest*
9354
9355 fi
9356 fi
9357 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9358 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9359
9360 cat >>confdefs.h <<_ACEOF
9361 #define GETGROUPS_T $ac_cv_type_getgroups
9362 _ACEOF
9363
9364
9365 if test "${target}" = "${build}"; then
9366 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9367 else
9368 case "${target}" in
9369 # This condition may need some tweaking. It should include all
9370 # targets where the array type of the second argument of getgroups
9371 # is int and the type of gid_t is not equivalent to int.
9372 *-*-sunos* | *-*-ultrix*)
9373 TARGET_GETGROUPS_T=int
9374 ;;
9375 *)
9376 TARGET_GETGROUPS_T=gid_t
9377 ;;
9378 esac
9379 fi
9380
9381
9382 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9383 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9384 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 if test "$cross_compiling" = yes; then
9388 gcc_cv_func_printf_ptr=no
9389 else
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 #include <stdio.h>
9397
9398 int main()
9399 {
9400 char buf[64];
9401 char *p = buf, *q = NULL;
9402 sprintf(buf, "%p", p);
9403 sscanf(buf, "%p", &q);
9404 return (p != q);
9405 }
9406 _ACEOF
9407 rm -f conftest$ac_exeext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9409 (eval $ac_link) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
9418 gcc_cv_func_printf_ptr=yes
9419 else
9420 echo "$as_me: program exited with status $ac_status" >&5
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ( exit $ac_status )
9425 gcc_cv_func_printf_ptr=no
9426 fi
9427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 rm -f core core.* *.core
9430 fi
9431 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9432 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9433 if test $gcc_cv_func_printf_ptr = yes ; then
9434
9435 cat >>confdefs.h <<\_ACEOF
9436 #define HAVE_PRINTF_PTR 1
9437 _ACEOF
9438
9439 fi
9440
9441
9442 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9443 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9444 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <sys/mman.h>
9454 _ACEOF
9455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } >/dev/null; then
9463 if test -s conftest.err; then
9464 ac_cpp_err=$ac_c_preproc_warn_flag
9465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9466 else
9467 ac_cpp_err=
9468 fi
9469 else
9470 ac_cpp_err=yes
9471 fi
9472 if test -z "$ac_cpp_err"; then
9473 ac_cv_header_sys_mman_h=yes
9474 else
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9477
9478 ac_cv_header_sys_mman_h=no
9479 fi
9480 rm -f conftest.err conftest.$ac_ext
9481 fi
9482 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9483 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9484 if test $ac_cv_header_sys_mman_h = yes; then
9485 gcc_header_sys_mman_h=yes
9486 else
9487 gcc_header_sys_mman_h=no
9488 fi
9489
9490 echo "$as_me:$LINENO: checking for mmap" >&5
9491 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9492 if test "${ac_cv_func_mmap+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define mmap innocuous_mmap
9504
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char mmap (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9509
9510 #ifdef __STDC__
9511 # include <limits.h>
9512 #else
9513 # include <assert.h>
9514 #endif
9515
9516 #undef mmap
9517
9518 /* Override any gcc2 internal prototype to avoid an error. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 {
9522 #endif
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9525 char mmap ();
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined (__stub_mmap) || defined (__stub___mmap)
9530 choke me
9531 #else
9532 char (*f) () = mmap;
9533 #endif
9534 #ifdef __cplusplus
9535 }
9536 #endif
9537
9538 int
9539 main ()
9540 {
9541 return f != mmap;
9542 ;
9543 return 0;
9544 }
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 (eval $ac_try) 2>&5
9559 ac_status=$?
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_func_mmap=yes
9569 else
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 ac_cv_func_mmap=no
9574 fi
9575 rm -f conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 fi
9578 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9579 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9580 if test $ac_cv_func_mmap = yes; then
9581 gcc_func_mmap=yes
9582 else
9583 gcc_func_mmap=no
9584 fi
9585
9586 if test "$gcc_header_sys_mman_h" != yes \
9587 || test "$gcc_func_mmap" != yes; then
9588 gcc_cv_func_mmap_file=no
9589 gcc_cv_func_mmap_dev_zero=no
9590 gcc_cv_func_mmap_anon=no
9591 else
9592 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9593 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9594 if test "${gcc_cv_func_mmap_file+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 else
9597 # Add a system to this blacklist if
9598 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9599 # memory area containing the same data that you'd get if you applied
9600 # read() to the same fd. The only system known to have a problem here
9601 # is VMS, where text files have record structure.
9602 case "$host_os" in
9603 vms* | ultrix*)
9604 gcc_cv_func_mmap_file=no ;;
9605 *)
9606 gcc_cv_func_mmap_file=yes;;
9607 esac
9608 fi
9609 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9610 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9611 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9612 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9613 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616 # Add a system to this blacklist if it has mmap() but /dev/zero
9617 # does not exist, or if mmapping /dev/zero does not give anonymous
9618 # zeroed pages with both the following properties:
9619 # 1. If you map N consecutive pages in with one call, and then
9620 # unmap any subset of those pages, the pages that were not
9621 # explicitly unmapped remain accessible.
9622 # 2. If you map two adjacent blocks of memory and then unmap them
9623 # both at once, they must both go away.
9624 # Systems known to be in this category are Windows (all variants),
9625 # VMS, and Darwin.
9626 case "$host_os" in
9627 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9628 gcc_cv_func_mmap_dev_zero=no ;;
9629 *)
9630 gcc_cv_func_mmap_dev_zero=yes;;
9631 esac
9632 fi
9633 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9634 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9635
9636 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9637 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9638 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9639 if test "${gcc_cv_decl_map_anon+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <sys/types.h>
9649 #include <sys/mman.h>
9650 #include <unistd.h>
9651
9652 #ifndef MAP_ANONYMOUS
9653 #define MAP_ANONYMOUS MAP_ANON
9654 #endif
9655
9656 int
9657 main ()
9658 {
9659 int n = MAP_ANONYMOUS;
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext
9665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9666 (eval $ac_compile) 2>conftest.er1
9667 ac_status=$?
9668 grep -v '^ *+' conftest.er1 >conftest.err
9669 rm -f conftest.er1
9670 cat conftest.err >&5
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); } &&
9673 { ac_try='test -z "$ac_c_werror_flag"
9674 || test ! -s conftest.err'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; } &&
9680 { ac_try='test -s conftest.$ac_objext'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 (eval $ac_try) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; }; then
9686 gcc_cv_decl_map_anon=yes
9687 else
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 gcc_cv_decl_map_anon=no
9692 fi
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694 fi
9695 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9696 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9697
9698 if test $gcc_cv_decl_map_anon = no; then
9699 gcc_cv_func_mmap_anon=no
9700 else
9701 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9702 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9703 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9707 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9708 # doesn't give anonymous zeroed pages with the same properties listed
9709 # above for use of /dev/zero.
9710 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9711 case "$host_os" in
9712 vms* | cygwin* | pe | mingw* | sco* | udk* )
9713 gcc_cv_func_mmap_anon=no ;;
9714 *)
9715 gcc_cv_func_mmap_anon=yes;;
9716 esac
9717 fi
9718 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9719 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9720 fi
9721 fi
9722
9723 if test $gcc_cv_func_mmap_file = yes; then
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_MMAP_FILE 1
9727 _ACEOF
9728
9729 fi
9730 if test $gcc_cv_func_mmap_dev_zero = yes; then
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define HAVE_MMAP_DEV_ZERO 1
9734 _ACEOF
9735
9736 fi
9737 if test $gcc_cv_func_mmap_anon = yes; then
9738
9739 cat >>confdefs.h <<\_ACEOF
9740 #define HAVE_MMAP_ANON 1
9741 _ACEOF
9742
9743 fi
9744
9745
9746 case "${host}" in
9747 *-*-*vms*)
9748 # Under VMS, vfork works very differently than on Unix. The standard test
9749 # won't work, and it isn't easily adaptable. It makes more sense to
9750 # just force it.
9751 ac_cv_func_vfork_works=yes
9752 ;;
9753 esac
9754 echo "$as_me:$LINENO: checking for pid_t" >&5
9755 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9756 if test "${ac_cv_type_pid_t+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759 cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h. */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 int
9767 main ()
9768 {
9769 if ((pid_t *) 0)
9770 return 0;
9771 if (sizeof (pid_t))
9772 return 0;
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_type_pid_t=yes
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_cv_type_pid_t=no
9805 fi
9806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9807 fi
9808 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9809 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9810 if test $ac_cv_type_pid_t = yes; then
9811 :
9812 else
9813
9814 cat >>confdefs.h <<_ACEOF
9815 #define pid_t int
9816 _ACEOF
9817
9818 fi
9819
9820
9821
9822 for ac_header in unistd.h vfork.h
9823 do
9824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9825 echo "$as_me:$LINENO: checking for $ac_header" >&5
9826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830 cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h. */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 #include <$ac_header>
9837 _ACEOF
9838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev/null; then
9846 if test -s conftest.err; then
9847 ac_cpp_err=$ac_c_preproc_warn_flag
9848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9849 else
9850 ac_cpp_err=
9851 fi
9852 else
9853 ac_cpp_err=yes
9854 fi
9855 if test -z "$ac_cpp_err"; then
9856 eval "$as_ac_Header=yes"
9857 else
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 eval "$as_ac_Header=no"
9862 fi
9863 rm -f conftest.err conftest.$ac_ext
9864 fi
9865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h <<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 _ACEOF
9871
9872 fi
9873 done
9874
9875
9876
9877 for ac_func in fork vfork
9878 do
9879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880 echo "$as_me:$LINENO: checking for $ac_func" >&5
9881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9882 if eval "test \"\${$as_ac_var+set}\" = set"; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define $ac_func innocuous_$ac_func
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef $ac_func
9907
9908 /* Override any gcc2 internal prototype to avoid an error. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 {
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char $ac_func ();
9916 /* The GNU C library defines this for functions which it implements
9917 to always fail with ENOSYS. Some functions are actually named
9918 something starting with __ and the normal name is an alias. */
9919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9920 choke me
9921 #else
9922 char (*f) () = $ac_func;
9923 #endif
9924 #ifdef __cplusplus
9925 }
9926 #endif
9927
9928 int
9929 main ()
9930 {
9931 return f != $ac_func;
9932 ;
9933 return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>conftest.er1
9939 ac_status=$?
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 eval "$as_ac_var=yes"
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 eval "$as_ac_var=no"
9964 fi
9965 rm -f conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 fi
9968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 _ACEOF
9974
9975 fi
9976 done
9977
9978 if test "x$ac_cv_func_fork" = xyes; then
9979 echo "$as_me:$LINENO: checking for working fork" >&5
9980 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
9981 if test "${ac_cv_func_fork_works+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 if test "$cross_compiling" = yes; then
9985 ac_cv_func_fork_works=cross
9986 else
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* By Ruediger Kuhlmann. */
9989 #include <sys/types.h>
9990 #if HAVE_UNISTD_H
9991 # include <unistd.h>
9992 #endif
9993 /* Some systems only have a dummy stub for fork() */
9994 int main ()
9995 {
9996 if (fork() < 0)
9997 exit (1);
9998 exit (0);
9999 }
10000 _ACEOF
10001 rm -f conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 ac_cv_func_fork_works=yes
10013 else
10014 echo "$as_me: program exited with status $ac_status" >&5
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ( exit $ac_status )
10019 ac_cv_func_fork_works=no
10020 fi
10021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10022 fi
10023 fi
10024 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10025 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10026
10027 else
10028 ac_cv_func_fork_works=$ac_cv_func_fork
10029 fi
10030 if test "x$ac_cv_func_fork_works" = xcross; then
10031 case $host in
10032 *-*-amigaos* | *-*-msdosdjgpp*)
10033 # Override, as these systems have only a dummy fork() stub
10034 ac_cv_func_fork_works=no
10035 ;;
10036 *)
10037 ac_cv_func_fork_works=yes
10038 ;;
10039 esac
10040 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10041 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10042 fi
10043 ac_cv_func_vfork_works=$ac_cv_func_vfork
10044 if test "x$ac_cv_func_vfork" = xyes; then
10045 echo "$as_me:$LINENO: checking for working vfork" >&5
10046 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10047 if test "${ac_cv_func_vfork_works+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 if test "$cross_compiling" = yes; then
10051 ac_cv_func_vfork_works=cross
10052 else
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h. */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 /* Thanks to Paul Eggert for this test. */
10060 #include <stdio.h>
10061 #include <stdlib.h>
10062 #include <sys/types.h>
10063 #include <sys/stat.h>
10064 #include <sys/wait.h>
10065 #if HAVE_UNISTD_H
10066 # include <unistd.h>
10067 #endif
10068 #if HAVE_VFORK_H
10069 # include <vfork.h>
10070 #endif
10071 /* On some sparc systems, changes by the child to local and incoming
10072 argument registers are propagated back to the parent. The compiler
10073 is told about this with #include <vfork.h>, but some compilers
10074 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10075 static variable whose address is put into a register that is
10076 clobbered by the vfork. */
10077 static void
10078 #ifdef __cplusplus
10079 sparc_address_test (int arg)
10080 # else
10081 sparc_address_test (arg) int arg;
10082 #endif
10083 {
10084 static pid_t child;
10085 if (!child) {
10086 child = vfork ();
10087 if (child < 0) {
10088 perror ("vfork");
10089 _exit(2);
10090 }
10091 if (!child) {
10092 arg = getpid();
10093 write(-1, "", 0);
10094 _exit (arg);
10095 }
10096 }
10097 }
10098
10099 int
10100 main ()
10101 {
10102 pid_t parent = getpid ();
10103 pid_t child;
10104
10105 sparc_address_test (0);
10106
10107 child = vfork ();
10108
10109 if (child == 0) {
10110 /* Here is another test for sparc vfork register problems. This
10111 test uses lots of local variables, at least as many local
10112 variables as main has allocated so far including compiler
10113 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10114 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10115 reuse the register of parent for one of the local variables,
10116 since it will think that parent can't possibly be used any more
10117 in this routine. Assigning to the local variable will thus
10118 munge parent in the parent process. */
10119 pid_t
10120 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10121 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10122 /* Convince the compiler that p..p7 are live; otherwise, it might
10123 use the same hardware register for all 8 local variables. */
10124 if (p != p1 || p != p2 || p != p3 || p != p4
10125 || p != p5 || p != p6 || p != p7)
10126 _exit(1);
10127
10128 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10129 from child file descriptors. If the child closes a descriptor
10130 before it execs or exits, this munges the parent's descriptor
10131 as well. Test for this by closing stdout in the child. */
10132 _exit(close(fileno(stdout)) != 0);
10133 } else {
10134 int status;
10135 struct stat st;
10136
10137 while (wait(&status) != child)
10138 ;
10139 exit(
10140 /* Was there some problem with vforking? */
10141 child < 0
10142
10143 /* Did the child fail? (This shouldn't happen.) */
10144 || status
10145
10146 /* Did the vfork/compiler bug occur? */
10147 || parent != getpid()
10148
10149 /* Did the file descriptor bug occur? */
10150 || fstat(fileno(stdout), &st) != 0
10151 );
10152 }
10153 }
10154 _ACEOF
10155 rm -f conftest$ac_exeext
10156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10157 (eval $ac_link) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_func_vfork_works=yes
10167 else
10168 echo "$as_me: program exited with status $ac_status" >&5
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10171
10172 ( exit $ac_status )
10173 ac_cv_func_vfork_works=no
10174 fi
10175 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10176 fi
10177 fi
10178 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10179 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10180
10181 fi;
10182 if test "x$ac_cv_func_fork_works" = xcross; then
10183 ac_cv_func_vfork_works=$ac_cv_func_vfork
10184 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10185 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10186 fi
10187
10188 if test "x$ac_cv_func_vfork_works" = xyes; then
10189
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_WORKING_VFORK 1
10192 _ACEOF
10193
10194 else
10195
10196 cat >>confdefs.h <<\_ACEOF
10197 #define vfork fork
10198 _ACEOF
10199
10200 fi
10201 if test "x$ac_cv_func_fork_works" = xyes; then
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define HAVE_WORKING_FORK 1
10205 _ACEOF
10206
10207 fi
10208
10209
10210
10211 if test "X$prefix" = "XNONE"; then
10212 acl_final_prefix="$ac_default_prefix"
10213 else
10214 acl_final_prefix="$prefix"
10215 fi
10216 if test "X$exec_prefix" = "XNONE"; then
10217 acl_final_exec_prefix='${prefix}'
10218 else
10219 acl_final_exec_prefix="$exec_prefix"
10220 fi
10221 acl_save_prefix="$prefix"
10222 prefix="$acl_final_prefix"
10223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10224 prefix="$acl_save_prefix"
10225
10226
10227 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10228 if test "${with_gnu_ld+set}" = set; then
10229 withval="$with_gnu_ld"
10230 test "$withval" = no || with_gnu_ld=yes
10231 else
10232 with_gnu_ld=no
10233 fi;
10234 # Prepare PATH_SEPARATOR.
10235 # The user is always right.
10236 if test "${PATH_SEPARATOR+set}" != set; then
10237 echo "#! /bin/sh" >conf$$.sh
10238 echo "exit 0" >>conf$$.sh
10239 chmod +x conf$$.sh
10240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10241 PATH_SEPARATOR=';'
10242 else
10243 PATH_SEPARATOR=:
10244 fi
10245 rm -f conf$$.sh
10246 fi
10247 ac_prog=ld
10248 if test "$GCC" = yes; then
10249 # Check if gcc -print-prog-name=ld gives a path.
10250 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10251 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10252 case $host in
10253 *-*-mingw*)
10254 # gcc leaves a trailing carriage return which upsets mingw
10255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10256 *)
10257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10258 esac
10259 case $ac_prog in
10260 # Accept absolute paths.
10261 [\\/]* | [A-Za-z]:[\\/]*)
10262 re_direlt='/[^/][^/]*/\.\./'
10263 # Canonicalize the path of ld
10264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10267 done
10268 test -z "$LD" && LD="$ac_prog"
10269 ;;
10270 "")
10271 # If it fails, then pretend we aren't using GCC.
10272 ac_prog=ld
10273 ;;
10274 *)
10275 # If it is relative, then search for the first ld in PATH.
10276 with_gnu_ld=unknown
10277 ;;
10278 esac
10279 elif test "$with_gnu_ld" = yes; then
10280 echo "$as_me:$LINENO: checking for GNU ld" >&5
10281 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10282 else
10283 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10284 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10285 fi
10286 if test "${acl_cv_path_LD+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 if test -z "$LD"; then
10290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10291 for ac_dir in $PATH; do
10292 test -z "$ac_dir" && ac_dir=.
10293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10294 acl_cv_path_LD="$ac_dir/$ac_prog"
10295 # Check to see if the program is GNU ld. I'd rather use --version,
10296 # but apparently some GNU ld's only accept -v.
10297 # Break only if it was the GNU/non-GNU ld that we prefer.
10298 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10299 test "$with_gnu_ld" != no && break
10300 else
10301 test "$with_gnu_ld" != yes && break
10302 fi
10303 fi
10304 done
10305 IFS="$ac_save_ifs"
10306 else
10307 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10308 fi
10309 fi
10310
10311 LD="$acl_cv_path_LD"
10312 if test -n "$LD"; then
10313 echo "$as_me:$LINENO: result: $LD" >&5
10314 echo "${ECHO_T}$LD" >&6
10315 else
10316 echo "$as_me:$LINENO: result: no" >&5
10317 echo "${ECHO_T}no" >&6
10318 fi
10319 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10320 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10321 { (exit 1); exit 1; }; }
10322 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10323 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10324 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10328 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10329 acl_cv_prog_gnu_ld=yes
10330 else
10331 acl_cv_prog_gnu_ld=no
10332 fi
10333 fi
10334 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10335 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10336 with_gnu_ld=$acl_cv_prog_gnu_ld
10337
10338
10339
10340 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10341 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10342 if test "${acl_cv_rpath+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345
10346 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10347 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10348 . ./conftest.sh
10349 rm -f ./conftest.sh
10350 acl_cv_rpath=done
10351
10352 fi
10353 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10354 echo "${ECHO_T}$acl_cv_rpath" >&6
10355 wl="$acl_cv_wl"
10356 libext="$acl_cv_libext"
10357 shlibext="$acl_cv_shlibext"
10358 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10359 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10360 hardcode_direct="$acl_cv_hardcode_direct"
10361 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10362 # Check whether --enable-rpath or --disable-rpath was given.
10363 if test "${enable_rpath+set}" = set; then
10364 enableval="$enable_rpath"
10365 :
10366 else
10367 enable_rpath=yes
10368 fi;
10369
10370
10371
10372
10373
10374
10375
10376 use_additional=yes
10377
10378 acl_save_prefix="$prefix"
10379 prefix="$acl_final_prefix"
10380 acl_save_exec_prefix="$exec_prefix"
10381 exec_prefix="$acl_final_exec_prefix"
10382
10383 eval additional_includedir=\"$includedir\"
10384 eval additional_libdir=\"$libdir\"
10385
10386 exec_prefix="$acl_save_exec_prefix"
10387 prefix="$acl_save_prefix"
10388
10389
10390 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10391 if test "${with_libiconv_prefix+set}" = set; then
10392 withval="$with_libiconv_prefix"
10393
10394 if test "X$withval" = "Xno"; then
10395 use_additional=no
10396 else
10397 if test "X$withval" = "X"; then
10398
10399 acl_save_prefix="$prefix"
10400 prefix="$acl_final_prefix"
10401 acl_save_exec_prefix="$exec_prefix"
10402 exec_prefix="$acl_final_exec_prefix"
10403
10404 eval additional_includedir=\"$includedir\"
10405 eval additional_libdir=\"$libdir\"
10406
10407 exec_prefix="$acl_save_exec_prefix"
10408 prefix="$acl_save_prefix"
10409
10410 else
10411 additional_includedir="$withval/include"
10412 additional_libdir="$withval/lib"
10413 fi
10414 fi
10415
10416 fi;
10417 LIBICONV=
10418 LTLIBICONV=
10419 INCICONV=
10420 rpathdirs=
10421 ltrpathdirs=
10422 names_already_handled=
10423 names_next_round='iconv '
10424 while test -n "$names_next_round"; do
10425 names_this_round="$names_next_round"
10426 names_next_round=
10427 for name in $names_this_round; do
10428 already_handled=
10429 for n in $names_already_handled; do
10430 if test "$n" = "$name"; then
10431 already_handled=yes
10432 break
10433 fi
10434 done
10435 if test -z "$already_handled"; then
10436 names_already_handled="$names_already_handled $name"
10437 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10438 eval value=\"\$HAVE_LIB$uppername\"
10439 if test -n "$value"; then
10440 if test "$value" = yes; then
10441 eval value=\"\$LIB$uppername\"
10442 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10443 eval value=\"\$LTLIB$uppername\"
10444 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10445 else
10446 :
10447 fi
10448 else
10449 found_dir=
10450 found_la=
10451 found_so=
10452 found_a=
10453 if test $use_additional = yes; then
10454 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10455 found_dir="$additional_libdir"
10456 found_so="$additional_libdir/lib$name.$shlibext"
10457 if test -f "$additional_libdir/lib$name.la"; then
10458 found_la="$additional_libdir/lib$name.la"
10459 fi
10460 else
10461 if test -f "$additional_libdir/lib$name.$libext"; then
10462 found_dir="$additional_libdir"
10463 found_a="$additional_libdir/lib$name.$libext"
10464 if test -f "$additional_libdir/lib$name.la"; then
10465 found_la="$additional_libdir/lib$name.la"
10466 fi
10467 fi
10468 fi
10469 fi
10470 if test "X$found_dir" = "X"; then
10471 for x in $LDFLAGS $LTLIBICONV; do
10472
10473 acl_save_prefix="$prefix"
10474 prefix="$acl_final_prefix"
10475 acl_save_exec_prefix="$exec_prefix"
10476 exec_prefix="$acl_final_exec_prefix"
10477 eval x=\"$x\"
10478 exec_prefix="$acl_save_exec_prefix"
10479 prefix="$acl_save_prefix"
10480
10481 case "$x" in
10482 -L*)
10483 dir=`echo "X$x" | sed -e 's/^X-L//'`
10484 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10485 found_dir="$dir"
10486 found_so="$dir/lib$name.$shlibext"
10487 if test -f "$dir/lib$name.la"; then
10488 found_la="$dir/lib$name.la"
10489 fi
10490 else
10491 if test -f "$dir/lib$name.$libext"; then
10492 found_dir="$dir"
10493 found_a="$dir/lib$name.$libext"
10494 if test -f "$dir/lib$name.la"; then
10495 found_la="$dir/lib$name.la"
10496 fi
10497 fi
10498 fi
10499 ;;
10500 esac
10501 if test "X$found_dir" != "X"; then
10502 break
10503 fi
10504 done
10505 fi
10506 if test "X$found_dir" != "X"; then
10507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10508 if test "X$found_so" != "X"; then
10509 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10511 else
10512 haveit=
10513 for x in $ltrpathdirs; do
10514 if test "X$x" = "X$found_dir"; then
10515 haveit=yes
10516 break
10517 fi
10518 done
10519 if test -z "$haveit"; then
10520 ltrpathdirs="$ltrpathdirs $found_dir"
10521 fi
10522 if test "$hardcode_direct" = yes; then
10523 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10524 else
10525 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10526 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10527 haveit=
10528 for x in $rpathdirs; do
10529 if test "X$x" = "X$found_dir"; then
10530 haveit=yes
10531 break
10532 fi
10533 done
10534 if test -z "$haveit"; then
10535 rpathdirs="$rpathdirs $found_dir"
10536 fi
10537 else
10538 haveit=
10539 for x in $LDFLAGS $LIBICONV; do
10540
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 acl_save_exec_prefix="$exec_prefix"
10544 exec_prefix="$acl_final_exec_prefix"
10545 eval x=\"$x\"
10546 exec_prefix="$acl_save_exec_prefix"
10547 prefix="$acl_save_prefix"
10548
10549 if test "X$x" = "X-L$found_dir"; then
10550 haveit=yes
10551 break
10552 fi
10553 done
10554 if test -z "$haveit"; then
10555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10556 fi
10557 if test "$hardcode_minus_L" != no; then
10558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10559 else
10560 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10561 fi
10562 fi
10563 fi
10564 fi
10565 else
10566 if test "X$found_a" != "X"; then
10567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10568 else
10569 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10570 fi
10571 fi
10572 additional_includedir=
10573 case "$found_dir" in
10574 */lib | */lib/)
10575 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10576 additional_includedir="$basedir/include"
10577 ;;
10578 esac
10579 if test "X$additional_includedir" != "X"; then
10580 if test "X$additional_includedir" != "X/usr/include"; then
10581 haveit=
10582 if test "X$additional_includedir" = "X/usr/local/include"; then
10583 if test -n "$GCC"; then
10584 case $host_os in
10585 linux*) haveit=yes;;
10586 esac
10587 fi
10588 fi
10589 if test -z "$haveit"; then
10590 for x in $CPPFLAGS $INCICONV; do
10591
10592 acl_save_prefix="$prefix"
10593 prefix="$acl_final_prefix"
10594 acl_save_exec_prefix="$exec_prefix"
10595 exec_prefix="$acl_final_exec_prefix"
10596 eval x=\"$x\"
10597 exec_prefix="$acl_save_exec_prefix"
10598 prefix="$acl_save_prefix"
10599
10600 if test "X$x" = "X-I$additional_includedir"; then
10601 haveit=yes
10602 break
10603 fi
10604 done
10605 if test -z "$haveit"; then
10606 if test -d "$additional_includedir"; then
10607 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10608 fi
10609 fi
10610 fi
10611 fi
10612 fi
10613 if test -n "$found_la"; then
10614 save_libdir="$libdir"
10615 case "$found_la" in
10616 */* | *\\*) . "$found_la" ;;
10617 *) . "./$found_la" ;;
10618 esac
10619 libdir="$save_libdir"
10620 for dep in $dependency_libs; do
10621 case "$dep" in
10622 -L*)
10623 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10624 if test "X$additional_libdir" != "X/usr/lib"; then
10625 haveit=
10626 if test "X$additional_libdir" = "X/usr/local/lib"; then
10627 if test -n "$GCC"; then
10628 case $host_os in
10629 linux*) haveit=yes;;
10630 esac
10631 fi
10632 fi
10633 if test -z "$haveit"; then
10634 haveit=
10635 for x in $LDFLAGS $LIBICONV; do
10636
10637 acl_save_prefix="$prefix"
10638 prefix="$acl_final_prefix"
10639 acl_save_exec_prefix="$exec_prefix"
10640 exec_prefix="$acl_final_exec_prefix"
10641 eval x=\"$x\"
10642 exec_prefix="$acl_save_exec_prefix"
10643 prefix="$acl_save_prefix"
10644
10645 if test "X$x" = "X-L$additional_libdir"; then
10646 haveit=yes
10647 break
10648 fi
10649 done
10650 if test -z "$haveit"; then
10651 if test -d "$additional_libdir"; then
10652 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10653 fi
10654 fi
10655 haveit=
10656 for x in $LDFLAGS $LTLIBICONV; do
10657
10658 acl_save_prefix="$prefix"
10659 prefix="$acl_final_prefix"
10660 acl_save_exec_prefix="$exec_prefix"
10661 exec_prefix="$acl_final_exec_prefix"
10662 eval x=\"$x\"
10663 exec_prefix="$acl_save_exec_prefix"
10664 prefix="$acl_save_prefix"
10665
10666 if test "X$x" = "X-L$additional_libdir"; then
10667 haveit=yes
10668 break
10669 fi
10670 done
10671 if test -z "$haveit"; then
10672 if test -d "$additional_libdir"; then
10673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10674 fi
10675 fi
10676 fi
10677 fi
10678 ;;
10679 -R*)
10680 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10681 if test "$enable_rpath" != no; then
10682 haveit=
10683 for x in $rpathdirs; do
10684 if test "X$x" = "X$dir"; then
10685 haveit=yes
10686 break
10687 fi
10688 done
10689 if test -z "$haveit"; then
10690 rpathdirs="$rpathdirs $dir"
10691 fi
10692 haveit=
10693 for x in $ltrpathdirs; do
10694 if test "X$x" = "X$dir"; then
10695 haveit=yes
10696 break
10697 fi
10698 done
10699 if test -z "$haveit"; then
10700 ltrpathdirs="$ltrpathdirs $dir"
10701 fi
10702 fi
10703 ;;
10704 -l*)
10705 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10706 ;;
10707 *.la)
10708 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10709 ;;
10710 *)
10711 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10712 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10713 ;;
10714 esac
10715 done
10716 fi
10717 else
10718 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10720 fi
10721 fi
10722 fi
10723 done
10724 done
10725 if test "X$rpathdirs" != "X"; then
10726 if test -n "$hardcode_libdir_separator"; then
10727 alldirs=
10728 for found_dir in $rpathdirs; do
10729 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10730 done
10731 acl_save_libdir="$libdir"
10732 libdir="$alldirs"
10733 eval flag=\"$hardcode_libdir_flag_spec\"
10734 libdir="$acl_save_libdir"
10735 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10736 else
10737 for found_dir in $rpathdirs; do
10738 acl_save_libdir="$libdir"
10739 libdir="$found_dir"
10740 eval flag=\"$hardcode_libdir_flag_spec\"
10741 libdir="$acl_save_libdir"
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10743 done
10744 fi
10745 fi
10746 if test "X$ltrpathdirs" != "X"; then
10747 for found_dir in $ltrpathdirs; do
10748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10749 done
10750 fi
10751
10752
10753
10754
10755
10756
10757
10758 am_save_CPPFLAGS="$CPPFLAGS"
10759
10760 for element in $INCICONV; do
10761 haveit=
10762 for x in $CPPFLAGS; do
10763
10764 acl_save_prefix="$prefix"
10765 prefix="$acl_final_prefix"
10766 acl_save_exec_prefix="$exec_prefix"
10767 exec_prefix="$acl_final_exec_prefix"
10768 eval x=\"$x\"
10769 exec_prefix="$acl_save_exec_prefix"
10770 prefix="$acl_save_prefix"
10771
10772 if test "X$x" = "X$element"; then
10773 haveit=yes
10774 break
10775 fi
10776 done
10777 if test -z "$haveit"; then
10778 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10779 fi
10780 done
10781
10782
10783 echo "$as_me:$LINENO: checking for iconv" >&5
10784 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10785 if test "${am_cv_func_iconv+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788
10789 am_cv_func_iconv="no, consider installing GNU libiconv"
10790 am_cv_lib_iconv=no
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 #include <stdlib.h>
10798 #include <iconv.h>
10799 int
10800 main ()
10801 {
10802 iconv_t cd = iconv_open("","");
10803 iconv(cd,NULL,NULL,NULL,NULL);
10804 iconv_close(cd);
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 am_cv_func_iconv=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 fi
10837 rm -f conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 if test "$am_cv_func_iconv" != yes; then
10840 am_save_LIBS="$LIBS"
10841 LIBS="$LIBS $LIBICONV"
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <stdlib.h>
10849 #include <iconv.h>
10850 int
10851 main ()
10852 {
10853 iconv_t cd = iconv_open("","");
10854 iconv(cd,NULL,NULL,NULL,NULL);
10855 iconv_close(cd);
10856 ;
10857 return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10862 (eval $ac_link) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag"
10870 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest$ac_exeext'
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 am_cv_lib_iconv=yes
10883 am_cv_func_iconv=yes
10884 else
10885 echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 fi
10889 rm -f conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS="$am_save_LIBS"
10892 fi
10893
10894 fi
10895 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10896 echo "${ECHO_T}$am_cv_func_iconv" >&6
10897 if test "$am_cv_func_iconv" = yes; then
10898
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_ICONV 1
10901 _ACEOF
10902
10903 fi
10904 if test "$am_cv_lib_iconv" = yes; then
10905 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10906 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10907 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10908 echo "${ECHO_T}$LIBICONV" >&6
10909 else
10910 CPPFLAGS="$am_save_CPPFLAGS"
10911 LIBICONV=
10912 LTLIBICONV=
10913 fi
10914
10915
10916
10917 if test "$am_cv_func_iconv" = yes; then
10918 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10919 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10920 if test "${am_cv_proto_iconv+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922 else
10923
10924 cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h. */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930
10931 #include <stdlib.h>
10932 #include <iconv.h>
10933 extern
10934 #ifdef __cplusplus
10935 "C"
10936 #endif
10937 #if defined(__STDC__) || defined(__cplusplus)
10938 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10939 #else
10940 size_t iconv();
10941 #endif
10942
10943 int
10944 main ()
10945 {
10946
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 rm -f conftest.$ac_objext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10953 (eval $ac_compile) 2>conftest.er1
10954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag"
10961 || test ! -s conftest.err'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 am_cv_proto_iconv_arg1=""
10974 else
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978 am_cv_proto_iconv_arg1="const"
10979 fi
10980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10981 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);"
10982 fi
10983
10984 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10985 echo "$as_me:$LINENO: result: ${ac_t:-
10986 }$am_cv_proto_iconv" >&5
10987 echo "${ECHO_T}${ac_t:-
10988 }$am_cv_proto_iconv" >&6
10989
10990 cat >>confdefs.h <<_ACEOF
10991 #define ICONV_CONST $am_cv_proto_iconv_arg1
10992 _ACEOF
10993
10994 fi
10995
10996 # Until we have in-tree GNU iconv:
10997 LIBICONV_DEP=
10998
10999
11000
11001 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11002 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11003 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <locale.h>
11013 int
11014 main ()
11015 {
11016 return LC_MESSAGES
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 rm -f conftest.$ac_objext conftest$ac_exeext
11022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11023 (eval $ac_link) 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag"
11031 || test ! -s conftest.err'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; } &&
11037 { ac_try='test -s conftest$ac_exeext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 am_cv_val_LC_MESSAGES=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048 am_cv_val_LC_MESSAGES=no
11049 fi
11050 rm -f conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11052 fi
11053 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11054 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11055 if test $am_cv_val_LC_MESSAGES = yes; then
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_LC_MESSAGES 1
11059 _ACEOF
11060
11061 fi
11062
11063
11064
11065 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11066 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11067 if test "${am_cv_langinfo_codeset+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #include <langinfo.h>
11077 int
11078 main ()
11079 {
11080 char* cs = nl_langinfo(CODESET);
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11087 (eval $ac_link) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest$ac_exeext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 am_cv_langinfo_codeset=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 am_cv_langinfo_codeset=no
11113 fi
11114 rm -f conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116
11117 fi
11118 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11119 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11120 if test $am_cv_langinfo_codeset = yes; then
11121
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_LANGINFO_CODESET 1
11124 _ACEOF
11125
11126 fi
11127
11128
11129 # We will need to find libiberty.h and ansidecl.h
11130 saved_CFLAGS="$CFLAGS"
11131 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156 for ac_func in getenv atol sbrk abort atof getcwd getwd \
11157 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
11158 fprintf_unlocked strstr errno snprintf vasprintf \
11159 malloc realloc calloc free basename getopt clock getpagesize
11160 do
11161 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11162 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11163 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11164 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167 cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h. */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h. */
11173 #undef $ac_tr_decl
11174 #define $ac_tr_decl 1
11175
11176 #include "ansidecl.h"
11177 #include "system.h"
11178
11179 int
11180 main ()
11181 {
11182 #ifndef $ac_func
11183 char *(*pfn) = (char *(*)) $ac_func ;
11184 #endif
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -z "$ac_c_werror_flag"
11199 || test ! -s conftest.err'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; } &&
11205 { ac_try='test -s conftest.$ac_objext'
11206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207 (eval $ac_try) 2>&5
11208 ac_status=$?
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); }; }; then
11211 eval "gcc_cv_have_decl_$ac_func=yes"
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 eval "gcc_cv_have_decl_$ac_func=no"
11217 fi
11218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11219 fi
11220
11221 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11222 echo "$as_me:$LINENO: result: yes" >&5
11223 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11224 #define $ac_tr_decl 1
11225 _ACEOF
11226
11227 else
11228 echo "$as_me:$LINENO: result: no" >&5
11229 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11230 #define $ac_tr_decl 0
11231 _ACEOF
11232
11233 fi
11234
11235 done
11236
11237
11238
11239
11240
11241 for ac_func in getrlimit setrlimit getrusage
11242 do
11243 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11244 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11245 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11246 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249 cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h. */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #undef $ac_tr_decl
11256 #define $ac_tr_decl 1
11257
11258 #include "ansidecl.h"
11259 #include "system.h"
11260 #ifdef HAVE_SYS_RESOURCE_H
11261 #include <sys/resource.h>
11262 #endif
11263
11264
11265 int
11266 main ()
11267 {
11268 #ifndef $ac_func
11269 char *(*pfn) = (char *(*)) $ac_func ;
11270 #endif
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277 (eval $ac_compile) 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } &&
11284 { ac_try='test -z "$ac_c_werror_flag"
11285 || test ! -s conftest.err'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; } &&
11291 { ac_try='test -s conftest.$ac_objext'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "gcc_cv_have_decl_$ac_func=yes"
11298 else
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 eval "gcc_cv_have_decl_$ac_func=no"
11303 fi
11304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11305 fi
11306
11307 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11308 echo "$as_me:$LINENO: result: yes" >&5
11309 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11310 #define $ac_tr_decl 1
11311 _ACEOF
11312
11313 else
11314 echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11316 #define $ac_tr_decl 0
11317 _ACEOF
11318
11319 fi
11320
11321 done
11322
11323
11324 cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h. */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330
11331 #include "ansidecl.h"
11332 #include "system.h"
11333 #ifdef HAVE_SYS_RESOURCE_H
11334 #include <sys/resource.h>
11335 #endif
11336
11337 int
11338 main ()
11339 {
11340 rlim_t l = 0;
11341 ;
11342 return 0;
11343 }
11344 _ACEOF
11345 rm -f conftest.$ac_objext
11346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11347 (eval $ac_compile) 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag"
11355 || test ! -s conftest.err'
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 :
11368 else
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372
11373 cat >>confdefs.h <<\_ACEOF
11374 #define rlim_t long
11375 _ACEOF
11376
11377 fi
11378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11379
11380 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11381 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11382 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11383 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11384
11385 for ac_func in ldgetname
11386 do
11387 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11388 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11389 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11390 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #undef $ac_tr_decl
11400 #define $ac_tr_decl 1
11401
11402 #include "ansidecl.h"
11403 #include "system.h"
11404 #ifdef HAVE_LDFCN_H
11405 #undef FREAD
11406 #undef FWRITE
11407 #include <ldfcn.h>
11408 #endif
11409
11410
11411 int
11412 main ()
11413 {
11414 #ifndef $ac_func
11415 char *(*pfn) = (char *(*)) $ac_func ;
11416 #endif
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext
11422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11423 (eval $ac_compile) 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -z "$ac_c_werror_flag"
11431 || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 eval "gcc_cv_have_decl_$ac_func=yes"
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 eval "gcc_cv_have_decl_$ac_func=no"
11449 fi
11450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11451 fi
11452
11453 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11454 echo "$as_me:$LINENO: result: yes" >&5
11455 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11456 #define $ac_tr_decl 1
11457 _ACEOF
11458
11459 else
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11462 #define $ac_tr_decl 0
11463 _ACEOF
11464
11465 fi
11466
11467 done
11468
11469
11470
11471 for ac_func in times
11472 do
11473 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11474 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11475 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11476 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 else
11479 cat >conftest.$ac_ext <<_ACEOF
11480 /* confdefs.h. */
11481 _ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 #undef $ac_tr_decl
11486 #define $ac_tr_decl 1
11487
11488 #include "ansidecl.h"
11489 #include "system.h"
11490 #ifdef HAVE_SYS_TIMES_H
11491 #include <sys/times.h>
11492 #endif
11493
11494
11495 int
11496 main ()
11497 {
11498 #ifndef $ac_func
11499 char *(*pfn) = (char *(*)) $ac_func ;
11500 #endif
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507 (eval $ac_compile) 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag"
11515 || test ! -s conftest.err'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532 eval "gcc_cv_have_decl_$ac_func=no"
11533 fi
11534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11535 fi
11536
11537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11538 echo "$as_me:$LINENO: result: yes" >&5
11539 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11540 #define $ac_tr_decl 1
11541 _ACEOF
11542
11543 else
11544 echo "$as_me:$LINENO: result: no" >&5
11545 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11546 #define $ac_tr_decl 0
11547 _ACEOF
11548
11549 fi
11550
11551 done
11552
11553
11554 # More time-related stuff.
11555 echo "$as_me:$LINENO: checking for struct tms" >&5
11556 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11557 if test "${ac_cv_struct_tms+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567
11568 #include "ansidecl.h"
11569 #include "system.h"
11570 #ifdef HAVE_SYS_TIMES_H
11571 #include <sys/times.h>
11572 #endif
11573
11574 int
11575 main ()
11576 {
11577 struct tms tms;
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -z "$ac_c_werror_flag"
11592 || test ! -s conftest.err'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; } &&
11598 { ac_try='test -s conftest.$ac_objext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 ac_cv_struct_tms=yes
11605 else
11606 echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609 ac_cv_struct_tms=no
11610 fi
11611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11612 fi
11613 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11614 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11615 if test $ac_cv_struct_tms = yes; then
11616
11617 cat >>confdefs.h <<\_ACEOF
11618 #define HAVE_STRUCT_TMS 1
11619 _ACEOF
11620
11621 fi
11622
11623 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11624 # revisit after autoconf 2.50.
11625 echo "$as_me:$LINENO: checking for clock_t" >&5
11626 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11627 if test "${gcc_cv_type_clock_t+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637
11638 #include "ansidecl.h"
11639 #include "system.h"
11640
11641 int
11642 main ()
11643 {
11644 clock_t x;
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -z "$ac_c_werror_flag"
11659 || test ! -s conftest.err'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 gcc_cv_type_clock_t=yes
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 gcc_cv_type_clock_t=no
11677 fi
11678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11679 fi
11680 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11681 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11682 if test $gcc_cv_type_clock_t = yes; then
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_CLOCK_T 1
11686 _ACEOF
11687
11688 fi
11689
11690 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11691 CFLAGS="$saved_CFLAGS"
11692
11693 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11694 if test "${enable_initfini_array+set}" = set; then
11695 enableval="$enable_initfini_array"
11696
11697 else
11698
11699 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11700 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11701 if test "${gcc_cv_initfini_array+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 if test "$cross_compiling" = yes; then
11705 gcc_cv_initfini_array=no
11706 else
11707 cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713
11714 static int x = -1;
11715 int main (void) { return x; }
11716 int foo (void) { x = 0; }
11717 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11718 _ACEOF
11719 rm -f conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721 (eval $ac_link) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 gcc_cv_initfini_array=yes
11731 else
11732 echo "$as_me: program exited with status $ac_status" >&5
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ( exit $ac_status )
11737 gcc_cv_initfini_array=no
11738 fi
11739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11740 fi
11741 fi
11742 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11743 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11744 enable_initfini_array=$gcc_cv_initfini_array
11745
11746 fi;
11747 if test $enable_initfini_array = yes; then
11748
11749 cat >>confdefs.h <<\_ACEOF
11750 #define HAVE_INITFINI_ARRAY 1
11751 _ACEOF
11752
11753 fi
11754
11755 # mkdir takes a single argument on some systems.
11756 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11757 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11758 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767
11768 #include <sys/types.h>
11769 #ifdef HAVE_SYS_STAT_H
11770 # include <sys/stat.h>
11771 #endif
11772 #ifdef HAVE_UNISTD_H
11773 # include <unistd.h>
11774 #endif
11775 #ifdef HAVE_DIRECT_H
11776 # include <direct.h>
11777 #endif
11778 int
11779 main ()
11780 {
11781 mkdir ("foo", 0);
11782 ;
11783 return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>conftest.er1
11789 ac_status=$?
11790 grep -v '^ *+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } &&
11795 { ac_try='test -z "$ac_c_werror_flag"
11796 || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 gcc_cv_mkdir_takes_one_arg=no
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 gcc_cv_mkdir_takes_one_arg=yes
11814 fi
11815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816 fi
11817 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11818 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11819 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define MKDIR_TAKES_ONE_ARG 1
11823 _ACEOF
11824
11825 fi
11826
11827
11828 # File extensions
11829 manext='.1'
11830 objext='.o'
11831
11832
11833
11834 # With Setjmp/Longjmp based exception handling.
11835 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11836 if test "${enable_sjlj_exceptions+set}" = set; then
11837 enableval="$enable_sjlj_exceptions"
11838 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11842 _ACEOF
11843
11844 fi;
11845
11846 # For platforms with the unwind ABI which includes an unwind library,
11847 # libunwind, we can choose to use the system libunwind.
11848
11849 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11850 if test "${with_system_libunwind+set}" = set; then
11851 withval="$with_system_libunwind"
11852
11853 fi;
11854
11855 # --------------------------------------------------------
11856 # Build, host, and target specific configuration fragments
11857 # --------------------------------------------------------
11858
11859 # Collect build-machine-specific information.
11860 . ${srcdir}/config.build
11861
11862 # Collect host-machine-specific information.
11863 . ${srcdir}/config.host
11864
11865 target_gtfiles=
11866
11867 # Collect target-machine-specific information.
11868 . ${srcdir}/config.gcc
11869
11870 extra_objs="${host_extra_objs} ${extra_objs}"
11871 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11872
11873 # Default the target-machine variables that were not explicitly set.
11874 if test x"$tm_file" = x
11875 then tm_file=$cpu_type/$cpu_type.h; fi
11876
11877 if test x"$extra_headers" = x
11878 then extra_headers=; fi
11879
11880 if test x$md_file = x
11881 then md_file=$cpu_type/$cpu_type.md; fi
11882
11883 if test x$out_file = x
11884 then out_file=$cpu_type/$cpu_type.c; fi
11885
11886 if test x"$tmake_file" = x
11887 then tmake_file=$cpu_type/t-$cpu_type
11888 fi
11889
11890 if test x"$dwarf2" = xyes
11891 then tm_file="$tm_file tm-dwarf2.h"
11892 fi
11893
11894 # Say what files are being used for the output code and MD file.
11895 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11896 echo "Using \`$srcdir/config/$md_file' as machine description file."
11897
11898 # If any of the xm_file variables contain nonexistent files, warn
11899 # about them and drop them.
11900
11901 bx=
11902 for x in $build_xm_file; do
11903 if test -f $srcdir/config/$x
11904 then bx="$bx $x"
11905 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11906 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11907 fi
11908 done
11909 build_xm_file="$bx"
11910
11911 hx=
11912 for x in $host_xm_file; do
11913 if test -f $srcdir/config/$x
11914 then hx="$hx $x"
11915 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11916 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11917 fi
11918 done
11919 host_xm_file="$hx"
11920
11921 tx=
11922 for x in $xm_file; do
11923 if test -f $srcdir/config/$x
11924 then tx="$tx $x"
11925 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11926 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11927 fi
11928 done
11929 xm_file="$tx"
11930
11931 count=a
11932 for f in $tm_file; do
11933 count=${count}x
11934 done
11935 if test $count = ax; then
11936 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11937 else
11938 echo "Using the following target machine macro files:"
11939 for f in $tm_file; do
11940 echo " $srcdir/config/$f"
11941 done
11942 fi
11943
11944 if test x$need_64bit_hwint = xyes; then
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define NEED_64BIT_HOST_WIDE_INT 1
11948 _ACEOF
11949
11950 fi
11951
11952 if test x$use_long_long_for_widest_fast_int = xyes; then
11953
11954 cat >>confdefs.h <<\_ACEOF
11955 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
11956 _ACEOF
11957
11958 fi
11959
11960 count=a
11961 for f in $host_xm_file; do
11962 count=${count}x
11963 done
11964 if test $count = a; then
11965 :
11966 elif test $count = ax; then
11967 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11968 else
11969 echo "Using the following host machine macro files:"
11970 for f in $host_xm_file; do
11971 echo " $srcdir/config/$f"
11972 done
11973 fi
11974 echo "Using ${out_host_hook_obj} for host machine hooks."
11975
11976 if test "$host_xm_file" != "$build_xm_file"; then
11977 count=a
11978 for f in $build_xm_file; do
11979 count=${count}x
11980 done
11981 if test $count = a; then
11982 :
11983 elif test $count = ax; then
11984 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11985 else
11986 echo "Using the following build machine macro files:"
11987 for f in $build_xm_file; do
11988 echo " $srcdir/config/$f"
11989 done
11990 fi
11991 fi
11992
11993 # ---------
11994 # Threading
11995 # ---------
11996
11997 # Check if a valid thread package
11998 case ${enable_threads} in
11999 "" | no)
12000 # No threads
12001 target_thread_file='single'
12002 ;;
12003 yes)
12004 # default
12005 target_thread_file='single'
12006 ;;
12007 aix | dce | gnat | irix | posix | posix95 | rtems | \
12008 single | solaris | vxworks | win32 )
12009 target_thread_file=${enable_threads}
12010 ;;
12011 *)
12012 echo "${enable_threads} is an unknown thread package" 1>&2
12013 exit 1
12014 ;;
12015 esac
12016
12017 if test x${thread_file} = x; then
12018 # No thread file set by target-specific clauses in config.gcc,
12019 # so use file chosen by default logic above
12020 thread_file=${target_thread_file}
12021 fi
12022
12023 # Make gthr-default.h if we have a thread file.
12024 gthread_flags=
12025 if test $thread_file != single; then
12026 rm -f gthr-default.h
12027 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12028 gthread_flags=-DHAVE_GTHR_DEFAULT
12029 fi
12030
12031
12032 # --------
12033 # UNSORTED
12034 # --------
12035
12036 use_cxa_atexit=no
12037 if test x$enable___cxa_atexit = xyes || \
12038 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12039 if test x$host = x$target; then
12040 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12041 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12042 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12053 #define __cxa_atexit innocuous___cxa_atexit
12054
12055 /* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char __cxa_atexit (); below.
12057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12058 <limits.h> exists even on freestanding compilers. */
12059
12060 #ifdef __STDC__
12061 # include <limits.h>
12062 #else
12063 # include <assert.h>
12064 #endif
12065
12066 #undef __cxa_atexit
12067
12068 /* Override any gcc2 internal prototype to avoid an error. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 {
12072 #endif
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char __cxa_atexit ();
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12080 choke me
12081 #else
12082 char (*f) () = __cxa_atexit;
12083 #endif
12084 #ifdef __cplusplus
12085 }
12086 #endif
12087
12088 int
12089 main ()
12090 {
12091 return f != __cxa_atexit;
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098 (eval $ac_link) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -z "$ac_c_werror_flag"
12106 || test ! -s conftest.err'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_func___cxa_atexit=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 ac_cv_func___cxa_atexit=no
12124 fi
12125 rm -f conftest.err conftest.$ac_objext \
12126 conftest$ac_exeext conftest.$ac_ext
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12129 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12130 if test $ac_cv_func___cxa_atexit = yes; then
12131 use_cxa_atexit=yes
12132 else
12133 echo "__cxa_atexit can't be enabled on this target"
12134 fi
12135
12136 else
12137 # We can't check for __cxa_atexit when building a cross, so assume
12138 # it is available
12139 use_cxa_atexit=yes
12140 fi
12141 if test x$use_cxa_atexit = xyes; then
12142
12143 cat >>confdefs.h <<\_ACEOF
12144 #define DEFAULT_USE_CXA_ATEXIT 1
12145 _ACEOF
12146
12147 fi
12148 fi
12149
12150 # Look for a file containing extra machine modes.
12151 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12152 extra_modes_file='$(srcdir)'/config/${extra_modes}
12153
12154
12155 cat >>confdefs.h <<_ACEOF
12156 #define EXTRA_MODES_FILE "config/$extra_modes"
12157 _ACEOF
12158
12159 fi
12160
12161 # auto-host.h is the file containing items generated by autoconf and is
12162 # the first file included by config.h.
12163 # If host=build, it is correct to have bconfig include auto-host.h
12164 # as well. If host!=build, we are in error and need to do more
12165 # work to find out the build config parameters.
12166 if test x$host = x$build
12167 then
12168 build_auto=auto-host.h
12169 else
12170 # We create a subdir, then run autoconf in the subdir.
12171 # To prevent recursion we set host and build for the new
12172 # invocation of configure to the build for this invocation
12173 # of configure.
12174 tempdir=build.$$
12175 rm -rf $tempdir
12176 mkdir $tempdir
12177 cd $tempdir
12178 case ${srcdir} in
12179 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12180 *) realsrcdir=../${srcdir};;
12181 esac
12182 saved_CFLAGS="${CFLAGS}"
12183 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12184 ${realsrcdir}/configure \
12185 --enable-languages=${enable_languages-all} \
12186 --target=$target_alias --host=$build_alias --build=$build_alias
12187 CFLAGS="${saved_CFLAGS}"
12188
12189 # We just finished tests for the build machine, so rename
12190 # the file auto-build.h in the gcc directory.
12191 mv auto-host.h ../auto-build.h
12192 cd ..
12193 rm -rf $tempdir
12194 build_auto=auto-build.h
12195 fi
12196
12197
12198 tm_file="${tm_file} defaults.h"
12199 tm_p_file="${tm_p_file} tm-preds.h"
12200 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12201 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12202 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12203 # put this back in temporarily.
12204 xm_file="ansidecl.h ${xm_file}"
12205
12206 # --------
12207 # UNSORTED
12208 # --------
12209
12210 # Compile in configure arguments.
12211 if test -f configargs.h ; then
12212 # Being re-configured.
12213 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12214 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12215 else
12216 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12217 fi
12218
12219 # Double all backslashes and backslash all quotes to turn
12220 # gcc_config_arguments into a C string.
12221 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12222 $gcc_config_arguments
12223 EOF
12224 gcc_config_arguments_str=`cat conftest.out`
12225 rm -f conftest.out
12226
12227 cat > configargs.h <<EOF
12228 /* Generated automatically. */
12229 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12230 static const char thread_model[] = "$thread_file";
12231
12232 static const struct {
12233 const char *name, *value;
12234 } configure_default_options[] = $configure_default_options;
12235 EOF
12236
12237 # Internationalization
12238 PACKAGE=gcc
12239 VERSION="$gcc_version"
12240
12241 cat >>confdefs.h <<_ACEOF
12242 #define PACKAGE "$PACKAGE"
12243 _ACEOF
12244
12245
12246
12247
12248 # If we haven't got the data from the intl directory,
12249 # assume NLS is disabled.
12250 USE_NLS=no
12251 LIBINTL=
12252 LIBINTL_DEP=
12253 INCINTL=
12254 XGETTEXT=
12255 GMSGFMT=
12256 POSUB=
12257 if test -f ../intl/config.intl; then
12258 . ../intl/config.intl
12259 fi
12260 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12261 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12262 if test x"$USE_NLS" != xyes; then
12263 echo "$as_me:$LINENO: result: no" >&5
12264 echo "${ECHO_T}no" >&6
12265 else
12266 echo "$as_me:$LINENO: result: yes" >&5
12267 echo "${ECHO_T}yes" >&6
12268
12269 cat >>confdefs.h <<\_ACEOF
12270 #define ENABLE_NLS 1
12271 _ACEOF
12272
12273
12274 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12275 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12276 # Look for .po and .gmo files in the source directory.
12277 CATALOGS=
12278 XLINGUAS=
12279 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12280 # If there aren't any .gmo files the shell will give us the
12281 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12282 # weeded out.
12283 case "$cat" in *\**)
12284 continue;;
12285 esac
12286 # The quadruple backslash is collapsed to a double backslash
12287 # by the backticks, then collapsed again by the double quotes,
12288 # leaving us with one backslash in the sed expression (right
12289 # before the dot that mustn't act as a wildcard).
12290 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12291 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12292 # The user is allowed to set LINGUAS to a list of languages to
12293 # install catalogs for. If it's empty that means "all of them."
12294 if test "x$LINGUAS" = x; then
12295 CATALOGS="$CATALOGS $cat"
12296 XLINGUAS="$XLINGUAS $lang"
12297 else
12298 case "$LINGUAS" in *$lang*)
12299 CATALOGS="$CATALOGS $cat"
12300 XLINGUAS="$XLINGUAS $lang"
12301 ;;
12302 esac
12303 fi
12304 done
12305 LINGUAS="$XLINGUAS"
12306 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12307 echo "${ECHO_T}$LINGUAS" >&6
12308 fi
12309
12310 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12311 # -liconv on the link line twice.
12312 case "$LIBINTL" in *$LIBICONV*)
12313 LIBICONV= ;;
12314 esac
12315
12316 # Windows32 Registry support for specifying GCC installation paths.
12317 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12318 if test "${enable_win32_registry+set}" = set; then
12319 enableval="$enable_win32_registry"
12320
12321 fi;
12322 case $host_os in
12323 win32 | pe | cygwin* | mingw32* | uwin*)
12324 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
12325 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
12326 if test "x$enable_win32_registry" != xno; then
12327
12328 cat >>confdefs.h <<\_ACEOF
12329 #define ENABLE_WIN32_REGISTRY 1
12330 _ACEOF
12331
12332 echo "$as_me:$LINENO: result: yes" >&5
12333 echo "${ECHO_T}yes" >&6
12334 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12335 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12336 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 ac_func_search_save_LIBS=$LIBS
12340 ac_cv_search_RegOpenKeyExA=no
12341 cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h. */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347
12348 /* Override any gcc2 internal prototype to avoid an error. */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 /* We use char because int might match the return type of a gcc2
12353 builtin and then its argument prototype would still apply. */
12354 char RegOpenKeyExA ();
12355 int
12356 main ()
12357 {
12358 RegOpenKeyExA ();
12359 ;
12360 return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } &&
12372 { ac_try='test -z "$ac_c_werror_flag"
12373 || test ! -s conftest.err'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_search_RegOpenKeyExA="none required"
12386 else
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 fi
12391 rm -f conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12394 for ac_lib in advapi32; do
12395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12396 cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h. */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402
12403 /* Override any gcc2 internal prototype to avoid an error. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char RegOpenKeyExA ();
12410 int
12411 main ()
12412 {
12413 RegOpenKeyExA ();
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12441 break
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 fi
12447 rm -f conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
12449 done
12450 fi
12451 LIBS=$ac_func_search_save_LIBS
12452 fi
12453 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12454 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12455 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12456 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12457
12458 fi
12459
12460 else
12461 echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6
12463 fi
12464
12465 # Check if user specified a different registry key.
12466 case "x${enable_win32_registry}" in
12467 x | xyes)
12468 # default.
12469 gcc_cv_win32_registry_key="$VERSION"
12470 ;;
12471 xno)
12472 # no registry lookup.
12473 gcc_cv_win32_registry_key=''
12474 ;;
12475 *)
12476 # user-specified key.
12477 gcc_cv_win32_registry_key="$enable_win32_registry"
12478 ;;
12479 esac
12480
12481 if test "x$enable_win32_registry" != xno; then
12482 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
12483 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
12484
12485 cat >>confdefs.h <<_ACEOF
12486 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
12487 _ACEOF
12488
12489 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
12490 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
12491 fi
12492 ;;
12493 esac
12494
12495 # Get an absolute path to the GCC top-level source directory
12496 holddir=`${PWDCMD-pwd}`
12497 cd $srcdir
12498 topdir=`${PWDCMD-pwd}`
12499 cd $holddir
12500
12501 # Conditionalize the makefile for this host machine.
12502 xmake_file=
12503 for f in ${host_xmake_file}
12504 do
12505 if test -f ${srcdir}/config/$f
12506 then
12507 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12508 fi
12509 done
12510
12511 # Conditionalize the makefile for this target machine.
12512 tmake_file_=
12513 for f in ${tmake_file}
12514 do
12515 if test -f ${srcdir}/config/$f
12516 then
12517 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12518 fi
12519 done
12520 tmake_file="${tmake_file_}"
12521
12522 # If the host doesn't support symlinks, modify CC in
12523 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12524 # Otherwise, we can use "CC=$(CC)".
12525 rm -f symtest.tem
12526 case "$LN_S" in
12527 *-s*)
12528 cc_set_by_configure="\$(CC)"
12529 quoted_cc_set_by_configure="\$(CC)"
12530 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12531 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12532 ;;
12533 *)
12534 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12535 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12536 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12537 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12538 ;;
12539 esac
12540
12541 # This is a terrible hack which will go away some day.
12542 host_cc_for_libada=${CC}
12543
12544
12545 out_object_file=`basename $out_file .c`.o
12546
12547 tm_file_list=
12548 tm_include_list=
12549 for f in $tm_file; do
12550 case $f in
12551 defaults.h )
12552 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12553 tm_include_list="${tm_include_list} $f"
12554 ;;
12555 * )
12556 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12557 tm_include_list="${tm_include_list} config/$f"
12558 ;;
12559 esac
12560 done
12561
12562 tm_p_file_list=
12563 tm_p_include_list=
12564 for f in $tm_p_file; do
12565 case $f in
12566 tm-preds.h )
12567 tm_p_file_list="${tm_p_file_list} $f"
12568 tm_p_include_list="${tm_p_include_list} $f"
12569 ;;
12570 * )
12571 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12572 tm_p_include_list="${tm_p_include_list} config/$f"
12573 esac
12574 done
12575
12576 xm_file_list=
12577 xm_include_list=
12578 for f in $xm_file; do
12579 case $f in
12580 ansidecl.h )
12581 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12582 xm_include_list="${xm_include_list} $f"
12583 ;;
12584 auto-host.h )
12585 xm_file_list="${xm_file_list} $f"
12586 xm_include_list="${xm_include_list} $f"
12587 ;;
12588 * )
12589 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12590 xm_include_list="${xm_include_list} config/$f"
12591 ;;
12592 esac
12593 done
12594
12595 host_xm_file_list=
12596 host_xm_include_list=
12597 for f in $host_xm_file; do
12598 case $f in
12599 ansidecl.h )
12600 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12601 host_xm_include_list="${host_xm_include_list} $f"
12602 ;;
12603 auto-host.h )
12604 host_xm_file_list="${host_xm_file_list} $f"
12605 host_xm_include_list="${host_xm_include_list} $f"
12606 ;;
12607 * )
12608 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12609 host_xm_include_list="${host_xm_include_list} config/$f"
12610 ;;
12611 esac
12612 done
12613
12614 build_xm_file_list=
12615 for f in $build_xm_file; do
12616 case $f in
12617 ansidecl.h )
12618 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12619 build_xm_include_list="${build_xm_include_list} $f"
12620 ;;
12621 auto-build.h | auto-host.h )
12622 build_xm_file_list="${build_xm_file_list} $f"
12623 build_xm_include_list="${build_xm_include_list} $f"
12624 ;;
12625 * )
12626 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12627 build_xm_include_list="${build_xm_include_list} config/$f"
12628 ;;
12629 esac
12630 done
12631
12632 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12633 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12634 CROSS=
12635 ALL=all.internal
12636 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12637 if test x$host != x$target
12638 then
12639 CROSS="-DCROSS_COMPILE"
12640 ALL=all.cross
12641 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12642 case "$host","$target" in
12643 # Darwin crosses can use the host system's libraries and headers,
12644 # because of the fat library support. Of course, it must be the
12645 # same version of Darwin on both sides. Allow the user to
12646 # just say --target=foo-darwin without a version number to mean
12647 # "the version on this system".
12648 *-*-darwin*,*-*-darwin*)
12649 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12650 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12651 if test $hostos = $targetos -o $targetos = darwin ; then
12652 CROSS=
12653 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12654 with_headers=yes
12655 fi
12656 ;;
12657
12658 i?86-*-*,x86_64-*-* \
12659 | powerpc*-*-*,powerpc64*-*-*)
12660 CROSS="$CROSS -DNATIVE_CROSS" ;;
12661 esac
12662 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12663 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12664 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12665 fi
12666
12667 # If this is a cross-compiler that does not
12668 # have its own set of headers then define
12669 # inhibit_libc
12670
12671 # If this is using newlib, without having the headers available now,
12672 # then define inhibit_libc in LIBGCC2_CFLAGS.
12673 # This prevents libgcc2 from containing any code which requires libc
12674 # support.
12675 inhibit_libc=
12676 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12677 test x$with_newlib = xyes ; } &&
12678 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12679 inhibit_libc=-Dinhibit_libc
12680 fi
12681
12682
12683 # When building gcc with a cross-compiler, we need to adjust things so
12684 # that the generator programs are still built with the native compiler.
12685 # Also, we cannot run fixincludes or fix-header.
12686
12687 # These are the normal (build=host) settings:
12688 CC_FOR_BUILD='$(CC)'
12689 BUILD_CFLAGS='$(ALL_CFLAGS)'
12690 STMP_FIXINC=stmp-fixinc
12691
12692 # Possibly disable fixproto, on a per-target basis.
12693 case ${use_fixproto} in
12694 no)
12695 STMP_FIXPROTO=
12696 ;;
12697 yes)
12698 STMP_FIXPROTO=stmp-fixproto
12699 ;;
12700 esac
12701
12702
12703 # And these apply if build != host, or we are generating coverage data
12704 if test x$build != x$host || test "x$coverage_flags" != x
12705 then
12706 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12707
12708 if test "x$TARGET_SYSTEM_ROOT" = x; then
12709 if "x$STMP_FIXPROTO" != x ; then
12710 STMP_FIXPROTO=stmp-install-fixproto
12711 fi
12712 fi
12713 fi
12714
12715 # Expand extra_headers to include complete path.
12716 # This substitutes for lots of t-* files.
12717 extra_headers_list=
12718 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12719 for file in ${extra_headers} ; do
12720 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12721 done
12722
12723 # Define collect2 in Makefile.
12724 case $host_can_use_collect2 in
12725 no) collect2= ;;
12726 *) collect2='collect2$(exeext)' ;;
12727 esac
12728
12729
12730 # Add a definition of USE_COLLECT2 if system wants one.
12731 case $use_collect2 in
12732 no) use_collect2= ;;
12733 "") ;;
12734 *)
12735 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12736 xm_defines="${xm_defines} USE_COLLECT2"
12737 case $host_can_use_collect2 in
12738 no)
12739 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12740 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12741 { (exit 1); exit 1; }; }
12742 ;;
12743 esac
12744 ;;
12745 esac
12746
12747 # ---------------------------
12748 # Assembler & linker features
12749 # ---------------------------
12750
12751 # Identify the assembler which will work hand-in-glove with the newly
12752 # built GCC, so that we can examine its features. This is the assembler
12753 # which will be driven by the driver program.
12754 #
12755 # If build != host, and we aren't building gas in-tree, we identify a
12756 # build->target assembler and hope that it will have the same features
12757 # as the host->target assembler we'll be using.
12758 echo "$as_me:$LINENO: checking what assembler to use" >&5
12759 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12760 in_tree_gas=no
12761 gcc_cv_as=
12762 gcc_cv_gas_major_version=
12763 gcc_cv_gas_minor_version=
12764 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12765 if test -x "$DEFAULT_ASSEMBLER"; then
12766 gcc_cv_as="$DEFAULT_ASSEMBLER"
12767 elif test -x as$build_exeext; then
12768 # Build using assembler in the current directory.
12769 gcc_cv_as=./as$build_exeext
12770 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12771 && test -f ../gas/Makefile \
12772 && test x$build = x$host; then
12773 # Single tree build which includes gas. We want to prefer it
12774 # over whatever linker top-level may have detected, since
12775 # we'll use what we're building after installation anyway.
12776 in_tree_gas=yes
12777 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12778 for f in $gcc_cv_as_bfd_srcdir/configure \
12779 $gcc_cv_as_gas_srcdir/configure \
12780 $gcc_cv_as_gas_srcdir/configure.in \
12781 $gcc_cv_as_gas_srcdir/Makefile.in ; do
12782 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12783 if test x$gcc_cv_gas_version != x; then
12784 break
12785 fi
12786 done
12787 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12788 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12789 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12790 case $gcc_cv_gas_patch_version in
12791 "") gcc_cv_gas_patch_version="0" ;;
12792 esac
12793 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12794 + $gcc_cv_gas_minor_version \) \* 1000 \
12795 + $gcc_cv_gas_patch_version`
12796
12797 rm -f as$build_exeext
12798 $LN_S ../gas/as-new$build_exeext as$build_exeext 2>/dev/null
12799 in_tree_gas_is_elf=no
12800 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12801 || (grep 'obj_format = multi' ../gas/Makefile \
12802 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12803 then
12804 in_tree_gas_is_elf=yes
12805 fi
12806 elif test -x "$AS_FOR_TARGET"; then
12807 gcc_cv_as="$AS_FOR_TARGET"
12808 elif test -x "$AS" && test x$host = x$target; then
12809 gcc_cv_as="$AS"
12810 fi
12811
12812 if test "x$gcc_cv_as" = x; then
12813 # Search the same directories that the installed compiler will
12814 # search. Else we may find the wrong assembler and lose. If we
12815 # do not find a suitable assembler binary, then try the user's
12816 # path.
12817 #
12818 # Also note we have to check MD_EXEC_PREFIX before checking the
12819 # user's path. Unfortunately, there is no good way to get at the
12820 # value of MD_EXEC_PREFIX here. So we do a brute force search
12821 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12822 # to be fixed as part of the make/configure rewrite too.
12823
12824 if test "x$exec_prefix" = xNONE; then
12825 if test "x$prefix" = xNONE; then
12826 test_prefix=/usr/local
12827 else
12828 test_prefix=$prefix
12829 fi
12830 else
12831 test_prefix=$exec_prefix
12832 fi
12833
12834 # If the loop below does not find an assembler, then use whatever
12835 # one we can find in the users's path.
12836 # user's path.
12837 if test "x$program_prefix" != xNONE; then
12838 gcc_cv_as=${program_prefix}as$build_exeext
12839 else
12840 gcc_cv_as=`echo as | sed "${program_transform_name}"`$build_exeext
12841 fi
12842
12843 if test x$host = x$build; then
12844 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12845 $test_prefix/libexec/gcc/$target_noncanonical \
12846 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12847 /usr/lib/gcc/$target_noncanonical \
12848 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12849 $test_prefix/$target_noncanonical/bin"
12850 else
12851 test_dirs=
12852 fi
12853
12854 if test x$host = x$target; then
12855 test_dirs="$test_dirs \
12856 /usr/libexec \
12857 /usr/ccs/gcc \
12858 /usr/ccs/bin \
12859 /udk/usr/ccs/bin \
12860 /bsd43/usr/lib/cmplrs/cc \
12861 /usr/cross64/usr/bin \
12862 /usr/lib/cmplrs/cc \
12863 /sysv/usr/lib/cmplrs/cc \
12864 /svr4/usr/lib/cmplrs/cc \
12865 /usr/bin"
12866 fi
12867
12868 for dir in $test_dirs; do
12869 if test -x $dir/as$build_exeext; then
12870 gcc_cv_as=$dir/as$build_exeext
12871 break;
12872 fi
12873 done
12874 fi
12875 case $in_tree_gas in
12876 yes)
12877 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12878 echo "${ECHO_T}\"newly built gas\"" >&6
12879 ;;
12880 no)
12881 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12882 echo "${ECHO_T}$gcc_cv_as" >&6
12883 ;;
12884 esac
12885
12886 # Identify the linker which will work hand-in-glove with the newly
12887 # built GCC, so that we can examine its features. This is the linker
12888 # which will be driven by the driver program.
12889 #
12890 # If build != host, and we aren't building gas in-tree, we identify a
12891 # build->target linker and hope that it will have the same features
12892 # as the host->target linker we'll be using.
12893 echo "$as_me:$LINENO: checking what linker to use" >&5
12894 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12895 in_tree_ld=no
12896 gcc_cv_ld=
12897 gcc_cv_gld_major_version=
12898 gcc_cv_gld_minor_version=
12899 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12900 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12901 if test -x "$DEFAULT_LINKER"; then
12902 gcc_cv_ld="$DEFAULT_LINKER"
12903 elif test -x collect-ld$build_exeext; then
12904 # Build using linker in the current directory.
12905 gcc_cv_ld=./collect-ld$build_exeext
12906 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
12907 && test -f ../ld/Makefile \
12908 && test x$build = x$host; then
12909 # Single tree build which includes ld. We want to prefer it
12910 # over whatever linker top-level may have detected, since
12911 # we'll use what we're building after installation anyway.
12912 in_tree_ld=yes
12913 in_tree_ld_is_elf=no
12914 if (grep 'EMUL = .*elf' ../ld/Makefile \
12915 || grep 'EMUL = .*linux' ../ld/Makefile \
12916 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
12917 in_tree_ld_is_elf=yes
12918 fi
12919 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
12920 do
12921 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12922 if test x$gcc_cv_gld_version != x; then
12923 break
12924 fi
12925 done
12926 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12927 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12928 rm -f collect-ld$build_exeext
12929 $LN_S ../ld/ld-new$build_exeext collect-ld$build_exeext 2>/dev/null
12930 elif test -x "$LD_FOR_TARGET"; then
12931 gcc_cv_ld="$LD_FOR_TARGET"
12932 elif test -x "$LD" && test x$host = x$target; then
12933 gcc_cv_ld="$LD"
12934 fi
12935
12936 if test "x$gcc_cv_ld" = x; then
12937 # Search the same directories that the installed compiler will
12938 # search. Else we may find the wrong linker and lose. If we
12939 # do not find a suitable linker binary, then try the user's
12940 # path.
12941 #
12942 # Also note we have to check MD_EXEC_PREFIX before checking the
12943 # user's path. Unfortunately, there is no good way to get at the
12944 # value of MD_EXEC_PREFIX here. So we do a brute force search
12945 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12946 # to be fixed as part of the make/configure rewrite too.
12947
12948 if test "x$exec_prefix" = xNONE; then
12949 if test "x$prefix" = xNONE; then
12950 test_prefix=/usr/local
12951 else
12952 test_prefix=$prefix
12953 fi
12954 else
12955 test_prefix=$exec_prefix
12956 fi
12957
12958 # If the loop below does not find an linker, then use whatever
12959 # one we can find in the users's path.
12960 # user's path.
12961 if test "x$program_prefix" != xNONE; then
12962 gcc_cv_ld=${program_prefix}ld$build_exeext
12963 else
12964 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$build_exeext
12965 fi
12966
12967 if test x$host = x$build; then
12968 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12969 $test_prefix/libexec/gcc/$target_noncanonical \
12970 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12971 /usr/lib/gcc/$target_noncanonical \
12972 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12973 $test_prefix/$target_noncanonical/bin"
12974 else
12975 test_dirs=
12976 fi
12977
12978 if test x$host = x$target; then
12979 test_dirs="$test_dirs \
12980 /usr/libexec \
12981 /usr/ccs/gcc \
12982 /usr/ccs/bin \
12983 /udk/usr/ccs/bin \
12984 /bsd43/usr/lib/cmplrs/cc \
12985 /usr/cross64/usr/bin \
12986 /usr/lib/cmplrs/cc \
12987 /sysv/usr/lib/cmplrs/cc \
12988 /svr4/usr/lib/cmplrs/cc \
12989 /usr/bin"
12990 fi
12991
12992 for dir in $test_dirs; do
12993 if test -x $dir/ld$build_exeext; then
12994 gcc_cv_ld=$dir/ld$build_exeext
12995 break;
12996 fi
12997 done
12998 fi
12999 case $in_tree_ld in
13000 yes)
13001 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13002 echo "${ECHO_T}\"newly built ld\"" >&6
13003 ;;
13004 no)
13005 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13006 echo "${ECHO_T}$gcc_cv_ld" >&6
13007 ;;
13008 esac
13009
13010 # Figure out what nm we will be using.
13011 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13012 echo "$as_me:$LINENO: checking what nm to use" >&5
13013 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13014 in_tree_nm=no
13015 if test -x nm$build_exeext; then
13016 gcc_cv_nm=./nm$build_exeext
13017 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13018 && test -f ../binutils/Makefile; then
13019 # Single tree build which includes binutils.
13020 in_tree_nm=yes
13021 gcc_cv_nm=./nm$build_exeext
13022 rm -f nm$build_exeext
13023 $LN_S ../binutils/nm-new$build_exeext nm$build_exeext 2>/dev/null
13024 elif test "x$program_prefix" != xNONE; then
13025 gcc_cv_nm=${program_prefix}nm$build_exeext
13026 else
13027 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$build_exeext
13028 fi
13029 case $in_tree_nm in
13030 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13031 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13032 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13033 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13034 esac
13035
13036 # Figure out what objdump we will be using.
13037 echo "$as_me:$LINENO: checking what objdump to use" >&5
13038 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13039 in_tree_objdump=no
13040 if test -x objdump$build_exeext; then
13041 gcc_cv_objdump=./objdump$build_exeext
13042 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13043 && test -f ../binutils/Makefile; then
13044 # Single tree build which includes binutils.
13045 in_tree_objdump=yes
13046 gcc_cv_objdump=./objdump$build_exeext
13047 rm -f objdump$build_exeext
13048 $LN_S ../binutils/objdump$build_exeext objdump$build_exeext 2>/dev/null
13049 elif test "x$program_prefix" != xNONE; then
13050 gcc_cv_objdump=${program_prefix}objdump$build_exeext
13051 else
13052 gcc_cv_objdump=`echo objdump | \
13053 sed "${program_transform_name}"`$build_exeext
13054 fi
13055 case $in_tree_objdump in
13056 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13057 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13058 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13059 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13060 esac
13061
13062 # Figure out what assembler alignment features are present.
13063 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13064 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13065 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 gcc_cv_as_balign_and_p2align=no
13069 if test $in_tree_gas = yes; then
13070 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13071 then gcc_cv_as_balign_and_p2align=yes
13072 fi
13073 elif test x$gcc_cv_as != x; then
13074 echo '.balign 4
13075 .p2align 2' > conftest.s
13076 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }
13082 then
13083 gcc_cv_as_balign_and_p2align=yes
13084 else
13085 echo "configure: failed program was" >&5
13086 cat conftest.s >&5
13087 fi
13088 rm -f conftest.o conftest.s
13089 fi
13090 fi
13091 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13092 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13093 if test $gcc_cv_as_balign_and_p2align = yes; then
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13097 _ACEOF
13098
13099 fi
13100
13101 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13102 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13103 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 else
13106 gcc_cv_as_max_skip_p2align=no
13107 if test $in_tree_gas = yes; then
13108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13109 then gcc_cv_as_max_skip_p2align=yes
13110 fi
13111 elif test x$gcc_cv_as != x; then
13112 echo '.p2align 4,,7' > conftest.s
13113 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }
13119 then
13120 gcc_cv_as_max_skip_p2align=yes
13121 else
13122 echo "configure: failed program was" >&5
13123 cat conftest.s >&5
13124 fi
13125 rm -f conftest.o conftest.s
13126 fi
13127 fi
13128 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13129 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13130 if test $gcc_cv_as_max_skip_p2align = yes; then
13131
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13134 _ACEOF
13135
13136 fi
13137
13138 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13139 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13140 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143 gcc_cv_as_subsection_m1=no
13144 if test $in_tree_gas = yes; then
13145 if test $in_tree_gas_is_elf = yes \
13146 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13147 then gcc_cv_as_subsection_m1=yes
13148 fi
13149 elif test x$gcc_cv_as != x; then
13150 echo 'conftest_label1: .word 0
13151 .subsection -1
13152 conftest_label2: .word 0
13153 .previous' > conftest.s
13154 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }
13160 then
13161 if test x$gcc_cv_nm != x; then
13162 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13163 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13164 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13165 then :
13166 else gcc_cv_as_subsection_m1=yes
13167 fi
13168 rm -f conftest.nm1 conftest.nm2
13169 fi
13170 else
13171 echo "configure: failed program was" >&5
13172 cat conftest.s >&5
13173 fi
13174 rm -f conftest.o conftest.s
13175 fi
13176 fi
13177 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13178 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13179 if test $gcc_cv_as_subsection_m1 = yes; then
13180
13181 cat >>confdefs.h <<\_ACEOF
13182 #define HAVE_GAS_SUBSECTION_ORDERING 1
13183 _ACEOF
13184
13185 fi
13186
13187 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13188 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13189 if test "${gcc_cv_as_weak+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13192 gcc_cv_as_weak=no
13193 if test $in_tree_gas = yes; then
13194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13195 then gcc_cv_as_weak=yes
13196 fi
13197 elif test x$gcc_cv_as != x; then
13198 echo ' .weak foobar' > conftest.s
13199 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }
13205 then
13206 gcc_cv_as_weak=yes
13207 else
13208 echo "configure: failed program was" >&5
13209 cat conftest.s >&5
13210 fi
13211 rm -f conftest.o conftest.s
13212 fi
13213 fi
13214 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13215 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13216 if test $gcc_cv_as_weak = yes; then
13217
13218 cat >>confdefs.h <<\_ACEOF
13219 #define HAVE_GAS_WEAK 1
13220 _ACEOF
13221
13222 fi
13223
13224 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13225 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13226 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229 gcc_cv_as_nsubspa_comdat=no
13230 if test $in_tree_gas = yes; then
13231 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13232 then gcc_cv_as_nsubspa_comdat=yes
13233 fi
13234 elif test x$gcc_cv_as != x; then
13235 echo ' .SPACE $TEXT$
13236 .NSUBSPA $CODE$,COMDAT' > conftest.s
13237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }
13243 then
13244 gcc_cv_as_nsubspa_comdat=yes
13245 else
13246 echo "configure: failed program was" >&5
13247 cat conftest.s >&5
13248 fi
13249 rm -f conftest.o conftest.s
13250 fi
13251 fi
13252 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13253 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13254 if test $gcc_cv_as_nsubspa_comdat = yes; then
13255
13256 cat >>confdefs.h <<\_ACEOF
13257 #define HAVE_GAS_NSUBSPA_COMDAT 1
13258 _ACEOF
13259
13260 fi
13261
13262 # .hidden needs to be supported in both the assembler and the linker,
13263 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13264 # This is irritatingly difficult to feature test for; we have to check the
13265 # date string after the version number. If we've got an in-tree
13266 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13267 # to be safe.
13268 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13269 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13270 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13271 if test "${gcc_cv_as_hidden+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 gcc_cv_as_hidden=no
13275 if test $in_tree_gas = yes; then
13276 if test $in_tree_gas_is_elf = yes \
13277 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13278 then gcc_cv_as_hidden=yes
13279 fi
13280 elif test x$gcc_cv_as != x; then
13281 echo ' .hidden foobar
13282 foobar:' > conftest.s
13283 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13286 ac_status=$?
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }
13289 then
13290 gcc_cv_as_hidden=yes
13291 else
13292 echo "configure: failed program was" >&5
13293 cat conftest.s >&5
13294 fi
13295 rm -f conftest.o conftest.s
13296 fi
13297 fi
13298 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13299 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13300
13301
13302 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13303 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13304 if test "${gcc_cv_ld_hidden+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 if test $in_tree_ld = yes ; then
13308 gcc_cv_ld_hidden=no
13309 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
13310 && test $in_tree_ld_is_elf = yes; then
13311 gcc_cv_ld_hidden=yes
13312 fi
13313 else
13314 gcc_cv_ld_hidden=yes
13315 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13316 if echo "$ld_ver" | grep GNU > /dev/null; then
13317 ld_vers=`echo $ld_ver | sed -n \
13318 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13319 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13320 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13321 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13322 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13323 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13324 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'`
13325 if test 0"$ld_date" -lt 20020404; then
13326 if test -n "$ld_date"; then
13327 # If there was date string, but was earlier than 2002-04-04, fail
13328 gcc_cv_ld_hidden=no
13329 elif test -z "$ld_vers"; then
13330 # If there was no date string nor ld version number, something is wrong
13331 gcc_cv_ld_hidden=no
13332 else
13333 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13334 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13335 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13336 test -z "$ld_vers_patch" && ld_vers_patch=0
13337 if test "$ld_vers_major" -lt 2; then
13338 gcc_cv_ld_hidden=no
13339 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13340 gcc_cv_ld_hidden="no"
13341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13342 gcc_cv_ld_hidden=no
13343 fi
13344 fi
13345 fi
13346 else
13347 case "${target}" in
13348 hppa64*-*-hpux* | ia64*-*-hpux*)
13349 gcc_cv_ld_hidden=yes
13350 ;;
13351 *)
13352 gcc_cv_ld_hidden=no
13353 ;;
13354 esac
13355 fi
13356 fi
13357 fi
13358 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13359 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13360 libgcc_visibility=no
13361
13362 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13363 libgcc_visibility=yes
13364
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_GAS_HIDDEN 1
13367 _ACEOF
13368
13369 fi
13370
13371 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13372 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13373 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13374 if test "${gcc_cv_as_leb128+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 else
13377 gcc_cv_as_leb128=no
13378 if test $in_tree_gas = yes; then
13379 if test $in_tree_gas_is_elf = yes \
13380 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13381 then gcc_cv_as_leb128=yes
13382 fi
13383 elif test x$gcc_cv_as != x; then
13384 echo ' .data
13385 .uleb128 L2 - L1
13386 L1:
13387 .uleb128 1280
13388 .sleb128 -1010
13389 L2:' > conftest.s
13390 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; }
13396 then
13397 # GAS versions before 2.11 do not support uleb128,
13398 # despite appearing to.
13399 # ??? There exists an elf-specific test that will crash
13400 # the assembler. Perhaps it's better to figure out whether
13401 # arbitrary sections are supported and try the test.
13402 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13403 if echo "$as_ver" | grep GNU > /dev/null; then
13404 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13405 as_major=`echo $as_ver | sed 's/\..*//'`
13406 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13407 if test $as_major -eq 2 && test $as_minor -lt 11
13408 then :
13409 else gcc_cv_as_leb128=yes
13410 fi
13411 fi
13412 else
13413 echo "configure: failed program was" >&5
13414 cat conftest.s >&5
13415 fi
13416 rm -f conftest.o conftest.s
13417 fi
13418 fi
13419 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13420 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13421 if test $gcc_cv_as_leb128 = yes; then
13422
13423 cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_AS_LEB128 1
13425 _ACEOF
13426
13427 fi
13428
13429 # GAS versions up to and including 2.11.0 may mis-optimize
13430 # .eh_frame data.
13431 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13432 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13433 if test "${gcc_cv_as_eh_frame+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436 gcc_cv_as_eh_frame=no
13437 if test $in_tree_gas = yes; then
13438 if test $in_tree_gas_is_elf = yes \
13439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13440 then gcc_cv_as_eh_frame=yes
13441 fi
13442 elif test x$gcc_cv_as != x; then
13443 echo ' .text
13444 .LFB1:
13445 .4byte 0
13446 .L1:
13447 .4byte 0
13448 .LFE1:
13449 .section .eh_frame,"aw",@progbits
13450 __FRAME_BEGIN__:
13451 .4byte .LECIE1-.LSCIE1
13452 .LSCIE1:
13453 .4byte 0x0
13454 .byte 0x1
13455 .ascii "z\0"
13456 .byte 0x1
13457 .byte 0x78
13458 .byte 0x1a
13459 .byte 0x0
13460 .byte 0x4
13461 .4byte 1
13462 .p2align 1
13463 .LECIE1:
13464 .LSFDE1:
13465 .4byte .LEFDE1-.LASFDE1
13466 .LASFDE1:
13467 .4byte .LASFDE1-__FRAME_BEGIN__
13468 .4byte .LFB1
13469 .4byte .LFE1-.LFB1
13470 .byte 0x4
13471 .4byte .LFE1-.LFB1
13472 .byte 0x4
13473 .4byte .L1-.LFB1
13474 .LEFDE1:' > conftest.s
13475 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }
13481 then
13482 cat > conftest.lit <<EOF
13483 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13484 0010 01000000 12000000 18000000 00000000 ................
13485 0020 08000000 04080000 0044 .........D
13486 EOF
13487 cat > conftest.big <<EOF
13488 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13489 0010 00000001 00000012 00000018 00000000 ................
13490 0020 00000008 04000000 0844 .........D
13491 EOF
13492 # If the assembler didn't choke, and we can objdump,
13493 # and we got the correct data, then succeed.
13494 if test x$gcc_cv_objdump != x \
13495 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13496 | tail -3 > conftest.got \
13497 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13498 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13499 then
13500 gcc_cv_as_eh_frame=yes
13501 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
13507 gcc_cv_as_eh_frame=buggy
13508 else
13509 # Uh oh, what do we do now?
13510 gcc_cv_as_eh_frame=no
13511 fi
13512 else
13513 echo "configure: failed program was" >&5
13514 cat conftest.s >&5
13515 fi
13516 rm -f conftest.o conftest.s
13517 fi
13518 fi
13519 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13520 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13521
13522
13523 if test $gcc_cv_as_eh_frame = buggy; then
13524
13525 cat >>confdefs.h <<\_ACEOF
13526 #define USE_AS_TRADITIONAL_FORMAT 1
13527 _ACEOF
13528
13529 fi
13530
13531 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13532 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13533 if test "${gcc_cv_as_shf_merge+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536 gcc_cv_as_shf_merge=no
13537 if test $in_tree_gas = yes; then
13538 if test $in_tree_gas_is_elf = yes \
13539 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13540 then gcc_cv_as_shf_merge=yes
13541 fi
13542 elif test x$gcc_cv_as != x; then
13543 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13544 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }
13550 then
13551 gcc_cv_as_shf_merge=yes
13552 else
13553 echo "configure: failed program was" >&5
13554 cat conftest.s >&5
13555 fi
13556 rm -f conftest.o conftest.s
13557 fi
13558 fi
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13560 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13561
13562 if test $gcc_cv_as_shf_merge = no; then
13563 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13564 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13565 if test "${gcc_cv_as_shf_merge+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 else
13568 gcc_cv_as_shf_merge=no
13569 if test $in_tree_gas = yes; then
13570 if test $in_tree_gas_is_elf = yes \
13571 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13572 then gcc_cv_as_shf_merge=yes
13573 fi
13574 elif test x$gcc_cv_as != x; then
13575 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13576 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13579 ac_status=$?
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }
13582 then
13583 gcc_cv_as_shf_merge=yes
13584 else
13585 echo "configure: failed program was" >&5
13586 cat conftest.s >&5
13587 fi
13588 rm -f conftest.o conftest.s
13589 fi
13590 fi
13591 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13592 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13593
13594 fi
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13598 _ACEOF
13599
13600
13601 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13602 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13603 if test "${gcc_cv_as_comdat_group+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 gcc_cv_as_comdat_group=no
13607 if test $in_tree_gas = yes; then
13608 if test $in_tree_gas_is_elf = yes \
13609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13610 then gcc_cv_as_comdat_group=yes
13611 fi
13612 elif test x$gcc_cv_as != x; then
13613 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13614 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }
13620 then
13621 gcc_cv_as_comdat_group=yes
13622 else
13623 echo "configure: failed program was" >&5
13624 cat conftest.s >&5
13625 fi
13626 rm -f conftest.o conftest.s
13627 fi
13628 fi
13629 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13630 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13631
13632 if test $gcc_cv_as_comdat_group = yes; then
13633 gcc_cv_as_comdat_group_percent=no
13634 else
13635 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13636 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13637 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640 gcc_cv_as_comdat_group_percent=no
13641 if test $in_tree_gas = yes; then
13642 if test $in_tree_gas_is_elf = yes \
13643 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13644 then gcc_cv_as_comdat_group_percent=yes
13645 fi
13646 elif test x$gcc_cv_as != x; then
13647 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13648 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }
13654 then
13655 gcc_cv_as_comdat_group_percent=yes
13656 else
13657 echo "configure: failed program was" >&5
13658 cat conftest.s >&5
13659 fi
13660 rm -f conftest.o conftest.s
13661 fi
13662 fi
13663 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13664 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13665
13666 fi
13667
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_GAS_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13670 _ACEOF
13671
13672
13673 # Thread-local storage - the check is heavily parametrized.
13674 conftest_s=
13675 tls_first_major=
13676 tls_first_minor=
13677 tls_as_opt=
13678 case "$target" in
13679 alpha*-*-*)
13680 conftest_s='
13681 .section ".tdata","awT",@progbits
13682 foo: .long 25
13683 .text
13684 ldq $27,__tls_get_addr($29) !literal!1
13685 lda $16,foo($29) !tlsgd!1
13686 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13687 ldq $27,__tls_get_addr($29) !literal!2
13688 lda $16,foo($29) !tlsldm!2
13689 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13690 ldq $1,foo($29) !gotdtprel
13691 ldah $2,foo($29) !dtprelhi
13692 lda $3,foo($2) !dtprello
13693 lda $4,foo($29) !dtprel
13694 ldq $1,foo($29) !gottprel
13695 ldah $2,foo($29) !tprelhi
13696 lda $3,foo($2) !tprello
13697 lda $4,foo($29) !tprel'
13698 tls_first_major=2
13699 tls_first_minor=13
13700 tls_as_opt=--fatal-warnings
13701 ;;
13702 frv*-*-*)
13703 conftest_s='
13704 .section ".tdata","awT",@progbits
13705 x: .long 25
13706 .text
13707 call #gettlsoff(x)'
13708 tls_first_major=2
13709 tls_first_minor=14
13710 ;;
13711 i[34567]86-*-*)
13712 conftest_s='
13713 .section ".tdata","awT",@progbits
13714 foo: .long 25
13715 .text
13716 movl %gs:0, %eax
13717 leal foo@TLSGD(,%ebx,1), %eax
13718 leal foo@TLSLDM(%ebx), %eax
13719 leal foo@DTPOFF(%eax), %edx
13720 movl foo@GOTTPOFF(%ebx), %eax
13721 subl foo@GOTTPOFF(%ebx), %eax
13722 addl foo@GOTNTPOFF(%ebx), %eax
13723 movl foo@INDNTPOFF, %eax
13724 movl $foo@TPOFF, %eax
13725 subl $foo@TPOFF, %eax
13726 leal foo@NTPOFF(%ecx), %eax'
13727 tls_first_major=2
13728 tls_first_minor=14
13729 tls_as_opt=--fatal-warnings
13730 ;;
13731 x86_64-*-*)
13732 conftest_s='
13733 .section ".tdata","awT",@progbits
13734 foo: .long 25
13735 .text
13736 movq %fs:0, %rax
13737 leaq foo@TLSGD(%rip), %rdi
13738 leaq foo@TLSLD(%rip), %rdi
13739 leaq foo@DTPOFF(%rax), %rdx
13740 movq foo@GOTTPOFF(%rip), %rax
13741 movq $foo@TPOFF, %rax'
13742 tls_first_major=2
13743 tls_first_minor=14
13744 tls_as_opt=--fatal-warnings
13745 ;;
13746 ia64-*-*)
13747 conftest_s='
13748 .section ".tdata","awT",@progbits
13749 foo: data8 25
13750 .text
13751 addl r16 = @ltoff(@dtpmod(foo#)), gp
13752 addl r17 = @ltoff(@dtprel(foo#)), gp
13753 addl r18 = @ltoff(@tprel(foo#)), gp
13754 addl r19 = @dtprel(foo#), gp
13755 adds r21 = @dtprel(foo#), r13
13756 movl r23 = @dtprel(foo#)
13757 addl r20 = @tprel(foo#), gp
13758 adds r22 = @tprel(foo#), r13
13759 movl r24 = @tprel(foo#)'
13760 tls_first_major=2
13761 tls_first_minor=13
13762 tls_as_opt=--fatal-warnings
13763 ;;
13764 powerpc-*-*)
13765 conftest_s='
13766 .section ".tdata","awT",@progbits
13767 .align 2
13768 ld0: .space 4
13769 ld1: .space 4
13770 x1: .space 4
13771 x2: .space 4
13772 x3: .space 4
13773 .text
13774 addi 3,31,ld0@got@tlsgd
13775 bl __tls_get_addr
13776 addi 3,31,x1@got@tlsld
13777 bl __tls_get_addr
13778 addi 9,3,x1@dtprel
13779 addis 9,3,x2@dtprel@ha
13780 addi 9,9,x2@dtprel@l
13781 lwz 9,x3@got@tprel(31)
13782 add 9,9,x@tls
13783 addi 9,2,x1@tprel
13784 addis 9,2,x2@tprel@ha
13785 addi 9,9,x2@tprel@l'
13786 tls_first_major=2
13787 tls_first_minor=14
13788 tls_as_opt="-a32 --fatal-warnings"
13789 ;;
13790 powerpc64-*-*)
13791 conftest_s='
13792 .section ".tdata","awT",@progbits
13793 .align 3
13794 ld0: .space 8
13795 ld1: .space 8
13796 x1: .space 8
13797 x2: .space 8
13798 x3: .space 8
13799 .text
13800 addi 3,2,ld0@got@tlsgd
13801 bl .__tls_get_addr
13802 nop
13803 addi 3,2,ld1@toc
13804 bl .__tls_get_addr
13805 nop
13806 addi 3,2,x1@got@tlsld
13807 bl .__tls_get_addr
13808 nop
13809 addi 9,3,x1@dtprel
13810 bl .__tls_get_addr
13811 nop
13812 addis 9,3,x2@dtprel@ha
13813 addi 9,9,x2@dtprel@l
13814 bl .__tls_get_addr
13815 nop
13816 ld 9,x3@got@dtprel(2)
13817 add 9,9,3
13818 bl .__tls_get_addr
13819 nop'
13820 tls_first_major=2
13821 tls_first_minor=14
13822 tls_as_opt="-a64 --fatal-warnings"
13823 ;;
13824 s390-*-*)
13825 conftest_s='
13826 .section ".tdata","awT",@progbits
13827 foo: .long 25
13828 .text
13829 .long foo@TLSGD
13830 .long foo@TLSLDM
13831 .long foo@DTPOFF
13832 .long foo@NTPOFF
13833 .long foo@GOTNTPOFF
13834 .long foo@INDNTPOFF
13835 l %r1,foo@GOTNTPOFF(%r12)
13836 l %r1,0(%r1):tls_load:foo
13837 bas %r14,0(%r1,%r13):tls_gdcall:foo
13838 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13839 tls_first_major=2
13840 tls_first_minor=14
13841 tls_as_opt="-m31 --fatal-warnings"
13842 ;;
13843 s390x-*-*)
13844 conftest_s='
13845 .section ".tdata","awT",@progbits
13846 foo: .long 25
13847 .text
13848 .quad foo@TLSGD
13849 .quad foo@TLSLDM
13850 .quad foo@DTPOFF
13851 .quad foo@NTPOFF
13852 .quad foo@GOTNTPOFF
13853 lg %r1,foo@GOTNTPOFF(%r12)
13854 larl %r1,foo@INDNTPOFF
13855 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13856 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13857 tls_first_major=2
13858 tls_first_minor=14
13859 tls_as_opt="-m64 -Aesame --fatal-warnings"
13860 ;;
13861 sh-*-* | sh[34]-*-*)
13862 conftest_s='
13863 .section ".tdata","awT",@progbits
13864 foo: .long 25
13865 .text
13866 .long foo@TLSGD
13867 .long foo@TLSLDM
13868 .long foo@DTPOFF
13869 .long foo@GOTTPOFF
13870 .long foo@TPOFF'
13871 tls_first_major=2
13872 tls_first_minor=13
13873 tls_as_opt=--fatal-warnings
13874 ;;
13875 sparc*-*-*)
13876 case "$target" in
13877 sparc*-sun-solaris2.*)
13878 on_solaris=yes
13879 ;;
13880 *)
13881 on_solaris=no
13882 ;;
13883 esac
13884 if test x$on_solaris = xyes && test x$gas_flag = xno; then
13885 conftest_s='
13886 .section ".tdata",#alloc,#write,#tls
13887 foo: .long 25
13888 .text
13889 sethi %tgd_hi22(foo), %o0
13890 add %o0, %tgd_lo10(foo), %o1
13891 add %l7, %o1, %o0, %tgd_add(foo)
13892 call __tls_get_addr, %tgd_call(foo)
13893 sethi %tldm_hi22(foo), %l1
13894 add %l1, %tldm_lo10(foo), %l2
13895 add %l7, %l2, %o0, %tldm_add(foo)
13896 call __tls_get_addr, %tldm_call(foo)
13897 sethi %tldo_hix22(foo), %l3
13898 xor %l3, %tldo_lox10(foo), %l4
13899 add %o0, %l4, %l5, %tldo_add(foo)
13900 sethi %tie_hi22(foo), %o3
13901 add %o3, %tie_lo10(foo), %o3
13902 ld [%l7 + %o3], %o2, %tie_ld(foo)
13903 add %g7, %o2, %o4, %tie_add(foo)
13904 sethi %tle_hix22(foo), %l1
13905 xor %l1, %tle_lox10(foo), %o5
13906 ld [%g7 + %o5], %o1'
13907 tls_first_major=0
13908 tls_first_minor=0
13909 else
13910 conftest_s='
13911 .section ".tdata","awT",@progbits
13912 foo: .long 25
13913 .text
13914 sethi %tgd_hi22(foo), %o0
13915 add %o0, %tgd_lo10(foo), %o1
13916 add %l7, %o1, %o0, %tgd_add(foo)
13917 call __tls_get_addr, %tgd_call(foo)
13918 sethi %tldm_hi22(foo), %l1
13919 add %l1, %tldm_lo10(foo), %l2
13920 add %l7, %l2, %o0, %tldm_add(foo)
13921 call __tls_get_addr, %tldm_call(foo)
13922 sethi %tldo_hix22(foo), %l3
13923 xor %l3, %tldo_lox10(foo), %l4
13924 add %o0, %l4, %l5, %tldo_add(foo)
13925 sethi %tie_hi22(foo), %o3
13926 add %o3, %tie_lo10(foo), %o3
13927 ld [%l7 + %o3], %o2, %tie_ld(foo)
13928 add %g7, %o2, %o4, %tie_add(foo)
13929 sethi %tle_hix22(foo), %l1
13930 xor %l1, %tle_lox10(foo), %o5
13931 ld [%g7 + %o5], %o1'
13932 tls_first_major=2
13933 tls_first_minor=14
13934 tls_as_opt="-32 --fatal-warnings"
13935 fi
13936 ;;
13937 esac
13938 if test -z "$tls_first_major"; then
13939 : # If we don't have a check, assume no support.
13940 else
13941 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
13942 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
13943 if test "${gcc_cv_as_tls+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13945 else
13946 gcc_cv_as_tls=no
13947 if test $in_tree_gas = yes; then
13948 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
13949 then gcc_cv_as_tls=yes
13950 fi
13951 elif test x$gcc_cv_as != x; then
13952 echo "$conftest_s" > conftest.s
13953 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }
13959 then
13960 gcc_cv_as_tls=yes
13961 else
13962 echo "configure: failed program was" >&5
13963 cat conftest.s >&5
13964 fi
13965 rm -f conftest.o conftest.s
13966 fi
13967 fi
13968 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
13969 echo "${ECHO_T}$gcc_cv_as_tls" >&6
13970 if test $gcc_cv_as_tls = yes; then
13971
13972 cat >>confdefs.h <<\_ACEOF
13973 #define HAVE_AS_TLS 1
13974 _ACEOF
13975
13976 fi
13977 fi
13978
13979 # Target-specific assembler checks.
13980
13981 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
13982 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
13983 gcc_cv_ld_static_dynamic=no
13984 if test $in_tree_ld = yes ; then
13985 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
13986 gcc_cv_ld_static_dynamic=yes
13987 fi
13988 elif test x$gcc_cv_ld != x; then
13989 # Check if linker supports -Bstatic/-Bdynamic option
13990 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
13991 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
13992 gcc_cv_ld_static_dynamic=yes
13993 fi
13994 fi
13995 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
13996
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_LD_STATIC_DYNAMIC 1
13999 _ACEOF
14000
14001 fi
14002 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14003 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14004
14005 if test x"$demangler_in_ld" = xyes; then
14006 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14007 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14008 gcc_cv_ld_demangle=no
14009 if test $in_tree_ld = yes; then
14010 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14011 gcc_cv_ld_demangle=yes
14012 fi
14013 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14014 # Check if the GNU linker supports --demangle option
14015 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14016 gcc_cv_ld_demangle=yes
14017 fi
14018 fi
14019 if test x"$gcc_cv_ld_demangle" = xyes; then
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_LD_DEMANGLE 1
14023 _ACEOF
14024
14025 fi
14026 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14027 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14028 fi
14029
14030 case "$target" in
14031 # All TARGET_ABI_OSF targets.
14032 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14033 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14034 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14035 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14036 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038 gcc_cv_as_alpha_explicit_relocs=no
14039 if test $in_tree_gas = yes; then
14040 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14041 then gcc_cv_as_alpha_explicit_relocs=yes
14042 fi
14043 elif test x$gcc_cv_as != x; then
14044 echo ' .set nomacro
14045 .text
14046 extbl $3, $2, $3 !lituse_bytoff!1
14047 ldq $2, a($29) !literal!1
14048 ldq $4, b($29) !literal!2
14049 ldq_u $3, 0($2) !lituse_base!1
14050 ldq $27, f($29) !literal!5
14051 jsr $26, ($27), f !lituse_jsr!5
14052 ldah $29, 0($26) !gpdisp!3
14053 lda $0, c($29) !gprel
14054 ldah $1, d($29) !gprelhigh
14055 lda $1, d($1) !gprellow
14056 lda $29, 0($29) !gpdisp!3' > conftest.s
14057 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }
14063 then
14064 gcc_cv_as_alpha_explicit_relocs=yes
14065 else
14066 echo "configure: failed program was" >&5
14067 cat conftest.s >&5
14068 fi
14069 rm -f conftest.o conftest.s
14070 fi
14071 fi
14072 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14073 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14074 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_AS_EXPLICIT_RELOCS 1
14078 _ACEOF
14079
14080 fi
14081 ;;
14082
14083 cris-*-*)
14084 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14085 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14086 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 else
14089 gcc_cv_as_cris_no_mul_bug=no
14090 if test $in_tree_gas = yes; then
14091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14092 then gcc_cv_as_cris_no_mul_bug=yes
14093 fi
14094 elif test x$gcc_cv_as != x; then
14095 echo '.text' > conftest.s
14096 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }
14102 then
14103 gcc_cv_as_cris_no_mul_bug=yes
14104 else
14105 echo "configure: failed program was" >&5
14106 cat conftest.s >&5
14107 fi
14108 rm -f conftest.o conftest.s
14109 fi
14110 fi
14111 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14112 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14113 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14117 _ACEOF
14118
14119 fi
14120 ;;
14121
14122 sparc*-*-*)
14123 echo "$as_me:$LINENO: checking assembler for .register" >&5
14124 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14125 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128 gcc_cv_as_sparc_register_op=no
14129 if test x$gcc_cv_as != x; then
14130 echo '.register %g2, #scratch' > conftest.s
14131 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }
14137 then
14138 gcc_cv_as_sparc_register_op=yes
14139 else
14140 echo "configure: failed program was" >&5
14141 cat conftest.s >&5
14142 fi
14143 rm -f conftest.o conftest.s
14144 fi
14145 fi
14146 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14147 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14148 if test $gcc_cv_as_sparc_register_op = yes; then
14149
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14152 _ACEOF
14153
14154 fi
14155
14156 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14157 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14158 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 gcc_cv_as_sparc_relax=no
14162 if test x$gcc_cv_as != x; then
14163 echo '.text' > conftest.s
14164 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }
14170 then
14171 gcc_cv_as_sparc_relax=yes
14172 else
14173 echo "configure: failed program was" >&5
14174 cat conftest.s >&5
14175 fi
14176 rm -f conftest.o conftest.s
14177 fi
14178 fi
14179 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14180 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14181 if test $gcc_cv_as_sparc_relax = yes; then
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_AS_RELAX_OPTION 1
14185 _ACEOF
14186
14187 fi
14188
14189 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14190 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14191 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194 gcc_cv_as_sparc_ua_pcrel=no
14195 if test x$gcc_cv_as != x; then
14196 echo '.text
14197 foo:
14198 nop
14199 .data
14200 .align 4
14201 .byte 0
14202 .uaword %r_disp32(foo)' > conftest.s
14203 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }
14209 then
14210 if test x$gcc_cv_ld != x \
14211 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14212 gcc_cv_as_sparc_ua_pcrel=yes
14213 fi
14214 rm -f conftest
14215 else
14216 echo "configure: failed program was" >&5
14217 cat conftest.s >&5
14218 fi
14219 rm -f conftest.o conftest.s
14220 fi
14221 fi
14222 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14223 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14224 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_AS_SPARC_UA_PCREL 1
14228 _ACEOF
14229
14230
14231 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14232 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14233 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 else
14236 gcc_cv_as_sparc_ua_pcrel_hidden=no
14237 if test x$gcc_cv_as != x; then
14238 echo '.data
14239 .align 4
14240 .byte 0x31
14241 .uaword %r_disp32(foo)
14242 .byte 0x32, 0x33, 0x34
14243 .global foo
14244 .hidden foo
14245 foo:
14246 .skip 4' > conftest.s
14247 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }
14253 then
14254 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14255 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14256 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14257 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14258 if $gcc_cv_objdump -R conftest 2> /dev/null \
14259 | grep 'DISP32' > /dev/null 2>&1; then
14260 :
14261 else
14262 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14263 fi
14264 fi
14265 rm -f conftest
14266 else
14267 echo "configure: failed program was" >&5
14268 cat conftest.s >&5
14269 fi
14270 rm -f conftest.o conftest.s
14271 fi
14272 fi
14273 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14274 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14275 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14276
14277 cat >>confdefs.h <<\_ACEOF
14278 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14279 _ACEOF
14280
14281 fi
14282
14283 fi # unaligned pcrel relocs
14284
14285 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14286 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14287 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290 gcc_cv_as_sparc_offsetable_lo10=no
14291 if test x$gcc_cv_as != x; then
14292 echo '.text
14293 or %g1, %lo(ab) + 12, %g1
14294 or %g1, %lo(ab + 12), %g1' > conftest.s
14295 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }
14301 then
14302 if test x$gcc_cv_objdump != x \
14303 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14304 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14305 gcc_cv_as_sparc_offsetable_lo10=yes
14306 fi
14307 else
14308 echo "configure: failed program was" >&5
14309 cat conftest.s >&5
14310 fi
14311 rm -f conftest.o conftest.s
14312 fi
14313 fi
14314 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14315 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14316 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14317
14318 cat >>confdefs.h <<\_ACEOF
14319 #define HAVE_AS_OFFSETABLE_LO10 1
14320 _ACEOF
14321
14322 fi
14323 ;;
14324
14325 i[34567]86-*-* | x86_64-*-*)
14326 case $target_os in
14327 cygwin* | pe | mingw32*)
14328 # Used for DWARF 2 in PE
14329 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14330 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14331 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 gcc_cv_as_ix86_pe_secrel32=no
14335 if test $in_tree_gas = yes; then
14336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14337 then gcc_cv_as_ix86_pe_secrel32=yes
14338 fi
14339 elif test x$gcc_cv_as != x; then
14340 echo '.text
14341 foo: nop
14342 .data
14343 .secrel32 foo' > conftest.s
14344 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }
14350 then
14351 if test x$gcc_cv_ld != x \
14352 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14353 gcc_cv_as_ix86_pe_secrel32=yes
14354 fi
14355 rm -f conftest
14356 else
14357 echo "configure: failed program was" >&5
14358 cat conftest.s >&5
14359 fi
14360 rm -f conftest.o conftest.s
14361 fi
14362 fi
14363 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14364 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14365 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_GAS_PE_SECREL32_RELOC 1
14369 _ACEOF
14370
14371 fi
14372 ;;
14373 esac
14374
14375 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14376 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14377 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380 gcc_cv_as_ix86_filds_fists=no
14381 if test $in_tree_gas = yes; then
14382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14383 then gcc_cv_as_ix86_filds_fists=yes
14384 fi
14385 elif test x$gcc_cv_as != x; then
14386 echo 'filds mem; fists mem' > conftest.s
14387 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }
14393 then
14394 gcc_cv_as_ix86_filds_fists=yes
14395 else
14396 echo "configure: failed program was" >&5
14397 cat conftest.s >&5
14398 fi
14399 rm -f conftest.o conftest.s
14400 fi
14401 fi
14402 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14403 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14404 if test $gcc_cv_as_ix86_filds_fists = yes; then
14405
14406 cat >>confdefs.h <<\_ACEOF
14407 #define HAVE_GAS_FILDS_FISTS 1
14408 _ACEOF
14409
14410 fi
14411
14412 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14413 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14414 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 else
14417 gcc_cv_as_ix86_cmov_sun_syntax=no
14418 if test x$gcc_cv_as != x; then
14419 echo 'cmovl.l %edx, %eax' > conftest.s
14420 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; }
14426 then
14427 gcc_cv_as_ix86_cmov_sun_syntax=yes
14428 else
14429 echo "configure: failed program was" >&5
14430 cat conftest.s >&5
14431 fi
14432 rm -f conftest.o conftest.s
14433 fi
14434 fi
14435 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14436 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14437 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14438
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14441 _ACEOF
14442
14443 fi
14444
14445 # This one is used unconditionally by i386.[ch]; it is to be defined
14446 # to 1 if the feature is present, 0 otherwise.
14447 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14448 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14449 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 else
14452 gcc_cv_as_ix86_gotoff_in_data=no
14453 if test $in_tree_gas = yes; then
14454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14455 then gcc_cv_as_ix86_gotoff_in_data=yes
14456 fi
14457 elif test x$gcc_cv_as != x; then
14458 echo ' .text
14459 .L0:
14460 nop
14461 .data
14462 .long .L0@GOTOFF' > conftest.s
14463 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14466 ac_status=$?
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }
14469 then
14470 gcc_cv_as_ix86_gotoff_in_data=yes
14471 else
14472 echo "configure: failed program was" >&5
14473 cat conftest.s >&5
14474 fi
14475 rm -f conftest.o conftest.s
14476 fi
14477 fi
14478 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14479 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14480
14481
14482 cat >>confdefs.h <<_ACEOF
14483 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14484 _ACEOF
14485
14486 ;;
14487
14488 ia64*-*-*)
14489 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14490 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14491 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14495 if test $in_tree_gas = yes; then
14496 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14497 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14498 fi
14499 elif test x$gcc_cv_as != x; then
14500 echo ' .text
14501 addl r15 = @ltoffx(x#), gp
14502 ;;
14503 ld8.mov r16 = [r15], x#' > conftest.s
14504 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }
14510 then
14511 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14512 else
14513 echo "configure: failed program was" >&5
14514 cat conftest.s >&5
14515 fi
14516 rm -f conftest.o conftest.s
14517 fi
14518 fi
14519 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14520 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14521 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14522
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14525 _ACEOF
14526
14527 fi
14528
14529 ;;
14530
14531 powerpc*-*-*)
14532 case $target in
14533 *-*-aix*) conftest_s=' .csect .text[PR]
14534 mfcr 3,128';;
14535 *-*-darwin*)
14536 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14537 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14538 if test "${gcc_cv_as_machine_directive+set}" = set; then
14539 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 else
14541 gcc_cv_as_machine_directive=no
14542 if test x$gcc_cv_as != x; then
14543 echo ' .machine ppc7400' > conftest.s
14544 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }
14550 then
14551 gcc_cv_as_machine_directive=yes
14552 else
14553 echo "configure: failed program was" >&5
14554 cat conftest.s >&5
14555 fi
14556 rm -f conftest.o conftest.s
14557 fi
14558 fi
14559 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14560 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14561
14562 if test x$gcc_cv_as_machine_directive != xyes; then
14563 echo "*** This target requires an assembler supporting \".machine\"" >&2
14564 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14565 test x$build = x$target && exit 1
14566 fi
14567 conftest_s=' .text
14568 mfcr r3,128';;
14569 *) conftest_s=' .machine power4
14570 .text
14571 mfcr 3,128';;
14572 esac
14573
14574 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14575 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14576 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 gcc_cv_as_powerpc_mfcrf=no
14580 if test $in_tree_gas = yes; then
14581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14582 then gcc_cv_as_powerpc_mfcrf=yes
14583 fi
14584 elif test x$gcc_cv_as != x; then
14585 echo "$conftest_s" > conftest.s
14586 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }
14592 then
14593 gcc_cv_as_powerpc_mfcrf=yes
14594 else
14595 echo "configure: failed program was" >&5
14596 cat conftest.s >&5
14597 fi
14598 rm -f conftest.o conftest.s
14599 fi
14600 fi
14601 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14602 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14603 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_AS_MFCRF 1
14607 _ACEOF
14608
14609 fi
14610 ;;
14611
14612 mips*-*-*)
14613 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14614 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14615 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 gcc_cv_as_mips_explicit_relocs=no
14619 if test $in_tree_gas = yes; then
14620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14621 then gcc_cv_as_mips_explicit_relocs=yes
14622 fi
14623 elif test x$gcc_cv_as != x; then
14624 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14625 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }
14631 then
14632 gcc_cv_as_mips_explicit_relocs=yes
14633 else
14634 echo "configure: failed program was" >&5
14635 cat conftest.s >&5
14636 fi
14637 rm -f conftest.o conftest.s
14638 fi
14639 fi
14640 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14641 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14642 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14643 if test x$target_cpu_default = x
14644 then target_cpu_default=MASK_EXPLICIT_RELOCS
14645 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14646 fi
14647 fi
14648
14649 if test x$gas_flag = xyes \
14650 || test x"$host" != x"$build" \
14651 || test ! -x "$gcc_cv_as" \
14652 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
14653 :
14654 else
14655 echo "*** This configuration requires the GNU assembler" >&2
14656 exit 1
14657 fi
14658 ;;
14659 esac
14660 # ??? Not all targets support dwarf2 debug_line, even within a version
14661 # of gas. Moreover, we need to emit a valid instruction to trigger any
14662 # info to the output file. So, as supported targets are added to gas 2.11,
14663 # add some instruction here to (also) show we expect this might work.
14664 # ??? Once 2.11 is released, probably need to add first known working
14665 # version to the per-target configury.
14666 case "$target" in
14667 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
14668 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
14669 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
14670 insn="nop"
14671 ;;
14672 ia64*-*-* | s390*-*-*)
14673 insn="nop 0"
14674 ;;
14675 mmix-*-*)
14676 insn="swym 0"
14677 ;;
14678 esac
14679 if test x"$insn" != x; then
14680 conftest_s="\
14681 .file 1 \"conftest.s\"
14682 .loc 1 3 0
14683 $insn"
14684 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14685 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14686 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 gcc_cv_as_dwarf2_debug_line=no
14690 if test $in_tree_gas = yes; then
14691 if test $in_tree_gas_is_elf = yes \
14692 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14693 then gcc_cv_as_dwarf2_debug_line=yes
14694 fi
14695 elif test x$gcc_cv_as != x; then
14696 echo "$conftest_s" > conftest.s
14697 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14700 ac_status=$?
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }
14703 then
14704 if test x$gcc_cv_objdump != x \
14705 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
14706 | grep debug_line > /dev/null 2>&1; then
14707 gcc_cv_as_dwarf2_debug_line=yes
14708 fi
14709 else
14710 echo "configure: failed program was" >&5
14711 cat conftest.s >&5
14712 fi
14713 rm -f conftest.o conftest.s
14714 fi
14715 fi
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14717 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14718
14719
14720 # The .debug_line file table must be in the exact order that
14721 # we specified the files, since these indices are also used
14722 # by DW_AT_decl_file. Approximate this test by testing if
14723 # the assembler bitches if the same index is assigned twice.
14724 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14725 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14726 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 gcc_cv_as_dwarf2_file_buggy=no
14730 if test x$gcc_cv_as != x; then
14731 echo ' .file 1 "foo.s"
14732 .file 1 "bar.s"' > conftest.s
14733 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14736 ac_status=$?
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }
14739 then
14740 gcc_cv_as_dwarf2_file_buggy=yes
14741 else
14742 echo "configure: failed program was" >&5
14743 cat conftest.s >&5
14744 fi
14745 rm -f conftest.o conftest.s
14746 fi
14747 fi
14748 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14749 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14750
14751
14752 if test $gcc_cv_as_dwarf2_debug_line = yes \
14753 && test $gcc_cv_as_dwarf2_file_buggy = no; then
14754
14755 cat >>confdefs.h <<\_ACEOF
14756 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14757 _ACEOF
14758
14759 fi
14760
14761 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14762 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14763 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766 gcc_cv_as_gdwarf2_flag=no
14767 if test $in_tree_gas = yes; then
14768 if test $in_tree_gas_is_elf = yes \
14769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14770 then gcc_cv_as_gdwarf2_flag=yes
14771 fi
14772 elif test x$gcc_cv_as != x; then
14773 echo "$insn" > conftest.s
14774 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }
14780 then
14781 gcc_cv_as_gdwarf2_flag=yes
14782 else
14783 echo "configure: failed program was" >&5
14784 cat conftest.s >&5
14785 fi
14786 rm -f conftest.o conftest.s
14787 fi
14788 fi
14789 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14790 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14791 if test $gcc_cv_as_gdwarf2_flag = yes; then
14792
14793 cat >>confdefs.h <<\_ACEOF
14794 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14795 _ACEOF
14796
14797 fi
14798
14799 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14800 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14801 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 gcc_cv_as_gstabs_flag=no
14805 if test $in_tree_gas = yes; then
14806 if test $in_tree_gas_is_elf = yes \
14807 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14808 then gcc_cv_as_gstabs_flag=yes
14809 fi
14810 elif test x$gcc_cv_as != x; then
14811 echo "$insn" > conftest.s
14812 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814 (eval $ac_try) 2>&5
14815 ac_status=$?
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); }; }
14818 then
14819 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14820 # and warns about it, but still exits successfully. So check for
14821 # this.
14822 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }
14828 then :
14829 else gcc_cv_as_gstabs_flag=yes
14830 fi
14831 else
14832 echo "configure: failed program was" >&5
14833 cat conftest.s >&5
14834 fi
14835 rm -f conftest.o conftest.s
14836 fi
14837 fi
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14839 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14840 if test $gcc_cv_as_gstabs_flag = yes; then
14841
14842 cat >>confdefs.h <<\_ACEOF
14843 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14844 _ACEOF
14845
14846 fi
14847 fi
14848
14849 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14850 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14851 gcc_cv_ld_ro_rw_mix=unknown
14852 if test $in_tree_ld = yes ; then
14853 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 \
14854 && test $in_tree_ld_is_elf = yes; then
14855 gcc_cv_ld_ro_rw_mix=read-write
14856 fi
14857 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
14858 echo '.section myfoosect, "a"' > conftest1.s
14859 echo '.section myfoosect, "aw"' > conftest2.s
14860 echo '.byte 1' >> conftest2.s
14861 echo '.section myfoosect, "a"' > conftest3.s
14862 echo '.byte 0' >> conftest3.s
14863 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
14864 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
14865 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
14866 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14867 conftest2.o conftest3.o > /dev/null 2>&1; then
14868 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
14869 | sed -e '/myfoosect/!d' -e N`
14870 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
14871 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
14872 gcc_cv_ld_ro_rw_mix=read-only
14873 else
14874 gcc_cv_ld_ro_rw_mix=read-write
14875 fi
14876 fi
14877 fi
14878 rm -f conftest.* conftest[123].*
14879 fi
14880 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
14881
14882 cat >>confdefs.h <<\_ACEOF
14883 #define HAVE_LD_RO_RW_SECTION_MIXING 1
14884 _ACEOF
14885
14886 fi
14887 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
14888 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
14889
14890 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
14891 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
14892 gcc_cv_ld_eh_frame_hdr=no
14893 if test $in_tree_ld = yes ; then
14894 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 \
14895 && test $in_tree_ld_is_elf = yes; then
14896 gcc_cv_ld_eh_frame_hdr=yes
14897 fi
14898 elif test x$gcc_cv_ld != x; then
14899 # Check if linker supports --eh-frame-hdr option
14900 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
14901 gcc_cv_ld_eh_frame_hdr=yes
14902 fi
14903 fi
14904 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
14905
14906 cat >>confdefs.h <<\_ACEOF
14907 #define HAVE_LD_EH_FRAME_HDR 1
14908 _ACEOF
14909
14910 fi
14911 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
14912 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
14913
14914 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
14915 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
14916 gcc_cv_ld_pie=no
14917 if test $in_tree_ld = yes ; then
14918 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
14919 && test $in_tree_ld_is_elf = yes; then
14920 gcc_cv_ld_pie=yes
14921 fi
14922 elif test x$gcc_cv_ld != x; then
14923 # Check if linker supports -pie option
14924 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
14925 gcc_cv_ld_pie=yes
14926 fi
14927 fi
14928 if test x"$gcc_cv_ld_pie" = xyes; then
14929
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_LD_PIE 1
14932 _ACEOF
14933
14934 fi
14935 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
14936 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
14937
14938 # --------
14939 # UNSORTED
14940 # --------
14941
14942 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
14943 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
14944 if test "${gcc_cv_ld_as_needed+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946 else
14947 gcc_cv_ld_as_needed=no
14948 if test $in_tree_ld = yes ; then
14949 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
14950 && test $in_tree_ld_is_elf = yes; then
14951 gcc_cv_ld_as_needed=yes
14952 fi
14953 elif test x$gcc_cv_ld != x; then
14954 # Check if linker supports --as-needed and --no-as-needed options
14955 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
14956 gcc_cv_ld_as_needed=yes
14957 fi
14958 fi
14959
14960 fi
14961 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
14962 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
14963 if test x"$gcc_cv_ld_as_needed" = xyes; then
14964
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_LD_AS_NEEDED 1
14967 _ACEOF
14968
14969 fi
14970
14971 case "$target" in
14972 powerpc64*-*-linux*)
14973 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
14974 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
14975 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 gcc_cv_ld_no_dot_syms=no
14979 if test $in_tree_ld = yes ; then
14980 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
14981 gcc_cv_ld_no_dot_syms=yes
14982 fi
14983 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
14984 cat > conftest1.s <<EOF
14985 .text
14986 bl .foo
14987 EOF
14988 cat > conftest2.s <<EOF
14989 .section ".opd","aw"
14990 .align 3
14991 .globl foo
14992 .type foo,@function
14993 foo:
14994 .quad .LEfoo,.TOC.@tocbase,0
14995 .text
14996 .LEfoo:
14997 blr
14998 .size foo,.-.LEfoo
14999 EOF
15000 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15001 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15002 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15003 gcc_cv_ld_no_dot_syms=yes
15004 fi
15005 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15006 fi
15007
15008 fi
15009 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15010 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15011 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15012
15013 cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_LD_NO_DOT_SYMS 1
15015 _ACEOF
15016
15017 fi
15018 ;;
15019 esac
15020
15021 if test x$with_sysroot = x && test x$host = x$target \
15022 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15023
15024 cat >>confdefs.h <<_ACEOF
15025 #define PREFIX_INCLUDE_DIR "$prefix/include"
15026 _ACEOF
15027
15028 fi
15029
15030 # Find out what GC implementation we want, or may, use.
15031
15032 # Check whether --with-gc or --without-gc was given.
15033 if test "${with_gc+set}" = set; then
15034 withval="$with_gc"
15035 case "$withval" in
15036 page | zone)
15037 GGC=ggc-$withval
15038 ;;
15039 *)
15040 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15041 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15042 { (exit 1); exit 1; }; }
15043 ;;
15044 esac
15045 else
15046 GGC=ggc-page
15047 fi;
15048
15049 echo "Using $GGC for garbage collection."
15050
15051 # Use the system's zlib library.
15052 zlibdir=-L../zlib
15053 zlibinc="-I\$(srcdir)/../zlib"
15054
15055 # Check whether --with-system-zlib or --without-system-zlib was given.
15056 if test "${with_system_zlib+set}" = set; then
15057 withval="$with_system_zlib"
15058 zlibdir=
15059 zlibinc=
15060
15061 fi;
15062
15063
15064
15065
15066 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15067 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15068 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15069 if test "${enable_maintainer_mode+set}" = set; then
15070 enableval="$enable_maintainer_mode"
15071 maintainer_mode=$enableval
15072 else
15073 maintainer_mode=no
15074 fi;
15075
15076 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15077 echo "${ECHO_T}$maintainer_mode" >&6
15078
15079 if test "$maintainer_mode" = "yes"; then
15080 MAINT=''
15081 else
15082 MAINT='#'
15083 fi
15084
15085 # --------------
15086 # Language hooks
15087 # --------------
15088
15089 # Make empty files to contain the specs and options for each language.
15090 # Then add #include lines to for a compiler that has specs and/or options.
15091
15092 lang_opt_files=
15093 lang_specs_files=
15094 lang_tree_files=
15095 for subdir in . $subdirs
15096 do
15097 if test -f $srcdir/$subdir/lang.opt; then
15098 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15099 fi
15100 if test -f $srcdir/$subdir/lang-specs.h; then
15101 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15102 fi
15103 if test -f $srcdir/$subdir/$subdir-tree.def; then
15104 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15105 fi
15106 done
15107
15108 # These (without "all_") are set in each config-lang.in.
15109 # `language' must be a single word so is spelled singularly.
15110 all_languages=
15111 all_boot_languages=
15112 all_compilers=
15113 all_stagestuff=
15114 all_outputs='Makefile gccbug mklibgcc libada-mk'
15115 # List of language makefile fragments.
15116 all_lang_makefrags=
15117 # List of language subdirectory makefiles. Deprecated.
15118 all_lang_makefiles=
15119 # Files for gengtype
15120 all_gtfiles="$target_gtfiles"
15121 # Files for gengtype with language
15122 all_gtfiles_files_langs=
15123 all_gtfiles_files_files=
15124
15125 # Add the language fragments.
15126 # Languages are added via two mechanisms. Some information must be
15127 # recorded in makefile variables, these are defined in config-lang.in.
15128 # We accumulate them and plug them into the main Makefile.
15129 # The other mechanism is a set of hooks for each of the main targets
15130 # like `clean', `install', etc.
15131
15132 language_hooks="Make-hooks"
15133
15134 for s in $subdirs
15135 do
15136 language=
15137 boot_language=
15138 compilers=
15139 stagestuff=
15140 outputs=
15141 gtfiles=
15142 . ${srcdir}/$s/config-lang.in
15143 if test "x$language" = x
15144 then
15145 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15146 exit 1
15147 fi
15148 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15149 if test -f ${srcdir}/$s/Makefile.in
15150 then all_lang_makefiles="$s/Makefile"
15151 fi
15152 all_languages="$all_languages $language"
15153 if test "x$boot_language" = xyes
15154 then
15155 all_boot_languages="$all_boot_languages $language"
15156 fi
15157 all_compilers="$all_compilers $compilers"
15158 all_stagestuff="$all_stagestuff $stagestuff"
15159 all_outputs="$all_outputs $outputs"
15160 all_gtfiles="$all_gtfiles $gtfiles"
15161 for f in $gtfiles
15162 do
15163 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15164 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15165 done
15166 done
15167
15168 # Pick up gtfiles for c
15169 gtfiles=
15170 s="c"
15171 . ${srcdir}/c-config-lang.in
15172 all_gtfiles="$all_gtfiles $gtfiles"
15173 for f in $gtfiles
15174 do
15175 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15176 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15177 done
15178
15179 check_languages=
15180 for language in $all_languages
15181 do
15182 check_languages="$check_languages check-$language"
15183 done
15184
15185 # We link each language in with a set of hooks, reached indirectly via
15186 # lang.${target}.
15187
15188 rm -f Make-hooks
15189 touch Make-hooks
15190 target_list="all.build all.cross start.encap rest.encap tags \
15191 install-normal install-common install-man \
15192 uninstall info man srcextra srcman srcinfo \
15193 mostlyclean clean distclean maintainer-clean \
15194 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15195 for t in $target_list
15196 do
15197 x=
15198 for lang in $all_languages
15199 do
15200 x="$x $lang.$t"
15201 done
15202 echo "lang.$t: $x" >> Make-hooks
15203 done
15204
15205 # --------
15206 # UNSORTED
15207 # --------
15208
15209 # Create .gdbinit.
15210
15211 echo "dir ." > .gdbinit
15212 echo "dir ${srcdir}" >> .gdbinit
15213 if test x$gdb_needs_out_file_path = xyes
15214 then
15215 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15216 fi
15217 if test "x$subdirs" != x; then
15218 for s in $subdirs
15219 do
15220 echo "dir ${srcdir}/$s" >> .gdbinit
15221 done
15222 fi
15223 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15224
15225 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15226 # absolute path for gcc_tooldir based on inserting the number of up-directory
15227 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15228 # $(libsubdir)/@(unlibsubdir) based path.
15229 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15230 # make and thus we'd get different behavior depending on where we built the
15231 # sources.
15232 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15233 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15234 else
15235 # An explanation of the sed strings:
15236 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15237 # -e 's|/$||' match a trailing forward slash and eliminates it
15238 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15239 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15240 #
15241 # (*) Note this pattern overwrites the first character of the string
15242 # with a forward slash if one is not already present. This is not a
15243 # problem because the exact names of the sub-directories concerned is
15244 # unimportant, just the number of them matters.
15245 #
15246 # The practical upshot of these patterns is like this:
15247 #
15248 # prefix exec_prefix result
15249 # ------ ----------- ------
15250 # /foo /foo/bar ../
15251 # /foo/ /foo/bar ../
15252 # /foo /foo/bar/ ../
15253 # /foo/ /foo/bar/ ../
15254 # /foo /foo/bar/ugg ../../
15255 #
15256 dollar='$$'
15257 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15258 fi
15259
15260
15261
15262 # Find a directory in which to install a shared libgcc.
15263
15264 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15265 if test "${enable_version_specific_runtime_libs+set}" = set; then
15266 enableval="$enable_version_specific_runtime_libs"
15267
15268 fi;
15269
15270
15271 # Check whether --with-slibdir or --without-slibdir was given.
15272 if test "${with_slibdir+set}" = set; then
15273 withval="$with_slibdir"
15274 slibdir="$with_slibdir"
15275 else
15276 if test "${enable_version_specific_runtime_libs+set}" = set; then
15277 slibdir='$(libsubdir)'
15278 elif test "$host" != "$target"; then
15279 slibdir='$(build_tooldir)/lib'
15280 else
15281 slibdir='$(libdir)'
15282 fi
15283 fi;
15284
15285
15286 objdir=`${PWDCMD-pwd}`
15287
15288
15289 # Substitute configuration variables
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354 if test x"$SET_GCC_LIB_PATH_CMD" != x; then
15355 # SET_GCC_LIB_PATH_CMD is "XXX=path; export XXX;". It is expanded to
15356 #
15357 # eval "set_gcc_lib_path=XXX=path; export XXX;"
15358 #
15359 eval "set_gcc_lib_path=$SET_GCC_LIB_PATH_CMD"
15360 # It will set set_gcc_lib_path to "export XXX=path" for GNU make.
15361 set_gcc_lib_path="export $set_gcc_lib_path"
15362 else
15363 set_gcc_lib_path=
15364 fi
15365
15366
15367
15368 # Echo link setup.
15369 if test x${build} = x${host} ; then
15370 if test x${host} = x${target} ; then
15371 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15372 else
15373 echo "Links are now set up to build a cross-compiler" 1>&2
15374 echo " from ${host} to ${target}." 1>&2
15375 fi
15376 else
15377 if test x${host} = x${target} ; then
15378 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15379 echo " for ${target}." 1>&2
15380 else
15381 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15382 echo " from ${host} to ${target}." 1>&2
15383 fi
15384 fi
15385
15386
15387
15388
15389 # Configure the subdirectories
15390 # AC_CONFIG_SUBDIRS($subdirs)
15391
15392 # Create the Makefile
15393 # and configure language subdirectories
15394 ac_config_files="$ac_config_files $all_outputs"
15395
15396
15397 ac_config_commands="$ac_config_commands default"
15398
15399 cat >confcache <<\_ACEOF
15400 # This file is a shell script that caches the results of configure
15401 # tests run on this system so they can be shared between configure
15402 # scripts and configure runs, see configure's option --config-cache.
15403 # It is not useful on other systems. If it contains results you don't
15404 # want to keep, you may remove or edit it.
15405 #
15406 # config.status only pays attention to the cache file if you give it
15407 # the --recheck option to rerun configure.
15408 #
15409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15411 # following values.
15412
15413 _ACEOF
15414
15415 # The following way of writing the cache mishandles newlines in values,
15416 # but we know of no workaround that is simple, portable, and efficient.
15417 # So, don't put newlines in cache variables' values.
15418 # Ultrix sh set writes to stderr and can't be redirected directly,
15419 # and sets the high bit in the cache file unless we assign to the vars.
15420 {
15421 (set) 2>&1 |
15422 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15423 *ac_space=\ *)
15424 # `set' does not quote correctly, so add quotes (double-quote
15425 # substitution turns \\\\ into \\, and sed turns \\ into \).
15426 sed -n \
15427 "s/'/'\\\\''/g;
15428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15429 ;;
15430 *)
15431 # `set' quotes correctly as required by POSIX, so do not add quotes.
15432 sed -n \
15433 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15434 ;;
15435 esac;
15436 } |
15437 sed '
15438 t clear
15439 : clear
15440 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15441 t end
15442 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15443 : end' >>confcache
15444 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15445 if test -w $cache_file; then
15446 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15447 cat confcache >$cache_file
15448 else
15449 echo "not updating unwritable cache $cache_file"
15450 fi
15451 fi
15452 rm -f confcache
15453
15454 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15455 # Let make expand exec_prefix.
15456 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15457
15458 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15459 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15460 # trailing colons and then remove the whole line if VPATH becomes empty
15461 # (actually we leave an empty line to preserve line numbers).
15462 if test "x$srcdir" = x.; then
15463 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15464 s/:*\$(srcdir):*/:/;
15465 s/:*\${srcdir}:*/:/;
15466 s/:*@srcdir@:*/:/;
15467 s/^\([^=]*=[ ]*\):*/\1/;
15468 s/:*$//;
15469 s/^[^=]*=[ ]*$//;
15470 }'
15471 fi
15472
15473 DEFS=-DHAVE_CONFIG_H
15474
15475 ac_libobjs=
15476 ac_ltlibobjs=
15477 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15478 # 1. Remove the extension, and $U if already installed.
15479 ac_i=`echo "$ac_i" |
15480 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15481 # 2. Add them.
15482 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15483 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15484 done
15485 LIBOBJS=$ac_libobjs
15486
15487 LTLIBOBJS=$ac_ltlibobjs
15488
15489
15490
15491 : ${CONFIG_STATUS=./config.status}
15492 ac_clean_files_save=$ac_clean_files
15493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15496 cat >$CONFIG_STATUS <<_ACEOF
15497 #! $SHELL
15498 # Generated by $as_me.
15499 # Run this file to recreate the current configuration.
15500 # Compiler output produced by configure, useful for debugging
15501 # configure, is in config.log if it exists.
15502
15503 debug=false
15504 ac_cs_recheck=false
15505 ac_cs_silent=false
15506 SHELL=\${CONFIG_SHELL-$SHELL}
15507 _ACEOF
15508
15509 cat >>$CONFIG_STATUS <<\_ACEOF
15510 ## --------------------- ##
15511 ## M4sh Initialization. ##
15512 ## --------------------- ##
15513
15514 # Be Bourne compatible
15515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15516 emulate sh
15517 NULLCMD=:
15518 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15519 # is contrary to our usage. Disable this feature.
15520 alias -g '${1+"$@"}'='"$@"'
15521 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15522 set -o posix
15523 fi
15524 DUALCASE=1; export DUALCASE # for MKS sh
15525
15526 # Support unset when possible.
15527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15528 as_unset=unset
15529 else
15530 as_unset=false
15531 fi
15532
15533
15534 # Work around bugs in pre-3.0 UWIN ksh.
15535 $as_unset ENV MAIL MAILPATH
15536 PS1='$ '
15537 PS2='> '
15538 PS4='+ '
15539
15540 # NLS nuisances.
15541 for as_var in \
15542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15544 LC_TELEPHONE LC_TIME
15545 do
15546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15547 eval $as_var=C; export $as_var
15548 else
15549 $as_unset $as_var
15550 fi
15551 done
15552
15553 # Required to use basename.
15554 if expr a : '\(a\)' >/dev/null 2>&1; then
15555 as_expr=expr
15556 else
15557 as_expr=false
15558 fi
15559
15560 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15561 as_basename=basename
15562 else
15563 as_basename=false
15564 fi
15565
15566
15567 # Name of the executable.
15568 as_me=`$as_basename "$0" ||
15569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15570 X"$0" : 'X\(//\)$' \| \
15571 X"$0" : 'X\(/\)$' \| \
15572 . : '\(.\)' 2>/dev/null ||
15573 echo X/"$0" |
15574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15575 /^X\/\(\/\/\)$/{ s//\1/; q; }
15576 /^X\/\(\/\).*/{ s//\1/; q; }
15577 s/.*/./; q'`
15578
15579
15580 # PATH needs CR, and LINENO needs CR and PATH.
15581 # Avoid depending upon Character Ranges.
15582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15585 as_cr_digits='0123456789'
15586 as_cr_alnum=$as_cr_Letters$as_cr_digits
15587
15588 # The user is always right.
15589 if test "${PATH_SEPARATOR+set}" != set; then
15590 echo "#! /bin/sh" >conf$$.sh
15591 echo "exit 0" >>conf$$.sh
15592 chmod +x conf$$.sh
15593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15594 PATH_SEPARATOR=';'
15595 else
15596 PATH_SEPARATOR=:
15597 fi
15598 rm -f conf$$.sh
15599 fi
15600
15601
15602 as_lineno_1=$LINENO
15603 as_lineno_2=$LINENO
15604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15605 test "x$as_lineno_1" != "x$as_lineno_2" &&
15606 test "x$as_lineno_3" = "x$as_lineno_2" || {
15607 # Find who we are. Look in the path if we contain no path at all
15608 # relative or not.
15609 case $0 in
15610 *[\\/]* ) as_myself=$0 ;;
15611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15612 for as_dir in $PATH
15613 do
15614 IFS=$as_save_IFS
15615 test -z "$as_dir" && as_dir=.
15616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15617 done
15618
15619 ;;
15620 esac
15621 # We did not find ourselves, most probably we were run as `sh COMMAND'
15622 # in which case we are not to be found in the path.
15623 if test "x$as_myself" = x; then
15624 as_myself=$0
15625 fi
15626 if test ! -f "$as_myself"; then
15627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15629 { (exit 1); exit 1; }; }
15630 fi
15631 case $CONFIG_SHELL in
15632 '')
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15635 do
15636 IFS=$as_save_IFS
15637 test -z "$as_dir" && as_dir=.
15638 for as_base in sh bash ksh sh5; do
15639 case $as_dir in
15640 /*)
15641 if ("$as_dir/$as_base" -c '
15642 as_lineno_1=$LINENO
15643 as_lineno_2=$LINENO
15644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15645 test "x$as_lineno_1" != "x$as_lineno_2" &&
15646 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15647 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15648 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15649 CONFIG_SHELL=$as_dir/$as_base
15650 export CONFIG_SHELL
15651 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15652 fi;;
15653 esac
15654 done
15655 done
15656 ;;
15657 esac
15658
15659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15660 # uniformly replaced by the line number. The first 'sed' inserts a
15661 # line-number line before each line; the second 'sed' does the real
15662 # work. The second script uses 'N' to pair each line-number line
15663 # with the numbered line, and appends trailing '-' during
15664 # substitution so that $LINENO is not a special case at line end.
15665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15667 sed '=' <$as_myself |
15668 sed '
15669 N
15670 s,$,-,
15671 : loop
15672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15673 t loop
15674 s,-$,,
15675 s,^['$as_cr_digits']*\n,,
15676 ' >$as_me.lineno &&
15677 chmod +x $as_me.lineno ||
15678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15680 { (exit 1); exit 1; }; }
15681
15682 # Don't try to exec as it changes $[0], causing all sort of problems
15683 # (the dirname of $[0] is not the place where we might find the
15684 # original and so on. Autoconf is especially sensible to this).
15685 . ./$as_me.lineno
15686 # Exit status is that of the last command.
15687 exit
15688 }
15689
15690
15691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15692 *c*,-n*) ECHO_N= ECHO_C='
15693 ' ECHO_T=' ' ;;
15694 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15695 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15696 esac
15697
15698 if expr a : '\(a\)' >/dev/null 2>&1; then
15699 as_expr=expr
15700 else
15701 as_expr=false
15702 fi
15703
15704 rm -f conf$$ conf$$.exe conf$$.file
15705 echo >conf$$.file
15706 if ln -s conf$$.file conf$$ 2>/dev/null; then
15707 # We could just check for DJGPP; but this test a) works b) is more generic
15708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15709 if test -f conf$$.exe; then
15710 # Don't use ln at all; we don't have any links
15711 as_ln_s='cp -p'
15712 else
15713 as_ln_s='ln -s'
15714 fi
15715 elif ln conf$$.file conf$$ 2>/dev/null; then
15716 as_ln_s=ln
15717 else
15718 as_ln_s='cp -p'
15719 fi
15720 rm -f conf$$ conf$$.exe conf$$.file
15721
15722 if mkdir -p . 2>/dev/null; then
15723 as_mkdir_p=:
15724 else
15725 test -d ./-p && rmdir ./-p
15726 as_mkdir_p=false
15727 fi
15728
15729 as_executable_p="test -f"
15730
15731 # Sed expression to map a string onto a valid CPP name.
15732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15733
15734 # Sed expression to map a string onto a valid variable name.
15735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15736
15737
15738 # IFS
15739 # We need space, tab and new line, in precisely that order.
15740 as_nl='
15741 '
15742 IFS=" $as_nl"
15743
15744 # CDPATH.
15745 $as_unset CDPATH
15746
15747 exec 6>&1
15748
15749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15750 # report actual input values of CONFIG_FILES etc. instead of their
15751 # values after options handling. Logging --version etc. is OK.
15752 exec 5>>config.log
15753 {
15754 echo
15755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15756 ## Running $as_me. ##
15757 _ASBOX
15758 } >&5
15759 cat >&5 <<_CSEOF
15760
15761 This file was extended by $as_me, which was
15762 generated by GNU Autoconf 2.59. Invocation command line was
15763
15764 CONFIG_FILES = $CONFIG_FILES
15765 CONFIG_HEADERS = $CONFIG_HEADERS
15766 CONFIG_LINKS = $CONFIG_LINKS
15767 CONFIG_COMMANDS = $CONFIG_COMMANDS
15768 $ $0 $@
15769
15770 _CSEOF
15771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15772 echo >&5
15773 _ACEOF
15774
15775 # Files that config.status was made for.
15776 if test -n "$ac_config_files"; then
15777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15778 fi
15779
15780 if test -n "$ac_config_headers"; then
15781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15782 fi
15783
15784 if test -n "$ac_config_links"; then
15785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15786 fi
15787
15788 if test -n "$ac_config_commands"; then
15789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15790 fi
15791
15792 cat >>$CONFIG_STATUS <<\_ACEOF
15793
15794 ac_cs_usage="\
15795 \`$as_me' instantiates files from templates according to the
15796 current configuration.
15797
15798 Usage: $0 [OPTIONS] [FILE]...
15799
15800 -h, --help print this help, then exit
15801 -V, --version print version number, then exit
15802 -q, --quiet do not print progress messages
15803 -d, --debug don't remove temporary files
15804 --recheck update $as_me by reconfiguring in the same conditions
15805 --file=FILE[:TEMPLATE]
15806 instantiate the configuration file FILE
15807 --header=FILE[:TEMPLATE]
15808 instantiate the configuration header FILE
15809
15810 Configuration files:
15811 $config_files
15812
15813 Configuration headers:
15814 $config_headers
15815
15816 Configuration commands:
15817 $config_commands
15818
15819 Report bugs to <bug-autoconf@gnu.org>."
15820 _ACEOF
15821
15822 cat >>$CONFIG_STATUS <<_ACEOF
15823 ac_cs_version="\\
15824 config.status
15825 configured by $0, generated by GNU Autoconf 2.59,
15826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15827
15828 Copyright (C) 2003 Free Software Foundation, Inc.
15829 This config.status script is free software; the Free Software Foundation
15830 gives unlimited permission to copy, distribute and modify it."
15831 srcdir=$srcdir
15832 _ACEOF
15833
15834 cat >>$CONFIG_STATUS <<\_ACEOF
15835 # If no file are specified by the user, then we need to provide default
15836 # value. By we need to know if files were specified by the user.
15837 ac_need_defaults=:
15838 while test $# != 0
15839 do
15840 case $1 in
15841 --*=*)
15842 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15843 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15844 ac_shift=:
15845 ;;
15846 -*)
15847 ac_option=$1
15848 ac_optarg=$2
15849 ac_shift=shift
15850 ;;
15851 *) # This is not an option, so the user has probably given explicit
15852 # arguments.
15853 ac_option=$1
15854 ac_need_defaults=false;;
15855 esac
15856
15857 case $ac_option in
15858 # Handling of the options.
15859 _ACEOF
15860 cat >>$CONFIG_STATUS <<\_ACEOF
15861 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15862 ac_cs_recheck=: ;;
15863 --version | --vers* | -V )
15864 echo "$ac_cs_version"; exit 0 ;;
15865 --he | --h)
15866 # Conflict between --help and --header
15867 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15868 Try \`$0 --help' for more information." >&5
15869 echo "$as_me: error: ambiguous option: $1
15870 Try \`$0 --help' for more information." >&2;}
15871 { (exit 1); exit 1; }; };;
15872 --help | --hel | -h )
15873 echo "$ac_cs_usage"; exit 0 ;;
15874 --debug | --d* | -d )
15875 debug=: ;;
15876 --file | --fil | --fi | --f )
15877 $ac_shift
15878 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15879 ac_need_defaults=false;;
15880 --header | --heade | --head | --hea )
15881 $ac_shift
15882 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15883 ac_need_defaults=false;;
15884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15886 ac_cs_silent=: ;;
15887
15888 # This is an error.
15889 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15890 Try \`$0 --help' for more information." >&5
15891 echo "$as_me: error: unrecognized option: $1
15892 Try \`$0 --help' for more information." >&2;}
15893 { (exit 1); exit 1; }; } ;;
15894
15895 *) ac_config_targets="$ac_config_targets $1" ;;
15896
15897 esac
15898 shift
15899 done
15900
15901 ac_configure_extra_args=
15902
15903 if $ac_cs_silent; then
15904 exec 6>/dev/null
15905 ac_configure_extra_args="$ac_configure_extra_args --silent"
15906 fi
15907
15908 _ACEOF
15909 cat >>$CONFIG_STATUS <<_ACEOF
15910 if \$ac_cs_recheck; then
15911 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15912 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15913 fi
15914
15915 _ACEOF
15916
15917 cat >>$CONFIG_STATUS <<_ACEOF
15918 #
15919 # INIT-COMMANDS section.
15920 #
15921
15922 subdirs='$subdirs'
15923
15924 _ACEOF
15925
15926
15927
15928 cat >>$CONFIG_STATUS <<\_ACEOF
15929 for ac_config_target in $ac_config_targets
15930 do
15931 case "$ac_config_target" in
15932 # Handling of arguments.
15933 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
15934 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15935 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
15936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15938 { (exit 1); exit 1; }; };;
15939 esac
15940 done
15941
15942 # If the user did not use the arguments to specify the items to instantiate,
15943 # then the envvar interface is used. Set only those that are not.
15944 # We use the long form for the default assignment because of an extremely
15945 # bizarre bug on SunOS 4.1.3.
15946 if $ac_need_defaults; then
15947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15950 fi
15951
15952 # Have a temporary directory for convenience. Make it in the build tree
15953 # simply because there is no reason to put it here, and in addition,
15954 # creating and moving files from /tmp can sometimes cause problems.
15955 # Create a temporary directory, and hook for its removal unless debugging.
15956 $debug ||
15957 {
15958 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15959 trap '{ (exit 1); exit 1; }' 1 2 13 15
15960 }
15961
15962 # Create a (secure) tmp directory for tmp files.
15963
15964 {
15965 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15966 test -n "$tmp" && test -d "$tmp"
15967 } ||
15968 {
15969 tmp=./confstat$$-$RANDOM
15970 (umask 077 && mkdir $tmp)
15971 } ||
15972 {
15973 echo "$me: cannot create a temporary directory in ." >&2
15974 { (exit 1); exit 1; }
15975 }
15976
15977 _ACEOF
15978
15979 cat >>$CONFIG_STATUS <<_ACEOF
15980
15981 #
15982 # CONFIG_FILES section.
15983 #
15984
15985 # No need to generate the scripts if there are no CONFIG_FILES.
15986 # This happens for instance when ./config.status config.h
15987 if test -n "\$CONFIG_FILES"; then
15988 # Protect against being on the right side of a sed subst in config.status.
15989 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15990 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15991 s,@SHELL@,$SHELL,;t t
15992 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15993 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15994 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15995 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15996 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15997 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15998 s,@exec_prefix@,$exec_prefix,;t t
15999 s,@prefix@,$prefix,;t t
16000 s,@program_transform_name@,$program_transform_name,;t t
16001 s,@bindir@,$bindir,;t t
16002 s,@sbindir@,$sbindir,;t t
16003 s,@libexecdir@,$libexecdir,;t t
16004 s,@datadir@,$datadir,;t t
16005 s,@sysconfdir@,$sysconfdir,;t t
16006 s,@sharedstatedir@,$sharedstatedir,;t t
16007 s,@localstatedir@,$localstatedir,;t t
16008 s,@libdir@,$libdir,;t t
16009 s,@includedir@,$includedir,;t t
16010 s,@oldincludedir@,$oldincludedir,;t t
16011 s,@infodir@,$infodir,;t t
16012 s,@mandir@,$mandir,;t t
16013 s,@build_alias@,$build_alias,;t t
16014 s,@host_alias@,$host_alias,;t t
16015 s,@target_alias@,$target_alias,;t t
16016 s,@DEFS@,$DEFS,;t t
16017 s,@ECHO_C@,$ECHO_C,;t t
16018 s,@ECHO_N@,$ECHO_N,;t t
16019 s,@ECHO_T@,$ECHO_T,;t t
16020 s,@LIBS@,$LIBS,;t t
16021 s,@build@,$build,;t t
16022 s,@build_cpu@,$build_cpu,;t t
16023 s,@build_vendor@,$build_vendor,;t t
16024 s,@build_os@,$build_os,;t t
16025 s,@host@,$host,;t t
16026 s,@host_cpu@,$host_cpu,;t t
16027 s,@host_vendor@,$host_vendor,;t t
16028 s,@host_os@,$host_os,;t t
16029 s,@target@,$target,;t t
16030 s,@target_cpu@,$target_cpu,;t t
16031 s,@target_vendor@,$target_vendor,;t t
16032 s,@target_os@,$target_os,;t t
16033 s,@target_noncanonical@,$target_noncanonical,;t t
16034 s,@build_subdir@,$build_subdir,;t t
16035 s,@host_subdir@,$host_subdir,;t t
16036 s,@target_subdir@,$target_subdir,;t t
16037 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16038 s,@gcc_version_full@,$gcc_version_full,;t t
16039 s,@gcc_version@,$gcc_version,;t t
16040 s,@GENINSRC@,$GENINSRC,;t t
16041 s,@CC@,$CC,;t t
16042 s,@CFLAGS@,$CFLAGS,;t t
16043 s,@LDFLAGS@,$LDFLAGS,;t t
16044 s,@CPPFLAGS@,$CPPFLAGS,;t t
16045 s,@ac_ct_CC@,$ac_ct_CC,;t t
16046 s,@EXEEXT@,$EXEEXT,;t t
16047 s,@OBJEXT@,$OBJEXT,;t t
16048 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16049 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16050 s,@CPP@,$CPP,;t t
16051 s,@EGREP@,$EGREP,;t t
16052 s,@strict1_warn@,$strict1_warn,;t t
16053 s,@warn_cflags@,$warn_cflags,;t t
16054 s,@WERROR@,$WERROR,;t t
16055 s,@nocommon_flag@,$nocommon_flag,;t t
16056 s,@TREEBROWSER@,$TREEBROWSER,;t t
16057 s,@valgrind_path@,$valgrind_path,;t t
16058 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16059 s,@valgrind_command@,$valgrind_command,;t t
16060 s,@coverage_flags@,$coverage_flags,;t t
16061 s,@enable_multilib@,$enable_multilib,;t t
16062 s,@enable_shared@,$enable_shared,;t t
16063 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16064 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16065 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16066 s,@onestep@,$onestep,;t t
16067 s,@SET_MAKE@,$SET_MAKE,;t t
16068 s,@AWK@,$AWK,;t t
16069 s,@LN_S@,$LN_S,;t t
16070 s,@LN@,$LN,;t t
16071 s,@RANLIB@,$RANLIB,;t t
16072 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16073 s,@ranlib_flags@,$ranlib_flags,;t t
16074 s,@INSTALL@,$INSTALL,;t t
16075 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16076 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16077 s,@make_compare_target@,$make_compare_target,;t t
16078 s,@have_mktemp_command@,$have_mktemp_command,;t t
16079 s,@MAKEINFO@,$MAKEINFO,;t t
16080 s,@BUILD_INFO@,$BUILD_INFO,;t t
16081 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16082 s,@FLEX@,$FLEX,;t t
16083 s,@BISON@,$BISON,;t t
16084 s,@NM@,$NM,;t t
16085 s,@AR@,$AR,;t t
16086 s,@stage1_cflags@,$stage1_cflags,;t t
16087 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16088 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16089 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16090 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16091 s,@LIBICONV@,$LIBICONV,;t t
16092 s,@LTLIBICONV@,$LTLIBICONV,;t t
16093 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16094 s,@manext@,$manext,;t t
16095 s,@objext@,$objext,;t t
16096 s,@gthread_flags@,$gthread_flags,;t t
16097 s,@extra_modes_file@,$extra_modes_file,;t t
16098 s,@PACKAGE@,$PACKAGE,;t t
16099 s,@VERSION@,$VERSION,;t t
16100 s,@USE_NLS@,$USE_NLS,;t t
16101 s,@LIBINTL@,$LIBINTL,;t t
16102 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16103 s,@INCINTL@,$INCINTL,;t t
16104 s,@XGETTEXT@,$XGETTEXT,;t t
16105 s,@GMSGFMT@,$GMSGFMT,;t t
16106 s,@POSUB@,$POSUB,;t t
16107 s,@CATALOGS@,$CATALOGS,;t t
16108 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16109 s,@CROSS@,$CROSS,;t t
16110 s,@ALL@,$ALL,;t t
16111 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16112 s,@inhibit_libc@,$inhibit_libc,;t t
16113 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16114 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16115 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16116 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16117 s,@collect2@,$collect2,;t t
16118 s,@libgcc_visibility@,$libgcc_visibility,;t t
16119 s,@GGC@,$GGC,;t t
16120 s,@zlibdir@,$zlibdir,;t t
16121 s,@zlibinc@,$zlibinc,;t t
16122 s,@MAINT@,$MAINT,;t t
16123 s,@gcc_tooldir@,$gcc_tooldir,;t t
16124 s,@dollar@,$dollar,;t t
16125 s,@slibdir@,$slibdir,;t t
16126 s,@objdir@,$objdir,;t t
16127 s,@subdirs@,$subdirs,;t t
16128 s,@srcdir@,$srcdir,;t t
16129 s,@all_boot_languages@,$all_boot_languages,;t t
16130 s,@all_compilers@,$all_compilers,;t t
16131 s,@all_gtfiles@,$all_gtfiles,;t t
16132 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16133 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16134 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16135 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16136 s,@all_languages@,$all_languages,;t t
16137 s,@all_stagestuff@,$all_stagestuff,;t t
16138 s,@build_exeext@,$build_exeext,;t t
16139 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16140 s,@build_xm_file_list@,$build_xm_file_list,;t t
16141 s,@build_xm_include_list@,$build_xm_include_list,;t t
16142 s,@build_xm_defines@,$build_xm_defines,;t t
16143 s,@check_languages@,$check_languages,;t t
16144 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16145 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16146 s,@cpp_install_dir@,$cpp_install_dir,;t t
16147 s,@xmake_file@,$xmake_file,;t t
16148 s,@tmake_file@,$tmake_file,;t t
16149 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16150 s,@extra_headers_list@,$extra_headers_list,;t t
16151 s,@extra_objs@,$extra_objs,;t t
16152 s,@extra_parts@,$extra_parts,;t t
16153 s,@extra_passes@,$extra_passes,;t t
16154 s,@extra_programs@,$extra_programs,;t t
16155 s,@float_h_file@,$float_h_file,;t t
16156 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16157 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16158 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16159 s,@host_exeext@,$host_exeext,;t t
16160 s,@host_xm_file_list@,$host_xm_file_list,;t t
16161 s,@host_xm_include_list@,$host_xm_include_list,;t t
16162 s,@host_xm_defines@,$host_xm_defines,;t t
16163 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16164 s,@install@,$install,;t t
16165 s,@lang_opt_files@,$lang_opt_files,;t t
16166 s,@lang_specs_files@,$lang_specs_files,;t t
16167 s,@lang_tree_files@,$lang_tree_files,;t t
16168 s,@local_prefix@,$local_prefix,;t t
16169 s,@md_file@,$md_file,;t t
16170 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16171 s,@out_file@,$out_file,;t t
16172 s,@out_object_file@,$out_object_file,;t t
16173 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16174 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16175 s,@thread_file@,$thread_file,;t t
16176 s,@tm_file_list@,$tm_file_list,;t t
16177 s,@tm_include_list@,$tm_include_list,;t t
16178 s,@tm_defines@,$tm_defines,;t t
16179 s,@tm_p_file_list@,$tm_p_file_list,;t t
16180 s,@tm_p_include_list@,$tm_p_include_list,;t t
16181 s,@xm_file_list@,$xm_file_list,;t t
16182 s,@xm_include_list@,$xm_include_list,;t t
16183 s,@xm_defines@,$xm_defines,;t t
16184 s,@c_target_objs@,$c_target_objs,;t t
16185 s,@cxx_target_objs@,$cxx_target_objs,;t t
16186 s,@target_cpu_default@,$target_cpu_default,;t t
16187 s,@set_gcc_lib_path@,$set_gcc_lib_path,;t t
16188 s,@GMPLIBS@,$GMPLIBS,;t t
16189 s,@GMPINC@,$GMPINC,;t t
16190 s,@LIBOBJS@,$LIBOBJS,;t t
16191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16192 /@language_hooks@/r $language_hooks
16193 s,@language_hooks@,,;t t
16194 CEOF
16195
16196 _ACEOF
16197
16198 cat >>$CONFIG_STATUS <<\_ACEOF
16199 # Split the substitutions into bite-sized pieces for seds with
16200 # small command number limits, like on Digital OSF/1 and HP-UX.
16201 ac_max_sed_lines=48
16202 ac_sed_frag=1 # Number of current file.
16203 ac_beg=1 # First line for current file.
16204 ac_end=$ac_max_sed_lines # Line after last line for current file.
16205 ac_more_lines=:
16206 ac_sed_cmds=
16207 while $ac_more_lines; do
16208 if test $ac_beg -gt 1; then
16209 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16210 else
16211 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16212 fi
16213 if test ! -s $tmp/subs.frag; then
16214 ac_more_lines=false
16215 else
16216 # The purpose of the label and of the branching condition is to
16217 # speed up the sed processing (if there are no `@' at all, there
16218 # is no need to browse any of the substitutions).
16219 # These are the two extra sed commands mentioned above.
16220 (echo ':t
16221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16222 if test -z "$ac_sed_cmds"; then
16223 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16224 else
16225 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16226 fi
16227 ac_sed_frag=`expr $ac_sed_frag + 1`
16228 ac_beg=$ac_end
16229 ac_end=`expr $ac_end + $ac_max_sed_lines`
16230 fi
16231 done
16232 if test -z "$ac_sed_cmds"; then
16233 ac_sed_cmds=cat
16234 fi
16235 fi # test -n "$CONFIG_FILES"
16236
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF
16239 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16240 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16241 case $ac_file in
16242 - | *:- | *:-:* ) # input from stdin
16243 cat >$tmp/stdin
16244 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16246 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16247 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16248 * ) ac_file_in=$ac_file.in ;;
16249 esac
16250
16251 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16252 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16254 X"$ac_file" : 'X\(//\)[^/]' \| \
16255 X"$ac_file" : 'X\(//\)$' \| \
16256 X"$ac_file" : 'X\(/\)' \| \
16257 . : '\(.\)' 2>/dev/null ||
16258 echo X"$ac_file" |
16259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16261 /^X\(\/\/\)$/{ s//\1/; q; }
16262 /^X\(\/\).*/{ s//\1/; q; }
16263 s/.*/./; q'`
16264 { if $as_mkdir_p; then
16265 mkdir -p "$ac_dir"
16266 else
16267 as_dir="$ac_dir"
16268 as_dirs=
16269 while test ! -d "$as_dir"; do
16270 as_dirs="$as_dir $as_dirs"
16271 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16273 X"$as_dir" : 'X\(//\)[^/]' \| \
16274 X"$as_dir" : 'X\(//\)$' \| \
16275 X"$as_dir" : 'X\(/\)' \| \
16276 . : '\(.\)' 2>/dev/null ||
16277 echo X"$as_dir" |
16278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16280 /^X\(\/\/\)$/{ s//\1/; q; }
16281 /^X\(\/\).*/{ s//\1/; q; }
16282 s/.*/./; q'`
16283 done
16284 test ! -n "$as_dirs" || mkdir $as_dirs
16285 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16286 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16287 { (exit 1); exit 1; }; }; }
16288
16289 ac_builddir=.
16290
16291 if test "$ac_dir" != .; then
16292 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16293 # A "../" for each directory in $ac_dir_suffix.
16294 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16295 else
16296 ac_dir_suffix= ac_top_builddir=
16297 fi
16298
16299 case $srcdir in
16300 .) # No --srcdir option. We are building in place.
16301 ac_srcdir=.
16302 if test -z "$ac_top_builddir"; then
16303 ac_top_srcdir=.
16304 else
16305 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16306 fi ;;
16307 [\\/]* | ?:[\\/]* ) # Absolute path.
16308 ac_srcdir=$srcdir$ac_dir_suffix;
16309 ac_top_srcdir=$srcdir ;;
16310 *) # Relative path.
16311 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16312 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16313 esac
16314
16315 # Do not use `cd foo && pwd` to compute absolute paths, because
16316 # the directories may not exist.
16317 case `pwd` in
16318 .) ac_abs_builddir="$ac_dir";;
16319 *)
16320 case "$ac_dir" in
16321 .) ac_abs_builddir=`pwd`;;
16322 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16323 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16324 esac;;
16325 esac
16326 case $ac_abs_builddir in
16327 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16328 *)
16329 case ${ac_top_builddir}. in
16330 .) ac_abs_top_builddir=$ac_abs_builddir;;
16331 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16332 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16333 esac;;
16334 esac
16335 case $ac_abs_builddir in
16336 .) ac_abs_srcdir=$ac_srcdir;;
16337 *)
16338 case $ac_srcdir in
16339 .) ac_abs_srcdir=$ac_abs_builddir;;
16340 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16341 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16342 esac;;
16343 esac
16344 case $ac_abs_builddir in
16345 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16346 *)
16347 case $ac_top_srcdir in
16348 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16349 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16350 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16351 esac;;
16352 esac
16353
16354
16355
16356 if test x"$ac_file" != x-; then
16357 { echo "$as_me:$LINENO: creating $ac_file" >&5
16358 echo "$as_me: creating $ac_file" >&6;}
16359 rm -f "$ac_file"
16360 fi
16361 # Let's still pretend it is `configure' which instantiates (i.e., don't
16362 # use $as_me), people would be surprised to read:
16363 # /* config.h. Generated by config.status. */
16364 if test x"$ac_file" = x-; then
16365 configure_input=
16366 else
16367 configure_input="$ac_file. "
16368 fi
16369 configure_input=$configure_input"Generated from `echo $ac_file_in |
16370 sed 's,.*/,,'` by configure."
16371
16372 # First look for the input files in the build tree, otherwise in the
16373 # src tree.
16374 ac_file_inputs=`IFS=:
16375 for f in $ac_file_in; do
16376 case $f in
16377 -) echo $tmp/stdin ;;
16378 [\\/$]*)
16379 # Absolute (can't be DOS-style, as IFS=:)
16380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16381 echo "$as_me: error: cannot find input file: $f" >&2;}
16382 { (exit 1); exit 1; }; }
16383 echo "$f";;
16384 *) # Relative
16385 if test -f "$f"; then
16386 # Build tree
16387 echo "$f"
16388 elif test -f "$srcdir/$f"; then
16389 # Source tree
16390 echo "$srcdir/$f"
16391 else
16392 # /dev/null tree
16393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16394 echo "$as_me: error: cannot find input file: $f" >&2;}
16395 { (exit 1); exit 1; }; }
16396 fi;;
16397 esac
16398 done` || { (exit 1); exit 1; }
16399 _ACEOF
16400 cat >>$CONFIG_STATUS <<_ACEOF
16401 sed "$ac_vpsub
16402 $extrasub
16403 _ACEOF
16404 cat >>$CONFIG_STATUS <<\_ACEOF
16405 :t
16406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16407 s,@configure_input@,$configure_input,;t t
16408 s,@srcdir@,$ac_srcdir,;t t
16409 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16410 s,@top_srcdir@,$ac_top_srcdir,;t t
16411 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16412 s,@builddir@,$ac_builddir,;t t
16413 s,@abs_builddir@,$ac_abs_builddir,;t t
16414 s,@top_builddir@,$ac_top_builddir,;t t
16415 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16416 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16417 rm -f $tmp/stdin
16418 if test x"$ac_file" != x-; then
16419 mv $tmp/out $ac_file
16420 else
16421 cat $tmp/out
16422 rm -f $tmp/out
16423 fi
16424
16425 done
16426 _ACEOF
16427 cat >>$CONFIG_STATUS <<\_ACEOF
16428
16429 #
16430 # CONFIG_HEADER section.
16431 #
16432
16433 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16434 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16435 #
16436 # ac_d sets the value in "#define NAME VALUE" lines.
16437 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16438 ac_dB='[ ].*$,\1#\2'
16439 ac_dC=' '
16440 ac_dD=',;t'
16441 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16442 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16443 ac_uB='$,\1#\2define\3'
16444 ac_uC=' '
16445 ac_uD=',;t'
16446
16447 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16449 case $ac_file in
16450 - | *:- | *:-:* ) # input from stdin
16451 cat >$tmp/stdin
16452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16456 * ) ac_file_in=$ac_file.in ;;
16457 esac
16458
16459 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16460 echo "$as_me: creating $ac_file" >&6;}
16461
16462 # First look for the input files in the build tree, otherwise in the
16463 # src tree.
16464 ac_file_inputs=`IFS=:
16465 for f in $ac_file_in; do
16466 case $f in
16467 -) echo $tmp/stdin ;;
16468 [\\/$]*)
16469 # Absolute (can't be DOS-style, as IFS=:)
16470 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16471 echo "$as_me: error: cannot find input file: $f" >&2;}
16472 { (exit 1); exit 1; }; }
16473 # Do quote $f, to prevent DOS paths from being IFS'd.
16474 echo "$f";;
16475 *) # Relative
16476 if test -f "$f"; then
16477 # Build tree
16478 echo "$f"
16479 elif test -f "$srcdir/$f"; then
16480 # Source tree
16481 echo "$srcdir/$f"
16482 else
16483 # /dev/null tree
16484 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16485 echo "$as_me: error: cannot find input file: $f" >&2;}
16486 { (exit 1); exit 1; }; }
16487 fi;;
16488 esac
16489 done` || { (exit 1); exit 1; }
16490 # Remove the trailing spaces.
16491 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16492
16493 _ACEOF
16494
16495 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16496 # `conftest.undefs', that substitutes the proper values into
16497 # config.h.in to produce config.h. The first handles `#define'
16498 # templates, and the second `#undef' templates.
16499 # And first: Protect against being on the right side of a sed subst in
16500 # config.status. Protect against being in an unquoted here document
16501 # in config.status.
16502 rm -f conftest.defines conftest.undefs
16503 # Using a here document instead of a string reduces the quoting nightmare.
16504 # Putting comments in sed scripts is not portable.
16505 #
16506 # `end' is used to avoid that the second main sed command (meant for
16507 # 0-ary CPP macros) applies to n-ary macro definitions.
16508 # See the Autoconf documentation for `clear'.
16509 cat >confdef2sed.sed <<\_ACEOF
16510 s/[\\&,]/\\&/g
16511 s,[\\$`],\\&,g
16512 t clear
16513 : clear
16514 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16515 t end
16516 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16517 : end
16518 _ACEOF
16519 # If some macros were called several times there might be several times
16520 # the same #defines, which is useless. Nevertheless, we may not want to
16521 # sort them, since we want the *last* AC-DEFINE to be honored.
16522 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16523 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16524 rm -f confdef2sed.sed
16525
16526 # This sed command replaces #undef with comments. This is necessary, for
16527 # example, in the case of _POSIX_SOURCE, which is predefined and required
16528 # on some systems where configure will not decide to define it.
16529 cat >>conftest.undefs <<\_ACEOF
16530 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16531 _ACEOF
16532
16533 # Break up conftest.defines because some shells have a limit on the size
16534 # of here documents, and old seds have small limits too (100 cmds).
16535 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16536 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16537 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16538 echo ' :' >>$CONFIG_STATUS
16539 rm -f conftest.tail
16540 while grep . conftest.defines >/dev/null
16541 do
16542 # Write a limited-size here document to $tmp/defines.sed.
16543 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16544 # Speed up: don't consider the non `#define' lines.
16545 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16546 # Work around the forget-to-reset-the-flag bug.
16547 echo 't clr' >>$CONFIG_STATUS
16548 echo ': clr' >>$CONFIG_STATUS
16549 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16550 echo 'CEOF
16551 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16552 rm -f $tmp/in
16553 mv $tmp/out $tmp/in
16554 ' >>$CONFIG_STATUS
16555 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16556 rm -f conftest.defines
16557 mv conftest.tail conftest.defines
16558 done
16559 rm -f conftest.defines
16560 echo ' fi # grep' >>$CONFIG_STATUS
16561 echo >>$CONFIG_STATUS
16562
16563 # Break up conftest.undefs because some shells have a limit on the size
16564 # of here documents, and old seds have small limits too (100 cmds).
16565 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16566 rm -f conftest.tail
16567 while grep . conftest.undefs >/dev/null
16568 do
16569 # Write a limited-size here document to $tmp/undefs.sed.
16570 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16571 # Speed up: don't consider the non `#undef'
16572 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16573 # Work around the forget-to-reset-the-flag bug.
16574 echo 't clr' >>$CONFIG_STATUS
16575 echo ': clr' >>$CONFIG_STATUS
16576 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16577 echo 'CEOF
16578 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16579 rm -f $tmp/in
16580 mv $tmp/out $tmp/in
16581 ' >>$CONFIG_STATUS
16582 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16583 rm -f conftest.undefs
16584 mv conftest.tail conftest.undefs
16585 done
16586 rm -f conftest.undefs
16587
16588 cat >>$CONFIG_STATUS <<\_ACEOF
16589 # Let's still pretend it is `configure' which instantiates (i.e., don't
16590 # use $as_me), people would be surprised to read:
16591 # /* config.h. Generated by config.status. */
16592 if test x"$ac_file" = x-; then
16593 echo "/* Generated by configure. */" >$tmp/config.h
16594 else
16595 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16596 fi
16597 cat $tmp/in >>$tmp/config.h
16598 rm -f $tmp/in
16599 if test x"$ac_file" != x-; then
16600 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16601 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16602 echo "$as_me: $ac_file is unchanged" >&6;}
16603 else
16604 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16606 X"$ac_file" : 'X\(//\)[^/]' \| \
16607 X"$ac_file" : 'X\(//\)$' \| \
16608 X"$ac_file" : 'X\(/\)' \| \
16609 . : '\(.\)' 2>/dev/null ||
16610 echo X"$ac_file" |
16611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16613 /^X\(\/\/\)$/{ s//\1/; q; }
16614 /^X\(\/\).*/{ s//\1/; q; }
16615 s/.*/./; q'`
16616 { if $as_mkdir_p; then
16617 mkdir -p "$ac_dir"
16618 else
16619 as_dir="$ac_dir"
16620 as_dirs=
16621 while test ! -d "$as_dir"; do
16622 as_dirs="$as_dir $as_dirs"
16623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16625 X"$as_dir" : 'X\(//\)[^/]' \| \
16626 X"$as_dir" : 'X\(//\)$' \| \
16627 X"$as_dir" : 'X\(/\)' \| \
16628 . : '\(.\)' 2>/dev/null ||
16629 echo X"$as_dir" |
16630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16632 /^X\(\/\/\)$/{ s//\1/; q; }
16633 /^X\(\/\).*/{ s//\1/; q; }
16634 s/.*/./; q'`
16635 done
16636 test ! -n "$as_dirs" || mkdir $as_dirs
16637 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16638 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16639 { (exit 1); exit 1; }; }; }
16640
16641 rm -f $ac_file
16642 mv $tmp/config.h $ac_file
16643 fi
16644 else
16645 cat $tmp/config.h
16646 rm -f $tmp/config.h
16647 fi
16648 done
16649 _ACEOF
16650 cat >>$CONFIG_STATUS <<\_ACEOF
16651
16652 #
16653 # CONFIG_COMMANDS section.
16654 #
16655 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16656 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16657 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16658 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16659 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$ac_dest" : 'X\(//\)[^/]' \| \
16661 X"$ac_dest" : 'X\(//\)$' \| \
16662 X"$ac_dest" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16664 echo X"$ac_dest" |
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16669 s/.*/./; q'`
16670 { if $as_mkdir_p; then
16671 mkdir -p "$ac_dir"
16672 else
16673 as_dir="$ac_dir"
16674 as_dirs=
16675 while test ! -d "$as_dir"; do
16676 as_dirs="$as_dir $as_dirs"
16677 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679 X"$as_dir" : 'X\(//\)[^/]' \| \
16680 X"$as_dir" : 'X\(//\)$' \| \
16681 X"$as_dir" : 'X\(/\)' \| \
16682 . : '\(.\)' 2>/dev/null ||
16683 echo X"$as_dir" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16686 /^X\(\/\/\)$/{ s//\1/; q; }
16687 /^X\(\/\).*/{ s//\1/; q; }
16688 s/.*/./; q'`
16689 done
16690 test ! -n "$as_dirs" || mkdir $as_dirs
16691 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16692 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16693 { (exit 1); exit 1; }; }; }
16694
16695 ac_builddir=.
16696
16697 if test "$ac_dir" != .; then
16698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16699 # A "../" for each directory in $ac_dir_suffix.
16700 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16701 else
16702 ac_dir_suffix= ac_top_builddir=
16703 fi
16704
16705 case $srcdir in
16706 .) # No --srcdir option. We are building in place.
16707 ac_srcdir=.
16708 if test -z "$ac_top_builddir"; then
16709 ac_top_srcdir=.
16710 else
16711 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16712 fi ;;
16713 [\\/]* | ?:[\\/]* ) # Absolute path.
16714 ac_srcdir=$srcdir$ac_dir_suffix;
16715 ac_top_srcdir=$srcdir ;;
16716 *) # Relative path.
16717 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16718 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16719 esac
16720
16721 # Do not use `cd foo && pwd` to compute absolute paths, because
16722 # the directories may not exist.
16723 case `pwd` in
16724 .) ac_abs_builddir="$ac_dir";;
16725 *)
16726 case "$ac_dir" in
16727 .) ac_abs_builddir=`pwd`;;
16728 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16729 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16730 esac;;
16731 esac
16732 case $ac_abs_builddir in
16733 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16734 *)
16735 case ${ac_top_builddir}. in
16736 .) ac_abs_top_builddir=$ac_abs_builddir;;
16737 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16738 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16739 esac;;
16740 esac
16741 case $ac_abs_builddir in
16742 .) ac_abs_srcdir=$ac_srcdir;;
16743 *)
16744 case $ac_srcdir in
16745 .) ac_abs_srcdir=$ac_abs_builddir;;
16746 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16747 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16748 esac;;
16749 esac
16750 case $ac_abs_builddir in
16751 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16752 *)
16753 case $ac_top_srcdir in
16754 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16755 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16756 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16757 esac;;
16758 esac
16759
16760
16761 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16762 echo "$as_me: executing $ac_dest commands" >&6;}
16763 case $ac_dest in
16764 default )
16765 case ${CONFIG_HEADERS} in
16766 *auto-host.h:config.in*)
16767 echo > cstamp-h ;;
16768 esac
16769 # Make sure all the subdirs exist.
16770 for d in $subdirs doc build
16771 do
16772 test -d $d || mkdir $d
16773 done
16774 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16775 # bootstrapping and the installation procedure can still use
16776 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16777 # FLAGS_TO_PASS has been modified to solve the problem there.
16778 # This is virtually a duplicate of what happens in configure.lang; we do
16779 # an extra check to make sure this only happens if ln -s can be used.
16780 case "$LN_S" in
16781 *-s*)
16782 for d in ${subdirs} ; do
16783 STARTDIR=`${PWDCMD-pwd}`
16784 cd $d
16785 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16786 do
16787 rm -f $t
16788 $LN_S ../$t $t 2>/dev/null
16789 done
16790 cd $STARTDIR
16791 done
16792 ;;
16793 esac
16794 ;;
16795 esac
16796 done
16797 _ACEOF
16798
16799 cat >>$CONFIG_STATUS <<\_ACEOF
16800
16801 { (exit 0); exit 0; }
16802 _ACEOF
16803 chmod +x $CONFIG_STATUS
16804 ac_clean_files=$ac_clean_files_save
16805
16806
16807 # configure is writing to config.log, and then calls config.status.
16808 # config.status does its own redirection, appending to config.log.
16809 # Unfortunately, on DOS this fails, as config.log is still kept open
16810 # by configure, so config.status won't be able to write to it; its
16811 # output is simply discarded. So we exec the FD to /dev/null,
16812 # effectively closing config.log, so it can be properly (re)opened and
16813 # appended to by config.status. When coming back to configure, we
16814 # need to make the FD available again.
16815 if test "$no_create" != yes; then
16816 ac_cs_success=:
16817 ac_config_status_args=
16818 test "$silent" = yes &&
16819 ac_config_status_args="$ac_config_status_args --quiet"
16820 exec 5>/dev/null
16821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16822 exec 5>>config.log
16823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16824 # would make configure fail if this is the last instruction.
16825 $ac_cs_success || { (exit 1); exit 1; }
16826 fi
16827