]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
re PR testsuite/27476 (ACATS: Ada testsuite Bourne shell compatibility problem on...
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811 cat <<_ACEOF
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838 _ACEOF
839
840 cat <<\_ACEOF
841
842 Program names:
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846
847 System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858 Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files in source dir
863 intended for creating source tarballs for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST,
869 enable only specific categories of checks.
870 Categories are: yes,no,all,none,release.
871 Flags are: assert,fold,gc,gcac,misc,
872 rtlflag,rtl,runtime,tree,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
879 default is noopt
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
904 of the registry key
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
911
912 Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search for libiconv in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use 128-bit long double by default.
936 --with-gc={page,zone} choose the garbage collection mechanism to use
937 with the compiler
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries in DIR LIBDIR
940
941 Some influential environment variables:
942 CC C compiler command
943 CFLAGS C compiler flags
944 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
945 nonstandard directory <lib dir>
946 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
947 headers in a nonstandard directory <include dir>
948 CPP C preprocessor
949 GMPLIBS How to link GMP
950 GMPINC How to find GMP include files
951
952 Use these variables to override the choices made by `configure' or to help
953 it to find libraries and programs with nonstandard names/locations.
954
955 _ACEOF
956 fi
957
958 if test "$ac_init_help" = "recursive"; then
959 # If there are subdirs, report their specific --help.
960 ac_popdir=`pwd`
961 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
962 test -d $ac_dir || continue
963 ac_builddir=.
964
965 if test "$ac_dir" != .; then
966 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
967 # A "../" for each directory in $ac_dir_suffix.
968 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
969 else
970 ac_dir_suffix= ac_top_builddir=
971 fi
972
973 case $srcdir in
974 .) # No --srcdir option. We are building in place.
975 ac_srcdir=.
976 if test -z "$ac_top_builddir"; then
977 ac_top_srcdir=.
978 else
979 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
980 fi ;;
981 [\\/]* | ?:[\\/]* ) # Absolute path.
982 ac_srcdir=$srcdir$ac_dir_suffix;
983 ac_top_srcdir=$srcdir ;;
984 *) # Relative path.
985 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
986 ac_top_srcdir=$ac_top_builddir$srcdir ;;
987 esac
988
989 # Do not use `cd foo && pwd` to compute absolute paths, because
990 # the directories may not exist.
991 case `pwd` in
992 .) ac_abs_builddir="$ac_dir";;
993 *)
994 case "$ac_dir" in
995 .) ac_abs_builddir=`pwd`;;
996 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
997 *) ac_abs_builddir=`pwd`/"$ac_dir";;
998 esac;;
999 esac
1000 case $ac_abs_builddir in
1001 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 *)
1003 case ${ac_top_builddir}. in
1004 .) ac_abs_top_builddir=$ac_abs_builddir;;
1005 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1007 esac;;
1008 esac
1009 case $ac_abs_builddir in
1010 .) ac_abs_srcdir=$ac_srcdir;;
1011 *)
1012 case $ac_srcdir in
1013 .) ac_abs_srcdir=$ac_abs_builddir;;
1014 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1015 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1016 esac;;
1017 esac
1018 case $ac_abs_builddir in
1019 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 *)
1021 case $ac_top_srcdir in
1022 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1023 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1025 esac;;
1026 esac
1027
1028 cd $ac_dir
1029 # Check for guested configure; otherwise get Cygnus style configure.
1030 if test -f $ac_srcdir/configure.gnu; then
1031 echo
1032 $SHELL $ac_srcdir/configure.gnu --help=recursive
1033 elif test -f $ac_srcdir/configure; then
1034 echo
1035 $SHELL $ac_srcdir/configure --help=recursive
1036 elif test -f $ac_srcdir/configure.ac ||
1037 test -f $ac_srcdir/configure.in; then
1038 echo
1039 $ac_configure --help
1040 else
1041 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1042 fi
1043 cd $ac_popdir
1044 done
1045 fi
1046
1047 test -n "$ac_init_help" && exit 0
1048 if $ac_init_version; then
1049 cat <<\_ACEOF
1050
1051 Copyright (C) 2003 Free Software Foundation, Inc.
1052 This configure script is free software; the Free Software Foundation
1053 gives unlimited permission to copy, distribute and modify it.
1054 _ACEOF
1055 exit 0
1056 fi
1057 exec 5>config.log
1058 cat >&5 <<_ACEOF
1059 This file contains any messages produced by compilers while
1060 running configure, to aid debugging if configure makes a mistake.
1061
1062 It was created by $as_me, which was
1063 generated by GNU Autoconf 2.59. Invocation command line was
1064
1065 $ $0 $@
1066
1067 _ACEOF
1068 {
1069 cat <<_ASUNAME
1070 ## --------- ##
1071 ## Platform. ##
1072 ## --------- ##
1073
1074 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1075 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1076 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1077 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1078 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1079
1080 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1081 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1082
1083 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1084 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1085 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1086 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1087 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1088 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1089 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090
1091 _ASUNAME
1092
1093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 for as_dir in $PATH
1095 do
1096 IFS=$as_save_IFS
1097 test -z "$as_dir" && as_dir=.
1098 echo "PATH: $as_dir"
1099 done
1100
1101 } >&5
1102
1103 cat >&5 <<_ACEOF
1104
1105
1106 ## ----------- ##
1107 ## Core tests. ##
1108 ## ----------- ##
1109
1110 _ACEOF
1111
1112
1113 # Keep a trace of the command line.
1114 # Strip out --no-create and --no-recursion so they do not pile up.
1115 # Strip out --silent because we don't want to record it for future runs.
1116 # Also quote any args containing shell meta-characters.
1117 # Make two passes to allow for proper duplicate-argument suppression.
1118 ac_configure_args=
1119 ac_configure_args0=
1120 ac_configure_args1=
1121 ac_sep=
1122 ac_must_keep_next=false
1123 for ac_pass in 1 2
1124 do
1125 for ac_arg
1126 do
1127 case $ac_arg in
1128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 continue ;;
1132 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1133 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1134 esac
1135 case $ac_pass in
1136 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1137 2)
1138 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1139 if test $ac_must_keep_next = true; then
1140 ac_must_keep_next=false # Got value, back to normal.
1141 else
1142 case $ac_arg in
1143 *=* | --config-cache | -C | -disable-* | --disable-* \
1144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1146 | -with-* | --with-* | -without-* | --without-* | --x)
1147 case "$ac_configure_args0 " in
1148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1149 esac
1150 ;;
1151 -* ) ac_must_keep_next=true ;;
1152 esac
1153 fi
1154 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1155 # Get rid of the leading space.
1156 ac_sep=" "
1157 ;;
1158 esac
1159 done
1160 done
1161 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1162 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1163
1164 # When interrupted or exit'd, cleanup temporary files, and complete
1165 # config.log. We remove comments because anyway the quotes in there
1166 # would cause problems or look ugly.
1167 # WARNING: Be sure not to use single quotes in there, as some shells,
1168 # such as our DU 5.0 friend, will then `close' the trap.
1169 trap 'exit_status=$?
1170 # Save into config.log some information that might help in debugging.
1171 {
1172 echo
1173
1174 cat <<\_ASBOX
1175 ## ---------------- ##
1176 ## Cache variables. ##
1177 ## ---------------- ##
1178 _ASBOX
1179 echo
1180 # The following way of writing the cache mishandles newlines in values,
1181 {
1182 (set) 2>&1 |
1183 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1184 *ac_space=\ *)
1185 sed -n \
1186 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 ;;
1189 *)
1190 sed -n \
1191 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1192 ;;
1193 esac;
1194 }
1195 echo
1196
1197 cat <<\_ASBOX
1198 ## ----------------- ##
1199 ## Output variables. ##
1200 ## ----------------- ##
1201 _ASBOX
1202 echo
1203 for ac_var in $ac_subst_vars
1204 do
1205 eval ac_val=$`echo $ac_var`
1206 echo "$ac_var='"'"'$ac_val'"'"'"
1207 done | sort
1208 echo
1209
1210 if test -n "$ac_subst_files"; then
1211 cat <<\_ASBOX
1212 ## ------------- ##
1213 ## Output files. ##
1214 ## ------------- ##
1215 _ASBOX
1216 echo
1217 for ac_var in $ac_subst_files
1218 do
1219 eval ac_val=$`echo $ac_var`
1220 echo "$ac_var='"'"'$ac_val'"'"'"
1221 done | sort
1222 echo
1223 fi
1224
1225 if test -s confdefs.h; then
1226 cat <<\_ASBOX
1227 ## ----------- ##
1228 ## confdefs.h. ##
1229 ## ----------- ##
1230 _ASBOX
1231 echo
1232 sed "/^$/d" confdefs.h | sort
1233 echo
1234 fi
1235 test "$ac_signal" != 0 &&
1236 echo "$as_me: caught signal $ac_signal"
1237 echo "$as_me: exit $exit_status"
1238 } >&5
1239 rm -f core *.core &&
1240 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1241 exit $exit_status
1242 ' 0
1243 for ac_signal in 1 2 13 15; do
1244 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 done
1246 ac_signal=0
1247
1248 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1249 rm -rf conftest* confdefs.h
1250 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1251 echo >confdefs.h
1252
1253 # Predefined preprocessor variables.
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 _ACEOF
1273
1274
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 _ACEOF
1278
1279
1280 # Let the site file select an alternate cache file if it wants to.
1281 # Prefer explicitly selected file to automatically selected ones.
1282 if test -z "$CONFIG_SITE"; then
1283 if test "x$prefix" != xNONE; then
1284 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1285 else
1286 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1287 fi
1288 fi
1289 for ac_site_file in $CONFIG_SITE; do
1290 if test -r "$ac_site_file"; then
1291 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1292 echo "$as_me: loading site script $ac_site_file" >&6;}
1293 sed 's/^/| /' "$ac_site_file" >&5
1294 . "$ac_site_file"
1295 fi
1296 done
1297
1298 if test -r "$cache_file"; then
1299 # Some versions of bash will fail to source /dev/null (special
1300 # files actually), so we avoid doing that.
1301 if test -f "$cache_file"; then
1302 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1303 echo "$as_me: loading cache $cache_file" >&6;}
1304 case $cache_file in
1305 [\\/]* | ?:[\\/]* ) . $cache_file;;
1306 *) . ./$cache_file;;
1307 esac
1308 fi
1309 else
1310 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1311 echo "$as_me: creating cache $cache_file" >&6;}
1312 >$cache_file
1313 fi
1314
1315 # Check that the precious variables saved in the cache have kept the same
1316 # value.
1317 ac_cache_corrupted=false
1318 for ac_var in `(set) 2>&1 |
1319 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1321 eval ac_new_set=\$ac_env_${ac_var}_set
1322 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1323 eval ac_new_val="\$ac_env_${ac_var}_value"
1324 case $ac_old_set,$ac_new_set in
1325 set,)
1326 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1328 ac_cache_corrupted=: ;;
1329 ,set)
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1333 ,);;
1334 *)
1335 if test "x$ac_old_val" != "x$ac_new_val"; then
1336 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1337 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1338 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1339 echo "$as_me: former value: $ac_old_val" >&2;}
1340 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1341 echo "$as_me: current value: $ac_new_val" >&2;}
1342 ac_cache_corrupted=:
1343 fi;;
1344 esac
1345 # Pass precious variables to config.status.
1346 if test "$ac_new_set" = set; then
1347 case $ac_new_val in
1348 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1349 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1350 *) ac_arg=$ac_var=$ac_new_val ;;
1351 esac
1352 case " $ac_configure_args " in
1353 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1354 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 esac
1356 fi
1357 done
1358 if $ac_cache_corrupted; then
1359 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1360 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1361 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1362 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1363 { (exit 1); exit 1; }; }
1364 fi
1365
1366 ac_ext=c
1367 ac_cpp='$CPP $CPPFLAGS'
1368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1392
1393
1394 gcc_version=`cat $srcdir/BASE-VER`
1395
1396 # Determine the host, build, and target systems
1397 ac_aux_dir=
1398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1399 if test -f $ac_dir/install-sh; then
1400 ac_aux_dir=$ac_dir
1401 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 break
1403 elif test -f $ac_dir/install.sh; then
1404 ac_aux_dir=$ac_dir
1405 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 break
1407 elif test -f $ac_dir/shtool; then
1408 ac_aux_dir=$ac_dir
1409 ac_install_sh="$ac_aux_dir/shtool install -c"
1410 break
1411 fi
1412 done
1413 if test -z "$ac_aux_dir"; then
1414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1416 { (exit 1); exit 1; }; }
1417 fi
1418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1420 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421
1422 # Make sure we can run config.sub.
1423 $ac_config_sub sun4 >/dev/null 2>&1 ||
1424 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426 { (exit 1); exit 1; }; }
1427
1428 echo "$as_me:$LINENO: checking build system type" >&5
1429 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430 if test "${ac_cv_build+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_build_alias=$build_alias
1434 test -z "$ac_cv_build_alias" &&
1435 ac_cv_build_alias=`$ac_config_guess`
1436 test -z "$ac_cv_build_alias" &&
1437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439 { (exit 1); exit 1; }; }
1440 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447 echo "${ECHO_T}$ac_cv_build" >&6
1448 build=$ac_cv_build
1449 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454 echo "$as_me:$LINENO: checking host system type" >&5
1455 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456 if test "${ac_cv_host+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459 ac_cv_host_alias=$host_alias
1460 test -z "$ac_cv_host_alias" &&
1461 ac_cv_host_alias=$ac_cv_build_alias
1462 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1466
1467 fi
1468 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469 echo "${ECHO_T}$ac_cv_host" >&6
1470 host=$ac_cv_host
1471 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476 echo "$as_me:$LINENO: checking target system type" >&5
1477 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478 if test "${ac_cv_target+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 ac_cv_target_alias=$target_alias
1482 test "x$ac_cv_target_alias" = "x" &&
1483 ac_cv_target_alias=$ac_cv_host_alias
1484 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1488
1489 fi
1490 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491 echo "${ECHO_T}$ac_cv_target" >&6
1492 target=$ac_cv_target
1493 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496
1497
1498 # The aliases save the names the user supplied, while $host etc.
1499 # will get canonicalized.
1500 test -n "$target_alias" &&
1501 test "$program_prefix$program_suffix$program_transform_name" = \
1502 NONENONEs,x,x, &&
1503 program_prefix=${target_alias}-
1504
1505 # Determine the noncanonical target name, for directory use.
1506 case ${build_alias} in
1507 "") build_noncanonical=${build} ;;
1508 *) build_noncanonical=${build_alias} ;;
1509 esac
1510
1511 case ${host_alias} in
1512 "") host_noncanonical=${build_noncanonical} ;;
1513 *) host_noncanonical=${host_alias} ;;
1514 esac
1515
1516 case ${target_alias} in
1517 "") target_noncanonical=${host_noncanonical} ;;
1518 *) target_noncanonical=${target_alias} ;;
1519 esac
1520
1521
1522
1523
1524 # Determine the target- and build-specific subdirectories
1525 # Prefix 'build-' so this never conflicts with target_subdir.
1526 build_subdir="build-${build_noncanonical}"
1527 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1528 if ( test $srcdir = . && test -d gcc ) \
1529 || test -d $srcdir/../host-${host_noncanonical}; then
1530 host_subdir="host-${host_noncanonical}"
1531 else
1532 host_subdir=.
1533 fi
1534 # No prefix.
1535 target_subdir=${target_noncanonical}
1536
1537
1538 # Set program_transform_name
1539 test "$program_prefix" != NONE &&
1540 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1541 # Use a double $ so make ignores it.
1542 test "$program_suffix" != NONE &&
1543 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1544 # Double any \ or $. echo might interpret backslashes.
1545 # By default was `s,x,x', remove it if useless.
1546 cat <<\_ACEOF >conftest.sed
1547 s/[\\$]/&&/g;s/;s,x,x,$//
1548 _ACEOF
1549 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1550 rm conftest.sed
1551
1552
1553 # Check for bogus environment variables.
1554 # Test if LIBRARY_PATH contains the notation for the current directory
1555 # since this would lead to problems installing/building glibc.
1556 # LIBRARY_PATH contains the current directory if one of the following
1557 # is true:
1558 # - one of the terminals (":" and ";") is the first or last sign
1559 # - two terminals occur directly after each other
1560 # - the path contains an element with a dot in it
1561 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1562 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1563 case ${LIBRARY_PATH} in
1564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1565 library_path_setting="contains current directory"
1566 ;;
1567 *)
1568 library_path_setting="ok"
1569 ;;
1570 esac
1571 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1572 echo "${ECHO_T}$library_path_setting" >&6
1573 if test "$library_path_setting" != "ok"; then
1574 { { echo "$as_me:$LINENO: error:
1575 *** LIBRARY_PATH shouldn't contain the current directory when
1576 *** building gcc. Please change the environment variable
1577 *** and run configure again." >&5
1578 echo "$as_me: error:
1579 *** LIBRARY_PATH shouldn't contain the current directory when
1580 *** building gcc. Please change the environment variable
1581 *** and run configure again." >&2;}
1582 { (exit 1); exit 1; }; }
1583 fi
1584
1585 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1586 # since this would lead to problems installing/building glibc.
1587 # GCC_EXEC_PREFIX contains the current directory if one of the following
1588 # is true:
1589 # - one of the terminals (":" and ";") is the first or last sign
1590 # - two terminals occur directly after each other
1591 # - the path contains an element with a dot in it
1592 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1593 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1594 case ${GCC_EXEC_PREFIX} in
1595 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1596 gcc_exec_prefix_setting="contains current directory"
1597 ;;
1598 *)
1599 gcc_exec_prefix_setting="ok"
1600 ;;
1601 esac
1602 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1603 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1604 if test "$gcc_exec_prefix_setting" != "ok"; then
1605 { { echo "$as_me:$LINENO: error:
1606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&5
1609 echo "$as_me: error:
1610 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1611 *** building gcc. Please change the environment variable
1612 *** and run configure again." >&2;}
1613 { (exit 1); exit 1; }; }
1614 fi
1615
1616 # -----------
1617 # Directories
1618 # -----------
1619
1620 # Specify the local prefix
1621 local_prefix=
1622
1623 # Check whether --with-local-prefix or --without-local-prefix was given.
1624 if test "${with_local_prefix+set}" = set; then
1625 withval="$with_local_prefix"
1626 case "${withval}" in
1627 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1628 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1629 { (exit 1); exit 1; }; } ;;
1630 no) ;;
1631 *) local_prefix=$with_local_prefix ;;
1632 esac
1633 fi;
1634
1635 # Default local prefix if it is empty
1636 if test x$local_prefix = x; then
1637 local_prefix=/usr/local
1638 fi
1639
1640 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1641 # passed in by the toplevel make and thus we'd get different behavior
1642 # depending on where we built the sources.
1643 gcc_gxx_include_dir=
1644 # Specify the g++ header file directory
1645
1646 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1647 if test "${with_gxx_include_dir+set}" = set; then
1648 withval="$with_gxx_include_dir"
1649 case "${withval}" in
1650 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1651 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1652 { (exit 1); exit 1; }; } ;;
1653 no) ;;
1654 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1655 esac
1656 fi;
1657
1658 if test x${gcc_gxx_include_dir} = x; then
1659 if test x${enable_version_specific_runtime_libs} = xyes; then
1660 gcc_gxx_include_dir='${libsubdir}/include/c++'
1661 else
1662 libstdcxx_incdir='c++/$(version)'
1663 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1664 fi
1665 fi
1666
1667
1668 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1669 if test "${with_cpp_install_dir+set}" = set; then
1670 withval="$with_cpp_install_dir"
1671 if test x$withval = xyes; then
1672 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1673 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1674 { (exit 1); exit 1; }; }
1675 elif test x$withval != xno; then
1676 cpp_install_dir=$withval
1677 fi
1678 fi;
1679
1680 # We would like to our source tree to be readonly. However when releases or
1681 # pre-releases are generated, the flex/bison generated files as well as the
1682 # various formats of manuals need to be included along with the rest of the
1683 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1684 # just that.
1685
1686 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1687 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1688 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1689 if test "${enable_generated_files_in_srcdir+set}" = set; then
1690 enableval="$enable_generated_files_in_srcdir"
1691 generated_files_in_srcdir=$enableval
1692 else
1693 generated_files_in_srcdir=no
1694 fi;
1695
1696 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1697 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1698
1699 if test "$generated_files_in_srcdir" = "yes"; then
1700 GENINSRC=''
1701 else
1702 GENINSRC='#'
1703 fi
1704
1705
1706 # -------------------
1707 # Find default linker
1708 # -------------------
1709
1710 # With GNU ld
1711
1712 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1713 if test "${with_gnu_ld+set}" = set; then
1714 withval="$with_gnu_ld"
1715 gnu_ld_flag="$with_gnu_ld"
1716 else
1717 gnu_ld_flag=no
1718 fi;
1719
1720 # With pre-defined ld
1721
1722 # Check whether --with-ld or --without-ld was given.
1723 if test "${with_ld+set}" = set; then
1724 withval="$with_ld"
1725 DEFAULT_LINKER="$with_ld"
1726 fi;
1727 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1728 if test ! -x "$DEFAULT_LINKER"; then
1729 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1730 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1731 { (exit 1); exit 1; }; }
1732 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1733 gnu_ld_flag=yes
1734 fi
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1738 _ACEOF
1739
1740 fi
1741
1742 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1743 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1744 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1745 if test x"$gnu_ld_flag" = x"no"; then
1746 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1747 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1748 else
1749 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1751 fi
1752 else
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757 # With demangler in GNU ld
1758
1759 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1760 if test "${with_demangler_in_ld+set}" = set; then
1761 withval="$with_demangler_in_ld"
1762 demangler_in_ld="$with_demangler_in_ld"
1763 else
1764 demangler_in_ld=no
1765 fi;
1766
1767 # ----------------------
1768 # Find default assembler
1769 # ----------------------
1770
1771 # With GNU as
1772
1773 # Check whether --with-gnu-as or --without-gnu-as was given.
1774 if test "${with_gnu_as+set}" = set; then
1775 withval="$with_gnu_as"
1776 gas_flag="$with_gnu_as"
1777 else
1778 gas_flag=no
1779 fi;
1780
1781
1782 # Check whether --with-as or --without-as was given.
1783 if test "${with_as+set}" = set; then
1784 withval="$with_as"
1785 DEFAULT_ASSEMBLER="$with_as"
1786 fi;
1787 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1788 if test ! -x "$DEFAULT_ASSEMBLER"; then
1789 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1790 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1791 { (exit 1); exit 1; }; }
1792 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1793 gas_flag=yes
1794 fi
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1798 _ACEOF
1799
1800 fi
1801
1802 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1803 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1804 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1805 if test x"$gas_flag" = x"no"; then
1806 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1807 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1808 else
1809 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1810 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1811 fi
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1815 fi
1816
1817 # ---------------
1818 # Find C compiler
1819 # ---------------
1820
1821 # If a non-executable a.out is present (e.g. created by GNU as above even if
1822 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1823 # file, even when creating an executable, so an execution test fails.
1824 # Remove possible default executable files to avoid this.
1825 #
1826 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1827 # Autoconf includes it.
1828 rm -f a.out a.exe b.out
1829
1830 # Find the native compiler
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 if test -n "$ac_tool_prefix"; then
1837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC="$CC" # Let the user override the test.
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2
1857 fi
1858 done
1859 done
1860
1861 fi
1862 fi
1863 CC=$ac_cv_prog_CC
1864 if test -n "$CC"; then
1865 echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870 fi
1871
1872 fi
1873 if test -z "$ac_cv_prog_CC"; then
1874 ac_ct_CC=$CC
1875 # Extract the first word of "gcc", so it can be a program name with args.
1876 set dummy gcc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884 else
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_ac_ct_CC="gcc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 break 2
1895 fi
1896 done
1897 done
1898
1899 fi
1900 fi
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1905 else
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1908 fi
1909
1910 CC=$ac_ct_CC
1911 else
1912 CC="$ac_cv_prog_CC"
1913 fi
1914
1915 if test -z "$CC"; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918 set dummy ${ac_tool_prefix}cc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_CC="${ac_tool_prefix}cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 CC=$ac_cv_prog_CC
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1947 else
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952 fi
1953 if test -z "$ac_cv_prog_CC"; then
1954 ac_ct_CC=$CC
1955 # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test -n "$ac_ct_CC"; then
1963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972 ac_cv_prog_ac_ct_CC="cc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 break 2
1975 fi
1976 done
1977 done
1978
1979 fi
1980 fi
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6
1985 else
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1988 fi
1989
1990 CC=$ac_ct_CC
1991 else
1992 CC="$ac_cv_prog_CC"
1993 fi
1994
1995 fi
1996 if test -z "$CC"; then
1997 # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test.
2006 else
2007 ac_prog_rejected=no
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011 IFS=$as_save_IFS
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2016 ac_prog_rejected=yes
2017 continue
2018 fi
2019 ac_cv_prog_CC="cc"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021 break 2
2022 fi
2023 done
2024 done
2025
2026 if test $ac_prog_rejected = yes; then
2027 # We found a bogon in the path, so make sure we never use it.
2028 set dummy $ac_cv_prog_CC
2029 shift
2030 if test $# != 0; then
2031 # We chose a different compiler from the bogus one.
2032 # However, it has the same basename, so the bogon will be chosen
2033 # first if we set CC to just the basename; use the full file name.
2034 shift
2035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2036 fi
2037 fi
2038 fi
2039 fi
2040 CC=$ac_cv_prog_CC
2041 if test -n "$CC"; then
2042 echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2044 else
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049 fi
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 for ac_prog in cl
2053 do
2054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067 IFS=$as_save_IFS
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 break 2
2074 fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 CC=$ac_cv_prog_CC
2081 if test -n "$CC"; then
2082 echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2084 else
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089 test -n "$CC" && break
2090 done
2091 fi
2092 if test -z "$CC"; then
2093 ac_ct_CC=$CC
2094 for ac_prog in cl
2095 do
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2126 else
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131 test -n "$ac_ct_CC" && break
2132 done
2133
2134 CC=$ac_ct_CC
2135 fi
2136
2137 fi
2138
2139
2140 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2145
2146 # Provide some information about the compiler.
2147 echo "$as_me:$LINENO:" \
2148 "checking for C compiler version" >&5
2149 ac_compiler=`set X $ac_compile; echo $2`
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151 (eval $ac_compiler --version </dev/null >&5) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156 (eval $ac_compiler -v </dev/null >&5) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161 (eval $ac_compiler -V </dev/null >&5) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2165
2166 cat >conftest.$ac_ext <<_ACEOF
2167 /* confdefs.h. */
2168 _ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2172
2173 int
2174 main ()
2175 {
2176
2177 ;
2178 return 0;
2179 }
2180 _ACEOF
2181 ac_clean_files_save=$ac_clean_files
2182 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183 # Try to create an executable without -o first, disregard a.out.
2184 # It will help us diagnose broken compilers, and finding out an intuition
2185 # of exeext.
2186 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190 (eval $ac_link_default) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; then
2194 # Find the output, starting from the most likely. This scheme is
2195 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196 # resort.
2197
2198 # Be careful to initialize this variable, since it used to be cached.
2199 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200 ac_cv_exeext=
2201 # b.out is created by i960 compilers.
2202 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203 do
2204 test -f "$ac_file" || continue
2205 case $ac_file in
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207 ;;
2208 conftest.$ac_ext )
2209 # This is the source file.
2210 ;;
2211 [ab].out )
2212 # We found the default executable, but exeext='' is most
2213 # certainly right.
2214 break;;
2215 *.* )
2216 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 # FIXME: I believe we export ac_cv_exeext for Libtool,
2218 # but it would be cool to find out if it's true. Does anybody
2219 # maintain Libtool? --akim.
2220 export ac_cv_exeext
2221 break;;
2222 * )
2223 break;;
2224 esac
2225 done
2226 else
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&2;}
2234 { (exit 77); exit 77; }; }
2235 fi
2236
2237 ac_exeext=$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_file" >&5
2239 echo "${ECHO_T}$ac_file" >&6
2240
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246 # If not cross compiling, check that we can run a simple program.
2247 if test "$cross_compiling" != yes; then
2248 if { ac_try='./$ac_file'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2254 cross_compiling=no
2255 else
2256 if test "$cross_compiling" = maybe; then
2257 cross_compiling=yes
2258 else
2259 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&2;}
2265 { (exit 1); exit 1; }; }
2266 fi
2267 fi
2268 fi
2269 echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6
2271
2272 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273 ac_clean_files=$ac_clean_files_save
2274 # Check the compiler produces executables we can run. If not, either
2275 # the compiler is broken, or we cross compile.
2276 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279 echo "${ECHO_T}$cross_compiling" >&6
2280
2281 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284 (eval $ac_link) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 # `rm'.
2292 for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 export ac_cv_exeext
2298 break;;
2299 * ) break;;
2300 esac
2301 done
2302 else
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2308 fi
2309
2310 rm -f conftest$ac_cv_exeext
2311 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2316 ac_exeext=$EXEEXT
2317 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319 if test "${ac_cv_objext+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h. */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2328
2329 int
2330 main ()
2331 {
2332
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.o conftest.obj
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344 case $ac_file in
2345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347 break;;
2348 esac
2349 done
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2359 fi
2360
2361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364 echo "${ECHO_T}$ac_cv_objext" >&6
2365 OBJEXT=$ac_cv_objext
2366 ac_objext=$OBJEXT
2367 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2378
2379 int
2380 main ()
2381 {
2382 #ifndef __GNUC__
2383 choke me
2384 #endif
2385
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest.$ac_objext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_compiler_gnu=yes
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418 fi
2419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422 fi
2423 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425 GCC=`test $ac_compiler_gnu = yes && echo yes`
2426 ac_test_CFLAGS=${CFLAGS+set}
2427 ac_save_CFLAGS=$CFLAGS
2428 CFLAGS="-g"
2429 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2440
2441 int
2442 main ()
2443 {
2444
2445 ;
2446 return 0;
2447 }
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451 (eval $ac_compile) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_prog_cc_g=yes
2472 else
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 ac_cv_prog_cc_g=no
2477 fi
2478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479 fi
2480 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2481 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2482 if test "$ac_test_CFLAGS" = set; then
2483 CFLAGS=$ac_save_CFLAGS
2484 elif test $ac_cv_prog_cc_g = yes; then
2485 if test "$GCC" = yes; then
2486 CFLAGS="-g -O2"
2487 else
2488 CFLAGS="-g"
2489 fi
2490 else
2491 if test "$GCC" = yes; then
2492 CFLAGS="-O2"
2493 else
2494 CFLAGS=
2495 fi
2496 fi
2497 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2498 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2499 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 ac_cv_prog_cc_stdc=no
2503 ac_save_CC=$CC
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h. */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2510 #include <stdarg.h>
2511 #include <stdio.h>
2512 #include <sys/types.h>
2513 #include <sys/stat.h>
2514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2515 struct buf { int x; };
2516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2517 static char *e (p, i)
2518 char **p;
2519 int i;
2520 {
2521 return p[i];
2522 }
2523 static char *f (char * (*g) (char **, int), char **p, ...)
2524 {
2525 char *s;
2526 va_list v;
2527 va_start (v,p);
2528 s = g (p, va_arg (v,int));
2529 va_end (v);
2530 return s;
2531 }
2532
2533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2534 function prototypes and stuff, but not '\xHH' hex character constants.
2535 These don't provoke an error unfortunately, instead are silently treated
2536 as 'x'. The following induces an error, until -std1 is added to get
2537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2538 array size at least. It's necessary to write '\x00'==0 to get something
2539 that's true only with -std1. */
2540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546 int argc;
2547 char **argv;
2548 int
2549 main ()
2550 {
2551 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 # Don't try gcc -ansi; that turns off useful extensions and
2557 # breaks some systems' header files.
2558 # AIX -qlanglvl=ansi
2559 # Ultrix and OSF/1 -std1
2560 # HP-UX 10.20 and later -Ae
2561 # HP-UX older versions -Aa -D_HPUX_SOURCE
2562 # SVR4 -Xc -D__EXTENSIONS__
2563 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564 do
2565 CC="$ac_save_CC $ac_arg"
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2569 ac_status=$?
2570 grep -v '^ *+' conftest.er1 >conftest.err
2571 rm -f conftest.er1
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 (eval $ac_try) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_cv_prog_cc_stdc=$ac_arg
2589 break
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 fi
2595 rm -f conftest.err conftest.$ac_objext
2596 done
2597 rm -f conftest.$ac_ext conftest.$ac_objext
2598 CC=$ac_save_CC
2599
2600 fi
2601
2602 case "x$ac_cv_prog_cc_stdc" in
2603 x|xno)
2604 echo "$as_me:$LINENO: result: none needed" >&5
2605 echo "${ECHO_T}none needed" >&6 ;;
2606 *)
2607 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2608 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2609 CC="$CC $ac_cv_prog_cc_stdc" ;;
2610 esac
2611
2612 # Some people use a C++ compiler to compile C. Since we use `exit',
2613 # in C++ we need to declare it. In case someone uses the same compiler
2614 # for both compiling C and C++ we need to have the C++ compiler decide
2615 # the declaration of exit, since it's the most demanding environment.
2616 cat >conftest.$ac_ext <<_ACEOF
2617 #ifndef __cplusplus
2618 choke me
2619 #endif
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623 (eval $ac_compile) 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -z "$ac_c_werror_flag"
2631 || test ! -s conftest.err'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2643 for ac_declaration in \
2644 '' \
2645 'extern "C" void std::exit (int) throw (); using std::exit;' \
2646 'extern "C" void std::exit (int); using std::exit;' \
2647 'extern "C" void exit (int) throw ();' \
2648 'extern "C" void exit (int);' \
2649 'void exit (int);'
2650 do
2651 cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h. */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h. */
2657 $ac_declaration
2658 #include <stdlib.h>
2659 int
2660 main ()
2661 {
2662 exit (42);
2663 ;
2664 return 0;
2665 }
2666 _ACEOF
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>conftest.er1
2670 ac_status=$?
2671 grep -v '^ *+' conftest.er1 >conftest.err
2672 rm -f conftest.er1
2673 cat conftest.err >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -z "$ac_c_werror_flag"
2677 || test ! -s conftest.err'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; } &&
2683 { ac_try='test -s conftest.$ac_objext'
2684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 (eval $ac_try) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2689 :
2690 else
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694 continue
2695 fi
2696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 $ac_declaration
2704 int
2705 main ()
2706 {
2707 exit (42);
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag"
2722 || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 break
2735 else
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 done
2742 rm -f conftest*
2743 if test -n "$ac_declaration"; then
2744 echo '#ifdef __cplusplus' >>confdefs.h
2745 echo $ac_declaration >>confdefs.h
2746 echo '#endif' >>confdefs.h
2747 fi
2748
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 fi
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 ac_ext=c
2756 ac_cpp='$CPP $CPPFLAGS'
2757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761 if test "x$CC" != xcc; then
2762 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2763 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2764 else
2765 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2766 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2767 fi
2768 set dummy $CC; ac_cc=`echo $2 |
2769 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2770 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779
2780 int
2781 main ()
2782 {
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 # Make sure it works both with $CC and with simple cc.
2789 # We do the test twice because some compilers refuse to overwrite an
2790 # existing .o file with -o, though they will create one.
2791 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2792 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); };
2802 then
2803 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2804 if test "x$CC" != xcc; then
2805 # Test first that cc exists at all.
2806 if { ac_try='cc -c conftest.$ac_ext >&5'
2807 { (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); }; }; then
2812 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2813 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 (eval $ac_try) 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); };
2823 then
2824 # cc works too.
2825 :
2826 else
2827 # cc exists but doesn't like -o.
2828 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2829 fi
2830 fi
2831 fi
2832 else
2833 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2834 fi
2835 rm -f conftest*
2836
2837 fi
2838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2839 echo "$as_me:$LINENO: result: yes" >&5
2840 echo "${ECHO_T}yes" >&6
2841 else
2842 echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6
2844
2845 cat >>confdefs.h <<\_ACEOF
2846 #define NO_MINUS_C_MINUS_O 1
2847 _ACEOF
2848
2849 fi
2850
2851 # expand $ac_aux_dir to an absolute path
2852 am_aux_dir=`cd $ac_aux_dir && pwd`
2853
2854 # FIXME: we rely on the cache variable name because
2855 # there is no other way.
2856 set dummy $CC
2857 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2859 # Losing compiler, so override with the script.
2860 # FIXME: It is wrong to rewrite CC.
2861 # But if we don't then we get into trouble of one sort or another.
2862 # A longer-term fix would be to have automake use am__CC in this case,
2863 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2864 CC="$am_aux_dir/compile $CC"
2865 fi
2866
2867 # autoconf is lame and doesn't give us any substitution variable for this.
2868 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2869 NO_MINUS_C_MINUS_O=yes
2870 else
2871 OUTPUT_OPTION='-o $@'
2872 fi
2873
2874
2875
2876 # -------------------------
2877 # Check C compiler features
2878 # -------------------------
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2887 # On Suns, sometimes $CPP names a directory.
2888 if test -n "$CPP" && test -d "$CPP"; then
2889 CPP=
2890 fi
2891 if test -z "$CPP"; then
2892 if test "${ac_cv_prog_CPP+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 # Double quotes because CPP needs to be expanded
2896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 do
2898 ac_preproc_ok=false
2899 for ac_c_preproc_warn_flag in '' yes
2900 do
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2904 # <limits.h> exists even on freestanding compilers.
2905 # On the NeXT, cc -E runs the code through the compiler's parser,
2906 # not just through cpp. "Syntax error" is here to catch this case.
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #ifdef __STDC__
2914 # include <limits.h>
2915 #else
2916 # include <assert.h>
2917 #endif
2918 Syntax error
2919 _ACEOF
2920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2931 else
2932 ac_cpp_err=
2933 fi
2934 else
2935 ac_cpp_err=yes
2936 fi
2937 if test -z "$ac_cpp_err"; then
2938 :
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 # Broken: fails on valid input.
2944 continue
2945 fi
2946 rm -f conftest.err conftest.$ac_ext
2947
2948 # OK, works on sane cases. Now check whether non-existent headers
2949 # can be detected and how.
2950 cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <ac_nonexistent.h>
2957 _ACEOF
2958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2969 else
2970 ac_cpp_err=
2971 fi
2972 else
2973 ac_cpp_err=yes
2974 fi
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2977 continue
2978 else
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 # Passes both tests.
2983 ac_preproc_ok=:
2984 break
2985 fi
2986 rm -f conftest.err conftest.$ac_ext
2987
2988 done
2989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2990 rm -f conftest.err conftest.$ac_ext
2991 if $ac_preproc_ok; then
2992 break
2993 fi
2994
2995 done
2996 ac_cv_prog_CPP=$CPP
2997
2998 fi
2999 CPP=$ac_cv_prog_CPP
3000 else
3001 ac_cv_prog_CPP=$CPP
3002 fi
3003 echo "$as_me:$LINENO: result: $CPP" >&5
3004 echo "${ECHO_T}$CPP" >&6
3005 ac_preproc_ok=false
3006 for ac_c_preproc_warn_flag in '' yes
3007 do
3008 # Use a header file that comes with gcc, so configuring glibc
3009 # with a fresh cross-compiler works.
3010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3011 # <limits.h> exists even on freestanding compilers.
3012 # On the NeXT, cc -E runs the code through the compiler's parser,
3013 # not just through cpp. "Syntax error" is here to catch this case.
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #ifdef __STDC__
3021 # include <limits.h>
3022 #else
3023 # include <assert.h>
3024 #endif
3025 Syntax error
3026 _ACEOF
3027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null; then
3035 if test -s conftest.err; then
3036 ac_cpp_err=$ac_c_preproc_warn_flag
3037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3038 else
3039 ac_cpp_err=
3040 fi
3041 else
3042 ac_cpp_err=yes
3043 fi
3044 if test -z "$ac_cpp_err"; then
3045 :
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 # Broken: fails on valid input.
3051 continue
3052 fi
3053 rm -f conftest.err conftest.$ac_ext
3054
3055 # OK, works on sane cases. Now check whether non-existent headers
3056 # can be detected and how.
3057 cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h. */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3063 #include <ac_nonexistent.h>
3064 _ACEOF
3065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 ac_status=$?
3068 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } >/dev/null; then
3073 if test -s conftest.err; then
3074 ac_cpp_err=$ac_c_preproc_warn_flag
3075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3076 else
3077 ac_cpp_err=
3078 fi
3079 else
3080 ac_cpp_err=yes
3081 fi
3082 if test -z "$ac_cpp_err"; then
3083 # Broken: success on invalid input.
3084 continue
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 # Passes both tests.
3090 ac_preproc_ok=:
3091 break
3092 fi
3093 rm -f conftest.err conftest.$ac_ext
3094
3095 done
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then
3099 :
3100 else
3101 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3106 fi
3107
3108 ac_ext=c
3109 ac_cpp='$CPP $CPPFLAGS'
3110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113
3114
3115 echo "$as_me:$LINENO: checking for inline" >&5
3116 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3117 if test "${ac_cv_c_inline+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 else
3120 ac_cv_c_inline=no
3121 for ac_kw in inline __inline__ __inline; do
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #ifndef __cplusplus
3129 typedef int foo_t;
3130 static $ac_kw foo_t static_foo () {return 0; }
3131 $ac_kw foo_t foo () {return 0; }
3132 #endif
3133
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3137 (eval $ac_compile) 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag"
3145 || test ! -s conftest.err'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_cv_c_inline=$ac_kw; break
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 fi
3163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 done
3165
3166 fi
3167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3168 echo "${ECHO_T}$ac_cv_c_inline" >&6
3169
3170
3171 case $ac_cv_c_inline in
3172 inline | yes) ;;
3173 *)
3174 case $ac_cv_c_inline in
3175 no) ac_val=;;
3176 *) ac_val=$ac_cv_c_inline;;
3177 esac
3178 cat >>confdefs.h <<_ACEOF
3179 #ifndef __cplusplus
3180 #define inline $ac_val
3181 #endif
3182 _ACEOF
3183 ;;
3184 esac
3185
3186
3187 # sizeof(char) is 1 by definition.
3188
3189 echo "$as_me:$LINENO: checking for egrep" >&5
3190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3191 if test "${ac_cv_prog_egrep+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3195 then ac_cv_prog_egrep='grep -E'
3196 else ac_cv_prog_egrep='egrep'
3197 fi
3198 fi
3199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3201 EGREP=$ac_cv_prog_egrep
3202
3203
3204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3206 if test "${ac_cv_header_stdc+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h. */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3215 #include <stdlib.h>
3216 #include <stdarg.h>
3217 #include <string.h>
3218 #include <float.h>
3219
3220 int
3221 main ()
3222 {
3223
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 rm -f conftest.$ac_objext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3230 (eval $ac_compile) 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try='test -s conftest.$ac_objext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 (eval $ac_try) 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3250 ac_cv_header_stdc=yes
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 ac_cv_header_stdc=no
3256 fi
3257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3258
3259 if test $ac_cv_header_stdc = yes; then
3260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <string.h>
3268
3269 _ACEOF
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 $EGREP "memchr" >/dev/null 2>&1; then
3272 :
3273 else
3274 ac_cv_header_stdc=no
3275 fi
3276 rm -f conftest*
3277
3278 fi
3279
3280 if test $ac_cv_header_stdc = yes; then
3281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <stdlib.h>
3289
3290 _ACEOF
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "free" >/dev/null 2>&1; then
3293 :
3294 else
3295 ac_cv_header_stdc=no
3296 fi
3297 rm -f conftest*
3298
3299 fi
3300
3301 if test $ac_cv_header_stdc = yes; then
3302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3303 if test "$cross_compiling" = yes; then
3304 :
3305 else
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312 #include <ctype.h>
3313 #if ((' ' & 0x0FF) == 0x020)
3314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3316 #else
3317 # define ISLOWER(c) \
3318 (('a' <= (c) && (c) <= 'i') \
3319 || ('j' <= (c) && (c) <= 'r') \
3320 || ('s' <= (c) && (c) <= 'z'))
3321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3322 #endif
3323
3324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3325 int
3326 main ()
3327 {
3328 int i;
3329 for (i = 0; i < 256; i++)
3330 if (XOR (islower (i), ISLOWER (i))
3331 || toupper (i) != TOUPPER (i))
3332 exit(2);
3333 exit (0);
3334 }
3335 _ACEOF
3336 rm -f conftest$ac_exeext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 :
3348 else
3349 echo "$as_me: program exited with status $ac_status" >&5
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 ( exit $ac_status )
3354 ac_cv_header_stdc=no
3355 fi
3356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3357 fi
3358 fi
3359 fi
3360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3362 if test $ac_cv_header_stdc = yes; then
3363
3364 cat >>confdefs.h <<\_ACEOF
3365 #define STDC_HEADERS 1
3366 _ACEOF
3367
3368 fi
3369
3370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3381 inttypes.h stdint.h unistd.h
3382 do
3383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3384 echo "$as_me:$LINENO: checking for $ac_header" >&5
3385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 $ac_includes_default
3396
3397 #include <$ac_header>
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>conftest.er1
3402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } &&
3408 { ac_try='test -z "$ac_c_werror_flag"
3409 || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411 (eval $ac_try) 2>&5
3412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 eval "$as_ac_Header=yes"
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 eval "$as_ac_Header=no"
3427 fi
3428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3433 cat >>confdefs.h <<_ACEOF
3434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3435 _ACEOF
3436
3437 fi
3438
3439 done
3440
3441
3442 echo "$as_me:$LINENO: checking for void *" >&5
3443 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3444 if test "${ac_cv_type_void_p+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 $ac_includes_default
3454 int
3455 main ()
3456 {
3457 if ((void * *) 0)
3458 return 0;
3459 if (sizeof (void *))
3460 return 0;
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_c_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_type_void_p=yes
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 ac_cv_type_void_p=no
3493 fi
3494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3497 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3498
3499 echo "$as_me:$LINENO: checking size of void *" >&5
3500 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3501 if test "${ac_cv_sizeof_void_p+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 if test "$ac_cv_type_void_p" = yes; then
3505 # The cast to unsigned long works around a bug in the HP C Compiler
3506 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3507 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3508 # This bug is HP SR number 8606223364.
3509 if test "$cross_compiling" = yes; then
3510 # Depending upon the size, compute the lo and hi bounds.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 $ac_includes_default
3518 int
3519 main ()
3520 {
3521 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3522 test_array [0] = 0
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530 (eval $ac_compile) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -z "$ac_c_werror_flag"
3538 || test ! -s conftest.err'
3539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 (eval $ac_try) 2>&5
3541 ac_status=$?
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; } &&
3544 { ac_try='test -s conftest.$ac_objext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 (eval $ac_try) 2>&5
3547 ac_status=$?
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 ac_lo=0 ac_mid=0
3551 while :; do
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 $ac_includes_default
3559 int
3560 main ()
3561 {
3562 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3563 test_array [0] = 0
3564
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 (eval $ac_try) 2>&5
3582 ac_status=$?
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_hi=$ac_mid; break
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_lo=`expr $ac_mid + 1`
3597 if test $ac_lo -le $ac_mid; then
3598 ac_lo= ac_hi=
3599 break
3600 fi
3601 ac_mid=`expr 2 '*' $ac_mid + 1`
3602 fi
3603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604 done
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 $ac_includes_default
3616 int
3617 main ()
3618 {
3619 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3620 test_array [0] = 0
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3648 ac_hi=-1 ac_mid=-1
3649 while :; do
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 $ac_includes_default
3657 int
3658 main ()
3659 {
3660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3661 test_array [0] = 0
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.$ac_objext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669 (eval $ac_compile) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_c_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 (eval $ac_try) 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest.$ac_objext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_lo=$ac_mid; break
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694 ac_hi=`expr '(' $ac_mid ')' - 1`
3695 if test $ac_mid -le $ac_hi; then
3696 ac_lo= ac_hi=
3697 break
3698 fi
3699 ac_mid=`expr 2 '*' $ac_mid`
3700 fi
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 done
3703 else
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 ac_lo= ac_hi=
3708 fi
3709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 # Binary search between lo and hi bounds.
3713 while test "x$ac_lo" != "x$ac_hi"; do
3714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3715 cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h. */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h. */
3721 $ac_includes_default
3722 int
3723 main ()
3724 {
3725 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3726 test_array [0] = 0
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 rm -f conftest.$ac_objext
3733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3734 (eval $ac_compile) 2>conftest.er1
3735 ac_status=$?
3736 grep -v '^ *+' conftest.er1 >conftest.err
3737 rm -f conftest.er1
3738 cat conftest.err >&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -z "$ac_c_werror_flag"
3742 || test ! -s conftest.err'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 ac_hi=$ac_mid
3755 else
3756 echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 ac_lo=`expr '(' $ac_mid ')' + 1`
3760 fi
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 done
3763 case $ac_lo in
3764 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3765 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3766 See \`config.log' for more details." >&5
3767 echo "$as_me: error: cannot compute sizeof (void *), 77
3768 See \`config.log' for more details." >&2;}
3769 { (exit 1); exit 1; }; } ;;
3770 esac
3771 else
3772 if test "$cross_compiling" = yes; then
3773 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3774 See \`config.log' for more details." >&5
3775 echo "$as_me: error: cannot run test program while cross compiling
3776 See \`config.log' for more details." >&2;}
3777 { (exit 1); exit 1; }; }
3778 else
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 $ac_includes_default
3786 long longval () { return (long) (sizeof (void *)); }
3787 unsigned long ulongval () { return (long) (sizeof (void *)); }
3788 #include <stdio.h>
3789 #include <stdlib.h>
3790 int
3791 main ()
3792 {
3793
3794 FILE *f = fopen ("conftest.val", "w");
3795 if (! f)
3796 exit (1);
3797 if (((long) (sizeof (void *))) < 0)
3798 {
3799 long i = longval ();
3800 if (i != ((long) (sizeof (void *))))
3801 exit (1);
3802 fprintf (f, "%ld\n", i);
3803 }
3804 else
3805 {
3806 unsigned long i = ulongval ();
3807 if (i != ((long) (sizeof (void *))))
3808 exit (1);
3809 fprintf (f, "%lu\n", i);
3810 }
3811 exit (ferror (f) || fclose (f) != 0);
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest$ac_exeext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819 (eval $ac_link) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_sizeof_void_p=`cat conftest.val`
3829 else
3830 echo "$as_me: program exited with status $ac_status" >&5
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 ( exit $ac_status )
3835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3836 See \`config.log' for more details." >&5
3837 echo "$as_me: error: cannot compute sizeof (void *), 77
3838 See \`config.log' for more details." >&2;}
3839 { (exit 1); exit 1; }; }
3840 fi
3841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 fi
3844 rm -f conftest.val
3845 else
3846 ac_cv_sizeof_void_p=0
3847 fi
3848 fi
3849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3850 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3851 cat >>confdefs.h <<_ACEOF
3852 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3853 _ACEOF
3854
3855
3856 echo "$as_me:$LINENO: checking for short" >&5
3857 echo $ECHO_N "checking for short... $ECHO_C" >&6
3858 if test "${ac_cv_type_short+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867 $ac_includes_default
3868 int
3869 main ()
3870 {
3871 if ((short *) 0)
3872 return 0;
3873 if (sizeof (short))
3874 return 0;
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>conftest.er1
3882 ac_status=$?
3883 grep -v '^ *+' conftest.er1 >conftest.err
3884 rm -f conftest.er1
3885 cat conftest.err >&5
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } &&
3888 { ac_try='test -z "$ac_c_werror_flag"
3889 || test ! -s conftest.err'
3890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 (eval $ac_try) 2>&5
3892 ac_status=$?
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); }; } &&
3895 { ac_try='test -s conftest.$ac_objext'
3896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897 (eval $ac_try) 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; }; then
3901 ac_cv_type_short=yes
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 ac_cv_type_short=no
3907 fi
3908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3911 echo "${ECHO_T}$ac_cv_type_short" >&6
3912
3913 echo "$as_me:$LINENO: checking size of short" >&5
3914 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3915 if test "${ac_cv_sizeof_short+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 if test "$ac_cv_type_short" = yes; then
3919 # The cast to unsigned long works around a bug in the HP C Compiler
3920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3922 # This bug is HP SR number 8606223364.
3923 if test "$cross_compiling" = yes; then
3924 # Depending upon the size, compute the lo and hi bounds.
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 $ac_includes_default
3932 int
3933 main ()
3934 {
3935 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3936 test_array [0] = 0
3937
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 rm -f conftest.$ac_objext
3943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3944 (eval $ac_compile) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag"
3952 || test ! -s conftest.err'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3964 ac_lo=0 ac_mid=0
3965 while :; do
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 $ac_includes_default
3973 int
3974 main ()
3975 {
3976 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3977 test_array [0] = 0
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 rm -f conftest.$ac_objext
3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985 (eval $ac_compile) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -z "$ac_c_werror_flag"
3993 || test ! -s conftest.err'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; } &&
3999 { ac_try='test -s conftest.$ac_objext'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; }; then
4005 ac_hi=$ac_mid; break
4006 else
4007 echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4009
4010 ac_lo=`expr $ac_mid + 1`
4011 if test $ac_lo -le $ac_mid; then
4012 ac_lo= ac_hi=
4013 break
4014 fi
4015 ac_mid=`expr 2 '*' $ac_mid + 1`
4016 fi
4017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4018 done
4019 else
4020 echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 $ac_includes_default
4030 int
4031 main ()
4032 {
4033 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4034 test_array [0] = 0
4035
4036 ;
4037 return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_c_werror_flag"
4050 || test ! -s conftest.err'
4051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 (eval $ac_try) 2>&5
4053 ac_status=$?
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); }; } &&
4056 { ac_try='test -s conftest.$ac_objext'
4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058 (eval $ac_try) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_hi=-1 ac_mid=-1
4063 while :; do
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 $ac_includes_default
4071 int
4072 main ()
4073 {
4074 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4075 test_array [0] = 0
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083 (eval $ac_compile) 2>conftest.er1
4084 ac_status=$?
4085 grep -v '^ *+' conftest.er1 >conftest.err
4086 rm -f conftest.er1
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag"
4091 || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
4103 ac_lo=$ac_mid; break
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4107
4108 ac_hi=`expr '(' $ac_mid ')' - 1`
4109 if test $ac_mid -le $ac_hi; then
4110 ac_lo= ac_hi=
4111 break
4112 fi
4113 ac_mid=`expr 2 '*' $ac_mid`
4114 fi
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 done
4117 else
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 ac_lo= ac_hi=
4122 fi
4123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 fi
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 # Binary search between lo and hi bounds.
4127 while test "x$ac_lo" != "x$ac_hi"; do
4128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4136 int
4137 main ()
4138 {
4139 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4140 test_array [0] = 0
4141
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag"
4156 || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_hi=$ac_mid
4169 else
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 ac_lo=`expr '(' $ac_mid ')' + 1`
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 done
4177 case $ac_lo in
4178 ?*) ac_cv_sizeof_short=$ac_lo;;
4179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4180 See \`config.log' for more details." >&5
4181 echo "$as_me: error: cannot compute sizeof (short), 77
4182 See \`config.log' for more details." >&2;}
4183 { (exit 1); exit 1; }; } ;;
4184 esac
4185 else
4186 if test "$cross_compiling" = yes; then
4187 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4188 See \`config.log' for more details." >&5
4189 echo "$as_me: error: cannot run test program while cross compiling
4190 See \`config.log' for more details." >&2;}
4191 { (exit 1); exit 1; }; }
4192 else
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 $ac_includes_default
4200 long longval () { return (long) (sizeof (short)); }
4201 unsigned long ulongval () { return (long) (sizeof (short)); }
4202 #include <stdio.h>
4203 #include <stdlib.h>
4204 int
4205 main ()
4206 {
4207
4208 FILE *f = fopen ("conftest.val", "w");
4209 if (! f)
4210 exit (1);
4211 if (((long) (sizeof (short))) < 0)
4212 {
4213 long i = longval ();
4214 if (i != ((long) (sizeof (short))))
4215 exit (1);
4216 fprintf (f, "%ld\n", i);
4217 }
4218 else
4219 {
4220 unsigned long i = ulongval ();
4221 if (i != ((long) (sizeof (short))))
4222 exit (1);
4223 fprintf (f, "%lu\n", i);
4224 }
4225 exit (ferror (f) || fclose (f) != 0);
4226
4227 ;
4228 return 0;
4229 }
4230 _ACEOF
4231 rm -f conftest$ac_exeext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_sizeof_short=`cat conftest.val`
4243 else
4244 echo "$as_me: program exited with status $ac_status" >&5
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ( exit $ac_status )
4249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: cannot compute sizeof (short), 77
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi
4255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4256 fi
4257 fi
4258 rm -f conftest.val
4259 else
4260 ac_cv_sizeof_short=0
4261 fi
4262 fi
4263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4264 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4265 cat >>confdefs.h <<_ACEOF
4266 #define SIZEOF_SHORT $ac_cv_sizeof_short
4267 _ACEOF
4268
4269
4270 echo "$as_me:$LINENO: checking for int" >&5
4271 echo $ECHO_N "checking for int... $ECHO_C" >&6
4272 if test "${ac_cv_type_int+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 $ac_includes_default
4282 int
4283 main ()
4284 {
4285 if ((int *) 0)
4286 return 0;
4287 if (sizeof (int))
4288 return 0;
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4295 (eval $ac_compile) 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag"
4303 || test ! -s conftest.err'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest.$ac_objext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 ac_cv_type_int=yes
4316 else
4317 echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320 ac_cv_type_int=no
4321 fi
4322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4323 fi
4324 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4325 echo "${ECHO_T}$ac_cv_type_int" >&6
4326
4327 echo "$as_me:$LINENO: checking size of int" >&5
4328 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4329 if test "${ac_cv_sizeof_int+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test "$ac_cv_type_int" = yes; then
4333 # The cast to unsigned long works around a bug in the HP C Compiler
4334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4336 # This bug is HP SR number 8606223364.
4337 if test "$cross_compiling" = yes; then
4338 # Depending upon the size, compute the lo and hi bounds.
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4345 $ac_includes_default
4346 int
4347 main ()
4348 {
4349 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4350 test_array [0] = 0
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_c_werror_flag"
4366 || test ! -s conftest.err'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368 (eval $ac_try) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; } &&
4372 { ac_try='test -s conftest.$ac_objext'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; }; then
4378 ac_lo=0 ac_mid=0
4379 while :; do
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4387 int
4388 main ()
4389 {
4390 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4391 test_array [0] = 0
4392
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_hi=$ac_mid; break
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_lo=`expr $ac_mid + 1`
4425 if test $ac_lo -le $ac_mid; then
4426 ac_lo= ac_hi=
4427 break
4428 fi
4429 ac_mid=`expr 2 '*' $ac_mid + 1`
4430 fi
4431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4432 done
4433 else
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 int
4445 main ()
4446 {
4447 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4448 test_array [0] = 0
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456 (eval $ac_compile) 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } &&
4463 { ac_try='test -z "$ac_c_werror_flag"
4464 || test ! -s conftest.err'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466 (eval $ac_try) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest.$ac_objext'
4471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 (eval $ac_try) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; }; then
4476 ac_hi=-1 ac_mid=-1
4477 while :; do
4478 cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4485 int
4486 main ()
4487 {
4488 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4489 test_array [0] = 0
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 rm -f conftest.$ac_objext
4496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4497 (eval $ac_compile) 2>conftest.er1
4498 ac_status=$?
4499 grep -v '^ *+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -z "$ac_c_werror_flag"
4505 || test ! -s conftest.err'
4506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 ac_lo=$ac_mid; break
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 ac_hi=`expr '(' $ac_mid ')' - 1`
4523 if test $ac_mid -le $ac_hi; then
4524 ac_lo= ac_hi=
4525 break
4526 fi
4527 ac_mid=`expr 2 '*' $ac_mid`
4528 fi
4529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4530 done
4531 else
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 ac_lo= ac_hi=
4536 fi
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4540 # Binary search between lo and hi bounds.
4541 while test "x$ac_lo" != "x$ac_hi"; do
4542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4550 int
4551 main ()
4552 {
4553 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4554 test_array [0] = 0
4555
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.$ac_objext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -z "$ac_c_werror_flag"
4570 || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_hi=$ac_mid
4583 else
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 ac_lo=`expr '(' $ac_mid ')' + 1`
4588 fi
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590 done
4591 case $ac_lo in
4592 ?*) ac_cv_sizeof_int=$ac_lo;;
4593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4594 See \`config.log' for more details." >&5
4595 echo "$as_me: error: cannot compute sizeof (int), 77
4596 See \`config.log' for more details." >&2;}
4597 { (exit 1); exit 1; }; } ;;
4598 esac
4599 else
4600 if test "$cross_compiling" = yes; then
4601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4602 See \`config.log' for more details." >&5
4603 echo "$as_me: error: cannot run test program while cross compiling
4604 See \`config.log' for more details." >&2;}
4605 { (exit 1); exit 1; }; }
4606 else
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 long longval () { return (long) (sizeof (int)); }
4615 unsigned long ulongval () { return (long) (sizeof (int)); }
4616 #include <stdio.h>
4617 #include <stdlib.h>
4618 int
4619 main ()
4620 {
4621
4622 FILE *f = fopen ("conftest.val", "w");
4623 if (! f)
4624 exit (1);
4625 if (((long) (sizeof (int))) < 0)
4626 {
4627 long i = longval ();
4628 if (i != ((long) (sizeof (int))))
4629 exit (1);
4630 fprintf (f, "%ld\n", i);
4631 }
4632 else
4633 {
4634 unsigned long i = ulongval ();
4635 if (i != ((long) (sizeof (int))))
4636 exit (1);
4637 fprintf (f, "%lu\n", i);
4638 }
4639 exit (ferror (f) || fclose (f) != 0);
4640
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest$ac_exeext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4647 (eval $ac_link) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_sizeof_int=`cat conftest.val`
4657 else
4658 echo "$as_me: program exited with status $ac_status" >&5
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ( exit $ac_status )
4663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4664 See \`config.log' for more details." >&5
4665 echo "$as_me: error: cannot compute sizeof (int), 77
4666 See \`config.log' for more details." >&2;}
4667 { (exit 1); exit 1; }; }
4668 fi
4669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 fi
4672 rm -f conftest.val
4673 else
4674 ac_cv_sizeof_int=0
4675 fi
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4679 cat >>confdefs.h <<_ACEOF
4680 #define SIZEOF_INT $ac_cv_sizeof_int
4681 _ACEOF
4682
4683
4684 echo "$as_me:$LINENO: checking for long" >&5
4685 echo $ECHO_N "checking for long... $ECHO_C" >&6
4686 if test "${ac_cv_type_long+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 $ac_includes_default
4696 int
4697 main ()
4698 {
4699 if ((long *) 0)
4700 return 0;
4701 if (sizeof (long))
4702 return 0;
4703 ;
4704 return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709 (eval $ac_compile) 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } &&
4716 { ac_try='test -z "$ac_c_werror_flag"
4717 || test ! -s conftest.err'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; } &&
4723 { ac_try='test -s conftest.$ac_objext'
4724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 (eval $ac_try) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }; }; then
4729 ac_cv_type_long=yes
4730 else
4731 echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734 ac_cv_type_long=no
4735 fi
4736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4739 echo "${ECHO_T}$ac_cv_type_long" >&6
4740
4741 echo "$as_me:$LINENO: checking size of long" >&5
4742 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4743 if test "${ac_cv_sizeof_long+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746 if test "$ac_cv_type_long" = yes; then
4747 # The cast to unsigned long works around a bug in the HP C Compiler
4748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4750 # This bug is HP SR number 8606223364.
4751 if test "$cross_compiling" = yes; then
4752 # Depending upon the size, compute the lo and hi bounds.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 $ac_includes_default
4760 int
4761 main ()
4762 {
4763 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4764 test_array [0] = 0
4765
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 rm -f conftest.$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -z "$ac_c_werror_flag"
4780 || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 (eval $ac_try) 2>&5
4789 ac_status=$?
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_lo=0 ac_mid=0
4793 while :; do
4794 cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h. */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4800 $ac_includes_default
4801 int
4802 main ()
4803 {
4804 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4805 test_array [0] = 0
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813 (eval $ac_compile) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag"
4821 || test ! -s conftest.err'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_hi=$ac_mid; break
4834 else
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838 ac_lo=`expr $ac_mid + 1`
4839 if test $ac_lo -le $ac_mid; then
4840 ac_lo= ac_hi=
4841 break
4842 fi
4843 ac_mid=`expr 2 '*' $ac_mid + 1`
4844 fi
4845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 done
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 $ac_includes_default
4858 int
4859 main ()
4860 {
4861 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4862 test_array [0] = 0
4863
4864 ;
4865 return 0;
4866 }
4867 _ACEOF
4868 rm -f conftest.$ac_objext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870 (eval $ac_compile) 2>conftest.er1
4871 ac_status=$?
4872 grep -v '^ *+' conftest.er1 >conftest.err
4873 rm -f conftest.er1
4874 cat conftest.err >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); } &&
4877 { ac_try='test -z "$ac_c_werror_flag"
4878 || test ! -s conftest.err'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4880 (eval $ac_try) 2>&5
4881 ac_status=$?
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; } &&
4884 { ac_try='test -s conftest.$ac_objext'
4885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4886 (eval $ac_try) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_hi=-1 ac_mid=-1
4891 while :; do
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 $ac_includes_default
4899 int
4900 main ()
4901 {
4902 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4903 test_array [0] = 0
4904
4905 ;
4906 return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>conftest.er1
4912 ac_status=$?
4913 grep -v '^ *+' conftest.er1 >conftest.err
4914 rm -f conftest.er1
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_c_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_lo=$ac_mid; break
4932 else
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 ac_hi=`expr '(' $ac_mid ')' - 1`
4937 if test $ac_mid -le $ac_hi; then
4938 ac_lo= ac_hi=
4939 break
4940 fi
4941 ac_mid=`expr 2 '*' $ac_mid`
4942 fi
4943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4944 done
4945 else
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 ac_lo= ac_hi=
4950 fi
4951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4954 # Binary search between lo and hi bounds.
4955 while test "x$ac_lo" != "x$ac_hi"; do
4956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4964 int
4965 main ()
4966 {
4967 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4968 test_array [0] = 0
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_hi=$ac_mid
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_lo=`expr '(' $ac_mid ')' + 1`
5002 fi
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 done
5005 case $ac_lo in
5006 ?*) ac_cv_sizeof_long=$ac_lo;;
5007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5008 See \`config.log' for more details." >&5
5009 echo "$as_me: error: cannot compute sizeof (long), 77
5010 See \`config.log' for more details." >&2;}
5011 { (exit 1); exit 1; }; } ;;
5012 esac
5013 else
5014 if test "$cross_compiling" = yes; then
5015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5016 See \`config.log' for more details." >&5
5017 echo "$as_me: error: cannot run test program while cross compiling
5018 See \`config.log' for more details." >&2;}
5019 { (exit 1); exit 1; }; }
5020 else
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5028 long longval () { return (long) (sizeof (long)); }
5029 unsigned long ulongval () { return (long) (sizeof (long)); }
5030 #include <stdio.h>
5031 #include <stdlib.h>
5032 int
5033 main ()
5034 {
5035
5036 FILE *f = fopen ("conftest.val", "w");
5037 if (! f)
5038 exit (1);
5039 if (((long) (sizeof (long))) < 0)
5040 {
5041 long i = longval ();
5042 if (i != ((long) (sizeof (long))))
5043 exit (1);
5044 fprintf (f, "%ld\n", i);
5045 }
5046 else
5047 {
5048 unsigned long i = ulongval ();
5049 if (i != ((long) (sizeof (long))))
5050 exit (1);
5051 fprintf (f, "%lu\n", i);
5052 }
5053 exit (ferror (f) || fclose (f) != 0);
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; }; then
5070 ac_cv_sizeof_long=`cat conftest.val`
5071 else
5072 echo "$as_me: program exited with status $ac_status" >&5
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076 ( exit $ac_status )
5077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5078 See \`config.log' for more details." >&5
5079 echo "$as_me: error: cannot compute sizeof (long), 77
5080 See \`config.log' for more details." >&2;}
5081 { (exit 1); exit 1; }; }
5082 fi
5083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5084 fi
5085 fi
5086 rm -f conftest.val
5087 else
5088 ac_cv_sizeof_long=0
5089 fi
5090 fi
5091 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5092 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5093 cat >>confdefs.h <<_ACEOF
5094 #define SIZEOF_LONG $ac_cv_sizeof_long
5095 _ACEOF
5096
5097
5098 echo "$as_me:$LINENO: checking for long long" >&5
5099 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5100 if test "${ac_cv_type_long_long+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_includes_default
5110 int
5111 main ()
5112 {
5113 if ((long long *) 0)
5114 return 0;
5115 if (sizeof (long long))
5116 return 0;
5117 ;
5118 return 0;
5119 }
5120 _ACEOF
5121 rm -f conftest.$ac_objext
5122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5123 (eval $ac_compile) 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } &&
5130 { ac_try='test -z "$ac_c_werror_flag"
5131 || test ! -s conftest.err'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; } &&
5137 { ac_try='test -s conftest.$ac_objext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 (eval $ac_try) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_type_long_long=yes
5144 else
5145 echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_cv_type_long_long=no
5149 fi
5150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5153 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5154 if test $ac_cv_type_long_long = yes; then
5155
5156 cat >>confdefs.h <<_ACEOF
5157 #define HAVE_LONG_LONG 1
5158 _ACEOF
5159
5160 echo "$as_me:$LINENO: checking for long long" >&5
5161 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5162 if test "${ac_cv_type_long_long+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 int
5173 main ()
5174 {
5175 if ((long long *) 0)
5176 return 0;
5177 if (sizeof (long long))
5178 return 0;
5179 ;
5180 return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185 (eval $ac_compile) 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -z "$ac_c_werror_flag"
5193 || test ! -s conftest.err'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; } &&
5199 { ac_try='test -s conftest.$ac_objext'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 (eval $ac_try) 2>&5
5202 ac_status=$?
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5205 ac_cv_type_long_long=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_type_long_long=no
5211 fi
5212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5215 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5216
5217 echo "$as_me:$LINENO: checking size of long long" >&5
5218 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5219 if test "${ac_cv_sizeof_long_long+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 if test "$ac_cv_type_long_long" = yes; then
5223 # The cast to unsigned long works around a bug in the HP C Compiler
5224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5226 # This bug is HP SR number 8606223364.
5227 if test "$cross_compiling" = yes; then
5228 # Depending upon the size, compute the lo and hi bounds.
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5236 int
5237 main ()
5238 {
5239 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5240 test_array [0] = 0
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_lo=0 ac_mid=0
5269 while :; do
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 $ac_includes_default
5277 int
5278 main ()
5279 {
5280 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5281 test_array [0] = 0
5282
5283 ;
5284 return 0;
5285 }
5286 _ACEOF
5287 rm -f conftest.$ac_objext
5288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5289 (eval $ac_compile) 2>conftest.er1
5290 ac_status=$?
5291 grep -v '^ *+' conftest.er1 >conftest.err
5292 rm -f conftest.er1
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } &&
5296 { ac_try='test -z "$ac_c_werror_flag"
5297 || test ! -s conftest.err'
5298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 (eval $ac_try) 2>&5
5300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest.$ac_objext'
5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 (eval $ac_try) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_hi=$ac_mid; break
5310 else
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 ac_lo=`expr $ac_mid + 1`
5315 if test $ac_lo -le $ac_mid; then
5316 ac_lo= ac_hi=
5317 break
5318 fi
5319 ac_mid=`expr 2 '*' $ac_mid + 1`
5320 fi
5321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 done
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h. */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5334 int
5335 main ()
5336 {
5337 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5338 test_array [0] = 0
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag"
5354 || test ! -s conftest.err'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; } &&
5360 { ac_try='test -s conftest.$ac_objext'
5361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 (eval $ac_try) 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; }; then
5366 ac_hi=-1 ac_mid=-1
5367 while :; do
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 $ac_includes_default
5375 int
5376 main ()
5377 {
5378 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5379 test_array [0] = 0
5380
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -z "$ac_c_werror_flag"
5395 || test ! -s conftest.err'
5396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 (eval $ac_try) 2>&5
5398 ac_status=$?
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; } &&
5401 { ac_try='test -s conftest.$ac_objext'
5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); }; }; then
5407 ac_lo=$ac_mid; break
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 ac_hi=`expr '(' $ac_mid ')' - 1`
5413 if test $ac_mid -le $ac_hi; then
5414 ac_lo= ac_hi=
5415 break
5416 fi
5417 ac_mid=`expr 2 '*' $ac_mid`
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 done
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_lo= ac_hi=
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 # Binary search between lo and hi bounds.
5431 while test "x$ac_lo" != "x$ac_hi"; do
5432 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 $ac_includes_default
5440 int
5441 main ()
5442 {
5443 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5444 test_array [0] = 0
5445
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 (eval $ac_try) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5472 ac_hi=$ac_mid
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_lo=`expr '(' $ac_mid ')' + 1`
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 done
5481 case $ac_lo in
5482 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5483 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot compute sizeof (long long), 77
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; } ;;
5488 esac
5489 else
5490 if test "$cross_compiling" = yes; then
5491 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5492 See \`config.log' for more details." >&5
5493 echo "$as_me: error: cannot run test program while cross compiling
5494 See \`config.log' for more details." >&2;}
5495 { (exit 1); exit 1; }; }
5496 else
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5504 long longval () { return (long) (sizeof (long long)); }
5505 unsigned long ulongval () { return (long) (sizeof (long long)); }
5506 #include <stdio.h>
5507 #include <stdlib.h>
5508 int
5509 main ()
5510 {
5511
5512 FILE *f = fopen ("conftest.val", "w");
5513 if (! f)
5514 exit (1);
5515 if (((long) (sizeof (long long))) < 0)
5516 {
5517 long i = longval ();
5518 if (i != ((long) (sizeof (long long))))
5519 exit (1);
5520 fprintf (f, "%ld\n", i);
5521 }
5522 else
5523 {
5524 unsigned long i = ulongval ();
5525 if (i != ((long) (sizeof (long long))))
5526 exit (1);
5527 fprintf (f, "%lu\n", i);
5528 }
5529 exit (ferror (f) || fclose (f) != 0);
5530
5531 ;
5532 return 0;
5533 }
5534 _ACEOF
5535 rm -f conftest$ac_exeext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>&5
5538 ac_status=$?
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 ac_cv_sizeof_long_long=`cat conftest.val`
5547 else
5548 echo "$as_me: program exited with status $ac_status" >&5
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 ( exit $ac_status )
5553 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5554 See \`config.log' for more details." >&5
5555 echo "$as_me: error: cannot compute sizeof (long long), 77
5556 See \`config.log' for more details." >&2;}
5557 { (exit 1); exit 1; }; }
5558 fi
5559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5560 fi
5561 fi
5562 rm -f conftest.val
5563 else
5564 ac_cv_sizeof_long_long=0
5565 fi
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5568 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5569 cat >>confdefs.h <<_ACEOF
5570 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5571 _ACEOF
5572
5573
5574 fi
5575
5576 echo "$as_me:$LINENO: checking for __int64" >&5
5577 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5578 if test "${ac_cv_type___int64+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 $ac_includes_default
5588 int
5589 main ()
5590 {
5591 if ((__int64 *) 0)
5592 return 0;
5593 if (sizeof (__int64))
5594 return 0;
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_type___int64=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ac_cv_type___int64=no
5627 fi
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5631 echo "${ECHO_T}$ac_cv_type___int64" >&6
5632 if test $ac_cv_type___int64 = yes; then
5633
5634 cat >>confdefs.h <<_ACEOF
5635 #define HAVE___INT64 1
5636 _ACEOF
5637
5638 echo "$as_me:$LINENO: checking for __int64" >&5
5639 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5640 if test "${ac_cv_type___int64+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5650 int
5651 main ()
5652 {
5653 if ((__int64 *) 0)
5654 return 0;
5655 if (sizeof (__int64))
5656 return 0;
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_type___int64=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_cv_type___int64=no
5689 fi
5690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5693 echo "${ECHO_T}$ac_cv_type___int64" >&6
5694
5695 echo "$as_me:$LINENO: checking size of __int64" >&5
5696 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5697 if test "${ac_cv_sizeof___int64+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test "$ac_cv_type___int64" = yes; then
5701 # The cast to unsigned long works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 int
5715 main ()
5716 {
5717 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5718 test_array [0] = 0
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_lo=0 ac_mid=0
5747 while :; do
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5755 int
5756 main ()
5757 {
5758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5759 test_array [0] = 0
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_hi=$ac_mid; break
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_lo=`expr $ac_mid + 1`
5793 if test $ac_lo -le $ac_mid; then
5794 ac_lo= ac_hi=
5795 break
5796 fi
5797 ac_mid=`expr 2 '*' $ac_mid + 1`
5798 fi
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 done
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 int
5813 main ()
5814 {
5815 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5816 test_array [0] = 0
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_hi=-1 ac_mid=-1
5845 while :; do
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5857 test_array [0] = 0
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_lo=$ac_mid; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_hi=`expr '(' $ac_mid ')' - 1`
5891 if test $ac_mid -le $ac_hi; then
5892 ac_lo= ac_hi=
5893 break
5894 fi
5895 ac_mid=`expr 2 '*' $ac_mid`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_lo= ac_hi=
5904 fi
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 # Binary search between lo and hi bounds.
5909 while test "x$ac_lo" != "x$ac_hi"; do
5910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=$ac_mid
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 done
5959 case $ac_lo in
5960 ?*) ac_cv_sizeof___int64=$ac_lo;;
5961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (__int64), 77
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; } ;;
5966 esac
5967 else
5968 if test "$cross_compiling" = yes; then
5969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (__int64)); }
5983 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5984 #include <stdio.h>
5985 #include <stdlib.h>
5986 int
5987 main ()
5988 {
5989
5990 FILE *f = fopen ("conftest.val", "w");
5991 if (! f)
5992 exit (1);
5993 if (((long) (sizeof (__int64))) < 0)
5994 {
5995 long i = longval ();
5996 if (i != ((long) (sizeof (__int64))))
5997 exit (1);
5998 fprintf (f, "%ld\n", i);
5999 }
6000 else
6001 {
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (__int64))))
6004 exit (1);
6005 fprintf (f, "%lu\n", i);
6006 }
6007 exit (ferror (f) || fclose (f) != 0);
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof___int64=`cat conftest.val`
6025 else
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ( exit $ac_status )
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (__int64), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6036 fi
6037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 fi
6040 rm -f conftest.val
6041 else
6042 ac_cv_sizeof___int64=0
6043 fi
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6049 _ACEOF
6050
6051
6052 fi
6053
6054
6055 # ---------------------
6056 # Warnings and checking
6057 # ---------------------
6058
6059 # Check $CC warning features (if it's GCC).
6060 # We want to use -pedantic, but we don't want warnings about
6061 # * 'long long'
6062 # * variadic macros
6063 # * overlong strings
6064 # So, we only use -pedantic if we can disable those warnings.
6065
6066 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6067 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6068 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 save_CFLAGS="$CFLAGS"
6072 CFLAGS="-Wno-long-long"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } &&
6090 { ac_try='test -z "$ac_c_werror_flag"
6091 || test ! -s conftest.err'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; } &&
6097 { ac_try='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099 (eval $ac_try) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 ac_cv_prog_cc_w_no_long_long=yes
6104 else
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 ac_cv_prog_cc_w_no_long_long=no
6109 fi
6110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6111 CFLAGS="$save_CFLAGS"
6112
6113 fi
6114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6115 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6116
6117 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6118 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6119 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 save_CFLAGS="$CFLAGS"
6123 CFLAGS="-Wno-variadic-macros"
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130
6131 _ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6134 (eval $ac_compile) 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_prog_cc_w_no_variadic_macros=yes
6155 else
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159 ac_cv_prog_cc_w_no_variadic_macros=no
6160 fi
6161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162 CFLAGS="$save_CFLAGS"
6163
6164 fi
6165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6166 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6167
6168 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6169 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6170 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173 save_CFLAGS="$CFLAGS"
6174 CFLAGS="-Wno-overlength-strings"
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185 (eval $ac_compile) 2>conftest.er1
6186 ac_status=$?
6187 grep -v '^ *+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -z "$ac_c_werror_flag"
6193 || test ! -s conftest.err'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_cv_prog_cc_w_no_overlength_strings=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_cv_prog_cc_w_no_overlength_strings=no
6211 fi
6212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 CFLAGS="$save_CFLAGS"
6214
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6217 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6218
6219 strict1_warn=
6220 if test $ac_cv_prog_cc_w_no_long_long = yes \
6221 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6222 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6223 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6224 fi
6225
6226 # Add -Wold-style-definition if it's accepted
6227 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6228 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6229 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 save_CFLAGS="$CFLAGS"
6233 CFLAGS="-Wold-style-definition"
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240
6241 _ACEOF
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -z "$ac_c_werror_flag"
6252 || test ! -s conftest.err'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; } &&
6258 { ac_try='test -s conftest.$ac_objext'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6264 ac_cv_prog_cc_w_old_style_definition=yes
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_cv_prog_cc_w_old_style_definition=no
6270 fi
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 CFLAGS="$save_CFLAGS"
6273
6274 fi
6275 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6276 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6277 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6278 strict1_warn="${strict1_warn} -Wold-style-definition"
6279 fi
6280
6281 # Add -Wmissing-format-attribute if it's accepted
6282 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6283 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6284 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287 save_CFLAGS="$CFLAGS"
6288 CFLAGS="-Wmissing-format-attribute"
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6295
6296 _ACEOF
6297 rm -f conftest.$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
6300 ac_status=$?
6301 grep -v '^ *+' conftest.er1 >conftest.err
6302 rm -f conftest.er1
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_prog_cc_w_missing_format_attribute=yes
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_cv_prog_cc_w_missing_format_attribute=no
6325 fi
6326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 CFLAGS="$save_CFLAGS"
6328
6329 fi
6330 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6331 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6332 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6333 strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6334 fi
6335
6336 # Enable -Werror, period.
6337 # Check whether --enable-werror_always or --disable-werror_always was given.
6338 if test "${enable_werror_always+set}" = set; then
6339 enableval="$enable_werror_always"
6340
6341 else
6342 enable_werror_always=no
6343 fi;
6344 if test x${enable_werror_always} = xyes ; then
6345 strict1_warn="${strict1_warn} -Werror"
6346 WERROR=-Werror
6347 fi
6348
6349
6350
6351 # Get C++ compatibility warning flag, if supported.
6352 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6353 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6354 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 save_CFLAGS="$CFLAGS"
6358 CFLAGS="-Wc++-compat"
6359 cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365
6366 _ACEOF
6367 rm -f conftest.$ac_objext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369 (eval $ac_compile) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest.$ac_objext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_prog_cc_w_cxx_compat=yes
6390 else
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 ac_cv_prog_cc_w_cxx_compat=no
6395 fi
6396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397 CFLAGS="$save_CFLAGS"
6398
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6401 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6402 if test x${ac_cv_prog_cc_w_cxx_compat} = xyes; then
6403 cxx_compat_warn="-Wc++-compat"
6404 fi
6405
6406
6407
6408 # If the native compiler is GCC, we can enable warnings even in stage1.
6409 # That's useful for people building cross-compilers, or just running a
6410 # quick `make'.
6411 warn_cflags=
6412 if test "x$GCC" = "xyes"; then
6413 warn_cflags='$(GCC_WARN_CFLAGS)'
6414 fi
6415
6416
6417 # Enable -Werror in bootstrap stage2 and later.
6418 is_release=
6419 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6420 is_release=yes
6421 fi
6422 # Check whether --enable-werror or --disable-werror was given.
6423 if test "${enable_werror+set}" = set; then
6424 enableval="$enable_werror"
6425
6426 else
6427 if test x$is_release = x ; then
6428 # Default to "yes" on development branches.
6429 enable_werror=yes
6430 else
6431 # Default to "no" on release branches.
6432 enable_werror=no
6433 fi
6434 fi;
6435 if test x$enable_werror = xyes ; then
6436 WERROR=-Werror
6437 fi
6438
6439
6440 # Enable expensive internal checks
6441 # Check whether --enable-checking or --disable-checking was given.
6442 if test "${enable_checking+set}" = set; then
6443 enableval="$enable_checking"
6444 ac_checking_flags="${enableval}"
6445 else
6446
6447 # Determine the default checks.
6448 if test x$is_release = x ; then
6449 ac_checking_flags=yes
6450 else
6451 ac_checking_flags=release
6452 fi
6453 fi;
6454 ac_assert_checking=1
6455 ac_checking=
6456 ac_fold_checking=
6457 ac_gc_checking=
6458 ac_gc_always_collect=
6459 ac_rtl_checking=
6460 ac_rtlflag_checking=
6461 ac_runtime_checking=1
6462 ac_tree_checking=
6463 ac_valgrind_checking=
6464 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6465 for check in $ac_checking_flags
6466 do
6467 case $check in
6468 # these set all the flags to specific states
6469 yes) ac_assert_checking=1 ; ac_checking=1 ;
6470 ac_fold_checking= ; ac_gc_checking=1 ;
6471 ac_gc_always_collect= ; ac_rtl_checking= ;
6472 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6473 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6474 no|none) ac_assert_checking= ; ac_checking= ;
6475 ac_fold_checking= ; ac_gc_checking= ;
6476 ac_gc_always_collect= ; ac_rtl_checking= ;
6477 ac_rtlflag_checking= ; ac_runtime_checking= ;
6478 ac_tree_checking= ; ac_valgrind_checking= ;;
6479 all) ac_assert_checking=1 ; ac_checking=1 ;
6480 ac_fold_checking=1 ; ac_gc_checking=1 ;
6481 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6482 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6483 ac_tree_checking=1 ; ac_valgrind_checking= ;;
6484 release) ac_assert_checking=1 ; ac_checking= ;
6485 ac_fold_checking= ; ac_gc_checking= ;
6486 ac_gc_always_collect= ; ac_rtl_checking= ;
6487 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6488 ac_tree_checking= ; ac_valgrind_checking= ;;
6489 # these enable particular checks
6490 assert) ac_assert_checking=1 ;;
6491 fold) ac_fold_checking=1 ;;
6492 gc) ac_gc_checking=1 ;;
6493 gcac) ac_gc_always_collect=1 ;;
6494 misc) ac_checking=1 ;;
6495 rtl) ac_rtl_checking=1 ;;
6496 rtlflag) ac_rtlflag_checking=1 ;;
6497 runtime) ac_runtime_checking=1 ;;
6498 tree) ac_tree_checking=1 ;;
6499 valgrind) ac_valgrind_checking=1 ;;
6500 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6501 echo "$as_me: error: unknown check category $check" >&2;}
6502 { (exit 1); exit 1; }; } ;;
6503 esac
6504 done
6505 IFS="$ac_save_IFS"
6506
6507 nocommon_flag=""
6508 if test x$ac_checking != x ; then
6509
6510 cat >>confdefs.h <<\_ACEOF
6511 #define ENABLE_CHECKING 1
6512 _ACEOF
6513
6514 nocommon_flag=-fno-common
6515 fi
6516
6517 if test x$ac_assert_checking != x ; then
6518
6519 cat >>confdefs.h <<\_ACEOF
6520 #define ENABLE_ASSERT_CHECKING 1
6521 _ACEOF
6522
6523 fi
6524
6525 if test x$ac_runtime_checking != x ; then
6526
6527 cat >>confdefs.h <<\_ACEOF
6528 #define ENABLE_RUNTIME_CHECKING 1
6529 _ACEOF
6530
6531 fi
6532 if test x$ac_tree_checking != x ; then
6533
6534 cat >>confdefs.h <<\_ACEOF
6535 #define ENABLE_TREE_CHECKING 1
6536 _ACEOF
6537
6538 TREEBROWSER=tree-browser.o
6539 fi
6540
6541 if test x$ac_rtl_checking != x ; then
6542
6543 cat >>confdefs.h <<\_ACEOF
6544 #define ENABLE_RTL_CHECKING 1
6545 _ACEOF
6546
6547 fi
6548 if test x$ac_rtlflag_checking != x ; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_RTL_FLAG_CHECKING 1
6552 _ACEOF
6553
6554 fi
6555 if test x$ac_gc_checking != x ; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define ENABLE_GC_CHECKING 1
6559 _ACEOF
6560
6561 fi
6562 if test x$ac_gc_always_collect != x ; then
6563
6564 cat >>confdefs.h <<\_ACEOF
6565 #define ENABLE_GC_ALWAYS_COLLECT 1
6566 _ACEOF
6567
6568 fi
6569 if test x$ac_fold_checking != x ; then
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define ENABLE_FOLD_CHECKING 1
6573 _ACEOF
6574
6575 fi
6576 valgrind_path_defines=
6577 valgrind_command=
6578
6579 if test "${ac_cv_header_valgrind_h+set}" = set; then
6580 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6581 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6582 if test "${ac_cv_header_valgrind_h+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 fi
6585 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6586 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6587 else
6588 # Is the header compilable?
6589 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6590 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 $ac_includes_default
6598 #include <valgrind.h>
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag"
6610 || test ! -s conftest.err'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 (eval $ac_try) 2>&5
6613 ac_status=$?
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; } &&
6616 { ac_try='test -s conftest.$ac_objext'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 (eval $ac_try) 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
6622 ac_header_compiler=yes
6623 else
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627 ac_header_compiler=no
6628 fi
6629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6631 echo "${ECHO_T}$ac_header_compiler" >&6
6632
6633 # Is the header present?
6634 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6635 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 #include <valgrind.h>
6643 _ACEOF
6644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } >/dev/null; then
6652 if test -s conftest.err; then
6653 ac_cpp_err=$ac_c_preproc_warn_flag
6654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6655 else
6656 ac_cpp_err=
6657 fi
6658 else
6659 ac_cpp_err=yes
6660 fi
6661 if test -z "$ac_cpp_err"; then
6662 ac_header_preproc=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667 ac_header_preproc=no
6668 fi
6669 rm -f conftest.err conftest.$ac_ext
6670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6671 echo "${ECHO_T}$ac_header_preproc" >&6
6672
6673 # So? What about this header?
6674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6675 yes:no: )
6676 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6677 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6679 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6680 ac_header_preproc=yes
6681 ;;
6682 no:yes:* )
6683 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6684 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6685 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6686 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6688 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6690 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6692 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6694 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6695 (
6696 cat <<\_ASBOX
6697 ## ------------------------------------------ ##
6698 ## Report this to the AC_PACKAGE_NAME lists. ##
6699 ## ------------------------------------------ ##
6700 _ASBOX
6701 ) |
6702 sed "s/^/$as_me: WARNING: /" >&2
6703 ;;
6704 esac
6705 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6706 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6707 if test "${ac_cv_header_valgrind_h+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 ac_cv_header_valgrind_h=$ac_header_preproc
6711 fi
6712 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6713 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6714
6715 fi
6716 if test $ac_cv_header_valgrind_h = yes; then
6717 have_valgrind_h=yes
6718 else
6719 have_valgrind_h=no
6720 fi
6721
6722
6723
6724 if test x$ac_valgrind_checking != x ; then
6725 # It is certainly possible that there's valgrind but no valgrind.h.
6726 # GCC relies on making annotations so we must have both.
6727 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6728 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6729 cat >conftest.$ac_ext <<_ACEOF
6730 /* confdefs.h. */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 #include <valgrind/memcheck.h>
6736 #ifndef VALGRIND_DISCARD
6737 #error VALGRIND_DISCARD not defined
6738 #endif
6739 _ACEOF
6740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } >/dev/null; then
6748 if test -s conftest.err; then
6749 ac_cpp_err=$ac_c_preproc_warn_flag
6750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6751 else
6752 ac_cpp_err=
6753 fi
6754 else
6755 ac_cpp_err=yes
6756 fi
6757 if test -z "$ac_cpp_err"; then
6758 gcc_cv_header_valgrind_memcheck_h=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 gcc_cv_header_valgrind_memcheck_h=no
6764 fi
6765 rm -f conftest.err conftest.$ac_ext
6766 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6767 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6768 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6769 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 #include <memcheck.h>
6777 #ifndef VALGRIND_DISCARD
6778 #error VALGRIND_DISCARD not defined
6779 #endif
6780 _ACEOF
6781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev/null; then
6789 if test -s conftest.err; then
6790 ac_cpp_err=$ac_c_preproc_warn_flag
6791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6792 else
6793 ac_cpp_err=
6794 fi
6795 else
6796 ac_cpp_err=yes
6797 fi
6798 if test -z "$ac_cpp_err"; then
6799 gcc_cv_header_memcheck_h=yes
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 gcc_cv_header_memcheck_h=no
6805 fi
6806 rm -f conftest.err conftest.$ac_ext
6807 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6808 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6809
6810 # Prepare PATH_SEPARATOR.
6811 # The user is always right.
6812 if test "${PATH_SEPARATOR+set}" != set; then
6813 echo "#! /bin/sh" >conf$$.sh
6814 echo "exit 0" >>conf$$.sh
6815 chmod +x conf$$.sh
6816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6817 PATH_SEPARATOR=';'
6818 else
6819 PATH_SEPARATOR=:
6820 fi
6821 rm -f conf$$.sh
6822 fi
6823
6824 # Find out how to test for executable files. Don't use a zero-byte file,
6825 # as systems may use methods other than mode bits to determine executability.
6826 cat >conf$$.file <<_ASEOF
6827 #! /bin/sh
6828 exit 0
6829 _ASEOF
6830 chmod +x conf$$.file
6831 if test -x conf$$.file >/dev/null 2>&1; then
6832 ac_executable_p="test -x"
6833 else
6834 ac_executable_p="test -f"
6835 fi
6836 rm -f conf$$.file
6837
6838 # Extract the first word of "valgrind", so it can be a program name with args.
6839 set dummy valgrind; ac_word=$2
6840 echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842 if test "${ac_cv_path_valgrind_path+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 else
6845 case "$valgrind_path" in
6846 [\\/]* | ?:[\\/]*)
6847 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6848 ;;
6849 *)
6850 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6851 for ac_dir in $PATH; do
6852 IFS="$ac_save_IFS"
6853 test -z "$ac_dir" && ac_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6856 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6857 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6858 break 2
6859 fi
6860 fi
6861 done
6862 done
6863 IFS="$ac_save_IFS"
6864 ;;
6865 esac
6866 fi
6867 valgrind_path="$ac_cv_path_valgrind_path"
6868 if test -n "$valgrind_path"; then
6869 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6870 echo "${ECHO_T}$valgrind_path" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6
6874 fi
6875
6876 if test "x$valgrind_path" = "x" \
6877 || (test $have_valgrind_h = no \
6878 && test $gcc_cv_header_memcheck_h = no \
6879 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6880 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6881 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6882 { (exit 1); exit 1; }; }
6883 fi
6884 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6885 valgrind_command="$valgrind_path -q"
6886
6887 cat >>confdefs.h <<\_ACEOF
6888 #define ENABLE_VALGRIND_CHECKING 1
6889 _ACEOF
6890
6891 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6892
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_VALGRIND_MEMCHECK_H 1
6895 _ACEOF
6896
6897 fi
6898 if test $gcc_cv_header_memcheck_h = yes; then
6899
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_MEMCHECK_H 1
6902 _ACEOF
6903
6904 fi
6905 fi
6906
6907
6908
6909 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6910 if test "${enable_mapped_location+set}" = set; then
6911 enableval="$enable_mapped_location"
6912
6913 else
6914 enable_mapped_location=no
6915 fi;
6916
6917 if test "$enable_mapped_location" = yes ; then
6918
6919 cat >>confdefs.h <<\_ACEOF
6920 #define USE_MAPPED_LOCATION 1
6921 _ACEOF
6922
6923 fi
6924
6925 # Enable code coverage collection
6926 # Check whether --enable-coverage or --disable-coverage was given.
6927 if test "${enable_coverage+set}" = set; then
6928 enableval="$enable_coverage"
6929 case "${enableval}" in
6930 yes|noopt)
6931 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6932 ;;
6933 opt)
6934 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6935 ;;
6936 no)
6937 # a.k.a. --disable-coverage
6938 coverage_flags=""
6939 ;;
6940 *)
6941 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6942 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6943 { (exit 1); exit 1; }; }
6944 ;;
6945 esac
6946 else
6947 coverage_flags=""
6948 fi;
6949
6950
6951 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6952 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6953 enableval="$enable_gather_detailed_mem_stats"
6954
6955 else
6956 enable_gather_detailed_mem_stats=no
6957 fi;
6958 if test x$enable_gather_detailed_mem_stats = xyes ; then
6959
6960 cat >>confdefs.h <<\_ACEOF
6961 #define GATHER_STATISTICS 1
6962 _ACEOF
6963
6964 fi
6965
6966 # -------------------------------
6967 # Miscenalleous configure options
6968 # -------------------------------
6969
6970 # With stabs
6971
6972 # Check whether --with-stabs or --without-stabs was given.
6973 if test "${with_stabs+set}" = set; then
6974 withval="$with_stabs"
6975 stabs="$with_stabs"
6976 else
6977 stabs=no
6978 fi;
6979
6980 # Determine whether or not multilibs are enabled.
6981 # Check whether --enable-multilib or --disable-multilib was given.
6982 if test "${enable_multilib+set}" = set; then
6983 enableval="$enable_multilib"
6984
6985 else
6986 enable_multilib=yes
6987 fi;
6988
6989
6990 # Enable __cxa_atexit for C++.
6991 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6992 if test "${enable___cxa_atexit+set}" = set; then
6993 enableval="$enable___cxa_atexit"
6994
6995 fi;
6996
6997 # Enable C extension for decimal float if target supports it.
6998 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6999 if test "${enable_decimal_float+set}" = set; then
7000 enableval="$enable_decimal_float"
7001
7002 if test x$enablevar = xyes ; then
7003 case $target in
7004 powerpc*-*-linux* | i?86*-*-linux*)
7005 enable_decimal_float=yes
7006 ;;
7007 *)
7008 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7009 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7010 enable_decimal_float=no
7011 ;;
7012 esac
7013 fi
7014
7015 else
7016 enable_decimal_float=no
7017 fi;
7018
7019
7020
7021 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7022
7023 cat >>confdefs.h <<_ACEOF
7024 #define ENABLE_DECIMAL_FLOAT $dfp
7025 _ACEOF
7026
7027
7028 # Enable threads
7029 # Pass with no value to take the default
7030 # Pass with a value to specify a thread package
7031 # Check whether --enable-threads or --disable-threads was given.
7032 if test "${enable_threads+set}" = set; then
7033 enableval="$enable_threads"
7034
7035 else
7036 enable_threads=''
7037 fi;
7038
7039 # Check whether --enable-tls or --disable-tls was given.
7040 if test "${enable_tls+set}" = set; then
7041 enableval="$enable_tls"
7042
7043 case $enable_tls in
7044 yes | no) ;;
7045 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7046 Valid choices are 'yes' and 'no'." >&5
7047 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7048 Valid choices are 'yes' and 'no'." >&2;}
7049 { (exit 1); exit 1; }; } ;;
7050 esac
7051
7052 else
7053 enable_tls=''
7054 fi;
7055
7056 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7057 if test "${enable_objc_gc+set}" = set; then
7058 enableval="$enable_objc_gc"
7059 if test x$enable_objc_gc = xno; then
7060 objc_boehm_gc=''
7061 else
7062 objc_boehm_gc=1
7063 fi
7064 else
7065 objc_boehm_gc=''
7066 fi;
7067
7068
7069 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7070 if test "${with_dwarf2+set}" = set; then
7071 withval="$with_dwarf2"
7072 dwarf2="$with_dwarf2"
7073 else
7074 dwarf2=no
7075 fi;
7076
7077 # Check whether --enable-shared or --disable-shared was given.
7078 if test "${enable_shared+set}" = set; then
7079 enableval="$enable_shared"
7080
7081 case $enable_shared in
7082 yes | no) ;;
7083 *)
7084 enable_shared=no
7085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7086 for pkg in $enableval; do
7087 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7088 enable_shared=yes
7089 fi
7090 done
7091 IFS="$ac_save_ifs"
7092 ;;
7093 esac
7094
7095 else
7096 enable_shared=yes
7097 fi;
7098
7099
7100
7101 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7102 if test "${with_build_sysroot+set}" = set; then
7103 withval="$with_build_sysroot"
7104
7105 fi;
7106
7107
7108 # Check whether --with-sysroot or --without-sysroot was given.
7109 if test "${with_sysroot+set}" = set; then
7110 withval="$with_sysroot"
7111
7112 case ${with_sysroot} in
7113 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7114 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7115 esac
7116
7117 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7118 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7119
7120 if test "x$exec_prefix" = xNONE; then
7121 if test "x$prefix" = xNONE; then
7122 test_prefix=/usr/local
7123 else
7124 test_prefix=$prefix
7125 fi
7126 else
7127 test_prefix=$exec_prefix
7128 fi
7129 case ${TARGET_SYSTEM_ROOT} in
7130 "${test_prefix}"|"${test_prefix}/"*|\
7131 '${exec_prefix}'|'${exec_prefix}/'*)
7132 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7133 TARGET_SYSTEM_ROOT_DEFINE="$t"
7134 ;;
7135 esac
7136
7137 else
7138
7139 TARGET_SYSTEM_ROOT=
7140 TARGET_SYSTEM_ROOT_DEFINE=
7141 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7142
7143 fi;
7144
7145
7146
7147
7148 # Build with intermodule optimisations
7149 # Check whether --enable-intermodule or --disable-intermodule was given.
7150 if test "${enable_intermodule+set}" = set; then
7151 enableval="$enable_intermodule"
7152 case ${enable_intermodule} in
7153 yes) onestep="-onestep";;
7154 *) onestep="";;
7155 esac
7156 else
7157 onestep=""
7158 fi;
7159
7160
7161 # Sanity check enable_languages in case someone does not run the toplevel
7162 # configure # script.
7163 # Check whether --enable-languages or --disable-languages was given.
7164 if test "${enable_languages+set}" = set; then
7165 enableval="$enable_languages"
7166 case ,${enable_languages}, in
7167 ,,|,yes,)
7168 # go safe -- we cannot be much sure without the toplevel
7169 # configure's
7170 # analysis of which target libs are present and usable
7171 enable_languages=c
7172 ;;
7173 *,all,*)
7174 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7175 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7176 { (exit 1); exit 1; }; }
7177 ;;
7178 *,c,*)
7179 ;;
7180 *)
7181 enable_languages=c,${enable_languages}
7182 ;;
7183 esac
7184 else
7185 enable_languages=c
7186 fi;
7187
7188
7189 # -------------------------
7190 # Checks for other programs
7191 # -------------------------
7192
7193 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7194 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7195 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 else
7199 cat >conftest.make <<\_ACEOF
7200 all:
7201 @echo 'ac_maketemp="$(MAKE)"'
7202 _ACEOF
7203 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7204 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7205 if test -n "$ac_maketemp"; then
7206 eval ac_cv_prog_make_${ac_make}_set=yes
7207 else
7208 eval ac_cv_prog_make_${ac_make}_set=no
7209 fi
7210 rm -f conftest.make
7211 fi
7212 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7213 echo "$as_me:$LINENO: result: yes" >&5
7214 echo "${ECHO_T}yes" >&6
7215 SET_MAKE=
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 SET_MAKE="MAKE=${MAKE-make}"
7220 fi
7221
7222
7223 # Find some useful tools
7224 for ac_prog in gawk mawk nawk awk
7225 do
7226 # Extract the first word of "$ac_prog", so it can be a program name with args.
7227 set dummy $ac_prog; ac_word=$2
7228 echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7230 if test "${ac_cv_prog_AWK+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233 if test -n "$AWK"; then
7234 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_AWK="$ac_prog"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249
7250 fi
7251 fi
7252 AWK=$ac_cv_prog_AWK
7253 if test -n "$AWK"; then
7254 echo "$as_me:$LINENO: result: $AWK" >&5
7255 echo "${ECHO_T}$AWK" >&6
7256 else
7257 echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259 fi
7260
7261 test -n "$AWK" && break
7262 done
7263
7264 # We need awk to create options.c and options.h.
7265 # Bail out if it's missing.
7266 case ${AWK} in
7267 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7268 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7269 { (exit 1); exit 1; }; } ;;
7270 esac
7271
7272 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7273 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7274 if test "${gcc_cv_prog_LN_S+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 rm -f conftestdata_t
7278 echo >conftestdata_f
7279 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7280 then
7281 gcc_cv_prog_LN_S="ln -s"
7282 else
7283 if ln conftestdata_f conftestdata_t 2>/dev/null
7284 then
7285 gcc_cv_prog_LN_S=ln
7286 else
7287 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7288 then
7289 gcc_cv_prog_LN_S="cp -p"
7290 else
7291 gcc_cv_prog_LN_S=cp
7292 fi
7293 fi
7294 fi
7295 rm -f conftestdata_f conftestdata_t
7296
7297 fi
7298 LN_S="$gcc_cv_prog_LN_S"
7299 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7300 echo "$as_me:$LINENO: result: yes" >&5
7301 echo "${ECHO_T}yes" >&6
7302 else
7303 if test "$gcc_cv_prog_LN_S" = "ln"; then
7304 echo "$as_me:$LINENO: result: no, using ln" >&5
7305 echo "${ECHO_T}no, using ln" >&6
7306 else
7307 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7308 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7309 fi
7310 fi
7311
7312 echo "$as_me:$LINENO: checking whether ln works" >&5
7313 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7314 if test "${acx_cv_prog_LN+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317 rm -f conftestdata_t
7318 echo >conftestdata_f
7319 if ln conftestdata_f conftestdata_t 2>/dev/null
7320 then
7321 acx_cv_prog_LN=ln
7322 else
7323 acx_cv_prog_LN=no
7324 fi
7325 rm -f conftestdata_f conftestdata_t
7326
7327 fi
7328 if test $acx_cv_prog_LN = no; then
7329 LN="$LN_S"
7330 echo "$as_me:$LINENO: result: no, using $LN" >&5
7331 echo "${ECHO_T}no, using $LN" >&6
7332 else
7333 LN="$acx_cv_prog_LN"
7334 echo "$as_me:$LINENO: result: yes" >&5
7335 echo "${ECHO_T}yes" >&6
7336 fi
7337
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7341 echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7343 if test "${ac_cv_prog_RANLIB+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 if test -n "$RANLIB"; then
7347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362
7363 fi
7364 fi
7365 RANLIB=$ac_cv_prog_RANLIB
7366 if test -n "$RANLIB"; then
7367 echo "$as_me:$LINENO: result: $RANLIB" >&5
7368 echo "${ECHO_T}$RANLIB" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7372 fi
7373
7374 fi
7375 if test -z "$ac_cv_prog_RANLIB"; then
7376 ac_ct_RANLIB=$RANLIB
7377 # Extract the first word of "ranlib", so it can be a program name with args.
7378 set dummy ranlib; ac_word=$2
7379 echo "$as_me:$LINENO: checking for $ac_word" >&5
7380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 if test -n "$ac_ct_RANLIB"; then
7385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_RANLIB="ranlib"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400
7401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7402 fi
7403 fi
7404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7405 if test -n "$ac_ct_RANLIB"; then
7406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7408 else
7409 echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6
7411 fi
7412
7413 RANLIB=$ac_ct_RANLIB
7414 else
7415 RANLIB="$ac_cv_prog_RANLIB"
7416 fi
7417
7418 case "${host}" in
7419 *-*-darwin*)
7420 # By default, the Darwin ranlib will not treat common symbols as
7421 # definitions when building the archive table of contents. Other
7422 # ranlibs do that; pass an option to the Darwin ranlib that makes
7423 # it behave similarly.
7424 ranlib_flags="-c"
7425 ;;
7426 *)
7427 ranlib_flags=""
7428 esac
7429
7430
7431 # Find a good install program. We prefer a C program (faster),
7432 # so one script is as good as another. But avoid the broken or
7433 # incompatible versions:
7434 # SysV /etc/install, /usr/sbin/install
7435 # SunOS /usr/etc/install
7436 # IRIX /sbin/install
7437 # AIX /bin/install
7438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7440 # ./install, which can be erroneously created by make from ./install.sh.
7441 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7442 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7443 if test -z "$INSTALL"; then
7444 if test "${ac_cv_path_install+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7448 for ac_dir in $PATH; do
7449 # Account for people who put trailing slashes in PATH elements.
7450 case "$ac_dir/" in
7451 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7452 *)
7453 # OSF1 and SCO ODT 3.0 have their own names for install.
7454 for ac_prog in ginstall scoinst install; do
7455 if test -f $ac_dir/$ac_prog; then
7456 if test $ac_prog = install &&
7457 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7458 # AIX install. It has an incompatible calling convention.
7459 # OSF/1 installbsd also uses dspmsg, but is usable.
7460 :
7461 else
7462 ac_cv_path_install="$ac_dir/$ac_prog -c"
7463 break 2
7464 fi
7465 fi
7466 done
7467 ;;
7468 esac
7469 done
7470 IFS="$ac_save_IFS"
7471
7472 fi
7473 if test "${ac_cv_path_install+set}" = set; then
7474 INSTALL="$ac_cv_path_install"
7475 else
7476 # As a last resort, use the slow shell script. We don't cache a
7477 # path for INSTALL within a source directory, because that will
7478 # break other packages using the cache if that directory is
7479 # removed, or if the path is relative.
7480 INSTALL="$ac_install_sh"
7481 fi
7482 fi
7483 echo "$as_me:$LINENO: result: $INSTALL" >&5
7484 echo "${ECHO_T}$INSTALL" >&6
7485
7486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7487 # It thinks the first close brace ends the variable substitution.
7488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7489
7490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7491
7492
7493 # See if cmp has --ignore-initial.
7494 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7495 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7496 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 echo abfoo >t1
7500 echo cdfoo >t2
7501 gcc_cv_prog_cmp_skip=slowcompare
7502 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7503 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7504 :
7505 else
7506 gcc_cv_prog_cmp_skip=gnucompare
7507 fi
7508 fi
7509 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7510 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7511 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7512 :
7513 else
7514 gcc_cv_prog_cmp_skip=fastcompare
7515 fi
7516 fi
7517 fi
7518 rm t1 t2
7519
7520 fi
7521 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7522 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7523 make_compare_target=$gcc_cv_prog_cmp_skip
7524
7525
7526
7527 # See if we have the mktemp command.
7528 # Extract the first word of "mktemp", so it can be a program name with args.
7529 set dummy mktemp; ac_word=$2
7530 echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7532 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535 if test -n "$have_mktemp_command"; then
7536 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_have_mktemp_command="yes"
7546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549 done
7550 done
7551
7552 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7553 fi
7554 fi
7555 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7556 if test -n "$have_mktemp_command"; then
7557 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7558 echo "${ECHO_T}$have_mktemp_command" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7566
7567 # See if makeinfo has been installed and is modern enough
7568 # that we can use it.
7569
7570 ac_executable_extensions="$build_exeext"
7571
7572 # Extract the first word of "makeinfo", so it can be a program name with args.
7573 set dummy makeinfo; ac_word=$2
7574 echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7576 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579 if test -n "$MAKEINFO"; then
7580 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_MAKEINFO="makeinfo"
7590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593 done
7594 done
7595
7596 fi
7597 fi
7598 MAKEINFO=$ac_cv_prog_MAKEINFO
7599 if test -n "$MAKEINFO"; then
7600 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7601 echo "${ECHO_T}$MAKEINFO" >&6
7602 else
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605 fi
7606
7607 if test -n "$MAKEINFO"; then
7608 # Found it, now check the version.
7609 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7610 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7611 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614 ac_prog_version=`$MAKEINFO --version 2>&1 |
7615 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7616 echo "configure:7616: version of makeinfo is $ac_prog_version" >&5
7617 case $ac_prog_version in
7618 '') gcc_cv_prog_makeinfo_modern=no;;
7619 4.[4-9]*)
7620 gcc_cv_prog_makeinfo_modern=yes;;
7621 *) gcc_cv_prog_makeinfo_modern=no;;
7622 esac
7623
7624 fi
7625 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7626 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7627 else
7628 gcc_cv_prog_makeinfo_modern=no
7629 fi
7630
7631 if test $gcc_cv_prog_makeinfo_modern = no; then
7632 MAKEINFO="$MISSING makeinfo"
7633 { echo "$as_me:$LINENO: WARNING:
7634 *** Makeinfo is missing or too old.
7635 *** Info documentation will not be built." >&5
7636 echo "$as_me: WARNING:
7637 *** Makeinfo is missing or too old.
7638 *** Info documentation will not be built." >&2;}
7639 BUILD_INFO=
7640 else
7641 BUILD_INFO=info
7642 fi
7643
7644
7645 # Is pod2man recent enough to regenerate manpages?
7646 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7647 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7648 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7649 echo "$as_me:$LINENO: result: yes" >&5
7650 echo "${ECHO_T}yes" >&6
7651 GENERATED_MANPAGES=generated-manpages
7652 else
7653 echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6
7655 GENERATED_MANPAGES=
7656 fi
7657
7658
7659 # How about lex?
7660 for ac_prog in flex
7661 do
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7666 if test "${ac_cv_prog_FLEX+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 if test -n "$FLEX"; then
7670 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_FLEX="$ac_prog"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683 done
7684 done
7685
7686 fi
7687 fi
7688 FLEX=$ac_cv_prog_FLEX
7689 if test -n "$FLEX"; then
7690 echo "$as_me:$LINENO: result: $FLEX" >&5
7691 echo "${ECHO_T}$FLEX" >&6
7692 else
7693 echo "$as_me:$LINENO: result: no" >&5
7694 echo "${ECHO_T}no" >&6
7695 fi
7696
7697 test -n "$FLEX" && break
7698 done
7699 test -n "$FLEX" || FLEX="$MISSING flex"
7700
7701
7702 # Bison?
7703 for ac_prog in bison
7704 do
7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy $ac_prog; ac_word=$2
7707 echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709 if test "${ac_cv_prog_BISON+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 if test -n "$BISON"; then
7713 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_BISON="$ac_prog"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728
7729 fi
7730 fi
7731 BISON=$ac_cv_prog_BISON
7732 if test -n "$BISON"; then
7733 echo "$as_me:$LINENO: result: $BISON" >&5
7734 echo "${ECHO_T}$BISON" >&6
7735 else
7736 echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7738 fi
7739
7740 test -n "$BISON" && break
7741 done
7742 test -n "$BISON" || BISON="$MISSING bison"
7743
7744
7745 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7746 # check for build == host before using them.
7747
7748 # NM
7749 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7750 && test -d ../binutils ; then
7751 NM='$(objdir)/../binutils/nm-new'
7752 else
7753 # Extract the first word of "nm", so it can be a program name with args.
7754 set dummy nm; ac_word=$2
7755 echo "$as_me:$LINENO: checking for $ac_word" >&5
7756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757 if test "${ac_cv_prog_NM+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760 if test -n "$NM"; then
7761 ac_cv_prog_NM="$NM" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_NM="nm"
7771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7773 fi
7774 done
7775 done
7776
7777 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7778 fi
7779 fi
7780 NM=$ac_cv_prog_NM
7781 if test -n "$NM"; then
7782 echo "$as_me:$LINENO: result: $NM" >&5
7783 echo "${ECHO_T}$NM" >&6
7784 else
7785 echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7787 fi
7788
7789 fi
7790
7791 # AR
7792 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7793 && test -d ../binutils ; then
7794 AR='$(objdir)/../binutils/ar'
7795 else
7796 # Extract the first word of "ar", so it can be a program name with args.
7797 set dummy ar; ac_word=$2
7798 echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7800 if test "${ac_cv_prog_AR+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 if test -n "$AR"; then
7804 ac_cv_prog_AR="$AR" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_AR="ar"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819
7820 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7821 fi
7822 fi
7823 AR=$ac_cv_prog_AR
7824 if test -n "$AR"; then
7825 echo "$as_me:$LINENO: result: $AR" >&5
7826 echo "${ECHO_T}$AR" >&6
7827 else
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7830 fi
7831
7832 fi
7833
7834
7835 # --------------------
7836 # Checks for C headers
7837 # --------------------
7838
7839 echo "$as_me:$LINENO: checking for GNU C library" >&5
7840 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7841 if test "${gcc_cv_glibc+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844 cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h. */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <features.h>
7851 int
7852 main ()
7853 {
7854
7855 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7856 #error Not a GNU C library system
7857 #endif
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864 (eval $ac_compile) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest.$ac_objext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 gcc_cv_glibc=yes
7885 else
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 gcc_cv_glibc=no
7890 fi
7891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7892 fi
7893
7894 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7895 echo "${ECHO_T}$gcc_cv_glibc" >&6
7896 if test $gcc_cv_glibc = yes; then
7897
7898 cat >>confdefs.h <<\_ACEOF
7899 #define _GNU_SOURCE 1
7900 _ACEOF
7901
7902 fi
7903
7904 # Need to reject headers which give warnings, so that the -Werror bootstrap
7905 # works later. *sigh* This needs to come before all header checks.
7906
7907 ac_c_preproc_warn_flag=yes
7908
7909 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7910 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7911 if test "${ac_cv_header_stdc+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 #include <stdlib.h>
7921 #include <stdarg.h>
7922 #include <string.h>
7923 #include <float.h>
7924
7925 int
7926 main ()
7927 {
7928
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_cv_header_stdc=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_cv_header_stdc=no
7961 fi
7962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963
7964 if test $ac_cv_header_stdc = yes; then
7965 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7966 cat >conftest.$ac_ext <<_ACEOF
7967 /* confdefs.h. */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 #include <string.h>
7973
7974 _ACEOF
7975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7976 $EGREP "memchr" >/dev/null 2>&1; then
7977 :
7978 else
7979 ac_cv_header_stdc=no
7980 fi
7981 rm -f conftest*
7982
7983 fi
7984
7985 if test $ac_cv_header_stdc = yes; then
7986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <stdlib.h>
7994
7995 _ACEOF
7996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7997 $EGREP "free" >/dev/null 2>&1; then
7998 :
7999 else
8000 ac_cv_header_stdc=no
8001 fi
8002 rm -f conftest*
8003
8004 fi
8005
8006 if test $ac_cv_header_stdc = yes; then
8007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8008 if test "$cross_compiling" = yes; then
8009 :
8010 else
8011 cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h. */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 #include <ctype.h>
8018 #if ((' ' & 0x0FF) == 0x020)
8019 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8020 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8021 #else
8022 # define ISLOWER(c) \
8023 (('a' <= (c) && (c) <= 'i') \
8024 || ('j' <= (c) && (c) <= 'r') \
8025 || ('s' <= (c) && (c) <= 'z'))
8026 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8027 #endif
8028
8029 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8030 int
8031 main ()
8032 {
8033 int i;
8034 for (i = 0; i < 256; i++)
8035 if (XOR (islower (i), ISLOWER (i))
8036 || toupper (i) != TOUPPER (i))
8037 exit(2);
8038 exit (0);
8039 }
8040 _ACEOF
8041 rm -f conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 :
8053 else
8054 echo "$as_me: program exited with status $ac_status" >&5
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ( exit $ac_status )
8059 ac_cv_header_stdc=no
8060 fi
8061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8062 fi
8063 fi
8064 fi
8065 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8066 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8067 if test $ac_cv_header_stdc = yes; then
8068
8069 cat >>confdefs.h <<\_ACEOF
8070 #define STDC_HEADERS 1
8071 _ACEOF
8072
8073 fi
8074
8075 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8076 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8077 if test "${ac_cv_header_time+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 #include <sys/types.h>
8087 #include <sys/time.h>
8088 #include <time.h>
8089
8090 int
8091 main ()
8092 {
8093 if ((struct tm *) 0)
8094 return 0;
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag"
8109 || test ! -s conftest.err'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest.$ac_objext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_header_time=yes
8122 else
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ac_cv_header_time=no
8127 fi
8128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 fi
8130 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8131 echo "${ECHO_T}$ac_cv_header_time" >&6
8132 if test $ac_cv_header_time = yes; then
8133
8134 cat >>confdefs.h <<\_ACEOF
8135 #define TIME_WITH_SYS_TIME 1
8136 _ACEOF
8137
8138 fi
8139
8140 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8141 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8142 if test "${gcc_cv_header_string+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <string.h>
8152 #include <strings.h>
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag"
8171 || test ! -s conftest.err'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 (eval $ac_try) 2>&5
8174 ac_status=$?
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try='test -s conftest.$ac_objext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 (eval $ac_try) 2>&5
8180 ac_status=$?
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8183 gcc_cv_header_string=yes
8184 else
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 gcc_cv_header_string=no
8189 fi
8190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8193 echo "${ECHO_T}$gcc_cv_header_string" >&6
8194 if test $gcc_cv_header_string = yes; then
8195
8196 cat >>confdefs.h <<\_ACEOF
8197 #define STRING_WITH_STRINGS 1
8198 _ACEOF
8199
8200 fi
8201
8202 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8203 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8204 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 #include <sys/types.h>
8214 #include <sys/wait.h>
8215 #ifndef WEXITSTATUS
8216 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8217 #endif
8218 #ifndef WIFEXITED
8219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225 int s;
8226 wait (&s);
8227 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_header_sys_wait_h=yes
8255 else
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259 ac_cv_header_sys_wait_h=no
8260 fi
8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262 fi
8263 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8264 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8265 if test $ac_cv_header_sys_wait_h = yes; then
8266
8267 cat >>confdefs.h <<\_ACEOF
8268 #define HAVE_SYS_WAIT_H 1
8269 _ACEOF
8270
8271 fi
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8296 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8297 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8298 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8299 do
8300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8301 echo "$as_me:$LINENO: checking for $ac_header" >&5
8302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 #include <$ac_header>
8313 _ACEOF
8314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } >/dev/null; then
8322 if test -s conftest.err; then
8323 ac_cpp_err=$ac_c_preproc_warn_flag
8324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8325 else
8326 ac_cpp_err=
8327 fi
8328 else
8329 ac_cpp_err=yes
8330 fi
8331 if test -z "$ac_cpp_err"; then
8332 eval "$as_ac_Header=yes"
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 eval "$as_ac_Header=no"
8338 fi
8339 rm -f conftest.err conftest.$ac_ext
8340 fi
8341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8344 cat >>confdefs.h <<_ACEOF
8345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8346 _ACEOF
8347
8348 fi
8349 done
8350
8351
8352 # Check for thread headers.
8353 echo "$as_me:$LINENO: checking for thread.h" >&5
8354 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8355 if test "${ac_cv_header_thread_h+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <thread.h>
8365 _ACEOF
8366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } >/dev/null; then
8374 if test -s conftest.err; then
8375 ac_cpp_err=$ac_c_preproc_warn_flag
8376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8377 else
8378 ac_cpp_err=
8379 fi
8380 else
8381 ac_cpp_err=yes
8382 fi
8383 if test -z "$ac_cpp_err"; then
8384 ac_cv_header_thread_h=yes
8385 else
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389 ac_cv_header_thread_h=no
8390 fi
8391 rm -f conftest.err conftest.$ac_ext
8392 fi
8393 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8394 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8395 if test $ac_cv_header_thread_h = yes; then
8396 have_thread_h=yes
8397 else
8398 have_thread_h=
8399 fi
8400
8401 echo "$as_me:$LINENO: checking for pthread.h" >&5
8402 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8403 if test "${ac_cv_header_pthread_h+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #include <pthread.h>
8413 _ACEOF
8414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8416 ac_status=$?
8417 grep -v '^ *+' conftest.er1 >conftest.err
8418 rm -f conftest.er1
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } >/dev/null; then
8422 if test -s conftest.err; then
8423 ac_cpp_err=$ac_c_preproc_warn_flag
8424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8425 else
8426 ac_cpp_err=
8427 fi
8428 else
8429 ac_cpp_err=yes
8430 fi
8431 if test -z "$ac_cpp_err"; then
8432 ac_cv_header_pthread_h=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_header_pthread_h=no
8438 fi
8439 rm -f conftest.err conftest.$ac_ext
8440 fi
8441 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8442 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8443 if test $ac_cv_header_pthread_h = yes; then
8444 have_pthread_h=yes
8445 else
8446 have_pthread_h=
8447 fi
8448
8449
8450 # These tests can't be done till we know if we have limits.h.
8451 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8452 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8453 if test "${gcc_cv_decl_char_bit+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h. */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 #ifdef HAVE_LIMITS_H
8463 #include <limits.h>
8464 #endif
8465 #ifdef CHAR_BIT
8466 found
8467 #endif
8468 _ACEOF
8469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8470 $EGREP "found" >/dev/null 2>&1; then
8471 gcc_cv_decl_char_bit=yes
8472 else
8473 gcc_cv_decl_char_bit=no
8474 fi
8475 rm -f conftest*
8476
8477
8478 fi
8479 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8480 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8481 if test $gcc_cv_decl_char_bit = no; then
8482 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8483 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8484 if test "${gcc_cv_c_nbby+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 i=8
8488 gcc_cv_c_nbby=
8489 while test $i -lt 65; do
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496
8497 int
8498 main ()
8499 {
8500 switch(0) {
8501 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8502 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8503 ; }
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510 (eval $ac_compile) 2>conftest.er1
8511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 gcc_cv_c_nbby=$i; break
8531 else
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535 fi
8536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8537 i=`expr $i + 1`
8538 done
8539 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8540
8541 fi
8542 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8543 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8544 if test $gcc_cv_c_nbby = failed; then
8545 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8546 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8547 { (exit 1); exit 1; }; }
8548 else
8549
8550 cat >>confdefs.h <<_ACEOF
8551 #define CHAR_BIT $gcc_cv_c_nbby
8552 _ACEOF
8553
8554 fi
8555 fi
8556 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8557 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8558 if test "${ac_cv_c_bigendian+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 # See if sys/param.h defines the BYTE_ORDER macro.
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <sys/types.h>
8569 #include <sys/param.h>
8570
8571 int
8572 main ()
8573 {
8574 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8575 bogus endian macros
8576 #endif
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 rm -f conftest.$ac_objext
8583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 # It does; now see whether it defined to BIG_ENDIAN or not.
8605 cat >conftest.$ac_ext <<_ACEOF
8606 /* confdefs.h. */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8611 #include <sys/types.h>
8612 #include <sys/param.h>
8613
8614 int
8615 main ()
8616 {
8617 #if BYTE_ORDER != BIG_ENDIAN
8618 not big endian
8619 #endif
8620
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest.$ac_objext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_c_bigendian=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 ac_cv_c_bigendian=no
8653 fi
8654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 # It does not; compile a test program.
8660 if test "$cross_compiling" = yes; then
8661 # try to guess the endianness by grepping values into an object file
8662 ac_cv_c_bigendian=unknown
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8670 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8671 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8672 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8673 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8674 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8675 int
8676 main ()
8677 {
8678 _ascii (); _ebcdic ();
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8685 (eval $ac_compile) 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_objext'
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 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8706 ac_cv_c_bigendian=yes
8707 fi
8708 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8709 if test "$ac_cv_c_bigendian" = unknown; then
8710 ac_cv_c_bigendian=no
8711 else
8712 # finding both strings is unlikely to happen, but who knows?
8713 ac_cv_c_bigendian=unknown
8714 fi
8715 fi
8716 else
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8719
8720 fi
8721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8722 else
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 int
8730 main ()
8731 {
8732 /* Are we little or big endian? From Harbison&Steele. */
8733 union
8734 {
8735 long l;
8736 char c[sizeof (long)];
8737 } u;
8738 u.l = 1;
8739 exit (u.c[sizeof (long) - 1] == 1);
8740 }
8741 _ACEOF
8742 rm -f conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>&5
8745 ac_status=$?
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 ac_cv_c_bigendian=no
8754 else
8755 echo "$as_me: program exited with status $ac_status" >&5
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 ( exit $ac_status )
8760 ac_cv_c_bigendian=yes
8761 fi
8762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8763 fi
8764 fi
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8768 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8769 case $ac_cv_c_bigendian in
8770 yes)
8771
8772 cat >>confdefs.h <<\_ACEOF
8773 #define WORDS_BIGENDIAN 1
8774 _ACEOF
8775 ;;
8776 no)
8777 ;;
8778 *)
8779 { { echo "$as_me:$LINENO: error: unknown endianness
8780 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8781 echo "$as_me: error: unknown endianness
8782 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8783 { (exit 1); exit 1; }; } ;;
8784 esac
8785
8786
8787 # --------
8788 # UNSORTED
8789 # --------
8790
8791 # Stage specific cflags for build.
8792 stage1_cflags=
8793 case $build in
8794 vax-*-*)
8795 if test x$GCC = xyes
8796 then
8797 stage1_cflags="-Wa,-J"
8798 else
8799 stage1_cflags="-J"
8800 fi
8801 ;;
8802 powerpc-*-darwin*)
8803 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8804 # sources; use -no-cpp-precomp to get to GNU cpp.
8805 # Apple's GCC has bugs in designated initializer handling, so disable
8806 # that too.
8807 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8808 ;;
8809 esac
8810
8811
8812 # These libraries may be used by collect2.
8813 # We may need a special search path to get them linked.
8814 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8815 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8816 if test "${gcc_cv_collect2_libs+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819 save_LIBS="$LIBS"
8820 for libs in '' -lld -lmld \
8821 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8822 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8823 do
8824 LIBS="$libs"
8825 cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h. */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831
8832 /* Override any gcc2 internal prototype to avoid an error. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8838 char ldopen ();
8839 int
8840 main ()
8841 {
8842 ldopen ();
8843 ;
8844 return 0;
8845 }
8846 _ACEOF
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849 (eval $ac_link) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest$ac_exeext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 gcc_cv_collect2_libs="$libs"; break
8870 else
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 fi
8875 rm -f conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8877 done
8878 LIBS="$save_LIBS"
8879 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8880 fi
8881 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8882 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8883 case $gcc_cv_collect2_libs in
8884 "none required") ;;
8885 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8886 esac
8887
8888
8889 # When building Ada code on Alpha, we need exc_resume which is usually in
8890 # -lexc. So test for it.
8891 save_LIBS="$LIBS"
8892 LIBS=
8893 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8894 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8895 if test "${ac_cv_search_exc_resume+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 ac_func_search_save_LIBS=$LIBS
8899 ac_cv_search_exc_resume=no
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906
8907 /* Override any gcc2 internal prototype to avoid an error. */
8908 #ifdef __cplusplus
8909 extern "C"
8910 #endif
8911 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */
8913 char exc_resume ();
8914 int
8915 main ()
8916 {
8917 exc_resume ();
8918 ;
8919 return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } &&
8931 { ac_try='test -z "$ac_c_werror_flag"
8932 || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5
8935 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest$ac_exeext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_search_exc_resume="none required"
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 fi
8950 rm -f conftest.err conftest.$ac_objext \
8951 conftest$ac_exeext conftest.$ac_ext
8952 if test "$ac_cv_search_exc_resume" = no; then
8953 for ac_lib in exc; do
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961
8962 /* Override any gcc2 internal prototype to avoid an error. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 /* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968 char exc_resume ();
8969 int
8970 main ()
8971 {
8972 exc_resume ();
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8979 (eval $ac_link) 2>conftest.er1
8980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -z "$ac_c_werror_flag"
8987 || test ! -s conftest.err'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 ac_cv_search_exc_resume="-l$ac_lib"
9000 break
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 fi
9006 rm -f conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 done
9009 fi
9010 LIBS=$ac_func_search_save_LIBS
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9013 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9014 if test "$ac_cv_search_exc_resume" != no; then
9015 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9016
9017 fi
9018
9019 GNAT_LIBEXC="$LIBS"
9020 LIBS="$save_LIBS"
9021
9022
9023 # Some systems put ldexp and frexp in libm instead of libc; assume
9024 # they're both in the same place. jcf-dump needs them.
9025 save_LIBS="$LIBS"
9026 LIBS=
9027 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9028 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9029 if test "${ac_cv_search_ldexp+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032 ac_func_search_save_LIBS=$LIBS
9033 ac_cv_search_ldexp=no
9034 cat >conftest.$ac_ext <<_ACEOF
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040
9041 /* Override any gcc2 internal prototype to avoid an error. */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 /* We use char because int might match the return type of a gcc2
9046 builtin and then its argument prototype would still apply. */
9047 char ldexp ();
9048 int
9049 main ()
9050 {
9051 ldexp ();
9052 ;
9053 return 0;
9054 }
9055 _ACEOF
9056 rm -f conftest.$ac_objext conftest$ac_exeext
9057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9058 (eval $ac_link) 2>conftest.er1
9059 ac_status=$?
9060 grep -v '^ *+' conftest.er1 >conftest.err
9061 rm -f conftest.er1
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } &&
9065 { ac_try='test -z "$ac_c_werror_flag"
9066 || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 (eval $ac_try) 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_search_ldexp="none required"
9079 else
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 fi
9084 rm -f conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086 if test "$ac_cv_search_ldexp" = no; then
9087 for ac_lib in m; do
9088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095
9096 /* Override any gcc2 internal prototype to avoid an error. */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char ldexp ();
9103 int
9104 main ()
9105 {
9106 ldexp ();
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_search_ldexp="-l$ac_lib"
9134 break
9135 else
9136 echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 fi
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 done
9143 fi
9144 LIBS=$ac_func_search_save_LIBS
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9147 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9148 if test "$ac_cv_search_ldexp" != no; then
9149 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9150
9151 fi
9152
9153 LDEXP_LIB="$LIBS"
9154 LIBS="$save_LIBS"
9155
9156
9157 # Use <inttypes.h> only if it exists,
9158 # doesn't clash with <sys/types.h>, and declares intmax_t.
9159 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9160 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9161 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <sys/types.h>
9171 #include <inttypes.h>
9172 int
9173 main ()
9174 {
9175 intmax_t i = -1;
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182 (eval $ac_compile) 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
9189 { ac_try='test -z "$ac_c_werror_flag"
9190 || test ! -s conftest.err'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 (eval $ac_try) 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 (eval $ac_try) 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 gcc_cv_header_inttypes_h=yes
9203 else
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 gcc_cv_header_inttypes_h=no
9208 fi
9209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9210 fi
9211
9212 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9213 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9214 if test $gcc_cv_header_inttypes_h = yes; then
9215
9216 cat >>confdefs.h <<\_ACEOF
9217 #define HAVE_INTTYPES_H 1
9218 _ACEOF
9219
9220 fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9260 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9261 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9262 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9263 do
9264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9265 echo "$as_me:$LINENO: checking for $ac_func" >&5
9266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9267 if eval "test \"\${$as_ac_var+set}\" = set"; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h. */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9278 #define $ac_func innocuous_$ac_func
9279
9280 /* System header to define __stub macros and hopefully few prototypes,
9281 which can conflict with char $ac_func (); below.
9282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9283 <limits.h> exists even on freestanding compilers. */
9284
9285 #ifdef __STDC__
9286 # include <limits.h>
9287 #else
9288 # include <assert.h>
9289 #endif
9290
9291 #undef $ac_func
9292
9293 /* Override any gcc2 internal prototype to avoid an error. */
9294 #ifdef __cplusplus
9295 extern "C"
9296 {
9297 #endif
9298 /* We use char because int might match the return type of a gcc2
9299 builtin and then its argument prototype would still apply. */
9300 char $ac_func ();
9301 /* The GNU C library defines this for functions which it implements
9302 to always fail with ENOSYS. Some functions are actually named
9303 something starting with __ and the normal name is an alias. */
9304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9305 choke me
9306 #else
9307 char (*f) () = $ac_func;
9308 #endif
9309 #ifdef __cplusplus
9310 }
9311 #endif
9312
9313 int
9314 main ()
9315 {
9316 return f != $ac_func;
9317 ;
9318 return 0;
9319 }
9320 _ACEOF
9321 rm -f conftest.$ac_objext conftest$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 eval "$as_ac_var=yes"
9344 else
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 eval "$as_ac_var=no"
9349 fi
9350 rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 fi
9353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9355 if test `eval echo '${'$as_ac_var'}'` = yes; then
9356 cat >>confdefs.h <<_ACEOF
9357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9358 _ACEOF
9359
9360 fi
9361 done
9362
9363
9364 if test x$ac_cv_func_mbstowcs = xyes; then
9365 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9366 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9367 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 if test "$cross_compiling" = yes; then
9371 gcc_cv_func_mbstowcs_works=yes
9372 else
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h. */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 #include <stdlib.h>
9380 int main()
9381 {
9382 mbstowcs(0, "", 0);
9383 return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest$ac_exeext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9388 (eval $ac_link) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 gcc_cv_func_mbstowcs_works=yes
9398 else
9399 echo "$as_me: program exited with status $ac_status" >&5
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 ( exit $ac_status )
9404 gcc_cv_func_mbstowcs_works=no
9405 fi
9406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 fi
9409 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9410 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9411 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_WORKING_MBSTOWCS 1
9415 _ACEOF
9416
9417 fi
9418 fi
9419
9420 echo "$as_me:$LINENO: checking for ssize_t" >&5
9421 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9422 if test "${ac_cv_type_ssize_t+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 $ac_includes_default
9432 int
9433 main ()
9434 {
9435 if ((ssize_t *) 0)
9436 return 0;
9437 if (sizeof (ssize_t))
9438 return 0;
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest.$ac_objext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_type_ssize_t=yes
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 ac_cv_type_ssize_t=no
9471 fi
9472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 fi
9474 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9475 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9476 if test $ac_cv_type_ssize_t = yes; then
9477 :
9478 else
9479
9480 cat >>confdefs.h <<_ACEOF
9481 #define ssize_t int
9482 _ACEOF
9483
9484 fi
9485
9486
9487 # Try to determine the array type of the second argument of getgroups
9488 # for the target system (int or gid_t).
9489 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9490 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9491 if test "${ac_cv_type_uid_t+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 #include <sys/types.h>
9501
9502 _ACEOF
9503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9504 $EGREP "uid_t" >/dev/null 2>&1; then
9505 ac_cv_type_uid_t=yes
9506 else
9507 ac_cv_type_uid_t=no
9508 fi
9509 rm -f conftest*
9510
9511 fi
9512 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9513 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9514 if test $ac_cv_type_uid_t = no; then
9515
9516 cat >>confdefs.h <<\_ACEOF
9517 #define uid_t int
9518 _ACEOF
9519
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 #define gid_t int
9523 _ACEOF
9524
9525 fi
9526
9527 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9528 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9529 if test "${ac_cv_type_getgroups+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532 if test "$cross_compiling" = yes; then
9533 ac_cv_type_getgroups=cross
9534 else
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 /* Thanks to Mike Rendell for this test. */
9542 #include <sys/types.h>
9543 #define NGID 256
9544 #undef MAX
9545 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9546
9547 int
9548 main ()
9549 {
9550 gid_t gidset[NGID];
9551 int i, n;
9552 union { gid_t gval; long lval; } val;
9553
9554 val.lval = -1;
9555 for (i = 0; i < NGID; i++)
9556 gidset[i] = val.gval;
9557 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9558 gidset);
9559 /* Exit non-zero if getgroups seems to require an array of ints. This
9560 happens when gid_t is short but getgroups modifies an array of ints. */
9561 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9562 }
9563 _ACEOF
9564 rm -f conftest$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_type_getgroups=gid_t
9576 else
9577 echo "$as_me: program exited with status $ac_status" >&5
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ( exit $ac_status )
9582 ac_cv_type_getgroups=int
9583 fi
9584 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 if test $ac_cv_type_getgroups = cross; then
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 #include <unistd.h>
9594
9595 _ACEOF
9596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9597 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9598 ac_cv_type_getgroups=gid_t
9599 else
9600 ac_cv_type_getgroups=int
9601 fi
9602 rm -f conftest*
9603
9604 fi
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9607 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9608
9609 cat >>confdefs.h <<_ACEOF
9610 #define GETGROUPS_T $ac_cv_type_getgroups
9611 _ACEOF
9612
9613
9614 if test "${target}" = "${build}"; then
9615 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9616 else
9617 case "${target}" in
9618 # This condition may need some tweaking. It should include all
9619 # targets where the array type of the second argument of getgroups
9620 # is int and the type of gid_t is not equivalent to int.
9621 *-*-sunos* | *-*-ultrix*)
9622 TARGET_GETGROUPS_T=int
9623 ;;
9624 *)
9625 TARGET_GETGROUPS_T=gid_t
9626 ;;
9627 esac
9628 fi
9629
9630
9631
9632 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9633 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9634 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h. */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <sys/mman.h>
9644 _ACEOF
9645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9647 ac_status=$?
9648 grep -v '^ *+' conftest.er1 >conftest.err
9649 rm -f conftest.er1
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } >/dev/null; then
9653 if test -s conftest.err; then
9654 ac_cpp_err=$ac_c_preproc_warn_flag
9655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9656 else
9657 ac_cpp_err=
9658 fi
9659 else
9660 ac_cpp_err=yes
9661 fi
9662 if test -z "$ac_cpp_err"; then
9663 ac_cv_header_sys_mman_h=yes
9664 else
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 ac_cv_header_sys_mman_h=no
9669 fi
9670 rm -f conftest.err conftest.$ac_ext
9671 fi
9672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9673 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9674 if test $ac_cv_header_sys_mman_h = yes; then
9675 gcc_header_sys_mman_h=yes
9676 else
9677 gcc_header_sys_mman_h=no
9678 fi
9679
9680 echo "$as_me:$LINENO: checking for mmap" >&5
9681 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9682 if test "${ac_cv_func_mmap+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h. */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9693 #define mmap innocuous_mmap
9694
9695 /* System header to define __stub macros and hopefully few prototypes,
9696 which can conflict with char mmap (); below.
9697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698 <limits.h> exists even on freestanding compilers. */
9699
9700 #ifdef __STDC__
9701 # include <limits.h>
9702 #else
9703 # include <assert.h>
9704 #endif
9705
9706 #undef mmap
9707
9708 /* Override any gcc2 internal prototype to avoid an error. */
9709 #ifdef __cplusplus
9710 extern "C"
9711 {
9712 #endif
9713 /* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9715 char mmap ();
9716 /* The GNU C library defines this for functions which it implements
9717 to always fail with ENOSYS. Some functions are actually named
9718 something starting with __ and the normal name is an alias. */
9719 #if defined (__stub_mmap) || defined (__stub___mmap)
9720 choke me
9721 #else
9722 char (*f) () = mmap;
9723 #endif
9724 #ifdef __cplusplus
9725 }
9726 #endif
9727
9728 int
9729 main ()
9730 {
9731 return f != mmap;
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738 (eval $ac_link) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag"
9746 || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_func_mmap=yes
9759 else
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 ac_cv_func_mmap=no
9764 fi
9765 rm -f conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9769 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9770 if test $ac_cv_func_mmap = yes; then
9771 gcc_func_mmap=yes
9772 else
9773 gcc_func_mmap=no
9774 fi
9775
9776 if test "$gcc_header_sys_mman_h" != yes \
9777 || test "$gcc_func_mmap" != yes; then
9778 gcc_cv_func_mmap_file=no
9779 gcc_cv_func_mmap_dev_zero=no
9780 gcc_cv_func_mmap_anon=no
9781 else
9782 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9783 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9784 if test "${gcc_cv_func_mmap_file+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 # Add a system to this blacklist if
9788 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9789 # memory area containing the same data that you'd get if you applied
9790 # read() to the same fd. The only system known to have a problem here
9791 # is VMS, where text files have record structure.
9792 case "$host_os" in
9793 vms* | ultrix*)
9794 gcc_cv_func_mmap_file=no ;;
9795 *)
9796 gcc_cv_func_mmap_file=yes;;
9797 esac
9798 fi
9799 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9800 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9801 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9802 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9803 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 # Add a system to this blacklist if it has mmap() but /dev/zero
9807 # does not exist, or if mmapping /dev/zero does not give anonymous
9808 # zeroed pages with both the following properties:
9809 # 1. If you map N consecutive pages in with one call, and then
9810 # unmap any subset of those pages, the pages that were not
9811 # explicitly unmapped remain accessible.
9812 # 2. If you map two adjacent blocks of memory and then unmap them
9813 # both at once, they must both go away.
9814 # Systems known to be in this category are Windows (all variants),
9815 # VMS, and Darwin.
9816 case "$host_os" in
9817 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9818 gcc_cv_func_mmap_dev_zero=no ;;
9819 *)
9820 gcc_cv_func_mmap_dev_zero=yes;;
9821 esac
9822 fi
9823 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9824 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9825
9826 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9827 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9828 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9829 if test "${gcc_cv_decl_map_anon+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <sys/types.h>
9839 #include <sys/mman.h>
9840 #include <unistd.h>
9841
9842 #ifndef MAP_ANONYMOUS
9843 #define MAP_ANONYMOUS MAP_ANON
9844 #endif
9845
9846 int
9847 main ()
9848 {
9849 int n = MAP_ANONYMOUS;
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
9876 gcc_cv_decl_map_anon=yes
9877 else
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 gcc_cv_decl_map_anon=no
9882 fi
9883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884 fi
9885 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9886 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9887
9888 if test $gcc_cv_decl_map_anon = no; then
9889 gcc_cv_func_mmap_anon=no
9890 else
9891 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9892 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9893 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9897 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9898 # doesn't give anonymous zeroed pages with the same properties listed
9899 # above for use of /dev/zero.
9900 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9901 case "$host_os" in
9902 vms* | cygwin* | pe | mingw* | sco* | udk* )
9903 gcc_cv_func_mmap_anon=no ;;
9904 *)
9905 gcc_cv_func_mmap_anon=yes;;
9906 esac
9907 fi
9908 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9909 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9910 fi
9911 fi
9912
9913 if test $gcc_cv_func_mmap_file = yes; then
9914
9915 cat >>confdefs.h <<\_ACEOF
9916 #define HAVE_MMAP_FILE 1
9917 _ACEOF
9918
9919 fi
9920 if test $gcc_cv_func_mmap_dev_zero = yes; then
9921
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_MMAP_DEV_ZERO 1
9924 _ACEOF
9925
9926 fi
9927 if test $gcc_cv_func_mmap_anon = yes; then
9928
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_MMAP_ANON 1
9931 _ACEOF
9932
9933 fi
9934
9935
9936 case "${host}" in
9937 *-*-*vms*)
9938 # Under VMS, vfork works very differently than on Unix. The standard test
9939 # won't work, and it isn't easily adaptable. It makes more sense to
9940 # just force it.
9941 ac_cv_func_vfork_works=yes
9942 ;;
9943 esac
9944 echo "$as_me:$LINENO: checking for pid_t" >&5
9945 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9946 if test "${ac_cv_type_pid_t+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h. */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 $ac_includes_default
9956 int
9957 main ()
9958 {
9959 if ((pid_t *) 0)
9960 return 0;
9961 if (sizeof (pid_t))
9962 return 0;
9963 ;
9964 return 0;
9965 }
9966 _ACEOF
9967 rm -f conftest.$ac_objext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9969 (eval $ac_compile) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_c_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_type_pid_t=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ac_cv_type_pid_t=no
9995 fi
9996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9999 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10000 if test $ac_cv_type_pid_t = yes; then
10001 :
10002 else
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define pid_t int
10006 _ACEOF
10007
10008 fi
10009
10010
10011
10012 for ac_header in unistd.h vfork.h
10013 do
10014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10015 echo "$as_me:$LINENO: checking for $ac_header" >&5
10016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 #include <$ac_header>
10027 _ACEOF
10028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } >/dev/null; then
10036 if test -s conftest.err; then
10037 ac_cpp_err=$ac_c_preproc_warn_flag
10038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10039 else
10040 ac_cpp_err=
10041 fi
10042 else
10043 ac_cpp_err=yes
10044 fi
10045 if test -z "$ac_cpp_err"; then
10046 eval "$as_ac_Header=yes"
10047 else
10048 echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 eval "$as_ac_Header=no"
10052 fi
10053 rm -f conftest.err conftest.$ac_ext
10054 fi
10055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10058 cat >>confdefs.h <<_ACEOF
10059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10060 _ACEOF
10061
10062 fi
10063 done
10064
10065
10066
10067 for ac_func in fork vfork
10068 do
10069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10070 echo "$as_me:$LINENO: checking for $ac_func" >&5
10071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10072 if eval "test \"\${$as_ac_var+set}\" = set"; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h. */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10083 #define $ac_func innocuous_$ac_func
10084
10085 /* System header to define __stub macros and hopefully few prototypes,
10086 which can conflict with char $ac_func (); below.
10087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10088 <limits.h> exists even on freestanding compilers. */
10089
10090 #ifdef __STDC__
10091 # include <limits.h>
10092 #else
10093 # include <assert.h>
10094 #endif
10095
10096 #undef $ac_func
10097
10098 /* Override any gcc2 internal prototype to avoid an error. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 {
10102 #endif
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char $ac_func ();
10106 /* The GNU C library defines this for functions which it implements
10107 to always fail with ENOSYS. Some functions are actually named
10108 something starting with __ and the normal name is an alias. */
10109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10110 choke me
10111 #else
10112 char (*f) () = $ac_func;
10113 #endif
10114 #ifdef __cplusplus
10115 }
10116 #endif
10117
10118 int
10119 main ()
10120 {
10121 return f != $ac_func;
10122 ;
10123 return 0;
10124 }
10125 _ACEOF
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128 (eval $ac_link) 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 eval "$as_ac_var=yes"
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 eval "$as_ac_var=no"
10154 fi
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10160 if test `eval echo '${'$as_ac_var'}'` = yes; then
10161 cat >>confdefs.h <<_ACEOF
10162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10163 _ACEOF
10164
10165 fi
10166 done
10167
10168 if test "x$ac_cv_func_fork" = xyes; then
10169 echo "$as_me:$LINENO: checking for working fork" >&5
10170 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10171 if test "${ac_cv_func_fork_works+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174 if test "$cross_compiling" = yes; then
10175 ac_cv_func_fork_works=cross
10176 else
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* By Ruediger Kuhlmann. */
10179 #include <sys/types.h>
10180 #if HAVE_UNISTD_H
10181 # include <unistd.h>
10182 #endif
10183 /* Some systems only have a dummy stub for fork() */
10184 int main ()
10185 {
10186 if (fork() < 0)
10187 exit (1);
10188 exit (0);
10189 }
10190 _ACEOF
10191 rm -f conftest$ac_exeext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10193 (eval $ac_link) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_func_fork_works=yes
10203 else
10204 echo "$as_me: program exited with status $ac_status" >&5
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208 ( exit $ac_status )
10209 ac_cv_func_fork_works=no
10210 fi
10211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10212 fi
10213 fi
10214 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10215 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10216
10217 else
10218 ac_cv_func_fork_works=$ac_cv_func_fork
10219 fi
10220 if test "x$ac_cv_func_fork_works" = xcross; then
10221 case $host in
10222 *-*-amigaos* | *-*-msdosdjgpp*)
10223 # Override, as these systems have only a dummy fork() stub
10224 ac_cv_func_fork_works=no
10225 ;;
10226 *)
10227 ac_cv_func_fork_works=yes
10228 ;;
10229 esac
10230 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10231 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10232 fi
10233 ac_cv_func_vfork_works=$ac_cv_func_vfork
10234 if test "x$ac_cv_func_vfork" = xyes; then
10235 echo "$as_me:$LINENO: checking for working vfork" >&5
10236 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10237 if test "${ac_cv_func_vfork_works+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 if test "$cross_compiling" = yes; then
10241 ac_cv_func_vfork_works=cross
10242 else
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 /* Thanks to Paul Eggert for this test. */
10250 #include <stdio.h>
10251 #include <stdlib.h>
10252 #include <sys/types.h>
10253 #include <sys/stat.h>
10254 #include <sys/wait.h>
10255 #if HAVE_UNISTD_H
10256 # include <unistd.h>
10257 #endif
10258 #if HAVE_VFORK_H
10259 # include <vfork.h>
10260 #endif
10261 /* On some sparc systems, changes by the child to local and incoming
10262 argument registers are propagated back to the parent. The compiler
10263 is told about this with #include <vfork.h>, but some compilers
10264 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10265 static variable whose address is put into a register that is
10266 clobbered by the vfork. */
10267 static void
10268 #ifdef __cplusplus
10269 sparc_address_test (int arg)
10270 # else
10271 sparc_address_test (arg) int arg;
10272 #endif
10273 {
10274 static pid_t child;
10275 if (!child) {
10276 child = vfork ();
10277 if (child < 0) {
10278 perror ("vfork");
10279 _exit(2);
10280 }
10281 if (!child) {
10282 arg = getpid();
10283 write(-1, "", 0);
10284 _exit (arg);
10285 }
10286 }
10287 }
10288
10289 int
10290 main ()
10291 {
10292 pid_t parent = getpid ();
10293 pid_t child;
10294
10295 sparc_address_test (0);
10296
10297 child = vfork ();
10298
10299 if (child == 0) {
10300 /* Here is another test for sparc vfork register problems. This
10301 test uses lots of local variables, at least as many local
10302 variables as main has allocated so far including compiler
10303 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10304 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10305 reuse the register of parent for one of the local variables,
10306 since it will think that parent can't possibly be used any more
10307 in this routine. Assigning to the local variable will thus
10308 munge parent in the parent process. */
10309 pid_t
10310 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10311 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10312 /* Convince the compiler that p..p7 are live; otherwise, it might
10313 use the same hardware register for all 8 local variables. */
10314 if (p != p1 || p != p2 || p != p3 || p != p4
10315 || p != p5 || p != p6 || p != p7)
10316 _exit(1);
10317
10318 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10319 from child file descriptors. If the child closes a descriptor
10320 before it execs or exits, this munges the parent's descriptor
10321 as well. Test for this by closing stdout in the child. */
10322 _exit(close(fileno(stdout)) != 0);
10323 } else {
10324 int status;
10325 struct stat st;
10326
10327 while (wait(&status) != child)
10328 ;
10329 exit(
10330 /* Was there some problem with vforking? */
10331 child < 0
10332
10333 /* Did the child fail? (This shouldn't happen.) */
10334 || status
10335
10336 /* Did the vfork/compiler bug occur? */
10337 || parent != getpid()
10338
10339 /* Did the file descriptor bug occur? */
10340 || fstat(fileno(stdout), &st) != 0
10341 );
10342 }
10343 }
10344 _ACEOF
10345 rm -f conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 ac_cv_func_vfork_works=yes
10357 else
10358 echo "$as_me: program exited with status $ac_status" >&5
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ( exit $ac_status )
10363 ac_cv_func_vfork_works=no
10364 fi
10365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 fi
10368 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10369 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10370
10371 fi;
10372 if test "x$ac_cv_func_fork_works" = xcross; then
10373 ac_cv_func_vfork_works=$ac_cv_func_vfork
10374 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10375 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10376 fi
10377
10378 if test "x$ac_cv_func_vfork_works" = xyes; then
10379
10380 cat >>confdefs.h <<\_ACEOF
10381 #define HAVE_WORKING_VFORK 1
10382 _ACEOF
10383
10384 else
10385
10386 cat >>confdefs.h <<\_ACEOF
10387 #define vfork fork
10388 _ACEOF
10389
10390 fi
10391 if test "x$ac_cv_func_fork_works" = xyes; then
10392
10393 cat >>confdefs.h <<\_ACEOF
10394 #define HAVE_WORKING_FORK 1
10395 _ACEOF
10396
10397 fi
10398
10399
10400
10401 if test "X$prefix" = "XNONE"; then
10402 acl_final_prefix="$ac_default_prefix"
10403 else
10404 acl_final_prefix="$prefix"
10405 fi
10406 if test "X$exec_prefix" = "XNONE"; then
10407 acl_final_exec_prefix='${prefix}'
10408 else
10409 acl_final_exec_prefix="$exec_prefix"
10410 fi
10411 acl_save_prefix="$prefix"
10412 prefix="$acl_final_prefix"
10413 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10414 prefix="$acl_save_prefix"
10415
10416
10417 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10418 if test "${with_gnu_ld+set}" = set; then
10419 withval="$with_gnu_ld"
10420 test "$withval" = no || with_gnu_ld=yes
10421 else
10422 with_gnu_ld=no
10423 fi;
10424 # Prepare PATH_SEPARATOR.
10425 # The user is always right.
10426 if test "${PATH_SEPARATOR+set}" != set; then
10427 echo "#! /bin/sh" >conf$$.sh
10428 echo "exit 0" >>conf$$.sh
10429 chmod +x conf$$.sh
10430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10431 PATH_SEPARATOR=';'
10432 else
10433 PATH_SEPARATOR=:
10434 fi
10435 rm -f conf$$.sh
10436 fi
10437 ac_prog=ld
10438 if test "$GCC" = yes; then
10439 # Check if gcc -print-prog-name=ld gives a path.
10440 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10441 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10442 case $host in
10443 *-*-mingw*)
10444 # gcc leaves a trailing carriage return which upsets mingw
10445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10446 *)
10447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10448 esac
10449 case $ac_prog in
10450 # Accept absolute paths.
10451 [\\/]* | [A-Za-z]:[\\/]*)
10452 re_direlt='/[^/][^/]*/\.\./'
10453 # Canonicalize the path of ld
10454 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10455 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10456 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10457 done
10458 test -z "$LD" && LD="$ac_prog"
10459 ;;
10460 "")
10461 # If it fails, then pretend we aren't using GCC.
10462 ac_prog=ld
10463 ;;
10464 *)
10465 # If it is relative, then search for the first ld in PATH.
10466 with_gnu_ld=unknown
10467 ;;
10468 esac
10469 elif test "$with_gnu_ld" = yes; then
10470 echo "$as_me:$LINENO: checking for GNU ld" >&5
10471 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10472 else
10473 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10474 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10475 fi
10476 if test "${acl_cv_path_LD+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 else
10479 if test -z "$LD"; then
10480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10481 for ac_dir in $PATH; do
10482 test -z "$ac_dir" && ac_dir=.
10483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10484 acl_cv_path_LD="$ac_dir/$ac_prog"
10485 # Check to see if the program is GNU ld. I'd rather use --version,
10486 # but apparently some GNU ld's only accept -v.
10487 # Break only if it was the GNU/non-GNU ld that we prefer.
10488 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10489 test "$with_gnu_ld" != no && break
10490 else
10491 test "$with_gnu_ld" != yes && break
10492 fi
10493 fi
10494 done
10495 IFS="$ac_save_ifs"
10496 else
10497 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10498 fi
10499 fi
10500
10501 LD="$acl_cv_path_LD"
10502 if test -n "$LD"; then
10503 echo "$as_me:$LINENO: result: $LD" >&5
10504 echo "${ECHO_T}$LD" >&6
10505 else
10506 echo "$as_me:$LINENO: result: no" >&5
10507 echo "${ECHO_T}no" >&6
10508 fi
10509 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10510 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10511 { (exit 1); exit 1; }; }
10512 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10513 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10514 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10518 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10519 acl_cv_prog_gnu_ld=yes
10520 else
10521 acl_cv_prog_gnu_ld=no
10522 fi
10523 fi
10524 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10525 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10526 with_gnu_ld=$acl_cv_prog_gnu_ld
10527
10528
10529
10530 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10531 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10532 if test "${acl_cv_rpath+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535
10536 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10537 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10538 . ./conftest.sh
10539 rm -f ./conftest.sh
10540 acl_cv_rpath=done
10541
10542 fi
10543 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10544 echo "${ECHO_T}$acl_cv_rpath" >&6
10545 wl="$acl_cv_wl"
10546 libext="$acl_cv_libext"
10547 shlibext="$acl_cv_shlibext"
10548 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10549 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10550 hardcode_direct="$acl_cv_hardcode_direct"
10551 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10552 # Check whether --enable-rpath or --disable-rpath was given.
10553 if test "${enable_rpath+set}" = set; then
10554 enableval="$enable_rpath"
10555 :
10556 else
10557 enable_rpath=yes
10558 fi;
10559
10560
10561
10562
10563
10564
10565
10566 use_additional=yes
10567
10568 acl_save_prefix="$prefix"
10569 prefix="$acl_final_prefix"
10570 acl_save_exec_prefix="$exec_prefix"
10571 exec_prefix="$acl_final_exec_prefix"
10572
10573 eval additional_includedir=\"$includedir\"
10574 eval additional_libdir=\"$libdir\"
10575
10576 exec_prefix="$acl_save_exec_prefix"
10577 prefix="$acl_save_prefix"
10578
10579
10580 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10581 if test "${with_libiconv_prefix+set}" = set; then
10582 withval="$with_libiconv_prefix"
10583
10584 if test "X$withval" = "Xno"; then
10585 use_additional=no
10586 else
10587 if test "X$withval" = "X"; then
10588
10589 acl_save_prefix="$prefix"
10590 prefix="$acl_final_prefix"
10591 acl_save_exec_prefix="$exec_prefix"
10592 exec_prefix="$acl_final_exec_prefix"
10593
10594 eval additional_includedir=\"$includedir\"
10595 eval additional_libdir=\"$libdir\"
10596
10597 exec_prefix="$acl_save_exec_prefix"
10598 prefix="$acl_save_prefix"
10599
10600 else
10601 additional_includedir="$withval/include"
10602 additional_libdir="$withval/lib"
10603 fi
10604 fi
10605
10606 fi;
10607 LIBICONV=
10608 LTLIBICONV=
10609 INCICONV=
10610 rpathdirs=
10611 ltrpathdirs=
10612 names_already_handled=
10613 names_next_round='iconv '
10614 while test -n "$names_next_round"; do
10615 names_this_round="$names_next_round"
10616 names_next_round=
10617 for name in $names_this_round; do
10618 already_handled=
10619 for n in $names_already_handled; do
10620 if test "$n" = "$name"; then
10621 already_handled=yes
10622 break
10623 fi
10624 done
10625 if test -z "$already_handled"; then
10626 names_already_handled="$names_already_handled $name"
10627 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10628 eval value=\"\$HAVE_LIB$uppername\"
10629 if test -n "$value"; then
10630 if test "$value" = yes; then
10631 eval value=\"\$LIB$uppername\"
10632 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10633 eval value=\"\$LTLIB$uppername\"
10634 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10635 else
10636 :
10637 fi
10638 else
10639 found_dir=
10640 found_la=
10641 found_so=
10642 found_a=
10643 if test $use_additional = yes; then
10644 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10645 found_dir="$additional_libdir"
10646 found_so="$additional_libdir/lib$name.$shlibext"
10647 if test -f "$additional_libdir/lib$name.la"; then
10648 found_la="$additional_libdir/lib$name.la"
10649 fi
10650 else
10651 if test -f "$additional_libdir/lib$name.$libext"; then
10652 found_dir="$additional_libdir"
10653 found_a="$additional_libdir/lib$name.$libext"
10654 if test -f "$additional_libdir/lib$name.la"; then
10655 found_la="$additional_libdir/lib$name.la"
10656 fi
10657 fi
10658 fi
10659 fi
10660 if test "X$found_dir" = "X"; then
10661 for x in $LDFLAGS $LTLIBICONV; do
10662
10663 acl_save_prefix="$prefix"
10664 prefix="$acl_final_prefix"
10665 acl_save_exec_prefix="$exec_prefix"
10666 exec_prefix="$acl_final_exec_prefix"
10667 eval x=\"$x\"
10668 exec_prefix="$acl_save_exec_prefix"
10669 prefix="$acl_save_prefix"
10670
10671 case "$x" in
10672 -L*)
10673 dir=`echo "X$x" | sed -e 's/^X-L//'`
10674 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10675 found_dir="$dir"
10676 found_so="$dir/lib$name.$shlibext"
10677 if test -f "$dir/lib$name.la"; then
10678 found_la="$dir/lib$name.la"
10679 fi
10680 else
10681 if test -f "$dir/lib$name.$libext"; then
10682 found_dir="$dir"
10683 found_a="$dir/lib$name.$libext"
10684 if test -f "$dir/lib$name.la"; then
10685 found_la="$dir/lib$name.la"
10686 fi
10687 fi
10688 fi
10689 ;;
10690 esac
10691 if test "X$found_dir" != "X"; then
10692 break
10693 fi
10694 done
10695 fi
10696 if test "X$found_dir" != "X"; then
10697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10698 if test "X$found_so" != "X"; then
10699 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10700 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10701 else
10702 haveit=
10703 for x in $ltrpathdirs; do
10704 if test "X$x" = "X$found_dir"; then
10705 haveit=yes
10706 break
10707 fi
10708 done
10709 if test -z "$haveit"; then
10710 ltrpathdirs="$ltrpathdirs $found_dir"
10711 fi
10712 if test "$hardcode_direct" = yes; then
10713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10714 else
10715 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10716 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10717 haveit=
10718 for x in $rpathdirs; do
10719 if test "X$x" = "X$found_dir"; then
10720 haveit=yes
10721 break
10722 fi
10723 done
10724 if test -z "$haveit"; then
10725 rpathdirs="$rpathdirs $found_dir"
10726 fi
10727 else
10728 haveit=
10729 for x in $LDFLAGS $LIBICONV; do
10730
10731 acl_save_prefix="$prefix"
10732 prefix="$acl_final_prefix"
10733 acl_save_exec_prefix="$exec_prefix"
10734 exec_prefix="$acl_final_exec_prefix"
10735 eval x=\"$x\"
10736 exec_prefix="$acl_save_exec_prefix"
10737 prefix="$acl_save_prefix"
10738
10739 if test "X$x" = "X-L$found_dir"; then
10740 haveit=yes
10741 break
10742 fi
10743 done
10744 if test -z "$haveit"; then
10745 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10746 fi
10747 if test "$hardcode_minus_L" != no; then
10748 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10749 else
10750 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10751 fi
10752 fi
10753 fi
10754 fi
10755 else
10756 if test "X$found_a" != "X"; then
10757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10758 else
10759 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10760 fi
10761 fi
10762 additional_includedir=
10763 case "$found_dir" in
10764 */lib | */lib/)
10765 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10766 additional_includedir="$basedir/include"
10767 ;;
10768 esac
10769 if test "X$additional_includedir" != "X"; then
10770 if test "X$additional_includedir" != "X/usr/include"; then
10771 haveit=
10772 if test "X$additional_includedir" = "X/usr/local/include"; then
10773 if test -n "$GCC"; then
10774 case $host_os in
10775 linux*) haveit=yes;;
10776 esac
10777 fi
10778 fi
10779 if test -z "$haveit"; then
10780 for x in $CPPFLAGS $INCICONV; do
10781
10782 acl_save_prefix="$prefix"
10783 prefix="$acl_final_prefix"
10784 acl_save_exec_prefix="$exec_prefix"
10785 exec_prefix="$acl_final_exec_prefix"
10786 eval x=\"$x\"
10787 exec_prefix="$acl_save_exec_prefix"
10788 prefix="$acl_save_prefix"
10789
10790 if test "X$x" = "X-I$additional_includedir"; then
10791 haveit=yes
10792 break
10793 fi
10794 done
10795 if test -z "$haveit"; then
10796 if test -d "$additional_includedir"; then
10797 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10798 fi
10799 fi
10800 fi
10801 fi
10802 fi
10803 if test -n "$found_la"; then
10804 save_libdir="$libdir"
10805 case "$found_la" in
10806 */* | *\\*) . "$found_la" ;;
10807 *) . "./$found_la" ;;
10808 esac
10809 libdir="$save_libdir"
10810 for dep in $dependency_libs; do
10811 case "$dep" in
10812 -L*)
10813 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10814 if test "X$additional_libdir" != "X/usr/lib"; then
10815 haveit=
10816 if test "X$additional_libdir" = "X/usr/local/lib"; then
10817 if test -n "$GCC"; then
10818 case $host_os in
10819 linux*) haveit=yes;;
10820 esac
10821 fi
10822 fi
10823 if test -z "$haveit"; then
10824 haveit=
10825 for x in $LDFLAGS $LIBICONV; do
10826
10827 acl_save_prefix="$prefix"
10828 prefix="$acl_final_prefix"
10829 acl_save_exec_prefix="$exec_prefix"
10830 exec_prefix="$acl_final_exec_prefix"
10831 eval x=\"$x\"
10832 exec_prefix="$acl_save_exec_prefix"
10833 prefix="$acl_save_prefix"
10834
10835 if test "X$x" = "X-L$additional_libdir"; then
10836 haveit=yes
10837 break
10838 fi
10839 done
10840 if test -z "$haveit"; then
10841 if test -d "$additional_libdir"; then
10842 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10843 fi
10844 fi
10845 haveit=
10846 for x in $LDFLAGS $LTLIBICONV; do
10847
10848 acl_save_prefix="$prefix"
10849 prefix="$acl_final_prefix"
10850 acl_save_exec_prefix="$exec_prefix"
10851 exec_prefix="$acl_final_exec_prefix"
10852 eval x=\"$x\"
10853 exec_prefix="$acl_save_exec_prefix"
10854 prefix="$acl_save_prefix"
10855
10856 if test "X$x" = "X-L$additional_libdir"; then
10857 haveit=yes
10858 break
10859 fi
10860 done
10861 if test -z "$haveit"; then
10862 if test -d "$additional_libdir"; then
10863 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10864 fi
10865 fi
10866 fi
10867 fi
10868 ;;
10869 -R*)
10870 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10871 if test "$enable_rpath" != no; then
10872 haveit=
10873 for x in $rpathdirs; do
10874 if test "X$x" = "X$dir"; then
10875 haveit=yes
10876 break
10877 fi
10878 done
10879 if test -z "$haveit"; then
10880 rpathdirs="$rpathdirs $dir"
10881 fi
10882 haveit=
10883 for x in $ltrpathdirs; do
10884 if test "X$x" = "X$dir"; then
10885 haveit=yes
10886 break
10887 fi
10888 done
10889 if test -z "$haveit"; then
10890 ltrpathdirs="$ltrpathdirs $dir"
10891 fi
10892 fi
10893 ;;
10894 -l*)
10895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10896 ;;
10897 *.la)
10898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10899 ;;
10900 *)
10901 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10902 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10903 ;;
10904 esac
10905 done
10906 fi
10907 else
10908 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10910 fi
10911 fi
10912 fi
10913 done
10914 done
10915 if test "X$rpathdirs" != "X"; then
10916 if test -n "$hardcode_libdir_separator"; then
10917 alldirs=
10918 for found_dir in $rpathdirs; do
10919 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10920 done
10921 acl_save_libdir="$libdir"
10922 libdir="$alldirs"
10923 eval flag=\"$hardcode_libdir_flag_spec\"
10924 libdir="$acl_save_libdir"
10925 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10926 else
10927 for found_dir in $rpathdirs; do
10928 acl_save_libdir="$libdir"
10929 libdir="$found_dir"
10930 eval flag=\"$hardcode_libdir_flag_spec\"
10931 libdir="$acl_save_libdir"
10932 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10933 done
10934 fi
10935 fi
10936 if test "X$ltrpathdirs" != "X"; then
10937 for found_dir in $ltrpathdirs; do
10938 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10939 done
10940 fi
10941
10942
10943
10944
10945
10946
10947
10948 am_save_CPPFLAGS="$CPPFLAGS"
10949
10950 for element in $INCICONV; do
10951 haveit=
10952 for x in $CPPFLAGS; do
10953
10954 acl_save_prefix="$prefix"
10955 prefix="$acl_final_prefix"
10956 acl_save_exec_prefix="$exec_prefix"
10957 exec_prefix="$acl_final_exec_prefix"
10958 eval x=\"$x\"
10959 exec_prefix="$acl_save_exec_prefix"
10960 prefix="$acl_save_prefix"
10961
10962 if test "X$x" = "X$element"; then
10963 haveit=yes
10964 break
10965 fi
10966 done
10967 if test -z "$haveit"; then
10968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10969 fi
10970 done
10971
10972
10973 echo "$as_me:$LINENO: checking for iconv" >&5
10974 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10975 if test "${am_cv_func_iconv+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978
10979 am_cv_func_iconv="no, consider installing GNU libiconv"
10980 am_cv_lib_iconv=no
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h. */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10987 #include <stdlib.h>
10988 #include <iconv.h>
10989 int
10990 main ()
10991 {
10992 iconv_t cd = iconv_open("","");
10993 iconv(cd,NULL,NULL,NULL,NULL);
10994 iconv_close(cd);
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -z "$ac_c_werror_flag"
11009 || test ! -s conftest.err'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 am_cv_func_iconv=yes
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11025
11026 fi
11027 rm -f conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11029 if test "$am_cv_func_iconv" != yes; then
11030 am_save_LIBS="$LIBS"
11031 LIBS="$LIBS $LIBICONV"
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <stdlib.h>
11039 #include <iconv.h>
11040 int
11041 main ()
11042 {
11043 iconv_t cd = iconv_open("","");
11044 iconv(cd,NULL,NULL,NULL,NULL);
11045 iconv_close(cd);
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11052 (eval $ac_link) 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -z "$ac_c_werror_flag"
11060 || test ! -s conftest.err'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11063 ac_status=$?
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } &&
11066 { ac_try='test -s conftest$ac_exeext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 am_cv_lib_iconv=yes
11073 am_cv_func_iconv=yes
11074 else
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 fi
11079 rm -f conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081 LIBS="$am_save_LIBS"
11082 fi
11083
11084 fi
11085 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11086 echo "${ECHO_T}$am_cv_func_iconv" >&6
11087 if test "$am_cv_func_iconv" = yes; then
11088
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_ICONV 1
11091 _ACEOF
11092
11093 fi
11094 if test "$am_cv_lib_iconv" = yes; then
11095 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11096 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11097 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11098 echo "${ECHO_T}$LIBICONV" >&6
11099 else
11100 CPPFLAGS="$am_save_CPPFLAGS"
11101 LIBICONV=
11102 LTLIBICONV=
11103 fi
11104
11105
11106
11107 if test "$am_cv_func_iconv" = yes; then
11108 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11109 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11110 if test "${am_cv_proto_iconv+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120
11121 #include <stdlib.h>
11122 #include <iconv.h>
11123 extern
11124 #ifdef __cplusplus
11125 "C"
11126 #endif
11127 #if defined(__STDC__) || defined(__cplusplus)
11128 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11129 #else
11130 size_t iconv();
11131 #endif
11132
11133 int
11134 main ()
11135 {
11136
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 am_cv_proto_iconv_arg1=""
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 am_cv_proto_iconv_arg1="const"
11169 fi
11170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11171 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);"
11172 fi
11173
11174 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11175 echo "$as_me:$LINENO: result: ${ac_t:-
11176 }$am_cv_proto_iconv" >&5
11177 echo "${ECHO_T}${ac_t:-
11178 }$am_cv_proto_iconv" >&6
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define ICONV_CONST $am_cv_proto_iconv_arg1
11182 _ACEOF
11183
11184 fi
11185
11186 # Until we have in-tree GNU iconv:
11187 LIBICONV_DEP=
11188
11189
11190
11191 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11192 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <locale.h>
11203 int
11204 main ()
11205 {
11206 return LC_MESSAGES
11207 ;
11208 return 0;
11209 }
11210 _ACEOF
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag"
11221 || test ! -s conftest.err'
11222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 am_cv_val_LC_MESSAGES=yes
11234 else
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 am_cv_val_LC_MESSAGES=no
11239 fi
11240 rm -f conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242 fi
11243 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11244 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11245 if test $am_cv_val_LC_MESSAGES = yes; then
11246
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_LC_MESSAGES 1
11249 _ACEOF
11250
11251 fi
11252
11253
11254
11255 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11256 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11257 if test "${am_cv_langinfo_codeset+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260 cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h. */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 #include <langinfo.h>
11267 int
11268 main ()
11269 {
11270 char* cs = nl_langinfo(CODESET);
11271 ;
11272 return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext conftest$ac_exeext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11277 (eval $ac_link) 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_exeext'
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 am_cv_langinfo_codeset=yes
11298 else
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 am_cv_langinfo_codeset=no
11303 fi
11304 rm -f conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306
11307 fi
11308 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11309 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11310 if test $am_cv_langinfo_codeset = yes; then
11311
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_LANGINFO_CODESET 1
11314 _ACEOF
11315
11316 fi
11317
11318
11319 # We will need to find libiberty.h and ansidecl.h
11320 saved_CFLAGS="$CFLAGS"
11321 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11362 strsignal strstr strverscmp \
11363 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11364 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11365 do
11366 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11367 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11368 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11369 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #undef $ac_tr_decl
11379 #define $ac_tr_decl 1
11380
11381 #include "ansidecl.h"
11382 #include "system.h"
11383
11384 int
11385 main ()
11386 {
11387 #ifndef $ac_func
11388 char *(*pfn) = (char *(*)) $ac_func ;
11389 #endif
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag"
11404 || test ! -s conftest.err'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; } &&
11410 { ac_try='test -s conftest.$ac_objext'
11411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412 (eval $ac_try) 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 eval "gcc_cv_have_decl_$ac_func=yes"
11417 else
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 eval "gcc_cv_have_decl_$ac_func=no"
11422 fi
11423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11424 fi
11425
11426 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11427 echo "$as_me:$LINENO: result: yes" >&5
11428 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11429 #define $ac_tr_decl 1
11430 _ACEOF
11431
11432 else
11433 echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11435 #define $ac_tr_decl 0
11436 _ACEOF
11437
11438 fi
11439
11440 done
11441
11442
11443
11444
11445
11446 for ac_func in getrlimit setrlimit getrusage
11447 do
11448 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11449 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11450 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11451 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454 cat >conftest.$ac_ext <<_ACEOF
11455 /* confdefs.h. */
11456 _ACEOF
11457 cat confdefs.h >>conftest.$ac_ext
11458 cat >>conftest.$ac_ext <<_ACEOF
11459 /* end confdefs.h. */
11460 #undef $ac_tr_decl
11461 #define $ac_tr_decl 1
11462
11463 #include "ansidecl.h"
11464 #include "system.h"
11465 #ifdef HAVE_SYS_RESOURCE_H
11466 #include <sys/resource.h>
11467 #endif
11468
11469
11470 int
11471 main ()
11472 {
11473 #ifndef $ac_func
11474 char *(*pfn) = (char *(*)) $ac_func ;
11475 #endif
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag"
11490 || test ! -s conftest.err'
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 eval "gcc_cv_have_decl_$ac_func=yes"
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 eval "gcc_cv_have_decl_$ac_func=no"
11508 fi
11509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11510 fi
11511
11512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11513 echo "$as_me:$LINENO: result: yes" >&5
11514 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11515 #define $ac_tr_decl 1
11516 _ACEOF
11517
11518 else
11519 echo "$as_me:$LINENO: result: no" >&5
11520 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11521 #define $ac_tr_decl 0
11522 _ACEOF
11523
11524 fi
11525
11526 done
11527
11528
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535
11536 #include "ansidecl.h"
11537 #include "system.h"
11538 #ifdef HAVE_SYS_RESOURCE_H
11539 #include <sys/resource.h>
11540 #endif
11541
11542 int
11543 main ()
11544 {
11545 rlim_t l = 0;
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest.$ac_objext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11569 ac_status=$?
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 :
11573 else
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577
11578 cat >>confdefs.h <<\_ACEOF
11579 #define rlim_t long
11580 _ACEOF
11581
11582 fi
11583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11584
11585 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11586 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11587 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11588 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11589
11590 for ac_func in ldgetname
11591 do
11592 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11593 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11594 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11595 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 #undef $ac_tr_decl
11605 #define $ac_tr_decl 1
11606
11607 #include "ansidecl.h"
11608 #include "system.h"
11609 #ifdef HAVE_LDFCN_H
11610 #undef FREAD
11611 #undef FWRITE
11612 #include <ldfcn.h>
11613 #endif
11614
11615
11616 int
11617 main ()
11618 {
11619 #ifndef $ac_func
11620 char *(*pfn) = (char *(*)) $ac_func ;
11621 #endif
11622 ;
11623 return 0;
11624 }
11625 _ACEOF
11626 rm -f conftest.$ac_objext
11627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11628 (eval $ac_compile) 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } &&
11635 { ac_try='test -z "$ac_c_werror_flag"
11636 || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 eval "gcc_cv_have_decl_$ac_func=yes"
11649 else
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653 eval "gcc_cv_have_decl_$ac_func=no"
11654 fi
11655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11656 fi
11657
11658 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11659 echo "$as_me:$LINENO: result: yes" >&5
11660 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11661 #define $ac_tr_decl 1
11662 _ACEOF
11663
11664 else
11665 echo "$as_me:$LINENO: result: no" >&5
11666 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11667 #define $ac_tr_decl 0
11668 _ACEOF
11669
11670 fi
11671
11672 done
11673
11674
11675
11676 for ac_func in times
11677 do
11678 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11679 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11680 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11681 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 #undef $ac_tr_decl
11691 #define $ac_tr_decl 1
11692
11693 #include "ansidecl.h"
11694 #include "system.h"
11695 #ifdef HAVE_SYS_TIMES_H
11696 #include <sys/times.h>
11697 #endif
11698
11699
11700 int
11701 main ()
11702 {
11703 #ifndef $ac_func
11704 char *(*pfn) = (char *(*)) $ac_func ;
11705 #endif
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -z "$ac_c_werror_flag"
11720 || test ! -s conftest.err'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; } &&
11726 { ac_try='test -s conftest.$ac_objext'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; }; then
11732 eval "gcc_cv_have_decl_$ac_func=yes"
11733 else
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 eval "gcc_cv_have_decl_$ac_func=no"
11738 fi
11739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11740 fi
11741
11742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11743 echo "$as_me:$LINENO: result: yes" >&5
11744 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11745 #define $ac_tr_decl 1
11746 _ACEOF
11747
11748 else
11749 echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11751 #define $ac_tr_decl 0
11752 _ACEOF
11753
11754 fi
11755
11756 done
11757
11758
11759 # More time-related stuff.
11760 echo "$as_me:$LINENO: checking for struct tms" >&5
11761 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11762 if test "${ac_cv_struct_tms+set}" = set; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 else
11765
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772
11773 #include "ansidecl.h"
11774 #include "system.h"
11775 #ifdef HAVE_SYS_TIMES_H
11776 #include <sys/times.h>
11777 #endif
11778
11779 int
11780 main ()
11781 {
11782 struct tms tms;
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_struct_tms=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_cv_struct_tms=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 fi
11818 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11819 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11820 if test $ac_cv_struct_tms = yes; then
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_STRUCT_TMS 1
11824 _ACEOF
11825
11826 fi
11827
11828 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11829 # revisit after autoconf 2.50.
11830 echo "$as_me:$LINENO: checking for clock_t" >&5
11831 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11832 if test "${gcc_cv_type_clock_t+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h. */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842
11843 #include "ansidecl.h"
11844 #include "system.h"
11845
11846 int
11847 main ()
11848 {
11849 clock_t x;
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11856 (eval $ac_compile) 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } &&
11863 { ac_try='test -z "$ac_c_werror_flag"
11864 || test ! -s conftest.err'
11865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866 (eval $ac_try) 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 gcc_cv_type_clock_t=yes
11877 else
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881 gcc_cv_type_clock_t=no
11882 fi
11883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11884 fi
11885 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11886 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11887 if test $gcc_cv_type_clock_t = yes; then
11888
11889 cat >>confdefs.h <<\_ACEOF
11890 #define HAVE_CLOCK_T 1
11891 _ACEOF
11892
11893 fi
11894
11895 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11896 CFLAGS="$saved_CFLAGS"
11897
11898 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11899 if test "${enable_initfini_array+set}" = set; then
11900 enableval="$enable_initfini_array"
11901
11902 else
11903
11904 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11905 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11906 if test "${gcc_cv_initfini_array+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 else
11909 if test "$cross_compiling" = yes; then
11910 gcc_cv_initfini_array=no
11911 else
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918
11919 static int x = -1;
11920 int main (void) { return x; }
11921 int foo (void) { x = 0; }
11922 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11923 _ACEOF
11924 rm -f conftest$ac_exeext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11926 (eval $ac_link) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 gcc_cv_initfini_array=yes
11936 else
11937 echo "$as_me: program exited with status $ac_status" >&5
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ( exit $ac_status )
11942 gcc_cv_initfini_array=no
11943 fi
11944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11945 fi
11946 fi
11947 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11948 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11949 enable_initfini_array=$gcc_cv_initfini_array
11950
11951 fi;
11952 if test $enable_initfini_array = yes; then
11953
11954 cat >>confdefs.h <<\_ACEOF
11955 #define HAVE_INITFINI_ARRAY 1
11956 _ACEOF
11957
11958 fi
11959
11960 # mkdir takes a single argument on some systems.
11961 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11962 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11963 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 else
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972
11973 #include <sys/types.h>
11974 #ifdef HAVE_SYS_STAT_H
11975 # include <sys/stat.h>
11976 #endif
11977 #ifdef HAVE_UNISTD_H
11978 # include <unistd.h>
11979 #endif
11980 #ifdef HAVE_DIRECT_H
11981 # include <direct.h>
11982 #endif
11983 int
11984 main ()
11985 {
11986 mkdir ("foo", 0);
11987 ;
11988 return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest.$ac_objext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 gcc_cv_mkdir_takes_one_arg=no
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 gcc_cv_mkdir_takes_one_arg=yes
12019 fi
12020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12021 fi
12022 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12023 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12024 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12025
12026 cat >>confdefs.h <<\_ACEOF
12027 #define MKDIR_TAKES_ONE_ARG 1
12028 _ACEOF
12029
12030 fi
12031
12032
12033 # File extensions
12034 manext='.1'
12035 objext='.o'
12036
12037
12038
12039 # With Setjmp/Longjmp based exception handling.
12040 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12041 if test "${enable_sjlj_exceptions+set}" = set; then
12042 enableval="$enable_sjlj_exceptions"
12043 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12044
12045 cat >>confdefs.h <<_ACEOF
12046 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12047 _ACEOF
12048
12049 fi;
12050
12051 # For platforms with the unwind ABI which includes an unwind library,
12052 # libunwind, we can choose to use the system libunwind.
12053
12054 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12055 if test "${with_system_libunwind+set}" = set; then
12056 withval="$with_system_libunwind"
12057
12058 fi;
12059
12060 # --------------------------------------------------------
12061 # Build, host, and target specific configuration fragments
12062 # --------------------------------------------------------
12063
12064 # Collect build-machine-specific information.
12065 . ${srcdir}/config.build
12066
12067 # Collect host-machine-specific information.
12068 . ${srcdir}/config.host
12069
12070 target_gtfiles=
12071
12072 # Collect target-machine-specific information.
12073 . ${srcdir}/config.gcc
12074
12075 extra_objs="${host_extra_objs} ${extra_objs}"
12076 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12077
12078 # Default the target-machine variables that were not explicitly set.
12079 if test x"$tm_file" = x
12080 then tm_file=$cpu_type/$cpu_type.h; fi
12081
12082 if test x"$extra_headers" = x
12083 then extra_headers=; fi
12084
12085 if test x$md_file = x
12086 then md_file=$cpu_type/$cpu_type.md; fi
12087
12088 if test x$out_file = x
12089 then out_file=$cpu_type/$cpu_type.c; fi
12090
12091 if test x"$tmake_file" = x
12092 then tmake_file=$cpu_type/t-$cpu_type
12093 fi
12094
12095 if test x"$dwarf2" = xyes
12096 then tm_file="$tm_file tm-dwarf2.h"
12097 fi
12098
12099 # Say what files are being used for the output code and MD file.
12100 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12101 echo "Using \`$srcdir/config/$md_file' as machine description file."
12102
12103 # If any of the xm_file variables contain nonexistent files, warn
12104 # about them and drop them.
12105
12106 bx=
12107 for x in $build_xm_file; do
12108 if test -f $srcdir/config/$x
12109 then bx="$bx $x"
12110 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12111 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12112 fi
12113 done
12114 build_xm_file="$bx"
12115
12116 hx=
12117 for x in $host_xm_file; do
12118 if test -f $srcdir/config/$x
12119 then hx="$hx $x"
12120 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12121 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12122 fi
12123 done
12124 host_xm_file="$hx"
12125
12126 tx=
12127 for x in $xm_file; do
12128 if test -f $srcdir/config/$x
12129 then tx="$tx $x"
12130 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12131 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12132 fi
12133 done
12134 xm_file="$tx"
12135
12136 count=a
12137 for f in $tm_file; do
12138 count=${count}x
12139 done
12140 if test $count = ax; then
12141 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12142 else
12143 echo "Using the following target machine macro files:"
12144 for f in $tm_file; do
12145 echo " $srcdir/config/$f"
12146 done
12147 fi
12148
12149 if test x$need_64bit_hwint = xyes; then
12150
12151 cat >>confdefs.h <<\_ACEOF
12152 #define NEED_64BIT_HOST_WIDE_INT 1
12153 _ACEOF
12154
12155 fi
12156
12157 if test x$use_long_long_for_widest_fast_int = xyes; then
12158
12159 cat >>confdefs.h <<\_ACEOF
12160 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12161 _ACEOF
12162
12163 fi
12164
12165 count=a
12166 for f in $host_xm_file; do
12167 count=${count}x
12168 done
12169 if test $count = a; then
12170 :
12171 elif test $count = ax; then
12172 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12173 else
12174 echo "Using the following host machine macro files:"
12175 for f in $host_xm_file; do
12176 echo " $srcdir/config/$f"
12177 done
12178 fi
12179 echo "Using ${out_host_hook_obj} for host machine hooks."
12180
12181 if test "$host_xm_file" != "$build_xm_file"; then
12182 count=a
12183 for f in $build_xm_file; do
12184 count=${count}x
12185 done
12186 if test $count = a; then
12187 :
12188 elif test $count = ax; then
12189 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12190 else
12191 echo "Using the following build machine macro files:"
12192 for f in $build_xm_file; do
12193 echo " $srcdir/config/$f"
12194 done
12195 fi
12196 fi
12197
12198 # ---------
12199 # Threading
12200 # ---------
12201
12202 # Check if a valid thread package
12203 case ${enable_threads} in
12204 "" | no)
12205 # No threads
12206 target_thread_file='single'
12207 ;;
12208 yes)
12209 # default
12210 target_thread_file='single'
12211 ;;
12212 aix | dce | gnat | irix | posix | posix95 | rtems | \
12213 single | solaris | vxworks | win32 )
12214 target_thread_file=${enable_threads}
12215 ;;
12216 *)
12217 echo "${enable_threads} is an unknown thread package" 1>&2
12218 exit 1
12219 ;;
12220 esac
12221
12222 if test x${thread_file} = x; then
12223 # No thread file set by target-specific clauses in config.gcc,
12224 # so use file chosen by default logic above
12225 thread_file=${target_thread_file}
12226 fi
12227
12228 # Make gthr-default.h if we have a thread file.
12229 gthread_flags=
12230 if test $thread_file != single; then
12231 rm -f gthr-default.h
12232 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12233 gthread_flags=-DHAVE_GTHR_DEFAULT
12234 fi
12235
12236
12237 # --------
12238 # UNSORTED
12239 # --------
12240
12241 use_cxa_atexit=no
12242 if test x$enable___cxa_atexit = xyes || \
12243 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12244 if test x$host = x$target; then
12245 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12246 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12247 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250 cat >conftest.$ac_ext <<_ACEOF
12251 /* confdefs.h. */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258 #define __cxa_atexit innocuous___cxa_atexit
12259
12260 /* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char __cxa_atexit (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12264
12265 #ifdef __STDC__
12266 # include <limits.h>
12267 #else
12268 # include <assert.h>
12269 #endif
12270
12271 #undef __cxa_atexit
12272
12273 /* Override any gcc2 internal prototype to avoid an error. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 {
12277 #endif
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char __cxa_atexit ();
12281 /* The GNU C library defines this for functions which it implements
12282 to always fail with ENOSYS. Some functions are actually named
12283 something starting with __ and the normal name is an alias. */
12284 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12285 choke me
12286 #else
12287 char (*f) () = __cxa_atexit;
12288 #endif
12289 #ifdef __cplusplus
12290 }
12291 #endif
12292
12293 int
12294 main ()
12295 {
12296 return f != __cxa_atexit;
12297 ;
12298 return 0;
12299 }
12300 _ACEOF
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_func___cxa_atexit=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12327
12328 ac_cv_func___cxa_atexit=no
12329 fi
12330 rm -f conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 fi
12333 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12334 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12335 if test $ac_cv_func___cxa_atexit = yes; then
12336 use_cxa_atexit=yes
12337 else
12338 echo "__cxa_atexit can't be enabled on this target"
12339 fi
12340
12341 else
12342 # We can't check for __cxa_atexit when building a cross, so assume
12343 # it is available
12344 use_cxa_atexit=yes
12345 fi
12346 if test x$use_cxa_atexit = xyes; then
12347
12348 cat >>confdefs.h <<\_ACEOF
12349 #define DEFAULT_USE_CXA_ATEXIT 2
12350 _ACEOF
12351
12352 fi
12353 fi
12354
12355 # Look for a file containing extra machine modes.
12356 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12357 extra_modes_file='$(srcdir)'/config/${extra_modes}
12358
12359
12360 cat >>confdefs.h <<_ACEOF
12361 #define EXTRA_MODES_FILE "config/$extra_modes"
12362 _ACEOF
12363
12364 fi
12365
12366 # Convert extra_options into a form suitable for Makefile use.
12367 extra_opt_files=
12368 for f in $extra_options; do
12369 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12370 done
12371
12372
12373 # auto-host.h is the file containing items generated by autoconf and is
12374 # the first file included by config.h.
12375 # If host=build, it is correct to have bconfig include auto-host.h
12376 # as well. If host!=build, we are in error and need to do more
12377 # work to find out the build config parameters.
12378 if test x$host = x$build
12379 then
12380 build_auto=auto-host.h
12381 else
12382 # We create a subdir, then run autoconf in the subdir.
12383 # To prevent recursion we set host and build for the new
12384 # invocation of configure to the build for this invocation
12385 # of configure.
12386 tempdir=build.$$
12387 rm -rf $tempdir
12388 mkdir $tempdir
12389 cd $tempdir
12390 case ${srcdir} in
12391 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12392 *) realsrcdir=../${srcdir};;
12393 esac
12394 saved_CFLAGS="${CFLAGS}"
12395 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12396 ${realsrcdir}/configure \
12397 --enable-languages=${enable_languages-all} \
12398 --target=$target_alias --host=$build_alias --build=$build_alias
12399 CFLAGS="${saved_CFLAGS}"
12400
12401 # We just finished tests for the build machine, so rename
12402 # the file auto-build.h in the gcc directory.
12403 mv auto-host.h ../auto-build.h
12404 cd ..
12405 rm -rf $tempdir
12406 build_auto=auto-build.h
12407 fi
12408
12409
12410 tm_file="${tm_file} defaults.h"
12411 tm_p_file="${tm_p_file} tm-preds.h"
12412 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12413 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12414 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12415 # put this back in temporarily.
12416 xm_file="auto-host.h ansidecl.h ${xm_file}"
12417
12418 # --------
12419 # UNSORTED
12420 # --------
12421
12422 # Compile in configure arguments.
12423 if test -f configargs.h ; then
12424 # Being re-configured.
12425 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12426 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12427 else
12428 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12429 fi
12430
12431 # Double all backslashes and backslash all quotes to turn
12432 # gcc_config_arguments into a C string.
12433 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12434 $gcc_config_arguments
12435 EOF
12436 gcc_config_arguments_str=`cat conftest.out`
12437 rm -f conftest.out
12438
12439 cat > configargs.h <<EOF
12440 /* Generated automatically. */
12441 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12442 static const char thread_model[] = "$thread_file";
12443
12444 static const struct {
12445 const char *name, *value;
12446 } configure_default_options[] = $configure_default_options;
12447 EOF
12448
12449 # Internationalization
12450 # If we haven't got the data from the intl directory,
12451 # assume NLS is disabled.
12452 USE_NLS=no
12453 LIBINTL=
12454 LIBINTL_DEP=
12455 INCINTL=
12456 XGETTEXT=
12457 GMSGFMT=
12458 POSUB=
12459 if test -f ../intl/config.intl; then
12460 . ../intl/config.intl
12461 fi
12462 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12463 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12464 if test x"$USE_NLS" != xyes; then
12465 echo "$as_me:$LINENO: result: no" >&5
12466 echo "${ECHO_T}no" >&6
12467 else
12468 echo "$as_me:$LINENO: result: yes" >&5
12469 echo "${ECHO_T}yes" >&6
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define ENABLE_NLS 1
12473 _ACEOF
12474
12475
12476 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12477 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12478 # Look for .po and .gmo files in the source directory.
12479 CATALOGS=
12480 XLINGUAS=
12481 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12482 # If there aren't any .gmo files the shell will give us the
12483 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12484 # weeded out.
12485 case "$cat" in *\**)
12486 continue;;
12487 esac
12488 # The quadruple backslash is collapsed to a double backslash
12489 # by the backticks, then collapsed again by the double quotes,
12490 # leaving us with one backslash in the sed expression (right
12491 # before the dot that mustn't act as a wildcard).
12492 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12493 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12494 # The user is allowed to set LINGUAS to a list of languages to
12495 # install catalogs for. If it's empty that means "all of them."
12496 if test "x$LINGUAS" = x; then
12497 CATALOGS="$CATALOGS $cat"
12498 XLINGUAS="$XLINGUAS $lang"
12499 else
12500 case "$LINGUAS" in *$lang*)
12501 CATALOGS="$CATALOGS $cat"
12502 XLINGUAS="$XLINGUAS $lang"
12503 ;;
12504 esac
12505 fi
12506 done
12507 LINGUAS="$XLINGUAS"
12508 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12509 echo "${ECHO_T}$LINGUAS" >&6
12510 fi
12511
12512 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12513 # -liconv on the link line twice.
12514 case "$LIBINTL" in *$LIBICONV*)
12515 LIBICONV= ;;
12516 esac
12517
12518 # Check whether --enable-secureplt or --disable-secureplt was given.
12519 if test "${enable_secureplt+set}" = set; then
12520 enableval="$enable_secureplt"
12521
12522 fi;
12523
12524 # Windows32 Registry support for specifying GCC installation paths.
12525 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12526 if test "${enable_win32_registry+set}" = set; then
12527 enableval="$enable_win32_registry"
12528
12529 fi;
12530
12531 case $host_os in
12532 win32 | pe | cygwin* | mingw32* | uwin*)
12533 if test "x$enable_win32_registry" != xno; then
12534 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12535 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12536 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 else
12539 ac_func_search_save_LIBS=$LIBS
12540 ac_cv_search_RegOpenKeyExA=no
12541 cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h. */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12547
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12554 char RegOpenKeyExA ();
12555 int
12556 main ()
12557 {
12558 RegOpenKeyExA ();
12559 ;
12560 return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565 (eval $ac_link) 2>conftest.er1
12566 ac_status=$?
12567 grep -v '^ *+' conftest.er1 >conftest.err
12568 rm -f conftest.er1
12569 cat conftest.err >&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } &&
12572 { ac_try='test -z "$ac_c_werror_flag"
12573 || test ! -s conftest.err'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } &&
12579 { ac_try='test -s conftest$ac_exeext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_cv_search_RegOpenKeyExA="none required"
12586 else
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 fi
12591 rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12594 for ac_lib in advapi32; do
12595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602
12603 /* Override any gcc2 internal prototype to avoid an error. */
12604 #ifdef __cplusplus
12605 extern "C"
12606 #endif
12607 /* We use char because int might match the return type of a gcc2
12608 builtin and then its argument prototype would still apply. */
12609 char RegOpenKeyExA ();
12610 int
12611 main ()
12612 {
12613 RegOpenKeyExA ();
12614 ;
12615 return 0;
12616 }
12617 _ACEOF
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620 (eval $ac_link) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
12627 { ac_try='test -z "$ac_c_werror_flag"
12628 || test ! -s conftest.err'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; } &&
12634 { ac_try='test -s conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12641 break
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646 fi
12647 rm -f conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 done
12650 fi
12651 LIBS=$ac_func_search_save_LIBS
12652 fi
12653 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12654 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12655 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12656 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12657
12658 else
12659 enable_win32_registry=no
12660 fi
12661
12662 fi
12663
12664 if test "x$enable_win32_registry" != xno; then
12665
12666 cat >>confdefs.h <<\_ACEOF
12667 #define ENABLE_WIN32_REGISTRY 1
12668 _ACEOF
12669
12670
12671 if test "x$enable_win32_registry" != xyes \
12672 && test "x$enable_win32_registry" != x; then
12673
12674 cat >>confdefs.h <<_ACEOF
12675 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12676 _ACEOF
12677
12678 fi
12679 fi
12680 ;;
12681 esac
12682
12683 # Get an absolute path to the GCC top-level source directory
12684 holddir=`${PWDCMD-pwd}`
12685 cd $srcdir
12686 topdir=`${PWDCMD-pwd}`
12687 cd $holddir
12688
12689 # Conditionalize the makefile for this host machine.
12690 xmake_file=
12691 for f in ${host_xmake_file}
12692 do
12693 if test -f ${srcdir}/config/$f
12694 then
12695 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12696 fi
12697 done
12698
12699 # Conditionalize the makefile for this target machine.
12700 tmake_file_=
12701 for f in ${tmake_file}
12702 do
12703 if test -f ${srcdir}/config/$f
12704 then
12705 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12706 fi
12707 done
12708 tmake_file="${tmake_file_}"
12709
12710 # If the host doesn't support symlinks, modify CC in
12711 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12712 # Otherwise, we can use "CC=$(CC)".
12713 rm -f symtest.tem
12714 case "$LN_S" in
12715 *-s*)
12716 cc_set_by_configure="\$(CC)"
12717 quoted_cc_set_by_configure="\$(CC)"
12718 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12719 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12720 ;;
12721 *)
12722 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12723 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12724 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12725 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12726 ;;
12727 esac
12728
12729 # This is a terrible hack which will go away some day.
12730 host_cc_for_libada=${CC}
12731
12732
12733 out_object_file=`basename $out_file .c`.o
12734
12735 tm_file_list="options.h"
12736 tm_include_list="options.h"
12737 for f in $tm_file; do
12738 case $f in
12739 defaults.h )
12740 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12741 tm_include_list="${tm_include_list} $f"
12742 ;;
12743 * )
12744 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12745 tm_include_list="${tm_include_list} config/$f"
12746 ;;
12747 esac
12748 done
12749
12750 tm_p_file_list=
12751 tm_p_include_list=
12752 for f in $tm_p_file; do
12753 case $f in
12754 tm-preds.h )
12755 tm_p_file_list="${tm_p_file_list} $f"
12756 tm_p_include_list="${tm_p_include_list} $f"
12757 ;;
12758 * )
12759 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12760 tm_p_include_list="${tm_p_include_list} config/$f"
12761 esac
12762 done
12763
12764 xm_file_list=
12765 xm_include_list=
12766 for f in $xm_file; do
12767 case $f in
12768 ansidecl.h )
12769 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12770 xm_include_list="${xm_include_list} $f"
12771 ;;
12772 auto-host.h )
12773 xm_file_list="${xm_file_list} $f"
12774 xm_include_list="${xm_include_list} $f"
12775 ;;
12776 * )
12777 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12778 xm_include_list="${xm_include_list} config/$f"
12779 ;;
12780 esac
12781 done
12782
12783 host_xm_file_list=
12784 host_xm_include_list=
12785 for f in $host_xm_file; do
12786 case $f in
12787 ansidecl.h )
12788 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12789 host_xm_include_list="${host_xm_include_list} $f"
12790 ;;
12791 auto-host.h )
12792 host_xm_file_list="${host_xm_file_list} $f"
12793 host_xm_include_list="${host_xm_include_list} $f"
12794 ;;
12795 * )
12796 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12797 host_xm_include_list="${host_xm_include_list} config/$f"
12798 ;;
12799 esac
12800 done
12801
12802 build_xm_file_list=
12803 for f in $build_xm_file; do
12804 case $f in
12805 ansidecl.h )
12806 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12807 build_xm_include_list="${build_xm_include_list} $f"
12808 ;;
12809 auto-build.h | auto-host.h )
12810 build_xm_file_list="${build_xm_file_list} $f"
12811 build_xm_include_list="${build_xm_include_list} $f"
12812 ;;
12813 * )
12814 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12815 build_xm_include_list="${build_xm_include_list} config/$f"
12816 ;;
12817 esac
12818 done
12819
12820 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12821 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12822 CROSS=
12823 ALL=all.internal
12824 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12825
12826 if test "x$with_build_sysroot" != x; then
12827 build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12828 else
12829 # This value is used, even on a native system, because
12830 # CROSS_SYSTEM_HEADER_DIR is just
12831 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12832 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12833 fi
12834
12835 if test x$host != x$target
12836 then
12837 CROSS="-DCROSS_COMPILE"
12838 ALL=all.cross
12839 SYSTEM_HEADER_DIR=$build_system_header_dir
12840 case "$host","$target" in
12841 # Darwin crosses can use the host system's libraries and headers,
12842 # because of the fat library support. Of course, it must be the
12843 # same version of Darwin on both sides. Allow the user to
12844 # just say --target=foo-darwin without a version number to mean
12845 # "the version on this system".
12846 *-*-darwin*,*-*-darwin*)
12847 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12848 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12849 if test $hostos = $targetos -o $targetos = darwin ; then
12850 CROSS=
12851 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12852 with_headers=yes
12853 fi
12854 ;;
12855
12856 i?86-*-*,x86_64-*-* \
12857 | powerpc*-*-*,powerpc64*-*-*)
12858 CROSS="$CROSS -DNATIVE_CROSS" ;;
12859 esac
12860 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12861 SYSTEM_HEADER_DIR=$build_system_header_dir
12862 fi
12863
12864 # If this is a cross-compiler that does not
12865 # have its own set of headers then define
12866 # inhibit_libc
12867
12868 # If this is using newlib, without having the headers available now,
12869 # then define inhibit_libc in LIBGCC2_CFLAGS.
12870 # This prevents libgcc2 from containing any code which requires libc
12871 # support.
12872 inhibit_libc=false
12873 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12874 test x$with_newlib = xyes ; } &&
12875 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12876 inhibit_libc=true
12877 fi
12878
12879
12880 # When building gcc with a cross-compiler, we need to adjust things so
12881 # that the generator programs are still built with the native compiler.
12882 # Also, we cannot run fixincludes or fix-header.
12883
12884 # These are the normal (build=host) settings:
12885 CC_FOR_BUILD='$(CC)'
12886 BUILD_CFLAGS='$(ALL_CFLAGS)'
12887 STMP_FIXINC=stmp-fixinc
12888
12889 # Possibly disable fixproto, on a per-target basis.
12890 case ${use_fixproto} in
12891 no)
12892 STMP_FIXPROTO=
12893 ;;
12894 yes)
12895 STMP_FIXPROTO=stmp-fixproto
12896 ;;
12897 esac
12898
12899
12900 # And these apply if build != host, or we are generating coverage data
12901 if test x$build != x$host || test "x$coverage_flags" != x
12902 then
12903 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12904
12905 if test "x$TARGET_SYSTEM_ROOT" = x; then
12906 if test "x$STMP_FIXPROTO" != x; then
12907 STMP_FIXPROTO=stmp-install-fixproto
12908 fi
12909 fi
12910 fi
12911
12912 # Expand extra_headers to include complete path.
12913 # This substitutes for lots of t-* files.
12914 extra_headers_list=
12915 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12916 for file in ${extra_headers} ; do
12917 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12918 done
12919
12920 # Define collect2 in Makefile.
12921 case $host_can_use_collect2 in
12922 no) collect2= ;;
12923 *) collect2='collect2$(exeext)' ;;
12924 esac
12925
12926
12927 # Add a definition of USE_COLLECT2 if system wants one.
12928 case $use_collect2 in
12929 no) use_collect2= ;;
12930 "") ;;
12931 *)
12932 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12933 xm_defines="${xm_defines} USE_COLLECT2"
12934 case $host_can_use_collect2 in
12935 no)
12936 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12937 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12938 { (exit 1); exit 1; }; }
12939 ;;
12940 esac
12941 ;;
12942 esac
12943
12944 # ---------------------------
12945 # Assembler & linker features
12946 # ---------------------------
12947
12948 # Identify the assembler which will work hand-in-glove with the newly
12949 # built GCC, so that we can examine its features. This is the assembler
12950 # which will be driven by the driver program.
12951 #
12952 # If build != host, and we aren't building gas in-tree, we identify a
12953 # build->target assembler and hope that it will have the same features
12954 # as the host->target assembler we'll be using.
12955 gcc_cv_gas_major_version=
12956 gcc_cv_gas_minor_version=
12957 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12958
12959 if test "${gcc_cv_as+set}" = set; then
12960 :
12961 else
12962
12963 if test -x "$DEFAULT_ASSEMBLER"; then
12964 gcc_cv_as="$DEFAULT_ASSEMBLER"
12965 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12966 && test -f ../gas/Makefile \
12967 && test x$build = x$host; then
12968 gcc_cv_as=../gas/as-new$build_exeext
12969 elif test -x as$build_exeext; then
12970 # Build using assembler in the current directory.
12971 gcc_cv_as=./as$build_exeext
12972 elif test -x $AS_FOR_TARGET; then
12973 gcc_cv_as="$AS_FOR_TARGET"
12974 else
12975 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12976 set dummy $AS_FOR_TARGET; ac_word=$2
12977 echo "$as_me:$LINENO: checking for $ac_word" >&5
12978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12979 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 else
12982 case $gcc_cv_as in
12983 [\\/]* | ?:[\\/]*)
12984 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12985 ;;
12986 *)
12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12989 do
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 for ac_exec_ext in '' $ac_executable_extensions; do
12993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12994 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 break 2
12997 fi
12998 done
12999 done
13000
13001 ;;
13002 esac
13003 fi
13004 gcc_cv_as=$ac_cv_path_gcc_cv_as
13005
13006 if test -n "$gcc_cv_as"; then
13007 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13008 echo "${ECHO_T}$gcc_cv_as" >&6
13009 else
13010 echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6
13012 fi
13013
13014 fi
13015 fi
13016
13017
13018 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13019
13020
13021 echo "$as_me:$LINENO: checking what assembler to use" >&5
13022 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13023 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13024 # Single tree build which includes gas. We want to prefer it
13025 # over whatever linker top-level may have detected, since
13026 # we'll use what we're building after installation anyway.
13027 echo "$as_me:$LINENO: result: newly built gas" >&5
13028 echo "${ECHO_T}newly built gas" >&6
13029 in_tree_gas=yes
13030 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13031 for f in $gcc_cv_as_bfd_srcdir/configure \
13032 $gcc_cv_as_gas_srcdir/configure \
13033 $gcc_cv_as_gas_srcdir/configure.in \
13034 $gcc_cv_as_gas_srcdir/Makefile.in ; do
13035 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13036 if test x$gcc_cv_gas_version != x; then
13037 break
13038 fi
13039 done
13040 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13041 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13042 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13043 case $gcc_cv_gas_patch_version in
13044 "") gcc_cv_gas_patch_version="0" ;;
13045 esac
13046 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13047 + $gcc_cv_gas_minor_version \) \* 1000 \
13048 + $gcc_cv_gas_patch_version`
13049
13050 in_tree_gas_is_elf=no
13051 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13052 || (grep 'obj_format = multi' ../gas/Makefile \
13053 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13054 then
13055 in_tree_gas_is_elf=yes
13056 fi
13057 else
13058 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13059 echo "${ECHO_T}$gcc_cv_as" >&6
13060 in_tree_gas=no
13061 fi
13062
13063 # Identify the linker which will work hand-in-glove with the newly
13064 # built GCC, so that we can examine its features. This is the linker
13065 # which will be driven by the driver program.
13066 #
13067 # If build != host, and we aren't building gas in-tree, we identify a
13068 # build->target linker and hope that it will have the same features
13069 # as the host->target linker we'll be using.
13070 gcc_cv_gld_major_version=
13071 gcc_cv_gld_minor_version=
13072 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13073 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13074
13075 if test "${gcc_cv_ld+set}" = set; then
13076 :
13077 else
13078
13079 if test -x "$DEFAULT_LINKER"; then
13080 gcc_cv_ld="$DEFAULT_LINKER"
13081 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13082 && test -f ../ld/Makefile \
13083 && test x$build = x$host; then
13084 gcc_cv_ld=../ld/ld-new$build_exeext
13085 elif test -x collect-ld$build_exeext; then
13086 # Build using linker in the current directory.
13087 gcc_cv_ld=./collect-ld$build_exeext
13088 elif test -x $LD_FOR_TARGET; then
13089 gcc_cv_ld="$LD_FOR_TARGET"
13090 else
13091 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13092 set dummy $LD_FOR_TARGET; ac_word=$2
13093 echo "$as_me:$LINENO: checking for $ac_word" >&5
13094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 else
13098 case $gcc_cv_ld in
13099 [\\/]* | ?:[\\/]*)
13100 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13101 ;;
13102 *)
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116
13117 ;;
13118 esac
13119 fi
13120 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13121
13122 if test -n "$gcc_cv_ld"; then
13123 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13124 echo "${ECHO_T}$gcc_cv_ld" >&6
13125 else
13126 echo "$as_me:$LINENO: result: no" >&5
13127 echo "${ECHO_T}no" >&6
13128 fi
13129
13130 fi
13131 fi
13132
13133
13134 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13135
13136
13137 echo "$as_me:$LINENO: checking what linker to use" >&5
13138 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13139 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13140 # Single tree build which includes ld. We want to prefer it
13141 # over whatever linker top-level may have detected, since
13142 # we'll use what we're building after installation anyway.
13143 echo "$as_me:$LINENO: result: newly built ld" >&5
13144 echo "${ECHO_T}newly built ld" >&6
13145 in_tree_ld=yes
13146 in_tree_ld_is_elf=no
13147 if (grep 'EMUL = .*elf' ../ld/Makefile \
13148 || grep 'EMUL = .*linux' ../ld/Makefile \
13149 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13150 in_tree_ld_is_elf=yes
13151 fi
13152 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
13153 do
13154 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13155 if test x$gcc_cv_gld_version != x; then
13156 break
13157 fi
13158 done
13159 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13160 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13161 else
13162 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13163 echo "${ECHO_T}$gcc_cv_ld" >&6
13164 in_tree_ld=no
13165 fi
13166
13167 # Figure out what nm we will be using.
13168 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13169 if test "${gcc_cv_nm+set}" = set; then
13170 :
13171 else
13172
13173 if test -f $gcc_cv_binutils_srcdir/configure.in \
13174 && test -f ../binutils/Makefile \
13175 && test x$build = x$host; then
13176 gcc_cv_nm=../binutils/nm-new$build_exeext
13177 elif test -x nm$build_exeext; then
13178 gcc_cv_nm=./nm$build_exeext
13179 elif test -x $NM_FOR_TARGET; then
13180 gcc_cv_nm="$NM_FOR_TARGET"
13181 else
13182 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13183 set dummy $NM_FOR_TARGET; ac_word=$2
13184 echo "$as_me:$LINENO: checking for $ac_word" >&5
13185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13186 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 case $gcc_cv_nm in
13190 [\\/]* | ?:[\\/]*)
13191 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13192 ;;
13193 *)
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13196 do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13201 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205 done
13206 done
13207
13208 ;;
13209 esac
13210 fi
13211 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13212
13213 if test -n "$gcc_cv_nm"; then
13214 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13215 echo "${ECHO_T}$gcc_cv_nm" >&6
13216 else
13217 echo "$as_me:$LINENO: result: no" >&5
13218 echo "${ECHO_T}no" >&6
13219 fi
13220
13221 fi
13222 fi
13223
13224
13225 echo "$as_me:$LINENO: checking what nm to use" >&5
13226 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13227 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13228 # Single tree build which includes binutils.
13229 echo "$as_me:$LINENO: result: newly built nm" >&5
13230 echo "${ECHO_T}newly built nm" >&6
13231 in_tree_nm=yes
13232 else
13233 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13234 echo "${ECHO_T}$gcc_cv_nm" >&6
13235 in_tree_nm=no
13236 fi
13237
13238 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13239
13240
13241 # Figure out what objdump we will be using.
13242 if test "${gcc_cv_objdump+set}" = set; then
13243 :
13244 else
13245
13246 if test -f $gcc_cv_binutils_srcdir/configure.in \
13247 && test -f ../binutils/Makefile \
13248 && test x$build = x$host; then
13249 # Single tree build which includes binutils.
13250 gcc_cv_objdump=../binutils/objdump$build_exeext
13251 elif test -x objdump$build_exeext; then
13252 gcc_cv_objdump=./objdump$build_exeext
13253 elif test -x $OBJDUMP_FOR_TARGET; then
13254 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13255 else
13256 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13257 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13258 echo "$as_me:$LINENO: checking for $ac_word" >&5
13259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13260 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263 case $gcc_cv_objdump in
13264 [\\/]* | ?:[\\/]*)
13265 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13266 ;;
13267 *)
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13270 do
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13278 fi
13279 done
13280 done
13281
13282 ;;
13283 esac
13284 fi
13285 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13286
13287 if test -n "$gcc_cv_objdump"; then
13288 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13289 echo "${ECHO_T}$gcc_cv_objdump" >&6
13290 else
13291 echo "$as_me:$LINENO: result: no" >&5
13292 echo "${ECHO_T}no" >&6
13293 fi
13294
13295 fi
13296 fi
13297
13298
13299 echo "$as_me:$LINENO: checking what objdump to use" >&5
13300 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13301 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13302 # Single tree build which includes binutils.
13303 echo "$as_me:$LINENO: result: newly built objdump" >&5
13304 echo "${ECHO_T}newly built objdump" >&6
13305 elif test x$gcc_cv_objdump = x; then
13306 echo "$as_me:$LINENO: result: not found" >&5
13307 echo "${ECHO_T}not found" >&6
13308 else
13309 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13310 echo "${ECHO_T}$gcc_cv_objdump" >&6
13311 fi
13312
13313 # Figure out what assembler alignment features are present.
13314 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13315 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13316 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13317 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319 gcc_cv_as_balign_and_p2align=no
13320 if test $in_tree_gas = yes; then
13321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13322 then gcc_cv_as_balign_and_p2align=yes
13323 fi
13324 elif test x$gcc_cv_as != x; then
13325 echo '.balign 4
13326 .p2align 2' > conftest.s
13327 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }
13333 then
13334 gcc_cv_as_balign_and_p2align=yes
13335 else
13336 echo "configure: failed program was" >&5
13337 cat conftest.s >&5
13338 fi
13339 rm -f conftest.o conftest.s
13340 fi
13341 fi
13342 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13343 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13344 if test $gcc_cv_as_balign_and_p2align = yes; then
13345
13346 cat >>confdefs.h <<\_ACEOF
13347 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13348 _ACEOF
13349
13350 fi
13351
13352 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13353 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13354 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 gcc_cv_as_max_skip_p2align=no
13358 if test $in_tree_gas = yes; then
13359 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13360 then gcc_cv_as_max_skip_p2align=yes
13361 fi
13362 elif test x$gcc_cv_as != x; then
13363 echo '.p2align 4,,7' > conftest.s
13364 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }
13370 then
13371 gcc_cv_as_max_skip_p2align=yes
13372 else
13373 echo "configure: failed program was" >&5
13374 cat conftest.s >&5
13375 fi
13376 rm -f conftest.o conftest.s
13377 fi
13378 fi
13379 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13380 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13381 if test $gcc_cv_as_max_skip_p2align = yes; then
13382
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13385 _ACEOF
13386
13387 fi
13388
13389 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13390 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13391 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394 gcc_cv_as_subsection_m1=no
13395 if test $in_tree_gas = yes; then
13396 if test $in_tree_gas_is_elf = yes \
13397 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13398 then gcc_cv_as_subsection_m1=yes
13399 fi
13400 elif test x$gcc_cv_as != x; then
13401 echo 'conftest_label1: .word 0
13402 .subsection -1
13403 conftest_label2: .word 0
13404 .previous' > conftest.s
13405 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }
13411 then
13412 if test x$gcc_cv_nm != x; then
13413 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13414 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13415 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13416 then :
13417 else gcc_cv_as_subsection_m1=yes
13418 fi
13419 rm -f conftest.nm1 conftest.nm2
13420 fi
13421 else
13422 echo "configure: failed program was" >&5
13423 cat conftest.s >&5
13424 fi
13425 rm -f conftest.o conftest.s
13426 fi
13427 fi
13428 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13429 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13430 if test $gcc_cv_as_subsection_m1 = yes; then
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_GAS_SUBSECTION_ORDERING 1
13434 _ACEOF
13435
13436 fi
13437
13438 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13439 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13440 if test "${gcc_cv_as_weak+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 gcc_cv_as_weak=no
13444 if test $in_tree_gas = yes; then
13445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13446 then gcc_cv_as_weak=yes
13447 fi
13448 elif test x$gcc_cv_as != x; then
13449 echo ' .weak foobar' > conftest.s
13450 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }
13456 then
13457 gcc_cv_as_weak=yes
13458 else
13459 echo "configure: failed program was" >&5
13460 cat conftest.s >&5
13461 fi
13462 rm -f conftest.o conftest.s
13463 fi
13464 fi
13465 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13466 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13467 if test $gcc_cv_as_weak = yes; then
13468
13469 cat >>confdefs.h <<\_ACEOF
13470 #define HAVE_GAS_WEAK 1
13471 _ACEOF
13472
13473 fi
13474
13475 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13476 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13477 if test "${gcc_cv_as_weakref+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 gcc_cv_as_weakref=no
13481 if test $in_tree_gas = yes; then
13482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13483 then gcc_cv_as_weakref=yes
13484 fi
13485 elif test x$gcc_cv_as != x; then
13486 echo ' .weakref foobar, barfnot' > conftest.s
13487 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; }
13493 then
13494 gcc_cv_as_weakref=yes
13495 else
13496 echo "configure: failed program was" >&5
13497 cat conftest.s >&5
13498 fi
13499 rm -f conftest.o conftest.s
13500 fi
13501 fi
13502 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13503 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13504 if test $gcc_cv_as_weakref = yes; then
13505
13506 cat >>confdefs.h <<\_ACEOF
13507 #define HAVE_GAS_WEAKREF 1
13508 _ACEOF
13509
13510 fi
13511
13512 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13513 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13514 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 gcc_cv_as_nsubspa_comdat=no
13518 if test $in_tree_gas = yes; then
13519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13520 then gcc_cv_as_nsubspa_comdat=yes
13521 fi
13522 elif test x$gcc_cv_as != x; then
13523 echo ' .SPACE $TEXT$
13524 .NSUBSPA $CODE$,COMDAT' > conftest.s
13525 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }
13531 then
13532 gcc_cv_as_nsubspa_comdat=yes
13533 else
13534 echo "configure: failed program was" >&5
13535 cat conftest.s >&5
13536 fi
13537 rm -f conftest.o conftest.s
13538 fi
13539 fi
13540 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13541 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13542 if test $gcc_cv_as_nsubspa_comdat = yes; then
13543
13544 cat >>confdefs.h <<\_ACEOF
13545 #define HAVE_GAS_NSUBSPA_COMDAT 1
13546 _ACEOF
13547
13548 fi
13549
13550 # .hidden needs to be supported in both the assembler and the linker,
13551 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13552 # This is irritatingly difficult to feature test for; we have to check the
13553 # date string after the version number. If we've got an in-tree
13554 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13555 # to be safe.
13556 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13557 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13558 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13559 if test "${gcc_cv_as_hidden+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 gcc_cv_as_hidden=no
13563 if test $in_tree_gas = yes; then
13564 if test $in_tree_gas_is_elf = yes \
13565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13566 then gcc_cv_as_hidden=yes
13567 fi
13568 elif test x$gcc_cv_as != x; then
13569 echo ' .hidden foobar
13570 foobar:' > conftest.s
13571 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }
13577 then
13578 gcc_cv_as_hidden=yes
13579 else
13580 echo "configure: failed program was" >&5
13581 cat conftest.s >&5
13582 fi
13583 rm -f conftest.o conftest.s
13584 fi
13585 fi
13586 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13587 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13588
13589
13590 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13591 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13592 if test "${gcc_cv_ld_hidden+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 if test $in_tree_ld = yes ; then
13596 gcc_cv_ld_hidden=no
13597 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 \
13598 && test $in_tree_ld_is_elf = yes; then
13599 gcc_cv_ld_hidden=yes
13600 fi
13601 else
13602 gcc_cv_ld_hidden=yes
13603 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13604 if echo "$ld_ver" | grep GNU > /dev/null; then
13605 ld_vers=`echo $ld_ver | sed -n \
13606 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13607 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13608 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13609 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13610 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13611 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13612 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13613 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'`
13614 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13615 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13616 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13617 if test 0"$ld_date" -lt 20020404; then
13618 if test -n "$ld_date"; then
13619 # If there was date string, but was earlier than 2002-04-04, fail
13620 gcc_cv_ld_hidden=no
13621 elif test -z "$ld_vers"; then
13622 # If there was no date string nor ld version number, something is wrong
13623 gcc_cv_ld_hidden=no
13624 else
13625 test -z "$ld_vers_patch" && ld_vers_patch=0
13626 if test "$ld_vers_major" -lt 2; then
13627 gcc_cv_ld_hidden=no
13628 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13629 gcc_cv_ld_hidden="no"
13630 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13631 gcc_cv_ld_hidden=no
13632 fi
13633 fi
13634 fi
13635 else
13636 case "${target}" in
13637 hppa64*-*-hpux* | ia64*-*-hpux*)
13638 gcc_cv_ld_hidden=yes
13639 ;;
13640 *)
13641 gcc_cv_ld_hidden=no
13642 ;;
13643 esac
13644 fi
13645 fi
13646 fi
13647 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13648 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13649 libgcc_visibility=no
13650
13651
13652 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13653 libgcc_visibility=yes
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_GAS_HIDDEN 1
13657 _ACEOF
13658
13659 fi
13660
13661 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13662 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13663 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13664 if test "${gcc_cv_as_leb128+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667 gcc_cv_as_leb128=no
13668 if test $in_tree_gas = yes; then
13669 if test $in_tree_gas_is_elf = yes \
13670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13671 then gcc_cv_as_leb128=yes
13672 fi
13673 elif test x$gcc_cv_as != x; then
13674 echo ' .data
13675 .uleb128 L2 - L1
13676 L1:
13677 .uleb128 1280
13678 .sleb128 -1010
13679 L2:' > conftest.s
13680 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682 (eval $ac_try) 2>&5
13683 ac_status=$?
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); }; }
13686 then
13687 # GAS versions before 2.11 do not support uleb128,
13688 # despite appearing to.
13689 # ??? There exists an elf-specific test that will crash
13690 # the assembler. Perhaps it's better to figure out whether
13691 # arbitrary sections are supported and try the test.
13692 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13693 if echo "$as_ver" | grep GNU > /dev/null; then
13694 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13695 as_major=`echo $as_ver | sed 's/\..*//'`
13696 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13697 if test $as_major -eq 2 && test $as_minor -lt 11
13698 then :
13699 else gcc_cv_as_leb128=yes
13700 fi
13701 fi
13702 else
13703 echo "configure: failed program was" >&5
13704 cat conftest.s >&5
13705 fi
13706 rm -f conftest.o conftest.s
13707 fi
13708 fi
13709 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13710 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13711 if test $gcc_cv_as_leb128 = yes; then
13712
13713 cat >>confdefs.h <<\_ACEOF
13714 #define HAVE_AS_LEB128 1
13715 _ACEOF
13716
13717 fi
13718
13719 # GAS versions up to and including 2.11.0 may mis-optimize
13720 # .eh_frame data.
13721 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13722 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13723 if test "${gcc_cv_as_eh_frame+set}" = set; then
13724 echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726 gcc_cv_as_eh_frame=no
13727 if test $in_tree_gas = yes; then
13728 if test $in_tree_gas_is_elf = yes \
13729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13730 then gcc_cv_as_eh_frame=yes
13731 fi
13732 elif test x$gcc_cv_as != x; then
13733 echo ' .text
13734 .LFB1:
13735 .4byte 0
13736 .L1:
13737 .4byte 0
13738 .LFE1:
13739 .section .eh_frame,"aw",@progbits
13740 __FRAME_BEGIN__:
13741 .4byte .LECIE1-.LSCIE1
13742 .LSCIE1:
13743 .4byte 0x0
13744 .byte 0x1
13745 .ascii "z\0"
13746 .byte 0x1
13747 .byte 0x78
13748 .byte 0x1a
13749 .byte 0x0
13750 .byte 0x4
13751 .4byte 1
13752 .p2align 1
13753 .LECIE1:
13754 .LSFDE1:
13755 .4byte .LEFDE1-.LASFDE1
13756 .LASFDE1:
13757 .4byte .LASFDE1-__FRAME_BEGIN__
13758 .4byte .LFB1
13759 .4byte .LFE1-.LFB1
13760 .byte 0x4
13761 .4byte .LFE1-.LFB1
13762 .byte 0x4
13763 .4byte .L1-.LFB1
13764 .LEFDE1:' > conftest.s
13765 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }
13771 then
13772 cat > conftest.lit <<EOF
13773 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13774 0010 01000000 12000000 18000000 00000000 ................
13775 0020 08000000 04080000 0044 .........D
13776 EOF
13777 cat > conftest.big <<EOF
13778 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13779 0010 00000001 00000012 00000018 00000000 ................
13780 0020 00000008 04000000 0844 .........D
13781 EOF
13782 # If the assembler didn't choke, and we can objdump,
13783 # and we got the correct data, then succeed.
13784 if test x$gcc_cv_objdump != x \
13785 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13786 | tail -3 > conftest.got \
13787 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13788 || cmp conftest.big conftest.got > /dev/null 2>&1; }
13789 then
13790 gcc_cv_as_eh_frame=yes
13791 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 gcc_cv_as_eh_frame=buggy
13798 else
13799 # Uh oh, what do we do now?
13800 gcc_cv_as_eh_frame=no
13801 fi
13802 else
13803 echo "configure: failed program was" >&5
13804 cat conftest.s >&5
13805 fi
13806 rm -f conftest.o conftest.s
13807 fi
13808 fi
13809 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13810 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13811
13812
13813 if test $gcc_cv_as_eh_frame = buggy; then
13814
13815 cat >>confdefs.h <<\_ACEOF
13816 #define USE_AS_TRADITIONAL_FORMAT 1
13817 _ACEOF
13818
13819 fi
13820
13821 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13822 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13823 if test "${gcc_cv_as_shf_merge+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825 else
13826 gcc_cv_as_shf_merge=no
13827 if test $in_tree_gas = yes; then
13828 if test $in_tree_gas_is_elf = yes \
13829 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13830 then gcc_cv_as_shf_merge=yes
13831 fi
13832 elif test x$gcc_cv_as != x; then
13833 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13834 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }
13840 then
13841 gcc_cv_as_shf_merge=yes
13842 else
13843 echo "configure: failed program was" >&5
13844 cat conftest.s >&5
13845 fi
13846 rm -f conftest.o conftest.s
13847 fi
13848 fi
13849 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13850 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13851
13852 if test $gcc_cv_as_shf_merge = no; then
13853 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13854 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13855 if test "${gcc_cv_as_shf_merge+set}" = set; then
13856 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 else
13858 gcc_cv_as_shf_merge=no
13859 if test $in_tree_gas = yes; then
13860 if test $in_tree_gas_is_elf = yes \
13861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13862 then gcc_cv_as_shf_merge=yes
13863 fi
13864 elif test x$gcc_cv_as != x; then
13865 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13866 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }
13872 then
13873 gcc_cv_as_shf_merge=yes
13874 else
13875 echo "configure: failed program was" >&5
13876 cat conftest.s >&5
13877 fi
13878 rm -f conftest.o conftest.s
13879 fi
13880 fi
13881 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13882 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13883
13884 fi
13885
13886 cat >>confdefs.h <<_ACEOF
13887 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13888 _ACEOF
13889
13890
13891 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13892 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13893 if test "${gcc_cv_as_comdat_group+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896 gcc_cv_as_comdat_group=no
13897 if test $in_tree_gas = yes; then
13898 if test $in_tree_gas_is_elf = yes \
13899 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13900 then gcc_cv_as_comdat_group=yes
13901 fi
13902 elif test x$gcc_cv_as != x; then
13903 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13904 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }
13910 then
13911 gcc_cv_as_comdat_group=yes
13912 else
13913 echo "configure: failed program was" >&5
13914 cat conftest.s >&5
13915 fi
13916 rm -f conftest.o conftest.s
13917 fi
13918 fi
13919 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13920 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13921
13922 if test $gcc_cv_as_comdat_group = yes; then
13923 gcc_cv_as_comdat_group_percent=no
13924 else
13925 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13926 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13927 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 gcc_cv_as_comdat_group_percent=no
13931 if test $in_tree_gas = yes; then
13932 if test $in_tree_gas_is_elf = yes \
13933 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13934 then gcc_cv_as_comdat_group_percent=yes
13935 fi
13936 elif test x$gcc_cv_as != x; then
13937 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13938 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }
13944 then
13945 gcc_cv_as_comdat_group_percent=yes
13946 else
13947 echo "configure: failed program was" >&5
13948 cat conftest.s >&5
13949 fi
13950 rm -f conftest.o conftest.s
13951 fi
13952 fi
13953 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13954 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13955
13956 fi
13957 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
13958 comdat_group=yes
13959 if test 0"$ld_date" -lt 20050308; then
13960 if test -n "$ld_date"; then
13961 # If there was date string, but was earlier than 2005-03-08, fail
13962 comdat_group=no
13963 elif test "$ld_vers_major" -lt 2; then
13964 comdat_group=no
13965 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13966 comdat_group=no
13967 fi
13968 fi
13969 else
13970 # assume linkers other than GNU ld don't support COMDAT group
13971 comdat_group=no
13972 fi
13973 if test $comdat_group = no; then
13974 gcc_cv_as_comdat_group=no
13975 gcc_cv_as_comdat_group_percent=no
13976 fi
13977
13978 cat >>confdefs.h <<_ACEOF
13979 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
13980 _ACEOF
13981
13982
13983 # Thread-local storage - the check is heavily parametrized.
13984 conftest_s=
13985 tls_first_major=
13986 tls_first_minor=
13987 tls_as_opt=
13988 case "$target" in
13989 alpha*-*-*)
13990 conftest_s='
13991 .section ".tdata","awT",@progbits
13992 foo: .long 25
13993 .text
13994 ldq $27,__tls_get_addr($29) !literal!1
13995 lda $16,foo($29) !tlsgd!1
13996 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13997 ldq $27,__tls_get_addr($29) !literal!2
13998 lda $16,foo($29) !tlsldm!2
13999 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14000 ldq $1,foo($29) !gotdtprel
14001 ldah $2,foo($29) !dtprelhi
14002 lda $3,foo($2) !dtprello
14003 lda $4,foo($29) !dtprel
14004 ldq $1,foo($29) !gottprel
14005 ldah $2,foo($29) !tprelhi
14006 lda $3,foo($2) !tprello
14007 lda $4,foo($29) !tprel'
14008 tls_first_major=2
14009 tls_first_minor=13
14010 tls_as_opt=--fatal-warnings
14011 ;;
14012 frv*-*-*)
14013 conftest_s='
14014 .section ".tdata","awT",@progbits
14015 x: .long 25
14016 .text
14017 call #gettlsoff(x)'
14018 tls_first_major=2
14019 tls_first_minor=14
14020 ;;
14021 hppa*-*-linux*)
14022 conftest_s='
14023 t1: .reg %r20
14024 t2: .reg %r21
14025 gp: .reg %r19
14026 .section ".tdata","awT",@progbits
14027 foo: .long 25
14028 .text
14029 .align 4
14030 addil LT%foo-$tls_gdidx$,gp
14031 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14032 b __tls_get_addr
14033 nop
14034 addil LT%foo-$tls_ldidx$,gp
14035 b __tls_get_addr
14036 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14037 addil LR%foo-$tls_dtpoff$,%ret0
14038 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14039 mfctl %cr27,%t1
14040 addil LT%foo-$tls_ieoff$,gp
14041 ldw RT%foo-$tls_ieoff$(%r1),%t2
14042 add %t1,%t2,%t3
14043 mfctl %cr27,%t1
14044 addil LR%foo-$tls_leoff$,%t1
14045 ldo RR%foo-$tls_leoff$(%r1),%t2'
14046 tls_first_major=2
14047 tls_first_minor=15
14048 tls_as_opt=--fatal-warnings
14049 ;;
14050 arm*-*-*)
14051 conftest_s='
14052 .section ".tdata","awT",%progbits
14053 foo: .long 25
14054 .text
14055 .word foo(gottpoff)
14056 .word foo(tpoff)
14057 .word foo(tlsgd)
14058 .word foo(tlsldm)
14059 .word foo(tlsldo)'
14060 tls_first_major=2
14061 tls_first_minor=17
14062 ;;
14063 i[34567]86-*-*)
14064 conftest_s='
14065 .section ".tdata","awT",@progbits
14066 foo: .long 25
14067 .text
14068 movl %gs:0, %eax
14069 leal foo@TLSGD(,%ebx,1), %eax
14070 leal foo@TLSLDM(%ebx), %eax
14071 leal foo@DTPOFF(%eax), %edx
14072 movl foo@GOTTPOFF(%ebx), %eax
14073 subl foo@GOTTPOFF(%ebx), %eax
14074 addl foo@GOTNTPOFF(%ebx), %eax
14075 movl foo@INDNTPOFF, %eax
14076 movl $foo@TPOFF, %eax
14077 subl $foo@TPOFF, %eax
14078 leal foo@NTPOFF(%ecx), %eax'
14079 tls_first_major=2
14080 tls_first_minor=14
14081 tls_as_opt=--fatal-warnings
14082 ;;
14083 x86_64-*-*)
14084 conftest_s='
14085 .section ".tdata","awT",@progbits
14086 foo: .long 25
14087 .text
14088 movq %fs:0, %rax
14089 leaq foo@TLSGD(%rip), %rdi
14090 leaq foo@TLSLD(%rip), %rdi
14091 leaq foo@DTPOFF(%rax), %rdx
14092 movq foo@GOTTPOFF(%rip), %rax
14093 movq $foo@TPOFF, %rax'
14094 tls_first_major=2
14095 tls_first_minor=14
14096 tls_as_opt=--fatal-warnings
14097 ;;
14098 ia64-*-*)
14099 conftest_s='
14100 .section ".tdata","awT",@progbits
14101 foo: data8 25
14102 .text
14103 addl r16 = @ltoff(@dtpmod(foo#)), gp
14104 addl r17 = @ltoff(@dtprel(foo#)), gp
14105 addl r18 = @ltoff(@tprel(foo#)), gp
14106 addl r19 = @dtprel(foo#), gp
14107 adds r21 = @dtprel(foo#), r13
14108 movl r23 = @dtprel(foo#)
14109 addl r20 = @tprel(foo#), gp
14110 adds r22 = @tprel(foo#), r13
14111 movl r24 = @tprel(foo#)'
14112 tls_first_major=2
14113 tls_first_minor=13
14114 tls_as_opt=--fatal-warnings
14115 ;;
14116 mips*-*-*)
14117 conftest_s='
14118 .section .tdata,"awT",@progbits
14119 x:
14120 .word 2
14121 .text
14122 addiu $4, $28, %tlsgd(x)
14123 addiu $4, $28, %tlsldm(x)
14124 lui $4, %dtprel_hi(x)
14125 addiu $4, $4, %dtprel_lo(x)
14126 lw $4, %gottprel(x)($28)
14127 lui $4, %tprel_hi(x)
14128 addiu $4, $4, %tprel_lo(x)'
14129 tls_first_major=2
14130 tls_first_minor=16
14131 tls_as_opt='-32 --fatal-warnings'
14132 ;;
14133 powerpc-*-*)
14134 conftest_s='
14135 .section ".tdata","awT",@progbits
14136 .align 2
14137 ld0: .space 4
14138 ld1: .space 4
14139 x1: .space 4
14140 x2: .space 4
14141 x3: .space 4
14142 .text
14143 addi 3,31,ld0@got@tlsgd
14144 bl __tls_get_addr
14145 addi 3,31,x1@got@tlsld
14146 bl __tls_get_addr
14147 addi 9,3,x1@dtprel
14148 addis 9,3,x2@dtprel@ha
14149 addi 9,9,x2@dtprel@l
14150 lwz 9,x3@got@tprel(31)
14151 add 9,9,x@tls
14152 addi 9,2,x1@tprel
14153 addis 9,2,x2@tprel@ha
14154 addi 9,9,x2@tprel@l'
14155 tls_first_major=2
14156 tls_first_minor=14
14157 tls_as_opt="-a32 --fatal-warnings"
14158 ;;
14159 powerpc64-*-*)
14160 conftest_s='
14161 .section ".tdata","awT",@progbits
14162 .align 3
14163 ld0: .space 8
14164 ld1: .space 8
14165 x1: .space 8
14166 x2: .space 8
14167 x3: .space 8
14168 .text
14169 addi 3,2,ld0@got@tlsgd
14170 bl .__tls_get_addr
14171 nop
14172 addi 3,2,ld1@toc
14173 bl .__tls_get_addr
14174 nop
14175 addi 3,2,x1@got@tlsld
14176 bl .__tls_get_addr
14177 nop
14178 addi 9,3,x1@dtprel
14179 bl .__tls_get_addr
14180 nop
14181 addis 9,3,x2@dtprel@ha
14182 addi 9,9,x2@dtprel@l
14183 bl .__tls_get_addr
14184 nop
14185 ld 9,x3@got@dtprel(2)
14186 add 9,9,3
14187 bl .__tls_get_addr
14188 nop'
14189 tls_first_major=2
14190 tls_first_minor=14
14191 tls_as_opt="-a64 --fatal-warnings"
14192 ;;
14193 s390-*-*)
14194 conftest_s='
14195 .section ".tdata","awT",@progbits
14196 foo: .long 25
14197 .text
14198 .long foo@TLSGD
14199 .long foo@TLSLDM
14200 .long foo@DTPOFF
14201 .long foo@NTPOFF
14202 .long foo@GOTNTPOFF
14203 .long foo@INDNTPOFF
14204 l %r1,foo@GOTNTPOFF(%r12)
14205 l %r1,0(%r1):tls_load:foo
14206 bas %r14,0(%r1,%r13):tls_gdcall:foo
14207 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14208 tls_first_major=2
14209 tls_first_minor=14
14210 tls_as_opt="-m31 --fatal-warnings"
14211 ;;
14212 s390x-*-*)
14213 conftest_s='
14214 .section ".tdata","awT",@progbits
14215 foo: .long 25
14216 .text
14217 .quad foo@TLSGD
14218 .quad foo@TLSLDM
14219 .quad foo@DTPOFF
14220 .quad foo@NTPOFF
14221 .quad foo@GOTNTPOFF
14222 lg %r1,foo@GOTNTPOFF(%r12)
14223 larl %r1,foo@INDNTPOFF
14224 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14225 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14226 tls_first_major=2
14227 tls_first_minor=14
14228 tls_as_opt="-m64 -Aesame --fatal-warnings"
14229 ;;
14230 sh-*-* | sh[34]-*-*)
14231 conftest_s='
14232 .section ".tdata","awT",@progbits
14233 foo: .long 25
14234 .text
14235 .long foo@TLSGD
14236 .long foo@TLSLDM
14237 .long foo@DTPOFF
14238 .long foo@GOTTPOFF
14239 .long foo@TPOFF'
14240 tls_first_major=2
14241 tls_first_minor=13
14242 tls_as_opt=--fatal-warnings
14243 ;;
14244 sparc*-*-*)
14245 case "$target" in
14246 sparc*-sun-solaris2.[56789]*)
14247 # TLS was introduced in the Solaris 9 4/04 release but
14248 # we do not enable it by default on Solaris 9 either.
14249 if test "x$enable_tls" = xyes ; then
14250 on_solaris=yes
14251 else
14252 enable_tls=no;
14253 fi
14254 ;;
14255 sparc*-sun-solaris2.*)
14256 on_solaris=yes
14257 ;;
14258 *)
14259 on_solaris=no
14260 ;;
14261 esac
14262 if test x$on_solaris = xyes && test x$gas_flag = xno; then
14263 conftest_s='
14264 .section ".tdata",#alloc,#write,#tls
14265 foo: .long 25
14266 .text
14267 sethi %tgd_hi22(foo), %o0
14268 add %o0, %tgd_lo10(foo), %o1
14269 add %l7, %o1, %o0, %tgd_add(foo)
14270 call __tls_get_addr, %tgd_call(foo)
14271 sethi %tldm_hi22(foo), %l1
14272 add %l1, %tldm_lo10(foo), %l2
14273 add %l7, %l2, %o0, %tldm_add(foo)
14274 call __tls_get_addr, %tldm_call(foo)
14275 sethi %tldo_hix22(foo), %l3
14276 xor %l3, %tldo_lox10(foo), %l4
14277 add %o0, %l4, %l5, %tldo_add(foo)
14278 sethi %tie_hi22(foo), %o3
14279 add %o3, %tie_lo10(foo), %o3
14280 ld [%l7 + %o3], %o2, %tie_ld(foo)
14281 add %g7, %o2, %o4, %tie_add(foo)
14282 sethi %tle_hix22(foo), %l1
14283 xor %l1, %tle_lox10(foo), %o5
14284 ld [%g7 + %o5], %o1'
14285 tls_first_major=0
14286 tls_first_minor=0
14287 else
14288 conftest_s='
14289 .section ".tdata","awT",@progbits
14290 foo: .long 25
14291 .text
14292 sethi %tgd_hi22(foo), %o0
14293 add %o0, %tgd_lo10(foo), %o1
14294 add %l7, %o1, %o0, %tgd_add(foo)
14295 call __tls_get_addr, %tgd_call(foo)
14296 sethi %tldm_hi22(foo), %l1
14297 add %l1, %tldm_lo10(foo), %l2
14298 add %l7, %l2, %o0, %tldm_add(foo)
14299 call __tls_get_addr, %tldm_call(foo)
14300 sethi %tldo_hix22(foo), %l3
14301 xor %l3, %tldo_lox10(foo), %l4
14302 add %o0, %l4, %l5, %tldo_add(foo)
14303 sethi %tie_hi22(foo), %o3
14304 add %o3, %tie_lo10(foo), %o3
14305 ld [%l7 + %o3], %o2, %tie_ld(foo)
14306 add %g7, %o2, %o4, %tie_add(foo)
14307 sethi %tle_hix22(foo), %l1
14308 xor %l1, %tle_lox10(foo), %o5
14309 ld [%g7 + %o5], %o1'
14310 tls_first_major=2
14311 tls_first_minor=14
14312 tls_as_opt="-32 --fatal-warnings"
14313 fi
14314 ;;
14315 esac
14316 set_have_as_tls=no
14317 if test "x$enable_tls" = xno ; then
14318 : # TLS explicitly disabled.
14319 elif test "x$enable_tls" = xyes ; then
14320 set_have_as_tls=yes # TLS explicitly enabled.
14321 elif test -z "$tls_first_major"; then
14322 : # If we don't have a check, assume no support.
14323 else
14324 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14325 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14326 if test "${gcc_cv_as_tls+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329 gcc_cv_as_tls=no
14330 if test $in_tree_gas = yes; then
14331 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14332 then gcc_cv_as_tls=yes
14333 fi
14334 elif test x$gcc_cv_as != x; then
14335 echo "$conftest_s" > conftest.s
14336 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }
14342 then
14343 gcc_cv_as_tls=yes
14344 else
14345 echo "configure: failed program was" >&5
14346 cat conftest.s >&5
14347 fi
14348 rm -f conftest.o conftest.s
14349 fi
14350 fi
14351 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14352 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14353 if test $gcc_cv_as_tls = yes; then
14354 set_have_as_tls=yes
14355 fi
14356 fi
14357 if test $set_have_as_tls = yes ; then
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_AS_TLS 1
14361 _ACEOF
14362
14363 fi
14364
14365 # Target-specific assembler checks.
14366
14367 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14368 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14369 gcc_cv_ld_static_dynamic=no
14370 if test $in_tree_ld = yes ; then
14371 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14372 gcc_cv_ld_static_dynamic=yes
14373 fi
14374 elif test x$gcc_cv_ld != x; then
14375 # Check if linker supports -Bstatic/-Bdynamic option
14376 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14377 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14378 gcc_cv_ld_static_dynamic=yes
14379 fi
14380 fi
14381 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14382
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_LD_STATIC_DYNAMIC 1
14385 _ACEOF
14386
14387 fi
14388 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14389 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14390
14391 if test x"$demangler_in_ld" = xyes; then
14392 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14393 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14394 gcc_cv_ld_demangle=no
14395 if test $in_tree_ld = yes; then
14396 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 \
14397 gcc_cv_ld_demangle=yes
14398 fi
14399 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14400 # Check if the GNU linker supports --demangle option
14401 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14402 gcc_cv_ld_demangle=yes
14403 fi
14404 fi
14405 if test x"$gcc_cv_ld_demangle" = xyes; then
14406
14407 cat >>confdefs.h <<\_ACEOF
14408 #define HAVE_LD_DEMANGLE 1
14409 _ACEOF
14410
14411 fi
14412 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14413 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14414 fi
14415
14416 case "$target" in
14417 # All TARGET_ABI_OSF targets.
14418 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14419 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14420 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14421 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424 gcc_cv_as_alpha_explicit_relocs=no
14425 if test $in_tree_gas = yes; then
14426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14427 then gcc_cv_as_alpha_explicit_relocs=yes
14428 fi
14429 elif test x$gcc_cv_as != x; then
14430 echo ' .set nomacro
14431 .text
14432 extbl $3, $2, $3 !lituse_bytoff!1
14433 ldq $2, a($29) !literal!1
14434 ldq $4, b($29) !literal!2
14435 ldq_u $3, 0($2) !lituse_base!1
14436 ldq $27, f($29) !literal!5
14437 jsr $26, ($27), f !lituse_jsr!5
14438 ldah $29, 0($26) !gpdisp!3
14439 lda $0, c($29) !gprel
14440 ldah $1, d($29) !gprelhigh
14441 lda $1, d($1) !gprellow
14442 lda $29, 0($29) !gpdisp!3' > conftest.s
14443 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }
14449 then
14450 gcc_cv_as_alpha_explicit_relocs=yes
14451 else
14452 echo "configure: failed program was" >&5
14453 cat conftest.s >&5
14454 fi
14455 rm -f conftest.o conftest.s
14456 fi
14457 fi
14458 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14459 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14460 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14461
14462 cat >>confdefs.h <<\_ACEOF
14463 #define HAVE_AS_EXPLICIT_RELOCS 1
14464 _ACEOF
14465
14466 fi
14467 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14468 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14469 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472 gcc_cv_as_alpha_jsrdirect_relocs=no
14473 if test $in_tree_gas = yes; then
14474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14475 then gcc_cv_as_alpha_jsrdirect_relocs=yes
14476 fi
14477 elif test x$gcc_cv_as != x; then
14478 echo ' .set nomacro
14479 .text
14480 ldq $27, a($29) !literal!1
14481 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14485 ac_status=$?
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }
14488 then
14489 gcc_cv_as_alpha_jsrdirect_relocs=yes
14490 else
14491 echo "configure: failed program was" >&5
14492 cat conftest.s >&5
14493 fi
14494 rm -f conftest.o conftest.s
14495 fi
14496 fi
14497 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14498 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14499 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14500
14501 cat >>confdefs.h <<\_ACEOF
14502 #define HAVE_AS_JSRDIRECT_RELOCS 1
14503 _ACEOF
14504
14505 fi
14506 ;;
14507
14508 cris-*-*)
14509 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14510 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14511 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 gcc_cv_as_cris_no_mul_bug=no
14515 if test $in_tree_gas = yes; then
14516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14517 then gcc_cv_as_cris_no_mul_bug=yes
14518 fi
14519 elif test x$gcc_cv_as != x; then
14520 echo '.text' > conftest.s
14521 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }
14527 then
14528 gcc_cv_as_cris_no_mul_bug=yes
14529 else
14530 echo "configure: failed program was" >&5
14531 cat conftest.s >&5
14532 fi
14533 rm -f conftest.o conftest.s
14534 fi
14535 fi
14536 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14537 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14538 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14539
14540 cat >>confdefs.h <<\_ACEOF
14541 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14542 _ACEOF
14543
14544 fi
14545 ;;
14546
14547 sparc*-*-*)
14548 echo "$as_me:$LINENO: checking assembler for .register" >&5
14549 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14550 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553 gcc_cv_as_sparc_register_op=no
14554 if test x$gcc_cv_as != x; then
14555 echo '.register %g2, #scratch' > conftest.s
14556 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }
14562 then
14563 gcc_cv_as_sparc_register_op=yes
14564 else
14565 echo "configure: failed program was" >&5
14566 cat conftest.s >&5
14567 fi
14568 rm -f conftest.o conftest.s
14569 fi
14570 fi
14571 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14572 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14573 if test $gcc_cv_as_sparc_register_op = yes; then
14574
14575 cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14577 _ACEOF
14578
14579 fi
14580
14581 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14582 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14583 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 gcc_cv_as_sparc_relax=no
14587 if test x$gcc_cv_as != x; then
14588 echo '.text' > conftest.s
14589 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }
14595 then
14596 gcc_cv_as_sparc_relax=yes
14597 else
14598 echo "configure: failed program was" >&5
14599 cat conftest.s >&5
14600 fi
14601 rm -f conftest.o conftest.s
14602 fi
14603 fi
14604 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14605 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14606 if test $gcc_cv_as_sparc_relax = yes; then
14607
14608 cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_AS_RELAX_OPTION 1
14610 _ACEOF
14611
14612 fi
14613
14614 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14615 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14616 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 gcc_cv_as_sparc_ua_pcrel=no
14620 if test x$gcc_cv_as != x; then
14621 echo '.text
14622 foo:
14623 nop
14624 .data
14625 .align 4
14626 .byte 0
14627 .uaword %r_disp32(foo)' > conftest.s
14628 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }
14634 then
14635 if test x$gcc_cv_ld != x \
14636 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14637 gcc_cv_as_sparc_ua_pcrel=yes
14638 fi
14639 rm -f conftest
14640 else
14641 echo "configure: failed program was" >&5
14642 cat conftest.s >&5
14643 fi
14644 rm -f conftest.o conftest.s
14645 fi
14646 fi
14647 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14648 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14649 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14650
14651 cat >>confdefs.h <<\_ACEOF
14652 #define HAVE_AS_SPARC_UA_PCREL 1
14653 _ACEOF
14654
14655
14656 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14657 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14658 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 gcc_cv_as_sparc_ua_pcrel_hidden=no
14662 if test x$gcc_cv_as != x; then
14663 echo '.data
14664 .align 4
14665 .byte 0x31
14666 .uaword %r_disp32(foo)
14667 .byte 0x32, 0x33, 0x34
14668 .global foo
14669 .hidden foo
14670 foo:
14671 .skip 4' > conftest.s
14672 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; }
14678 then
14679 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14680 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14681 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14682 | grep ' 31000000 07323334' > /dev/null 2>&1; then
14683 if $gcc_cv_objdump -R conftest 2> /dev/null \
14684 | grep 'DISP32' > /dev/null 2>&1; then
14685 :
14686 else
14687 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14688 fi
14689 fi
14690 rm -f conftest
14691 else
14692 echo "configure: failed program was" >&5
14693 cat conftest.s >&5
14694 fi
14695 rm -f conftest.o conftest.s
14696 fi
14697 fi
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14699 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14700 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14701
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14704 _ACEOF
14705
14706 fi
14707
14708 fi # unaligned pcrel relocs
14709
14710 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14711 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14712 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 gcc_cv_as_sparc_offsetable_lo10=no
14716 if test x$gcc_cv_as != x; then
14717 echo '.text
14718 or %g1, %lo(ab) + 12, %g1
14719 or %g1, %lo(ab + 12), %g1' > conftest.s
14720 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }
14726 then
14727 if test x$gcc_cv_objdump != x \
14728 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14729 | grep ' 82106000 82106000' > /dev/null 2>&1; then
14730 gcc_cv_as_sparc_offsetable_lo10=yes
14731 fi
14732 else
14733 echo "configure: failed program was" >&5
14734 cat conftest.s >&5
14735 fi
14736 rm -f conftest.o conftest.s
14737 fi
14738 fi
14739 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14740 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14741 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14742
14743 cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_AS_OFFSETABLE_LO10 1
14745 _ACEOF
14746
14747 fi
14748 ;;
14749
14750 i[34567]86-*-* | x86_64-*-*)
14751 case $target_os in
14752 cygwin* | pe | mingw32*)
14753 # Used for DWARF 2 in PE
14754 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14755 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14756 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759 gcc_cv_as_ix86_pe_secrel32=no
14760 if test $in_tree_gas = yes; then
14761 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14762 then gcc_cv_as_ix86_pe_secrel32=yes
14763 fi
14764 elif test x$gcc_cv_as != x; then
14765 echo '.text
14766 foo: nop
14767 .data
14768 .secrel32 foo' > conftest.s
14769 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; }
14775 then
14776 if test x$gcc_cv_ld != x \
14777 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14778 gcc_cv_as_ix86_pe_secrel32=yes
14779 fi
14780 rm -f conftest
14781 else
14782 echo "configure: failed program was" >&5
14783 cat conftest.s >&5
14784 fi
14785 rm -f conftest.o conftest.s
14786 fi
14787 fi
14788 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14789 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14790 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14791
14792 cat >>confdefs.h <<\_ACEOF
14793 #define HAVE_GAS_PE_SECREL32_RELOC 1
14794 _ACEOF
14795
14796 fi
14797 ;;
14798 esac
14799
14800 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14801 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14802 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805 gcc_cv_as_ix86_filds_fists=no
14806 if test $in_tree_gas = yes; then
14807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14808 then gcc_cv_as_ix86_filds_fists=yes
14809 fi
14810 elif test x$gcc_cv_as != x; then
14811 echo 'filds mem; fists mem' > conftest.s
14812 if { ac_try='$gcc_cv_as -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 gcc_cv_as_ix86_filds_fists=yes
14820 else
14821 echo "configure: failed program was" >&5
14822 cat conftest.s >&5
14823 fi
14824 rm -f conftest.o conftest.s
14825 fi
14826 fi
14827 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14828 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14829 if test $gcc_cv_as_ix86_filds_fists = yes; then
14830
14831 cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_GAS_FILDS_FISTS 1
14833 _ACEOF
14834
14835 fi
14836
14837 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14838 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14839 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 gcc_cv_as_ix86_cmov_sun_syntax=no
14843 if test x$gcc_cv_as != x; then
14844 echo 'cmovl.l %edx, %eax' > conftest.s
14845 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }
14851 then
14852 gcc_cv_as_ix86_cmov_sun_syntax=yes
14853 else
14854 echo "configure: failed program was" >&5
14855 cat conftest.s >&5
14856 fi
14857 rm -f conftest.o conftest.s
14858 fi
14859 fi
14860 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14861 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14862 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14863
14864 cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14866 _ACEOF
14867
14868 fi
14869
14870 # This one is used unconditionally by i386.[ch]; it is to be defined
14871 # to 1 if the feature is present, 0 otherwise.
14872 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14873 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14874 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877 gcc_cv_as_ix86_gotoff_in_data=no
14878 if test $in_tree_gas = yes; then
14879 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14880 then gcc_cv_as_ix86_gotoff_in_data=yes
14881 fi
14882 elif test x$gcc_cv_as != x; then
14883 echo ' .text
14884 .L0:
14885 nop
14886 .data
14887 .long .L0@GOTOFF' > conftest.s
14888 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }
14894 then
14895 gcc_cv_as_ix86_gotoff_in_data=yes
14896 else
14897 echo "configure: failed program was" >&5
14898 cat conftest.s >&5
14899 fi
14900 rm -f conftest.o conftest.s
14901 fi
14902 fi
14903 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14904 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14905
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14909 _ACEOF
14910
14911 ;;
14912
14913 ia64*-*-*)
14914 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14915 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14916 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14920 if test $in_tree_gas = yes; then
14921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14922 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14923 fi
14924 elif test x$gcc_cv_as != x; then
14925 echo ' .text
14926 addl r15 = @ltoffx(x#), gp
14927 ;;
14928 ld8.mov r16 = [r15], x#' > conftest.s
14929 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }
14935 then
14936 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14937 else
14938 echo "configure: failed program was" >&5
14939 cat conftest.s >&5
14940 fi
14941 rm -f conftest.o conftest.s
14942 fi
14943 fi
14944 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14945 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14946 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14947
14948 cat >>confdefs.h <<\_ACEOF
14949 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14950 _ACEOF
14951
14952 fi
14953
14954 ;;
14955
14956 powerpc*-*-*)
14957 case $target in
14958 *-*-aix*) conftest_s=' .machine "pwr5"
14959 .csect .text[PR]
14960 mfcr 3,128';;
14961 *-*-darwin*)
14962 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14963 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14964 if test "${gcc_cv_as_machine_directive+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967 gcc_cv_as_machine_directive=no
14968 if test x$gcc_cv_as != x; then
14969 echo ' .machine ppc7400' > conftest.s
14970 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }
14976 then
14977 gcc_cv_as_machine_directive=yes
14978 else
14979 echo "configure: failed program was" >&5
14980 cat conftest.s >&5
14981 fi
14982 rm -f conftest.o conftest.s
14983 fi
14984 fi
14985 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14986 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14987
14988 if test x$gcc_cv_as_machine_directive != xyes; then
14989 echo "*** This target requires an assembler supporting \".machine\"" >&2
14990 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
14991 test x$build = x$target && exit 1
14992 fi
14993 conftest_s=' .text
14994 mfcr r3,128';;
14995 *) conftest_s=' .machine power4
14996 .text
14997 mfcr 3,128';;
14998 esac
14999
15000 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15001 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15002 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005 gcc_cv_as_powerpc_mfcrf=no
15006 if test $in_tree_gas = yes; then
15007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15008 then gcc_cv_as_powerpc_mfcrf=yes
15009 fi
15010 elif test x$gcc_cv_as != x; then
15011 echo "$conftest_s" > conftest.s
15012 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; }
15018 then
15019 gcc_cv_as_powerpc_mfcrf=yes
15020 else
15021 echo "configure: failed program was" >&5
15022 cat conftest.s >&5
15023 fi
15024 rm -f conftest.o conftest.s
15025 fi
15026 fi
15027 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15028 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15029 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15030
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_AS_MFCRF 1
15033 _ACEOF
15034
15035 fi
15036
15037 case $target in
15038 *-*-aix*) conftest_s=' .machine "pwr5"
15039 .csect .text[PR]
15040 popcntb 3,3';;
15041 *) conftest_s=' .machine power5
15042 .text
15043 popcntb 3,3';;
15044 esac
15045
15046 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15047 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15048 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 else
15051 gcc_cv_as_powerpc_popcntb=no
15052 if test $in_tree_gas = yes; then
15053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15054 then gcc_cv_as_powerpc_popcntb=yes
15055 fi
15056 elif test x$gcc_cv_as != x; then
15057 echo "$conftest_s" > conftest.s
15058 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }
15064 then
15065 gcc_cv_as_powerpc_popcntb=yes
15066 else
15067 echo "configure: failed program was" >&5
15068 cat conftest.s >&5
15069 fi
15070 rm -f conftest.o conftest.s
15071 fi
15072 fi
15073 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15074 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15075 if test $gcc_cv_as_powerpc_popcntb = yes; then
15076
15077 cat >>confdefs.h <<\_ACEOF
15078 #define HAVE_AS_POPCNTB 1
15079 _ACEOF
15080
15081 fi
15082
15083 case $target in
15084 *-*-aix*) conftest_s=' .machine "pwr5x"
15085 .csect .text[PR]
15086 frin 1,1';;
15087 *) conftest_s=' .machine power5
15088 .text
15089 frin 1,1';;
15090 esac
15091
15092 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15093 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15094 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097 gcc_cv_as_powerpc_fprnd=no
15098 if test $in_tree_gas = yes; then
15099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15100 then gcc_cv_as_powerpc_fprnd=yes
15101 fi
15102 elif test x$gcc_cv_as != x; then
15103 echo "$conftest_s" > conftest.s
15104 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }
15110 then
15111 gcc_cv_as_powerpc_fprnd=yes
15112 else
15113 echo "configure: failed program was" >&5
15114 cat conftest.s >&5
15115 fi
15116 rm -f conftest.o conftest.s
15117 fi
15118 fi
15119 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15120 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15121 if test $gcc_cv_as_powerpc_fprnd = yes; then
15122
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_AS_FPRND 1
15125 _ACEOF
15126
15127 fi
15128
15129 case $target in
15130 *-*-aix*) conftest_s=' .csect .text[PR]
15131 LCF..0:
15132 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15133 *-*-darwin*)
15134 conftest_s=' .text
15135 LCF0:
15136 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15137 *) conftest_s=' .text
15138 .LCF0:
15139 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15140 esac
15141
15142 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15143 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15144 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147 gcc_cv_as_powerpc_rel16=no
15148 if test $in_tree_gas = yes; then
15149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15150 then gcc_cv_as_powerpc_rel16=yes
15151 fi
15152 elif test x$gcc_cv_as != x; then
15153 echo "$conftest_s" > conftest.s
15154 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }
15160 then
15161 gcc_cv_as_powerpc_rel16=yes
15162 else
15163 echo "configure: failed program was" >&5
15164 cat conftest.s >&5
15165 fi
15166 rm -f conftest.o conftest.s
15167 fi
15168 fi
15169 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15170 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15171 if test $gcc_cv_as_powerpc_rel16 = yes; then
15172
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_AS_REL16 1
15175 _ACEOF
15176
15177 fi
15178 ;;
15179
15180 mips*-*-*)
15181 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15182 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15183 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186 gcc_cv_as_mips_explicit_relocs=no
15187 if test $in_tree_gas = yes; then
15188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15189 then gcc_cv_as_mips_explicit_relocs=yes
15190 fi
15191 elif test x$gcc_cv_as != x; then
15192 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15193 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }
15199 then
15200 gcc_cv_as_mips_explicit_relocs=yes
15201 else
15202 echo "configure: failed program was" >&5
15203 cat conftest.s >&5
15204 fi
15205 rm -f conftest.o conftest.s
15206 fi
15207 fi
15208 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15209 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15210 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15211 if test x$target_cpu_default = x
15212 then target_cpu_default=MASK_EXPLICIT_RELOCS
15213 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15214 fi
15215 fi
15216 ;;
15217 esac
15218
15219 # Mips and HP-UX need the GNU assembler.
15220 # Linux on IA64 might be able to use the Intel assembler.
15221
15222 case "$target" in
15223 mips*-*-* | *-*-hpux* )
15224 if test x$gas_flag = xyes \
15225 || test x"$host" != x"$build" \
15226 || test ! -x "$gcc_cv_as" \
15227 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15228 :
15229 else
15230 echo "*** This configuration requires the GNU assembler" >&2
15231 exit 1
15232 fi
15233 ;;
15234 esac
15235
15236 # ??? Not all targets support dwarf2 debug_line, even within a version
15237 # of gas. Moreover, we need to emit a valid instruction to trigger any
15238 # info to the output file. So, as supported targets are added to gas 2.11,
15239 # add some instruction here to (also) show we expect this might work.
15240 # ??? Once 2.11 is released, probably need to add first known working
15241 # version to the per-target configury.
15242 case "$target" in
15243 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15244 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15245 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15246 insn="nop"
15247 ;;
15248 ia64*-*-* | s390*-*-*)
15249 insn="nop 0"
15250 ;;
15251 mmix-*-*)
15252 insn="swym 0"
15253 ;;
15254 esac
15255 if test x"$insn" != x; then
15256 conftest_s="\
15257 .file 1 \"conftest.s\"
15258 .loc 1 3 0
15259 $insn"
15260 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15261 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15262 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15263 echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265 gcc_cv_as_dwarf2_debug_line=no
15266 if test $in_tree_gas = yes; then
15267 if test $in_tree_gas_is_elf = yes \
15268 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15269 then gcc_cv_as_dwarf2_debug_line=yes
15270 fi
15271 elif test x$gcc_cv_as != x; then
15272 echo "$conftest_s" > conftest.s
15273 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }
15279 then
15280 if test x$gcc_cv_objdump != x \
15281 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15282 | grep debug_line > /dev/null 2>&1; then
15283 gcc_cv_as_dwarf2_debug_line=yes
15284 fi
15285 else
15286 echo "configure: failed program was" >&5
15287 cat conftest.s >&5
15288 fi
15289 rm -f conftest.o conftest.s
15290 fi
15291 fi
15292 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15293 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15294
15295
15296 # The .debug_line file table must be in the exact order that
15297 # we specified the files, since these indices are also used
15298 # by DW_AT_decl_file. Approximate this test by testing if
15299 # the assembler bitches if the same index is assigned twice.
15300 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15301 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15302 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 else
15305 gcc_cv_as_dwarf2_file_buggy=no
15306 if test x$gcc_cv_as != x; then
15307 echo ' .file 1 "foo.s"
15308 .file 1 "bar.s"' > conftest.s
15309 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }
15315 then
15316 gcc_cv_as_dwarf2_file_buggy=yes
15317 else
15318 echo "configure: failed program was" >&5
15319 cat conftest.s >&5
15320 fi
15321 rm -f conftest.o conftest.s
15322 fi
15323 fi
15324 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15325 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15326
15327
15328 if test $gcc_cv_as_dwarf2_debug_line = yes \
15329 && test $gcc_cv_as_dwarf2_file_buggy = no; then
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15333 _ACEOF
15334
15335 fi
15336
15337 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15338 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15339 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342 gcc_cv_as_gdwarf2_flag=no
15343 if test $in_tree_gas = yes; then
15344 if test $in_tree_gas_is_elf = yes \
15345 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15346 then gcc_cv_as_gdwarf2_flag=yes
15347 fi
15348 elif test x$gcc_cv_as != x; then
15349 echo "$insn" > conftest.s
15350 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }
15356 then
15357 gcc_cv_as_gdwarf2_flag=yes
15358 else
15359 echo "configure: failed program was" >&5
15360 cat conftest.s >&5
15361 fi
15362 rm -f conftest.o conftest.s
15363 fi
15364 fi
15365 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15366 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15367 if test $gcc_cv_as_gdwarf2_flag = yes; then
15368
15369 cat >>confdefs.h <<\_ACEOF
15370 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15371 _ACEOF
15372
15373 fi
15374
15375 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15376 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15377 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380 gcc_cv_as_gstabs_flag=no
15381 if test $in_tree_gas = yes; then
15382 if test $in_tree_gas_is_elf = yes \
15383 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15384 then gcc_cv_as_gstabs_flag=yes
15385 fi
15386 elif test x$gcc_cv_as != x; then
15387 echo "$insn" > conftest.s
15388 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }
15394 then
15395 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15396 # and warns about it, but still exits successfully. So check for
15397 # this.
15398 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15400 (eval $ac_try) 2>&5
15401 ac_status=$?
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); }; }
15404 then :
15405 else gcc_cv_as_gstabs_flag=yes
15406 fi
15407 else
15408 echo "configure: failed program was" >&5
15409 cat conftest.s >&5
15410 fi
15411 rm -f conftest.o conftest.s
15412 fi
15413 fi
15414 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15415 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15416 if test $gcc_cv_as_gstabs_flag = yes; then
15417
15418 cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15420 _ACEOF
15421
15422 fi
15423 fi
15424
15425 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15426 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15427 gcc_cv_ld_ro_rw_mix=unknown
15428 if test $in_tree_ld = yes ; then
15429 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 \
15430 && test $in_tree_ld_is_elf = yes; then
15431 gcc_cv_ld_ro_rw_mix=read-write
15432 fi
15433 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15434 echo '.section myfoosect, "a"' > conftest1.s
15435 echo '.section myfoosect, "aw"' > conftest2.s
15436 echo '.byte 1' >> conftest2.s
15437 echo '.section myfoosect, "a"' > conftest3.s
15438 echo '.byte 0' >> conftest3.s
15439 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15440 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15441 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15442 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15443 conftest2.o conftest3.o > /dev/null 2>&1; then
15444 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15445 | sed -e '/myfoosect/!d' -e N`
15446 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15447 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15448 gcc_cv_ld_ro_rw_mix=read-only
15449 else
15450 gcc_cv_ld_ro_rw_mix=read-write
15451 fi
15452 fi
15453 fi
15454 rm -f conftest.* conftest[123].*
15455 fi
15456 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15457
15458 cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15460 _ACEOF
15461
15462 fi
15463 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15464 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15465
15466 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15467 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15468 gcc_cv_ld_eh_frame_hdr=no
15469 if test $in_tree_ld = yes ; then
15470 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 \
15471 && test $in_tree_ld_is_elf = yes; then
15472 gcc_cv_ld_eh_frame_hdr=yes
15473 fi
15474 elif test x$gcc_cv_ld != x; then
15475 # Check if linker supports --eh-frame-hdr option
15476 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15477 gcc_cv_ld_eh_frame_hdr=yes
15478 fi
15479 fi
15480
15481 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15482
15483 cat >>confdefs.h <<\_ACEOF
15484 #define HAVE_LD_EH_FRAME_HDR 1
15485 _ACEOF
15486
15487 fi
15488 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15489 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15490
15491 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15492 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15493 gcc_cv_ld_pie=no
15494 if test $in_tree_ld = yes ; then
15495 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 \
15496 && test $in_tree_ld_is_elf = yes; then
15497 gcc_cv_ld_pie=yes
15498 fi
15499 elif test x$gcc_cv_ld != x; then
15500 # Check if linker supports -pie option
15501 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15502 gcc_cv_ld_pie=yes
15503 fi
15504 fi
15505 if test x"$gcc_cv_ld_pie" = xyes; then
15506
15507 cat >>confdefs.h <<\_ACEOF
15508 #define HAVE_LD_PIE 1
15509 _ACEOF
15510
15511 fi
15512 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15513 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15514
15515 # --------
15516 # UNSORTED
15517 # --------
15518
15519 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15520 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15521 if test "${gcc_cv_ld_as_needed+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 gcc_cv_ld_as_needed=no
15525 if test $in_tree_ld = yes ; then
15526 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 \
15527 && test $in_tree_ld_is_elf = yes; then
15528 gcc_cv_ld_as_needed=yes
15529 fi
15530 elif test x$gcc_cv_ld != x; then
15531 # Check if linker supports --as-needed and --no-as-needed options
15532 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15533 gcc_cv_ld_as_needed=yes
15534 fi
15535 fi
15536
15537 fi
15538 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15539 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15540 if test x"$gcc_cv_ld_as_needed" = xyes; then
15541
15542 cat >>confdefs.h <<\_ACEOF
15543 #define HAVE_LD_AS_NEEDED 1
15544 _ACEOF
15545
15546 fi
15547
15548 case "$target:$tm_file" in
15549 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
15550 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15551 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15552 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555 gcc_cv_ld_no_dot_syms=no
15556 if test $in_tree_ld = yes ; then
15557 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
15558 gcc_cv_ld_no_dot_syms=yes
15559 fi
15560 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15561 cat > conftest1.s <<EOF
15562 .text
15563 bl .foo
15564 EOF
15565 cat > conftest2.s <<EOF
15566 .section ".opd","aw"
15567 .align 3
15568 .globl foo
15569 .type foo,@function
15570 foo:
15571 .quad .LEfoo,.TOC.@tocbase,0
15572 .text
15573 .LEfoo:
15574 blr
15575 .size foo,.-.LEfoo
15576 EOF
15577 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15578 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15579 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15580 gcc_cv_ld_no_dot_syms=yes
15581 fi
15582 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15583 fi
15584
15585 fi
15586 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15587 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15588 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_LD_NO_DOT_SYMS 1
15592 _ACEOF
15593
15594 fi
15595 ;;
15596 esac
15597
15598 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15599 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15600 if test "${gcc_cv_ld_sysroot+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 gcc_cv_ld_sysroot=no
15604 if test $in_tree_ld = yes ; then
15605 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
15606 gcc_cv_ld_sysroot=yes
15607 fi
15608 elif test x$gcc_cv_ld != x; then
15609 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15610 gcc_cv_ld_sysroot=yes
15611 fi
15612 fi
15613 fi
15614 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15615 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15616 if test x"$gcc_cv_ld_sysroot" = xyes; then
15617
15618 cat >>confdefs.h <<\_ACEOF
15619 #define HAVE_LD_SYSROOT 1
15620 _ACEOF
15621
15622 fi
15623
15624 if test x$with_sysroot = x && test x$host = x$target \
15625 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15626
15627 cat >>confdefs.h <<_ACEOF
15628 #define PREFIX_INCLUDE_DIR "$prefix/include"
15629 _ACEOF
15630
15631 fi
15632
15633 # Test for stack protector support in target C library.
15634 case "$target" in
15635 *-*-linux*)
15636 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15637 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15638 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 else
15641 gcc_cv_libc_provides_ssp=no
15642 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15643 if test "x$with_sysroot" = x; then
15644 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15645 elif test "x$with_sysroot" = xyes; then
15646 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15647 else
15648 glibc_header_dir="${with_sysroot}/usr/include"
15649 fi
15650 else
15651 glibc_header_dir=/usr/include
15652 fi
15653 # glibc 2.4 and later provides __stack_chk_fail and
15654 # either __stack_chk_guard, or TLS access to stack guard canary.
15655 if test -f $glibc_header_dir/features.h \
15656 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15657 $glibc_header_dir/features.h > /dev/null; then
15658 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15659 $glibc_header_dir/features.h > /dev/null; then
15660 gcc_cv_libc_provides_ssp=yes
15661 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15662 $glibc_header_dir/features.h > /dev/null \
15663 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15664 $glibc_header_dir/features.h > /dev/null; then
15665 gcc_cv_libc_provides_ssp=yes
15666 fi
15667 fi
15668 fi
15669 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15670 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15671 *) gcc_cv_libc_provides_ssp=no ;;
15672 esac
15673 if test x$gcc_cv_libc_provides_ssp = xyes; then
15674
15675 cat >>confdefs.h <<\_ACEOF
15676 #define TARGET_LIBC_PROVIDES_SSP 1
15677 _ACEOF
15678
15679 fi
15680
15681 # Check if TFmode long double should be used by default or not.
15682 # Some glibc targets used DFmode long double, but with glibc 2.4
15683 # and later they can use TFmode.
15684 case "$target" in
15685 powerpc*-*-*gnu* | \
15686 sparc*-*-linux* | \
15687 s390*-*-linux* | \
15688 alpha*-*-linux*)
15689
15690 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15691 if test "${with_long_double_128+set}" = set; then
15692 withval="$with_long_double_128"
15693 gcc_cv_target_ldbl128="$with_long_double_128"
15694 else
15695 gcc_cv_target_ldbl128=no
15696 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15697 if test "x$with_sysroot" = x; then
15698 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15699 elif test "x$with_sysroot" = xyes; then
15700 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15701 else
15702 glibc_header_dir="${with_sysroot}/usr/include"
15703 fi
15704 else
15705 glibc_header_dir=/usr/include
15706 fi
15707 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15708 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
15709 && gcc_cv_target_ldbl128=yes
15710 fi;
15711 ;;
15712 esac
15713 if test x$gcc_cv_target_ldbl128 = xyes; then
15714
15715 cat >>confdefs.h <<\_ACEOF
15716 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15717 _ACEOF
15718
15719 fi
15720
15721 # Find out what GC implementation we want, or may, use.
15722
15723 # Check whether --with-gc or --without-gc was given.
15724 if test "${with_gc+set}" = set; then
15725 withval="$with_gc"
15726 case "$withval" in
15727 page)
15728 GGC=ggc-$withval
15729 ;;
15730 zone)
15731 GGC=ggc-$withval
15732
15733 cat >>confdefs.h <<\_ACEOF
15734 #define GGC_ZONE 1
15735 _ACEOF
15736
15737 ;;
15738 *)
15739 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15740 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15741 { (exit 1); exit 1; }; }
15742 ;;
15743 esac
15744 else
15745 GGC=ggc-page
15746 fi;
15747
15748 echo "Using $GGC for garbage collection."
15749
15750 # Use the system's zlib library.
15751 zlibdir=-L../zlib
15752 zlibinc="-I\$(srcdir)/../zlib"
15753
15754 # Check whether --with-system-zlib or --without-system-zlib was given.
15755 if test "${with_system_zlib+set}" = set; then
15756 withval="$with_system_zlib"
15757 zlibdir=
15758 zlibinc=
15759
15760 fi;
15761
15762
15763
15764
15765 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15766 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15767 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15768 if test "${enable_maintainer_mode+set}" = set; then
15769 enableval="$enable_maintainer_mode"
15770 maintainer_mode=$enableval
15771 else
15772 maintainer_mode=no
15773 fi;
15774
15775 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15776 echo "${ECHO_T}$maintainer_mode" >&6
15777
15778 if test "$maintainer_mode" = "yes"; then
15779 MAINT=''
15780 else
15781 MAINT='#'
15782 fi
15783
15784 # --------------
15785 # Language hooks
15786 # --------------
15787
15788 # Make empty files to contain the specs and options for each language.
15789 # Then add #include lines to for a compiler that has specs and/or options.
15790
15791 subdirs=
15792 lang_opt_files=
15793 lang_specs_files=
15794 lang_tree_files=
15795 # These (without "all_") are set in each config-lang.in.
15796 # `language' must be a single word so is spelled singularly.
15797 all_languages=
15798 all_boot_languages=
15799 all_compilers=
15800 all_stagestuff=
15801 all_outputs='Makefile gccbug mklibgcc libada-mk'
15802 # List of language makefile fragments.
15803 all_lang_makefrags=
15804 # List of language subdirectory makefiles. Deprecated.
15805 all_lang_makefiles=
15806 # Files for gengtype
15807 all_gtfiles="$target_gtfiles"
15808 # Files for gengtype with language
15809 all_gtfiles_files_langs=
15810 all_gtfiles_files_files=
15811
15812 # These are the languages that are set in --enable-languages,
15813 # and are available in the GCC tree.
15814 all_selected_languages=
15815
15816 # Add the language fragments.
15817 # Languages are added via two mechanisms. Some information must be
15818 # recorded in makefile variables, these are defined in config-lang.in.
15819 # We accumulate them and plug them into the main Makefile.
15820 # The other mechanism is a set of hooks for each of the main targets
15821 # like `clean', `install', etc.
15822
15823 language_hooks="Make-hooks"
15824
15825 for lang in ${srcdir}/*/config-lang.in
15826 do
15827 case $lang in
15828 # The odd quoting in the next line works around
15829 # an apparent bug in bash 1.12 on linux.
15830 ${srcdir}/[*]/config-lang.in)
15831 continue ;;
15832 *)
15833 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
15834 if test "x$lang_alias" = x
15835 then
15836 echo "$lang doesn't set \$language." 1>&2
15837 exit 1
15838 fi
15839 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
15840 subdirs="$subdirs $subdir"
15841 case ",$enable_languages," in
15842 *,$lang_alias,*)
15843 all_selected_languages="$all_selected_languages $lang_alias"
15844 if test -f $srcdir/$subdir/lang-specs.h; then
15845 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15846 fi
15847 ;;
15848 esac
15849
15850 if test -f $srcdir/$subdir/lang.opt; then
15851 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15852 fi
15853 if test -f $srcdir/$subdir/$subdir-tree.def; then
15854 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15855 fi
15856
15857 language=
15858 boot_language=
15859 compilers=
15860 stagestuff=
15861 outputs=
15862 gtfiles=
15863 . ${srcdir}/$subdir/config-lang.in
15864 if test "x$language" = x
15865 then
15866 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
15867 exit 1
15868 fi
15869 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
15870 if test -f ${srcdir}/$subdir/Makefile.in
15871 then all_lang_makefiles="$subdir/Makefile"
15872 fi
15873 all_languages="$all_languages $language"
15874 if test "x$boot_language" = xyes
15875 then
15876 all_boot_languages="$all_boot_languages $language"
15877 fi
15878 all_compilers="$all_compilers $compilers"
15879 all_stagestuff="$all_stagestuff $stagestuff"
15880 all_outputs="$all_outputs $outputs"
15881 all_gtfiles="$all_gtfiles $gtfiles"
15882 for f in $gtfiles
15883 do
15884 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
15885 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15886 done
15887 ;;
15888 esac
15889 done
15890
15891 # Pick up gtfiles for c
15892 gtfiles=
15893 subdir="c"
15894 . ${srcdir}/c-config-lang.in
15895 all_gtfiles="$all_gtfiles $gtfiles"
15896 for f in $gtfiles
15897 do
15898 all_gtfiles_files_langs="$all_gtfiles_files_langs ${subdir} "
15899 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15900 done
15901
15902 check_languages=
15903 for language in $all_selected_languages
15904 do
15905 check_languages="$check_languages check-$language"
15906 done
15907
15908 # We link each language in with a set of hooks, reached indirectly via
15909 # lang.${target}. Only do so for selected languages.
15910
15911 rm -f Make-hooks
15912 touch Make-hooks
15913 target_list="all.cross start.encap rest.encap tags \
15914 install-common install-man install-info dvi html \
15915 uninstall info man srcextra srcman srcinfo \
15916 mostlyclean clean distclean maintainer-clean \
15917 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15918
15919 for t in $target_list
15920 do
15921 x=
15922 for lang in $all_selected_languages
15923 do
15924 x="$x $lang.$t"
15925 done
15926 echo "lang.$t: $x" >> Make-hooks
15927 done
15928
15929 # --------
15930 # UNSORTED
15931 # --------
15932
15933 # Create .gdbinit.
15934
15935 echo "dir ." > .gdbinit
15936 echo "dir ${srcdir}" >> .gdbinit
15937 if test x$gdb_needs_out_file_path = xyes
15938 then
15939 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15940 fi
15941 if test "x$subdirs" != x; then
15942 for s in $subdirs
15943 do
15944 echo "dir ${srcdir}/$s" >> .gdbinit
15945 done
15946 fi
15947 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15948
15949 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15950 # absolute path for gcc_tooldir based on inserting the number of up-directory
15951 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15952 # $(libsubdir)/@(unlibsubdir) based path.
15953 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15954 # make and thus we'd get different behavior depending on where we built the
15955 # sources.
15956 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15957 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15958 else
15959 # An explanation of the sed strings:
15960 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15961 # -e 's|/$||' match a trailing forward slash and eliminates it
15962 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15963 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15964 #
15965 # (*) Note this pattern overwrites the first character of the string
15966 # with a forward slash if one is not already present. This is not a
15967 # problem because the exact names of the sub-directories concerned is
15968 # unimportant, just the number of them matters.
15969 #
15970 # The practical upshot of these patterns is like this:
15971 #
15972 # prefix exec_prefix result
15973 # ------ ----------- ------
15974 # /foo /foo/bar ../
15975 # /foo/ /foo/bar ../
15976 # /foo /foo/bar/ ../
15977 # /foo/ /foo/bar/ ../
15978 # /foo /foo/bar/ugg ../../
15979 #
15980 dollar='$$'
15981 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15982 fi
15983
15984
15985
15986 # Find a directory in which to install a shared libgcc.
15987
15988 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15989 if test "${enable_version_specific_runtime_libs+set}" = set; then
15990 enableval="$enable_version_specific_runtime_libs"
15991
15992 fi;
15993
15994
15995 # Check whether --with-slibdir or --without-slibdir was given.
15996 if test "${with_slibdir+set}" = set; then
15997 withval="$with_slibdir"
15998 slibdir="$with_slibdir"
15999 else
16000 if test "${enable_version_specific_runtime_libs+set}" = set; then
16001 slibdir='$(libsubdir)'
16002 elif test "$host" != "$target"; then
16003 slibdir='$(build_tooldir)/lib'
16004 else
16005 slibdir='$(libdir)'
16006 fi
16007 fi;
16008
16009
16010 objdir=`${PWDCMD-pwd}`
16011
16012
16013 # Substitute configuration variables
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078 # Echo link setup.
16079 if test x${build} = x${host} ; then
16080 if test x${host} = x${target} ; then
16081 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16082 else
16083 echo "Links are now set up to build a cross-compiler" 1>&2
16084 echo " from ${host} to ${target}." 1>&2
16085 fi
16086 else
16087 if test x${host} = x${target} ; then
16088 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16089 echo " for ${target}." 1>&2
16090 else
16091 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16092 echo " from ${host} to ${target}." 1>&2
16093 fi
16094 fi
16095
16096
16097
16098
16099 # Configure the subdirectories
16100 # AC_CONFIG_SUBDIRS($subdirs)
16101
16102 # Create the Makefile
16103 # and configure language subdirectories
16104 ac_config_files="$ac_config_files $all_outputs"
16105
16106
16107 ac_config_commands="$ac_config_commands default"
16108
16109 cat >confcache <<\_ACEOF
16110 # This file is a shell script that caches the results of configure
16111 # tests run on this system so they can be shared between configure
16112 # scripts and configure runs, see configure's option --config-cache.
16113 # It is not useful on other systems. If it contains results you don't
16114 # want to keep, you may remove or edit it.
16115 #
16116 # config.status only pays attention to the cache file if you give it
16117 # the --recheck option to rerun configure.
16118 #
16119 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16121 # following values.
16122
16123 _ACEOF
16124
16125 # The following way of writing the cache mishandles newlines in values,
16126 # but we know of no workaround that is simple, portable, and efficient.
16127 # So, don't put newlines in cache variables' values.
16128 # Ultrix sh set writes to stderr and can't be redirected directly,
16129 # and sets the high bit in the cache file unless we assign to the vars.
16130 {
16131 (set) 2>&1 |
16132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16133 *ac_space=\ *)
16134 # `set' does not quote correctly, so add quotes (double-quote
16135 # substitution turns \\\\ into \\, and sed turns \\ into \).
16136 sed -n \
16137 "s/'/'\\\\''/g;
16138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16139 ;;
16140 *)
16141 # `set' quotes correctly as required by POSIX, so do not add quotes.
16142 sed -n \
16143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16144 ;;
16145 esac;
16146 } |
16147 sed '
16148 t clear
16149 : clear
16150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16151 t end
16152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16153 : end' >>confcache
16154 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16155 if test -w $cache_file; then
16156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16157 cat confcache >$cache_file
16158 else
16159 echo "not updating unwritable cache $cache_file"
16160 fi
16161 fi
16162 rm -f confcache
16163
16164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16165 # Let make expand exec_prefix.
16166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16167
16168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16170 # trailing colons and then remove the whole line if VPATH becomes empty
16171 # (actually we leave an empty line to preserve line numbers).
16172 if test "x$srcdir" = x.; then
16173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16174 s/:*\$(srcdir):*/:/;
16175 s/:*\${srcdir}:*/:/;
16176 s/:*@srcdir@:*/:/;
16177 s/^\([^=]*=[ ]*\):*/\1/;
16178 s/:*$//;
16179 s/^[^=]*=[ ]*$//;
16180 }'
16181 fi
16182
16183 DEFS=-DHAVE_CONFIG_H
16184
16185 ac_libobjs=
16186 ac_ltlibobjs=
16187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16188 # 1. Remove the extension, and $U if already installed.
16189 ac_i=`echo "$ac_i" |
16190 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16191 # 2. Add them.
16192 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16193 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16194 done
16195 LIBOBJS=$ac_libobjs
16196
16197 LTLIBOBJS=$ac_ltlibobjs
16198
16199
16200
16201 : ${CONFIG_STATUS=./config.status}
16202 ac_clean_files_save=$ac_clean_files
16203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16206 cat >$CONFIG_STATUS <<_ACEOF
16207 #! $SHELL
16208 # Generated by $as_me.
16209 # Run this file to recreate the current configuration.
16210 # Compiler output produced by configure, useful for debugging
16211 # configure, is in config.log if it exists.
16212
16213 debug=false
16214 ac_cs_recheck=false
16215 ac_cs_silent=false
16216 SHELL=\${CONFIG_SHELL-$SHELL}
16217 _ACEOF
16218
16219 cat >>$CONFIG_STATUS <<\_ACEOF
16220 ## --------------------- ##
16221 ## M4sh Initialization. ##
16222 ## --------------------- ##
16223
16224 # Be Bourne compatible
16225 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16226 emulate sh
16227 NULLCMD=:
16228 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16229 # is contrary to our usage. Disable this feature.
16230 alias -g '${1+"$@"}'='"$@"'
16231 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16232 set -o posix
16233 fi
16234 DUALCASE=1; export DUALCASE # for MKS sh
16235
16236 # Support unset when possible.
16237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16238 as_unset=unset
16239 else
16240 as_unset=false
16241 fi
16242
16243
16244 # Work around bugs in pre-3.0 UWIN ksh.
16245 $as_unset ENV MAIL MAILPATH
16246 PS1='$ '
16247 PS2='> '
16248 PS4='+ '
16249
16250 # NLS nuisances.
16251 for as_var in \
16252 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16253 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16254 LC_TELEPHONE LC_TIME
16255 do
16256 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16257 eval $as_var=C; export $as_var
16258 else
16259 $as_unset $as_var
16260 fi
16261 done
16262
16263 # Required to use basename.
16264 if expr a : '\(a\)' >/dev/null 2>&1; then
16265 as_expr=expr
16266 else
16267 as_expr=false
16268 fi
16269
16270 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16271 as_basename=basename
16272 else
16273 as_basename=false
16274 fi
16275
16276
16277 # Name of the executable.
16278 as_me=`$as_basename "$0" ||
16279 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16280 X"$0" : 'X\(//\)$' \| \
16281 X"$0" : 'X\(/\)$' \| \
16282 . : '\(.\)' 2>/dev/null ||
16283 echo X/"$0" |
16284 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16285 /^X\/\(\/\/\)$/{ s//\1/; q; }
16286 /^X\/\(\/\).*/{ s//\1/; q; }
16287 s/.*/./; q'`
16288
16289
16290 # PATH needs CR, and LINENO needs CR and PATH.
16291 # Avoid depending upon Character Ranges.
16292 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16293 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16294 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16295 as_cr_digits='0123456789'
16296 as_cr_alnum=$as_cr_Letters$as_cr_digits
16297
16298 # The user is always right.
16299 if test "${PATH_SEPARATOR+set}" != set; then
16300 echo "#! /bin/sh" >conf$$.sh
16301 echo "exit 0" >>conf$$.sh
16302 chmod +x conf$$.sh
16303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16304 PATH_SEPARATOR=';'
16305 else
16306 PATH_SEPARATOR=:
16307 fi
16308 rm -f conf$$.sh
16309 fi
16310
16311
16312 as_lineno_1=$LINENO
16313 as_lineno_2=$LINENO
16314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16315 test "x$as_lineno_1" != "x$as_lineno_2" &&
16316 test "x$as_lineno_3" = "x$as_lineno_2" || {
16317 # Find who we are. Look in the path if we contain no path at all
16318 # relative or not.
16319 case $0 in
16320 *[\\/]* ) as_myself=$0 ;;
16321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322 for as_dir in $PATH
16323 do
16324 IFS=$as_save_IFS
16325 test -z "$as_dir" && as_dir=.
16326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16327 done
16328
16329 ;;
16330 esac
16331 # We did not find ourselves, most probably we were run as `sh COMMAND'
16332 # in which case we are not to be found in the path.
16333 if test "x$as_myself" = x; then
16334 as_myself=$0
16335 fi
16336 if test ! -f "$as_myself"; then
16337 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16338 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16339 { (exit 1); exit 1; }; }
16340 fi
16341 case $CONFIG_SHELL in
16342 '')
16343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16344 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16345 do
16346 IFS=$as_save_IFS
16347 test -z "$as_dir" && as_dir=.
16348 for as_base in sh bash ksh sh5; do
16349 case $as_dir in
16350 /*)
16351 if ("$as_dir/$as_base" -c '
16352 as_lineno_1=$LINENO
16353 as_lineno_2=$LINENO
16354 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16355 test "x$as_lineno_1" != "x$as_lineno_2" &&
16356 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16357 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16358 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16359 CONFIG_SHELL=$as_dir/$as_base
16360 export CONFIG_SHELL
16361 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16362 fi;;
16363 esac
16364 done
16365 done
16366 ;;
16367 esac
16368
16369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16370 # uniformly replaced by the line number. The first 'sed' inserts a
16371 # line-number line before each line; the second 'sed' does the real
16372 # work. The second script uses 'N' to pair each line-number line
16373 # with the numbered line, and appends trailing '-' during
16374 # substitution so that $LINENO is not a special case at line end.
16375 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16376 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16377 sed '=' <$as_myself |
16378 sed '
16379 N
16380 s,$,-,
16381 : loop
16382 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16383 t loop
16384 s,-$,,
16385 s,^['$as_cr_digits']*\n,,
16386 ' >$as_me.lineno &&
16387 chmod +x $as_me.lineno ||
16388 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16389 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16390 { (exit 1); exit 1; }; }
16391
16392 # Don't try to exec as it changes $[0], causing all sort of problems
16393 # (the dirname of $[0] is not the place where we might find the
16394 # original and so on. Autoconf is especially sensible to this).
16395 . ./$as_me.lineno
16396 # Exit status is that of the last command.
16397 exit
16398 }
16399
16400
16401 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16402 *c*,-n*) ECHO_N= ECHO_C='
16403 ' ECHO_T=' ' ;;
16404 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16405 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16406 esac
16407
16408 if expr a : '\(a\)' >/dev/null 2>&1; then
16409 as_expr=expr
16410 else
16411 as_expr=false
16412 fi
16413
16414 rm -f conf$$ conf$$.exe conf$$.file
16415 echo >conf$$.file
16416 if ln -s conf$$.file conf$$ 2>/dev/null; then
16417 # We could just check for DJGPP; but this test a) works b) is more generic
16418 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16419 if test -f conf$$.exe; then
16420 # Don't use ln at all; we don't have any links
16421 as_ln_s='cp -p'
16422 else
16423 as_ln_s='ln -s'
16424 fi
16425 elif ln conf$$.file conf$$ 2>/dev/null; then
16426 as_ln_s=ln
16427 else
16428 as_ln_s='cp -p'
16429 fi
16430 rm -f conf$$ conf$$.exe conf$$.file
16431
16432 if mkdir -p . 2>/dev/null; then
16433 as_mkdir_p=:
16434 else
16435 test -d ./-p && rmdir ./-p
16436 as_mkdir_p=false
16437 fi
16438
16439 as_executable_p="test -f"
16440
16441 # Sed expression to map a string onto a valid CPP name.
16442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16443
16444 # Sed expression to map a string onto a valid variable name.
16445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16446
16447
16448 # IFS
16449 # We need space, tab and new line, in precisely that order.
16450 as_nl='
16451 '
16452 IFS=" $as_nl"
16453
16454 # CDPATH.
16455 $as_unset CDPATH
16456
16457 exec 6>&1
16458
16459 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16460 # report actual input values of CONFIG_FILES etc. instead of their
16461 # values after options handling. Logging --version etc. is OK.
16462 exec 5>>config.log
16463 {
16464 echo
16465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16466 ## Running $as_me. ##
16467 _ASBOX
16468 } >&5
16469 cat >&5 <<_CSEOF
16470
16471 This file was extended by $as_me, which was
16472 generated by GNU Autoconf 2.59. Invocation command line was
16473
16474 CONFIG_FILES = $CONFIG_FILES
16475 CONFIG_HEADERS = $CONFIG_HEADERS
16476 CONFIG_LINKS = $CONFIG_LINKS
16477 CONFIG_COMMANDS = $CONFIG_COMMANDS
16478 $ $0 $@
16479
16480 _CSEOF
16481 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16482 echo >&5
16483 _ACEOF
16484
16485 # Files that config.status was made for.
16486 if test -n "$ac_config_files"; then
16487 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16488 fi
16489
16490 if test -n "$ac_config_headers"; then
16491 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16492 fi
16493
16494 if test -n "$ac_config_links"; then
16495 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16496 fi
16497
16498 if test -n "$ac_config_commands"; then
16499 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16500 fi
16501
16502 cat >>$CONFIG_STATUS <<\_ACEOF
16503
16504 ac_cs_usage="\
16505 \`$as_me' instantiates files from templates according to the
16506 current configuration.
16507
16508 Usage: $0 [OPTIONS] [FILE]...
16509
16510 -h, --help print this help, then exit
16511 -V, --version print version number, then exit
16512 -q, --quiet do not print progress messages
16513 -d, --debug don't remove temporary files
16514 --recheck update $as_me by reconfiguring in the same conditions
16515 --file=FILE[:TEMPLATE]
16516 instantiate the configuration file FILE
16517 --header=FILE[:TEMPLATE]
16518 instantiate the configuration header FILE
16519
16520 Configuration files:
16521 $config_files
16522
16523 Configuration headers:
16524 $config_headers
16525
16526 Configuration commands:
16527 $config_commands
16528
16529 Report bugs to <bug-autoconf@gnu.org>."
16530 _ACEOF
16531
16532 cat >>$CONFIG_STATUS <<_ACEOF
16533 ac_cs_version="\\
16534 config.status
16535 configured by $0, generated by GNU Autoconf 2.59,
16536 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16537
16538 Copyright (C) 2003 Free Software Foundation, Inc.
16539 This config.status script is free software; the Free Software Foundation
16540 gives unlimited permission to copy, distribute and modify it."
16541 srcdir=$srcdir
16542 _ACEOF
16543
16544 cat >>$CONFIG_STATUS <<\_ACEOF
16545 # If no file are specified by the user, then we need to provide default
16546 # value. By we need to know if files were specified by the user.
16547 ac_need_defaults=:
16548 while test $# != 0
16549 do
16550 case $1 in
16551 --*=*)
16552 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16553 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16554 ac_shift=:
16555 ;;
16556 -*)
16557 ac_option=$1
16558 ac_optarg=$2
16559 ac_shift=shift
16560 ;;
16561 *) # This is not an option, so the user has probably given explicit
16562 # arguments.
16563 ac_option=$1
16564 ac_need_defaults=false;;
16565 esac
16566
16567 case $ac_option in
16568 # Handling of the options.
16569 _ACEOF
16570 cat >>$CONFIG_STATUS <<\_ACEOF
16571 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16572 ac_cs_recheck=: ;;
16573 --version | --vers* | -V )
16574 echo "$ac_cs_version"; exit 0 ;;
16575 --he | --h)
16576 # Conflict between --help and --header
16577 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16578 Try \`$0 --help' for more information." >&5
16579 echo "$as_me: error: ambiguous option: $1
16580 Try \`$0 --help' for more information." >&2;}
16581 { (exit 1); exit 1; }; };;
16582 --help | --hel | -h )
16583 echo "$ac_cs_usage"; exit 0 ;;
16584 --debug | --d* | -d )
16585 debug=: ;;
16586 --file | --fil | --fi | --f )
16587 $ac_shift
16588 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16589 ac_need_defaults=false;;
16590 --header | --heade | --head | --hea )
16591 $ac_shift
16592 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16593 ac_need_defaults=false;;
16594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16596 ac_cs_silent=: ;;
16597
16598 # This is an error.
16599 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16600 Try \`$0 --help' for more information." >&5
16601 echo "$as_me: error: unrecognized option: $1
16602 Try \`$0 --help' for more information." >&2;}
16603 { (exit 1); exit 1; }; } ;;
16604
16605 *) ac_config_targets="$ac_config_targets $1" ;;
16606
16607 esac
16608 shift
16609 done
16610
16611 ac_configure_extra_args=
16612
16613 if $ac_cs_silent; then
16614 exec 6>/dev/null
16615 ac_configure_extra_args="$ac_configure_extra_args --silent"
16616 fi
16617
16618 _ACEOF
16619 cat >>$CONFIG_STATUS <<_ACEOF
16620 if \$ac_cs_recheck; then
16621 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16622 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16623 fi
16624
16625 _ACEOF
16626
16627 cat >>$CONFIG_STATUS <<_ACEOF
16628 #
16629 # INIT-COMMANDS section.
16630 #
16631
16632 subdirs='$subdirs'
16633
16634 _ACEOF
16635
16636
16637
16638 cat >>$CONFIG_STATUS <<\_ACEOF
16639 for ac_config_target in $ac_config_targets
16640 do
16641 case "$ac_config_target" in
16642 # Handling of arguments.
16643 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16644 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16645 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16646 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16647 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16648 { (exit 1); exit 1; }; };;
16649 esac
16650 done
16651
16652 # If the user did not use the arguments to specify the items to instantiate,
16653 # then the envvar interface is used. Set only those that are not.
16654 # We use the long form for the default assignment because of an extremely
16655 # bizarre bug on SunOS 4.1.3.
16656 if $ac_need_defaults; then
16657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16660 fi
16661
16662 # Have a temporary directory for convenience. Make it in the build tree
16663 # simply because there is no reason to put it here, and in addition,
16664 # creating and moving files from /tmp can sometimes cause problems.
16665 # Create a temporary directory, and hook for its removal unless debugging.
16666 $debug ||
16667 {
16668 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16669 trap '{ (exit 1); exit 1; }' 1 2 13 15
16670 }
16671
16672 # Create a (secure) tmp directory for tmp files.
16673
16674 {
16675 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16676 test -n "$tmp" && test -d "$tmp"
16677 } ||
16678 {
16679 tmp=./confstat$$-$RANDOM
16680 (umask 077 && mkdir $tmp)
16681 } ||
16682 {
16683 echo "$me: cannot create a temporary directory in ." >&2
16684 { (exit 1); exit 1; }
16685 }
16686
16687 _ACEOF
16688
16689 cat >>$CONFIG_STATUS <<_ACEOF
16690
16691 #
16692 # CONFIG_FILES section.
16693 #
16694
16695 # No need to generate the scripts if there are no CONFIG_FILES.
16696 # This happens for instance when ./config.status config.h
16697 if test -n "\$CONFIG_FILES"; then
16698 # Protect against being on the right side of a sed subst in config.status.
16699 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16700 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16701 s,@SHELL@,$SHELL,;t t
16702 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16703 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16704 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16705 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16706 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16707 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16708 s,@exec_prefix@,$exec_prefix,;t t
16709 s,@prefix@,$prefix,;t t
16710 s,@program_transform_name@,$program_transform_name,;t t
16711 s,@bindir@,$bindir,;t t
16712 s,@sbindir@,$sbindir,;t t
16713 s,@libexecdir@,$libexecdir,;t t
16714 s,@datadir@,$datadir,;t t
16715 s,@sysconfdir@,$sysconfdir,;t t
16716 s,@sharedstatedir@,$sharedstatedir,;t t
16717 s,@localstatedir@,$localstatedir,;t t
16718 s,@libdir@,$libdir,;t t
16719 s,@includedir@,$includedir,;t t
16720 s,@oldincludedir@,$oldincludedir,;t t
16721 s,@infodir@,$infodir,;t t
16722 s,@mandir@,$mandir,;t t
16723 s,@build_alias@,$build_alias,;t t
16724 s,@host_alias@,$host_alias,;t t
16725 s,@target_alias@,$target_alias,;t t
16726 s,@DEFS@,$DEFS,;t t
16727 s,@ECHO_C@,$ECHO_C,;t t
16728 s,@ECHO_N@,$ECHO_N,;t t
16729 s,@ECHO_T@,$ECHO_T,;t t
16730 s,@LIBS@,$LIBS,;t t
16731 s,@build@,$build,;t t
16732 s,@build_cpu@,$build_cpu,;t t
16733 s,@build_vendor@,$build_vendor,;t t
16734 s,@build_os@,$build_os,;t t
16735 s,@host@,$host,;t t
16736 s,@host_cpu@,$host_cpu,;t t
16737 s,@host_vendor@,$host_vendor,;t t
16738 s,@host_os@,$host_os,;t t
16739 s,@target@,$target,;t t
16740 s,@target_cpu@,$target_cpu,;t t
16741 s,@target_vendor@,$target_vendor,;t t
16742 s,@target_os@,$target_os,;t t
16743 s,@target_noncanonical@,$target_noncanonical,;t t
16744 s,@build_subdir@,$build_subdir,;t t
16745 s,@host_subdir@,$host_subdir,;t t
16746 s,@target_subdir@,$target_subdir,;t t
16747 s,@GENINSRC@,$GENINSRC,;t t
16748 s,@CC@,$CC,;t t
16749 s,@CFLAGS@,$CFLAGS,;t t
16750 s,@LDFLAGS@,$LDFLAGS,;t t
16751 s,@CPPFLAGS@,$CPPFLAGS,;t t
16752 s,@ac_ct_CC@,$ac_ct_CC,;t t
16753 s,@EXEEXT@,$EXEEXT,;t t
16754 s,@OBJEXT@,$OBJEXT,;t t
16755 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16756 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16757 s,@CPP@,$CPP,;t t
16758 s,@EGREP@,$EGREP,;t t
16759 s,@strict1_warn@,$strict1_warn,;t t
16760 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16761 s,@warn_cflags@,$warn_cflags,;t t
16762 s,@WERROR@,$WERROR,;t t
16763 s,@nocommon_flag@,$nocommon_flag,;t t
16764 s,@TREEBROWSER@,$TREEBROWSER,;t t
16765 s,@valgrind_path@,$valgrind_path,;t t
16766 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16767 s,@valgrind_command@,$valgrind_command,;t t
16768 s,@coverage_flags@,$coverage_flags,;t t
16769 s,@enable_multilib@,$enable_multilib,;t t
16770 s,@enable_decimal_float@,$enable_decimal_float,;t t
16771 s,@enable_shared@,$enable_shared,;t t
16772 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16773 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16774 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16775 s,@onestep@,$onestep,;t t
16776 s,@SET_MAKE@,$SET_MAKE,;t t
16777 s,@AWK@,$AWK,;t t
16778 s,@LN_S@,$LN_S,;t t
16779 s,@LN@,$LN,;t t
16780 s,@RANLIB@,$RANLIB,;t t
16781 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16782 s,@ranlib_flags@,$ranlib_flags,;t t
16783 s,@INSTALL@,$INSTALL,;t t
16784 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16785 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16786 s,@make_compare_target@,$make_compare_target,;t t
16787 s,@have_mktemp_command@,$have_mktemp_command,;t t
16788 s,@MAKEINFO@,$MAKEINFO,;t t
16789 s,@BUILD_INFO@,$BUILD_INFO,;t t
16790 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16791 s,@FLEX@,$FLEX,;t t
16792 s,@BISON@,$BISON,;t t
16793 s,@NM@,$NM,;t t
16794 s,@AR@,$AR,;t t
16795 s,@stage1_cflags@,$stage1_cflags,;t t
16796 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16797 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16798 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16799 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16800 s,@LIBICONV@,$LIBICONV,;t t
16801 s,@LTLIBICONV@,$LTLIBICONV,;t t
16802 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16803 s,@manext@,$manext,;t t
16804 s,@objext@,$objext,;t t
16805 s,@gthread_flags@,$gthread_flags,;t t
16806 s,@extra_modes_file@,$extra_modes_file,;t t
16807 s,@extra_opt_files@,$extra_opt_files,;t t
16808 s,@USE_NLS@,$USE_NLS,;t t
16809 s,@LIBINTL@,$LIBINTL,;t t
16810 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16811 s,@INCINTL@,$INCINTL,;t t
16812 s,@XGETTEXT@,$XGETTEXT,;t t
16813 s,@GMSGFMT@,$GMSGFMT,;t t
16814 s,@POSUB@,$POSUB,;t t
16815 s,@CATALOGS@,$CATALOGS,;t t
16816 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16817 s,@CROSS@,$CROSS,;t t
16818 s,@ALL@,$ALL,;t t
16819 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16820 s,@inhibit_libc@,$inhibit_libc,;t t
16821 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16822 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16823 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16824 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16825 s,@collect2@,$collect2,;t t
16826 s,@gcc_cv_as@,$gcc_cv_as,;t t
16827 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16828 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16829 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16830 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16831 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16832 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16833 s,@libgcc_visibility@,$libgcc_visibility,;t t
16834 s,@GGC@,$GGC,;t t
16835 s,@zlibdir@,$zlibdir,;t t
16836 s,@zlibinc@,$zlibinc,;t t
16837 s,@MAINT@,$MAINT,;t t
16838 s,@gcc_tooldir@,$gcc_tooldir,;t t
16839 s,@dollar@,$dollar,;t t
16840 s,@slibdir@,$slibdir,;t t
16841 s,@objdir@,$objdir,;t t
16842 s,@subdirs@,$subdirs,;t t
16843 s,@srcdir@,$srcdir,;t t
16844 s,@all_boot_languages@,$all_boot_languages,;t t
16845 s,@all_compilers@,$all_compilers,;t t
16846 s,@all_gtfiles@,$all_gtfiles,;t t
16847 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16848 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16849 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16850 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16851 s,@all_languages@,$all_languages,;t t
16852 s,@all_selected_languages@,$all_selected_languages,;t t
16853 s,@all_stagestuff@,$all_stagestuff,;t t
16854 s,@build_exeext@,$build_exeext,;t t
16855 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16856 s,@build_xm_file_list@,$build_xm_file_list,;t t
16857 s,@build_xm_include_list@,$build_xm_include_list,;t t
16858 s,@build_xm_defines@,$build_xm_defines,;t t
16859 s,@check_languages@,$check_languages,;t t
16860 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16861 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16862 s,@cpp_install_dir@,$cpp_install_dir,;t t
16863 s,@xmake_file@,$xmake_file,;t t
16864 s,@tmake_file@,$tmake_file,;t t
16865 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16866 s,@extra_headers_list@,$extra_headers_list,;t t
16867 s,@extra_objs@,$extra_objs,;t t
16868 s,@extra_parts@,$extra_parts,;t t
16869 s,@extra_passes@,$extra_passes,;t t
16870 s,@extra_programs@,$extra_programs,;t t
16871 s,@float_h_file@,$float_h_file,;t t
16872 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16873 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16874 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16875 s,@host_exeext@,$host_exeext,;t t
16876 s,@host_xm_file_list@,$host_xm_file_list,;t t
16877 s,@host_xm_include_list@,$host_xm_include_list,;t t
16878 s,@host_xm_defines@,$host_xm_defines,;t t
16879 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16880 s,@install@,$install,;t t
16881 s,@lang_opt_files@,$lang_opt_files,;t t
16882 s,@lang_specs_files@,$lang_specs_files,;t t
16883 s,@lang_tree_files@,$lang_tree_files,;t t
16884 s,@local_prefix@,$local_prefix,;t t
16885 s,@md_file@,$md_file,;t t
16886 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16887 s,@out_file@,$out_file,;t t
16888 s,@out_object_file@,$out_object_file,;t t
16889 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16890 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16891 s,@thread_file@,$thread_file,;t t
16892 s,@tm_file_list@,$tm_file_list,;t t
16893 s,@tm_include_list@,$tm_include_list,;t t
16894 s,@tm_defines@,$tm_defines,;t t
16895 s,@tm_p_file_list@,$tm_p_file_list,;t t
16896 s,@tm_p_include_list@,$tm_p_include_list,;t t
16897 s,@xm_file_list@,$xm_file_list,;t t
16898 s,@xm_include_list@,$xm_include_list,;t t
16899 s,@xm_defines@,$xm_defines,;t t
16900 s,@c_target_objs@,$c_target_objs,;t t
16901 s,@cxx_target_objs@,$cxx_target_objs,;t t
16902 s,@target_cpu_default@,$target_cpu_default,;t t
16903 s,@GMPLIBS@,$GMPLIBS,;t t
16904 s,@GMPINC@,$GMPINC,;t t
16905 s,@LIBOBJS@,$LIBOBJS,;t t
16906 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16907 /@language_hooks@/r $language_hooks
16908 s,@language_hooks@,,;t t
16909 CEOF
16910
16911 _ACEOF
16912
16913 cat >>$CONFIG_STATUS <<\_ACEOF
16914 # Split the substitutions into bite-sized pieces for seds with
16915 # small command number limits, like on Digital OSF/1 and HP-UX.
16916 ac_max_sed_lines=48
16917 ac_sed_frag=1 # Number of current file.
16918 ac_beg=1 # First line for current file.
16919 ac_end=$ac_max_sed_lines # Line after last line for current file.
16920 ac_more_lines=:
16921 ac_sed_cmds=
16922 while $ac_more_lines; do
16923 if test $ac_beg -gt 1; then
16924 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16925 else
16926 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16927 fi
16928 if test ! -s $tmp/subs.frag; then
16929 ac_more_lines=false
16930 else
16931 # The purpose of the label and of the branching condition is to
16932 # speed up the sed processing (if there are no `@' at all, there
16933 # is no need to browse any of the substitutions).
16934 # These are the two extra sed commands mentioned above.
16935 (echo ':t
16936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16937 if test -z "$ac_sed_cmds"; then
16938 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16939 else
16940 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16941 fi
16942 ac_sed_frag=`expr $ac_sed_frag + 1`
16943 ac_beg=$ac_end
16944 ac_end=`expr $ac_end + $ac_max_sed_lines`
16945 fi
16946 done
16947 if test -z "$ac_sed_cmds"; then
16948 ac_sed_cmds=cat
16949 fi
16950 fi # test -n "$CONFIG_FILES"
16951
16952 _ACEOF
16953 cat >>$CONFIG_STATUS <<\_ACEOF
16954 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16956 case $ac_file in
16957 - | *:- | *:-:* ) # input from stdin
16958 cat >$tmp/stdin
16959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16963 * ) ac_file_in=$ac_file.in ;;
16964 esac
16965
16966 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16967 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$ac_file" : 'X\(//\)[^/]' \| \
16970 X"$ac_file" : 'X\(//\)$' \| \
16971 X"$ac_file" : 'X\(/\)' \| \
16972 . : '\(.\)' 2>/dev/null ||
16973 echo X"$ac_file" |
16974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16976 /^X\(\/\/\)$/{ s//\1/; q; }
16977 /^X\(\/\).*/{ s//\1/; q; }
16978 s/.*/./; q'`
16979 { if $as_mkdir_p; then
16980 mkdir -p "$ac_dir"
16981 else
16982 as_dir="$ac_dir"
16983 as_dirs=
16984 while test ! -d "$as_dir"; do
16985 as_dirs="$as_dir $as_dirs"
16986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16988 X"$as_dir" : 'X\(//\)[^/]' \| \
16989 X"$as_dir" : 'X\(//\)$' \| \
16990 X"$as_dir" : 'X\(/\)' \| \
16991 . : '\(.\)' 2>/dev/null ||
16992 echo X"$as_dir" |
16993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16995 /^X\(\/\/\)$/{ s//\1/; q; }
16996 /^X\(\/\).*/{ s//\1/; q; }
16997 s/.*/./; q'`
16998 done
16999 test ! -n "$as_dirs" || mkdir $as_dirs
17000 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17002 { (exit 1); exit 1; }; }; }
17003
17004 ac_builddir=.
17005
17006 if test "$ac_dir" != .; then
17007 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17008 # A "../" for each directory in $ac_dir_suffix.
17009 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17010 else
17011 ac_dir_suffix= ac_top_builddir=
17012 fi
17013
17014 case $srcdir in
17015 .) # No --srcdir option. We are building in place.
17016 ac_srcdir=.
17017 if test -z "$ac_top_builddir"; then
17018 ac_top_srcdir=.
17019 else
17020 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17021 fi ;;
17022 [\\/]* | ?:[\\/]* ) # Absolute path.
17023 ac_srcdir=$srcdir$ac_dir_suffix;
17024 ac_top_srcdir=$srcdir ;;
17025 *) # Relative path.
17026 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17027 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17028 esac
17029
17030 # Do not use `cd foo && pwd` to compute absolute paths, because
17031 # the directories may not exist.
17032 case `pwd` in
17033 .) ac_abs_builddir="$ac_dir";;
17034 *)
17035 case "$ac_dir" in
17036 .) ac_abs_builddir=`pwd`;;
17037 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17038 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17039 esac;;
17040 esac
17041 case $ac_abs_builddir in
17042 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17043 *)
17044 case ${ac_top_builddir}. in
17045 .) ac_abs_top_builddir=$ac_abs_builddir;;
17046 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17047 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17048 esac;;
17049 esac
17050 case $ac_abs_builddir in
17051 .) ac_abs_srcdir=$ac_srcdir;;
17052 *)
17053 case $ac_srcdir in
17054 .) ac_abs_srcdir=$ac_abs_builddir;;
17055 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17056 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17057 esac;;
17058 esac
17059 case $ac_abs_builddir in
17060 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17061 *)
17062 case $ac_top_srcdir in
17063 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17064 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17065 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17066 esac;;
17067 esac
17068
17069
17070
17071 if test x"$ac_file" != x-; then
17072 { echo "$as_me:$LINENO: creating $ac_file" >&5
17073 echo "$as_me: creating $ac_file" >&6;}
17074 rm -f "$ac_file"
17075 fi
17076 # Let's still pretend it is `configure' which instantiates (i.e., don't
17077 # use $as_me), people would be surprised to read:
17078 # /* config.h. Generated by config.status. */
17079 if test x"$ac_file" = x-; then
17080 configure_input=
17081 else
17082 configure_input="$ac_file. "
17083 fi
17084 configure_input=$configure_input"Generated from `echo $ac_file_in |
17085 sed 's,.*/,,'` by configure."
17086
17087 # First look for the input files in the build tree, otherwise in the
17088 # src tree.
17089 ac_file_inputs=`IFS=:
17090 for f in $ac_file_in; do
17091 case $f in
17092 -) echo $tmp/stdin ;;
17093 [\\/$]*)
17094 # Absolute (can't be DOS-style, as IFS=:)
17095 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17096 echo "$as_me: error: cannot find input file: $f" >&2;}
17097 { (exit 1); exit 1; }; }
17098 echo "$f";;
17099 *) # Relative
17100 if test -f "$f"; then
17101 # Build tree
17102 echo "$f"
17103 elif test -f "$srcdir/$f"; then
17104 # Source tree
17105 echo "$srcdir/$f"
17106 else
17107 # /dev/null tree
17108 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17109 echo "$as_me: error: cannot find input file: $f" >&2;}
17110 { (exit 1); exit 1; }; }
17111 fi;;
17112 esac
17113 done` || { (exit 1); exit 1; }
17114 _ACEOF
17115 cat >>$CONFIG_STATUS <<_ACEOF
17116 sed "$ac_vpsub
17117 $extrasub
17118 _ACEOF
17119 cat >>$CONFIG_STATUS <<\_ACEOF
17120 :t
17121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17122 s,@configure_input@,$configure_input,;t t
17123 s,@srcdir@,$ac_srcdir,;t t
17124 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17125 s,@top_srcdir@,$ac_top_srcdir,;t t
17126 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17127 s,@builddir@,$ac_builddir,;t t
17128 s,@abs_builddir@,$ac_abs_builddir,;t t
17129 s,@top_builddir@,$ac_top_builddir,;t t
17130 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17131 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17132 rm -f $tmp/stdin
17133 if test x"$ac_file" != x-; then
17134 mv $tmp/out $ac_file
17135 else
17136 cat $tmp/out
17137 rm -f $tmp/out
17138 fi
17139
17140 done
17141 _ACEOF
17142 cat >>$CONFIG_STATUS <<\_ACEOF
17143
17144 #
17145 # CONFIG_HEADER section.
17146 #
17147
17148 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17149 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17150 #
17151 # ac_d sets the value in "#define NAME VALUE" lines.
17152 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17153 ac_dB='[ ].*$,\1#\2'
17154 ac_dC=' '
17155 ac_dD=',;t'
17156 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17157 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17158 ac_uB='$,\1#\2define\3'
17159 ac_uC=' '
17160 ac_uD=',;t'
17161
17162 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17164 case $ac_file in
17165 - | *:- | *:-:* ) # input from stdin
17166 cat >$tmp/stdin
17167 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17169 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17170 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17171 * ) ac_file_in=$ac_file.in ;;
17172 esac
17173
17174 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17175 echo "$as_me: creating $ac_file" >&6;}
17176
17177 # First look for the input files in the build tree, otherwise in the
17178 # src tree.
17179 ac_file_inputs=`IFS=:
17180 for f in $ac_file_in; do
17181 case $f in
17182 -) echo $tmp/stdin ;;
17183 [\\/$]*)
17184 # Absolute (can't be DOS-style, as IFS=:)
17185 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17186 echo "$as_me: error: cannot find input file: $f" >&2;}
17187 { (exit 1); exit 1; }; }
17188 # Do quote $f, to prevent DOS paths from being IFS'd.
17189 echo "$f";;
17190 *) # Relative
17191 if test -f "$f"; then
17192 # Build tree
17193 echo "$f"
17194 elif test -f "$srcdir/$f"; then
17195 # Source tree
17196 echo "$srcdir/$f"
17197 else
17198 # /dev/null tree
17199 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17200 echo "$as_me: error: cannot find input file: $f" >&2;}
17201 { (exit 1); exit 1; }; }
17202 fi;;
17203 esac
17204 done` || { (exit 1); exit 1; }
17205 # Remove the trailing spaces.
17206 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17207
17208 _ACEOF
17209
17210 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17211 # `conftest.undefs', that substitutes the proper values into
17212 # config.h.in to produce config.h. The first handles `#define'
17213 # templates, and the second `#undef' templates.
17214 # And first: Protect against being on the right side of a sed subst in
17215 # config.status. Protect against being in an unquoted here document
17216 # in config.status.
17217 rm -f conftest.defines conftest.undefs
17218 # Using a here document instead of a string reduces the quoting nightmare.
17219 # Putting comments in sed scripts is not portable.
17220 #
17221 # `end' is used to avoid that the second main sed command (meant for
17222 # 0-ary CPP macros) applies to n-ary macro definitions.
17223 # See the Autoconf documentation for `clear'.
17224 cat >confdef2sed.sed <<\_ACEOF
17225 s/[\\&,]/\\&/g
17226 s,[\\$`],\\&,g
17227 t clear
17228 : clear
17229 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17230 t end
17231 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17232 : end
17233 _ACEOF
17234 # If some macros were called several times there might be several times
17235 # the same #defines, which is useless. Nevertheless, we may not want to
17236 # sort them, since we want the *last* AC-DEFINE to be honored.
17237 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17238 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17239 rm -f confdef2sed.sed
17240
17241 # This sed command replaces #undef with comments. This is necessary, for
17242 # example, in the case of _POSIX_SOURCE, which is predefined and required
17243 # on some systems where configure will not decide to define it.
17244 cat >>conftest.undefs <<\_ACEOF
17245 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17246 _ACEOF
17247
17248 # Break up conftest.defines because some shells have a limit on the size
17249 # of here documents, and old seds have small limits too (100 cmds).
17250 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17251 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17252 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17253 echo ' :' >>$CONFIG_STATUS
17254 rm -f conftest.tail
17255 while grep . conftest.defines >/dev/null
17256 do
17257 # Write a limited-size here document to $tmp/defines.sed.
17258 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17259 # Speed up: don't consider the non `#define' lines.
17260 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17261 # Work around the forget-to-reset-the-flag bug.
17262 echo 't clr' >>$CONFIG_STATUS
17263 echo ': clr' >>$CONFIG_STATUS
17264 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17265 echo 'CEOF
17266 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17267 rm -f $tmp/in
17268 mv $tmp/out $tmp/in
17269 ' >>$CONFIG_STATUS
17270 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17271 rm -f conftest.defines
17272 mv conftest.tail conftest.defines
17273 done
17274 rm -f conftest.defines
17275 echo ' fi # grep' >>$CONFIG_STATUS
17276 echo >>$CONFIG_STATUS
17277
17278 # Break up conftest.undefs because some shells have a limit on the size
17279 # of here documents, and old seds have small limits too (100 cmds).
17280 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17281 rm -f conftest.tail
17282 while grep . conftest.undefs >/dev/null
17283 do
17284 # Write a limited-size here document to $tmp/undefs.sed.
17285 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17286 # Speed up: don't consider the non `#undef'
17287 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17288 # Work around the forget-to-reset-the-flag bug.
17289 echo 't clr' >>$CONFIG_STATUS
17290 echo ': clr' >>$CONFIG_STATUS
17291 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17292 echo 'CEOF
17293 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17294 rm -f $tmp/in
17295 mv $tmp/out $tmp/in
17296 ' >>$CONFIG_STATUS
17297 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17298 rm -f conftest.undefs
17299 mv conftest.tail conftest.undefs
17300 done
17301 rm -f conftest.undefs
17302
17303 cat >>$CONFIG_STATUS <<\_ACEOF
17304 # Let's still pretend it is `configure' which instantiates (i.e., don't
17305 # use $as_me), people would be surprised to read:
17306 # /* config.h. Generated by config.status. */
17307 if test x"$ac_file" = x-; then
17308 echo "/* Generated by configure. */" >$tmp/config.h
17309 else
17310 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17311 fi
17312 cat $tmp/in >>$tmp/config.h
17313 rm -f $tmp/in
17314 if test x"$ac_file" != x-; then
17315 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17316 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17317 echo "$as_me: $ac_file is unchanged" >&6;}
17318 else
17319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321 X"$ac_file" : 'X\(//\)[^/]' \| \
17322 X"$ac_file" : 'X\(//\)$' \| \
17323 X"$ac_file" : 'X\(/\)' \| \
17324 . : '\(.\)' 2>/dev/null ||
17325 echo X"$ac_file" |
17326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17328 /^X\(\/\/\)$/{ s//\1/; q; }
17329 /^X\(\/\).*/{ s//\1/; q; }
17330 s/.*/./; q'`
17331 { if $as_mkdir_p; then
17332 mkdir -p "$ac_dir"
17333 else
17334 as_dir="$ac_dir"
17335 as_dirs=
17336 while test ! -d "$as_dir"; do
17337 as_dirs="$as_dir $as_dirs"
17338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17340 X"$as_dir" : 'X\(//\)[^/]' \| \
17341 X"$as_dir" : 'X\(//\)$' \| \
17342 X"$as_dir" : 'X\(/\)' \| \
17343 . : '\(.\)' 2>/dev/null ||
17344 echo X"$as_dir" |
17345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17347 /^X\(\/\/\)$/{ s//\1/; q; }
17348 /^X\(\/\).*/{ s//\1/; q; }
17349 s/.*/./; q'`
17350 done
17351 test ! -n "$as_dirs" || mkdir $as_dirs
17352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17354 { (exit 1); exit 1; }; }; }
17355
17356 rm -f $ac_file
17357 mv $tmp/config.h $ac_file
17358 fi
17359 else
17360 cat $tmp/config.h
17361 rm -f $tmp/config.h
17362 fi
17363 done
17364 _ACEOF
17365 cat >>$CONFIG_STATUS <<\_ACEOF
17366
17367 #
17368 # CONFIG_COMMANDS section.
17369 #
17370 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17371 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17372 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17373 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17374 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17375 X"$ac_dest" : 'X\(//\)[^/]' \| \
17376 X"$ac_dest" : 'X\(//\)$' \| \
17377 X"$ac_dest" : 'X\(/\)' \| \
17378 . : '\(.\)' 2>/dev/null ||
17379 echo X"$ac_dest" |
17380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17382 /^X\(\/\/\)$/{ s//\1/; q; }
17383 /^X\(\/\).*/{ s//\1/; q; }
17384 s/.*/./; q'`
17385 { if $as_mkdir_p; then
17386 mkdir -p "$ac_dir"
17387 else
17388 as_dir="$ac_dir"
17389 as_dirs=
17390 while test ! -d "$as_dir"; do
17391 as_dirs="$as_dir $as_dirs"
17392 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17394 X"$as_dir" : 'X\(//\)[^/]' \| \
17395 X"$as_dir" : 'X\(//\)$' \| \
17396 X"$as_dir" : 'X\(/\)' \| \
17397 . : '\(.\)' 2>/dev/null ||
17398 echo X"$as_dir" |
17399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17401 /^X\(\/\/\)$/{ s//\1/; q; }
17402 /^X\(\/\).*/{ s//\1/; q; }
17403 s/.*/./; q'`
17404 done
17405 test ! -n "$as_dirs" || mkdir $as_dirs
17406 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17407 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17408 { (exit 1); exit 1; }; }; }
17409
17410 ac_builddir=.
17411
17412 if test "$ac_dir" != .; then
17413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17414 # A "../" for each directory in $ac_dir_suffix.
17415 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17416 else
17417 ac_dir_suffix= ac_top_builddir=
17418 fi
17419
17420 case $srcdir in
17421 .) # No --srcdir option. We are building in place.
17422 ac_srcdir=.
17423 if test -z "$ac_top_builddir"; then
17424 ac_top_srcdir=.
17425 else
17426 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17427 fi ;;
17428 [\\/]* | ?:[\\/]* ) # Absolute path.
17429 ac_srcdir=$srcdir$ac_dir_suffix;
17430 ac_top_srcdir=$srcdir ;;
17431 *) # Relative path.
17432 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17433 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17434 esac
17435
17436 # Do not use `cd foo && pwd` to compute absolute paths, because
17437 # the directories may not exist.
17438 case `pwd` in
17439 .) ac_abs_builddir="$ac_dir";;
17440 *)
17441 case "$ac_dir" in
17442 .) ac_abs_builddir=`pwd`;;
17443 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17444 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17445 esac;;
17446 esac
17447 case $ac_abs_builddir in
17448 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17449 *)
17450 case ${ac_top_builddir}. in
17451 .) ac_abs_top_builddir=$ac_abs_builddir;;
17452 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17453 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17454 esac;;
17455 esac
17456 case $ac_abs_builddir in
17457 .) ac_abs_srcdir=$ac_srcdir;;
17458 *)
17459 case $ac_srcdir in
17460 .) ac_abs_srcdir=$ac_abs_builddir;;
17461 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17462 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17463 esac;;
17464 esac
17465 case $ac_abs_builddir in
17466 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17467 *)
17468 case $ac_top_srcdir in
17469 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17470 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17471 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17472 esac;;
17473 esac
17474
17475
17476 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17477 echo "$as_me: executing $ac_dest commands" >&6;}
17478 case $ac_dest in
17479 default )
17480 case ${CONFIG_HEADERS} in
17481 *auto-host.h:config.in*)
17482 echo > cstamp-h ;;
17483 esac
17484 # Make sure all the subdirs exist.
17485 for d in $subdirs doc build
17486 do
17487 test -d $d || mkdir $d
17488 done
17489 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17490 # bootstrapping and the installation procedure can still use
17491 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17492 # FLAGS_TO_PASS has been modified to solve the problem there.
17493 # This is virtually a duplicate of what happens in configure.lang; we do
17494 # an extra check to make sure this only happens if ln -s can be used.
17495 case "$LN_S" in
17496 *-s*)
17497 for d in ${subdirs} ; do
17498 STARTDIR=`${PWDCMD-pwd}`
17499 cd $d
17500 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17501 do
17502 rm -f $t
17503 $LN_S ../$t $t 2>/dev/null
17504 done
17505 cd $STARTDIR
17506 done
17507 ;;
17508 esac
17509 ;;
17510 esac
17511 done
17512 _ACEOF
17513
17514 cat >>$CONFIG_STATUS <<\_ACEOF
17515
17516 { (exit 0); exit 0; }
17517 _ACEOF
17518 chmod +x $CONFIG_STATUS
17519 ac_clean_files=$ac_clean_files_save
17520
17521
17522 # configure is writing to config.log, and then calls config.status.
17523 # config.status does its own redirection, appending to config.log.
17524 # Unfortunately, on DOS this fails, as config.log is still kept open
17525 # by configure, so config.status won't be able to write to it; its
17526 # output is simply discarded. So we exec the FD to /dev/null,
17527 # effectively closing config.log, so it can be properly (re)opened and
17528 # appended to by config.status. When coming back to configure, we
17529 # need to make the FD available again.
17530 if test "$no_create" != yes; then
17531 ac_cs_success=:
17532 ac_config_status_args=
17533 test "$silent" = yes &&
17534 ac_config_status_args="$ac_config_status_args --quiet"
17535 exec 5>/dev/null
17536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17537 exec 5>>config.log
17538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17539 # would make configure fail if this is the last instruction.
17540 $ac_cs_success || { (exit 1); exit 1; }
17541 fi
17542