diagnostic.c (diagnostic_report_diagnostic): Do not warn about loaded plugins for...
[official-gcc.git] / gcc / configure
blobdbe7426fab1c60872ba17af1515593d0c2f09c81
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$lt_ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
293 done
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
317 done
318 IFS="$lt_save_ifs"
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
366 prev="$cmd"
367 done
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398 exec 6>&1
401 # Initializations.
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
423 ac_unique_file="tree.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 # include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 # include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 # include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_libsubdir build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
931 ac_env_PPLLIBS_set=${PPLLIBS+set}
932 ac_env_PPLLIBS_value=$PPLLIBS
933 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
934 ac_cv_env_PPLLIBS_value=$PPLLIBS
935 ac_env_PPLINC_set=${PPLINC+set}
936 ac_env_PPLINC_value=$PPLINC
937 ac_cv_env_PPLINC_set=${PPLINC+set}
938 ac_cv_env_PPLINC_value=$PPLINC
939 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
940 ac_env_CLOOGLIBS_value=$CLOOGLIBS
941 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
942 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
943 ac_env_CLOOGINC_set=${CLOOGINC+set}
944 ac_env_CLOOGINC_value=$CLOOGINC
945 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
946 ac_cv_env_CLOOGINC_value=$CLOOGINC
949 # Report the --help message.
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
957 Usage: $0 [OPTION]... [VAR=VALUE]...
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
962 Defaults for the options are specified in brackets.
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
975 _ACEOF
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
989 For better control, use the options below.
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1006 cat <<\_ACEOF
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 --target=TARGET configure for building compilers for TARGET [HOST]
1017 _ACEOF
1020 if test -n "$ac_init_help"; then
1022 cat <<\_ACEOF
1024 Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027 --enable-generated-files-in-srcdir
1028 put copies of generated files in source dir
1029 intended for creating source tarballs for users
1030 without texinfo bison or flex.
1031 --enable-werror-always enable -Werror despite compiler version
1032 --enable-checking=LIST
1033 enable expensive run-time checks. With LIST,
1034 enable only specific categories of checks.
1035 Categories are: yes,no,all,none,release.
1036 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1037 rtlflag,rtl,runtime,tree,valgrind,types.
1038 --enable-coverage=LEVEL
1039 enable compiler's code coverage collection.
1040 Use to measure compiler performance and locate
1041 unused parts of the compiler. With LEVEL, specify
1042 optimization. Values are opt, noopt,
1043 default is noopt
1044 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1045 --enable-multilib enable library support for multiple ABIs
1046 --enable-__cxa_atexit enable __cxa_atexit for C++
1047 --enable-decimal-float={no,yes,bid,dpd}
1048 enable decimal float extension to C. Selecting 'bid'
1049 or 'dpd' choses which decimal floating point format
1050 to use
1051 --enable-fixed-point enable fixed-point arithmetic extension to C
1052 --enable-threads enable thread usage for target GCC
1053 --enable-threads=LIB use LIB thread package for target GCC
1054 --enable-tls enable or disable generation of tls code
1055 overriding the assembler check for tls support
1056 --enable-objc-gc enable the use of Boehm's garbage collector with
1057 the GNU Objective-C runtime
1058 --disable-shared don't provide a shared libgcc
1059 --enable-intermodule build the compiler in one step
1060 --enable-languages=LIST specify which front-ends to build
1061 --disable-rpath do not hardcode runtime library paths
1062 --enable-initfini-array use .init_array/.fini_array sections
1063 --enable-sjlj-exceptions
1064 arrange to use setjmp/longjmp exception handling
1065 --enable-secureplt enable -msecure-plt by default for PowerPC
1066 --enable-cld enable -mcld by default for 32bit x86
1067 --disable-win32-registry
1068 disable lookup of installation paths in the
1069 Registry on Windows hosts
1070 --enable-win32-registry enable registry lookup (default)
1071 --enable-win32-registry=KEY
1072 use KEY instead of GCC version as the last portion
1073 of the registry key
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1081 --enable-maintainer-mode
1082 enable make rules and dependencies not useful
1083 (and sometimes confusing) to the casual installer
1084 --enable-version-specific-runtime-libs
1085 specify that runtime libraries should be
1086 installed in a compiler-specific directory
1087 --enable-plugin enable plugin support
1089 Optional Packages:
1090 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1091 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1092 --with-build-libsubdir=DIR Directory where to find libraries for build system
1093 --with-local-prefix=DIR specifies directory to put local include
1094 --with-gxx-include-dir=DIR
1095 specifies directory to put g++ header files
1096 --with-cpp-install-dir=DIR
1097 install the user visible C preprocessor in DIR
1098 (relative to PREFIX) as well as PREFIX/bin
1099 --with-gnu-ld arrange to work with GNU ld.
1100 --with-ld arrange to use the specified ld (full pathname)
1101 --with-demangler-in-ld try to use demangler in GNU ld.
1102 --with-gnu-as arrange to work with GNU as
1103 --with-as arrange to use the specified as (full pathname)
1104 --with-stabs arrange to use stabs instead of host debug format
1105 --with-dwarf2 force the default debug format to be DWARF 2
1106 --with-build-sysroot=sysroot
1107 use sysroot as the system root during the build
1108 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1109 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1110 --with-bugurl=URL Direct users to URL to report a bug
1111 --with-gnu-ld assume the C compiler uses GNU ld default=no
1112 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1113 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1114 --with-system-libunwind use installed libunwind
1115 --with-pic try to use only PIC/non-PIC objects [default=use
1116 both]
1117 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1118 --with-long-double-128 Use 128-bit long double by default.
1119 --with-gc={page,zone} choose the garbage collection mechanism to use
1120 with the compiler
1121 --with-system-zlib use installed libz
1122 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1123 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1124 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1125 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1127 Some influential environment variables:
1128 CC C compiler command
1129 CFLAGS C compiler flags
1130 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1131 nonstandard directory <lib dir>
1132 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1133 headers in a nonstandard directory <include dir>
1134 CPP C preprocessor
1135 GMPLIBS How to link GMP
1136 GMPINC How to find GMP include files
1137 PPLLIBS How to link PPL
1138 PPLINC How to find PPL include files
1139 CLOOGLIBS How to link CLOOG
1140 CLOOGINC How to find CLOOG include files
1142 Use these variables to override the choices made by `configure' or to help
1143 it to find libraries and programs with nonstandard names/locations.
1145 _ACEOF
1148 if test "$ac_init_help" = "recursive"; then
1149 # If there are subdirs, report their specific --help.
1150 ac_popdir=`pwd`
1151 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1152 test -d $ac_dir || continue
1153 ac_builddir=.
1155 if test "$ac_dir" != .; then
1156 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1157 # A "../" for each directory in $ac_dir_suffix.
1158 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1159 else
1160 ac_dir_suffix= ac_top_builddir=
1163 case $srcdir in
1164 .) # No --srcdir option. We are building in place.
1165 ac_srcdir=.
1166 if test -z "$ac_top_builddir"; then
1167 ac_top_srcdir=.
1168 else
1169 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1170 fi ;;
1171 [\\/]* | ?:[\\/]* ) # Absolute path.
1172 ac_srcdir=$srcdir$ac_dir_suffix;
1173 ac_top_srcdir=$srcdir ;;
1174 *) # Relative path.
1175 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1176 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1177 esac
1179 # Do not use `cd foo && pwd` to compute absolute paths, because
1180 # the directories may not exist.
1181 case `pwd` in
1182 .) ac_abs_builddir="$ac_dir";;
1184 case "$ac_dir" in
1185 .) ac_abs_builddir=`pwd`;;
1186 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1187 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1188 esac;;
1189 esac
1190 case $ac_abs_builddir in
1191 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1193 case ${ac_top_builddir}. in
1194 .) ac_abs_top_builddir=$ac_abs_builddir;;
1195 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1196 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1197 esac;;
1198 esac
1199 case $ac_abs_builddir in
1200 .) ac_abs_srcdir=$ac_srcdir;;
1202 case $ac_srcdir in
1203 .) ac_abs_srcdir=$ac_abs_builddir;;
1204 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1205 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1206 esac;;
1207 esac
1208 case $ac_abs_builddir in
1209 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1211 case $ac_top_srcdir in
1212 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1213 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1214 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1215 esac;;
1216 esac
1218 cd $ac_dir
1219 # Check for guested configure; otherwise get Cygnus style configure.
1220 if test -f $ac_srcdir/configure.gnu; then
1221 echo
1222 $SHELL $ac_srcdir/configure.gnu --help=recursive
1223 elif test -f $ac_srcdir/configure; then
1224 echo
1225 $SHELL $ac_srcdir/configure --help=recursive
1226 elif test -f $ac_srcdir/configure.ac ||
1227 test -f $ac_srcdir/configure.in; then
1228 echo
1229 $ac_configure --help
1230 else
1231 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1233 cd $ac_popdir
1234 done
1237 test -n "$ac_init_help" && exit 0
1238 if $ac_init_version; then
1239 cat <<\_ACEOF
1241 Copyright (C) 2003 Free Software Foundation, Inc.
1242 This configure script is free software; the Free Software Foundation
1243 gives unlimited permission to copy, distribute and modify it.
1244 _ACEOF
1245 exit 0
1247 exec 5>config.log
1248 cat >&5 <<_ACEOF
1249 This file contains any messages produced by compilers while
1250 running configure, to aid debugging if configure makes a mistake.
1252 It was created by $as_me, which was
1253 generated by GNU Autoconf 2.59. Invocation command line was
1255 $ $0 $@
1257 _ACEOF
1259 cat <<_ASUNAME
1260 ## --------- ##
1261 ## Platform. ##
1262 ## --------- ##
1264 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1265 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1266 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1267 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1268 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1270 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1271 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1273 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1274 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1275 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1276 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1277 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1278 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1279 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1281 _ASUNAME
1283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for as_dir in $PATH
1286 IFS=$as_save_IFS
1287 test -z "$as_dir" && as_dir=.
1288 echo "PATH: $as_dir"
1289 done
1291 } >&5
1293 cat >&5 <<_ACEOF
1296 ## ----------- ##
1297 ## Core tests. ##
1298 ## ----------- ##
1300 _ACEOF
1303 # Keep a trace of the command line.
1304 # Strip out --no-create and --no-recursion so they do not pile up.
1305 # Strip out --silent because we don't want to record it for future runs.
1306 # Also quote any args containing shell meta-characters.
1307 # Make two passes to allow for proper duplicate-argument suppression.
1308 ac_configure_args=
1309 ac_configure_args0=
1310 ac_configure_args1=
1311 ac_sep=
1312 ac_must_keep_next=false
1313 for ac_pass in 1 2
1315 for ac_arg
1317 case $ac_arg in
1318 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1320 | -silent | --silent | --silen | --sile | --sil)
1321 continue ;;
1322 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1324 esac
1325 case $ac_pass in
1326 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1328 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1329 if test $ac_must_keep_next = true; then
1330 ac_must_keep_next=false # Got value, back to normal.
1331 else
1332 case $ac_arg in
1333 *=* | --config-cache | -C | -disable-* | --disable-* \
1334 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1335 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1336 | -with-* | --with-* | -without-* | --without-* | --x)
1337 case "$ac_configure_args0 " in
1338 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1339 esac
1341 -* ) ac_must_keep_next=true ;;
1342 esac
1344 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1345 # Get rid of the leading space.
1346 ac_sep=" "
1348 esac
1349 done
1350 done
1351 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1352 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1354 # When interrupted or exit'd, cleanup temporary files, and complete
1355 # config.log. We remove comments because anyway the quotes in there
1356 # would cause problems or look ugly.
1357 # WARNING: Be sure not to use single quotes in there, as some shells,
1358 # such as our DU 5.0 friend, will then `close' the trap.
1359 trap 'exit_status=$?
1360 # Save into config.log some information that might help in debugging.
1362 echo
1364 cat <<\_ASBOX
1365 ## ---------------- ##
1366 ## Cache variables. ##
1367 ## ---------------- ##
1368 _ASBOX
1369 echo
1370 # The following way of writing the cache mishandles newlines in values,
1372 (set) 2>&1 |
1373 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1374 *ac_space=\ *)
1375 sed -n \
1376 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380 sed -n \
1381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383 esac;
1385 echo
1387 cat <<\_ASBOX
1388 ## ----------------- ##
1389 ## Output variables. ##
1390 ## ----------------- ##
1391 _ASBOX
1392 echo
1393 for ac_var in $ac_subst_vars
1395 eval ac_val=$`echo $ac_var`
1396 echo "$ac_var='"'"'$ac_val'"'"'"
1397 done | sort
1398 echo
1400 if test -n "$ac_subst_files"; then
1401 cat <<\_ASBOX
1402 ## ------------- ##
1403 ## Output files. ##
1404 ## ------------- ##
1405 _ASBOX
1406 echo
1407 for ac_var in $ac_subst_files
1409 eval ac_val=$`echo $ac_var`
1410 echo "$ac_var='"'"'$ac_val'"'"'"
1411 done | sort
1412 echo
1415 if test -s confdefs.h; then
1416 cat <<\_ASBOX
1417 ## ----------- ##
1418 ## confdefs.h. ##
1419 ## ----------- ##
1420 _ASBOX
1421 echo
1422 sed "/^$/d" confdefs.h | sort
1423 echo
1425 test "$ac_signal" != 0 &&
1426 echo "$as_me: caught signal $ac_signal"
1427 echo "$as_me: exit $exit_status"
1428 } >&5
1429 rm -f core *.core &&
1430 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1431 exit $exit_status
1433 for ac_signal in 1 2 13 15; do
1434 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1435 done
1436 ac_signal=0
1438 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1439 rm -rf conftest* confdefs.h
1440 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1441 echo >confdefs.h
1443 # Predefined preprocessor variables.
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_NAME "$PACKAGE_NAME"
1447 _ACEOF
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1452 _ACEOF
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1457 _ACEOF
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_STRING "$PACKAGE_STRING"
1462 _ACEOF
1465 cat >>confdefs.h <<_ACEOF
1466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1467 _ACEOF
1470 # Let the site file select an alternate cache file if it wants to.
1471 # Prefer explicitly selected file to automatically selected ones.
1472 if test -z "$CONFIG_SITE"; then
1473 if test "x$prefix" != xNONE; then
1474 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1475 else
1476 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479 for ac_site_file in $CONFIG_SITE; do
1480 if test -r "$ac_site_file"; then
1481 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1482 echo "$as_me: loading site script $ac_site_file" >&6;}
1483 sed 's/^/| /' "$ac_site_file" >&5
1484 . "$ac_site_file"
1486 done
1488 if test -r "$cache_file"; then
1489 # Some versions of bash will fail to source /dev/null (special
1490 # files actually), so we avoid doing that.
1491 if test -f "$cache_file"; then
1492 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1493 echo "$as_me: loading cache $cache_file" >&6;}
1494 case $cache_file in
1495 [\\/]* | ?:[\\/]* ) . $cache_file;;
1496 *) . ./$cache_file;;
1497 esac
1499 else
1500 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1501 echo "$as_me: creating cache $cache_file" >&6;}
1502 >$cache_file
1505 # Check that the precious variables saved in the cache have kept the same
1506 # value.
1507 ac_cache_corrupted=false
1508 for ac_var in `(set) 2>&1 |
1509 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1510 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1511 eval ac_new_set=\$ac_env_${ac_var}_set
1512 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1513 eval ac_new_val="\$ac_env_${ac_var}_value"
1514 case $ac_old_set,$ac_new_set in
1515 set,)
1516 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1517 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1518 ac_cache_corrupted=: ;;
1519 ,set)
1520 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1521 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1522 ac_cache_corrupted=: ;;
1523 ,);;
1525 if test "x$ac_old_val" != "x$ac_new_val"; then
1526 # differences in whitespace do not lead to failure.
1527 ac_old_val_w=`echo x $ac_old_val`
1528 ac_new_val_w=`echo x $ac_new_val`
1529 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1530 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1531 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1532 ac_cache_corrupted=:
1533 else
1534 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1535 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1536 eval $ac_var=\$ac_old_val
1538 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1539 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1540 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1541 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1542 fi;;
1543 esac
1544 # Pass precious variables to config.status.
1545 if test "$ac_new_set" = set; then
1546 case $ac_new_val in
1547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1548 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1549 *) ac_arg=$ac_var=$ac_new_val ;;
1550 esac
1551 case " $ac_configure_args " in
1552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1553 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1554 esac
1556 done
1557 if $ac_cache_corrupted; then
1558 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1559 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1560 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1561 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1562 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1563 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1564 { (exit 1); exit 1; }; }
1567 ac_ext=c
1568 ac_cpp='$CPP $CPPFLAGS'
1569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1595 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1598 gcc_version=`cat $srcdir/BASE-VER`
1600 # Determine the host, build, and target systems
1601 ac_aux_dir=
1602 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1603 if test -f $ac_dir/install-sh; then
1604 ac_aux_dir=$ac_dir
1605 ac_install_sh="$ac_aux_dir/install-sh -c"
1606 break
1607 elif test -f $ac_dir/install.sh; then
1608 ac_aux_dir=$ac_dir
1609 ac_install_sh="$ac_aux_dir/install.sh -c"
1610 break
1611 elif test -f $ac_dir/shtool; then
1612 ac_aux_dir=$ac_dir
1613 ac_install_sh="$ac_aux_dir/shtool install -c"
1614 break
1616 done
1617 if test -z "$ac_aux_dir"; then
1618 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1619 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1620 { (exit 1); exit 1; }; }
1622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1624 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1626 # Make sure we can run config.sub.
1627 $ac_config_sub sun4 >/dev/null 2>&1 ||
1628 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: checking build system type" >&5
1633 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634 if test "${ac_cv_build+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 ac_cv_build_alias=$build_alias
1638 test -z "$ac_cv_build_alias" &&
1639 ac_cv_build_alias=`$ac_config_guess`
1640 test -z "$ac_cv_build_alias" &&
1641 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643 { (exit 1); exit 1; }; }
1644 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1650 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651 echo "${ECHO_T}$ac_cv_build" >&6
1652 build=$ac_cv_build
1653 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1658 echo "$as_me:$LINENO: checking host system type" >&5
1659 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660 if test "${ac_cv_host+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 ac_cv_host_alias=$host_alias
1664 test -z "$ac_cv_host_alias" &&
1665 ac_cv_host_alias=$ac_cv_build_alias
1666 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669 { (exit 1); exit 1; }; }
1672 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673 echo "${ECHO_T}$ac_cv_host" >&6
1674 host=$ac_cv_host
1675 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1680 echo "$as_me:$LINENO: checking target system type" >&5
1681 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682 if test "${ac_cv_target+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 ac_cv_target_alias=$target_alias
1686 test "x$ac_cv_target_alias" = "x" &&
1687 ac_cv_target_alias=$ac_cv_host_alias
1688 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691 { (exit 1); exit 1; }; }
1694 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695 echo "${ECHO_T}$ac_cv_target" >&6
1696 target=$ac_cv_target
1697 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702 # The aliases save the names the user supplied, while $host etc.
1703 # will get canonicalized.
1704 test -n "$target_alias" &&
1705 test "$program_prefix$program_suffix$program_transform_name" = \
1706 NONENONEs,x,x, &&
1707 program_prefix=${target_alias}-
1709 # Determine the noncanonical target name, for directory use.
1710 case ${build_alias} in
1711 "") build_noncanonical=${build} ;;
1712 *) build_noncanonical=${build_alias} ;;
1713 esac
1715 case ${host_alias} in
1716 "") host_noncanonical=${build_noncanonical} ;;
1717 *) host_noncanonical=${host_alias} ;;
1718 esac
1720 case ${target_alias} in
1721 "") target_noncanonical=${host_noncanonical} ;;
1722 *) target_noncanonical=${target_alias} ;;
1723 esac
1728 # Determine the target- and build-specific subdirectories
1730 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1731 # have matching libraries, they should use host libraries: Makefile.tpl
1732 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1733 # However, they still use the build modules, because the corresponding
1734 # host modules (e.g. bison) are only built for the host when bootstrap
1735 # finishes. So:
1736 # - build_subdir is where we find build modules, and never changes.
1737 # - build_libsubdir is where we find build libraries, and can be overridden.
1739 # Prefix 'build-' so this never conflicts with target_subdir.
1740 build_subdir="build-${build_noncanonical}"
1742 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1743 if test "${with_build_libsubdir+set}" = set; then
1744 withval="$with_build_libsubdir"
1745 build_libsubdir="$withval"
1746 else
1747 build_libsubdir="$build_subdir"
1749 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1750 if ( test $srcdir = . && test -d gcc ) \
1751 || test -d $srcdir/../host-${host_noncanonical}; then
1752 host_subdir="host-${host_noncanonical}"
1753 else
1754 host_subdir=.
1756 # No prefix.
1757 target_subdir=${target_noncanonical}
1760 # Set program_transform_name
1761 test "$program_prefix" != NONE &&
1762 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1763 # Use a double $ so make ignores it.
1764 test "$program_suffix" != NONE &&
1765 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1766 # Double any \ or $. echo might interpret backslashes.
1767 # By default was `s,x,x', remove it if useless.
1768 cat <<\_ACEOF >conftest.sed
1769 s/[\\$]/&&/g;s/;s,x,x,$//
1770 _ACEOF
1771 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1772 rm conftest.sed
1775 # Check for bogus environment variables.
1776 # Test if LIBRARY_PATH contains the notation for the current directory
1777 # since this would lead to problems installing/building glibc.
1778 # LIBRARY_PATH contains the current directory if one of the following
1779 # is true:
1780 # - one of the terminals (":" and ";") is the first or last sign
1781 # - two terminals occur directly after each other
1782 # - the path contains an element with a dot in it
1783 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1784 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1785 case ${LIBRARY_PATH} in
1786 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1787 library_path_setting="contains current directory"
1790 library_path_setting="ok"
1792 esac
1793 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1794 echo "${ECHO_T}$library_path_setting" >&6
1795 if test "$library_path_setting" != "ok"; then
1796 { { echo "$as_me:$LINENO: error:
1797 *** LIBRARY_PATH shouldn't contain the current directory when
1798 *** building gcc. Please change the environment variable
1799 *** and run configure again." >&5
1800 echo "$as_me: error:
1801 *** LIBRARY_PATH shouldn't contain the current directory when
1802 *** building gcc. Please change the environment variable
1803 *** and run configure again." >&2;}
1804 { (exit 1); exit 1; }; }
1807 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1808 # since this would lead to problems installing/building glibc.
1809 # GCC_EXEC_PREFIX contains the current directory if one of the following
1810 # is true:
1811 # - one of the terminals (":" and ";") is the first or last sign
1812 # - two terminals occur directly after each other
1813 # - the path contains an element with a dot in it
1814 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1815 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1816 case ${GCC_EXEC_PREFIX} in
1817 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1818 gcc_exec_prefix_setting="contains current directory"
1821 gcc_exec_prefix_setting="ok"
1823 esac
1824 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1825 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1826 if test "$gcc_exec_prefix_setting" != "ok"; then
1827 { { echo "$as_me:$LINENO: error:
1828 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1829 *** building gcc. Please change the environment variable
1830 *** and run configure again." >&5
1831 echo "$as_me: error:
1832 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1833 *** building gcc. Please change the environment variable
1834 *** and run configure again." >&2;}
1835 { (exit 1); exit 1; }; }
1838 # -----------
1839 # Directories
1840 # -----------
1842 # Specify the local prefix
1843 local_prefix=
1845 # Check whether --with-local-prefix or --without-local-prefix was given.
1846 if test "${with_local_prefix+set}" = set; then
1847 withval="$with_local_prefix"
1848 case "${withval}" in
1849 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1850 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1851 { (exit 1); exit 1; }; } ;;
1852 no) ;;
1853 *) local_prefix=$with_local_prefix ;;
1854 esac
1857 # Default local prefix if it is empty
1858 if test x$local_prefix = x; then
1859 local_prefix=/usr/local
1862 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1863 # passed in by the toplevel make and thus we'd get different behavior
1864 # depending on where we built the sources.
1865 gcc_gxx_include_dir=
1866 # Specify the g++ header file directory
1868 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1869 if test "${with_gxx_include_dir+set}" = set; then
1870 withval="$with_gxx_include_dir"
1871 case "${withval}" in
1872 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1873 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1874 { (exit 1); exit 1; }; } ;;
1875 no) ;;
1876 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1877 esac
1880 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1881 if test x${gcc_gxx_include_dir} = x; then
1882 if test x${enable_version_specific_runtime_libs} = xyes; then
1883 gcc_gxx_include_dir='${libsubdir}/include/c++'
1884 else
1885 libstdcxx_incdir='include/c++/$(version)'
1886 if test x$host != x$target; then
1887 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1889 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1894 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1895 if test "${with_cpp_install_dir+set}" = set; then
1896 withval="$with_cpp_install_dir"
1897 if test x$withval = xyes; then
1898 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1899 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1900 { (exit 1); exit 1; }; }
1901 elif test x$withval != xno; then
1902 cpp_install_dir=$withval
1906 # We would like to our source tree to be readonly. However when releases or
1907 # pre-releases are generated, the flex/bison generated files as well as the
1908 # various formats of manuals need to be included along with the rest of the
1909 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1910 # just that.
1912 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1913 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1914 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1915 if test "${enable_generated_files_in_srcdir+set}" = set; then
1916 enableval="$enable_generated_files_in_srcdir"
1917 generated_files_in_srcdir=$enableval
1918 else
1919 generated_files_in_srcdir=no
1922 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1923 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1925 if test "$generated_files_in_srcdir" = "yes"; then
1926 GENINSRC=''
1927 else
1928 GENINSRC='#'
1932 # -------------------
1933 # Find default linker
1934 # -------------------
1936 # With GNU ld
1938 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1939 if test "${with_gnu_ld+set}" = set; then
1940 withval="$with_gnu_ld"
1941 gnu_ld_flag="$with_gnu_ld"
1942 else
1943 gnu_ld_flag=no
1946 # With pre-defined ld
1948 # Check whether --with-ld or --without-ld was given.
1949 if test "${with_ld+set}" = set; then
1950 withval="$with_ld"
1951 DEFAULT_LINKER="$with_ld"
1953 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1954 if test ! -x "$DEFAULT_LINKER"; then
1955 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1956 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1957 { (exit 1); exit 1; }; }
1958 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1959 gnu_ld_flag=yes
1962 cat >>confdefs.h <<_ACEOF
1963 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1964 _ACEOF
1968 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1970 cat >>confdefs.h <<_ACEOF
1971 #define HAVE_GNU_LD $gnu_ld
1972 _ACEOF
1975 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1976 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1977 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1978 if test x"$gnu_ld_flag" = x"no"; then
1979 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1980 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1981 else
1982 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1983 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1985 else
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1990 # With demangler in GNU ld
1992 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1993 if test "${with_demangler_in_ld+set}" = set; then
1994 withval="$with_demangler_in_ld"
1995 demangler_in_ld="$with_demangler_in_ld"
1996 else
1997 demangler_in_ld=no
2000 # ----------------------
2001 # Find default assembler
2002 # ----------------------
2004 # With GNU as
2006 # Check whether --with-gnu-as or --without-gnu-as was given.
2007 if test "${with_gnu_as+set}" = set; then
2008 withval="$with_gnu_as"
2009 gas_flag="$with_gnu_as"
2010 else
2011 gas_flag=no
2015 # Check whether --with-as or --without-as was given.
2016 if test "${with_as+set}" = set; then
2017 withval="$with_as"
2018 DEFAULT_ASSEMBLER="$with_as"
2020 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2021 if test ! -x "$DEFAULT_ASSEMBLER"; then
2022 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2023 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2024 { (exit 1); exit 1; }; }
2025 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2026 gas_flag=yes
2029 cat >>confdefs.h <<_ACEOF
2030 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2031 _ACEOF
2035 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2037 cat >>confdefs.h <<_ACEOF
2038 #define HAVE_GNU_AS $gnu_as
2039 _ACEOF
2042 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2043 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2044 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2045 if test x"$gas_flag" = x"no"; then
2046 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2047 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2048 else
2049 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2050 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2052 else
2053 echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6
2057 # ---------------
2058 # Find C compiler
2059 # ---------------
2061 # If a non-executable a.out is present (e.g. created by GNU as above even if
2062 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2063 # file, even when creating an executable, so an execution test fails.
2064 # Remove possible default executable files to avoid this.
2066 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2067 # Autoconf includes it.
2068 rm -f a.out a.exe b.out
2070 # Find the native compiler
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2103 CC=$ac_cv_prog_CC
2104 if test -n "$CC"; then
2105 echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2113 if test -z "$ac_cv_prog_CC"; then
2114 ac_ct_CC=$CC
2115 # Extract the first word of "gcc", so it can be a program name with args.
2116 set dummy gcc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_ac_ct_CC="gcc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 CC=$ac_ct_CC
2151 else
2152 CC="$ac_cv_prog_CC"
2155 if test -z "$CC"; then
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}cc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="${ac_tool_prefix}cc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2193 if test -z "$ac_cv_prog_CC"; then
2194 ac_ct_CC=$CC
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_CC="cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2225 else
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 ac_prog_rejected=no
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2256 ac_prog_rejected=yes
2257 continue
2259 ac_cv_prog_CC="cc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2263 done
2264 done
2266 if test $ac_prog_rejected = yes; then
2267 # We found a bogon in the path, so make sure we never use it.
2268 set dummy $ac_cv_prog_CC
2269 shift
2270 if test $# != 0; then
2271 # We chose a different compiler from the bogus one.
2272 # However, it has the same basename, so the bogon will be chosen
2273 # first if we set CC to just the basename; use the full file name.
2274 shift
2275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2280 CC=$ac_cv_prog_CC
2281 if test -n "$CC"; then
2282 echo "$as_me:$LINENO: result: $CC" >&5
2283 echo "${ECHO_T}$CC" >&6
2284 else
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog in cl
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$CC" && break
2330 done
2332 if test -z "$CC"; then
2333 ac_ct_CC=$CC
2334 for ac_prog in cl
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy $ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$ac_ct_CC" && break
2372 done
2374 CC=$ac_ct_CC
2380 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2381 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2382 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: no acceptable C compiler found in \$PATH
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }; }
2388 # Provide some information about the compiler.
2389 echo "$as_me:$LINENO:" \
2390 "checking for C compiler version" >&5
2391 ac_compiler=`set X $ac_compile; echo $2`
2392 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2393 (eval $ac_compiler --version </dev/null >&5) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2398 (eval $ac_compiler -v </dev/null >&5) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }
2402 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2403 (eval $ac_compiler -V </dev/null >&5) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h. */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2416 main ()
2420 return 0;
2422 _ACEOF
2423 ac_clean_files_save=$ac_clean_files
2424 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2425 # Try to create an executable without -o first, disregard a.out.
2426 # It will help us diagnose broken compilers, and finding out an intuition
2427 # of exeext.
2428 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2429 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2430 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2431 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2432 (eval $ac_link_default) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # Find the output, starting from the most likely. This scheme is
2437 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2438 # resort.
2440 # Be careful to initialize this variable, since it used to be cached.
2441 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2442 ac_cv_exeext=
2443 # b.out is created by i960 compilers.
2444 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2446 test -f "$ac_file" || continue
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2450 conftest.$ac_ext )
2451 # This is the source file.
2453 [ab].out )
2454 # We found the default executable, but exeext='' is most
2455 # certainly right.
2456 break;;
2457 *.* )
2458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2459 # FIXME: I believe we export ac_cv_exeext for Libtool,
2460 # but it would be cool to find out if it's true. Does anybody
2461 # maintain Libtool? --akim.
2462 export ac_cv_exeext
2463 break;;
2465 break;;
2466 esac
2467 done
2468 else
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2472 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2473 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&5
2476 echo "$as_me: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&2;}
2478 { (exit 77); exit 77; }; }; }
2481 ac_exeext=$ac_cv_exeext
2482 echo "$as_me:$LINENO: result: $ac_file" >&5
2483 echo "${ECHO_T}$ac_file" >&6
2485 # Check the compiler produces executables we can run. If not, either
2486 # the compiler is broken, or we cross compile.
2487 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2490 # If not cross compiling, check that we can run a simple program.
2491 if test "$cross_compiling" != yes; then
2492 if { ac_try='./$ac_file'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 cross_compiling=no
2499 else
2500 if test "$cross_compiling" = maybe; then
2501 cross_compiling=yes
2502 else
2503 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2506 If you meant to cross compile, use \`--host'.
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot run C compiled programs.
2509 If you meant to cross compile, use \`--host'.
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }; }
2515 echo "$as_me:$LINENO: result: yes" >&5
2516 echo "${ECHO_T}yes" >&6
2518 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2519 ac_clean_files=$ac_clean_files_save
2520 # Check the compiler produces executables we can run. If not, either
2521 # the compiler is broken, or we cross compile.
2522 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2523 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2524 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2525 echo "${ECHO_T}$cross_compiling" >&6
2527 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2528 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2530 (eval $ac_link) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 # `rm'.
2538 for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 export ac_cv_exeext
2544 break;;
2545 * ) break;;
2546 esac
2547 done
2548 else
2549 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2550 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }; }
2558 rm -f conftest$ac_cv_exeext
2559 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2564 ac_exeext=$EXEEXT
2565 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2567 if test "${ac_cv_objext+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2578 main ()
2582 return 0;
2584 _ACEOF
2585 rm -f conftest.o conftest.obj
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595 break;;
2596 esac
2597 done
2598 else
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2603 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }; }
2611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614 echo "${ECHO_T}$ac_cv_objext" >&6
2615 OBJEXT=$ac_cv_objext
2616 ac_objext=$OBJEXT
2617 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622 cat >conftest.$ac_ext <<_ACEOF
2623 /* confdefs.h. */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2630 main ()
2632 #ifndef __GNUC__
2633 choke me
2634 #endif
2637 return 0;
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 ac_compiler_gnu=yes
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_compiler_gnu=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 CFLAGS="-g"
2679 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2680 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2681 if test "${ac_cv_prog_cc_g+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_c_werror_flag"
2709 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 ac_cv_prog_cc_g=yes
2722 else
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2726 ac_cv_prog_cc_g=no
2728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2732 if test "$ac_test_CFLAGS" = set; then
2733 CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735 if test "$GCC" = yes; then
2736 CFLAGS="-g -O2"
2737 else
2738 CFLAGS="-g"
2740 else
2741 if test "$GCC" = yes; then
2742 CFLAGS="-O2"
2743 else
2744 CFLAGS=
2747 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2748 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2749 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 ac_cv_prog_cc_stdc=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768 char **p;
2769 int i;
2771 return p[i];
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2775 char *s;
2776 va_list v;
2777 va_start (v,p);
2778 s = g (p, va_arg (v,int));
2779 va_end (v);
2780 return s;
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not '\xHH' hex character constants.
2785 These don't provoke an error unfortunately, instead are silently treated
2786 as 'x'. The following induces an error, until -std1 is added to get
2787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2788 array size at least. It's necessary to write '\x00'==0 to get something
2789 that's true only with -std1. */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792 int test (int i, double x);
2793 struct s1 {int (*f) (int a);};
2794 struct s2 {int (*f) (double a);};
2795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2796 int argc;
2797 char **argv;
2799 main ()
2801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2803 return 0;
2805 _ACEOF
2806 # Don't try gcc -ansi; that turns off useful extensions and
2807 # breaks some systems' header files.
2808 # AIX -qlanglvl=ansi
2809 # Ultrix and OSF/1 -std1
2810 # HP-UX 10.20 and later -Ae
2811 # HP-UX older versions -Aa -D_HPUX_SOURCE
2812 # SVR4 -Xc -D__EXTENSIONS__
2813 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 CC="$ac_save_CC $ac_arg"
2816 rm -f conftest.$ac_objext
2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2818 (eval $ac_compile) 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } &&
2825 { ac_try='test -z "$ac_c_werror_flag"
2826 || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2838 ac_cv_prog_cc_stdc=$ac_arg
2839 break
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2845 rm -f conftest.err conftest.$ac_objext
2846 done
2847 rm -f conftest.$ac_ext conftest.$ac_objext
2848 CC=$ac_save_CC
2852 case "x$ac_cv_prog_cc_stdc" in
2853 x|xno)
2854 echo "$as_me:$LINENO: result: none needed" >&5
2855 echo "${ECHO_T}none needed" >&6 ;;
2857 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2859 CC="$CC $ac_cv_prog_cc_stdc" ;;
2860 esac
2862 # Some people use a C++ compiler to compile C. Since we use `exit',
2863 # in C++ we need to declare it. In case someone uses the same compiler
2864 # for both compiling C and C++ we need to have the C++ compiler decide
2865 # the declaration of exit, since it's the most demanding environment.
2866 cat >conftest.$ac_ext <<_ACEOF
2867 #ifndef __cplusplus
2868 choke me
2869 #endif
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 for ac_declaration in \
2894 '' \
2895 'extern "C" void std::exit (int) throw (); using std::exit;' \
2896 'extern "C" void std::exit (int); using std::exit;' \
2897 'extern "C" void exit (int) throw ();' \
2898 'extern "C" void exit (int);' \
2899 'void exit (int);'
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 $ac_declaration
2908 #include <stdlib.h>
2910 main ()
2912 exit (42);
2914 return 0;
2916 _ACEOF
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2920 ac_status=$?
2921 grep -v '^ *+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 continue
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 $ac_declaration
2955 main ()
2957 exit (42);
2959 return 0;
2961 _ACEOF
2962 rm -f conftest.$ac_objext
2963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2964 (eval $ac_compile) 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } &&
2971 { ac_try='test -z "$ac_c_werror_flag"
2972 || test ! -s conftest.err'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; } &&
2978 { ac_try='test -s conftest.$ac_objext'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 break
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 done
2992 rm -f conftest*
2993 if test -n "$ac_declaration"; then
2994 echo '#ifdef __cplusplus' >>confdefs.h
2995 echo $ac_declaration >>confdefs.h
2996 echo '#endif' >>confdefs.h
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 if test "x$CC" != xcc; then
3012 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3013 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3014 else
3015 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3016 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3018 set dummy $CC; ac_cc=`echo $2 |
3019 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3020 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3031 main ()
3035 return 0;
3037 _ACEOF
3038 # Make sure it works both with $CC and with simple cc.
3039 # We do the test twice because some compilers refuse to overwrite an
3040 # existing .o file with -o, though they will create one.
3041 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043 (eval $ac_try) 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); };
3052 then
3053 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3054 if test "x$CC" != xcc; then
3055 # Test first that cc exists at all.
3056 if { ac_try='cc -c conftest.$ac_ext >&5'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3063 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 (eval $ac_try) 2>&5
3065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } &&
3068 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); };
3073 then
3074 # cc works too.
3076 else
3077 # cc exists but doesn't like -o.
3078 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3082 else
3083 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3085 rm -f conftest*
3088 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3089 echo "$as_me:$LINENO: result: yes" >&5
3090 echo "${ECHO_T}yes" >&6
3091 else
3092 echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3095 cat >>confdefs.h <<\_ACEOF
3096 #define NO_MINUS_C_MINUS_O 1
3097 _ACEOF
3101 # expand $ac_aux_dir to an absolute path
3102 am_aux_dir=`cd $ac_aux_dir && pwd`
3104 # FIXME: we rely on the cache variable name because
3105 # there is no other way.
3106 set dummy $CC
3107 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3108 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3109 # Losing compiler, so override with the script.
3110 # FIXME: It is wrong to rewrite CC.
3111 # But if we don't then we get into trouble of one sort or another.
3112 # A longer-term fix would be to have automake use am__CC in this case,
3113 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3114 CC="$am_aux_dir/compile $CC"
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3123 echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 if test -n "$GNATBIND"; then
3129 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3142 done
3143 done
3147 GNATBIND=$ac_cv_prog_GNATBIND
3148 if test -n "$GNATBIND"; then
3149 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3150 echo "${ECHO_T}$GNATBIND" >&6
3151 else
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3157 if test -z "$ac_cv_prog_GNATBIND"; then
3158 ac_ct_GNATBIND=$GNATBIND
3159 # Extract the first word of "gnatbind", so it can be a program name with args.
3160 set dummy gnatbind; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$ac_ct_GNATBIND"; then
3167 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3183 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3186 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3187 if test -n "$ac_ct_GNATBIND"; then
3188 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3189 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3195 GNATBIND=$ac_ct_GNATBIND
3196 else
3197 GNATBIND="$ac_cv_prog_GNATBIND"
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3202 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3203 echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3205 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 if test -n "$GNATMAKE"; then
3209 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3227 GNATMAKE=$ac_cv_prog_GNATMAKE
3228 if test -n "$GNATMAKE"; then
3229 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3230 echo "${ECHO_T}$GNATMAKE" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3237 if test -z "$ac_cv_prog_GNATMAKE"; then
3238 ac_ct_GNATMAKE=$GNATMAKE
3239 # Extract the first word of "gnatmake", so it can be a program name with args.
3240 set dummy gnatmake; ac_word=$2
3241 echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3243 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 if test -n "$ac_ct_GNATMAKE"; then
3247 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3260 done
3261 done
3263 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3266 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3267 if test -n "$ac_ct_GNATMAKE"; then
3268 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3269 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 GNATMAKE=$ac_ct_GNATMAKE
3276 else
3277 GNATMAKE="$ac_cv_prog_GNATMAKE"
3280 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3281 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3282 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 cat >conftest.adb <<EOF
3286 procedure conftest is begin null; end conftest;
3288 acx_cv_cc_gcc_supports_ada=no
3289 # There is a bug in old released versions of GCC which causes the
3290 # driver to exit successfully when the appropriate language module
3291 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3292 # Therefore we must check for the error message as well as an
3293 # unsuccessful exit.
3294 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3295 # given a .adb file, but produce no object file. So we must check
3296 # if an object file was really produced to guard against this.
3297 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3298 if test x"$errors" = x && test -f conftest.$ac_objext; then
3299 acx_cv_cc_gcc_supports_ada=yes
3301 rm -f conftest.*
3303 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3304 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3306 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3307 have_gnat=yes
3308 else
3309 have_gnat=no
3313 # autoconf is lame and doesn't give us any substitution variable for this.
3314 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3315 NO_MINUS_C_MINUS_O=yes
3316 else
3317 OUTPUT_OPTION='-o $@'
3322 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3323 # optimizations to be activated explicitly by the toplevel.
3324 case "$CC" in
3325 */prev-gcc/xgcc*) ;;
3326 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3327 esac
3330 # -------------------------
3331 # Check C compiler features
3332 # -------------------------
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3341 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3342 # On Suns, sometimes $CPP names a directory.
3343 if test -n "$CPP" && test -d "$CPP"; then
3344 CPP=
3346 if test -z "$CPP"; then
3347 if test "${ac_cv_prog_CPP+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350 # Double quotes because CPP needs to be expanded
3351 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353 ac_preproc_ok=false
3354 for ac_c_preproc_warn_flag in '' yes
3356 # Use a header file that comes with gcc, so configuring glibc
3357 # with a fresh cross-compiler works.
3358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3359 # <limits.h> exists even on freestanding compilers.
3360 # On the NeXT, cc -E runs the code through the compiler's parser,
3361 # not just through cpp. "Syntax error" is here to catch this case.
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h. */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3368 #ifdef __STDC__
3369 # include <limits.h>
3370 #else
3371 # include <assert.h>
3372 #endif
3373 Syntax error
3374 _ACEOF
3375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3377 ac_status=$?
3378 grep -v '^ *+' conftest.er1 >conftest.err
3379 rm -f conftest.er1
3380 cat conftest.err >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); } >/dev/null; then
3383 if test -s conftest.err; then
3384 ac_cpp_err=$ac_c_preproc_warn_flag
3385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3386 else
3387 ac_cpp_err=
3389 else
3390 ac_cpp_err=yes
3392 if test -z "$ac_cpp_err"; then
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Broken: fails on valid input.
3399 continue
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether non-existent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null; then
3421 if test -s conftest.err; then
3422 ac_cpp_err=$ac_c_preproc_warn_flag
3423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424 else
3425 ac_cpp_err=
3427 else
3428 ac_cpp_err=yes
3430 if test -z "$ac_cpp_err"; then
3431 # Broken: success on invalid input.
3432 continue
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3441 rm -f conftest.err conftest.$ac_ext
3443 done
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3447 break
3450 done
3451 ac_cv_prog_CPP=$CPP
3454 CPP=$ac_cv_prog_CPP
3455 else
3456 ac_cv_prog_CPP=$CPP
3458 echo "$as_me:$LINENO: result: $CPP" >&5
3459 echo "${ECHO_T}$CPP" >&6
3460 ac_preproc_ok=false
3461 for ac_c_preproc_warn_flag in '' yes
3463 # Use a header file that comes with gcc, so configuring glibc
3464 # with a fresh cross-compiler works.
3465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3466 # <limits.h> exists even on freestanding compilers.
3467 # On the NeXT, cc -E runs the code through the compiler's parser,
3468 # not just through cpp. "Syntax error" is here to catch this case.
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #ifdef __STDC__
3476 # include <limits.h>
3477 #else
3478 # include <assert.h>
3479 #endif
3480 Syntax error
3481 _ACEOF
3482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3496 else
3497 ac_cpp_err=yes
3499 if test -z "$ac_cpp_err"; then
3501 else
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 # Broken: fails on valid input.
3506 continue
3508 rm -f conftest.err conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether non-existent headers
3511 # can be detected and how.
3512 cat >conftest.$ac_ext <<_ACEOF
3513 /* confdefs.h. */
3514 _ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3519 _ACEOF
3520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3531 else
3532 ac_cpp_err=
3534 else
3535 ac_cpp_err=yes
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3539 continue
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3545 ac_preproc_ok=:
3546 break
3548 rm -f conftest.err conftest.$ac_ext
3550 done
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.err conftest.$ac_ext
3553 if $ac_preproc_ok; then
3555 else
3556 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3557 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }; }
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 echo "$as_me:$LINENO: checking for egrep" >&5
3573 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3574 if test "${ac_cv_prog_egrep+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3578 then ac_cv_prog_egrep='grep -E'
3579 else ac_cv_prog_egrep='egrep'
3582 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3583 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3584 EGREP=$ac_cv_prog_egrep
3587 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3588 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3589 if test "${ac_cv_header_stdc+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <stdlib.h>
3599 #include <stdarg.h>
3600 #include <string.h>
3601 #include <float.h>
3604 main ()
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); } &&
3620 { ac_try='test -z "$ac_c_werror_flag"
3621 || test ! -s conftest.err'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623 (eval $ac_try) 2>&5
3624 ac_status=$?
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 (eval $ac_try) 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_cv_header_stdc=yes
3634 else
3635 echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 ac_cv_header_stdc=no
3640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 if test $ac_cv_header_stdc = yes; then
3643 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <string.h>
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654 $EGREP "memchr" >/dev/null 2>&1; then
3656 else
3657 ac_cv_header_stdc=no
3659 rm -f conftest*
3663 if test $ac_cv_header_stdc = yes; then
3664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #include <stdlib.h>
3673 _ACEOF
3674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3675 $EGREP "free" >/dev/null 2>&1; then
3677 else
3678 ac_cv_header_stdc=no
3680 rm -f conftest*
3684 if test $ac_cv_header_stdc = yes; then
3685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3686 if test "$cross_compiling" = yes; then
3688 else
3689 cat >conftest.$ac_ext <<_ACEOF
3690 /* confdefs.h. */
3691 _ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3695 #include <ctype.h>
3696 #if ((' ' & 0x0FF) == 0x020)
3697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3699 #else
3700 # define ISLOWER(c) \
3701 (('a' <= (c) && (c) <= 'i') \
3702 || ('j' <= (c) && (c) <= 'r') \
3703 || ('s' <= (c) && (c) <= 'z'))
3704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3705 #endif
3707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3709 main ()
3711 int i;
3712 for (i = 0; i < 256; i++)
3713 if (XOR (islower (i), ISLOWER (i))
3714 || toupper (i) != TOUPPER (i))
3715 exit(2);
3716 exit (0);
3718 _ACEOF
3719 rm -f conftest$ac_exeext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3721 (eval $ac_link) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3731 else
3732 echo "$as_me: program exited with status $ac_status" >&5
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 ( exit $ac_status )
3737 ac_cv_header_stdc=no
3739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3745 if test $ac_cv_header_stdc = yes; then
3747 cat >>confdefs.h <<\_ACEOF
3748 #define STDC_HEADERS 1
3749 _ACEOF
3753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3764 inttypes.h stdint.h unistd.h
3766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3767 echo "$as_me:$LINENO: checking for $ac_header" >&5
3768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778 $ac_includes_default
3780 #include <$ac_header>
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3785 ac_status=$?
3786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 (eval $ac_try) 2>&5
3795 ac_status=$?
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 (eval $ac_try) 2>&5
3801 ac_status=$?
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 eval "$as_ac_Header=yes"
3805 else
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 eval "$as_ac_Header=no"
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3816 cat >>confdefs.h <<_ACEOF
3817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3818 _ACEOF
3822 done
3826 if test "${ac_cv_header_minix_config_h+set}" = set; then
3827 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3828 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3829 if test "${ac_cv_header_minix_config_h+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3833 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3834 else
3835 # Is the header compilable?
3836 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3837 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 $ac_includes_default
3845 #include <minix/config.h>
3846 _ACEOF
3847 rm -f conftest.$ac_objext
3848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849 (eval $ac_compile) 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } &&
3856 { ac_try='test -z "$ac_c_werror_flag"
3857 || test ! -s conftest.err'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 (eval $ac_try) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; } &&
3863 { ac_try='test -s conftest.$ac_objext'
3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865 (eval $ac_try) 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_header_compiler=yes
3870 else
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_header_compiler=no
3876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3878 echo "${ECHO_T}$ac_header_compiler" >&6
3880 # Is the header present?
3881 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3882 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #include <minix/config.h>
3890 _ACEOF
3891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null; then
3899 if test -s conftest.err; then
3900 ac_cpp_err=$ac_c_preproc_warn_flag
3901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3902 else
3903 ac_cpp_err=
3905 else
3906 ac_cpp_err=yes
3908 if test -z "$ac_cpp_err"; then
3909 ac_header_preproc=yes
3910 else
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 ac_header_preproc=no
3916 rm -f conftest.err conftest.$ac_ext
3917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3918 echo "${ECHO_T}$ac_header_preproc" >&6
3920 # So? What about this header?
3921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3922 yes:no: )
3923 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3924 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3925 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3926 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3927 ac_header_preproc=yes
3929 no:yes:* )
3930 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3931 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3933 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3935 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3936 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3937 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3938 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3939 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3940 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3941 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3943 cat <<\_ASBOX
3944 ## ------------------------------------------ ##
3945 ## Report this to the AC_PACKAGE_NAME lists. ##
3946 ## ------------------------------------------ ##
3947 _ASBOX
3949 sed "s/^/$as_me: WARNING: /" >&2
3951 esac
3952 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3953 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3954 if test "${ac_cv_header_minix_config_h+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 ac_cv_header_minix_config_h=$ac_header_preproc
3959 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3960 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3963 if test $ac_cv_header_minix_config_h = yes; then
3964 MINIX=yes
3965 else
3966 MINIX=
3970 if test "$MINIX" = yes; then
3972 cat >>confdefs.h <<\_ACEOF
3973 #define _POSIX_SOURCE 1
3974 _ACEOF
3977 cat >>confdefs.h <<\_ACEOF
3978 #define _POSIX_1_SOURCE 2
3979 _ACEOF
3982 cat >>confdefs.h <<\_ACEOF
3983 #define _MINIX 1
3984 _ACEOF
3990 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3991 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3992 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 cat >conftest.$ac_ext <<_ACEOF
3996 /* confdefs.h. */
3997 _ACEOF
3998 cat confdefs.h >>conftest.$ac_ext
3999 cat >>conftest.$ac_ext <<_ACEOF
4000 /* end confdefs.h. */
4002 # define __EXTENSIONS__ 1
4003 $ac_includes_default
4005 main ()
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } &&
4021 { ac_try='test -z "$ac_c_werror_flag"
4022 || test ! -s conftest.err'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 (eval $ac_try) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; } &&
4028 { ac_try='test -s conftest.$ac_objext'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 (eval $ac_try) 2>&5
4031 ac_status=$?
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; }; then
4034 ac_cv_safe_to_define___extensions__=yes
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 ac_cv_safe_to_define___extensions__=no
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4043 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4044 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4045 test $ac_cv_safe_to_define___extensions__ = yes &&
4046 cat >>confdefs.h <<\_ACEOF
4047 #define __EXTENSIONS__ 1
4048 _ACEOF
4050 cat >>confdefs.h <<\_ACEOF
4051 #define _ALL_SOURCE 1
4052 _ACEOF
4054 cat >>confdefs.h <<\_ACEOF
4055 #define _GNU_SOURCE 1
4056 _ACEOF
4058 cat >>confdefs.h <<\_ACEOF
4059 #define _POSIX_PTHREAD_SEMANTICS 1
4060 _ACEOF
4062 cat >>confdefs.h <<\_ACEOF
4063 #define _TANDEM_SOURCE 1
4064 _ACEOF
4067 ac_ext=c
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4076 CPP=
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4085 ac_preproc_ok=false
4086 for ac_c_preproc_warn_flag in '' yes
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #ifdef __STDC__
4101 # include <limits.h>
4102 #else
4103 # include <assert.h>
4104 #endif
4105 Syntax error
4106 _ACEOF
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null; then
4115 if test -s conftest.err; then
4116 ac_cpp_err=$ac_c_preproc_warn_flag
4117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118 else
4119 ac_cpp_err=
4121 else
4122 ac_cpp_err=yes
4124 if test -z "$ac_cpp_err"; then
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Broken: fails on valid input.
4131 continue
4133 rm -f conftest.err conftest.$ac_ext
4135 # OK, works on sane cases. Now check whether non-existent headers
4136 # can be detected and how.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4144 _ACEOF
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev/null; then
4153 if test -s conftest.err; then
4154 ac_cpp_err=$ac_c_preproc_warn_flag
4155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4156 else
4157 ac_cpp_err=
4159 else
4160 ac_cpp_err=yes
4162 if test -z "$ac_cpp_err"; then
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4173 rm -f conftest.err conftest.$ac_ext
4175 done
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then
4179 break
4182 done
4183 ac_cv_prog_CPP=$CPP
4186 CPP=$ac_cv_prog_CPP
4187 else
4188 ac_cv_prog_CPP=$CPP
4190 echo "$as_me:$LINENO: result: $CPP" >&5
4191 echo "${ECHO_T}$CPP" >&6
4192 ac_preproc_ok=false
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 #ifdef __STDC__
4208 # include <limits.h>
4209 #else
4210 # include <assert.h>
4211 #endif
4212 Syntax error
4213 _ACEOF
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4225 else
4226 ac_cpp_err=
4228 else
4229 ac_cpp_err=yes
4231 if test -z "$ac_cpp_err"; then
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Broken: fails on valid input.
4238 continue
4240 rm -f conftest.err conftest.$ac_ext
4242 # OK, works on sane cases. Now check whether non-existent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev/null; then
4260 if test -s conftest.err; then
4261 ac_cpp_err=$ac_c_preproc_warn_flag
4262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4263 else
4264 ac_cpp_err=
4266 else
4267 ac_cpp_err=yes
4269 if test -z "$ac_cpp_err"; then
4270 # Broken: success on invalid input.
4271 continue
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Passes both tests.
4277 ac_preproc_ok=:
4278 break
4280 rm -f conftest.err conftest.$ac_ext
4282 done
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4287 else
4288 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4289 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details." >&5
4292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4293 See \`config.log' for more details." >&2;}
4294 { (exit 1); exit 1; }; }; }
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 echo "$as_me:$LINENO: checking for inline" >&5
4304 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4305 if test "${ac_cv_c_inline+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308 ac_cv_c_inline=no
4309 for ac_kw in inline __inline__ __inline; do
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 #ifndef __cplusplus
4317 typedef int foo_t;
4318 static $ac_kw foo_t static_foo () {return 0; }
4319 $ac_kw foo_t foo () {return 0; }
4320 #endif
4322 _ACEOF
4323 rm -f conftest.$ac_objext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4325 (eval $ac_compile) 2>conftest.er1
4326 ac_status=$?
4327 grep -v '^ *+' conftest.er1 >conftest.err
4328 rm -f conftest.er1
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -z "$ac_c_werror_flag"
4333 || test ! -s conftest.err'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; } &&
4339 { ac_try='test -s conftest.$ac_objext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 ac_cv_c_inline=$ac_kw; break
4346 else
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4352 done
4355 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4356 echo "${ECHO_T}$ac_cv_c_inline" >&6
4359 case $ac_cv_c_inline in
4360 inline | yes) ;;
4362 case $ac_cv_c_inline in
4363 no) ac_val=;;
4364 *) ac_val=$ac_cv_c_inline;;
4365 esac
4366 cat >>confdefs.h <<_ACEOF
4367 #ifndef __cplusplus
4368 #define inline $ac_val
4369 #endif
4370 _ACEOF
4372 esac
4375 # sizeof(char) is 1 by definition.
4376 echo "$as_me:$LINENO: checking for void *" >&5
4377 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4378 if test "${ac_cv_type_void_p+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4389 main ()
4391 if ((void * *) 0)
4392 return 0;
4393 if (sizeof (void *))
4394 return 0;
4396 return 0;
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag"
4409 || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411 (eval $ac_try) 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 (eval $ac_try) 2>&5
4418 ac_status=$?
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4421 ac_cv_type_void_p=yes
4422 else
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 ac_cv_type_void_p=no
4428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4431 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4433 echo "$as_me:$LINENO: checking size of void *" >&5
4434 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4435 if test "${ac_cv_sizeof_void_p+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 if test "$ac_cv_type_void_p" = yes; then
4439 # The cast to unsigned long works around a bug in the HP C Compiler
4440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4442 # This bug is HP SR number 8606223364.
4443 if test "$cross_compiling" = yes; then
4444 # Depending upon the size, compute the lo and hi bounds.
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4453 main ()
4455 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4456 test_array [0] = 0
4459 return 0;
4461 _ACEOF
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_lo=0 ac_mid=0
4485 while :; do
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4494 main ()
4496 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4497 test_array [0] = 0
4500 return 0;
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_hi=$ac_mid; break
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4530 ac_lo=`expr $ac_mid + 1`
4531 if test $ac_lo -le $ac_mid; then
4532 ac_lo= ac_hi=
4533 break
4535 ac_mid=`expr 2 '*' $ac_mid + 1`
4537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4538 done
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
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
4551 main ()
4553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4554 test_array [0] = 0
4557 return 0;
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=-1 ac_mid=-1
4583 while :; do
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4590 $ac_includes_default
4592 main ()
4594 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4595 test_array [0] = 0
4598 return 0;
4600 _ACEOF
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
4618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_lo=$ac_mid; break
4624 else
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_hi=`expr '(' $ac_mid ')' - 1`
4629 if test $ac_mid -le $ac_hi; then
4630 ac_lo= ac_hi=
4631 break
4633 ac_mid=`expr 2 '*' $ac_mid`
4635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 done
4637 else
4638 echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_lo= ac_hi=
4643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 # Binary search between lo and hi bounds.
4647 while test "x$ac_lo" != "x$ac_hi"; do
4648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4649 cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 $ac_includes_default
4657 main ()
4659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4660 test_array [0] = 0
4663 return 0;
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>conftest.er1
4669 ac_status=$?
4670 grep -v '^ *+' conftest.er1 >conftest.err
4671 rm -f conftest.er1
4672 cat conftest.err >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -z "$ac_c_werror_flag"
4676 || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 (eval $ac_try) 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4688 ac_hi=$ac_mid
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_lo=`expr '(' $ac_mid ')' + 1`
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 done
4697 case $ac_lo in
4698 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4699 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4700 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4702 See \`config.log' for more details." >&5
4703 echo "$as_me: error: cannot compute sizeof (void *), 77
4704 See \`config.log' for more details." >&2;}
4705 { (exit 1); exit 1; }; }; } ;;
4706 esac
4707 else
4708 if test "$cross_compiling" = yes; then
4709 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4710 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4712 See \`config.log' for more details." >&5
4713 echo "$as_me: error: cannot run test program while cross compiling
4714 See \`config.log' for more details." >&2;}
4715 { (exit 1); exit 1; }; }; }
4716 else
4717 cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h. */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4723 $ac_includes_default
4724 long longval () { return (long) (sizeof (void *)); }
4725 unsigned long ulongval () { return (long) (sizeof (void *)); }
4726 #include <stdio.h>
4727 #include <stdlib.h>
4729 main ()
4732 FILE *f = fopen ("conftest.val", "w");
4733 if (! f)
4734 exit (1);
4735 if (((long) (sizeof (void *))) < 0)
4737 long i = longval ();
4738 if (i != ((long) (sizeof (void *))))
4739 exit (1);
4740 fprintf (f, "%ld\n", i);
4742 else
4744 unsigned long i = ulongval ();
4745 if (i != ((long) (sizeof (void *))))
4746 exit (1);
4747 fprintf (f, "%lu\n", i);
4749 exit (ferror (f) || fclose (f) != 0);
4752 return 0;
4754 _ACEOF
4755 rm -f conftest$ac_exeext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 (eval $ac_try) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4766 ac_cv_sizeof_void_p=`cat conftest.val`
4767 else
4768 echo "$as_me: program exited with status $ac_status" >&5
4769 echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ( exit $ac_status )
4773 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4774 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4776 See \`config.log' for more details." >&5
4777 echo "$as_me: error: cannot compute sizeof (void *), 77
4778 See \`config.log' for more details." >&2;}
4779 { (exit 1); exit 1; }; }; }
4781 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4784 rm -f conftest.val
4785 else
4786 ac_cv_sizeof_void_p=0
4789 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4790 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4791 cat >>confdefs.h <<_ACEOF
4792 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4793 _ACEOF
4796 echo "$as_me:$LINENO: checking for short" >&5
4797 echo $ECHO_N "checking for short... $ECHO_C" >&6
4798 if test "${ac_cv_type_short+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 $ac_includes_default
4809 main ()
4811 if ((short *) 0)
4812 return 0;
4813 if (sizeof (short))
4814 return 0;
4816 return 0;
4818 _ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
4828 { ac_try='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 ac_cv_type_short=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4846 ac_cv_type_short=no
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4851 echo "${ECHO_T}$ac_cv_type_short" >&6
4853 echo "$as_me:$LINENO: checking size of short" >&5
4854 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4855 if test "${ac_cv_sizeof_short+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 if test "$ac_cv_type_short" = yes; then
4859 # The cast to unsigned long works around a bug in the HP C Compiler
4860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4862 # This bug is HP SR number 8606223364.
4863 if test "$cross_compiling" = yes; then
4864 # Depending upon the size, compute the lo and hi bounds.
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 $ac_includes_default
4873 main ()
4875 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4876 test_array [0] = 0
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } &&
4891 { ac_try='test -z "$ac_c_werror_flag"
4892 || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_lo=0 ac_mid=0
4905 while :; do
4906 cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h. */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4914 main ()
4916 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4917 test_array [0] = 0
4920 return 0;
4922 _ACEOF
4923 rm -f conftest.$ac_objext
4924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925 (eval $ac_compile) 2>conftest.er1
4926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } &&
4932 { ac_try='test -z "$ac_c_werror_flag"
4933 || test ! -s conftest.err'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; } &&
4939 { ac_try='test -s conftest.$ac_objext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_hi=$ac_mid; break
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 ac_lo=`expr $ac_mid + 1`
4951 if test $ac_lo -le $ac_mid; then
4952 ac_lo= ac_hi=
4953 break
4955 ac_mid=`expr 2 '*' $ac_mid + 1`
4957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4958 done
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 $ac_includes_default
4971 main ()
4973 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4974 test_array [0] = 0
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982 (eval $ac_compile) 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } &&
4989 { ac_try='test -z "$ac_c_werror_flag"
4990 || test ! -s conftest.err'
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); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998 (eval $ac_try) 2>&5
4999 ac_status=$?
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_hi=-1 ac_mid=-1
5003 while :; do
5004 cat >conftest.$ac_ext <<_ACEOF
5005 /* confdefs.h. */
5006 _ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5012 main ()
5014 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5015 test_array [0] = 0
5018 return 0;
5020 _ACEOF
5021 rm -f conftest.$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_lo=$ac_mid; break
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 ac_hi=`expr '(' $ac_mid ')' - 1`
5049 if test $ac_mid -le $ac_hi; then
5050 ac_lo= ac_hi=
5051 break
5053 ac_mid=`expr 2 '*' $ac_mid`
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 else
5058 echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_lo= ac_hi=
5063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066 # Binary search between lo and hi bounds.
5067 while test "x$ac_lo" != "x$ac_hi"; do
5068 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5069 cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h. */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5075 $ac_includes_default
5077 main ()
5079 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5080 test_array [0] = 0
5083 return 0;
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_hi=$ac_mid
5109 else
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_lo=`expr '(' $ac_mid ')' + 1`
5115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5116 done
5117 case $ac_lo in
5118 ?*) ac_cv_sizeof_short=$ac_lo;;
5119 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5120 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5122 See \`config.log' for more details." >&5
5123 echo "$as_me: error: cannot compute sizeof (short), 77
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }; } ;;
5126 esac
5127 else
5128 if test "$cross_compiling" = yes; then
5129 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5130 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5132 See \`config.log' for more details." >&5
5133 echo "$as_me: error: cannot run test program while cross compiling
5134 See \`config.log' for more details." >&2;}
5135 { (exit 1); exit 1; }; }; }
5136 else
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5144 long longval () { return (long) (sizeof (short)); }
5145 unsigned long ulongval () { return (long) (sizeof (short)); }
5146 #include <stdio.h>
5147 #include <stdlib.h>
5149 main ()
5152 FILE *f = fopen ("conftest.val", "w");
5153 if (! f)
5154 exit (1);
5155 if (((long) (sizeof (short))) < 0)
5157 long i = longval ();
5158 if (i != ((long) (sizeof (short))))
5159 exit (1);
5160 fprintf (f, "%ld\n", i);
5162 else
5164 unsigned long i = ulongval ();
5165 if (i != ((long) (sizeof (short))))
5166 exit (1);
5167 fprintf (f, "%lu\n", i);
5169 exit (ferror (f) || fclose (f) != 0);
5172 return 0;
5174 _ACEOF
5175 rm -f conftest$ac_exeext
5176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5177 (eval $ac_link) 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182 (eval $ac_try) 2>&5
5183 ac_status=$?
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; }; then
5186 ac_cv_sizeof_short=`cat conftest.val`
5187 else
5188 echo "$as_me: program exited with status $ac_status" >&5
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ( exit $ac_status )
5193 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5194 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5195 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5196 See \`config.log' for more details." >&5
5197 echo "$as_me: error: cannot compute sizeof (short), 77
5198 See \`config.log' for more details." >&2;}
5199 { (exit 1); exit 1; }; }; }
5201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5204 rm -f conftest.val
5205 else
5206 ac_cv_sizeof_short=0
5209 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5210 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5211 cat >>confdefs.h <<_ACEOF
5212 #define SIZEOF_SHORT $ac_cv_sizeof_short
5213 _ACEOF
5216 echo "$as_me:$LINENO: checking for int" >&5
5217 echo $ECHO_N "checking for int... $ECHO_C" >&6
5218 if test "${ac_cv_type_int+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h. */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5227 $ac_includes_default
5229 main ()
5231 if ((int *) 0)
5232 return 0;
5233 if (sizeof (int))
5234 return 0;
5236 return 0;
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag"
5249 || test ! -s conftest.err'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 (eval $ac_try) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_type_int=yes
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5266 ac_cv_type_int=no
5268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5270 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5271 echo "${ECHO_T}$ac_cv_type_int" >&6
5273 echo "$as_me:$LINENO: checking size of int" >&5
5274 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5275 if test "${ac_cv_sizeof_int+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test "$ac_cv_type_int" = yes; then
5279 # The cast to unsigned long works around a bug in the HP C Compiler
5280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5282 # This bug is HP SR number 8606223364.
5283 if test "$cross_compiling" = yes; then
5284 # Depending upon the size, compute the lo and hi bounds.
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291 $ac_includes_default
5293 main ()
5295 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5296 test_array [0] = 0
5299 return 0;
5301 _ACEOF
5302 rm -f conftest.$ac_objext
5303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5304 (eval $ac_compile) 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_c_werror_flag"
5312 || test ! -s conftest.err'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5320 (eval $ac_try) 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 ac_lo=0 ac_mid=0
5325 while :; do
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5334 main ()
5336 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5337 test_array [0] = 0
5340 return 0;
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } &&
5352 { ac_try='test -z "$ac_c_werror_flag"
5353 || test ! -s conftest.err'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 (eval $ac_try) 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; } &&
5359 { ac_try='test -s conftest.$ac_objext'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 (eval $ac_try) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; }; then
5365 ac_hi=$ac_mid; break
5366 else
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 ac_lo=`expr $ac_mid + 1`
5371 if test $ac_lo -le $ac_mid; then
5372 ac_lo= ac_hi=
5373 break
5375 ac_mid=`expr 2 '*' $ac_mid + 1`
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 done
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 $ac_includes_default
5391 main ()
5393 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5394 test_array [0] = 0
5397 return 0;
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest.$ac_objext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_hi=-1 ac_mid=-1
5423 while :; do
5424 cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h. */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5432 main ()
5434 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5435 test_array [0] = 0
5438 return 0;
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_lo=$ac_mid; break
5464 else
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5468 ac_hi=`expr '(' $ac_mid ')' - 1`
5469 if test $ac_mid -le $ac_hi; then
5470 ac_lo= ac_hi=
5471 break
5473 ac_mid=`expr 2 '*' $ac_mid`
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 done
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ac_lo= ac_hi=
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486 # Binary search between lo and hi bounds.
5487 while test "x$ac_lo" != "x$ac_hi"; do
5488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 $ac_includes_default
5497 main ()
5499 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5500 test_array [0] = 0
5503 return 0;
5505 _ACEOF
5506 rm -f conftest.$ac_objext
5507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5508 (eval $ac_compile) 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } &&
5515 { ac_try='test -z "$ac_c_werror_flag"
5516 || test ! -s conftest.err'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 (eval $ac_try) 2>&5
5525 ac_status=$?
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_hi=$ac_mid
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_lo=`expr '(' $ac_mid ')' + 1`
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 done
5537 case $ac_lo in
5538 ?*) ac_cv_sizeof_int=$ac_lo;;
5539 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5540 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot compute sizeof (int), 77
5544 See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }; } ;;
5546 esac
5547 else
5548 if test "$cross_compiling" = yes; then
5549 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5550 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5551 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5552 See \`config.log' for more details." >&5
5553 echo "$as_me: error: cannot run test program while cross compiling
5554 See \`config.log' for more details." >&2;}
5555 { (exit 1); exit 1; }; }; }
5556 else
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5564 long longval () { return (long) (sizeof (int)); }
5565 unsigned long ulongval () { return (long) (sizeof (int)); }
5566 #include <stdio.h>
5567 #include <stdlib.h>
5569 main ()
5572 FILE *f = fopen ("conftest.val", "w");
5573 if (! f)
5574 exit (1);
5575 if (((long) (sizeof (int))) < 0)
5577 long i = longval ();
5578 if (i != ((long) (sizeof (int))))
5579 exit (1);
5580 fprintf (f, "%ld\n", i);
5582 else
5584 unsigned long i = ulongval ();
5585 if (i != ((long) (sizeof (int))))
5586 exit (1);
5587 fprintf (f, "%lu\n", i);
5589 exit (ferror (f) || fclose (f) != 0);
5592 return 0;
5594 _ACEOF
5595 rm -f conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_sizeof_int=`cat conftest.val`
5607 else
5608 echo "$as_me: program exited with status $ac_status" >&5
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 ( exit $ac_status )
5613 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5614 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5615 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5616 See \`config.log' for more details." >&5
5617 echo "$as_me: error: cannot compute sizeof (int), 77
5618 See \`config.log' for more details." >&2;}
5619 { (exit 1); exit 1; }; }; }
5621 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5624 rm -f conftest.val
5625 else
5626 ac_cv_sizeof_int=0
5629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5630 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5631 cat >>confdefs.h <<_ACEOF
5632 #define SIZEOF_INT $ac_cv_sizeof_int
5633 _ACEOF
5636 echo "$as_me:$LINENO: checking for long" >&5
5637 echo $ECHO_N "checking for long... $ECHO_C" >&6
5638 if test "${ac_cv_type_long+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5649 main ()
5651 if ((long *) 0)
5652 return 0;
5653 if (sizeof (long))
5654 return 0;
5656 return 0;
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5661 (eval $ac_compile) 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } &&
5668 { ac_try='test -z "$ac_c_werror_flag"
5669 || test ! -s conftest.err'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest.$ac_objext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 ac_cv_type_long=yes
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 ac_cv_type_long=no
5688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5691 echo "${ECHO_T}$ac_cv_type_long" >&6
5693 echo "$as_me:$LINENO: checking size of long" >&5
5694 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5695 if test "${ac_cv_sizeof_long+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 if test "$ac_cv_type_long" = yes; then
5699 # The cast to unsigned long works around a bug in the HP C Compiler
5700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5702 # This bug is HP SR number 8606223364.
5703 if test "$cross_compiling" = yes; then
5704 # Depending upon the size, compute the lo and hi bounds.
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5713 main ()
5715 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5716 test_array [0] = 0
5719 return 0;
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_lo=0 ac_mid=0
5745 while :; do
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h. */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 $ac_includes_default
5754 main ()
5756 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5757 test_array [0] = 0
5760 return 0;
5762 _ACEOF
5763 rm -f conftest.$ac_objext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5765 (eval $ac_compile) 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag"
5773 || test ! -s conftest.err'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_hi=$ac_mid; break
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_lo=`expr $ac_mid + 1`
5791 if test $ac_lo -le $ac_mid; then
5792 ac_lo= ac_hi=
5793 break
5795 ac_mid=`expr 2 '*' $ac_mid + 1`
5797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798 done
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5811 main ()
5813 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5814 test_array [0] = 0
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5822 (eval $ac_compile) 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } &&
5829 { ac_try='test -z "$ac_c_werror_flag"
5830 || test ! -s conftest.err'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_hi=-1 ac_mid=-1
5843 while :; do
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h. */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5852 main ()
5854 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5855 test_array [0] = 0
5858 return 0;
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -z "$ac_c_werror_flag"
5871 || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_lo=$ac_mid; break
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_hi=`expr '(' $ac_mid ')' - 1`
5889 if test $ac_mid -le $ac_hi; then
5890 ac_lo= ac_hi=
5891 break
5893 ac_mid=`expr 2 '*' $ac_mid`
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_lo= ac_hi=
5903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 # Binary search between lo and hi bounds.
5907 while test "x$ac_lo" != "x$ac_hi"; do
5908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5909 cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h. */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 $ac_includes_default
5917 main ()
5919 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5920 test_array [0] = 0
5923 return 0;
5925 _ACEOF
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 (eval $ac_try) 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_hi=$ac_mid
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 done
5957 case $ac_lo in
5958 ?*) ac_cv_sizeof_long=$ac_lo;;
5959 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5960 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (long), 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: in \`$ac_pwd':" >&5
5970 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&5
5973 echo "$as_me: error: cannot run test program while cross compiling
5974 See \`config.log' for more details." >&2;}
5975 { (exit 1); exit 1; }; }; }
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 long longval () { return (long) (sizeof (long)); }
5985 unsigned long ulongval () { return (long) (sizeof (long)); }
5986 #include <stdio.h>
5987 #include <stdlib.h>
5989 main ()
5992 FILE *f = fopen ("conftest.val", "w");
5993 if (! f)
5994 exit (1);
5995 if (((long) (sizeof (long))) < 0)
5997 long i = longval ();
5998 if (i != ((long) (sizeof (long))))
5999 exit (1);
6000 fprintf (f, "%ld\n", i);
6002 else
6004 unsigned long i = ulongval ();
6005 if (i != ((long) (sizeof (long))))
6006 exit (1);
6007 fprintf (f, "%lu\n", i);
6009 exit (ferror (f) || fclose (f) != 0);
6012 return 0;
6014 _ACEOF
6015 rm -f conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 (eval $ac_try) 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6026 ac_cv_sizeof_long=`cat conftest.val`
6027 else
6028 echo "$as_me: program exited with status $ac_status" >&5
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 ( exit $ac_status )
6033 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6034 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6036 See \`config.log' for more details." >&5
6037 echo "$as_me: error: cannot compute sizeof (long), 77
6038 See \`config.log' for more details." >&2;}
6039 { (exit 1); exit 1; }; }; }
6041 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6044 rm -f conftest.val
6045 else
6046 ac_cv_sizeof_long=0
6049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6050 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6051 cat >>confdefs.h <<_ACEOF
6052 #define SIZEOF_LONG $ac_cv_sizeof_long
6053 _ACEOF
6056 echo "$as_me:$LINENO: checking for long long" >&5
6057 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6058 if test "${ac_cv_type_long_long+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6067 $ac_includes_default
6069 main ()
6071 if ((long long *) 0)
6072 return 0;
6073 if (sizeof (long long))
6074 return 0;
6076 return 0;
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081 (eval $ac_compile) 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -z "$ac_c_werror_flag"
6089 || test ! -s conftest.err'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097 (eval $ac_try) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_type_long_long=yes
6102 else
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_cv_type_long_long=no
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6111 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6112 if test $ac_cv_type_long_long = yes; then
6114 cat >>confdefs.h <<_ACEOF
6115 #define HAVE_LONG_LONG 1
6116 _ACEOF
6118 echo "$as_me:$LINENO: checking for long long" >&5
6119 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6120 if test "${ac_cv_type_long_long+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6131 main ()
6133 if ((long long *) 0)
6134 return 0;
6135 if (sizeof (long long))
6136 return 0;
6138 return 0;
6140 _ACEOF
6141 rm -f conftest.$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_type_long_long=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_cv_type_long_long=no
6170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6173 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6175 echo "$as_me:$LINENO: checking size of long long" >&5
6176 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6177 if test "${ac_cv_sizeof_long_long+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 else
6180 if test "$ac_cv_type_long_long" = yes; then
6181 # The cast to unsigned long works around a bug in the HP C Compiler
6182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6184 # This bug is HP SR number 8606223364.
6185 if test "$cross_compiling" = yes; then
6186 # Depending upon the size, compute the lo and hi bounds.
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 main ()
6197 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6198 test_array [0] = 0
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_lo=0 ac_mid=0
6227 while :; do
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 $ac_includes_default
6236 main ()
6238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6239 test_array [0] = 0
6242 return 0;
6244 _ACEOF
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 (eval $ac_try) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_hi=$ac_mid; break
6268 else
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_lo=`expr $ac_mid + 1`
6273 if test $ac_lo -le $ac_mid; then
6274 ac_lo= ac_hi=
6275 break
6277 ac_mid=`expr 2 '*' $ac_mid + 1`
6279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 done
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6293 main ()
6295 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6296 test_array [0] = 0
6299 return 0;
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -z "$ac_c_werror_flag"
6312 || test ! -s conftest.err'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; } &&
6318 { ac_try='test -s conftest.$ac_objext'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 (eval $ac_try) 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; }; then
6324 ac_hi=-1 ac_mid=-1
6325 while :; do
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 $ac_includes_default
6334 main ()
6336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6337 test_array [0] = 0
6340 return 0;
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345 (eval $ac_compile) 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest.$ac_objext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 (eval $ac_try) 2>&5
6362 ac_status=$?
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_lo=$ac_mid; break
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_hi=`expr '(' $ac_mid ')' - 1`
6371 if test $ac_mid -le $ac_hi; then
6372 ac_lo= ac_hi=
6373 break
6375 ac_mid=`expr 2 '*' $ac_mid`
6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378 done
6379 else
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 ac_lo= ac_hi=
6385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6388 # Binary search between lo and hi bounds.
6389 while test "x$ac_lo" != "x$ac_hi"; do
6390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6399 main ()
6401 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6402 test_array [0] = 0
6405 return 0;
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag"
6418 || test ! -s conftest.err'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 (eval $ac_try) 2>&5
6427 ac_status=$?
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; }; then
6430 ac_hi=$ac_mid
6431 else
6432 echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6435 ac_lo=`expr '(' $ac_mid ')' + 1`
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 done
6439 case $ac_lo in
6440 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6441 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6442 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6444 See \`config.log' for more details." >&5
6445 echo "$as_me: error: cannot compute sizeof (long long), 77
6446 See \`config.log' for more details." >&2;}
6447 { (exit 1); exit 1; }; }; } ;;
6448 esac
6449 else
6450 if test "$cross_compiling" = yes; then
6451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6453 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6454 See \`config.log' for more details." >&5
6455 echo "$as_me: error: cannot run test program while cross compiling
6456 See \`config.log' for more details." >&2;}
6457 { (exit 1); exit 1; }; }; }
6458 else
6459 cat >conftest.$ac_ext <<_ACEOF
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 $ac_includes_default
6466 long longval () { return (long) (sizeof (long long)); }
6467 unsigned long ulongval () { return (long) (sizeof (long long)); }
6468 #include <stdio.h>
6469 #include <stdlib.h>
6471 main ()
6474 FILE *f = fopen ("conftest.val", "w");
6475 if (! f)
6476 exit (1);
6477 if (((long) (sizeof (long long))) < 0)
6479 long i = longval ();
6480 if (i != ((long) (sizeof (long long))))
6481 exit (1);
6482 fprintf (f, "%ld\n", i);
6484 else
6486 unsigned long i = ulongval ();
6487 if (i != ((long) (sizeof (long long))))
6488 exit (1);
6489 fprintf (f, "%lu\n", i);
6491 exit (ferror (f) || fclose (f) != 0);
6494 return 0;
6496 _ACEOF
6497 rm -f conftest$ac_exeext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504 (eval $ac_try) 2>&5
6505 ac_status=$?
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 ac_cv_sizeof_long_long=`cat conftest.val`
6509 else
6510 echo "$as_me: program exited with status $ac_status" >&5
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 ( exit $ac_status )
6515 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6516 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6518 See \`config.log' for more details." >&5
6519 echo "$as_me: error: cannot compute sizeof (long long), 77
6520 See \`config.log' for more details." >&2;}
6521 { (exit 1); exit 1; }; }; }
6523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6526 rm -f conftest.val
6527 else
6528 ac_cv_sizeof_long_long=0
6531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6532 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6533 cat >>confdefs.h <<_ACEOF
6534 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6535 _ACEOF
6540 echo "$as_me:$LINENO: checking for __int64" >&5
6541 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6542 if test "${ac_cv_type___int64+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 cat >conftest.$ac_ext <<_ACEOF
6546 /* confdefs.h. */
6547 _ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6553 main ()
6555 if ((__int64 *) 0)
6556 return 0;
6557 if (sizeof (__int64))
6558 return 0;
6560 return 0;
6562 _ACEOF
6563 rm -f conftest.$ac_objext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6565 (eval $ac_compile) 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_type___int64=yes
6586 else
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_cv_type___int64=no
6592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6595 echo "${ECHO_T}$ac_cv_type___int64" >&6
6596 if test $ac_cv_type___int64 = yes; then
6598 cat >>confdefs.h <<_ACEOF
6599 #define HAVE___INT64 1
6600 _ACEOF
6602 echo "$as_me:$LINENO: checking for __int64" >&5
6603 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6604 if test "${ac_cv_type___int64+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607 cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h. */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 $ac_includes_default
6615 main ()
6617 if ((__int64 *) 0)
6618 return 0;
6619 if (sizeof (__int64))
6620 return 0;
6622 return 0;
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627 (eval $ac_compile) 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } &&
6634 { ac_try='test -z "$ac_c_werror_flag"
6635 || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest.$ac_objext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_type___int64=yes
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_type___int64=no
6654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6657 echo "${ECHO_T}$ac_cv_type___int64" >&6
6659 echo "$as_me:$LINENO: checking size of __int64" >&5
6660 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6661 if test "${ac_cv_sizeof___int64+set}" = set; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664 if test "$ac_cv_type___int64" = yes; then
6665 # The cast to unsigned long works around a bug in the HP C Compiler
6666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6668 # This bug is HP SR number 8606223364.
6669 if test "$cross_compiling" = yes; then
6670 # Depending upon the size, compute the lo and hi bounds.
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 $ac_includes_default
6679 main ()
6681 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6682 test_array [0] = 0
6685 return 0;
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
6691 ac_status=$?
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
6697 { ac_try='test -z "$ac_c_werror_flag"
6698 || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_lo=0 ac_mid=0
6711 while :; do
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 $ac_includes_default
6720 main ()
6722 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6723 test_array [0] = 0
6726 return 0;
6728 _ACEOF
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_hi=$ac_mid; break
6752 else
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ac_lo=`expr $ac_mid + 1`
6757 if test $ac_lo -le $ac_mid; then
6758 ac_lo= ac_hi=
6759 break
6761 ac_mid=`expr 2 '*' $ac_mid + 1`
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 done
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_includes_default
6777 main ()
6779 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6780 test_array [0] = 0
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6788 (eval $ac_compile) 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798 (eval $ac_try) 2>&5
6799 ac_status=$?
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try='test -s conftest.$ac_objext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_hi=-1 ac_mid=-1
6809 while :; do
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 $ac_includes_default
6818 main ()
6820 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6821 test_array [0] = 0
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_lo=$ac_mid; break
6850 else
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_hi=`expr '(' $ac_mid ')' - 1`
6855 if test $ac_mid -le $ac_hi; then
6856 ac_lo= ac_hi=
6857 break
6859 ac_mid=`expr 2 '*' $ac_mid`
6861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6862 done
6863 else
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_lo= ac_hi=
6869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 # Binary search between lo and hi bounds.
6873 while test "x$ac_lo" != "x$ac_hi"; do
6874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6883 main ()
6885 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6886 test_array [0] = 0
6889 return 0;
6891 _ACEOF
6892 rm -f conftest.$ac_objext
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } &&
6901 { ac_try='test -z "$ac_c_werror_flag"
6902 || test ! -s conftest.err'
6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904 (eval $ac_try) 2>&5
6905 ac_status=$?
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; } &&
6908 { ac_try='test -s conftest.$ac_objext'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 ac_hi=$ac_mid
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_lo=`expr '(' $ac_mid ')' + 1`
6921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922 done
6923 case $ac_lo in
6924 ?*) ac_cv_sizeof___int64=$ac_lo;;
6925 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6928 See \`config.log' for more details." >&5
6929 echo "$as_me: error: cannot compute sizeof (__int64), 77
6930 See \`config.log' for more details." >&2;}
6931 { (exit 1); exit 1; }; }; } ;;
6932 esac
6933 else
6934 if test "$cross_compiling" = yes; then
6935 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6936 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6938 See \`config.log' for more details." >&5
6939 echo "$as_me: error: cannot run test program while cross compiling
6940 See \`config.log' for more details." >&2;}
6941 { (exit 1); exit 1; }; }; }
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 long longval () { return (long) (sizeof (__int64)); }
6951 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6952 #include <stdio.h>
6953 #include <stdlib.h>
6955 main ()
6958 FILE *f = fopen ("conftest.val", "w");
6959 if (! f)
6960 exit (1);
6961 if (((long) (sizeof (__int64))) < 0)
6963 long i = longval ();
6964 if (i != ((long) (sizeof (__int64))))
6965 exit (1);
6966 fprintf (f, "%ld\n", i);
6968 else
6970 unsigned long i = ulongval ();
6971 if (i != ((long) (sizeof (__int64))))
6972 exit (1);
6973 fprintf (f, "%lu\n", i);
6975 exit (ferror (f) || fclose (f) != 0);
6978 return 0;
6980 _ACEOF
6981 rm -f conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983 (eval $ac_link) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_sizeof___int64=`cat conftest.val`
6993 else
6994 echo "$as_me: program exited with status $ac_status" >&5
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ( exit $ac_status )
6999 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7000 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7002 See \`config.log' for more details." >&5
7003 echo "$as_me: error: cannot compute sizeof (__int64), 77
7004 See \`config.log' for more details." >&2;}
7005 { (exit 1); exit 1; }; }; }
7007 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7010 rm -f conftest.val
7011 else
7012 ac_cv_sizeof___int64=0
7015 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7016 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7017 cat >>confdefs.h <<_ACEOF
7018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7019 _ACEOF
7025 # ---------------------
7026 # Warnings and checking
7027 # ---------------------
7029 # Check $CC warning features (if it's GCC).
7030 # We want to use -pedantic, but we don't want warnings about
7031 # * 'long long'
7032 # * variadic macros
7033 # * overlong strings
7034 # So, we only use -pedantic if we can disable those warnings.
7036 loose_warn=
7037 save_CFLAGS="$CFLAGS"
7038 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual; do
7039 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7041 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7042 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7043 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 CFLAGS="$option"
7047 cat >conftest.$ac_ext <<_ACEOF
7048 /* confdefs.h. */
7049 _ACEOF
7050 cat confdefs.h >>conftest.$ac_ext
7051 cat >>conftest.$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7055 main ()
7059 return 0;
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 eval "$as_acx_Woption=yes"
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 eval "$as_acx_Woption=no"
7091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7096 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7097 loose_warn="$loose_warn${loose_warn:+ }$option"
7100 done
7101 CFLAGS="$save_CFLAGS"
7103 strict_warn=
7104 save_CFLAGS="$CFLAGS"
7105 for option in -Wold-style-definition -Wc++-compat -Wmissing-format-attribute; do
7106 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7109 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7110 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 CFLAGS="$option"
7114 cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h. */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7122 main ()
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>conftest.er1
7132 ac_status=$?
7133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
7138 { ac_try='test -z "$ac_c_werror_flag"
7139 || test ! -s conftest.err'
7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 (eval $ac_try) 2>&5
7142 ac_status=$?
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; } &&
7145 { ac_try='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 eval "$as_acx_Woption=yes"
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 eval "$as_acx_Woption=no"
7158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7162 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7163 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7164 strict_warn="$strict_warn${strict_warn:+ }$option"
7167 done
7168 CFLAGS="$save_CFLAGS"
7170 if test "$GCC" = yes; then
7171 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7172 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7173 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 save_CFLAGS="$CFLAGS"
7177 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7186 main ()
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7223 CFLAGS="$save_CFLAGS"
7225 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7226 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7227 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7228 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7235 # Check whether --enable-werror-always or --disable-werror-always was given.
7236 if test "${enable_werror_always+set}" = set; then
7237 enableval="$enable_werror_always"
7239 else
7240 enable_werror_always=no
7242 if test $enable_werror_always = yes; then
7243 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7249 # The above macros do nothing if the compiler is not GCC. However, the
7250 # Makefile has more goo to add other flags, so this variabl is used to
7251 # enables warnings only for GCC.
7252 warn_cflags=
7253 if test "x$GCC" = "xyes"; then
7254 warn_cflags='$(GCC_WARN_CFLAGS)'
7258 # Enable expensive internal checks
7259 is_release=
7260 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7261 is_release=yes
7264 # Check whether --enable-checking or --disable-checking was given.
7265 if test "${enable_checking+set}" = set; then
7266 enableval="$enable_checking"
7267 ac_checking_flags="${enableval}"
7268 else
7270 # Determine the default checks.
7271 if test x$is_release = x ; then
7272 ac_checking_flags=yes
7273 else
7274 ac_checking_flags=release
7277 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7278 for check in release $ac_checking_flags
7280 case $check in
7281 # these set all the flags to specific states
7282 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7283 ac_fold_checking= ; ac_gc_checking=1 ;
7284 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7285 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7286 ac_tree_checking=1 ; ac_valgrind_checking= ;
7287 ac_types_checking=1 ;;
7288 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7289 ac_fold_checking= ; ac_gc_checking= ;
7290 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7291 ac_rtlflag_checking= ; ac_runtime_checking= ;
7292 ac_tree_checking= ; ac_valgrind_checking= ;
7293 ac_types_checking= ;;
7294 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7295 ac_fold_checking=1 ; ac_gc_checking=1 ;
7296 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7297 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7298 ac_tree_checking=1 ; ac_valgrind_checking= ;
7299 ac_types_checking=1 ;;
7300 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7301 ac_fold_checking= ; ac_gc_checking= ;
7302 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7303 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7304 ac_tree_checking= ; ac_valgrind_checking= ;
7305 ac_types_checking= ;;
7306 # these enable particular checks
7307 assert) ac_assert_checking=1 ;;
7308 df) ac_df_checking=1 ;;
7309 fold) ac_fold_checking=1 ;;
7310 gc) ac_gc_checking=1 ;;
7311 gcac) ac_gc_always_collect=1 ;;
7312 gimple) ac_gimple_checking=1 ;;
7313 misc) ac_checking=1 ;;
7314 rtl) ac_rtl_checking=1 ;;
7315 rtlflag) ac_rtlflag_checking=1 ;;
7316 runtime) ac_runtime_checking=1 ;;
7317 tree) ac_tree_checking=1 ;;
7318 types) ac_types_checking=1 ;;
7319 valgrind) ac_valgrind_checking=1 ;;
7320 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7321 echo "$as_me: error: unknown check category $check" >&2;}
7322 { (exit 1); exit 1; }; } ;;
7323 esac
7324 done
7325 IFS="$ac_save_IFS"
7327 nocommon_flag=""
7328 if test x$ac_checking != x ; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define ENABLE_CHECKING 1
7332 _ACEOF
7334 nocommon_flag=-fno-common
7337 if test x$ac_df_checking != x ; then
7339 cat >>confdefs.h <<\_ACEOF
7340 #define ENABLE_DF_CHECKING 1
7341 _ACEOF
7344 if test x$ac_assert_checking != x ; then
7346 cat >>confdefs.h <<\_ACEOF
7347 #define ENABLE_ASSERT_CHECKING 1
7348 _ACEOF
7351 if test x$ac_gimple_checking != x ; then
7353 cat >>confdefs.h <<\_ACEOF
7354 #define ENABLE_GIMPLE_CHECKING 1
7355 _ACEOF
7359 if test x$ac_runtime_checking != x ; then
7361 cat >>confdefs.h <<\_ACEOF
7362 #define ENABLE_RUNTIME_CHECKING 1
7363 _ACEOF
7366 if test x$ac_tree_checking != x ; then
7368 cat >>confdefs.h <<\_ACEOF
7369 #define ENABLE_TREE_CHECKING 1
7370 _ACEOF
7372 TREEBROWSER=tree-browser.o
7374 if test x$ac_types_checking != x ; then
7376 cat >>confdefs.h <<\_ACEOF
7377 #define ENABLE_TYPES_CHECKING 1
7378 _ACEOF
7382 if test x$ac_rtl_checking != x ; then
7384 cat >>confdefs.h <<\_ACEOF
7385 #define ENABLE_RTL_CHECKING 1
7386 _ACEOF
7389 if test x$ac_rtlflag_checking != x ; then
7391 cat >>confdefs.h <<\_ACEOF
7392 #define ENABLE_RTL_FLAG_CHECKING 1
7393 _ACEOF
7396 if test x$ac_gc_checking != x ; then
7398 cat >>confdefs.h <<\_ACEOF
7399 #define ENABLE_GC_CHECKING 1
7400 _ACEOF
7403 if test x$ac_gc_always_collect != x ; then
7405 cat >>confdefs.h <<\_ACEOF
7406 #define ENABLE_GC_ALWAYS_COLLECT 1
7407 _ACEOF
7410 if test x$ac_fold_checking != x ; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define ENABLE_FOLD_CHECKING 1
7414 _ACEOF
7417 valgrind_path_defines=
7418 valgrind_command=
7420 if test "${ac_cv_header_valgrind_h+set}" = set; then
7421 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7422 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7423 if test "${ac_cv_header_valgrind_h+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7427 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7428 else
7429 # Is the header compilable?
7430 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7431 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h. */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 $ac_includes_default
7439 #include <valgrind.h>
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443 (eval $ac_compile) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag"
7451 || test ! -s conftest.err'
7452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 (eval $ac_try) 2>&5
7454 ac_status=$?
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); }; } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459 (eval $ac_try) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_header_compiler=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_compiler=no
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7472 echo "${ECHO_T}$ac_header_compiler" >&6
7474 # Is the header present?
7475 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7476 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <valgrind.h>
7484 _ACEOF
7485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } >/dev/null; then
7493 if test -s conftest.err; then
7494 ac_cpp_err=$ac_c_preproc_warn_flag
7495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7496 else
7497 ac_cpp_err=
7499 else
7500 ac_cpp_err=yes
7502 if test -z "$ac_cpp_err"; then
7503 ac_header_preproc=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_header_preproc=no
7510 rm -f conftest.err conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7512 echo "${ECHO_T}$ac_header_preproc" >&6
7514 # So? What about this header?
7515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7516 yes:no: )
7517 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7518 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7520 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7521 ac_header_preproc=yes
7523 no:yes:* )
7524 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7525 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7526 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7527 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7528 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7529 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7530 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7531 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7533 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7535 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7537 cat <<\_ASBOX
7538 ## ------------------------------------------ ##
7539 ## Report this to the AC_PACKAGE_NAME lists. ##
7540 ## ------------------------------------------ ##
7541 _ASBOX
7543 sed "s/^/$as_me: WARNING: /" >&2
7545 esac
7546 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7547 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7548 if test "${ac_cv_header_valgrind_h+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 ac_cv_header_valgrind_h=$ac_header_preproc
7553 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7554 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7557 if test $ac_cv_header_valgrind_h = yes; then
7558 have_valgrind_h=yes
7559 else
7560 have_valgrind_h=no
7565 if test x$ac_valgrind_checking != x ; then
7566 # It is certainly possible that there's valgrind but no valgrind.h.
7567 # GCC relies on making annotations so we must have both.
7568 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7569 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 #include <valgrind/memcheck.h>
7577 #ifndef VALGRIND_DISCARD
7578 #error VALGRIND_DISCARD not defined
7579 #endif
7580 _ACEOF
7581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } >/dev/null; then
7589 if test -s conftest.err; then
7590 ac_cpp_err=$ac_c_preproc_warn_flag
7591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7592 else
7593 ac_cpp_err=
7595 else
7596 ac_cpp_err=yes
7598 if test -z "$ac_cpp_err"; then
7599 gcc_cv_header_valgrind_memcheck_h=yes
7600 else
7601 echo "$as_me: failed program was:" >&5
7602 sed 's/^/| /' conftest.$ac_ext >&5
7604 gcc_cv_header_valgrind_memcheck_h=no
7606 rm -f conftest.err conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7608 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7609 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7610 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include <memcheck.h>
7618 #ifndef VALGRIND_DISCARD
7619 #error VALGRIND_DISCARD not defined
7620 #endif
7621 _ACEOF
7622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } >/dev/null; then
7630 if test -s conftest.err; then
7631 ac_cpp_err=$ac_c_preproc_warn_flag
7632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7633 else
7634 ac_cpp_err=
7636 else
7637 ac_cpp_err=yes
7639 if test -z "$ac_cpp_err"; then
7640 gcc_cv_header_memcheck_h=yes
7641 else
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 gcc_cv_header_memcheck_h=no
7647 rm -f conftest.err conftest.$ac_ext
7648 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7649 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7651 # Prepare PATH_SEPARATOR.
7652 # The user is always right.
7653 if test "${PATH_SEPARATOR+set}" != set; then
7654 echo "#! /bin/sh" >conf$$.sh
7655 echo "exit 0" >>conf$$.sh
7656 chmod +x conf$$.sh
7657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7658 PATH_SEPARATOR=';'
7659 else
7660 PATH_SEPARATOR=:
7662 rm -f conf$$.sh
7665 # Find out how to test for executable files. Don't use a zero-byte file,
7666 # as systems may use methods other than mode bits to determine executability.
7667 cat >conf$$.file <<_ASEOF
7668 #! /bin/sh
7669 exit 0
7670 _ASEOF
7671 chmod +x conf$$.file
7672 if test -x conf$$.file >/dev/null 2>&1; then
7673 ac_executable_p="test -x"
7674 else
7675 ac_executable_p="test -f"
7677 rm -f conf$$.file
7679 # Extract the first word of "valgrind", so it can be a program name with args.
7680 set dummy valgrind; ac_word=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_path_valgrind_path+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686 case "$valgrind_path" in
7687 [\\/]* | ?:[\\/]*)
7688 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7691 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7692 for ac_dir in $PATH; do
7693 IFS="$ac_save_IFS"
7694 test -z "$ac_dir" && ac_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7697 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7698 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7699 break 2
7702 done
7703 done
7704 IFS="$ac_save_IFS"
7706 esac
7708 valgrind_path="$ac_cv_path_valgrind_path"
7709 if test -n "$valgrind_path"; then
7710 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7711 echo "${ECHO_T}$valgrind_path" >&6
7712 else
7713 echo "$as_me:$LINENO: result: no" >&5
7714 echo "${ECHO_T}no" >&6
7717 if test "x$valgrind_path" = "x" \
7718 || (test $have_valgrind_h = no \
7719 && test $gcc_cv_header_memcheck_h = no \
7720 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7721 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7722 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7723 { (exit 1); exit 1; }; }
7725 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7726 valgrind_command="$valgrind_path -q"
7728 cat >>confdefs.h <<\_ACEOF
7729 #define ENABLE_VALGRIND_CHECKING 1
7730 _ACEOF
7732 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_VALGRIND_MEMCHECK_H 1
7736 _ACEOF
7739 if test $gcc_cv_header_memcheck_h = yes; then
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_MEMCHECK_H 1
7743 _ACEOF
7750 # Enable code coverage collection
7751 # Check whether --enable-coverage or --disable-coverage was given.
7752 if test "${enable_coverage+set}" = set; then
7753 enableval="$enable_coverage"
7754 case "${enableval}" in
7755 yes|noopt)
7756 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7758 opt)
7759 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7762 # a.k.a. --disable-coverage
7763 coverage_flags=""
7766 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7767 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7768 { (exit 1); exit 1; }; }
7770 esac
7771 else
7772 coverage_flags=""
7776 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7777 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7778 enableval="$enable_gather_detailed_mem_stats"
7780 else
7781 enable_gather_detailed_mem_stats=no
7783 if test x$enable_gather_detailed_mem_stats = xyes ; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define GATHER_STATISTICS 1
7787 _ACEOF
7791 # -------------------------------
7792 # Miscenalleous configure options
7793 # -------------------------------
7795 # With stabs
7797 # Check whether --with-stabs or --without-stabs was given.
7798 if test "${with_stabs+set}" = set; then
7799 withval="$with_stabs"
7800 stabs="$with_stabs"
7801 else
7802 stabs=no
7805 # Determine whether or not multilibs are enabled.
7806 # Check whether --enable-multilib or --disable-multilib was given.
7807 if test "${enable_multilib+set}" = set; then
7808 enableval="$enable_multilib"
7810 else
7811 enable_multilib=yes
7815 # Enable __cxa_atexit for C++.
7816 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7817 if test "${enable___cxa_atexit+set}" = set; then
7818 enableval="$enable___cxa_atexit"
7822 # Enable C extension for decimal float if target supports it.
7823 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7824 if test "${enable_decimal_float+set}" = set; then
7825 enableval="$enable_decimal_float"
7827 case $enable_decimal_float in
7828 yes | no | bid | dpd) ;;
7829 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7830 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7831 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7832 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7833 { (exit 1); exit 1; }; } ;;
7834 esac
7836 else
7838 case $target in
7839 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7840 enable_decimal_float=yes
7843 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7844 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7845 enable_decimal_float=no
7847 esac
7851 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7853 cat >>confdefs.h <<_ACEOF
7854 #define ENABLE_DECIMAL_FLOAT $dfp
7855 _ACEOF
7858 # x86's use BID format instead of DPD
7859 case x$enable_decimal_float in
7860 xyes)
7861 case $target in
7862 i?86*-*-linux* | x86_64*-*-linux*)
7863 enable_decimal_float=bid
7866 enable_decimal_float=dpd
7868 esac
7870 xno)
7871 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7872 # dependency on libdecnumber.
7873 enable_decimal_float=dpd
7875 esac
7878 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7880 cat >>confdefs.h <<_ACEOF
7881 #define ENABLE_DECIMAL_BID_FORMAT $bid
7882 _ACEOF
7885 # Enable C extension for fixed-point arithmetic.
7886 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7887 if test "${enable_fixed_point+set}" = set; then
7888 enableval="$enable_fixed_point"
7891 else
7893 case $target in
7894 mips*-*-*)
7895 case $host in
7896 mips*-sgi-irix*)
7897 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7898 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7899 enable_fixed_point=no
7902 enable_fixed_point=yes
7904 esac
7907 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7908 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7909 enable_fixed_point=no
7911 esac
7916 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7918 cat >>confdefs.h <<_ACEOF
7919 #define ENABLE_FIXED_POINT $fixedpoint
7920 _ACEOF
7923 # Enable threads
7924 # Pass with no value to take the default
7925 # Pass with a value to specify a thread package
7926 # Check whether --enable-threads or --disable-threads was given.
7927 if test "${enable_threads+set}" = set; then
7928 enableval="$enable_threads"
7930 else
7931 enable_threads=''
7934 # Check whether --enable-tls or --disable-tls was given.
7935 if test "${enable_tls+set}" = set; then
7936 enableval="$enable_tls"
7938 case $enable_tls in
7939 yes | no) ;;
7940 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7941 Valid choices are 'yes' and 'no'." >&5
7942 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7943 Valid choices are 'yes' and 'no'." >&2;}
7944 { (exit 1); exit 1; }; } ;;
7945 esac
7947 else
7948 enable_tls=''
7951 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7952 if test "${enable_objc_gc+set}" = set; then
7953 enableval="$enable_objc_gc"
7954 if test x$enable_objc_gc = xno; then
7955 objc_boehm_gc=''
7956 else
7957 objc_boehm_gc=1
7959 else
7960 objc_boehm_gc=''
7964 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7965 if test "${with_dwarf2+set}" = set; then
7966 withval="$with_dwarf2"
7967 dwarf2="$with_dwarf2"
7968 else
7969 dwarf2=no
7972 # Check whether --enable-shared or --disable-shared was given.
7973 if test "${enable_shared+set}" = set; then
7974 enableval="$enable_shared"
7976 case $enable_shared in
7977 yes | no) ;;
7979 enable_shared=no
7980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7981 for pkg in $enableval; do
7982 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7983 enable_shared=yes
7985 done
7986 IFS="$ac_save_ifs"
7988 esac
7990 else
7991 enable_shared=yes
7996 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7997 if test "${with_build_sysroot+set}" = set; then
7998 withval="$with_build_sysroot"
8003 # Check whether --with-sysroot or --without-sysroot was given.
8004 if test "${with_sysroot+set}" = set; then
8005 withval="$with_sysroot"
8007 case ${with_sysroot} in
8008 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8009 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8010 esac
8012 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8013 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8015 if test "x$prefix" = xNONE; then
8016 test_prefix=/usr/local
8017 else
8018 test_prefix=$prefix
8020 if test "x$exec_prefix" = xNONE; then
8021 test_exec_prefix=$test_prefix
8022 else
8023 test_exec_prefix=$exec_prefix
8025 case ${TARGET_SYSTEM_ROOT} in
8026 "${test_prefix}"|"${test_prefix}/"*|\
8027 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8028 '${prefix}'|'${prefix}/'*|\
8029 '${exec_prefix}'|'${exec_prefix}/'*)
8030 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8031 TARGET_SYSTEM_ROOT_DEFINE="$t"
8033 esac
8035 else
8037 TARGET_SYSTEM_ROOT=
8038 TARGET_SYSTEM_ROOT_DEFINE=
8039 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8046 # Build with intermodule optimisations
8047 # Check whether --enable-intermodule or --disable-intermodule was given.
8048 if test "${enable_intermodule+set}" = set; then
8049 enableval="$enable_intermodule"
8050 case ${enable_intermodule} in
8051 yes) onestep="-onestep";;
8052 *) onestep="";;
8053 esac
8054 else
8055 onestep=""
8061 # Check whether --with-pkgversion or --without-pkgversion was given.
8062 if test "${with_pkgversion+set}" = set; then
8063 withval="$with_pkgversion"
8064 case "$withval" in
8065 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8066 echo "$as_me: error: package version not specified" >&2;}
8067 { (exit 1); exit 1; }; } ;;
8068 no) PKGVERSION= ;;
8069 *) PKGVERSION="($withval) " ;;
8070 esac
8071 else
8072 PKGVERSION="(GCC) "
8079 # Check whether --with-bugurl or --without-bugurl was given.
8080 if test "${with_bugurl+set}" = set; then
8081 withval="$with_bugurl"
8082 case "$withval" in
8083 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8084 echo "$as_me: error: bug URL not specified" >&2;}
8085 { (exit 1); exit 1; }; } ;;
8086 no) BUGURL=
8088 *) BUGURL="$withval"
8090 esac
8091 else
8092 BUGURL="http://gcc.gnu.org/bugs.html"
8095 case ${BUGURL} in
8097 REPORT_BUGS_TO=
8098 REPORT_BUGS_TEXI=
8101 REPORT_BUGS_TO="<$BUGURL>"
8102 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8104 esac;
8109 # Sanity check enable_languages in case someone does not run the toplevel
8110 # configure # script.
8111 # Check whether --enable-languages or --disable-languages was given.
8112 if test "${enable_languages+set}" = set; then
8113 enableval="$enable_languages"
8114 case ,${enable_languages}, in
8115 ,,|,yes,)
8116 # go safe -- we cannot be much sure without the toplevel
8117 # configure's
8118 # analysis of which target libs are present and usable
8119 enable_languages=c
8121 *,all,*)
8122 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8123 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8124 { (exit 1); exit 1; }; }
8126 *,c,*)
8129 enable_languages=c,${enable_languages}
8131 esac
8132 else
8133 enable_languages=c
8136 # Used by documentation targets
8141 # -------------------------
8142 # Checks for other programs
8143 # -------------------------
8145 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8146 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8147 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8148 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151 cat >conftest.make <<\_ACEOF
8152 all:
8153 @echo 'ac_maketemp="$(MAKE)"'
8154 _ACEOF
8155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8156 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8157 if test -n "$ac_maketemp"; then
8158 eval ac_cv_prog_make_${ac_make}_set=yes
8159 else
8160 eval ac_cv_prog_make_${ac_make}_set=no
8162 rm -f conftest.make
8164 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8165 echo "$as_me:$LINENO: result: yes" >&5
8166 echo "${ECHO_T}yes" >&6
8167 SET_MAKE=
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6
8171 SET_MAKE="MAKE=${MAKE-make}"
8175 # Find some useful tools
8176 for ac_prog in gawk mawk nawk awk
8178 # Extract the first word of "$ac_prog", so it can be a program name with args.
8179 set dummy $ac_prog; ac_word=$2
8180 echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8182 if test "${ac_cv_prog_AWK+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 else
8185 if test -n "$AWK"; then
8186 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8195 ac_cv_prog_AWK="$ac_prog"
8196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8204 AWK=$ac_cv_prog_AWK
8205 if test -n "$AWK"; then
8206 echo "$as_me:$LINENO: result: $AWK" >&5
8207 echo "${ECHO_T}$AWK" >&6
8208 else
8209 echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6
8213 test -n "$AWK" && break
8214 done
8216 # We need awk to create options.c and options.h.
8217 # Bail out if it's missing.
8218 case ${AWK} in
8219 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8220 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8221 { (exit 1); exit 1; }; } ;;
8222 esac
8224 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8225 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8226 if test "${gcc_cv_prog_LN_S+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 rm -f conftestdata_t
8230 echo >conftestdata_f
8231 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8232 then
8233 gcc_cv_prog_LN_S="ln -s"
8234 else
8235 if ln conftestdata_f conftestdata_t 2>/dev/null
8236 then
8237 gcc_cv_prog_LN_S=ln
8238 else
8239 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8240 then
8241 gcc_cv_prog_LN_S="cp -p"
8242 else
8243 gcc_cv_prog_LN_S=cp
8247 rm -f conftestdata_f conftestdata_t
8250 LN_S="$gcc_cv_prog_LN_S"
8251 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8252 echo "$as_me:$LINENO: result: yes" >&5
8253 echo "${ECHO_T}yes" >&6
8254 else
8255 if test "$gcc_cv_prog_LN_S" = "ln"; then
8256 echo "$as_me:$LINENO: result: no, using ln" >&5
8257 echo "${ECHO_T}no, using ln" >&6
8258 else
8259 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8260 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8264 echo "$as_me:$LINENO: checking whether ln works" >&5
8265 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8266 if test "${acx_cv_prog_LN+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 rm -f conftestdata_t
8270 echo >conftestdata_f
8271 if ln conftestdata_f conftestdata_t 2>/dev/null
8272 then
8273 acx_cv_prog_LN=ln
8274 else
8275 acx_cv_prog_LN=no
8277 rm -f conftestdata_f conftestdata_t
8280 if test $acx_cv_prog_LN = no; then
8281 LN="$LN_S"
8282 echo "$as_me:$LINENO: result: no, using $LN" >&5
8283 echo "${ECHO_T}no, using $LN" >&6
8284 else
8285 LN="$acx_cv_prog_LN"
8286 echo "$as_me:$LINENO: result: yes" >&5
8287 echo "${ECHO_T}yes" >&6
8290 if test -n "$ac_tool_prefix"; then
8291 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8293 echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8295 if test "${ac_cv_prog_RANLIB+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 if test -n "$RANLIB"; then
8299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8312 done
8313 done
8317 RANLIB=$ac_cv_prog_RANLIB
8318 if test -n "$RANLIB"; then
8319 echo "$as_me:$LINENO: result: $RANLIB" >&5
8320 echo "${ECHO_T}$RANLIB" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323 echo "${ECHO_T}no" >&6
8327 if test -z "$ac_cv_prog_RANLIB"; then
8328 ac_ct_RANLIB=$RANLIB
8329 # Extract the first word of "ranlib", so it can be a program name with args.
8330 set dummy ranlib; ac_word=$2
8331 echo "$as_me:$LINENO: checking for $ac_word" >&5
8332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8333 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336 if test -n "$ac_ct_RANLIB"; then
8337 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8338 else
8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340 for as_dir in $PATH
8342 IFS=$as_save_IFS
8343 test -z "$as_dir" && as_dir=.
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_ac_ct_RANLIB="ranlib"
8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 break 2
8350 done
8351 done
8353 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8356 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8357 if test -n "$ac_ct_RANLIB"; then
8358 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8359 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8360 else
8361 echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8365 RANLIB=$ac_ct_RANLIB
8366 else
8367 RANLIB="$ac_cv_prog_RANLIB"
8370 case "${host}" in
8371 *-*-darwin*)
8372 # By default, the Darwin ranlib will not treat common symbols as
8373 # definitions when building the archive table of contents. Other
8374 # ranlibs do that; pass an option to the Darwin ranlib that makes
8375 # it behave similarly.
8376 ranlib_flags="-c"
8379 ranlib_flags=""
8380 esac
8383 # Find a good install program. We prefer a C program (faster),
8384 # so one script is as good as another. But avoid the broken or
8385 # incompatible versions:
8386 # SysV /etc/install, /usr/sbin/install
8387 # SunOS /usr/etc/install
8388 # IRIX /sbin/install
8389 # AIX /bin/install
8390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8392 # ./install, which can be erroneously created by make from ./install.sh.
8393 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8394 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8395 if test -z "$INSTALL"; then
8396 if test "${ac_cv_path_install+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8400 for ac_dir in $PATH; do
8401 # Account for people who put trailing slashes in PATH elements.
8402 case "$ac_dir/" in
8403 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8405 # OSF1 and SCO ODT 3.0 have their own names for install.
8406 for ac_prog in ginstall scoinst install; do
8407 if test -f $ac_dir/$ac_prog; then
8408 if test $ac_prog = install &&
8409 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8410 # AIX install. It has an incompatible calling convention.
8411 # OSF/1 installbsd also uses dspmsg, but is usable.
8413 else
8414 ac_cv_path_install="$ac_dir/$ac_prog -c"
8415 break 2
8418 done
8420 esac
8421 done
8422 IFS="$ac_save_IFS"
8425 if test "${ac_cv_path_install+set}" = set; then
8426 INSTALL="$ac_cv_path_install"
8427 else
8428 # As a last resort, use the slow shell script. We don't cache a
8429 # path for INSTALL within a source directory, because that will
8430 # break other packages using the cache if that directory is
8431 # removed, or if the path is relative.
8432 INSTALL="$ac_install_sh"
8435 echo "$as_me:$LINENO: result: $INSTALL" >&5
8436 echo "${ECHO_T}$INSTALL" >&6
8438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8439 # It thinks the first close brace ends the variable substitution.
8440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8445 # See if cmp has --ignore-initial.
8446 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8447 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8448 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451 echo abfoo >t1
8452 echo cdfoo >t2
8453 gcc_cv_prog_cmp_skip=slowcompare
8454 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8455 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8457 else
8458 gcc_cv_prog_cmp_skip=gnucompare
8461 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8462 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8463 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8465 else
8466 gcc_cv_prog_cmp_skip=fastcompare
8470 rm t1 t2
8473 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8474 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8475 make_compare_target=$gcc_cv_prog_cmp_skip
8479 # See if we have the mktemp command.
8480 # Extract the first word of "mktemp", so it can be a program name with args.
8481 set dummy mktemp; ac_word=$2
8482 echo "$as_me:$LINENO: checking for $ac_word" >&5
8483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8484 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487 if test -n "$have_mktemp_command"; then
8488 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_have_mktemp_command="yes"
8498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8501 done
8502 done
8504 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8507 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8508 if test -n "$have_mktemp_command"; then
8509 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8510 echo "${ECHO_T}$have_mktemp_command" >&6
8511 else
8512 echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8517 # See if makeinfo has been installed and is modern enough
8518 # that we can use it.
8520 # Extract the first word of "makeinfo", so it can be a program name with args.
8521 set dummy makeinfo; ac_word=$2
8522 echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8524 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 if test -n "$MAKEINFO"; then
8528 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_MAKEINFO="makeinfo"
8538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8546 MAKEINFO=$ac_cv_prog_MAKEINFO
8547 if test -n "$MAKEINFO"; then
8548 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8549 echo "${ECHO_T}$MAKEINFO" >&6
8550 else
8551 echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8555 if test -n "$MAKEINFO"; then
8556 # Found it, now check the version.
8557 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8558 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8559 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8563 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8565 case $ac_prog_version in
8566 '') gcc_cv_prog_makeinfo_modern=no;;
8567 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8568 *) gcc_cv_prog_makeinfo_modern=no;;
8569 esac
8572 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8573 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8574 else
8575 gcc_cv_prog_makeinfo_modern=no
8577 if test $gcc_cv_prog_makeinfo_modern = no; then
8578 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8581 if test $gcc_cv_prog_makeinfo_modern = no; then
8582 { echo "$as_me:$LINENO: WARNING:
8583 *** Makeinfo is missing or too old.
8584 *** Info documentation will not be built." >&5
8585 echo "$as_me: WARNING:
8586 *** Makeinfo is missing or too old.
8587 *** Info documentation will not be built." >&2;}
8588 BUILD_INFO=
8589 else
8590 BUILD_INFO=info
8594 # Is pod2man recent enough to regenerate manpages?
8595 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8596 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8597 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8598 echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6
8600 GENERATED_MANPAGES=generated-manpages
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8604 GENERATED_MANPAGES=
8608 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8610 # How about lex?
8611 for ac_prog in flex
8613 # Extract the first word of "$ac_prog", so it can be a program name with args.
8614 set dummy $ac_prog; ac_word=$2
8615 echo "$as_me:$LINENO: checking for $ac_word" >&5
8616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8617 if test "${ac_cv_prog_FLEX+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 if test -n "$FLEX"; then
8621 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8622 else
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8630 ac_cv_prog_FLEX="$ac_prog"
8631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8634 done
8635 done
8639 FLEX=$ac_cv_prog_FLEX
8640 if test -n "$FLEX"; then
8641 echo "$as_me:$LINENO: result: $FLEX" >&5
8642 echo "${ECHO_T}$FLEX" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645 echo "${ECHO_T}no" >&6
8648 test -n "$FLEX" && break
8649 done
8650 test -n "$FLEX" || FLEX="$MISSING flex"
8653 # Bison?
8654 for ac_prog in bison
8656 # Extract the first word of "$ac_prog", so it can be a program name with args.
8657 set dummy $ac_prog; ac_word=$2
8658 echo "$as_me:$LINENO: checking for $ac_word" >&5
8659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8660 if test "${ac_cv_prog_BISON+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 if test -n "$BISON"; then
8664 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673 ac_cv_prog_BISON="$ac_prog"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2
8677 done
8678 done
8682 BISON=$ac_cv_prog_BISON
8683 if test -n "$BISON"; then
8684 echo "$as_me:$LINENO: result: $BISON" >&5
8685 echo "${ECHO_T}$BISON" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8691 test -n "$BISON" && break
8692 done
8693 test -n "$BISON" || BISON="$MISSING bison"
8696 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8697 # check for build == host before using them.
8699 # NM
8700 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8701 && test -d ../binutils ; then
8702 NM='$(objdir)/../binutils/nm-new'
8703 else
8704 # Extract the first word of "nm", so it can be a program name with args.
8705 set dummy nm; ac_word=$2
8706 echo "$as_me:$LINENO: checking for $ac_word" >&5
8707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8708 if test "${ac_cv_prog_NM+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 if test -n "$NM"; then
8712 ac_cv_prog_NM="$NM" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_NM="nm"
8722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8728 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8731 NM=$ac_cv_prog_NM
8732 if test -n "$NM"; then
8733 echo "$as_me:$LINENO: result: $NM" >&5
8734 echo "${ECHO_T}$NM" >&6
8735 else
8736 echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6
8742 # AR
8743 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8744 && test -d ../binutils ; then
8745 AR='$(objdir)/../binutils/ar'
8746 else
8747 # Extract the first word of "ar", so it can be a program name with args.
8748 set dummy ar; ac_word=$2
8749 echo "$as_me:$LINENO: checking for $ac_word" >&5
8750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8751 if test "${ac_cv_prog_AR+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 if test -n "$AR"; then
8755 ac_cv_prog_AR="$AR" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_AR="ar"
8765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8768 done
8769 done
8771 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8774 AR=$ac_cv_prog_AR
8775 if test -n "$AR"; then
8776 echo "$as_me:$LINENO: result: $AR" >&5
8777 echo "${ECHO_T}$AR" >&6
8778 else
8779 echo "$as_me:$LINENO: result: no" >&5
8780 echo "${ECHO_T}no" >&6
8786 # --------------------
8787 # Checks for C headers
8788 # --------------------
8790 # Need to reject headers which give warnings, so that the -Werror bootstrap
8791 # works later. *sigh* This needs to come before all header checks.
8793 ac_c_preproc_warn_flag=yes
8795 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8796 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8797 if test "${ac_cv_header_stdc+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h. */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 #include <stdlib.h>
8807 #include <stdarg.h>
8808 #include <string.h>
8809 #include <float.h>
8812 main ()
8816 return 0;
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8821 (eval $ac_compile) 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -z "$ac_c_werror_flag"
8829 || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 (eval $ac_try) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest.$ac_objext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 (eval $ac_try) 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 ac_cv_header_stdc=yes
8842 else
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_header_stdc=no
8848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8850 if test $ac_cv_header_stdc = yes; then
8851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 #include <string.h>
8860 _ACEOF
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862 $EGREP "memchr" >/dev/null 2>&1; then
8864 else
8865 ac_cv_header_stdc=no
8867 rm -f conftest*
8871 if test $ac_cv_header_stdc = yes; then
8872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h. */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <stdlib.h>
8881 _ACEOF
8882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 $EGREP "free" >/dev/null 2>&1; then
8885 else
8886 ac_cv_header_stdc=no
8888 rm -f conftest*
8892 if test $ac_cv_header_stdc = yes; then
8893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8894 if test "$cross_compiling" = yes; then
8896 else
8897 cat >conftest.$ac_ext <<_ACEOF
8898 /* confdefs.h. */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 #include <ctype.h>
8904 #if ((' ' & 0x0FF) == 0x020)
8905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8907 #else
8908 # define ISLOWER(c) \
8909 (('a' <= (c) && (c) <= 'i') \
8910 || ('j' <= (c) && (c) <= 'r') \
8911 || ('s' <= (c) && (c) <= 'z'))
8912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8913 #endif
8915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8917 main ()
8919 int i;
8920 for (i = 0; i < 256; i++)
8921 if (XOR (islower (i), ISLOWER (i))
8922 || toupper (i) != TOUPPER (i))
8923 exit(2);
8924 exit (0);
8926 _ACEOF
8927 rm -f conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
8939 else
8940 echo "$as_me: program exited with status $ac_status" >&5
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8944 ( exit $ac_status )
8945 ac_cv_header_stdc=no
8947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8952 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8953 if test $ac_cv_header_stdc = yes; then
8955 cat >>confdefs.h <<\_ACEOF
8956 #define STDC_HEADERS 1
8957 _ACEOF
8961 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8962 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8963 if test "${ac_cv_header_time+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h. */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8972 #include <sys/types.h>
8973 #include <sys/time.h>
8974 #include <time.h>
8977 main ()
8979 if ((struct tm *) 0)
8980 return 0;
8982 return 0;
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_cv_header_time=yes
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 ac_cv_header_time=no
9014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9017 echo "${ECHO_T}$ac_cv_header_time" >&6
9018 if test $ac_cv_header_time = yes; then
9020 cat >>confdefs.h <<\_ACEOF
9021 #define TIME_WITH_SYS_TIME 1
9022 _ACEOF
9026 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9027 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9028 if test "${gcc_cv_header_string+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 else
9031 cat >conftest.$ac_ext <<_ACEOF
9032 /* confdefs.h. */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 #include <string.h>
9038 #include <strings.h>
9040 main ()
9044 return 0;
9046 _ACEOF
9047 rm -f conftest.$ac_objext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9049 (eval $ac_compile) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -z "$ac_c_werror_flag"
9057 || test ! -s conftest.err'
9058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 (eval $ac_try) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); }; } &&
9063 { ac_try='test -s conftest.$ac_objext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 gcc_cv_header_string=yes
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 gcc_cv_header_string=no
9076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9079 echo "${ECHO_T}$gcc_cv_header_string" >&6
9080 if test $gcc_cv_header_string = yes; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define STRING_WITH_STRINGS 1
9084 _ACEOF
9088 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9089 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9090 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h. */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <sys/types.h>
9100 #include <sys/wait.h>
9101 #ifndef WEXITSTATUS
9102 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9103 #endif
9104 #ifndef WIFEXITED
9105 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9106 #endif
9109 main ()
9111 int s;
9112 wait (&s);
9113 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9115 return 0;
9117 _ACEOF
9118 rm -f conftest.$ac_objext
9119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>conftest.er1
9121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -z "$ac_c_werror_flag"
9128 || test ! -s conftest.err'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_header_sys_wait_h=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 ac_cv_header_sys_wait_h=no
9147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9150 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9151 if test $ac_cv_header_sys_wait_h = yes; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define HAVE_SYS_WAIT_H 1
9155 _ACEOF
9181 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9182 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9183 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9184 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9187 echo "$as_me:$LINENO: checking for $ac_header" >&5
9188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 #include <$ac_header>
9199 _ACEOF
9200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null; then
9208 if test -s conftest.err; then
9209 ac_cpp_err=$ac_c_preproc_warn_flag
9210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9211 else
9212 ac_cpp_err=
9214 else
9215 ac_cpp_err=yes
9217 if test -z "$ac_cpp_err"; then
9218 eval "$as_ac_Header=yes"
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 eval "$as_ac_Header=no"
9225 rm -f conftest.err conftest.$ac_ext
9227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9232 _ACEOF
9235 done
9238 # Check for thread headers.
9239 echo "$as_me:$LINENO: checking for thread.h" >&5
9240 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9241 if test "${ac_cv_header_thread_h+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 cat >conftest.$ac_ext <<_ACEOF
9245 /* confdefs.h. */
9246 _ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #include <thread.h>
9251 _ACEOF
9252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } >/dev/null; then
9260 if test -s conftest.err; then
9261 ac_cpp_err=$ac_c_preproc_warn_flag
9262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9263 else
9264 ac_cpp_err=
9266 else
9267 ac_cpp_err=yes
9269 if test -z "$ac_cpp_err"; then
9270 ac_cv_header_thread_h=yes
9271 else
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_header_thread_h=no
9277 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9280 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9281 if test $ac_cv_header_thread_h = yes; then
9282 have_thread_h=yes
9283 else
9284 have_thread_h=
9287 echo "$as_me:$LINENO: checking for pthread.h" >&5
9288 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9289 if test "${ac_cv_header_pthread_h+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h. */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 #include <pthread.h>
9299 _ACEOF
9300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311 else
9312 ac_cpp_err=
9314 else
9315 ac_cpp_err=yes
9317 if test -z "$ac_cpp_err"; then
9318 ac_cv_header_pthread_h=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_cv_header_pthread_h=no
9325 rm -f conftest.err conftest.$ac_ext
9327 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9328 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9329 if test $ac_cv_header_pthread_h = yes; then
9330 have_pthread_h=yes
9331 else
9332 have_pthread_h=
9336 # These tests can't be done till we know if we have limits.h.
9337 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9338 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9339 if test "${gcc_cv_decl_char_bit+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #ifdef HAVE_LIMITS_H
9349 #include <limits.h>
9350 #endif
9351 #ifdef CHAR_BIT
9352 found
9353 #endif
9354 _ACEOF
9355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9356 $EGREP "found" >/dev/null 2>&1; then
9357 gcc_cv_decl_char_bit=yes
9358 else
9359 gcc_cv_decl_char_bit=no
9361 rm -f conftest*
9365 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9366 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9367 if test $gcc_cv_decl_char_bit = no; then
9368 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9369 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9370 if test "${gcc_cv_c_nbby+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9374 gcc_cv_c_nbby=
9375 while test $i -lt 65; do
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9384 main ()
9386 switch(0) {
9387 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9388 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext
9395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 gcc_cv_c_nbby=$i; break
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9423 i=`expr $i + 1`
9424 done
9425 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9428 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9429 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9430 if test $gcc_cv_c_nbby = failed; then
9431 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9432 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9433 { (exit 1); exit 1; }; }
9434 else
9436 cat >>confdefs.h <<_ACEOF
9437 #define CHAR_BIT $gcc_cv_c_nbby
9438 _ACEOF
9442 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9443 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9444 if test "${ac_cv_c_bigendian+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447 # See if sys/param.h defines the BYTE_ORDER macro.
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h. */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 #include <sys/types.h>
9455 #include <sys/param.h>
9458 main ()
9460 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9461 bogus endian macros
9462 #endif
9465 return 0;
9467 _ACEOF
9468 rm -f conftest.$ac_objext
9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9470 (eval $ac_compile) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
9477 { ac_try='test -z "$ac_c_werror_flag"
9478 || test ! -s conftest.err'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 (eval $ac_try) 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; } &&
9484 { ac_try='test -s conftest.$ac_objext'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 # It does; now see whether it defined to BIG_ENDIAN or not.
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9498 #include <sys/param.h>
9501 main ()
9503 #if BYTE_ORDER != BIG_ENDIAN
9504 not big endian
9505 #endif
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest.$ac_objext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_c_bigendian=yes
9534 else
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_cv_c_bigendian=no
9540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9541 else
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9545 # It does not; compile a test program.
9546 if test "$cross_compiling" = yes; then
9547 # try to guess the endianness by grepping values into an object file
9548 ac_cv_c_bigendian=unknown
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9556 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9557 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9558 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9559 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9560 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9562 main ()
9564 _ascii (); _ebcdic ();
9566 return 0;
9568 _ACEOF
9569 rm -f conftest.$ac_objext
9570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9571 (eval $ac_compile) 2>conftest.er1
9572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
9578 { ac_try='test -z "$ac_c_werror_flag"
9579 || test ! -s conftest.err'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; } &&
9585 { ac_try='test -s conftest.$ac_objext'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 (eval $ac_try) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; }; then
9591 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9592 ac_cv_c_bigendian=yes
9594 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9595 if test "$ac_cv_c_bigendian" = unknown; then
9596 ac_cv_c_bigendian=no
9597 else
9598 # finding both strings is unlikely to happen, but who knows?
9599 ac_cv_c_bigendian=unknown
9602 else
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9608 else
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 main ()
9618 /* Are we little or big endian? From Harbison&Steele. */
9619 union
9621 long l;
9622 char c[sizeof (long)];
9623 } u;
9624 u.l = 1;
9625 exit (u.c[sizeof (long) - 1] == 1);
9627 _ACEOF
9628 rm -f conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_cv_c_bigendian=no
9640 else
9641 echo "$as_me: program exited with status $ac_status" >&5
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9645 ( exit $ac_status )
9646 ac_cv_c_bigendian=yes
9648 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9653 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9655 case $ac_cv_c_bigendian in
9656 yes)
9658 cat >>confdefs.h <<\_ACEOF
9659 #define WORDS_BIGENDIAN 1
9660 _ACEOF
9665 { { echo "$as_me:$LINENO: error: unknown endianness
9666 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9667 echo "$as_me: error: unknown endianness
9668 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9669 { (exit 1); exit 1; }; } ;;
9670 esac
9673 # --------
9674 # UNSORTED
9675 # --------
9678 # These libraries may be used by collect2.
9679 # We may need a special search path to get them linked.
9680 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9681 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9682 if test "${gcc_cv_collect2_libs+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 save_LIBS="$LIBS"
9686 for libs in '' -lld -lmld \
9687 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9688 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9690 LIBS="$libs"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any gcc2 internal prototype to avoid an error. */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9704 char ldopen ();
9706 main ()
9708 ldopen ();
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest$ac_exeext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 gcc_cv_collect2_libs="$libs"; break
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9741 rm -f conftest.err conftest.$ac_objext \
9742 conftest$ac_exeext conftest.$ac_ext
9743 done
9744 LIBS="$save_LIBS"
9745 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9747 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9748 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9749 case $gcc_cv_collect2_libs in
9750 "none required") ;;
9751 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9752 esac
9755 # When building Ada code on Alpha, we need exc_resume which is usually in
9756 # -lexc. So test for it.
9757 save_LIBS="$LIBS"
9758 LIBS=
9759 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9760 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9761 if test "${ac_cv_search_exc_resume+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 ac_func_search_save_LIBS=$LIBS
9765 ac_cv_search_exc_resume=no
9766 cat >conftest.$ac_ext <<_ACEOF
9767 /* confdefs.h. */
9768 _ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9773 /* Override any gcc2 internal prototype to avoid an error. */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 /* We use char because int might match the return type of a gcc2
9778 builtin and then its argument prototype would still apply. */
9779 char exc_resume ();
9781 main ()
9783 exc_resume ();
9785 return 0;
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790 (eval $ac_link) 2>conftest.er1
9791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag"
9798 || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_search_exc_resume="none required"
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 if test "$ac_cv_search_exc_resume" = no; then
9819 for ac_lib in exc; do
9820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834 char exc_resume ();
9836 main ()
9838 exc_resume ();
9840 return 0;
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9846 ac_status=$?
9847 grep -v '^ *+' conftest.er1 >conftest.err
9848 rm -f conftest.er1
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_search_exc_resume="-l$ac_lib"
9866 break
9867 else
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 done
9876 LIBS=$ac_func_search_save_LIBS
9878 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9879 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9880 if test "$ac_cv_search_exc_resume" != no; then
9881 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9885 GNAT_LIBEXC="$LIBS"
9886 LIBS="$save_LIBS"
9889 # Some systems put ldexp and frexp in libm instead of libc; assume
9890 # they're both in the same place. jcf-dump needs them.
9891 save_LIBS="$LIBS"
9892 LIBS=
9893 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9894 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9895 if test "${ac_cv_search_ldexp+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898 ac_func_search_save_LIBS=$LIBS
9899 ac_cv_search_ldexp=no
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any gcc2 internal prototype to avoid an error. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char ldexp ();
9915 main ()
9917 ldexp ();
9919 return 0;
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } &&
9931 { ac_try='test -z "$ac_c_werror_flag"
9932 || test ! -s conftest.err'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_search_ldexp="none required"
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9950 rm -f conftest.err conftest.$ac_objext \
9951 conftest$ac_exeext conftest.$ac_ext
9952 if test "$ac_cv_search_ldexp" = no; then
9953 for ac_lib in m; do
9954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 /* Override any gcc2 internal prototype to avoid an error. */
9963 #ifdef __cplusplus
9964 extern "C"
9965 #endif
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9968 char ldexp ();
9970 main ()
9972 ldexp ();
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979 (eval $ac_link) 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -z "$ac_c_werror_flag"
9987 || test ! -s conftest.err'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 (eval $ac_try) 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_search_ldexp="-l$ac_lib"
10000 break
10001 else
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10006 rm -f conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 done
10010 LIBS=$ac_func_search_save_LIBS
10012 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10013 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10014 if test "$ac_cv_search_ldexp" != no; then
10015 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10019 LDEXP_LIB="$LIBS"
10020 LIBS="$save_LIBS"
10023 # Use <inttypes.h> only if it exists,
10024 # doesn't clash with <sys/types.h>, and declares intmax_t.
10025 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10026 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10027 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030 cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h. */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h. */
10036 #include <sys/types.h>
10037 #include <inttypes.h>
10039 main ()
10041 intmax_t i = -1;
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 gcc_cv_header_inttypes_h=yes
10069 else
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 gcc_cv_header_inttypes_h=no
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10078 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10079 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10080 if test $gcc_cv_header_inttypes_h = yes; then
10082 cat >>confdefs.h <<\_ACEOF
10083 #define HAVE_INTTYPES_H 1
10084 _ACEOF
10123 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10124 sysconf strsignal getrusage nl_langinfo \
10125 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10126 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
10128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10129 echo "$as_me:$LINENO: checking for $ac_func" >&5
10130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10131 if eval "test \"\${$as_ac_var+set}\" = set"; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142 #define $ac_func innocuous_$ac_func
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char $ac_func (); below.
10146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147 <limits.h> exists even on freestanding compilers. */
10149 #ifdef __STDC__
10150 # include <limits.h>
10151 #else
10152 # include <assert.h>
10153 #endif
10155 #undef $ac_func
10157 /* Override any gcc2 internal prototype to avoid an error. */
10158 #ifdef __cplusplus
10159 extern "C"
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10164 char $ac_func ();
10165 /* The GNU C library defines this for functions which it implements
10166 to always fail with ENOSYS. Some functions are actually named
10167 something starting with __ and the normal name is an alias. */
10168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10169 choke me
10170 #else
10171 char (*f) () = $ac_func;
10172 #endif
10173 #ifdef __cplusplus
10175 #endif
10178 main ()
10180 return f != $ac_func;
10182 return 0;
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>conftest.er1
10188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10208 else
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 eval "$as_ac_var=no"
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10219 if test `eval echo '${'$as_ac_var'}'` = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 _ACEOF
10225 done
10228 if test x$ac_cv_func_mbstowcs = xyes; then
10229 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10230 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10231 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 if test "$cross_compiling" = yes; then
10235 gcc_cv_func_mbstowcs_works=yes
10236 else
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 #include <stdlib.h>
10244 int main()
10246 mbstowcs(0, "", 0);
10247 return 0;
10249 _ACEOF
10250 rm -f conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252 (eval $ac_link) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 gcc_cv_func_mbstowcs_works=yes
10262 else
10263 echo "$as_me: program exited with status $ac_status" >&5
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ( exit $ac_status )
10268 gcc_cv_func_mbstowcs_works=no
10270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10273 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10274 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10275 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_WORKING_MBSTOWCS 1
10279 _ACEOF
10284 echo "$as_me:$LINENO: checking for ssize_t" >&5
10285 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10286 if test "${ac_cv_type_ssize_t+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h. */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10297 main ()
10299 if ((ssize_t *) 0)
10300 return 0;
10301 if (sizeof (ssize_t))
10302 return 0;
10304 return 0;
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_type_ssize_t=yes
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_type_ssize_t=no
10336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10339 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10340 if test $ac_cv_type_ssize_t = yes; then
10342 else
10344 cat >>confdefs.h <<_ACEOF
10345 #define ssize_t int
10346 _ACEOF
10350 echo "$as_me:$LINENO: checking for caddr_t" >&5
10351 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10352 if test "${ac_cv_type_caddr_t+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355 cat >conftest.$ac_ext <<_ACEOF
10356 /* confdefs.h. */
10357 _ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10363 main ()
10365 if ((caddr_t *) 0)
10366 return 0;
10367 if (sizeof (caddr_t))
10368 return 0;
10370 return 0;
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375 (eval $ac_compile) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest.$ac_objext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_type_caddr_t=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_type_caddr_t=no
10402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10405 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10406 if test $ac_cv_type_caddr_t = yes; then
10408 else
10410 cat >>confdefs.h <<_ACEOF
10411 #define caddr_t char *
10412 _ACEOF
10418 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10419 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10420 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <sys/mman.h>
10430 _ACEOF
10431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10433 ac_status=$?
10434 grep -v '^ *+' conftest.er1 >conftest.err
10435 rm -f conftest.er1
10436 cat conftest.err >&5
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } >/dev/null; then
10439 if test -s conftest.err; then
10440 ac_cpp_err=$ac_c_preproc_warn_flag
10441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10442 else
10443 ac_cpp_err=
10445 else
10446 ac_cpp_err=yes
10448 if test -z "$ac_cpp_err"; then
10449 ac_cv_header_sys_mman_h=yes
10450 else
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 ac_cv_header_sys_mman_h=no
10456 rm -f conftest.err conftest.$ac_ext
10458 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10459 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10460 if test $ac_cv_header_sys_mman_h = yes; then
10461 gcc_header_sys_mman_h=yes
10462 else
10463 gcc_header_sys_mman_h=no
10466 echo "$as_me:$LINENO: checking for mmap" >&5
10467 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10468 if test "${ac_cv_func_mmap+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10479 #define mmap innocuous_mmap
10481 /* System header to define __stub macros and hopefully few prototypes,
10482 which can conflict with char mmap (); below.
10483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10484 <limits.h> exists even on freestanding compilers. */
10486 #ifdef __STDC__
10487 # include <limits.h>
10488 #else
10489 # include <assert.h>
10490 #endif
10492 #undef mmap
10494 /* Override any gcc2 internal prototype to avoid an error. */
10495 #ifdef __cplusplus
10496 extern "C"
10498 #endif
10499 /* We use char because int might match the return type of a gcc2
10500 builtin and then its argument prototype would still apply. */
10501 char mmap ();
10502 /* The GNU C library defines this for functions which it implements
10503 to always fail with ENOSYS. Some functions are actually named
10504 something starting with __ and the normal name is an alias. */
10505 #if defined (__stub_mmap) || defined (__stub___mmap)
10506 choke me
10507 #else
10508 char (*f) () = mmap;
10509 #endif
10510 #ifdef __cplusplus
10512 #endif
10515 main ()
10517 return f != mmap;
10519 return 0;
10521 _ACEOF
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag"
10532 || test ! -s conftest.err'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; } &&
10538 { ac_try='test -s conftest$ac_exeext'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; }; then
10544 ac_cv_func_mmap=yes
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10549 ac_cv_func_mmap=no
10551 rm -f conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10555 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10556 if test $ac_cv_func_mmap = yes; then
10557 gcc_func_mmap=yes
10558 else
10559 gcc_func_mmap=no
10562 if test "$gcc_header_sys_mman_h" != yes \
10563 || test "$gcc_func_mmap" != yes; then
10564 gcc_cv_func_mmap_file=no
10565 gcc_cv_func_mmap_dev_zero=no
10566 gcc_cv_func_mmap_anon=no
10567 else
10568 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10569 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10570 if test "${gcc_cv_func_mmap_file+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573 # Add a system to this blacklist if
10574 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10575 # memory area containing the same data that you'd get if you applied
10576 # read() to the same fd. The only system known to have a problem here
10577 # is VMS, where text files have record structure.
10578 case "$host_os" in
10579 vms* | ultrix*)
10580 gcc_cv_func_mmap_file=no ;;
10582 gcc_cv_func_mmap_file=yes;;
10583 esac
10585 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10586 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10587 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10588 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10589 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 # Add a system to this blacklist if it has mmap() but /dev/zero
10593 # does not exist, or if mmapping /dev/zero does not give anonymous
10594 # zeroed pages with both the following properties:
10595 # 1. If you map N consecutive pages in with one call, and then
10596 # unmap any subset of those pages, the pages that were not
10597 # explicitly unmapped remain accessible.
10598 # 2. If you map two adjacent blocks of memory and then unmap them
10599 # both at once, they must both go away.
10600 # Systems known to be in this category are Windows (all variants),
10601 # VMS, and Darwin.
10602 case "$host_os" in
10603 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10604 gcc_cv_func_mmap_dev_zero=no ;;
10606 gcc_cv_func_mmap_dev_zero=yes;;
10607 esac
10609 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10610 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10612 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10613 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10614 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10615 if test "${gcc_cv_decl_map_anon+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 else
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <sys/types.h>
10625 #include <sys/mman.h>
10626 #include <unistd.h>
10628 #ifndef MAP_ANONYMOUS
10629 #define MAP_ANONYMOUS MAP_ANON
10630 #endif
10633 main ()
10635 int n = MAP_ANONYMOUS;
10637 return 0;
10639 _ACEOF
10640 rm -f conftest.$ac_objext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 gcc_cv_decl_map_anon=yes
10663 else
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 gcc_cv_decl_map_anon=no
10669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10671 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10672 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10674 if test $gcc_cv_decl_map_anon = no; then
10675 gcc_cv_func_mmap_anon=no
10676 else
10677 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10678 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10679 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10683 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10684 # doesn't give anonymous zeroed pages with the same properties listed
10685 # above for use of /dev/zero.
10686 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10687 case "$host_os" in
10688 vms* | cygwin* | pe | mingw* | sco* | udk* )
10689 gcc_cv_func_mmap_anon=no ;;
10691 gcc_cv_func_mmap_anon=yes;;
10692 esac
10694 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10695 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10699 if test $gcc_cv_func_mmap_file = yes; then
10701 cat >>confdefs.h <<\_ACEOF
10702 #define HAVE_MMAP_FILE 1
10703 _ACEOF
10706 if test $gcc_cv_func_mmap_dev_zero = yes; then
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_MMAP_DEV_ZERO 1
10710 _ACEOF
10713 if test $gcc_cv_func_mmap_anon = yes; then
10715 cat >>confdefs.h <<\_ACEOF
10716 #define HAVE_MMAP_ANON 1
10717 _ACEOF
10722 case "${host}" in
10723 *-*-*vms*)
10724 # Under VMS, vfork works very differently than on Unix. The standard test
10725 # won't work, and it isn't easily adaptable. It makes more sense to
10726 # just force it.
10727 ac_cv_func_vfork_works=yes
10729 esac
10730 echo "$as_me:$LINENO: checking for pid_t" >&5
10731 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10732 if test "${ac_cv_type_pid_t+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 $ac_includes_default
10743 main ()
10745 if ((pid_t *) 0)
10746 return 0;
10747 if (sizeof (pid_t))
10748 return 0;
10750 return 0;
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 ac_cv_type_pid_t=yes
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_type_pid_t=no
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10785 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10786 if test $ac_cv_type_pid_t = yes; then
10788 else
10790 cat >>confdefs.h <<_ACEOF
10791 #define pid_t int
10792 _ACEOF
10798 for ac_header in unistd.h vfork.h
10800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 echo "$as_me:$LINENO: checking for $ac_header" >&5
10802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 else
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h. */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 #include <$ac_header>
10813 _ACEOF
10814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } >/dev/null; then
10822 if test -s conftest.err; then
10823 ac_cpp_err=$ac_c_preproc_warn_flag
10824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10825 else
10826 ac_cpp_err=
10828 else
10829 ac_cpp_err=yes
10831 if test -z "$ac_cpp_err"; then
10832 eval "$as_ac_Header=yes"
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 eval "$as_ac_Header=no"
10839 rm -f conftest.err conftest.$ac_ext
10841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10844 cat >>confdefs.h <<_ACEOF
10845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846 _ACEOF
10849 done
10853 for ac_func in fork vfork
10855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856 echo "$as_me:$LINENO: checking for $ac_func" >&5
10857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10858 if eval "test \"\${$as_ac_var+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10869 #define $ac_func innocuous_$ac_func
10871 /* System header to define __stub macros and hopefully few prototypes,
10872 which can conflict with char $ac_func (); below.
10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874 <limits.h> exists even on freestanding compilers. */
10876 #ifdef __STDC__
10877 # include <limits.h>
10878 #else
10879 # include <assert.h>
10880 #endif
10882 #undef $ac_func
10884 /* Override any gcc2 internal prototype to avoid an error. */
10885 #ifdef __cplusplus
10886 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char $ac_func ();
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10896 choke me
10897 #else
10898 char (*f) () = $ac_func;
10899 #endif
10900 #ifdef __cplusplus
10902 #endif
10905 main ()
10907 return f != $ac_func;
10909 return 0;
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10914 (eval $ac_link) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 eval "$as_ac_var=yes"
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 eval "$as_ac_var=no"
10941 rm -f conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10946 if test `eval echo '${'$as_ac_var'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10949 _ACEOF
10952 done
10954 if test "x$ac_cv_func_fork" = xyes; then
10955 echo "$as_me:$LINENO: checking for working fork" >&5
10956 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10957 if test "${ac_cv_func_fork_works+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959 else
10960 if test "$cross_compiling" = yes; then
10961 ac_cv_func_fork_works=cross
10962 else
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* By Ruediger Kuhlmann. */
10965 #include <sys/types.h>
10966 #if HAVE_UNISTD_H
10967 # include <unistd.h>
10968 #endif
10969 /* Some systems only have a dummy stub for fork() */
10970 int main ()
10972 if (fork() < 0)
10973 exit (1);
10974 exit (0);
10976 _ACEOF
10977 rm -f conftest$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_cv_func_fork_works=yes
10989 else
10990 echo "$as_me: program exited with status $ac_status" >&5
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ( exit $ac_status )
10995 ac_cv_func_fork_works=no
10997 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11000 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11001 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11003 else
11004 ac_cv_func_fork_works=$ac_cv_func_fork
11006 if test "x$ac_cv_func_fork_works" = xcross; then
11007 case $host in
11008 *-*-amigaos* | *-*-msdosdjgpp*)
11009 # Override, as these systems have only a dummy fork() stub
11010 ac_cv_func_fork_works=no
11013 ac_cv_func_fork_works=yes
11015 esac
11016 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11017 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11019 ac_cv_func_vfork_works=$ac_cv_func_vfork
11020 if test "x$ac_cv_func_vfork" = xyes; then
11021 echo "$as_me:$LINENO: checking for working vfork" >&5
11022 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11023 if test "${ac_cv_func_vfork_works+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 if test "$cross_compiling" = yes; then
11027 ac_cv_func_vfork_works=cross
11028 else
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 /* Thanks to Paul Eggert for this test. */
11036 #include <stdio.h>
11037 #include <stdlib.h>
11038 #include <sys/types.h>
11039 #include <sys/stat.h>
11040 #include <sys/wait.h>
11041 #if HAVE_UNISTD_H
11042 # include <unistd.h>
11043 #endif
11044 #if HAVE_VFORK_H
11045 # include <vfork.h>
11046 #endif
11047 /* On some sparc systems, changes by the child to local and incoming
11048 argument registers are propagated back to the parent. The compiler
11049 is told about this with #include <vfork.h>, but some compilers
11050 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11051 static variable whose address is put into a register that is
11052 clobbered by the vfork. */
11053 static void
11054 #ifdef __cplusplus
11055 sparc_address_test (int arg)
11056 # else
11057 sparc_address_test (arg) int arg;
11058 #endif
11060 static pid_t child;
11061 if (!child) {
11062 child = vfork ();
11063 if (child < 0) {
11064 perror ("vfork");
11065 _exit(2);
11067 if (!child) {
11068 arg = getpid();
11069 write(-1, "", 0);
11070 _exit (arg);
11076 main ()
11078 pid_t parent = getpid ();
11079 pid_t child;
11081 sparc_address_test (0);
11083 child = vfork ();
11085 if (child == 0) {
11086 /* Here is another test for sparc vfork register problems. This
11087 test uses lots of local variables, at least as many local
11088 variables as main has allocated so far including compiler
11089 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11090 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11091 reuse the register of parent for one of the local variables,
11092 since it will think that parent can't possibly be used any more
11093 in this routine. Assigning to the local variable will thus
11094 munge parent in the parent process. */
11095 pid_t
11096 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11097 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11098 /* Convince the compiler that p..p7 are live; otherwise, it might
11099 use the same hardware register for all 8 local variables. */
11100 if (p != p1 || p != p2 || p != p3 || p != p4
11101 || p != p5 || p != p6 || p != p7)
11102 _exit(1);
11104 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11105 from child file descriptors. If the child closes a descriptor
11106 before it execs or exits, this munges the parent's descriptor
11107 as well. Test for this by closing stdout in the child. */
11108 _exit(close(fileno(stdout)) != 0);
11109 } else {
11110 int status;
11111 struct stat st;
11113 while (wait(&status) != child)
11115 exit(
11116 /* Was there some problem with vforking? */
11117 child < 0
11119 /* Did the child fail? (This shouldn't happen.) */
11120 || status
11122 /* Did the vfork/compiler bug occur? */
11123 || parent != getpid()
11125 /* Did the file descriptor bug occur? */
11126 || fstat(fileno(stdout), &st) != 0
11130 _ACEOF
11131 rm -f conftest$ac_exeext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11134 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_func_vfork_works=yes
11143 else
11144 echo "$as_me: program exited with status $ac_status" >&5
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ( exit $ac_status )
11149 ac_cv_func_vfork_works=no
11151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11154 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11155 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11158 if test "x$ac_cv_func_fork_works" = xcross; then
11159 ac_cv_func_vfork_works=$ac_cv_func_vfork
11160 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11161 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11164 if test "x$ac_cv_func_vfork_works" = xyes; then
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_WORKING_VFORK 1
11168 _ACEOF
11170 else
11172 cat >>confdefs.h <<\_ACEOF
11173 #define vfork fork
11174 _ACEOF
11177 if test "x$ac_cv_func_fork_works" = xyes; then
11179 cat >>confdefs.h <<\_ACEOF
11180 #define HAVE_WORKING_FORK 1
11181 _ACEOF
11187 if test "X$prefix" = "XNONE"; then
11188 acl_final_prefix="$ac_default_prefix"
11189 else
11190 acl_final_prefix="$prefix"
11192 if test "X$exec_prefix" = "XNONE"; then
11193 acl_final_exec_prefix='${prefix}'
11194 else
11195 acl_final_exec_prefix="$exec_prefix"
11197 acl_save_prefix="$prefix"
11198 prefix="$acl_final_prefix"
11199 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11200 prefix="$acl_save_prefix"
11203 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11204 if test "${with_gnu_ld+set}" = set; then
11205 withval="$with_gnu_ld"
11206 test "$withval" = no || with_gnu_ld=yes
11207 else
11208 with_gnu_ld=no
11210 # Prepare PATH_SEPARATOR.
11211 # The user is always right.
11212 if test "${PATH_SEPARATOR+set}" != set; then
11213 echo "#! /bin/sh" >conf$$.sh
11214 echo "exit 0" >>conf$$.sh
11215 chmod +x conf$$.sh
11216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11217 PATH_SEPARATOR=';'
11218 else
11219 PATH_SEPARATOR=:
11221 rm -f conf$$.sh
11223 ac_prog=ld
11224 if test "$GCC" = yes; then
11225 # Check if gcc -print-prog-name=ld gives a path.
11226 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11227 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11228 case $host in
11229 *-*-mingw*)
11230 # gcc leaves a trailing carriage return which upsets mingw
11231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11234 esac
11235 case $ac_prog in
11236 # Accept absolute paths.
11237 [\\/]* | [A-Za-z]:[\\/]*)
11238 re_direlt='/[^/][^/]*/\.\./'
11239 # Canonicalize the path of ld
11240 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11241 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11242 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11243 done
11244 test -z "$LD" && LD="$ac_prog"
11247 # If it fails, then pretend we aren't using GCC.
11248 ac_prog=ld
11251 # If it is relative, then search for the first ld in PATH.
11252 with_gnu_ld=unknown
11254 esac
11255 elif test "$with_gnu_ld" = yes; then
11256 echo "$as_me:$LINENO: checking for GNU ld" >&5
11257 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11258 else
11259 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11260 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11262 if test "${acl_cv_path_LD+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265 if test -z "$LD"; then
11266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11267 for ac_dir in $PATH; do
11268 test -z "$ac_dir" && ac_dir=.
11269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11270 acl_cv_path_LD="$ac_dir/$ac_prog"
11271 # Check to see if the program is GNU ld. I'd rather use --version,
11272 # but apparently some GNU ld's only accept -v.
11273 # Break only if it was the GNU/non-GNU ld that we prefer.
11274 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11275 test "$with_gnu_ld" != no && break
11276 else
11277 test "$with_gnu_ld" != yes && break
11280 done
11281 IFS="$ac_save_ifs"
11282 else
11283 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11287 LD="$acl_cv_path_LD"
11288 if test -n "$LD"; then
11289 echo "$as_me:$LINENO: result: $LD" >&5
11290 echo "${ECHO_T}$LD" >&6
11291 else
11292 echo "$as_me:$LINENO: result: no" >&5
11293 echo "${ECHO_T}no" >&6
11295 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11296 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11297 { (exit 1); exit 1; }; }
11298 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11299 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11300 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11304 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11305 acl_cv_prog_gnu_ld=yes
11306 else
11307 acl_cv_prog_gnu_ld=no
11310 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11311 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11312 with_gnu_ld=$acl_cv_prog_gnu_ld
11316 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11317 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11318 if test "${acl_cv_rpath+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11322 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11323 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11324 . ./conftest.sh
11325 rm -f ./conftest.sh
11326 acl_cv_rpath=done
11329 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11330 echo "${ECHO_T}$acl_cv_rpath" >&6
11331 wl="$acl_cv_wl"
11332 libext="$acl_cv_libext"
11333 shlibext="$acl_cv_shlibext"
11334 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11335 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11336 hardcode_direct="$acl_cv_hardcode_direct"
11337 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11338 # Check whether --enable-rpath or --disable-rpath was given.
11339 if test "${enable_rpath+set}" = set; then
11340 enableval="$enable_rpath"
11342 else
11343 enable_rpath=yes
11352 use_additional=yes
11354 acl_save_prefix="$prefix"
11355 prefix="$acl_final_prefix"
11356 acl_save_exec_prefix="$exec_prefix"
11357 exec_prefix="$acl_final_exec_prefix"
11359 eval additional_includedir=\"$includedir\"
11360 eval additional_libdir=\"$libdir\"
11362 exec_prefix="$acl_save_exec_prefix"
11363 prefix="$acl_save_prefix"
11366 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11367 if test "${with_libiconv_prefix+set}" = set; then
11368 withval="$with_libiconv_prefix"
11370 if test "X$withval" = "Xno"; then
11371 use_additional=no
11372 else
11373 if test "X$withval" = "X"; then
11375 acl_save_prefix="$prefix"
11376 prefix="$acl_final_prefix"
11377 acl_save_exec_prefix="$exec_prefix"
11378 exec_prefix="$acl_final_exec_prefix"
11380 eval additional_includedir=\"$includedir\"
11381 eval additional_libdir=\"$libdir\"
11383 exec_prefix="$acl_save_exec_prefix"
11384 prefix="$acl_save_prefix"
11386 else
11387 additional_includedir="$withval/include"
11388 additional_libdir="$withval/lib"
11393 LIBICONV=
11394 LTLIBICONV=
11395 INCICONV=
11396 rpathdirs=
11397 ltrpathdirs=
11398 names_already_handled=
11399 names_next_round='iconv '
11400 while test -n "$names_next_round"; do
11401 names_this_round="$names_next_round"
11402 names_next_round=
11403 for name in $names_this_round; do
11404 already_handled=
11405 for n in $names_already_handled; do
11406 if test "$n" = "$name"; then
11407 already_handled=yes
11408 break
11410 done
11411 if test -z "$already_handled"; then
11412 names_already_handled="$names_already_handled $name"
11413 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11414 eval value=\"\$HAVE_LIB$uppername\"
11415 if test -n "$value"; then
11416 if test "$value" = yes; then
11417 eval value=\"\$LIB$uppername\"
11418 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11419 eval value=\"\$LTLIB$uppername\"
11420 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11421 else
11424 else
11425 found_dir=
11426 found_la=
11427 found_so=
11428 found_a=
11429 if test $use_additional = yes; then
11430 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11431 found_dir="$additional_libdir"
11432 found_so="$additional_libdir/lib$name.$shlibext"
11433 if test -f "$additional_libdir/lib$name.la"; then
11434 found_la="$additional_libdir/lib$name.la"
11436 else
11437 if test -f "$additional_libdir/lib$name.$libext"; then
11438 found_dir="$additional_libdir"
11439 found_a="$additional_libdir/lib$name.$libext"
11440 if test -f "$additional_libdir/lib$name.la"; then
11441 found_la="$additional_libdir/lib$name.la"
11446 if test "X$found_dir" = "X"; then
11447 for x in $LDFLAGS $LTLIBICONV; do
11449 acl_save_prefix="$prefix"
11450 prefix="$acl_final_prefix"
11451 acl_save_exec_prefix="$exec_prefix"
11452 exec_prefix="$acl_final_exec_prefix"
11453 eval x=\"$x\"
11454 exec_prefix="$acl_save_exec_prefix"
11455 prefix="$acl_save_prefix"
11457 case "$x" in
11458 -L*)
11459 dir=`echo "X$x" | sed -e 's/^X-L//'`
11460 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11461 found_dir="$dir"
11462 found_so="$dir/lib$name.$shlibext"
11463 if test -f "$dir/lib$name.la"; then
11464 found_la="$dir/lib$name.la"
11466 else
11467 if test -f "$dir/lib$name.$libext"; then
11468 found_dir="$dir"
11469 found_a="$dir/lib$name.$libext"
11470 if test -f "$dir/lib$name.la"; then
11471 found_la="$dir/lib$name.la"
11476 esac
11477 if test "X$found_dir" != "X"; then
11478 break
11480 done
11482 if test "X$found_dir" != "X"; then
11483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11484 if test "X$found_so" != "X"; then
11485 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11487 else
11488 haveit=
11489 for x in $ltrpathdirs; do
11490 if test "X$x" = "X$found_dir"; then
11491 haveit=yes
11492 break
11494 done
11495 if test -z "$haveit"; then
11496 ltrpathdirs="$ltrpathdirs $found_dir"
11498 if test "$hardcode_direct" = yes; then
11499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11500 else
11501 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11503 haveit=
11504 for x in $rpathdirs; do
11505 if test "X$x" = "X$found_dir"; then
11506 haveit=yes
11507 break
11509 done
11510 if test -z "$haveit"; then
11511 rpathdirs="$rpathdirs $found_dir"
11513 else
11514 haveit=
11515 for x in $LDFLAGS $LIBICONV; do
11517 acl_save_prefix="$prefix"
11518 prefix="$acl_final_prefix"
11519 acl_save_exec_prefix="$exec_prefix"
11520 exec_prefix="$acl_final_exec_prefix"
11521 eval x=\"$x\"
11522 exec_prefix="$acl_save_exec_prefix"
11523 prefix="$acl_save_prefix"
11525 if test "X$x" = "X-L$found_dir"; then
11526 haveit=yes
11527 break
11529 done
11530 if test -z "$haveit"; then
11531 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11533 if test "$hardcode_minus_L" != no; then
11534 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11535 else
11536 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11541 else
11542 if test "X$found_a" != "X"; then
11543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11544 else
11545 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11548 additional_includedir=
11549 case "$found_dir" in
11550 */lib | */lib/)
11551 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11552 additional_includedir="$basedir/include"
11554 esac
11555 if test "X$additional_includedir" != "X"; then
11556 if test "X$additional_includedir" != "X/usr/include"; then
11557 haveit=
11558 if test "X$additional_includedir" = "X/usr/local/include"; then
11559 if test -n "$GCC"; then
11560 case $host_os in
11561 linux*) haveit=yes;;
11562 esac
11565 if test -z "$haveit"; then
11566 for x in $CPPFLAGS $INCICONV; do
11568 acl_save_prefix="$prefix"
11569 prefix="$acl_final_prefix"
11570 acl_save_exec_prefix="$exec_prefix"
11571 exec_prefix="$acl_final_exec_prefix"
11572 eval x=\"$x\"
11573 exec_prefix="$acl_save_exec_prefix"
11574 prefix="$acl_save_prefix"
11576 if test "X$x" = "X-I$additional_includedir"; then
11577 haveit=yes
11578 break
11580 done
11581 if test -z "$haveit"; then
11582 if test -d "$additional_includedir"; then
11583 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11589 if test -n "$found_la"; then
11590 save_libdir="$libdir"
11591 case "$found_la" in
11592 */* | *\\*) . "$found_la" ;;
11593 *) . "./$found_la" ;;
11594 esac
11595 libdir="$save_libdir"
11596 for dep in $dependency_libs; do
11597 case "$dep" in
11598 -L*)
11599 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11600 if test "X$additional_libdir" != "X/usr/lib"; then
11601 haveit=
11602 if test "X$additional_libdir" = "X/usr/local/lib"; then
11603 if test -n "$GCC"; then
11604 case $host_os in
11605 linux*) haveit=yes;;
11606 esac
11609 if test -z "$haveit"; then
11610 haveit=
11611 for x in $LDFLAGS $LIBICONV; do
11613 acl_save_prefix="$prefix"
11614 prefix="$acl_final_prefix"
11615 acl_save_exec_prefix="$exec_prefix"
11616 exec_prefix="$acl_final_exec_prefix"
11617 eval x=\"$x\"
11618 exec_prefix="$acl_save_exec_prefix"
11619 prefix="$acl_save_prefix"
11621 if test "X$x" = "X-L$additional_libdir"; then
11622 haveit=yes
11623 break
11625 done
11626 if test -z "$haveit"; then
11627 if test -d "$additional_libdir"; then
11628 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11631 haveit=
11632 for x in $LDFLAGS $LTLIBICONV; do
11634 acl_save_prefix="$prefix"
11635 prefix="$acl_final_prefix"
11636 acl_save_exec_prefix="$exec_prefix"
11637 exec_prefix="$acl_final_exec_prefix"
11638 eval x=\"$x\"
11639 exec_prefix="$acl_save_exec_prefix"
11640 prefix="$acl_save_prefix"
11642 if test "X$x" = "X-L$additional_libdir"; then
11643 haveit=yes
11644 break
11646 done
11647 if test -z "$haveit"; then
11648 if test -d "$additional_libdir"; then
11649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11655 -R*)
11656 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11657 if test "$enable_rpath" != no; then
11658 haveit=
11659 for x in $rpathdirs; do
11660 if test "X$x" = "X$dir"; then
11661 haveit=yes
11662 break
11664 done
11665 if test -z "$haveit"; then
11666 rpathdirs="$rpathdirs $dir"
11668 haveit=
11669 for x in $ltrpathdirs; do
11670 if test "X$x" = "X$dir"; then
11671 haveit=yes
11672 break
11674 done
11675 if test -z "$haveit"; then
11676 ltrpathdirs="$ltrpathdirs $dir"
11680 -l*)
11681 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11683 *.la)
11684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11687 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11690 esac
11691 done
11693 else
11694 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11699 done
11700 done
11701 if test "X$rpathdirs" != "X"; then
11702 if test -n "$hardcode_libdir_separator"; then
11703 alldirs=
11704 for found_dir in $rpathdirs; do
11705 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11706 done
11707 acl_save_libdir="$libdir"
11708 libdir="$alldirs"
11709 eval flag=\"$hardcode_libdir_flag_spec\"
11710 libdir="$acl_save_libdir"
11711 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11712 else
11713 for found_dir in $rpathdirs; do
11714 acl_save_libdir="$libdir"
11715 libdir="$found_dir"
11716 eval flag=\"$hardcode_libdir_flag_spec\"
11717 libdir="$acl_save_libdir"
11718 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11719 done
11722 if test "X$ltrpathdirs" != "X"; then
11723 for found_dir in $ltrpathdirs; do
11724 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11725 done
11734 am_save_CPPFLAGS="$CPPFLAGS"
11736 for element in $INCICONV; do
11737 haveit=
11738 for x in $CPPFLAGS; do
11740 acl_save_prefix="$prefix"
11741 prefix="$acl_final_prefix"
11742 acl_save_exec_prefix="$exec_prefix"
11743 exec_prefix="$acl_final_exec_prefix"
11744 eval x=\"$x\"
11745 exec_prefix="$acl_save_exec_prefix"
11746 prefix="$acl_save_prefix"
11748 if test "X$x" = "X$element"; then
11749 haveit=yes
11750 break
11752 done
11753 if test -z "$haveit"; then
11754 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11756 done
11759 echo "$as_me:$LINENO: checking for iconv" >&5
11760 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11761 if test "${am_cv_func_iconv+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11765 am_cv_func_iconv="no, consider installing GNU libiconv"
11766 am_cv_lib_iconv=no
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <stdlib.h>
11774 #include <iconv.h>
11776 main ()
11778 iconv_t cd = iconv_open("","");
11779 iconv(cd,NULL,NULL,NULL,NULL);
11780 iconv_close(cd);
11782 return 0;
11784 _ACEOF
11785 rm -f conftest.$ac_objext conftest$ac_exeext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11787 (eval $ac_link) 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 am_cv_func_iconv=yes
11808 else
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11813 rm -f conftest.err conftest.$ac_objext \
11814 conftest$ac_exeext conftest.$ac_ext
11815 if test "$am_cv_func_iconv" != yes; then
11816 am_save_LIBS="$LIBS"
11817 LIBS="$LIBS $LIBICONV"
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h. */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 #include <stdlib.h>
11825 #include <iconv.h>
11827 main ()
11829 iconv_t cd = iconv_open("","");
11830 iconv(cd,NULL,NULL,NULL,NULL);
11831 iconv_close(cd);
11833 return 0;
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11838 (eval $ac_link) 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag"
11846 || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest$ac_exeext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 am_cv_lib_iconv=yes
11859 am_cv_func_iconv=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11865 rm -f conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867 LIBS="$am_save_LIBS"
11871 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11872 echo "${ECHO_T}$am_cv_func_iconv" >&6
11873 if test "$am_cv_func_iconv" = yes; then
11875 cat >>confdefs.h <<\_ACEOF
11876 #define HAVE_ICONV 1
11877 _ACEOF
11880 if test "$am_cv_lib_iconv" = yes; then
11881 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11882 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11883 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11884 echo "${ECHO_T}$LIBICONV" >&6
11885 else
11886 CPPFLAGS="$am_save_CPPFLAGS"
11887 LIBICONV=
11888 LTLIBICONV=
11893 if test "$am_cv_func_iconv" = yes; then
11894 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11895 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11896 if test "${am_cv_proto_iconv+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 #include <stdlib.h>
11908 #include <iconv.h>
11909 extern
11910 #ifdef __cplusplus
11912 #endif
11913 #if defined(__STDC__) || defined(__cplusplus)
11914 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11915 #else
11916 size_t iconv();
11917 #endif
11920 main ()
11924 return 0;
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 am_cv_proto_iconv_arg1=""
11950 else
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 am_cv_proto_iconv_arg1="const"
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 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);"
11960 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11961 echo "$as_me:$LINENO: result: ${ac_t:-
11962 }$am_cv_proto_iconv" >&5
11963 echo "${ECHO_T}${ac_t:-
11964 }$am_cv_proto_iconv" >&6
11966 cat >>confdefs.h <<_ACEOF
11967 #define ICONV_CONST $am_cv_proto_iconv_arg1
11968 _ACEOF
11972 # Until we have in-tree GNU iconv:
11973 LIBICONV_DEP=
11977 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11978 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11979 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 #include <locale.h>
11990 main ()
11992 return LC_MESSAGES
11994 return 0;
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag"
12007 || test ! -s conftest.err'
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); }; } &&
12013 { ac_try='test -s conftest$ac_exeext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 am_cv_val_LC_MESSAGES=yes
12020 else
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 am_cv_val_LC_MESSAGES=no
12026 rm -f conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12030 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12031 if test $am_cv_val_LC_MESSAGES = yes; then
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_LC_MESSAGES 1
12035 _ACEOF
12041 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12042 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12043 if test "${am_cv_langinfo_codeset+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <langinfo.h>
12054 main ()
12056 char* cs = nl_langinfo(CODESET);
12058 return 0;
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 am_cv_langinfo_codeset=yes
12084 else
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 am_cv_langinfo_codeset=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12094 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12095 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12096 if test $am_cv_langinfo_codeset = yes; then
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_LANGINFO_CODESET 1
12100 _ACEOF
12105 # We will need to find libiberty.h and ansidecl.h
12106 saved_CFLAGS="$CFLAGS"
12107 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12147 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12148 strsignal strstr strverscmp \
12149 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12150 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
12152 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12153 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12154 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12155 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #undef $ac_tr_decl
12165 #define $ac_tr_decl 1
12167 #include "ansidecl.h"
12168 #include "system.h"
12171 main ()
12173 #ifndef $ac_func
12174 char *(*pfn) = (char *(*)) $ac_func ;
12175 #endif
12177 return 0;
12179 _ACEOF
12180 rm -f conftest.$ac_objext
12181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12182 (eval $ac_compile) 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag"
12190 || test ! -s conftest.err'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12202 eval "gcc_cv_have_decl_$ac_func=yes"
12203 else
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12207 eval "gcc_cv_have_decl_$ac_func=no"
12209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12212 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12213 echo "$as_me:$LINENO: result: yes" >&5
12214 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12215 #define $ac_tr_decl 1
12216 _ACEOF
12218 else
12219 echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12221 #define $ac_tr_decl 0
12222 _ACEOF
12226 done
12232 for ac_func in getrlimit setrlimit getrusage
12234 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12235 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12236 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12237 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #undef $ac_tr_decl
12247 #define $ac_tr_decl 1
12249 #include "ansidecl.h"
12250 #include "system.h"
12251 #ifdef HAVE_SYS_RESOURCE_H
12252 #include <sys/resource.h>
12253 #endif
12257 main ()
12259 #ifndef $ac_func
12260 char *(*pfn) = (char *(*)) $ac_func ;
12261 #endif
12263 return 0;
12265 _ACEOF
12266 rm -f conftest.$ac_objext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 eval "gcc_cv_have_decl_$ac_func=no"
12295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12298 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12299 echo "$as_me:$LINENO: result: yes" >&5
12300 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12301 #define $ac_tr_decl 1
12302 _ACEOF
12304 else
12305 echo "$as_me:$LINENO: result: no" >&5
12306 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12307 #define $ac_tr_decl 0
12308 _ACEOF
12312 done
12315 cat >conftest.$ac_ext <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 #include "ansidecl.h"
12323 #include "system.h"
12324 #ifdef HAVE_SYS_RESOURCE_H
12325 #include <sys/resource.h>
12326 #endif
12329 main ()
12331 rlim_t l = 0;
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12338 (eval $ac_compile) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12364 cat >>confdefs.h <<\_ACEOF
12365 #define rlim_t long
12366 _ACEOF
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12372 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12373 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12374 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12376 for ac_func in ldgetname
12378 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12379 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12380 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12381 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 #undef $ac_tr_decl
12391 #define $ac_tr_decl 1
12393 #include "ansidecl.h"
12394 #include "system.h"
12395 #ifdef HAVE_LDFCN_H
12396 #undef FREAD
12397 #undef FWRITE
12398 #include <ldfcn.h>
12399 #endif
12403 main ()
12405 #ifndef $ac_func
12406 char *(*pfn) = (char *(*)) $ac_func ;
12407 #endif
12409 return 0;
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag"
12422 || test ! -s conftest.err'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 eval "gcc_cv_have_decl_$ac_func=yes"
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 eval "gcc_cv_have_decl_$ac_func=no"
12441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12445 echo "$as_me:$LINENO: result: yes" >&5
12446 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12447 #define $ac_tr_decl 1
12448 _ACEOF
12450 else
12451 echo "$as_me:$LINENO: result: no" >&5
12452 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12453 #define $ac_tr_decl 0
12454 _ACEOF
12458 done
12462 for ac_func in times
12464 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12465 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12466 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12467 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #undef $ac_tr_decl
12477 #define $ac_tr_decl 1
12479 #include "ansidecl.h"
12480 #include "system.h"
12481 #ifdef HAVE_SYS_TIMES_H
12482 #include <sys/times.h>
12483 #endif
12487 main ()
12489 #ifndef $ac_func
12490 char *(*pfn) = (char *(*)) $ac_func ;
12491 #endif
12493 return 0;
12495 _ACEOF
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -z "$ac_c_werror_flag"
12506 || test ! -s conftest.err'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 eval "gcc_cv_have_decl_$ac_func=yes"
12519 else
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 eval "gcc_cv_have_decl_$ac_func=no"
12525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12528 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12529 echo "$as_me:$LINENO: result: yes" >&5
12530 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12531 #define $ac_tr_decl 1
12532 _ACEOF
12534 else
12535 echo "$as_me:$LINENO: result: no" >&5
12536 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12537 #define $ac_tr_decl 0
12538 _ACEOF
12542 done
12546 for ac_func in sigaltstack
12548 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12549 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12550 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12551 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 #undef $ac_tr_decl
12561 #define $ac_tr_decl 1
12563 #include "ansidecl.h"
12564 #include "system.h"
12565 #include <signal.h>
12569 main ()
12571 #ifndef $ac_func
12572 char *(*pfn) = (char *(*)) $ac_func ;
12573 #endif
12575 return 0;
12577 _ACEOF
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>conftest.er1
12581 ac_status=$?
12582 grep -v '^ *+' conftest.er1 >conftest.err
12583 rm -f conftest.er1
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag"
12588 || test ! -s conftest.err'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest.$ac_objext'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 eval "gcc_cv_have_decl_$ac_func=yes"
12601 else
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 eval "gcc_cv_have_decl_$ac_func=no"
12607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12610 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12611 echo "$as_me:$LINENO: result: yes" >&5
12612 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12613 #define $ac_tr_decl 1
12614 _ACEOF
12616 else
12617 echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12619 #define $ac_tr_decl 0
12620 _ACEOF
12624 done
12627 # More time-related stuff.
12628 echo "$as_me:$LINENO: checking for struct tms" >&5
12629 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12630 if test "${ac_cv_struct_tms+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12634 cat >conftest.$ac_ext <<_ACEOF
12635 /* confdefs.h. */
12636 _ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 #include "ansidecl.h"
12642 #include "system.h"
12643 #ifdef HAVE_SYS_TIMES_H
12644 #include <sys/times.h>
12645 #endif
12648 main ()
12650 struct tms tms;
12652 return 0;
12654 _ACEOF
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -z "$ac_c_werror_flag"
12665 || test ! -s conftest.err'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
12677 ac_cv_struct_tms=yes
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_cv_struct_tms=no
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12687 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12688 if test $ac_cv_struct_tms = yes; then
12690 cat >>confdefs.h <<\_ACEOF
12691 #define HAVE_STRUCT_TMS 1
12692 _ACEOF
12696 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12697 # revisit after autoconf 2.50.
12698 echo "$as_me:$LINENO: checking for clock_t" >&5
12699 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12700 if test "${gcc_cv_type_clock_t+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702 else
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12711 #include "ansidecl.h"
12712 #include "system.h"
12715 main ()
12717 clock_t x;
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>conftest.er1
12725 ac_status=$?
12726 grep -v '^ *+' conftest.er1 >conftest.err
12727 rm -f conftest.er1
12728 cat conftest.err >&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); } &&
12731 { ac_try='test -z "$ac_c_werror_flag"
12732 || test ! -s conftest.err'
12733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734 (eval $ac_try) 2>&5
12735 ac_status=$?
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); }; } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 gcc_cv_type_clock_t=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 gcc_cv_type_clock_t=no
12751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12753 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12754 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12755 if test $gcc_cv_type_clock_t = yes; then
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_CLOCK_T 1
12759 _ACEOF
12763 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12764 CFLAGS="$saved_CFLAGS"
12766 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12767 if test "${enable_initfini_array+set}" = set; then
12768 enableval="$enable_initfini_array"
12770 else
12772 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12773 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12774 if test "${gcc_cv_initfini_array+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777 if test "$cross_compiling" = yes; then
12778 gcc_cv_initfini_array=no
12779 else
12780 cat >conftest.$ac_ext <<_ACEOF
12781 /* confdefs.h. */
12782 _ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12787 static int x = -1;
12788 int main (void) { return x; }
12789 int foo (void) { x = 0; }
12790 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12791 _ACEOF
12792 rm -f conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794 (eval $ac_link) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 gcc_cv_initfini_array=yes
12804 else
12805 echo "$as_me: program exited with status $ac_status" >&5
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 ( exit $ac_status )
12810 gcc_cv_initfini_array=no
12812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12815 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12816 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12817 enable_initfini_array=$gcc_cv_initfini_array
12820 if test $enable_initfini_array = yes; then
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_INITFINI_ARRAY 1
12824 _ACEOF
12828 # mkdir takes a single argument on some systems.
12829 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12830 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12831 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 cat >conftest.$ac_ext <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12841 #include <sys/types.h>
12842 #ifdef HAVE_SYS_STAT_H
12843 # include <sys/stat.h>
12844 #endif
12845 #ifdef HAVE_UNISTD_H
12846 # include <unistd.h>
12847 #endif
12848 #ifdef HAVE_DIRECT_H
12849 # include <direct.h>
12850 #endif
12852 main ()
12854 mkdir ("foo", 0);
12856 return 0;
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
12868 { ac_try='test -z "$ac_c_werror_flag"
12869 || test ! -s conftest.err'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 gcc_cv_mkdir_takes_one_arg=no
12882 else
12883 echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 gcc_cv_mkdir_takes_one_arg=yes
12888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12890 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12891 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12892 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12894 cat >>confdefs.h <<\_ACEOF
12895 #define MKDIR_TAKES_ONE_ARG 1
12896 _ACEOF
12901 # File extensions
12902 manext='.1'
12903 objext='.o'
12907 # With Setjmp/Longjmp based exception handling.
12908 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12909 if test "${enable_sjlj_exceptions+set}" = set; then
12910 enableval="$enable_sjlj_exceptions"
12911 case $target in
12912 *-*-hpux10*)
12913 if test $enableval != yes; then
12914 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12915 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12916 enableval=yes
12919 esac
12920 force_sjlj_exceptions=yes
12921 else
12922 case $target in
12923 *-*-hpux10*)
12924 force_sjlj_exceptions=yes
12925 enableval=yes
12928 force_sjlj_exceptions=no
12930 esac
12932 if test $force_sjlj_exceptions = yes; then
12933 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12935 cat >>confdefs.h <<_ACEOF
12936 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12937 _ACEOF
12941 # For platforms with the unwind ABI which includes an unwind library,
12942 # libunwind, we can choose to use the system libunwind.
12943 # config.gcc also contains tests of with_system_libunwind.
12946 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12947 if test "${with_system_libunwind+set}" = set; then
12948 withval="$with_system_libunwind"
12951 # If system-libunwind was not specifically set, pick a default setting.
12952 if test x$with_system_libunwind = x; then
12953 case ${target} in
12954 ia64-*-hpux*) with_system_libunwind=yes ;;
12955 *) with_system_libunwind=no ;;
12956 esac
12958 # Based on system-libunwind and target, do we have ipinfo?
12959 if test x$with_system_libunwind = xyes; then
12960 case ${target} in
12961 ia64-*-*) have_unwind_getipinfo=no ;;
12962 *) have_unwind_getipinfo=yes ;;
12963 esac
12964 else
12965 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12967 case ${target} in
12968 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12969 *) have_unwind_getipinfo=yes ;;
12970 esac
12974 if test x$have_unwind_getipinfo = xyes; then
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_GETIPINFO 1
12978 _ACEOF
12983 # --------------------------------------------------------
12984 # Build, host, and target specific configuration fragments
12985 # --------------------------------------------------------
12987 # Collect build-machine-specific information.
12988 . ${srcdir}/config.build
12990 # Collect host-machine-specific information.
12991 . ${srcdir}/config.host
12993 target_gtfiles=
12995 # Collect target-machine-specific information.
12996 . ${srcdir}/config.gcc
12998 extra_objs="${host_extra_objs} ${extra_objs}"
12999 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13001 # Default the target-machine variables that were not explicitly set.
13002 if test x"$tm_file" = x
13003 then tm_file=$cpu_type/$cpu_type.h; fi
13005 if test x"$extra_headers" = x
13006 then extra_headers=; fi
13008 if test x$md_file = x
13009 then md_file=$cpu_type/$cpu_type.md; fi
13011 if test x$out_file = x
13012 then out_file=$cpu_type/$cpu_type.c; fi
13014 if test x"$tmake_file" = x
13015 then tmake_file=$cpu_type/t-$cpu_type
13018 if test x"$dwarf2" = xyes
13019 then tm_file="$tm_file tm-dwarf2.h"
13022 # Say what files are being used for the output code and MD file.
13023 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13024 echo "Using \`$srcdir/config/$md_file' as machine description file."
13026 # If any of the xm_file variables contain nonexistent files, warn
13027 # about them and drop them.
13030 for x in $build_xm_file; do
13031 if test -f $srcdir/config/$x
13032 then bx="$bx $x"
13033 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13034 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13036 done
13037 build_xm_file="$bx"
13040 for x in $host_xm_file; do
13041 if test -f $srcdir/config/$x
13042 then hx="$hx $x"
13043 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13044 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13046 done
13047 host_xm_file="$hx"
13050 for x in $xm_file; do
13051 if test -f $srcdir/config/$x
13052 then tx="$tx $x"
13053 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13054 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13056 done
13057 xm_file="$tx"
13059 count=a
13060 for f in $tm_file; do
13061 count=${count}x
13062 done
13063 if test $count = ax; then
13064 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13065 else
13066 echo "Using the following target machine macro files:"
13067 for f in $tm_file; do
13068 echo " $srcdir/config/$f"
13069 done
13072 if test x$need_64bit_hwint = xyes; then
13074 cat >>confdefs.h <<\_ACEOF
13075 #define NEED_64BIT_HOST_WIDE_INT 1
13076 _ACEOF
13080 if test x$use_long_long_for_widest_fast_int = xyes; then
13082 cat >>confdefs.h <<\_ACEOF
13083 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13084 _ACEOF
13088 count=a
13089 for f in $host_xm_file; do
13090 count=${count}x
13091 done
13092 if test $count = a; then
13094 elif test $count = ax; then
13095 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13096 else
13097 echo "Using the following host machine macro files:"
13098 for f in $host_xm_file; do
13099 echo " $srcdir/config/$f"
13100 done
13102 echo "Using ${out_host_hook_obj} for host machine hooks."
13104 if test "$host_xm_file" != "$build_xm_file"; then
13105 count=a
13106 for f in $build_xm_file; do
13107 count=${count}x
13108 done
13109 if test $count = a; then
13111 elif test $count = ax; then
13112 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13113 else
13114 echo "Using the following build machine macro files:"
13115 for f in $build_xm_file; do
13116 echo " $srcdir/config/$f"
13117 done
13121 case ${host} in
13122 powerpc*-*-darwin*)
13123 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13124 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13125 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 cat >conftest.$ac_ext <<_ACEOF
13130 #include <sys/cdefs.h>
13131 #include <sys/signal.h>
13132 #include <ucontext.h>
13133 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138 (eval $ac_compile) 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_c_werror_flag"
13146 || test ! -s conftest.err'
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest.$ac_objext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 gcc_cv_mcontext_underscores=no
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 gcc_cv_mcontext_underscores=yes
13165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13167 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13168 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13169 if test $gcc_cv_mcontext_underscores = yes; then
13171 cat >>confdefs.h <<\_ACEOF
13172 #define HAS_MCONTEXT_T_UNDERSCORES
13173 _ACEOF
13177 esac
13179 # ---------
13180 # Threading
13181 # ---------
13183 # Check if a valid thread package
13184 case ${enable_threads} in
13185 "" | no)
13186 # No threads
13187 target_thread_file='single'
13189 yes)
13190 # default
13191 target_thread_file='single'
13193 aix | dce | gnat | irix | posix | posix95 | rtems | \
13194 single | solaris | vxworks | win32 | mipssde)
13195 target_thread_file=${enable_threads}
13198 echo "${enable_threads} is an unknown thread package" 1>&2
13199 exit 1
13201 esac
13203 if test x${thread_file} = x; then
13204 # No thread file set by target-specific clauses in config.gcc,
13205 # so use file chosen by default logic above
13206 thread_file=${target_thread_file}
13209 # Make gthr-default.h if we have a thread file.
13210 gthread_flags=
13211 if test $thread_file != single; then
13212 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13213 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13214 rm -f gthr-default.h-t
13215 else
13216 mv -f gthr-default.h-t gthr-default.h
13218 gthread_flags=-DHAVE_GTHR_DEFAULT
13222 # --------
13223 # UNSORTED
13224 # --------
13226 use_cxa_atexit=no
13227 if test x$enable___cxa_atexit = xyes || \
13228 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13229 if test x$host = x$target; then
13230 case $host in
13231 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13232 # keyed to flag_use_cxa_atexit
13233 *-*-mingw32*)
13234 use_cxa_atexit=yes
13237 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13238 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13239 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 else
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13250 #define __cxa_atexit innocuous___cxa_atexit
13252 /* System header to define __stub macros and hopefully few prototypes,
13253 which can conflict with char __cxa_atexit (); below.
13254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13255 <limits.h> exists even on freestanding compilers. */
13257 #ifdef __STDC__
13258 # include <limits.h>
13259 #else
13260 # include <assert.h>
13261 #endif
13263 #undef __cxa_atexit
13265 /* Override any gcc2 internal prototype to avoid an error. */
13266 #ifdef __cplusplus
13267 extern "C"
13269 #endif
13270 /* We use char because int might match the return type of a gcc2
13271 builtin and then its argument prototype would still apply. */
13272 char __cxa_atexit ();
13273 /* The GNU C library defines this for functions which it implements
13274 to always fail with ENOSYS. Some functions are actually named
13275 something starting with __ and the normal name is an alias. */
13276 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13277 choke me
13278 #else
13279 char (*f) () = __cxa_atexit;
13280 #endif
13281 #ifdef __cplusplus
13283 #endif
13286 main ()
13288 return f != __cxa_atexit;
13290 return 0;
13292 _ACEOF
13293 rm -f conftest.$ac_objext conftest$ac_exeext
13294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>conftest.er1
13296 ac_status=$?
13297 grep -v '^ *+' conftest.er1 >conftest.err
13298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); } &&
13302 { ac_try='test -z "$ac_c_werror_flag"
13303 || test ! -s conftest.err'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_func___cxa_atexit=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_cv_func___cxa_atexit=no
13322 rm -f conftest.err conftest.$ac_objext \
13323 conftest$ac_exeext conftest.$ac_ext
13325 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13326 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13327 if test $ac_cv_func___cxa_atexit = yes; then
13328 use_cxa_atexit=yes
13329 else
13330 echo "__cxa_atexit can't be enabled on this target"
13334 esac
13335 else
13336 # We can't check for __cxa_atexit when building a cross, so assume
13337 # it is available
13338 use_cxa_atexit=yes
13340 if test x$use_cxa_atexit = xyes; then
13342 cat >>confdefs.h <<\_ACEOF
13343 #define DEFAULT_USE_CXA_ATEXIT 2
13344 _ACEOF
13349 # Look for a file containing extra machine modes.
13350 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13351 extra_modes_file='$(srcdir)'/config/${extra_modes}
13354 cat >>confdefs.h <<_ACEOF
13355 #define EXTRA_MODES_FILE "config/$extra_modes"
13356 _ACEOF
13360 # Convert extra_options into a form suitable for Makefile use.
13361 extra_opt_files=
13362 for f in $extra_options; do
13363 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13364 done
13367 # auto-host.h is the file containing items generated by autoconf and is
13368 # the first file included by config.h.
13369 # If host=build, it is correct to have bconfig include auto-host.h
13370 # as well. If host!=build, we are in error and need to do more
13371 # work to find out the build config parameters.
13372 if test x$host = x$build
13373 then
13374 build_auto=auto-host.h
13375 else
13376 # We create a subdir, then run autoconf in the subdir.
13377 # To prevent recursion we set host and build for the new
13378 # invocation of configure to the build for this invocation
13379 # of configure.
13380 tempdir=build.$$
13381 rm -rf $tempdir
13382 mkdir $tempdir
13383 cd $tempdir
13384 case ${srcdir} in
13385 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13386 *) realsrcdir=../${srcdir};;
13387 esac
13388 saved_CFLAGS="${CFLAGS}"
13389 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13390 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13391 ${realsrcdir}/configure \
13392 --enable-languages=${enable_languages-all} \
13393 --target=$target_alias --host=$build_alias --build=$build_alias
13394 CFLAGS="${saved_CFLAGS}"
13396 # We just finished tests for the build machine, so rename
13397 # the file auto-build.h in the gcc directory.
13398 mv auto-host.h ../auto-build.h
13399 cd ..
13400 rm -rf $tempdir
13401 build_auto=auto-build.h
13405 tm_file="${tm_file} defaults.h"
13406 tm_p_file="${tm_p_file} tm-preds.h"
13407 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13408 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13409 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13410 # put this back in temporarily.
13411 xm_file="auto-host.h ansidecl.h ${xm_file}"
13413 # --------
13414 # UNSORTED
13415 # --------
13417 # Compile in configure arguments.
13418 if test -f configargs.h ; then
13419 # Being re-configured.
13420 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13421 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13422 else
13423 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13426 # Double all backslashes and backslash all quotes to turn
13427 # gcc_config_arguments into a C string.
13428 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13429 $gcc_config_arguments
13431 gcc_config_arguments_str=`cat conftest.out`
13432 rm -f conftest.out
13434 cat > configargs.h <<EOF
13435 /* Generated automatically. */
13436 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13437 static const char thread_model[] = "$thread_file";
13439 static const struct {
13440 const char *name, *value;
13441 } configure_default_options[] = $configure_default_options;
13444 # Internationalization
13445 # If we haven't got the data from the intl directory,
13446 # assume NLS is disabled.
13447 USE_NLS=no
13448 LIBINTL=
13449 LIBINTL_DEP=
13450 INCINTL=
13451 XGETTEXT=
13452 GMSGFMT=
13453 POSUB=
13455 if test -f ../intl/config.intl; then
13456 . ../intl/config.intl
13458 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13459 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13460 if test x"$USE_NLS" != xyes; then
13461 echo "$as_me:$LINENO: result: no" >&5
13462 echo "${ECHO_T}no" >&6
13463 else
13464 echo "$as_me:$LINENO: result: yes" >&5
13465 echo "${ECHO_T}yes" >&6
13467 cat >>confdefs.h <<\_ACEOF
13468 #define ENABLE_NLS 1
13469 _ACEOF
13472 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13473 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13474 # Look for .po and .gmo files in the source directory.
13475 CATALOGS=
13476 XLINGUAS=
13477 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13478 # If there aren't any .gmo files the shell will give us the
13479 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13480 # weeded out.
13481 case "$cat" in *\**)
13482 continue;;
13483 esac
13484 # The quadruple backslash is collapsed to a double backslash
13485 # by the backticks, then collapsed again by the double quotes,
13486 # leaving us with one backslash in the sed expression (right
13487 # before the dot that mustn't act as a wildcard).
13488 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13489 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13490 # The user is allowed to set LINGUAS to a list of languages to
13491 # install catalogs for. If it's empty that means "all of them."
13492 if test "x$LINGUAS" = x; then
13493 CATALOGS="$CATALOGS $cat"
13494 XLINGUAS="$XLINGUAS $lang"
13495 else
13496 case "$LINGUAS" in *$lang*)
13497 CATALOGS="$CATALOGS $cat"
13498 XLINGUAS="$XLINGUAS $lang"
13500 esac
13502 done
13503 LINGUAS="$XLINGUAS"
13504 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13505 echo "${ECHO_T}$LINGUAS" >&6
13508 DATADIRNAME=share
13510 INSTOBJEXT=.mo
13512 GENCAT=gencat
13514 CATOBJEXT=.gmo
13518 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13519 # -liconv on the link line twice.
13520 case "$LIBINTL" in *$LIBICONV*)
13521 LIBICONV= ;;
13522 esac
13524 # Check whether --enable-secureplt or --disable-secureplt was given.
13525 if test "${enable_secureplt+set}" = set; then
13526 enableval="$enable_secureplt"
13530 # Check whether --enable-cld or --disable-cld was given.
13531 if test "${enable_cld+set}" = set; then
13532 enableval="$enable_cld"
13534 else
13535 enable_cld=no
13538 # Windows32 Registry support for specifying GCC installation paths.
13539 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13540 if test "${enable_win32_registry+set}" = set; then
13541 enableval="$enable_win32_registry"
13545 case $host_os in
13546 win32 | pe | cygwin* | mingw32* | uwin*)
13547 if test "x$enable_win32_registry" != xno; then
13548 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13549 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 ac_func_search_save_LIBS=$LIBS
13554 ac_cv_search_RegOpenKeyExA=no
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 /* Override any gcc2 internal prototype to avoid an error. */
13563 #ifdef __cplusplus
13564 extern "C"
13565 #endif
13566 /* We use char because int might match the return type of a gcc2
13567 builtin and then its argument prototype would still apply. */
13568 char RegOpenKeyExA ();
13570 main ()
13572 RegOpenKeyExA ();
13574 return 0;
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579 (eval $ac_link) 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -z "$ac_c_werror_flag"
13587 || test ! -s conftest.err'
13588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589 (eval $ac_try) 2>&5
13590 ac_status=$?
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); }; } &&
13593 { ac_try='test -s conftest$ac_exeext'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13596 ac_status=$?
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; }; then
13599 ac_cv_search_RegOpenKeyExA="none required"
13600 else
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13605 rm -f conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13608 for ac_lib in advapi32; do
13609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13617 /* Override any gcc2 internal prototype to avoid an error. */
13618 #ifdef __cplusplus
13619 extern "C"
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13623 char RegOpenKeyExA ();
13625 main ()
13627 RegOpenKeyExA ();
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13634 (eval $ac_link) 2>conftest.er1
13635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_c_werror_flag"
13642 || test ! -s conftest.err'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } &&
13648 { ac_try='test -s conftest$ac_exeext'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13655 break
13656 else
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13661 rm -f conftest.err conftest.$ac_objext \
13662 conftest$ac_exeext conftest.$ac_ext
13663 done
13665 LIBS=$ac_func_search_save_LIBS
13667 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13668 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13669 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13670 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13672 else
13673 enable_win32_registry=no
13678 if test "x$enable_win32_registry" != xno; then
13680 cat >>confdefs.h <<\_ACEOF
13681 #define ENABLE_WIN32_REGISTRY 1
13682 _ACEOF
13685 if test "x$enable_win32_registry" != xyes \
13686 && test "x$enable_win32_registry" != x; then
13688 cat >>confdefs.h <<_ACEOF
13689 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13690 _ACEOF
13695 esac
13697 # Get an absolute path to the GCC top-level source directory
13698 holddir=`${PWDCMD-pwd}`
13699 cd $srcdir
13700 topdir=`${PWDCMD-pwd}`
13701 cd $holddir
13703 # Conditionalize the makefile for this host machine.
13704 xmake_file=
13705 for f in ${host_xmake_file}
13707 if test -f ${srcdir}/config/$f
13708 then
13709 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13711 done
13713 # Conditionalize the makefile for this target machine.
13714 tmake_file_=
13715 for f in ${tmake_file}
13717 if test -f ${srcdir}/config/$f
13718 then
13719 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13721 done
13722 tmake_file="${tmake_file_}"
13724 out_object_file=`basename $out_file .c`.o
13726 tm_file_list="options.h"
13727 tm_include_list="options.h"
13728 for f in $tm_file; do
13729 case $f in
13730 ./* )
13731 f=`echo $f | sed 's/^..//'`
13732 tm_file_list="${tm_file_list} $f"
13733 tm_include_list="${tm_include_list} $f"
13735 defaults.h )
13736 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13737 tm_include_list="${tm_include_list} $f"
13740 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13741 tm_include_list="${tm_include_list} config/$f"
13743 esac
13744 done
13746 tm_p_file_list=
13747 tm_p_include_list=
13748 for f in $tm_p_file; do
13749 case $f in
13750 tm-preds.h )
13751 tm_p_file_list="${tm_p_file_list} $f"
13752 tm_p_include_list="${tm_p_include_list} $f"
13755 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13756 tm_p_include_list="${tm_p_include_list} config/$f"
13757 esac
13758 done
13760 xm_file_list=
13761 xm_include_list=
13762 for f in $xm_file; do
13763 case $f in
13764 ansidecl.h )
13765 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13766 xm_include_list="${xm_include_list} $f"
13768 auto-host.h )
13769 xm_file_list="${xm_file_list} $f"
13770 xm_include_list="${xm_include_list} $f"
13773 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13774 xm_include_list="${xm_include_list} config/$f"
13776 esac
13777 done
13779 host_xm_file_list=
13780 host_xm_include_list=
13781 for f in $host_xm_file; do
13782 case $f in
13783 ansidecl.h )
13784 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13785 host_xm_include_list="${host_xm_include_list} $f"
13787 auto-host.h )
13788 host_xm_file_list="${host_xm_file_list} $f"
13789 host_xm_include_list="${host_xm_include_list} $f"
13792 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13793 host_xm_include_list="${host_xm_include_list} config/$f"
13795 esac
13796 done
13798 build_xm_file_list=
13799 for f in $build_xm_file; do
13800 case $f in
13801 ansidecl.h )
13802 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13803 build_xm_include_list="${build_xm_include_list} $f"
13805 auto-build.h | auto-host.h )
13806 build_xm_file_list="${build_xm_file_list} $f"
13807 build_xm_include_list="${build_xm_include_list} $f"
13810 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13811 build_xm_include_list="${build_xm_include_list} config/$f"
13813 esac
13814 done
13816 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13817 # cross-compiler which does not use the native headers and libraries.
13818 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13819 CROSS=
13820 ALL=all.internal
13821 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13823 if test "x$with_build_sysroot" != x; then
13824 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13825 else
13826 # This value is used, even on a native system, because
13827 # CROSS_SYSTEM_HEADER_DIR is just
13828 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13829 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13832 if test x$host != x$target
13833 then
13834 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13835 ALL=all.cross
13836 SYSTEM_HEADER_DIR=$build_system_header_dir
13837 case "$host","$target" in
13838 # Darwin crosses can use the host system's libraries and headers,
13839 # because of the fat library support. Of course, it must be the
13840 # same version of Darwin on both sides. Allow the user to
13841 # just say --target=foo-darwin without a version number to mean
13842 # "the version on this system".
13843 *-*-darwin*,*-*-darwin*)
13844 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13845 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13846 if test $hostos = $targetos -o $targetos = darwin ; then
13847 CROSS=
13848 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13849 with_headers=yes
13853 i?86-*-*,x86_64-*-* \
13854 | powerpc*-*-*,powerpc64*-*-*)
13855 CROSS="$CROSS -DNATIVE_CROSS" ;;
13856 esac
13857 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13858 SYSTEM_HEADER_DIR=$build_system_header_dir
13861 # If this is a cross-compiler that does not
13862 # have its own set of headers then define
13863 # inhibit_libc
13865 # If this is using newlib, without having the headers available now,
13866 # then define inhibit_libc in LIBGCC2_CFLAGS.
13867 # This prevents libgcc2 from containing any code which requires libc
13868 # support.
13869 : ${inhibit_libc=false}
13870 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13871 test x$with_newlib = xyes ; } &&
13872 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13873 inhibit_libc=true
13877 # When building gcc with a cross-compiler, we need to adjust things so
13878 # that the generator programs are still built with the native compiler.
13879 # Also, we cannot run fixincludes.
13881 # These are the normal (build=host) settings:
13882 CC_FOR_BUILD='$(CC)'
13883 BUILD_CFLAGS='$(ALL_CFLAGS)'
13884 BUILD_LDFLAGS='$(LDFLAGS)'
13885 STMP_FIXINC=stmp-fixinc
13887 # And these apply if build != host, or we are generating coverage data
13888 if test x$build != x$host || test "x$coverage_flags" != x
13889 then
13890 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13891 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13894 # Expand extra_headers to include complete path.
13895 # This substitutes for lots of t-* files.
13896 extra_headers_list=
13897 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13898 for file in ${extra_headers} ; do
13899 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13900 done
13902 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13903 if test x"$use_gcc_tgmath" = xyes
13904 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13907 # Define collect2 in Makefile.
13908 case $host_can_use_collect2 in
13909 no) collect2= ;;
13910 *) collect2='collect2$(exeext)' ;;
13911 esac
13914 # Add a definition of USE_COLLECT2 if system wants one.
13915 case $use_collect2 in
13916 no) use_collect2= ;;
13917 "") ;;
13919 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13920 xm_defines="${xm_defines} USE_COLLECT2"
13921 case $host_can_use_collect2 in
13923 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13924 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13925 { (exit 1); exit 1; }; }
13927 esac
13929 esac
13931 # ---------------------------
13932 # Assembler & linker features
13933 # ---------------------------
13935 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13936 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13937 # However when ld-new is first executed from the build tree, libtool will
13938 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13939 # to the build tree. While doing this we need to use the previous-stage
13940 # linker, or we have an infinite loop. The presence of a shell script as
13941 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13942 # the gcc/collect-ld script. So we need to know how libtool works, or
13943 # exec-tool will fail.
13946 case `pwd` in
13947 *\ * | *\ *)
13948 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13949 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13950 esac
13954 macro_version='2.2.6'
13955 macro_revision='1.3012'
13969 ltmain="$ac_aux_dir/ltmain.sh"
13971 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13972 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13973 if test "${lt_cv_path_SED+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 else
13976 # Loop through the user's path and test for sed and gsed.
13977 # Then use that list of sed's as ones to test for truncation.
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for lt_ac_prog in sed gsed; do
13984 for ac_exec_ext in '' $ac_executable_extensions; do
13985 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13986 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13988 done
13989 done
13990 done
13991 IFS=$as_save_IFS
13992 lt_ac_max=0
13993 lt_ac_count=0
13994 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
13995 # along with /bin/sed that truncates output.
13996 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13997 test ! -f $lt_ac_sed && continue
13998 cat /dev/null > conftest.in
13999 lt_ac_count=0
14000 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14001 # Check for GNU sed and select it if it is found.
14002 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14003 lt_cv_path_SED=$lt_ac_sed
14004 break
14006 while true; do
14007 cat conftest.in conftest.in >conftest.tmp
14008 mv conftest.tmp conftest.in
14009 cp conftest.in conftest.nl
14010 echo >>conftest.nl
14011 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14012 cmp -s conftest.out conftest.nl || break
14013 # 10000 chars as input seems more than enough
14014 test $lt_ac_count -gt 10 && break
14015 lt_ac_count=`expr $lt_ac_count + 1`
14016 if test $lt_ac_count -gt $lt_ac_max; then
14017 lt_ac_max=$lt_ac_count
14018 lt_cv_path_SED=$lt_ac_sed
14020 done
14021 done
14025 SED=$lt_cv_path_SED
14027 echo "$as_me:$LINENO: result: $SED" >&5
14028 echo "${ECHO_T}$SED" >&6
14030 test -z "$SED" && SED=sed
14031 Xsed="$SED -e 1s/^X//"
14043 echo "$as_me:$LINENO: checking for fgrep" >&5
14044 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14045 if test "${ac_cv_prog_fgrep+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14049 then ac_cv_prog_fgrep='grep -F'
14050 else ac_cv_prog_fgrep='fgrep'
14053 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14054 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14055 FGREP=$ac_cv_prog_fgrep
14058 test -z "$GREP" && GREP=grep
14078 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14079 if test "${with_gnu_ld+set}" = set; then
14080 withval="$with_gnu_ld"
14081 test "$withval" = no || with_gnu_ld=yes
14082 else
14083 with_gnu_ld=no
14085 ac_prog=ld
14086 if test "$GCC" = yes; then
14087 # Check if gcc -print-prog-name=ld gives a path.
14088 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14089 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14090 case $host in
14091 *-*-mingw*)
14092 # gcc leaves a trailing carriage return which upsets mingw
14093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14096 esac
14097 case $ac_prog in
14098 # Accept absolute paths.
14099 [\\/]* | ?:[\\/]*)
14100 re_direlt='/[^/][^/]*/\.\./'
14101 # Canonicalize the pathname of ld
14102 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14103 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14104 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14105 done
14106 test -z "$LD" && LD="$ac_prog"
14109 # If it fails, then pretend we aren't using GCC.
14110 ac_prog=ld
14113 # If it is relative, then search for the first ld in PATH.
14114 with_gnu_ld=unknown
14116 esac
14117 elif test "$with_gnu_ld" = yes; then
14118 echo "$as_me:$LINENO: checking for GNU ld" >&5
14119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14120 else
14121 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14124 if test "${lt_cv_path_LD+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 else
14127 if test -z "$LD"; then
14128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14129 for ac_dir in $PATH; do
14130 IFS="$lt_save_ifs"
14131 test -z "$ac_dir" && ac_dir=.
14132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14133 lt_cv_path_LD="$ac_dir/$ac_prog"
14134 # Check to see if the program is GNU ld. I'd rather use --version,
14135 # but apparently some variants of GNU ld only accept -v.
14136 # Break only if it was the GNU/non-GNU ld that we prefer.
14137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14138 *GNU* | *'with BFD'*)
14139 test "$with_gnu_ld" != no && break
14142 test "$with_gnu_ld" != yes && break
14144 esac
14146 done
14147 IFS="$lt_save_ifs"
14148 else
14149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14153 LD="$lt_cv_path_LD"
14154 if test -n "$LD"; then
14155 echo "$as_me:$LINENO: result: $LD" >&5
14156 echo "${ECHO_T}$LD" >&6
14157 else
14158 echo "$as_me:$LINENO: result: no" >&5
14159 echo "${ECHO_T}no" >&6
14161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14163 { (exit 1); exit 1; }; }
14164 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14166 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14170 case `$LD -v 2>&1 </dev/null` in
14171 *GNU* | *'with BFD'*)
14172 lt_cv_prog_gnu_ld=yes
14175 lt_cv_prog_gnu_ld=no
14177 esac
14179 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14180 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14181 with_gnu_ld=$lt_cv_prog_gnu_ld
14191 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14192 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14193 if test "${lt_cv_path_NM+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196 if test -n "$NM"; then
14197 # Let the user override the test.
14198 lt_cv_path_NM="$NM"
14199 else
14200 lt_nm_to_check="${ac_tool_prefix}nm"
14201 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14202 lt_nm_to_check="$lt_nm_to_check nm"
14204 for lt_tmp_nm in $lt_nm_to_check; do
14205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14206 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14207 IFS="$lt_save_ifs"
14208 test -z "$ac_dir" && ac_dir=.
14209 tmp_nm="$ac_dir/$lt_tmp_nm"
14210 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14211 # Check to see if the nm accepts a BSD-compat flag.
14212 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14213 # nm: unknown option "B" ignored
14214 # Tru64's nm complains that /dev/null is an invalid object file
14215 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14216 */dev/null* | *'Invalid file or object type'*)
14217 lt_cv_path_NM="$tmp_nm -B"
14218 break
14221 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14222 */dev/null*)
14223 lt_cv_path_NM="$tmp_nm -p"
14224 break
14227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14228 continue # so that we can try to find one that supports BSD flags
14230 esac
14232 esac
14234 done
14235 IFS="$lt_save_ifs"
14236 done
14237 : ${lt_cv_path_NM=no}
14240 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14241 echo "${ECHO_T}$lt_cv_path_NM" >&6
14242 if test "$lt_cv_path_NM" != "no"; then
14243 NM="$lt_cv_path_NM"
14244 else
14245 # Didn't find any BSD compatible name lister, look for dumpbin.
14246 if test -n "$ac_tool_prefix"; then
14247 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14251 echo "$as_me:$LINENO: checking for $ac_word" >&5
14252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14253 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 if test -n "$DUMPBIN"; then
14257 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14258 else
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14262 IFS=$as_save_IFS
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14266 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14268 break 2
14270 done
14271 done
14275 DUMPBIN=$ac_cv_prog_DUMPBIN
14276 if test -n "$DUMPBIN"; then
14277 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14278 echo "${ECHO_T}$DUMPBIN" >&6
14279 else
14280 echo "$as_me:$LINENO: result: no" >&5
14281 echo "${ECHO_T}no" >&6
14284 test -n "$DUMPBIN" && break
14285 done
14287 if test -z "$DUMPBIN"; then
14288 ac_ct_DUMPBIN=$DUMPBIN
14289 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14291 # Extract the first word of "$ac_prog", so it can be a program name with args.
14292 set dummy $ac_prog; ac_word=$2
14293 echo "$as_me:$LINENO: checking for $ac_word" >&5
14294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14295 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298 if test -n "$ac_ct_DUMPBIN"; then
14299 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14300 else
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302 for as_dir in $PATH
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
14306 for ac_exec_ext in '' $ac_executable_extensions; do
14307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14308 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 break 2
14312 done
14313 done
14317 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14318 if test -n "$ac_ct_DUMPBIN"; then
14319 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14320 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14321 else
14322 echo "$as_me:$LINENO: result: no" >&5
14323 echo "${ECHO_T}no" >&6
14326 test -n "$ac_ct_DUMPBIN" && break
14327 done
14328 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14330 DUMPBIN=$ac_ct_DUMPBIN
14334 if test "$DUMPBIN" != ":"; then
14335 NM="$DUMPBIN"
14338 test -z "$NM" && NM=nm
14345 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14346 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14347 if test "${lt_cv_nm_interface+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 lt_cv_nm_interface="BSD nm"
14351 echo "int some_variable = 0;" > conftest.$ac_ext
14352 (eval echo "\"\$as_me:14352: $ac_compile\"" >&5)
14353 (eval "$ac_compile" 2>conftest.err)
14354 cat conftest.err >&5
14355 (eval echo "\"\$as_me:14355: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14356 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14357 cat conftest.err >&5
14358 (eval echo "\"\$as_me:14358: output\"" >&5)
14359 cat conftest.out >&5
14360 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14361 lt_cv_nm_interface="MS dumpbin"
14363 rm -f conftest*
14365 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14366 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14368 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14369 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14370 LN_S=$as_ln_s
14371 if test "$LN_S" = "ln -s"; then
14372 echo "$as_me:$LINENO: result: yes" >&5
14373 echo "${ECHO_T}yes" >&6
14374 else
14375 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14376 echo "${ECHO_T}no, using $LN_S" >&6
14379 # find the maximum length of command line arguments
14380 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14381 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14382 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14386 teststring="ABCD"
14388 case $build_os in
14389 msdosdjgpp*)
14390 # On DJGPP, this test can blow up pretty badly due to problems in libc
14391 # (any single argument exceeding 2000 bytes causes a buffer overrun
14392 # during glob expansion). Even if it were fixed, the result of this
14393 # check would be larger than it should be.
14394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14397 gnu*)
14398 # Under GNU Hurd, this test is not required because there is
14399 # no limit to the length of command line arguments.
14400 # Libtool will interpret -1 as no limit whatsoever
14401 lt_cv_sys_max_cmd_len=-1;
14404 cygwin* | mingw* | cegcc*)
14405 # On Win9x/ME, this test blows up -- it succeeds, but takes
14406 # about 5 minutes as the teststring grows exponentially.
14407 # Worse, since 9x/ME are not pre-emptively multitasking,
14408 # you end up with a "frozen" computer, even though with patience
14409 # the test eventually succeeds (with a max line length of 256k).
14410 # Instead, let's just punt: use the minimum linelength reported by
14411 # all of the supported platforms: 8192 (on NT/2K/XP).
14412 lt_cv_sys_max_cmd_len=8192;
14415 amigaos*)
14416 # On AmigaOS with pdksh, this test takes hours, literally.
14417 # So we just punt and use a minimum line length of 8192.
14418 lt_cv_sys_max_cmd_len=8192;
14421 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14422 # This has been around since 386BSD, at least. Likely further.
14423 if test -x /sbin/sysctl; then
14424 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14425 elif test -x /usr/sbin/sysctl; then
14426 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14427 else
14428 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14430 # And add a safety zone
14431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14435 interix*)
14436 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14437 lt_cv_sys_max_cmd_len=196608
14440 osf*)
14441 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14442 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14443 # nice to cause kernel panics so lets avoid the loop below.
14444 # First set a reasonable default.
14445 lt_cv_sys_max_cmd_len=16384
14447 if test -x /sbin/sysconfig; then
14448 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14449 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14450 esac
14453 sco3.2v5*)
14454 lt_cv_sys_max_cmd_len=102400
14456 sysv5* | sco5v6* | sysv4.2uw2*)
14457 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14458 if test -n "$kargmax"; then
14459 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14460 else
14461 lt_cv_sys_max_cmd_len=32768
14465 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14466 if test -n "$lt_cv_sys_max_cmd_len"; then
14467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14469 else
14470 # Make teststring a little bigger before we do anything with it.
14471 # a 1K string should be a reasonable start.
14472 for i in 1 2 3 4 5 6 7 8 ; do
14473 teststring=$teststring$teststring
14474 done
14475 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14476 # If test is not a shell built-in, we'll probably end up computing a
14477 # maximum length that is only half of the actual maximum length, but
14478 # we can't tell.
14479 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14480 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14481 test $i != 17 # 1/2 MB should be enough
14483 i=`expr $i + 1`
14484 teststring=$teststring$teststring
14485 done
14486 # Only check the string length outside the loop.
14487 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14488 teststring=
14489 # Add a significant safety factor because C++ compilers can tack on
14490 # massive amounts of additional arguments before passing them to the
14491 # linker. It appears as though 1/2 is a usable value.
14492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14495 esac
14499 if test -n $lt_cv_sys_max_cmd_len ; then
14500 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14501 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14502 else
14503 echo "$as_me:$LINENO: result: none" >&5
14504 echo "${ECHO_T}none" >&6
14506 max_cmd_len=$lt_cv_sys_max_cmd_len
14513 : ${CP="cp -f"}
14514 : ${MV="mv -f"}
14515 : ${RM="rm -f"}
14517 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14518 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14519 # Try some XSI features
14520 xsi_shell=no
14521 ( _lt_dummy="a/b/c"
14522 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14523 = c,a/b,, \
14524 && eval 'test $(( 1 + 1 )) -eq 2 \
14525 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14526 && xsi_shell=yes
14527 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14528 echo "${ECHO_T}$xsi_shell" >&6
14531 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14532 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14533 lt_shell_append=no
14534 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14535 >/dev/null 2>&1 \
14536 && lt_shell_append=yes
14537 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14538 echo "${ECHO_T}$lt_shell_append" >&6
14541 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14542 lt_unset=unset
14543 else
14544 lt_unset=false
14551 # test EBCDIC or ASCII
14552 case `echo X|tr X '\101'` in
14553 A) # ASCII based system
14554 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14555 lt_SP2NL='tr \040 \012'
14556 lt_NL2SP='tr \015\012 \040\040'
14558 *) # EBCDIC based system
14559 lt_SP2NL='tr \100 \n'
14560 lt_NL2SP='tr \r\n \100\100'
14562 esac
14572 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14573 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14574 if test "${lt_cv_ld_reload_flag+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 lt_cv_ld_reload_flag='-r'
14579 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14580 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14581 reload_flag=$lt_cv_ld_reload_flag
14582 case $reload_flag in
14583 "" | " "*) ;;
14584 *) reload_flag=" $reload_flag" ;;
14585 esac
14586 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14587 case $host_os in
14588 darwin*)
14589 if test "$GCC" = yes; then
14590 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14591 else
14592 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14595 esac
14605 if test -n "$ac_tool_prefix"; then
14606 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14607 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14608 echo "$as_me:$LINENO: checking for $ac_word" >&5
14609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14610 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613 if test -n "$OBJDUMP"; then
14614 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14615 else
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14619 IFS=$as_save_IFS
14620 test -z "$as_dir" && as_dir=.
14621 for ac_exec_ext in '' $ac_executable_extensions; do
14622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14625 break 2
14627 done
14628 done
14632 OBJDUMP=$ac_cv_prog_OBJDUMP
14633 if test -n "$OBJDUMP"; then
14634 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
14635 echo "${ECHO_T}$OBJDUMP" >&6
14636 else
14637 echo "$as_me:$LINENO: result: no" >&5
14638 echo "${ECHO_T}no" >&6
14642 if test -z "$ac_cv_prog_OBJDUMP"; then
14643 ac_ct_OBJDUMP=$OBJDUMP
14644 # Extract the first word of "objdump", so it can be a program name with args.
14645 set dummy objdump; ac_word=$2
14646 echo "$as_me:$LINENO: checking for $ac_word" >&5
14647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14648 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651 if test -n "$ac_ct_OBJDUMP"; then
14652 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14653 else
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14657 IFS=$as_save_IFS
14658 test -z "$as_dir" && as_dir=.
14659 for ac_exec_ext in '' $ac_executable_extensions; do
14660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14663 break 2
14665 done
14666 done
14668 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
14671 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14672 if test -n "$ac_ct_OBJDUMP"; then
14673 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
14674 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
14675 else
14676 echo "$as_me:$LINENO: result: no" >&5
14677 echo "${ECHO_T}no" >&6
14680 OBJDUMP=$ac_ct_OBJDUMP
14681 else
14682 OBJDUMP="$ac_cv_prog_OBJDUMP"
14685 test -z "$OBJDUMP" && OBJDUMP=objdump
14695 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14696 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14697 if test "${lt_cv_deplibs_check_method+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 lt_cv_file_magic_cmd='$MAGIC_CMD'
14701 lt_cv_file_magic_test_file=
14702 lt_cv_deplibs_check_method='unknown'
14703 # Need to set the preceding variable on all platforms that support
14704 # interlibrary dependencies.
14705 # 'none' -- dependencies not supported.
14706 # `unknown' -- same as none, but documents that we really don't know.
14707 # 'pass_all' -- all dependencies passed with no checks.
14708 # 'test_compile' -- check by making test program.
14709 # 'file_magic [[regex]]' -- check by looking for files in library path
14710 # which responds to the $file_magic_cmd with a given extended regex.
14711 # If you have `file' or equivalent on your system and you're not sure
14712 # whether `pass_all' will *always* work, you probably want this one.
14714 case $host_os in
14715 aix[4-9]*)
14716 lt_cv_deplibs_check_method=pass_all
14719 beos*)
14720 lt_cv_deplibs_check_method=pass_all
14723 bsdi[45]*)
14724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14725 lt_cv_file_magic_cmd='/usr/bin/file -L'
14726 lt_cv_file_magic_test_file=/shlib/libc.so
14729 cygwin*)
14730 # func_win32_libid is a shell function defined in ltmain.sh
14731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14732 lt_cv_file_magic_cmd='func_win32_libid'
14735 mingw* | pw32*)
14736 # Base MSYS/MinGW do not provide the 'file' command needed by
14737 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14738 # unless we find 'file', for example because we are cross-compiling.
14739 if ( file / ) >/dev/null 2>&1; then
14740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14741 lt_cv_file_magic_cmd='func_win32_libid'
14742 else
14743 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14744 lt_cv_file_magic_cmd='$OBJDUMP -f'
14748 cegcc)
14749 # use the weaker test based on 'objdump'. See mingw*.
14750 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14751 lt_cv_file_magic_cmd='$OBJDUMP -f'
14754 darwin* | rhapsody*)
14755 lt_cv_deplibs_check_method=pass_all
14758 freebsd* | dragonfly*)
14759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14760 case $host_cpu in
14761 i*86 )
14762 # Not sure whether the presence of OpenBSD here was a mistake.
14763 # Let's accept both of them until this is cleared up.
14764 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14765 lt_cv_file_magic_cmd=/usr/bin/file
14766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14768 esac
14769 else
14770 lt_cv_deplibs_check_method=pass_all
14774 gnu*)
14775 lt_cv_deplibs_check_method=pass_all
14778 hpux10.20* | hpux11*)
14779 lt_cv_file_magic_cmd=/usr/bin/file
14780 case $host_cpu in
14781 ia64*)
14782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14783 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14785 hppa*64*)
14786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
14787 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14791 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14793 esac
14796 interix[3-9]*)
14797 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14801 irix5* | irix6* | nonstopux*)
14802 case $LD in
14803 *-32|*"-32 ") libmagic=32-bit;;
14804 *-n32|*"-n32 ") libmagic=N32;;
14805 *-64|*"-64 ") libmagic=64-bit;;
14806 *) libmagic=never-match;;
14807 esac
14808 lt_cv_deplibs_check_method=pass_all
14811 # This must be Linux ELF.
14812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14813 lt_cv_deplibs_check_method=pass_all
14816 netbsd*)
14817 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14819 else
14820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14824 newos6*)
14825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14826 lt_cv_file_magic_cmd=/usr/bin/file
14827 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14830 *nto* | *qnx*)
14831 lt_cv_deplibs_check_method=pass_all
14834 openbsd*)
14835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14837 else
14838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14842 osf3* | osf4* | osf5*)
14843 lt_cv_deplibs_check_method=pass_all
14846 rdos*)
14847 lt_cv_deplibs_check_method=pass_all
14850 solaris*)
14851 lt_cv_deplibs_check_method=pass_all
14854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14855 lt_cv_deplibs_check_method=pass_all
14858 sysv4 | sysv4.3*)
14859 case $host_vendor in
14860 motorola)
14861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
14862 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14864 ncr)
14865 lt_cv_deplibs_check_method=pass_all
14867 sequent)
14868 lt_cv_file_magic_cmd='/bin/file'
14869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14871 sni)
14872 lt_cv_file_magic_cmd='/bin/file'
14873 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14874 lt_cv_file_magic_test_file=/lib/libc.so
14876 siemens)
14877 lt_cv_deplibs_check_method=pass_all
14880 lt_cv_deplibs_check_method=pass_all
14882 esac
14885 tpf*)
14886 lt_cv_deplibs_check_method=pass_all
14888 esac
14891 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14892 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14893 file_magic_cmd=$lt_cv_file_magic_cmd
14894 deplibs_check_method=$lt_cv_deplibs_check_method
14895 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14908 if test -n "$ac_tool_prefix"; then
14909 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14910 set dummy ${ac_tool_prefix}ar; ac_word=$2
14911 echo "$as_me:$LINENO: checking for $ac_word" >&5
14912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14913 if test "${ac_cv_prog_AR+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916 if test -n "$AR"; then
14917 ac_cv_prog_AR="$AR" # Let the user override the test.
14918 else
14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920 for as_dir in $PATH
14922 IFS=$as_save_IFS
14923 test -z "$as_dir" && as_dir=.
14924 for ac_exec_ext in '' $ac_executable_extensions; do
14925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926 ac_cv_prog_AR="${ac_tool_prefix}ar"
14927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14928 break 2
14930 done
14931 done
14935 AR=$ac_cv_prog_AR
14936 if test -n "$AR"; then
14937 echo "$as_me:$LINENO: result: $AR" >&5
14938 echo "${ECHO_T}$AR" >&6
14939 else
14940 echo "$as_me:$LINENO: result: no" >&5
14941 echo "${ECHO_T}no" >&6
14945 if test -z "$ac_cv_prog_AR"; then
14946 ac_ct_AR=$AR
14947 # Extract the first word of "ar", so it can be a program name with args.
14948 set dummy ar; ac_word=$2
14949 echo "$as_me:$LINENO: checking for $ac_word" >&5
14950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14951 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 else
14954 if test -n "$ac_ct_AR"; then
14955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14956 else
14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 for as_dir in $PATH
14960 IFS=$as_save_IFS
14961 test -z "$as_dir" && as_dir=.
14962 for ac_exec_ext in '' $ac_executable_extensions; do
14963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14964 ac_cv_prog_ac_ct_AR="ar"
14965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14966 break 2
14968 done
14969 done
14971 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14974 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14975 if test -n "$ac_ct_AR"; then
14976 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14977 echo "${ECHO_T}$ac_ct_AR" >&6
14978 else
14979 echo "$as_me:$LINENO: result: no" >&5
14980 echo "${ECHO_T}no" >&6
14983 AR=$ac_ct_AR
14984 else
14985 AR="$ac_cv_prog_AR"
14988 test -z "$AR" && AR=ar
14989 test -z "$AR_FLAGS" && AR_FLAGS=cru
15001 if test -n "$ac_tool_prefix"; then
15002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15003 set dummy ${ac_tool_prefix}strip; ac_word=$2
15004 echo "$as_me:$LINENO: checking for $ac_word" >&5
15005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15006 if test "${ac_cv_prog_STRIP+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009 if test -n "$STRIP"; then
15010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15011 else
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15015 IFS=$as_save_IFS
15016 test -z "$as_dir" && as_dir=.
15017 for ac_exec_ext in '' $ac_executable_extensions; do
15018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15019 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15021 break 2
15023 done
15024 done
15028 STRIP=$ac_cv_prog_STRIP
15029 if test -n "$STRIP"; then
15030 echo "$as_me:$LINENO: result: $STRIP" >&5
15031 echo "${ECHO_T}$STRIP" >&6
15032 else
15033 echo "$as_me:$LINENO: result: no" >&5
15034 echo "${ECHO_T}no" >&6
15038 if test -z "$ac_cv_prog_STRIP"; then
15039 ac_ct_STRIP=$STRIP
15040 # Extract the first word of "strip", so it can be a program name with args.
15041 set dummy strip; ac_word=$2
15042 echo "$as_me:$LINENO: checking for $ac_word" >&5
15043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 if test -n "$ac_ct_STRIP"; then
15048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15049 else
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $PATH
15053 IFS=$as_save_IFS
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057 ac_cv_prog_ac_ct_STRIP="strip"
15058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 break 2
15061 done
15062 done
15064 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15068 if test -n "$ac_ct_STRIP"; then
15069 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15070 echo "${ECHO_T}$ac_ct_STRIP" >&6
15071 else
15072 echo "$as_me:$LINENO: result: no" >&5
15073 echo "${ECHO_T}no" >&6
15076 STRIP=$ac_ct_STRIP
15077 else
15078 STRIP="$ac_cv_prog_STRIP"
15081 test -z "$STRIP" && STRIP=:
15088 if test -n "$ac_tool_prefix"; then
15089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15091 echo "$as_me:$LINENO: checking for $ac_word" >&5
15092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15093 if test "${ac_cv_prog_RANLIB+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 if test -n "$RANLIB"; then
15097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15098 else
15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15100 for as_dir in $PATH
15102 IFS=$as_save_IFS
15103 test -z "$as_dir" && as_dir=.
15104 for ac_exec_ext in '' $ac_executable_extensions; do
15105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15108 break 2
15110 done
15111 done
15115 RANLIB=$ac_cv_prog_RANLIB
15116 if test -n "$RANLIB"; then
15117 echo "$as_me:$LINENO: result: $RANLIB" >&5
15118 echo "${ECHO_T}$RANLIB" >&6
15119 else
15120 echo "$as_me:$LINENO: result: no" >&5
15121 echo "${ECHO_T}no" >&6
15125 if test -z "$ac_cv_prog_RANLIB"; then
15126 ac_ct_RANLIB=$RANLIB
15127 # Extract the first word of "ranlib", so it can be a program name with args.
15128 set dummy ranlib; ac_word=$2
15129 echo "$as_me:$LINENO: checking for $ac_word" >&5
15130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134 if test -n "$ac_ct_RANLIB"; then
15135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15136 else
15137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138 for as_dir in $PATH
15140 IFS=$as_save_IFS
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15144 ac_cv_prog_ac_ct_RANLIB="ranlib"
15145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15146 break 2
15148 done
15149 done
15151 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15155 if test -n "$ac_ct_RANLIB"; then
15156 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15157 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15158 else
15159 echo "$as_me:$LINENO: result: no" >&5
15160 echo "${ECHO_T}no" >&6
15163 RANLIB=$ac_ct_RANLIB
15164 else
15165 RANLIB="$ac_cv_prog_RANLIB"
15168 test -z "$RANLIB" && RANLIB=:
15175 # Determine commands to create old-style static archives.
15176 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15177 old_postinstall_cmds='chmod 644 $oldlib'
15178 old_postuninstall_cmds=
15180 if test -n "$RANLIB"; then
15181 case $host_os in
15182 openbsd*)
15183 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15188 esac
15189 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15225 # If no C compiler was specified, use CC.
15226 LTCC=${LTCC-"$CC"}
15228 # If no C compiler flags were specified, use CFLAGS.
15229 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15231 # Allow CC to be a program name with arguments.
15232 compiler=$CC
15235 # Check for command to grab the raw symbol name followed by C symbol from nm.
15236 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15237 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15238 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15242 # These are sane defaults that work on at least a few old systems.
15243 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15245 # Character class describing NM global symbol codes.
15246 symcode='[BCDEGRST]'
15248 # Regexp to match symbols that can be accessed directly from C.
15249 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15251 # Define system-specific variables.
15252 case $host_os in
15253 aix*)
15254 symcode='[BCDT]'
15256 cygwin* | mingw* | pw32* | cegcc*)
15257 symcode='[ABCDGISTW]'
15259 hpux*)
15260 if test "$host_cpu" = ia64; then
15261 symcode='[ABCDEGRST]'
15264 irix* | nonstopux*)
15265 symcode='[BCDEGRST]'
15267 osf*)
15268 symcode='[BCDEGQRST]'
15270 solaris*)
15271 symcode='[BDRT]'
15273 sco3.2v5*)
15274 symcode='[DT]'
15276 sysv4.2uw2*)
15277 symcode='[DT]'
15279 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15280 symcode='[ABDT]'
15282 sysv4)
15283 symcode='[DFNSTU]'
15285 esac
15287 # If we're using GNU nm, then use its standard symbol codes.
15288 case `$NM -V 2>&1` in
15289 *GNU* | *'with BFD'*)
15290 symcode='[ABCDGIRSTW]' ;;
15291 esac
15293 # Transform an extracted symbol line into a proper C declaration.
15294 # Some systems (esp. on ia64) link data and code symbols differently,
15295 # so use this general approach.
15296 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15298 # Transform an extracted symbol line into symbol name and symbol address
15299 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15300 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
15302 # Handle CRLF in mingw tool chain
15303 opt_cr=
15304 case $build_os in
15305 mingw*)
15306 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15308 esac
15310 # Try without a prefix underscore, then with it.
15311 for ac_symprfx in "" "_"; do
15313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15314 symxfrm="\\1 $ac_symprfx\\2 \\2"
15316 # Write the raw and C identifiers.
15317 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15318 # Fake it for dumpbin and say T for any non-static function
15319 # and D for any global variable.
15320 # Also find C++ and __fastcall symbols from MSVC++,
15321 # which start with @ or ?.
15322 lt_cv_sys_global_symbol_pipe="$AWK '"\
15323 " {last_section=section; section=\$ 3};"\
15324 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15325 " \$ 0!~/External *\|/{next};"\
15326 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15327 " {if(hide[section]) next};"\
15328 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15329 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15330 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15331 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15332 " ' prfx=^$ac_symprfx"
15333 else
15334 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15337 # Check to see that the pipe works correctly.
15338 pipe_works=no
15340 rm -f conftest*
15341 cat > conftest.$ac_ext <<_LT_EOF
15342 #ifdef __cplusplus
15343 extern "C" {
15344 #endif
15345 char nm_test_var;
15346 void nm_test_func(void);
15347 void nm_test_func(void){}
15348 #ifdef __cplusplus
15350 #endif
15351 int main(){nm_test_var='a';nm_test_func();return(0);}
15352 _LT_EOF
15354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15355 (eval $ac_compile) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; then
15359 # Now try to grab the symbols.
15360 nlist=conftest.nm
15361 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15362 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && test -s "$nlist"; then
15366 # Try sorting and uniquifying the output.
15367 if sort "$nlist" | uniq > "$nlist"T; then
15368 mv -f "$nlist"T "$nlist"
15369 else
15370 rm -f "$nlist"T
15373 # Make sure that we snagged all the symbols we need.
15374 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15375 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15376 cat <<_LT_EOF > conftest.$ac_ext
15377 #ifdef __cplusplus
15378 extern "C" {
15379 #endif
15381 _LT_EOF
15382 # Now generate the symbol file.
15383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15385 cat <<_LT_EOF >> conftest.$ac_ext
15387 /* The mapping between symbol names and symbols. */
15388 const struct {
15389 const char *name;
15390 void *address;
15392 lt__PROGRAM__LTX_preloaded_symbols[] =
15394 { "@PROGRAM@", (void *) 0 },
15395 _LT_EOF
15396 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15397 cat <<\_LT_EOF >> conftest.$ac_ext
15398 {0, (void *) 0}
15401 /* This works around a problem in FreeBSD linker */
15402 #ifdef FREEBSD_WORKAROUND
15403 static const void *lt_preloaded_setup() {
15404 return lt__PROGRAM__LTX_preloaded_symbols;
15406 #endif
15408 #ifdef __cplusplus
15410 #endif
15411 _LT_EOF
15412 # Now try linking the two files.
15413 mv conftest.$ac_objext conftstm.$ac_objext
15414 lt_save_LIBS="$LIBS"
15415 lt_save_CFLAGS="$CFLAGS"
15416 LIBS="conftstm.$ac_objext"
15417 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15419 (eval $ac_link) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15423 pipe_works=yes
15425 LIBS="$lt_save_LIBS"
15426 CFLAGS="$lt_save_CFLAGS"
15427 else
15428 echo "cannot find nm_test_func in $nlist" >&5
15430 else
15431 echo "cannot find nm_test_var in $nlist" >&5
15433 else
15434 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15436 else
15437 echo "$progname: failed program was:" >&5
15438 cat conftest.$ac_ext >&5
15440 rm -rf conftest* conftst*
15442 # Do not use the global_symbol_pipe unless it works.
15443 if test "$pipe_works" = yes; then
15444 break
15445 else
15446 lt_cv_sys_global_symbol_pipe=
15448 done
15452 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15453 lt_cv_sys_global_symbol_to_cdecl=
15455 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15456 echo "$as_me:$LINENO: result: failed" >&5
15457 echo "${ECHO_T}failed" >&6
15458 else
15459 echo "$as_me:$LINENO: result: ok" >&5
15460 echo "${ECHO_T}ok" >&6
15484 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15485 if test "${enable_libtool_lock+set}" = set; then
15486 enableval="$enable_libtool_lock"
15489 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15491 # Some flags need to be propagated to the compiler or linker for good
15492 # libtool support.
15493 case $host in
15494 ia64-*-hpux*)
15495 # Find out which ABI we are using.
15496 echo 'int i;' > conftest.$ac_ext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498 (eval $ac_compile) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; then
15502 case `/usr/bin/file conftest.$ac_objext` in
15503 *ELF-32*)
15504 HPUX_IA64_MODE="32"
15506 *ELF-64*)
15507 HPUX_IA64_MODE="64"
15509 esac
15511 rm -rf conftest*
15513 *-*-irix6*)
15514 # Find out which ABI we are using.
15515 echo '#line 15515 "configure"' > conftest.$ac_ext
15516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15517 (eval $ac_compile) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; then
15521 if test "$lt_cv_prog_gnu_ld" = yes; then
15522 case `/usr/bin/file conftest.$ac_objext` in
15523 *32-bit*)
15524 LD="${LD-ld} -melf32bsmip"
15526 *N32*)
15527 LD="${LD-ld} -melf32bmipn32"
15529 *64-bit*)
15530 LD="${LD-ld} -melf64bmip"
15532 esac
15533 else
15534 case `/usr/bin/file conftest.$ac_objext` in
15535 *32-bit*)
15536 LD="${LD-ld} -32"
15538 *N32*)
15539 LD="${LD-ld} -n32"
15541 *64-bit*)
15542 LD="${LD-ld} -64"
15544 esac
15547 rm -rf conftest*
15550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15552 # Find out which ABI we are using.
15553 echo 'int i;' > conftest.$ac_ext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555 (eval $ac_compile) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; then
15559 case `/usr/bin/file conftest.o` in
15560 *32-bit*)
15561 case $host in
15562 x86_64-*kfreebsd*-gnu)
15563 LD="${LD-ld} -m elf_i386_fbsd"
15565 x86_64-*linux*)
15566 LD="${LD-ld} -m elf_i386"
15568 ppc64-*linux*|powerpc64-*linux*)
15569 LD="${LD-ld} -m elf32ppclinux"
15571 s390x-*linux*)
15572 LD="${LD-ld} -m elf_s390"
15574 sparc64-*linux*)
15575 LD="${LD-ld} -m elf32_sparc"
15577 esac
15579 *64-bit*)
15580 case $host in
15581 x86_64-*kfreebsd*-gnu)
15582 LD="${LD-ld} -m elf_x86_64_fbsd"
15584 x86_64-*linux*)
15585 LD="${LD-ld} -m elf_x86_64"
15587 ppc*-*linux*|powerpc*-*linux*)
15588 LD="${LD-ld} -m elf64ppc"
15590 s390*-*linux*|s390*-*tpf*)
15591 LD="${LD-ld} -m elf64_s390"
15593 sparc*-*linux*)
15594 LD="${LD-ld} -m elf64_sparc"
15596 esac
15598 esac
15600 rm -rf conftest*
15603 *-*-sco3.2v5*)
15604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15605 SAVE_CFLAGS="$CFLAGS"
15606 CFLAGS="$CFLAGS -belf"
15607 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15608 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15609 if test "${lt_cv_cc_needs_belf+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612 ac_ext=c
15613 ac_cpp='$CPP $CPPFLAGS'
15614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15626 main ()
15630 return 0;
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635 (eval $ac_link) 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_c_werror_flag"
15643 || test ! -s conftest.err'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest$ac_exeext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 lt_cv_cc_needs_belf=yes
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 lt_cv_cc_needs_belf=no
15662 rm -f conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 ac_ext=c
15665 ac_cpp='$CPP $CPPFLAGS'
15666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15671 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15672 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15673 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15674 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15675 CFLAGS="$SAVE_CFLAGS"
15678 sparc*-*solaris*)
15679 # Find out which ABI we are using.
15680 echo 'int i;' > conftest.$ac_ext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; then
15686 case `/usr/bin/file conftest.o` in
15687 *64-bit*)
15688 case $lt_cv_prog_gnu_ld in
15689 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15692 LD="${LD-ld} -64"
15695 esac
15697 esac
15699 rm -rf conftest*
15701 esac
15703 need_locks="$enable_libtool_lock"
15706 case $host_os in
15707 rhapsody* | darwin*)
15708 if test -n "$ac_tool_prefix"; then
15709 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15710 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15711 echo "$as_me:$LINENO: checking for $ac_word" >&5
15712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15713 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716 if test -n "$DSYMUTIL"; then
15717 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15718 else
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15728 break 2
15730 done
15731 done
15735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15736 if test -n "$DSYMUTIL"; then
15737 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
15738 echo "${ECHO_T}$DSYMUTIL" >&6
15739 else
15740 echo "$as_me:$LINENO: result: no" >&5
15741 echo "${ECHO_T}no" >&6
15745 if test -z "$ac_cv_prog_DSYMUTIL"; then
15746 ac_ct_DSYMUTIL=$DSYMUTIL
15747 # Extract the first word of "dsymutil", so it can be a program name with args.
15748 set dummy dsymutil; ac_word=$2
15749 echo "$as_me:$LINENO: checking for $ac_word" >&5
15750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15751 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 if test -n "$ac_ct_DSYMUTIL"; then
15755 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 break 2
15768 done
15769 done
15771 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
15774 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15775 if test -n "$ac_ct_DSYMUTIL"; then
15776 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
15777 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
15778 else
15779 echo "$as_me:$LINENO: result: no" >&5
15780 echo "${ECHO_T}no" >&6
15783 DSYMUTIL=$ac_ct_DSYMUTIL
15784 else
15785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15788 if test -n "$ac_tool_prefix"; then
15789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15791 echo "$as_me:$LINENO: checking for $ac_word" >&5
15792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15793 if test "${ac_cv_prog_NMEDIT+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 else
15796 if test -n "$NMEDIT"; then
15797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15798 else
15799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15800 for as_dir in $PATH
15802 IFS=$as_save_IFS
15803 test -z "$as_dir" && as_dir=.
15804 for ac_exec_ext in '' $ac_executable_extensions; do
15805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 break 2
15810 done
15811 done
15815 NMEDIT=$ac_cv_prog_NMEDIT
15816 if test -n "$NMEDIT"; then
15817 echo "$as_me:$LINENO: result: $NMEDIT" >&5
15818 echo "${ECHO_T}$NMEDIT" >&6
15819 else
15820 echo "$as_me:$LINENO: result: no" >&5
15821 echo "${ECHO_T}no" >&6
15825 if test -z "$ac_cv_prog_NMEDIT"; then
15826 ac_ct_NMEDIT=$NMEDIT
15827 # Extract the first word of "nmedit", so it can be a program name with args.
15828 set dummy nmedit; ac_word=$2
15829 echo "$as_me:$LINENO: checking for $ac_word" >&5
15830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15831 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834 if test -n "$ac_ct_NMEDIT"; then
15835 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15836 else
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15840 IFS=$as_save_IFS
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15846 break 2
15848 done
15849 done
15851 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
15854 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15855 if test -n "$ac_ct_NMEDIT"; then
15856 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
15857 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
15858 else
15859 echo "$as_me:$LINENO: result: no" >&5
15860 echo "${ECHO_T}no" >&6
15863 NMEDIT=$ac_ct_NMEDIT
15864 else
15865 NMEDIT="$ac_cv_prog_NMEDIT"
15868 if test -n "$ac_tool_prefix"; then
15869 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15870 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15871 echo "$as_me:$LINENO: checking for $ac_word" >&5
15872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15873 if test "${ac_cv_prog_LIPO+set}" = set; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875 else
15876 if test -n "$LIPO"; then
15877 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15878 else
15879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15880 for as_dir in $PATH
15882 IFS=$as_save_IFS
15883 test -z "$as_dir" && as_dir=.
15884 for ac_exec_ext in '' $ac_executable_extensions; do
15885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15886 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15888 break 2
15890 done
15891 done
15895 LIPO=$ac_cv_prog_LIPO
15896 if test -n "$LIPO"; then
15897 echo "$as_me:$LINENO: result: $LIPO" >&5
15898 echo "${ECHO_T}$LIPO" >&6
15899 else
15900 echo "$as_me:$LINENO: result: no" >&5
15901 echo "${ECHO_T}no" >&6
15905 if test -z "$ac_cv_prog_LIPO"; then
15906 ac_ct_LIPO=$LIPO
15907 # Extract the first word of "lipo", so it can be a program name with args.
15908 set dummy lipo; ac_word=$2
15909 echo "$as_me:$LINENO: checking for $ac_word" >&5
15910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15911 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
15912 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914 if test -n "$ac_ct_LIPO"; then
15915 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15916 else
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15920 IFS=$as_save_IFS
15921 test -z "$as_dir" && as_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924 ac_cv_prog_ac_ct_LIPO="lipo"
15925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15926 break 2
15928 done
15929 done
15931 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
15934 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15935 if test -n "$ac_ct_LIPO"; then
15936 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
15937 echo "${ECHO_T}$ac_ct_LIPO" >&6
15938 else
15939 echo "$as_me:$LINENO: result: no" >&5
15940 echo "${ECHO_T}no" >&6
15943 LIPO=$ac_ct_LIPO
15944 else
15945 LIPO="$ac_cv_prog_LIPO"
15948 if test -n "$ac_tool_prefix"; then
15949 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15950 set dummy ${ac_tool_prefix}otool; ac_word=$2
15951 echo "$as_me:$LINENO: checking for $ac_word" >&5
15952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15953 if test "${ac_cv_prog_OTOOL+set}" = set; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956 if test -n "$OTOOL"; then
15957 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15958 else
15959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960 for as_dir in $PATH
15962 IFS=$as_save_IFS
15963 test -z "$as_dir" && as_dir=.
15964 for ac_exec_ext in '' $ac_executable_extensions; do
15965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15966 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15968 break 2
15970 done
15971 done
15975 OTOOL=$ac_cv_prog_OTOOL
15976 if test -n "$OTOOL"; then
15977 echo "$as_me:$LINENO: result: $OTOOL" >&5
15978 echo "${ECHO_T}$OTOOL" >&6
15979 else
15980 echo "$as_me:$LINENO: result: no" >&5
15981 echo "${ECHO_T}no" >&6
15985 if test -z "$ac_cv_prog_OTOOL"; then
15986 ac_ct_OTOOL=$OTOOL
15987 # Extract the first word of "otool", so it can be a program name with args.
15988 set dummy otool; ac_word=$2
15989 echo "$as_me:$LINENO: checking for $ac_word" >&5
15990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15991 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 else
15994 if test -n "$ac_ct_OTOOL"; then
15995 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15996 else
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16000 IFS=$as_save_IFS
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004 ac_cv_prog_ac_ct_OTOOL="otool"
16005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16006 break 2
16008 done
16009 done
16011 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16014 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16015 if test -n "$ac_ct_OTOOL"; then
16016 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16017 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16018 else
16019 echo "$as_me:$LINENO: result: no" >&5
16020 echo "${ECHO_T}no" >&6
16023 OTOOL=$ac_ct_OTOOL
16024 else
16025 OTOOL="$ac_cv_prog_OTOOL"
16028 if test -n "$ac_tool_prefix"; then
16029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16031 echo "$as_me:$LINENO: checking for $ac_word" >&5
16032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16033 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 if test -n "$OTOOL64"; then
16037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16038 else
16039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16040 for as_dir in $PATH
16042 IFS=$as_save_IFS
16043 test -z "$as_dir" && as_dir=.
16044 for ac_exec_ext in '' $ac_executable_extensions; do
16045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16048 break 2
16050 done
16051 done
16055 OTOOL64=$ac_cv_prog_OTOOL64
16056 if test -n "$OTOOL64"; then
16057 echo "$as_me:$LINENO: result: $OTOOL64" >&5
16058 echo "${ECHO_T}$OTOOL64" >&6
16059 else
16060 echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6
16065 if test -z "$ac_cv_prog_OTOOL64"; then
16066 ac_ct_OTOOL64=$OTOOL64
16067 # Extract the first word of "otool64", so it can be a program name with args.
16068 set dummy otool64; ac_word=$2
16069 echo "$as_me:$LINENO: checking for $ac_word" >&5
16070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16071 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 if test -n "$ac_ct_OTOOL64"; then
16075 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16076 else
16077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16078 for as_dir in $PATH
16080 IFS=$as_save_IFS
16081 test -z "$as_dir" && as_dir=.
16082 for ac_exec_ext in '' $ac_executable_extensions; do
16083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16084 ac_cv_prog_ac_ct_OTOOL64="otool64"
16085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16086 break 2
16088 done
16089 done
16091 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16094 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16095 if test -n "$ac_ct_OTOOL64"; then
16096 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16097 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16098 else
16099 echo "$as_me:$LINENO: result: no" >&5
16100 echo "${ECHO_T}no" >&6
16103 OTOOL64=$ac_ct_OTOOL64
16104 else
16105 OTOOL64="$ac_cv_prog_OTOOL64"
16134 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16135 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16136 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139 lt_cv_apple_cc_single_mod=no
16140 if test -z "${LT_MULTI_MODULE}"; then
16141 # By default we will add the -single_module flag. You can override
16142 # by either setting the environment variable LT_MULTI_MODULE
16143 # non-empty at configure time, or by adding -multi_module to the
16144 # link flags.
16145 rm -rf libconftest.dylib*
16146 echo "int foo(void){return 1;}" > conftest.c
16147 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16148 -dynamiclib -Wl,-single_module conftest.c" >&5
16149 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16150 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16151 _lt_result=$?
16152 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16153 lt_cv_apple_cc_single_mod=yes
16154 else
16155 cat conftest.err >&5
16157 rm -rf libconftest.dylib*
16158 rm -f conftest.*
16161 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16162 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16163 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16164 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16165 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168 lt_cv_ld_exported_symbols_list=no
16169 save_LDFLAGS=$LDFLAGS
16170 echo "_main" > conftest.sym
16171 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16180 main ()
16184 return 0;
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 lt_cv_ld_exported_symbols_list=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 lt_cv_ld_exported_symbols_list=no
16216 rm -f conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16218 LDFLAGS="$save_LDFLAGS"
16221 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16222 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16223 case $host_os in
16224 rhapsody* | darwin1.[012])
16225 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16226 darwin1.*)
16227 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16228 darwin*) # darwin 5.x on
16229 # if running on 10.5 or later, the deployment target defaults
16230 # to the OS version, if on x86, and 10.4, the deployment
16231 # target defaults to 10.4. Don't you love it?
16232 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16233 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16234 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16235 10.[012]*)
16236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16237 10.*)
16238 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16239 esac
16241 esac
16242 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16243 _lt_dar_single_mod='$single_module'
16245 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16246 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16247 else
16248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16250 if test "$DSYMUTIL" != ":"; then
16251 _lt_dsymutil='~$DSYMUTIL $lib || :'
16252 else
16253 _lt_dsymutil=
16256 esac
16259 for ac_header in dlfcn.h
16261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16262 echo "$as_me:$LINENO: checking for $ac_header" >&5
16263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h. */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 #include <$ac_header>
16274 _ACEOF
16275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } >/dev/null; then
16283 if test -s conftest.err; then
16284 ac_cpp_err=$ac_c_preproc_warn_flag
16285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16286 else
16287 ac_cpp_err=
16289 else
16290 ac_cpp_err=yes
16292 if test -z "$ac_cpp_err"; then
16293 eval "$as_ac_Header=yes"
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 eval "$as_ac_Header=no"
16300 rm -f conftest.err conftest.$ac_ext
16302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16305 cat >>confdefs.h <<_ACEOF
16306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16307 _ACEOF
16310 done
16314 # Set options
16318 enable_dlopen=no
16321 enable_win32_dll=no
16324 # Check whether --enable-shared or --disable-shared was given.
16325 if test "${enable_shared+set}" = set; then
16326 enableval="$enable_shared"
16327 p=${PACKAGE-default}
16328 case $enableval in
16329 yes) enable_shared=yes ;;
16330 no) enable_shared=no ;;
16332 enable_shared=no
16333 # Look at the argument we got. We use all the common list separators.
16334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16335 for pkg in $enableval; do
16336 IFS="$lt_save_ifs"
16337 if test "X$pkg" = "X$p"; then
16338 enable_shared=yes
16340 done
16341 IFS="$lt_save_ifs"
16343 esac
16344 else
16345 enable_shared=yes
16355 # Check whether --enable-static or --disable-static was given.
16356 if test "${enable_static+set}" = set; then
16357 enableval="$enable_static"
16358 p=${PACKAGE-default}
16359 case $enableval in
16360 yes) enable_static=yes ;;
16361 no) enable_static=no ;;
16363 enable_static=no
16364 # Look at the argument we got. We use all the common list separators.
16365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16366 for pkg in $enableval; do
16367 IFS="$lt_save_ifs"
16368 if test "X$pkg" = "X$p"; then
16369 enable_static=yes
16371 done
16372 IFS="$lt_save_ifs"
16374 esac
16375 else
16376 enable_static=yes
16387 # Check whether --with-pic or --without-pic was given.
16388 if test "${with_pic+set}" = set; then
16389 withval="$with_pic"
16390 pic_mode="$withval"
16391 else
16392 pic_mode=default
16395 test -z "$pic_mode" && pic_mode=default
16403 # Check whether --enable-fast-install or --disable-fast-install was given.
16404 if test "${enable_fast_install+set}" = set; then
16405 enableval="$enable_fast_install"
16406 p=${PACKAGE-default}
16407 case $enableval in
16408 yes) enable_fast_install=yes ;;
16409 no) enable_fast_install=no ;;
16411 enable_fast_install=no
16412 # Look at the argument we got. We use all the common list separators.
16413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16414 for pkg in $enableval; do
16415 IFS="$lt_save_ifs"
16416 if test "X$pkg" = "X$p"; then
16417 enable_fast_install=yes
16419 done
16420 IFS="$lt_save_ifs"
16422 esac
16423 else
16424 enable_fast_install=yes
16436 # This can be used to rebuild libtool when needed
16437 LIBTOOL_DEPS="$ltmain"
16439 # Always use our own libtool.
16440 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16466 test -z "$LN_S" && LN_S="ln -s"
16481 if test -n "${ZSH_VERSION+set}" ; then
16482 setopt NO_GLOB_SUBST
16485 echo "$as_me:$LINENO: checking for objdir" >&5
16486 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16487 if test "${lt_cv_objdir+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490 rm -f .libs 2>/dev/null
16491 mkdir .libs 2>/dev/null
16492 if test -d .libs; then
16493 lt_cv_objdir=.libs
16494 else
16495 # MS-DOS does not allow filenames that begin with a dot.
16496 lt_cv_objdir=_libs
16498 rmdir .libs 2>/dev/null
16500 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16501 echo "${ECHO_T}$lt_cv_objdir" >&6
16502 objdir=$lt_cv_objdir
16508 cat >>confdefs.h <<_ACEOF
16509 #define LT_OBJDIR "$lt_cv_objdir/"
16510 _ACEOF
16528 case $host_os in
16529 aix3*)
16530 # AIX sometimes has problems with the GCC collect2 program. For some
16531 # reason, if we set the COLLECT_NAMES environment variable, the problems
16532 # vanish in a puff of smoke.
16533 if test "X${COLLECT_NAMES+set}" != Xset; then
16534 COLLECT_NAMES=
16535 export COLLECT_NAMES
16538 esac
16540 # Sed substitution that helps us do robust quoting. It backslashifies
16541 # metacharacters that are still active within double-quoted strings.
16542 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16544 # Same as above, but do not quote variable references.
16545 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16547 # Sed substitution to delay expansion of an escaped shell variable in a
16548 # double_quote_subst'ed string.
16549 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16551 # Sed substitution to delay expansion of an escaped single quote.
16552 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16554 # Sed substitution to avoid accidental globbing in evaled expressions
16555 no_glob_subst='s/\*/\\\*/g'
16557 # Global variables:
16558 ofile=libtool
16559 can_build_shared=yes
16561 # All known linkers require a `.a' archive for static linking (except MSVC,
16562 # which needs '.lib').
16563 libext=a
16565 with_gnu_ld="$lt_cv_prog_gnu_ld"
16567 old_CC="$CC"
16568 old_CFLAGS="$CFLAGS"
16570 # Set sane defaults for various variables
16571 test -z "$CC" && CC=cc
16572 test -z "$LTCC" && LTCC=$CC
16573 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16574 test -z "$LD" && LD=ld
16575 test -z "$ac_objext" && ac_objext=o
16577 for cc_temp in $compiler""; do
16578 case $cc_temp in
16579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16581 \-*) ;;
16582 *) break;;
16583 esac
16584 done
16585 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16588 # Only perform the check for file, if the check method requires it
16589 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16590 case $deplibs_check_method in
16591 file_magic*)
16592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16593 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16594 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598 case $MAGIC_CMD in
16599 [\\/*] | ?:[\\/]*)
16600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16603 lt_save_MAGIC_CMD="$MAGIC_CMD"
16604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16606 for ac_dir in $ac_dummy; do
16607 IFS="$lt_save_ifs"
16608 test -z "$ac_dir" && ac_dir=.
16609 if test -f $ac_dir/${ac_tool_prefix}file; then
16610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16611 if test -n "$file_magic_test_file"; then
16612 case $deplibs_check_method in
16613 "file_magic "*)
16614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16617 $EGREP "$file_magic_regex" > /dev/null; then
16619 else
16620 cat <<_LT_EOF 1>&2
16622 *** Warning: the command libtool uses to detect shared libraries,
16623 *** $file_magic_cmd, produces output that libtool cannot recognize.
16624 *** The result is that libtool may fail to recognize shared libraries
16625 *** as such. This will affect the creation of libtool libraries that
16626 *** depend on shared libraries, but programs linked with such libtool
16627 *** libraries will work regardless of this problem. Nevertheless, you
16628 *** may want to report the problem to your system manager and/or to
16629 *** bug-libtool@gnu.org
16631 _LT_EOF
16632 fi ;;
16633 esac
16635 break
16637 done
16638 IFS="$lt_save_ifs"
16639 MAGIC_CMD="$lt_save_MAGIC_CMD"
16641 esac
16644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16645 if test -n "$MAGIC_CMD"; then
16646 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16647 echo "${ECHO_T}$MAGIC_CMD" >&6
16648 else
16649 echo "$as_me:$LINENO: result: no" >&5
16650 echo "${ECHO_T}no" >&6
16657 if test -z "$lt_cv_path_MAGIC_CMD"; then
16658 if test -n "$ac_tool_prefix"; then
16659 echo "$as_me:$LINENO: checking for file" >&5
16660 echo $ECHO_N "checking for file... $ECHO_C" >&6
16661 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664 case $MAGIC_CMD in
16665 [\\/*] | ?:[\\/]*)
16666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16669 lt_save_MAGIC_CMD="$MAGIC_CMD"
16670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16672 for ac_dir in $ac_dummy; do
16673 IFS="$lt_save_ifs"
16674 test -z "$ac_dir" && ac_dir=.
16675 if test -f $ac_dir/file; then
16676 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16677 if test -n "$file_magic_test_file"; then
16678 case $deplibs_check_method in
16679 "file_magic "*)
16680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16683 $EGREP "$file_magic_regex" > /dev/null; then
16685 else
16686 cat <<_LT_EOF 1>&2
16688 *** Warning: the command libtool uses to detect shared libraries,
16689 *** $file_magic_cmd, produces output that libtool cannot recognize.
16690 *** The result is that libtool may fail to recognize shared libraries
16691 *** as such. This will affect the creation of libtool libraries that
16692 *** depend on shared libraries, but programs linked with such libtool
16693 *** libraries will work regardless of this problem. Nevertheless, you
16694 *** may want to report the problem to your system manager and/or to
16695 *** bug-libtool@gnu.org
16697 _LT_EOF
16698 fi ;;
16699 esac
16701 break
16703 done
16704 IFS="$lt_save_ifs"
16705 MAGIC_CMD="$lt_save_MAGIC_CMD"
16707 esac
16710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16711 if test -n "$MAGIC_CMD"; then
16712 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16713 echo "${ECHO_T}$MAGIC_CMD" >&6
16714 else
16715 echo "$as_me:$LINENO: result: no" >&5
16716 echo "${ECHO_T}no" >&6
16720 else
16721 MAGIC_CMD=:
16727 esac
16729 # Use C for the default configuration in the libtool script
16731 lt_save_CC="$CC"
16732 ac_ext=c
16733 ac_cpp='$CPP $CPPFLAGS'
16734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16739 # Source file extension for C test sources.
16740 ac_ext=c
16742 # Object file extension for compiled C test sources.
16743 objext=o
16744 objext=$objext
16746 # Code to be used in simple compile tests
16747 lt_simple_compile_test_code="int some_variable = 0;"
16749 # Code to be used in simple link tests
16750 lt_simple_link_test_code='int main(){return(0);}'
16758 # If no C compiler was specified, use CC.
16759 LTCC=${LTCC-"$CC"}
16761 # If no C compiler flags were specified, use CFLAGS.
16762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16764 # Allow CC to be a program name with arguments.
16765 compiler=$CC
16767 # Save the default compiler, since it gets overwritten when the other
16768 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16769 compiler_DEFAULT=$CC
16771 # save warnings/boilerplate of simple test code
16772 ac_outfile=conftest.$ac_objext
16773 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16774 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16775 _lt_compiler_boilerplate=`cat conftest.err`
16776 $RM conftest*
16778 ac_outfile=conftest.$ac_objext
16779 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16780 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781 _lt_linker_boilerplate=`cat conftest.err`
16782 $RM -r conftest*
16785 ## CAVEAT EMPTOR:
16786 ## There is no encapsulation within the following macros, do not change
16787 ## the running order or otherwise move them around unless you know exactly
16788 ## what you are doing...
16789 if test -n "$compiler"; then
16791 lt_prog_compiler_no_builtin_flag=
16793 if test "$GCC" = yes; then
16794 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16796 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16797 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16798 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 lt_cv_prog_compiler_rtti_exceptions=no
16802 ac_outfile=conftest.$ac_objext
16803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16804 lt_compiler_flag="-fno-rtti -fno-exceptions"
16805 # Insert the option either (1) after the last *FLAGS variable, or
16806 # (2) before a word containing "conftest.", or (3) at the end.
16807 # Note that $ac_compile itself does not contain backslashes and begins
16808 # with a dollar sign (not a hyphen), so the echo should work correctly.
16809 # The option is referenced via a variable to avoid confusing sed.
16810 lt_compile=`echo "$ac_compile" | $SED \
16811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813 -e 's:$: $lt_compiler_flag:'`
16814 (eval echo "\"\$as_me:16814: $lt_compile\"" >&5)
16815 (eval "$lt_compile" 2>conftest.err)
16816 ac_status=$?
16817 cat conftest.err >&5
16818 echo "$as_me:16818: \$? = $ac_status" >&5
16819 if (exit $ac_status) && test -s "$ac_outfile"; then
16820 # The compiler can only warn and ignore the option if not recognized
16821 # So say no if there are warnings other than the usual output.
16822 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16825 lt_cv_prog_compiler_rtti_exceptions=yes
16828 $RM conftest*
16831 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16832 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16834 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16835 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16836 else
16847 lt_prog_compiler_wl=
16848 lt_prog_compiler_pic=
16849 lt_prog_compiler_static=
16851 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16852 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16854 if test "$GCC" = yes; then
16855 lt_prog_compiler_wl='-Wl,'
16856 lt_prog_compiler_static='-static'
16858 case $host_os in
16859 aix*)
16860 # All AIX code is PIC.
16861 if test "$host_cpu" = ia64; then
16862 # AIX 5 now supports IA64 processor
16863 lt_prog_compiler_static='-Bstatic'
16867 amigaos*)
16868 case $host_cpu in
16869 powerpc)
16870 # see comment about AmigaOS4 .so support
16871 lt_prog_compiler_pic='-fPIC'
16873 m68k)
16874 # FIXME: we need at least 68020 code to build shared libraries, but
16875 # adding the `-m68020' flag to GCC prevents building anything better,
16876 # like `-m68040'.
16877 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16879 esac
16882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16883 # PIC is the default for these OSes.
16886 mingw* | cygwin* | pw32* | os2* | cegcc*)
16887 # This hack is so that the source file can tell whether it is being
16888 # built for inclusion in a dll (and should export symbols for example).
16889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16890 # (--disable-auto-import) libraries
16891 lt_prog_compiler_pic='-DDLL_EXPORT'
16894 darwin* | rhapsody*)
16895 # PIC is the default on this platform
16896 # Common symbols not allowed in MH_DYLIB files
16897 lt_prog_compiler_pic='-fno-common'
16900 hpux*)
16901 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16902 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16903 # sets the default TLS model and affects inlining.
16904 case $host_cpu in
16905 hppa*64*)
16906 # +Z the default
16909 lt_prog_compiler_pic='-fPIC'
16911 esac
16914 interix[3-9]*)
16915 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16916 # Instead, we relocate shared libraries at runtime.
16919 msdosdjgpp*)
16920 # Just because we use GCC doesn't mean we suddenly get shared libraries
16921 # on systems that don't support them.
16922 lt_prog_compiler_can_build_shared=no
16923 enable_shared=no
16926 *nto* | *qnx*)
16927 # QNX uses GNU C++, but need to define -shared option too, otherwise
16928 # it will coredump.
16929 lt_prog_compiler_pic='-fPIC -shared'
16932 sysv4*MP*)
16933 if test -d /usr/nec; then
16934 lt_prog_compiler_pic=-Kconform_pic
16939 lt_prog_compiler_pic='-fPIC'
16941 esac
16942 else
16943 # PORTME Check for flag to pass linker flags through the system compiler.
16944 case $host_os in
16945 aix*)
16946 lt_prog_compiler_wl='-Wl,'
16947 if test "$host_cpu" = ia64; then
16948 # AIX 5 now supports IA64 processor
16949 lt_prog_compiler_static='-Bstatic'
16950 else
16951 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16955 mingw* | cygwin* | pw32* | os2* | cegcc*)
16956 # This hack is so that the source file can tell whether it is being
16957 # built for inclusion in a dll (and should export symbols for example).
16958 lt_prog_compiler_pic='-DDLL_EXPORT'
16961 hpux9* | hpux10* | hpux11*)
16962 lt_prog_compiler_wl='-Wl,'
16963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16964 # not for PA HP-UX.
16965 case $host_cpu in
16966 hppa*64*|ia64*)
16967 # +Z the default
16970 lt_prog_compiler_pic='+Z'
16972 esac
16973 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16974 lt_prog_compiler_static='${wl}-a ${wl}archive'
16977 irix5* | irix6* | nonstopux*)
16978 lt_prog_compiler_wl='-Wl,'
16979 # PIC (with -KPIC) is the default.
16980 lt_prog_compiler_static='-non_shared'
16983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16984 case $cc_basename in
16985 # old Intel for x86_64 which still supported -KPIC.
16986 ecc*)
16987 lt_prog_compiler_wl='-Wl,'
16988 lt_prog_compiler_pic='-KPIC'
16989 lt_prog_compiler_static='-static'
16991 # icc used to be incompatible with GCC.
16992 # ICC 10 doesn't accept -KPIC any more.
16993 icc* | ifort*)
16994 lt_prog_compiler_wl='-Wl,'
16995 lt_prog_compiler_pic='-fPIC'
16996 lt_prog_compiler_static='-static'
16998 # Lahey Fortran 8.1.
16999 lf95*)
17000 lt_prog_compiler_wl='-Wl,'
17001 lt_prog_compiler_pic='--shared'
17002 lt_prog_compiler_static='--static'
17004 pgcc* | pgf77* | pgf90* | pgf95*)
17005 # Portland Group compilers (*not* the Pentium gcc compiler,
17006 # which looks to be a dead project)
17007 lt_prog_compiler_wl='-Wl,'
17008 lt_prog_compiler_pic='-fpic'
17009 lt_prog_compiler_static='-Bstatic'
17011 ccc*)
17012 lt_prog_compiler_wl='-Wl,'
17013 # All Alpha code is PIC.
17014 lt_prog_compiler_static='-non_shared'
17016 xl*)
17017 # IBM XL C 8.0/Fortran 10.1 on PPC
17018 lt_prog_compiler_wl='-Wl,'
17019 lt_prog_compiler_pic='-qpic'
17020 lt_prog_compiler_static='-qstaticlink'
17023 case `$CC -V 2>&1 | sed 5q` in
17024 *Sun\ C*)
17025 # Sun C 5.9
17026 lt_prog_compiler_pic='-KPIC'
17027 lt_prog_compiler_static='-Bstatic'
17028 lt_prog_compiler_wl='-Wl,'
17030 *Sun\ F*)
17031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17032 lt_prog_compiler_pic='-KPIC'
17033 lt_prog_compiler_static='-Bstatic'
17034 lt_prog_compiler_wl=''
17036 esac
17038 esac
17041 newsos6)
17042 lt_prog_compiler_pic='-KPIC'
17043 lt_prog_compiler_static='-Bstatic'
17046 *nto* | *qnx*)
17047 # QNX uses GNU C++, but need to define -shared option too, otherwise
17048 # it will coredump.
17049 lt_prog_compiler_pic='-fPIC -shared'
17052 osf3* | osf4* | osf5*)
17053 lt_prog_compiler_wl='-Wl,'
17054 # All OSF/1 code is PIC.
17055 lt_prog_compiler_static='-non_shared'
17058 rdos*)
17059 lt_prog_compiler_static='-non_shared'
17062 solaris*)
17063 lt_prog_compiler_pic='-KPIC'
17064 lt_prog_compiler_static='-Bstatic'
17065 case $cc_basename in
17066 f77* | f90* | f95*)
17067 lt_prog_compiler_wl='-Qoption ld ';;
17069 lt_prog_compiler_wl='-Wl,';;
17070 esac
17073 sunos4*)
17074 lt_prog_compiler_wl='-Qoption ld '
17075 lt_prog_compiler_pic='-PIC'
17076 lt_prog_compiler_static='-Bstatic'
17079 sysv4 | sysv4.2uw2* | sysv4.3*)
17080 lt_prog_compiler_wl='-Wl,'
17081 lt_prog_compiler_pic='-KPIC'
17082 lt_prog_compiler_static='-Bstatic'
17085 sysv4*MP*)
17086 if test -d /usr/nec ;then
17087 lt_prog_compiler_pic='-Kconform_pic'
17088 lt_prog_compiler_static='-Bstatic'
17092 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17093 lt_prog_compiler_wl='-Wl,'
17094 lt_prog_compiler_pic='-KPIC'
17095 lt_prog_compiler_static='-Bstatic'
17098 unicos*)
17099 lt_prog_compiler_wl='-Wl,'
17100 lt_prog_compiler_can_build_shared=no
17103 uts4*)
17104 lt_prog_compiler_pic='-pic'
17105 lt_prog_compiler_static='-Bstatic'
17109 lt_prog_compiler_can_build_shared=no
17111 esac
17114 case $host_os in
17115 # For platforms which do not support PIC, -DPIC is meaningless:
17116 *djgpp*)
17117 lt_prog_compiler_pic=
17120 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17122 esac
17123 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17124 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17132 # Check to make sure the PIC flag actually works.
17134 if test -n "$lt_prog_compiler_pic"; then
17135 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17136 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17137 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140 lt_cv_prog_compiler_pic_works=no
17141 ac_outfile=conftest.$ac_objext
17142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17143 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17144 # Insert the option either (1) after the last *FLAGS variable, or
17145 # (2) before a word containing "conftest.", or (3) at the end.
17146 # Note that $ac_compile itself does not contain backslashes and begins
17147 # with a dollar sign (not a hyphen), so the echo should work correctly.
17148 # The option is referenced via a variable to avoid confusing sed.
17149 lt_compile=`echo "$ac_compile" | $SED \
17150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17152 -e 's:$: $lt_compiler_flag:'`
17153 (eval echo "\"\$as_me:17153: $lt_compile\"" >&5)
17154 (eval "$lt_compile" 2>conftest.err)
17155 ac_status=$?
17156 cat conftest.err >&5
17157 echo "$as_me:17157: \$? = $ac_status" >&5
17158 if (exit $ac_status) && test -s "$ac_outfile"; then
17159 # The compiler can only warn and ignore the option if not recognized
17160 # So say no if there are warnings other than the usual output.
17161 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17164 lt_cv_prog_compiler_pic_works=yes
17167 $RM conftest*
17170 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
17171 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
17173 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17174 case $lt_prog_compiler_pic in
17175 "" | " "*) ;;
17176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17177 esac
17178 else
17179 lt_prog_compiler_pic=
17180 lt_prog_compiler_can_build_shared=no
17191 # Check to make sure the static flag actually works.
17193 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17194 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17195 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17196 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 else
17199 lt_cv_prog_compiler_static_works=no
17200 save_LDFLAGS="$LDFLAGS"
17201 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17202 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17203 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17204 # The linker can only warn and ignore the option if not recognized
17205 # So say no if there are warnings
17206 if test -s conftest.err; then
17207 # Append any errors to the config.log.
17208 cat conftest.err 1>&5
17209 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17211 if diff conftest.exp conftest.er2 >/dev/null; then
17212 lt_cv_prog_compiler_static_works=yes
17214 else
17215 lt_cv_prog_compiler_static_works=yes
17218 $RM -r conftest*
17219 LDFLAGS="$save_LDFLAGS"
17222 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
17223 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
17225 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17227 else
17228 lt_prog_compiler_static=
17237 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17238 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17239 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241 else
17242 lt_cv_prog_compiler_c_o=no
17243 $RM -r conftest 2>/dev/null
17244 mkdir conftest
17245 cd conftest
17246 mkdir out
17247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17249 lt_compiler_flag="-o out/conftest2.$ac_objext"
17250 # Insert the option either (1) after the last *FLAGS variable, or
17251 # (2) before a word containing "conftest.", or (3) at the end.
17252 # Note that $ac_compile itself does not contain backslashes and begins
17253 # with a dollar sign (not a hyphen), so the echo should work correctly.
17254 lt_compile=`echo "$ac_compile" | $SED \
17255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17257 -e 's:$: $lt_compiler_flag:'`
17258 (eval echo "\"\$as_me:17258: $lt_compile\"" >&5)
17259 (eval "$lt_compile" 2>out/conftest.err)
17260 ac_status=$?
17261 cat out/conftest.err >&5
17262 echo "$as_me:17262: \$? = $ac_status" >&5
17263 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17264 then
17265 # The compiler can only warn and ignore the option if not recognized
17266 # So say no if there are warnings
17267 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17270 lt_cv_prog_compiler_c_o=yes
17273 chmod u+w . 2>&5
17274 $RM conftest*
17275 # SGI C++ compiler will create directory out/ii_files/ for
17276 # template instantiation
17277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17278 $RM out/* && rmdir out
17279 cd ..
17280 $RM -r conftest
17281 $RM conftest*
17284 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17285 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17292 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17294 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 else
17297 lt_cv_prog_compiler_c_o=no
17298 $RM -r conftest 2>/dev/null
17299 mkdir conftest
17300 cd conftest
17301 mkdir out
17302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17304 lt_compiler_flag="-o out/conftest2.$ac_objext"
17305 # Insert the option either (1) after the last *FLAGS variable, or
17306 # (2) before a word containing "conftest.", or (3) at the end.
17307 # Note that $ac_compile itself does not contain backslashes and begins
17308 # with a dollar sign (not a hyphen), so the echo should work correctly.
17309 lt_compile=`echo "$ac_compile" | $SED \
17310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17312 -e 's:$: $lt_compiler_flag:'`
17313 (eval echo "\"\$as_me:17313: $lt_compile\"" >&5)
17314 (eval "$lt_compile" 2>out/conftest.err)
17315 ac_status=$?
17316 cat out/conftest.err >&5
17317 echo "$as_me:17317: \$? = $ac_status" >&5
17318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17319 then
17320 # The compiler can only warn and ignore the option if not recognized
17321 # So say no if there are warnings
17322 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17325 lt_cv_prog_compiler_c_o=yes
17328 chmod u+w . 2>&5
17329 $RM conftest*
17330 # SGI C++ compiler will create directory out/ii_files/ for
17331 # template instantiation
17332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17333 $RM out/* && rmdir out
17334 cd ..
17335 $RM -r conftest
17336 $RM conftest*
17339 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17345 hard_links="nottested"
17346 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17347 # do not overwrite the value of need_locks provided by the user
17348 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17349 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17350 hard_links=yes
17351 $RM conftest*
17352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17353 touch conftest.a
17354 ln conftest.a conftest.b 2>&5 || hard_links=no
17355 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17356 echo "$as_me:$LINENO: result: $hard_links" >&5
17357 echo "${ECHO_T}$hard_links" >&6
17358 if test "$hard_links" = no; then
17359 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17360 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17361 need_locks=warn
17363 else
17364 need_locks=no
17372 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17375 runpath_var=
17376 allow_undefined_flag=
17377 always_export_symbols=no
17378 archive_cmds=
17379 archive_expsym_cmds=
17380 compiler_needs_object=no
17381 enable_shared_with_static_runtimes=no
17382 export_dynamic_flag_spec=
17383 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17384 hardcode_automatic=no
17385 hardcode_direct=no
17386 hardcode_direct_absolute=no
17387 hardcode_libdir_flag_spec=
17388 hardcode_libdir_flag_spec_ld=
17389 hardcode_libdir_separator=
17390 hardcode_minus_L=no
17391 hardcode_shlibpath_var=unsupported
17392 inherit_rpath=no
17393 link_all_deplibs=unknown
17394 module_cmds=
17395 module_expsym_cmds=
17396 old_archive_from_new_cmds=
17397 old_archive_from_expsyms_cmds=
17398 thread_safe_flag_spec=
17399 whole_archive_flag_spec=
17400 # include_expsyms should be a list of space-separated symbols to be *always*
17401 # included in the symbol list
17402 include_expsyms=
17403 # exclude_expsyms can be an extended regexp of symbols to exclude
17404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17406 # as well as any symbol that contains `d'.
17407 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17409 # platforms (ab)use it in PIC code, but their linkers get confused if
17410 # the symbol is explicitly referenced. Since portable code cannot
17411 # rely on this symbol name, it's probably fine to never include it in
17412 # preloaded symbol tables.
17413 # Exclude shared library initialization/finalization symbols.
17414 extract_expsyms_cmds=
17416 case $host_os in
17417 cygwin* | mingw* | pw32* | cegcc*)
17418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17419 # When not using gcc, we currently assume that we are using
17420 # Microsoft Visual C++.
17421 if test "$GCC" != yes; then
17422 with_gnu_ld=no
17425 interix*)
17426 # we just hope/assume this is gcc and not c89 (= MSVC++)
17427 with_gnu_ld=yes
17429 openbsd*)
17430 with_gnu_ld=no
17432 esac
17434 ld_shlibs=yes
17435 if test "$with_gnu_ld" = yes; then
17436 # If archive_cmds runs LD, not CC, wlarc should be empty
17437 wlarc='${wl}'
17439 # Set some defaults for GNU ld with shared library support. These
17440 # are reset later if shared libraries are not supported. Putting them
17441 # here allows them to be overridden if necessary.
17442 runpath_var=LD_RUN_PATH
17443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17444 export_dynamic_flag_spec='${wl}--export-dynamic'
17445 # ancient GNU ld didn't support --whole-archive et. al.
17446 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17447 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17448 else
17449 whole_archive_flag_spec=
17451 supports_anon_versioning=no
17452 case `$LD -v 2>&1` in
17453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17456 *\ 2.11.*) ;; # other 2.11 versions
17457 *) supports_anon_versioning=yes ;;
17458 esac
17460 # See if GNU ld supports shared libraries.
17461 case $host_os in
17462 aix[3-9]*)
17463 # On AIX/PPC, the GNU linker is very broken
17464 if test "$host_cpu" != ia64; then
17465 ld_shlibs=no
17466 cat <<_LT_EOF 1>&2
17468 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17469 *** to be unable to reliably create shared libraries on AIX.
17470 *** Therefore, libtool is disabling shared libraries support. If you
17471 *** really care for shared libraries, you may want to modify your PATH
17472 *** so that a non-GNU linker is found, and then restart.
17474 _LT_EOF
17478 amigaos*)
17479 case $host_cpu in
17480 powerpc)
17481 # see comment about AmigaOS4 .so support
17482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 archive_expsym_cmds=''
17485 m68k)
17486 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17487 hardcode_libdir_flag_spec='-L$libdir'
17488 hardcode_minus_L=yes
17490 esac
17493 beos*)
17494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17495 allow_undefined_flag=unsupported
17496 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17497 # support --undefined. This deserves some investigation. FIXME
17498 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17499 else
17500 ld_shlibs=no
17504 cygwin* | mingw* | pw32* | cegcc*)
17505 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17506 # as there is no search path for DLLs.
17507 hardcode_libdir_flag_spec='-L$libdir'
17508 allow_undefined_flag=unsupported
17509 always_export_symbols=no
17510 enable_shared_with_static_runtimes=yes
17511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17515 # If the export-symbols file already is a .def file (1st line
17516 # is EXPORTS), use it as is; otherwise, prepend...
17517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17518 cp $export_symbols $output_objdir/$soname.def;
17519 else
17520 echo EXPORTS > $output_objdir/$soname.def;
17521 cat $export_symbols >> $output_objdir/$soname.def;
17523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17524 else
17525 ld_shlibs=no
17529 interix[3-9]*)
17530 hardcode_direct=no
17531 hardcode_shlibpath_var=no
17532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17533 export_dynamic_flag_spec='${wl}-E'
17534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17535 # Instead, shared libraries are loaded at an image base (0x10000000 by
17536 # default) and relocated if they conflict, which is a slow very memory
17537 # consuming and fragmenting process. To avoid this, we pick a random,
17538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17539 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17541 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17544 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17545 tmp_diet=no
17546 if test "$host_os" = linux-dietlibc; then
17547 case $cc_basename in
17548 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17549 esac
17551 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17552 && test "$tmp_diet" = no
17553 then
17554 tmp_addflag=
17555 tmp_sharedflag='-shared'
17556 case $cc_basename,$host_cpu in
17557 pgcc*) # Portland Group C compiler
17558 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17559 tmp_addflag=' $pic_flag'
17561 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17562 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17563 tmp_addflag=' $pic_flag -Mnomain' ;;
17564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17565 tmp_addflag=' -i_dynamic' ;;
17566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17567 tmp_addflag=' -i_dynamic -nofor_main' ;;
17568 ifc* | ifort*) # Intel Fortran compiler
17569 tmp_addflag=' -nofor_main' ;;
17570 lf95*) # Lahey Fortran 8.1
17571 whole_archive_flag_spec=
17572 tmp_sharedflag='--shared' ;;
17573 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17574 tmp_sharedflag='-qmkshrobj'
17575 tmp_addflag= ;;
17576 esac
17577 case `$CC -V 2>&1 | sed 5q` in
17578 *Sun\ C*) # Sun C 5.9
17579 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17580 compiler_needs_object=yes
17581 tmp_sharedflag='-G' ;;
17582 *Sun\ F*) # Sun Fortran 8.3
17583 tmp_sharedflag='-G' ;;
17584 esac
17585 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17587 if test "x$supports_anon_versioning" = xyes; then
17588 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17589 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17590 echo "local: *; };" >> $output_objdir/$libname.ver~
17591 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17594 case $cc_basename in
17595 xlf*)
17596 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17597 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17598 hardcode_libdir_flag_spec=
17599 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17600 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17601 if test "x$supports_anon_versioning" = xyes; then
17602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17604 echo "local: *; };" >> $output_objdir/$libname.ver~
17605 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17608 esac
17609 else
17610 ld_shlibs=no
17614 netbsd*)
17615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17616 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17617 wlarc=
17618 else
17619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17624 solaris*)
17625 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17626 ld_shlibs=no
17627 cat <<_LT_EOF 1>&2
17629 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17630 *** create shared libraries on Solaris systems. Therefore, libtool
17631 *** is disabling shared libraries support. We urge you to upgrade GNU
17632 *** binutils to release 2.9.1 or newer. Another option is to modify
17633 *** your PATH or compiler configuration so that the native linker is
17634 *** used, and then restart.
17636 _LT_EOF
17637 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17640 else
17641 ld_shlibs=no
17645 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17646 case `$LD -v 2>&1` in
17647 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17648 ld_shlibs=no
17649 cat <<_LT_EOF 1>&2
17651 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17652 *** reliably create shared libraries on SCO systems. Therefore, libtool
17653 *** is disabling shared libraries support. We urge you to upgrade GNU
17654 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17655 *** your PATH or compiler configuration so that the native linker is
17656 *** used, and then restart.
17658 _LT_EOF
17661 # For security reasons, it is highly recommended that you always
17662 # use absolute paths for naming shared libraries, and exclude the
17663 # DT_RUNPATH tag from executables and libraries. But doing so
17664 # requires that you compile everything twice, which is a pain.
17665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17669 else
17670 ld_shlibs=no
17673 esac
17676 sunos4*)
17677 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17678 wlarc=
17679 hardcode_direct=yes
17680 hardcode_shlibpath_var=no
17684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17687 else
17688 ld_shlibs=no
17691 esac
17693 if test "$ld_shlibs" = no; then
17694 runpath_var=
17695 hardcode_libdir_flag_spec=
17696 export_dynamic_flag_spec=
17697 whole_archive_flag_spec=
17699 else
17700 # PORTME fill in a description of your system's linker (not GNU ld)
17701 case $host_os in
17702 aix3*)
17703 allow_undefined_flag=unsupported
17704 always_export_symbols=yes
17705 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17706 # Note: this linker hardcodes the directories in LIBPATH if there
17707 # are no directories specified by -L.
17708 hardcode_minus_L=yes
17709 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17710 # Neither direct hardcoding nor static linking is supported with a
17711 # broken collect2.
17712 hardcode_direct=unsupported
17716 aix[4-9]*)
17717 if test "$host_cpu" = ia64; then
17718 # On IA64, the linker does run time linking by default, so we don't
17719 # have to do anything special.
17720 aix_use_runtimelinking=no
17721 exp_sym_flag='-Bexport'
17722 no_entry_flag=""
17723 else
17724 # If we're using GNU nm, then we don't want the "-C" option.
17725 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17726 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17727 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17728 else
17729 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17731 aix_use_runtimelinking=no
17733 # Test if we are trying to use run time linking or normal
17734 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17735 # need to do runtime linking.
17736 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17737 for ld_flag in $LDFLAGS; do
17738 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17739 aix_use_runtimelinking=yes
17740 break
17742 done
17744 esac
17746 exp_sym_flag='-bexport'
17747 no_entry_flag='-bnoentry'
17750 # When large executables or shared objects are built, AIX ld can
17751 # have problems creating the table of contents. If linking a library
17752 # or program results in "error TOC overflow" add -mminimal-toc to
17753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17756 archive_cmds=''
17757 hardcode_direct=yes
17758 hardcode_direct_absolute=yes
17759 hardcode_libdir_separator=':'
17760 link_all_deplibs=yes
17761 file_list_spec='${wl}-f,'
17763 if test "$GCC" = yes; then
17764 case $host_os in aix4.[012]|aix4.[012].*)
17765 # We only want to do this on AIX 4.2 and lower, the check
17766 # below for broken collect2 doesn't work under 4.3+
17767 collect2name=`${CC} -print-prog-name=collect2`
17768 if test -f "$collect2name" &&
17769 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17770 then
17771 # We have reworked collect2
17773 else
17774 # We have old collect2
17775 hardcode_direct=unsupported
17776 # It fails to find uninstalled libraries when the uninstalled
17777 # path is not listed in the libpath. Setting hardcode_minus_L
17778 # to unsupported forces relinking
17779 hardcode_minus_L=yes
17780 hardcode_libdir_flag_spec='-L$libdir'
17781 hardcode_libdir_separator=
17784 esac
17785 shared_flag='-shared'
17786 if test "$aix_use_runtimelinking" = yes; then
17787 shared_flag="$shared_flag "'${wl}-G'
17789 else
17790 # not using gcc
17791 if test "$host_cpu" = ia64; then
17792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17793 # chokes on -Wl,-G. The following line is correct:
17794 shared_flag='-G'
17795 else
17796 if test "$aix_use_runtimelinking" = yes; then
17797 shared_flag='${wl}-G'
17798 else
17799 shared_flag='${wl}-bM:SRE'
17804 export_dynamic_flag_spec='${wl}-bexpall'
17805 # It seems that -bexpall does not export symbols beginning with
17806 # underscore (_), so it is better to generate a list of symbols to export.
17807 always_export_symbols=yes
17808 if test "$aix_use_runtimelinking" = yes; then
17809 # Warning - without using the other runtime loading flags (-brtl),
17810 # -berok will link without error, but may produce a broken library.
17811 allow_undefined_flag='-berok'
17812 # Determine the default libpath from the value encoded in an
17813 # empty executable.
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h. */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17822 main ()
17826 return 0;
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17831 (eval $ac_link) 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest$ac_exeext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17852 lt_aix_libpath_sed='
17853 /Import File Strings/,/^$/ {
17854 /^0/ {
17855 s/^0 *\(.*\)$/\1/
17859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860 # Check for a 64-bit object if we didn't find anything.
17861 if test -z "$aix_libpath"; then
17862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 else
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17869 rm -f conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17874 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17875 else
17876 if test "$host_cpu" = ia64; then
17877 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17878 allow_undefined_flag="-z nodefs"
17879 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17880 else
17881 # Determine the default libpath from the value encoded in an
17882 # empty executable.
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17891 main ()
17895 return 0;
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17900 (eval $ac_link) 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17921 lt_aix_libpath_sed='
17922 /Import File Strings/,/^$/ {
17923 /^0/ {
17924 s/^0 *\(.*\)$/\1/
17928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17929 # Check for a 64-bit object if we didn't find anything.
17930 if test -z "$aix_libpath"; then
17931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17933 else
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17938 rm -f conftest.err conftest.$ac_objext \
17939 conftest$ac_exeext conftest.$ac_ext
17940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17943 # Warning - without using the other run time loading flags,
17944 # -berok will link without error, but may produce a broken library.
17945 no_undefined_flag=' ${wl}-bernotok'
17946 allow_undefined_flag=' ${wl}-berok'
17947 # Exported symbols can be pulled into shared objects from archives
17948 whole_archive_flag_spec='$convenience'
17949 archive_cmds_need_lc=yes
17950 # This is similar to how AIX traditionally builds its shared libraries.
17951 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17956 amigaos*)
17957 case $host_cpu in
17958 powerpc)
17959 # see comment about AmigaOS4 .so support
17960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17961 archive_expsym_cmds=''
17963 m68k)
17964 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17965 hardcode_libdir_flag_spec='-L$libdir'
17966 hardcode_minus_L=yes
17968 esac
17971 bsdi[45]*)
17972 export_dynamic_flag_spec=-rdynamic
17975 cygwin* | mingw* | pw32* | cegcc*)
17976 # When not using gcc, we currently assume that we are using
17977 # Microsoft Visual C++.
17978 # hardcode_libdir_flag_spec is actually meaningless, as there is
17979 # no search path for DLLs.
17980 hardcode_libdir_flag_spec=' '
17981 allow_undefined_flag=unsupported
17982 # Tell ltmain to make .lib files, not .a files.
17983 libext=lib
17984 # Tell ltmain to make .dll files, not .so files.
17985 shrext_cmds=".dll"
17986 # FIXME: Setting linknames here is a bad hack.
17987 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17988 # The linker will automatically build a .lib file if we build a DLL.
17989 old_archive_from_new_cmds='true'
17990 # FIXME: Should let the user specify the lib program.
17991 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17992 fix_srcfile_path='`cygpath -w "$srcfile"`'
17993 enable_shared_with_static_runtimes=yes
17996 darwin* | rhapsody*)
17999 archive_cmds_need_lc=no
18000 hardcode_direct=no
18001 hardcode_automatic=yes
18002 hardcode_shlibpath_var=unsupported
18003 whole_archive_flag_spec=''
18004 link_all_deplibs=yes
18005 allow_undefined_flag="$_lt_dar_allow_undefined"
18006 case $cc_basename in
18007 ifort*) _lt_dar_can_shared=yes ;;
18008 *) _lt_dar_can_shared=$GCC ;;
18009 esac
18010 if test "$_lt_dar_can_shared" = "yes"; then
18011 output_verbose_link_cmd=echo
18012 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18013 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18014 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18015 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18017 else
18018 ld_shlibs=no
18023 dgux*)
18024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18025 hardcode_libdir_flag_spec='-L$libdir'
18026 hardcode_shlibpath_var=no
18029 freebsd1*)
18030 ld_shlibs=no
18033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18034 # support. Future versions do this automatically, but an explicit c++rt0.o
18035 # does not break anything, and helps significantly (at the cost of a little
18036 # extra space).
18037 freebsd2.2*)
18038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18039 hardcode_libdir_flag_spec='-R$libdir'
18040 hardcode_direct=yes
18041 hardcode_shlibpath_var=no
18044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18045 freebsd2*)
18046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18047 hardcode_direct=yes
18048 hardcode_minus_L=yes
18049 hardcode_shlibpath_var=no
18052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18053 freebsd* | dragonfly*)
18054 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18055 hardcode_libdir_flag_spec='-R$libdir'
18056 hardcode_direct=yes
18057 hardcode_shlibpath_var=no
18060 hpux9*)
18061 if test "$GCC" = yes; then
18062 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18063 else
18064 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18067 hardcode_libdir_separator=:
18068 hardcode_direct=yes
18070 # hardcode_minus_L: Not really in the search PATH,
18071 # but as the default location of the library.
18072 hardcode_minus_L=yes
18073 export_dynamic_flag_spec='${wl}-E'
18076 hpux10*)
18077 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18078 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18079 else
18080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18082 if test "$with_gnu_ld" = no; then
18083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18084 hardcode_libdir_flag_spec_ld='+b $libdir'
18085 hardcode_libdir_separator=:
18086 hardcode_direct=yes
18087 hardcode_direct_absolute=yes
18088 export_dynamic_flag_spec='${wl}-E'
18089 # hardcode_minus_L: Not really in the search PATH,
18090 # but as the default location of the library.
18091 hardcode_minus_L=yes
18095 hpux11*)
18096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18097 case $host_cpu in
18098 hppa*64*)
18099 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18101 ia64*)
18102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18107 esac
18108 else
18109 case $host_cpu in
18110 hppa*64*)
18111 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18113 ia64*)
18114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18117 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18119 esac
18121 if test "$with_gnu_ld" = no; then
18122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18123 hardcode_libdir_separator=:
18125 case $host_cpu in
18126 hppa*64*|ia64*)
18127 hardcode_direct=no
18128 hardcode_shlibpath_var=no
18131 hardcode_direct=yes
18132 hardcode_direct_absolute=yes
18133 export_dynamic_flag_spec='${wl}-E'
18135 # hardcode_minus_L: Not really in the search PATH,
18136 # but as the default location of the library.
18137 hardcode_minus_L=yes
18139 esac
18143 irix5* | irix6* | nonstopux*)
18144 if test "$GCC" = yes; then
18145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18146 # Try to use the -exported_symbol ld option, if it does not
18147 # work, assume that -exports_file does not work either and
18148 # implicitly export all symbols.
18149 save_LDFLAGS="$LDFLAGS"
18150 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18151 cat >conftest.$ac_ext <<_ACEOF
18152 int foo(void) {}
18153 _ACEOF
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18156 (eval $ac_link) 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -z "$ac_c_werror_flag"
18164 || test ! -s conftest.err'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } &&
18170 { ac_try='test -s conftest$ac_exeext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18178 else
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18183 rm -f conftest.err conftest.$ac_objext \
18184 conftest$ac_exeext conftest.$ac_ext
18185 LDFLAGS="$save_LDFLAGS"
18186 else
18187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18190 archive_cmds_need_lc='no'
18191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18192 hardcode_libdir_separator=:
18193 inherit_rpath=yes
18194 link_all_deplibs=yes
18197 netbsd*)
18198 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18200 else
18201 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18203 hardcode_libdir_flag_spec='-R$libdir'
18204 hardcode_direct=yes
18205 hardcode_shlibpath_var=no
18208 newsos6)
18209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210 hardcode_direct=yes
18211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18212 hardcode_libdir_separator=:
18213 hardcode_shlibpath_var=no
18216 *nto* | *qnx*)
18219 openbsd*)
18220 if test -f /usr/libexec/ld.so; then
18221 hardcode_direct=yes
18222 hardcode_shlibpath_var=no
18223 hardcode_direct_absolute=yes
18224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18226 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18228 export_dynamic_flag_spec='${wl}-E'
18229 else
18230 case $host_os in
18231 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18233 hardcode_libdir_flag_spec='-R$libdir'
18236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18239 esac
18241 else
18242 ld_shlibs=no
18246 os2*)
18247 hardcode_libdir_flag_spec='-L$libdir'
18248 hardcode_minus_L=yes
18249 allow_undefined_flag=unsupported
18250 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18251 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18254 osf3*)
18255 if test "$GCC" = yes; then
18256 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18257 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18258 else
18259 allow_undefined_flag=' -expect_unresolved \*'
18260 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18262 archive_cmds_need_lc='no'
18263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18264 hardcode_libdir_separator=:
18267 osf4* | osf5*) # as osf3* with the addition of -msym flag
18268 if test "$GCC" = yes; then
18269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18270 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18272 else
18273 allow_undefined_flag=' -expect_unresolved \*'
18274 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18275 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18276 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18278 # Both c and cxx compiler support -rpath directly
18279 hardcode_libdir_flag_spec='-rpath $libdir'
18281 archive_cmds_need_lc='no'
18282 hardcode_libdir_separator=:
18285 solaris*)
18286 no_undefined_flag=' -z defs'
18287 if test "$GCC" = yes; then
18288 wlarc='${wl}'
18289 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18291 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18292 else
18293 case `$CC -V 2>&1` in
18294 *"Compilers 5.0"*)
18295 wlarc=''
18296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18297 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18301 wlarc='${wl}'
18302 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18303 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18304 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18306 esac
18308 hardcode_libdir_flag_spec='-R$libdir'
18309 hardcode_shlibpath_var=no
18310 case $host_os in
18311 solaris2.[0-5] | solaris2.[0-5].*) ;;
18313 # The compiler driver will combine and reorder linker options,
18314 # but understands `-z linker_flag'. GCC discards it without `$wl',
18315 # but is careful enough not to reorder.
18316 # Supported since Solaris 2.6 (maybe 2.5.1?)
18317 if test "$GCC" = yes; then
18318 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18319 else
18320 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18323 esac
18324 link_all_deplibs=yes
18327 sunos4*)
18328 if test "x$host_vendor" = xsequent; then
18329 # Use $CC to link under sequent, because it throws in some extra .o
18330 # files that make .init and .fini sections work.
18331 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18332 else
18333 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18335 hardcode_libdir_flag_spec='-L$libdir'
18336 hardcode_direct=yes
18337 hardcode_minus_L=yes
18338 hardcode_shlibpath_var=no
18341 sysv4)
18342 case $host_vendor in
18343 sni)
18344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18345 hardcode_direct=yes # is this really true???
18347 siemens)
18348 ## LD is ld it makes a PLAMLIB
18349 ## CC just makes a GrossModule.
18350 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18351 reload_cmds='$CC -r -o $output$reload_objs'
18352 hardcode_direct=no
18354 motorola)
18355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18356 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18358 esac
18359 runpath_var='LD_RUN_PATH'
18360 hardcode_shlibpath_var=no
18363 sysv4.3*)
18364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18365 hardcode_shlibpath_var=no
18366 export_dynamic_flag_spec='-Bexport'
18369 sysv4*MP*)
18370 if test -d /usr/nec; then
18371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18372 hardcode_shlibpath_var=no
18373 runpath_var=LD_RUN_PATH
18374 hardcode_runpath_var=yes
18375 ld_shlibs=yes
18379 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18380 no_undefined_flag='${wl}-z,text'
18381 archive_cmds_need_lc=no
18382 hardcode_shlibpath_var=no
18383 runpath_var='LD_RUN_PATH'
18385 if test "$GCC" = yes; then
18386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18388 else
18389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18394 sysv5* | sco3.2v5* | sco5v6*)
18395 # Note: We can NOT use -z defs as we might desire, because we do not
18396 # link with -lc, and that would cause any symbols used from libc to
18397 # always be unresolved, which means just about no library would
18398 # ever link correctly. If we're not using GNU ld we use -z text
18399 # though, which does catch some bad symbols but isn't as heavy-handed
18400 # as -z defs.
18401 no_undefined_flag='${wl}-z,text'
18402 allow_undefined_flag='${wl}-z,nodefs'
18403 archive_cmds_need_lc=no
18404 hardcode_shlibpath_var=no
18405 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18406 hardcode_libdir_separator=':'
18407 link_all_deplibs=yes
18408 export_dynamic_flag_spec='${wl}-Bexport'
18409 runpath_var='LD_RUN_PATH'
18411 if test "$GCC" = yes; then
18412 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18413 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18414 else
18415 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18416 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18420 uts4*)
18421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18422 hardcode_libdir_flag_spec='-L$libdir'
18423 hardcode_shlibpath_var=no
18427 ld_shlibs=no
18429 esac
18431 if test x$host_vendor = xsni; then
18432 case $host in
18433 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18434 export_dynamic_flag_spec='${wl}-Blargedynsym'
18436 esac
18440 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18441 echo "${ECHO_T}$ld_shlibs" >&6
18442 test "$ld_shlibs" = no && can_build_shared=no
18444 with_gnu_ld=$with_gnu_ld
18461 # Do we need to explicitly link libc?
18463 case "x$archive_cmds_need_lc" in
18464 x|xyes)
18465 # Assume -lc should be added
18466 archive_cmds_need_lc=yes
18468 if test "$enable_shared" = yes && test "$GCC" = yes; then
18469 case $archive_cmds in
18470 *'~'*)
18471 # FIXME: we may have to deal with multi-command sequences.
18473 '$CC '*)
18474 # Test whether the compiler implicitly links with -lc since on some
18475 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18476 # to ld, don't add -lc before -lgcc.
18477 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18478 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18479 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 else
18482 $RM conftest*
18483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486 (eval $ac_compile) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } 2>conftest.err; then
18490 soname=conftest
18491 lib=conftest
18492 libobjs=conftest.$ac_objext
18493 deplibs=
18494 wl=$lt_prog_compiler_wl
18495 pic_flag=$lt_prog_compiler_pic
18496 compiler_flags=-v
18497 linker_flags=-v
18498 verstring=
18499 output_objdir=.
18500 libname=conftest
18501 lt_save_allow_undefined_flag=$allow_undefined_flag
18502 allow_undefined_flag=
18503 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18504 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }
18508 then
18509 lt_cv_archive_cmds_need_lc=no
18510 else
18511 lt_cv_archive_cmds_need_lc=yes
18513 allow_undefined_flag=$lt_save_allow_undefined_flag
18514 else
18515 cat conftest.err 1>&5
18517 $RM conftest*
18520 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
18521 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
18522 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18524 esac
18527 esac
18685 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18686 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18688 if test "$GCC" = yes; then
18689 case $host_os in
18690 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18691 *) lt_awk_arg="/^libraries:/" ;;
18692 esac
18693 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18694 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18695 # if the path contains ";" then we assume it to be the separator
18696 # otherwise default to the standard path separator (i.e. ":") - it is
18697 # assumed that no part of a normal pathname contains ";" but that should
18698 # okay in the real world where ";" in dirpaths is itself problematic.
18699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18700 else
18701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18703 # Ok, now we have the path, separated by spaces, we can step through it
18704 # and add multilib dir if necessary.
18705 lt_tmp_lt_search_path_spec=
18706 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18707 for lt_sys_path in $lt_search_path_spec; do
18708 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18710 else
18711 test -d "$lt_sys_path" && \
18712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18714 done
18715 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18716 BEGIN {RS=" "; FS="/|\n";} {
18717 lt_foo="";
18718 lt_count=0;
18719 for (lt_i = NF; lt_i > 0; lt_i--) {
18720 if ($lt_i != "" && $lt_i != ".") {
18721 if ($lt_i == "..") {
18722 lt_count++;
18723 } else {
18724 if (lt_count == 0) {
18725 lt_foo="/" $lt_i lt_foo;
18726 } else {
18727 lt_count--;
18732 if (lt_foo != "") { lt_freq[lt_foo]++; }
18733 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18735 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18736 else
18737 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18739 library_names_spec=
18740 libname_spec='lib$name'
18741 soname_spec=
18742 shrext_cmds=".so"
18743 postinstall_cmds=
18744 postuninstall_cmds=
18745 finish_cmds=
18746 finish_eval=
18747 shlibpath_var=
18748 shlibpath_overrides_runpath=unknown
18749 version_type=none
18750 dynamic_linker="$host_os ld.so"
18751 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18752 need_lib_prefix=unknown
18753 hardcode_into_libs=no
18755 # when you set need_version to no, make sure it does not cause -set_version
18756 # flags to be left without arguments
18757 need_version=unknown
18759 case $host_os in
18760 aix3*)
18761 version_type=linux
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18763 shlibpath_var=LIBPATH
18765 # AIX 3 has no versioning support, so we append a major version to the name.
18766 soname_spec='${libname}${release}${shared_ext}$major'
18769 aix[4-9]*)
18770 version_type=linux
18771 need_lib_prefix=no
18772 need_version=no
18773 hardcode_into_libs=yes
18774 if test "$host_cpu" = ia64; then
18775 # AIX 5 supports IA64
18776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18777 shlibpath_var=LD_LIBRARY_PATH
18778 else
18779 # With GCC up to 2.95.x, collect2 would create an import file
18780 # for dependence libraries. The import file would start with
18781 # the line `#! .'. This would cause the generated library to
18782 # depend on `.', always an invalid library. This was fixed in
18783 # development snapshots of GCC prior to 3.0.
18784 case $host_os in
18785 aix4 | aix4.[01] | aix4.[01].*)
18786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18787 echo ' yes '
18788 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18790 else
18791 can_build_shared=no
18794 esac
18795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18796 # soname into executable. Probably we can add versioning support to
18797 # collect2, so additional links can be useful in future.
18798 if test "$aix_use_runtimelinking" = yes; then
18799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18800 # instead of lib<name>.a to let people know that these are not
18801 # typical AIX shared libraries.
18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803 else
18804 # We preserve .a as extension for shared libraries through AIX4.2
18805 # and later when we are not doing run time linking.
18806 library_names_spec='${libname}${release}.a $libname.a'
18807 soname_spec='${libname}${release}${shared_ext}$major'
18809 shlibpath_var=LIBPATH
18813 amigaos*)
18814 case $host_cpu in
18815 powerpc)
18816 # Since July 2007 AmigaOS4 officially supports .so libraries.
18817 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18820 m68k)
18821 library_names_spec='$libname.ixlibrary $libname.a'
18822 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18823 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18825 esac
18828 beos*)
18829 library_names_spec='${libname}${shared_ext}'
18830 dynamic_linker="$host_os ld.so"
18831 shlibpath_var=LIBRARY_PATH
18834 bsdi[45]*)
18835 version_type=linux
18836 need_version=no
18837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838 soname_spec='${libname}${release}${shared_ext}$major'
18839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18840 shlibpath_var=LD_LIBRARY_PATH
18841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18843 # the default ld.so.conf also contains /usr/contrib/lib and
18844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18845 # libtool to hard-code these into programs
18848 cygwin* | mingw* | pw32* | cegcc*)
18849 version_type=windows
18850 shrext_cmds=".dll"
18851 need_version=no
18852 need_lib_prefix=no
18854 case $GCC,$host_os in
18855 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18856 library_names_spec='$libname.dll.a'
18857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18858 postinstall_cmds='base_file=`basename \${file}`~
18859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18860 dldir=$destdir/`dirname \$dlpath`~
18861 test -d \$dldir || mkdir -p \$dldir~
18862 $install_prog $dir/$dlname \$dldir/$dlname~
18863 chmod a+x \$dldir/$dlname~
18864 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18865 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18867 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18868 dlpath=$dir/\$dldll~
18869 $RM \$dlpath'
18870 shlibpath_overrides_runpath=yes
18872 case $host_os in
18873 cygwin*)
18874 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18875 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18876 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18878 mingw* | cegcc*)
18879 # MinGW DLLs use traditional 'lib' prefix
18880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18881 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18882 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18883 # It is most probably a Windows format PATH printed by
18884 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18885 # path with ; separators, and with drive letters. We can handle the
18886 # drive letters (cygwin fileutils understands them), so leave them,
18887 # especially as we might pass files found there to a mingw objdump,
18888 # which wouldn't understand a cygwinified path. Ahh.
18889 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18890 else
18891 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18894 pw32*)
18895 # pw32 DLLs use 'pw' prefix rather than 'lib'
18896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18898 esac
18902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18904 esac
18905 dynamic_linker='Win32 ld.exe'
18906 # FIXME: first we should search . and the directory the executable is in
18907 shlibpath_var=PATH
18910 darwin* | rhapsody*)
18911 dynamic_linker="$host_os dyld"
18912 version_type=darwin
18913 need_lib_prefix=no
18914 need_version=no
18915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18916 soname_spec='${libname}${release}${major}$shared_ext'
18917 shlibpath_overrides_runpath=yes
18918 shlibpath_var=DYLD_LIBRARY_PATH
18919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18925 dgux*)
18926 version_type=linux
18927 need_lib_prefix=no
18928 need_version=no
18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18930 soname_spec='${libname}${release}${shared_ext}$major'
18931 shlibpath_var=LD_LIBRARY_PATH
18934 freebsd1*)
18935 dynamic_linker=no
18938 freebsd* | dragonfly*)
18939 # DragonFly does not have aout. When/if they implement a new
18940 # versioning mechanism, adjust this.
18941 if test -x /usr/bin/objformat; then
18942 objformat=`/usr/bin/objformat`
18943 else
18944 case $host_os in
18945 freebsd[123]*) objformat=aout ;;
18946 *) objformat=elf ;;
18947 esac
18949 version_type=freebsd-$objformat
18950 case $version_type in
18951 freebsd-elf*)
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18953 need_version=no
18954 need_lib_prefix=no
18956 freebsd-*)
18957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18958 need_version=yes
18960 esac
18961 shlibpath_var=LD_LIBRARY_PATH
18962 case $host_os in
18963 freebsd2*)
18964 shlibpath_overrides_runpath=yes
18966 freebsd3.[01]* | freebsdelf3.[01]*)
18967 shlibpath_overrides_runpath=yes
18968 hardcode_into_libs=yes
18970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18972 shlibpath_overrides_runpath=no
18973 hardcode_into_libs=yes
18975 *) # from 4.6 on, and DragonFly
18976 shlibpath_overrides_runpath=yes
18977 hardcode_into_libs=yes
18979 esac
18982 gnu*)
18983 version_type=linux
18984 need_lib_prefix=no
18985 need_version=no
18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18987 soname_spec='${libname}${release}${shared_ext}$major'
18988 shlibpath_var=LD_LIBRARY_PATH
18989 hardcode_into_libs=yes
18992 hpux9* | hpux10* | hpux11*)
18993 # Give a soname corresponding to the major version so that dld.sl refuses to
18994 # link against other versions.
18995 version_type=sunos
18996 need_lib_prefix=no
18997 need_version=no
18998 case $host_cpu in
18999 ia64*)
19000 shrext_cmds='.so'
19001 hardcode_into_libs=yes
19002 dynamic_linker="$host_os dld.so"
19003 shlibpath_var=LD_LIBRARY_PATH
19004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19006 soname_spec='${libname}${release}${shared_ext}$major'
19007 if test "X$HPUX_IA64_MODE" = X32; then
19008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19009 else
19010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19014 hppa*64*)
19015 shrext_cmds='.sl'
19016 hardcode_into_libs=yes
19017 dynamic_linker="$host_os dld.sl"
19018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19026 shrext_cmds='.sl'
19027 dynamic_linker="$host_os dld.sl"
19028 shlibpath_var=SHLIB_PATH
19029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19033 esac
19034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19035 postinstall_cmds='chmod 555 $lib'
19038 interix[3-9]*)
19039 version_type=linux
19040 need_lib_prefix=no
19041 need_version=no
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19043 soname_spec='${libname}${release}${shared_ext}$major'
19044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19045 shlibpath_var=LD_LIBRARY_PATH
19046 shlibpath_overrides_runpath=no
19047 hardcode_into_libs=yes
19050 irix5* | irix6* | nonstopux*)
19051 case $host_os in
19052 nonstopux*) version_type=nonstopux ;;
19054 if test "$lt_cv_prog_gnu_ld" = yes; then
19055 version_type=linux
19056 else
19057 version_type=irix
19058 fi ;;
19059 esac
19060 need_lib_prefix=no
19061 need_version=no
19062 soname_spec='${libname}${release}${shared_ext}$major'
19063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19064 case $host_os in
19065 irix5* | nonstopux*)
19066 libsuff= shlibsuff=
19069 case $LD in # libtool.m4 will add one of these switches to LD
19070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19071 libsuff= shlibsuff= libmagic=32-bit;;
19072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19073 libsuff=32 shlibsuff=N32 libmagic=N32;;
19074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19076 *) libsuff= shlibsuff= libmagic=never-match;;
19077 esac
19079 esac
19080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19081 shlibpath_overrides_runpath=no
19082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19084 hardcode_into_libs=yes
19087 # No shared lib support for Linux oldld, aout, or coff.
19088 linux*oldld* | linux*aout* | linux*coff*)
19089 dynamic_linker=no
19092 # This must be Linux ELF.
19093 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19094 version_type=linux
19095 need_lib_prefix=no
19096 need_version=no
19097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19098 soname_spec='${libname}${release}${shared_ext}$major'
19099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19100 shlibpath_var=LD_LIBRARY_PATH
19101 shlibpath_overrides_runpath=no
19103 # Some binutils ld are patched to set DT_RUNPATH
19104 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107 lt_cv_shlibpath_overrides_runpath=no
19108 save_LDFLAGS=$LDFLAGS
19109 save_libdir=$libdir
19110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19120 main ()
19124 return 0;
19126 _ACEOF
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19129 (eval $ac_link) 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } &&
19136 { ac_try='test -z "$ac_c_werror_flag"
19137 || test ! -s conftest.err'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
19150 lt_cv_shlibpath_overrides_runpath=yes
19153 else
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19158 rm -f conftest.err conftest.$ac_objext \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LDFLAGS=$save_LDFLAGS
19161 libdir=$save_libdir
19165 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19167 # This implies no fast_install, which is unacceptable.
19168 # Some rework will be needed to allow for fast_install
19169 # before this can be enabled.
19170 hardcode_into_libs=yes
19172 # Append ld.so.conf contents to the search path
19173 if test -f /etc/ld.so.conf; then
19174 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19178 # We used to test for /lib/ld.so.1 and disable shared libraries on
19179 # powerpc, because MkLinux only supported shared libraries with the
19180 # GNU dynamic linker. Since this was broken with cross compilers,
19181 # most powerpc-linux boxes support dynamic linking these days and
19182 # people can always --disable-shared, the test was removed, and we
19183 # assume the GNU/Linux dynamic linker is in use.
19184 dynamic_linker='GNU/Linux ld.so'
19187 netbsd*)
19188 version_type=sunos
19189 need_lib_prefix=no
19190 need_version=no
19191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19194 dynamic_linker='NetBSD (a.out) ld.so'
19195 else
19196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19197 soname_spec='${libname}${release}${shared_ext}$major'
19198 dynamic_linker='NetBSD ld.elf_so'
19200 shlibpath_var=LD_LIBRARY_PATH
19201 shlibpath_overrides_runpath=yes
19202 hardcode_into_libs=yes
19205 newsos6)
19206 version_type=linux
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 shlibpath_var=LD_LIBRARY_PATH
19209 shlibpath_overrides_runpath=yes
19212 *nto* | *qnx*)
19213 version_type=qnx
19214 need_lib_prefix=no
19215 need_version=no
19216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19217 soname_spec='${libname}${release}${shared_ext}$major'
19218 shlibpath_var=LD_LIBRARY_PATH
19219 shlibpath_overrides_runpath=no
19220 hardcode_into_libs=yes
19221 dynamic_linker='ldqnx.so'
19224 openbsd*)
19225 version_type=sunos
19226 sys_lib_dlsearch_path_spec="/usr/lib"
19227 need_lib_prefix=no
19228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19229 case $host_os in
19230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19231 *) need_version=no ;;
19232 esac
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235 shlibpath_var=LD_LIBRARY_PATH
19236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237 case $host_os in
19238 openbsd2.[89] | openbsd2.[89].*)
19239 shlibpath_overrides_runpath=no
19242 shlibpath_overrides_runpath=yes
19244 esac
19245 else
19246 shlibpath_overrides_runpath=yes
19250 os2*)
19251 libname_spec='$name'
19252 shrext_cmds=".dll"
19253 need_lib_prefix=no
19254 library_names_spec='$libname${shared_ext} $libname.a'
19255 dynamic_linker='OS/2 ld.exe'
19256 shlibpath_var=LIBPATH
19259 osf3* | osf4* | osf5*)
19260 version_type=osf
19261 need_lib_prefix=no
19262 need_version=no
19263 soname_spec='${libname}${release}${shared_ext}$major'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19265 shlibpath_var=LD_LIBRARY_PATH
19266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19270 rdos*)
19271 dynamic_linker=no
19274 solaris*)
19275 version_type=linux
19276 need_lib_prefix=no
19277 need_version=no
19278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19279 soname_spec='${libname}${release}${shared_ext}$major'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 shlibpath_overrides_runpath=yes
19282 hardcode_into_libs=yes
19283 # ldd complains unless libraries are executable
19284 postinstall_cmds='chmod +x $lib'
19287 sunos4*)
19288 version_type=sunos
19289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19291 shlibpath_var=LD_LIBRARY_PATH
19292 shlibpath_overrides_runpath=yes
19293 if test "$with_gnu_ld" = yes; then
19294 need_lib_prefix=no
19296 need_version=yes
19299 sysv4 | sysv4.3*)
19300 version_type=linux
19301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19302 soname_spec='${libname}${release}${shared_ext}$major'
19303 shlibpath_var=LD_LIBRARY_PATH
19304 case $host_vendor in
19305 sni)
19306 shlibpath_overrides_runpath=no
19307 need_lib_prefix=no
19308 runpath_var=LD_RUN_PATH
19310 siemens)
19311 need_lib_prefix=no
19313 motorola)
19314 need_lib_prefix=no
19315 need_version=no
19316 shlibpath_overrides_runpath=no
19317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19319 esac
19322 sysv4*MP*)
19323 if test -d /usr/nec ;then
19324 version_type=linux
19325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19326 soname_spec='$libname${shared_ext}.$major'
19327 shlibpath_var=LD_LIBRARY_PATH
19331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19332 version_type=freebsd-elf
19333 need_lib_prefix=no
19334 need_version=no
19335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19336 soname_spec='${libname}${release}${shared_ext}$major'
19337 shlibpath_var=LD_LIBRARY_PATH
19338 shlibpath_overrides_runpath=yes
19339 hardcode_into_libs=yes
19340 if test "$with_gnu_ld" = yes; then
19341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19342 else
19343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19344 case $host_os in
19345 sco3.2v5*)
19346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19348 esac
19350 sys_lib_dlsearch_path_spec='/usr/lib'
19353 tpf*)
19354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19355 version_type=linux
19356 need_lib_prefix=no
19357 need_version=no
19358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 shlibpath_overrides_runpath=no
19361 hardcode_into_libs=yes
19364 uts4*)
19365 version_type=linux
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 shlibpath_var=LD_LIBRARY_PATH
19372 dynamic_linker=no
19374 esac
19375 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19376 echo "${ECHO_T}$dynamic_linker" >&6
19377 test "$dynamic_linker" = no && can_build_shared=no
19379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19380 if test "$GCC" = yes; then
19381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19384 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19385 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19387 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19388 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19477 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19478 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19479 hardcode_action=
19480 if test -n "$hardcode_libdir_flag_spec" ||
19481 test -n "$runpath_var" ||
19482 test "X$hardcode_automatic" = "Xyes" ; then
19484 # We can hardcode non-existent directories.
19485 if test "$hardcode_direct" != no &&
19486 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19487 # have to relink, otherwise we might link with an installed library
19488 # when we should be linking with a yet-to-be-installed one
19489 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19490 test "$hardcode_minus_L" != no; then
19491 # Linking always hardcodes the temporary library directory.
19492 hardcode_action=relink
19493 else
19494 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19495 hardcode_action=immediate
19497 else
19498 # We cannot hardcode anything, or else we can only hardcode existing
19499 # directories.
19500 hardcode_action=unsupported
19502 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19503 echo "${ECHO_T}$hardcode_action" >&6
19505 if test "$hardcode_action" = relink ||
19506 test "$inherit_rpath" = yes; then
19507 # Fast installation is not supported
19508 enable_fast_install=no
19509 elif test "$shlibpath_overrides_runpath" = yes ||
19510 test "$enable_shared" = no; then
19511 # Fast installation is not necessary
19512 enable_fast_install=needless
19520 if test "x$enable_dlopen" != xyes; then
19521 enable_dlopen=unknown
19522 enable_dlopen_self=unknown
19523 enable_dlopen_self_static=unknown
19524 else
19525 lt_cv_dlopen=no
19526 lt_cv_dlopen_libs=
19528 case $host_os in
19529 beos*)
19530 lt_cv_dlopen="load_add_on"
19531 lt_cv_dlopen_libs=
19532 lt_cv_dlopen_self=yes
19535 mingw* | pw32* | cegcc*)
19536 lt_cv_dlopen="LoadLibrary"
19537 lt_cv_dlopen_libs=
19540 cygwin*)
19541 lt_cv_dlopen="dlopen"
19542 lt_cv_dlopen_libs=
19545 darwin*)
19546 # if libdl is installed we need to link against it
19547 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19548 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 else
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-ldl $LIBS"
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 /* Override any gcc2 internal prototype to avoid an error. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 /* We use char because int might match the return type of a gcc2
19566 builtin and then its argument prototype would still apply. */
19567 char dlopen ();
19569 main ()
19571 dlopen ();
19573 return 0;
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>conftest.er1
19579 ac_status=$?
19580 grep -v '^ *+' conftest.er1 >conftest.err
19581 rm -f conftest.er1
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); } &&
19585 { ac_try='test -z "$ac_c_werror_flag"
19586 || test ! -s conftest.err'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; } &&
19592 { ac_try='test -s conftest$ac_exeext'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19595 ac_status=$?
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19598 ac_cv_lib_dl_dlopen=yes
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_cv_lib_dl_dlopen=no
19605 rm -f conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19610 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19611 if test $ac_cv_lib_dl_dlopen = yes; then
19612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19613 else
19615 lt_cv_dlopen="dyld"
19616 lt_cv_dlopen_libs=
19617 lt_cv_dlopen_self=yes
19624 echo "$as_me:$LINENO: checking for shl_load" >&5
19625 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19626 if test "${ac_cv_func_shl_load+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h. */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h. */
19635 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19637 #define shl_load innocuous_shl_load
19639 /* System header to define __stub macros and hopefully few prototypes,
19640 which can conflict with char shl_load (); below.
19641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642 <limits.h> exists even on freestanding compilers. */
19644 #ifdef __STDC__
19645 # include <limits.h>
19646 #else
19647 # include <assert.h>
19648 #endif
19650 #undef shl_load
19652 /* Override any gcc2 internal prototype to avoid an error. */
19653 #ifdef __cplusplus
19654 extern "C"
19656 #endif
19657 /* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19659 char shl_load ();
19660 /* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
19663 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19664 choke me
19665 #else
19666 char (*f) () = shl_load;
19667 #endif
19668 #ifdef __cplusplus
19670 #endif
19673 main ()
19675 return f != shl_load;
19677 return 0;
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>conftest.er1
19683 ac_status=$?
19684 grep -v '^ *+' conftest.er1 >conftest.err
19685 rm -f conftest.er1
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_c_werror_flag"
19690 || test ! -s conftest.err'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; } &&
19696 { ac_try='test -s conftest$ac_exeext'
19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698 (eval $ac_try) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; }; then
19702 ac_cv_func_shl_load=yes
19703 else
19704 echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19707 ac_cv_func_shl_load=no
19709 rm -f conftest.err conftest.$ac_objext \
19710 conftest$ac_exeext conftest.$ac_ext
19712 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19713 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19714 if test $ac_cv_func_shl_load = yes; then
19715 lt_cv_dlopen="shl_load"
19716 else
19717 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19718 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722 ac_check_lib_save_LIBS=$LIBS
19723 LIBS="-ldld $LIBS"
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h. */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h. */
19731 /* Override any gcc2 internal prototype to avoid an error. */
19732 #ifdef __cplusplus
19733 extern "C"
19734 #endif
19735 /* We use char because int might match the return type of a gcc2
19736 builtin and then its argument prototype would still apply. */
19737 char shl_load ();
19739 main ()
19741 shl_load ();
19743 return 0;
19745 _ACEOF
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19748 (eval $ac_link) 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag"
19756 || test ! -s conftest.err'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19759 ac_status=$?
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; } &&
19762 { ac_try='test -s conftest$ac_exeext'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19765 ac_status=$?
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19768 ac_cv_lib_dld_shl_load=yes
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 ac_cv_lib_dld_shl_load=no
19775 rm -f conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19779 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19780 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19781 if test $ac_cv_lib_dld_shl_load = yes; then
19782 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19783 else
19784 echo "$as_me:$LINENO: checking for dlopen" >&5
19785 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19786 if test "${ac_cv_func_dlopen+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define dlopen innocuous_dlopen
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char dlopen (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19810 #undef dlopen
19812 /* Override any gcc2 internal prototype to avoid an error. */
19813 #ifdef __cplusplus
19814 extern "C"
19816 #endif
19817 /* We use char because int might match the return type of a gcc2
19818 builtin and then its argument prototype would still apply. */
19819 char dlopen ();
19820 /* The GNU C library defines this for functions which it implements
19821 to always fail with ENOSYS. Some functions are actually named
19822 something starting with __ and the normal name is an alias. */
19823 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19824 choke me
19825 #else
19826 char (*f) () = dlopen;
19827 #endif
19828 #ifdef __cplusplus
19830 #endif
19833 main ()
19835 return f != dlopen;
19837 return 0;
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19842 (eval $ac_link) 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
19849 { ac_try='test -z "$ac_c_werror_flag"
19850 || test ! -s conftest.err'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest$ac_exeext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_func_dlopen=yes
19863 else
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_cv_func_dlopen=no
19869 rm -f conftest.err conftest.$ac_objext \
19870 conftest$ac_exeext conftest.$ac_ext
19872 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19873 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19874 if test $ac_cv_func_dlopen = yes; then
19875 lt_cv_dlopen="dlopen"
19876 else
19877 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19878 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 ac_check_lib_save_LIBS=$LIBS
19883 LIBS="-ldl $LIBS"
19884 cat >conftest.$ac_ext <<_ACEOF
19885 /* confdefs.h. */
19886 _ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19891 /* Override any gcc2 internal prototype to avoid an error. */
19892 #ifdef __cplusplus
19893 extern "C"
19894 #endif
19895 /* We use char because int might match the return type of a gcc2
19896 builtin and then its argument prototype would still apply. */
19897 char dlopen ();
19899 main ()
19901 dlopen ();
19903 return 0;
19905 _ACEOF
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19908 (eval $ac_link) 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_c_werror_flag"
19916 || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_lib_dl_dlopen=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ac_cv_lib_dl_dlopen=no
19935 rm -f conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19937 LIBS=$ac_check_lib_save_LIBS
19939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19941 if test $ac_cv_lib_dl_dlopen = yes; then
19942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19943 else
19944 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19945 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19946 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949 ac_check_lib_save_LIBS=$LIBS
19950 LIBS="-lsvld $LIBS"
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19958 /* Override any gcc2 internal prototype to avoid an error. */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 /* We use char because int might match the return type of a gcc2
19963 builtin and then its argument prototype would still apply. */
19964 char dlopen ();
19966 main ()
19968 dlopen ();
19970 return 0;
19972 _ACEOF
19973 rm -f conftest.$ac_objext conftest$ac_exeext
19974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19975 (eval $ac_link) 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
19982 { ac_try='test -z "$ac_c_werror_flag"
19983 || test ! -s conftest.err'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; } &&
19989 { ac_try='test -s conftest$ac_exeext'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; }; then
19995 ac_cv_lib_svld_dlopen=yes
19996 else
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_svld_dlopen=no
20002 rm -f conftest.err conftest.$ac_objext \
20003 conftest$ac_exeext conftest.$ac_ext
20004 LIBS=$ac_check_lib_save_LIBS
20006 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20007 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20008 if test $ac_cv_lib_svld_dlopen = yes; then
20009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20010 else
20011 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20015 else
20016 ac_check_lib_save_LIBS=$LIBS
20017 LIBS="-ldld $LIBS"
20018 cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h. */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any gcc2 internal prototype to avoid an error. */
20026 #ifdef __cplusplus
20027 extern "C"
20028 #endif
20029 /* We use char because int might match the return type of a gcc2
20030 builtin and then its argument prototype would still apply. */
20031 char dld_link ();
20033 main ()
20035 dld_link ();
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20042 (eval $ac_link) 2>conftest.er1
20043 ac_status=$?
20044 grep -v '^ *+' conftest.er1 >conftest.err
20045 rm -f conftest.er1
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); } &&
20049 { ac_try='test -z "$ac_c_werror_flag"
20050 || test ! -s conftest.err'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20053 ac_status=$?
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; } &&
20056 { ac_try='test -s conftest$ac_exeext'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 ac_cv_lib_dld_dld_link=yes
20063 else
20064 echo "$as_me: failed program was:" >&5
20065 sed 's/^/| /' conftest.$ac_ext >&5
20067 ac_cv_lib_dld_dld_link=no
20069 rm -f conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20071 LIBS=$ac_check_lib_save_LIBS
20073 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20075 if test $ac_cv_lib_dld_dld_link = yes; then
20076 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
20095 esac
20097 if test "x$lt_cv_dlopen" != xno; then
20098 enable_dlopen=yes
20099 else
20100 enable_dlopen=no
20103 case $lt_cv_dlopen in
20104 dlopen)
20105 save_CPPFLAGS="$CPPFLAGS"
20106 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20108 save_LDFLAGS="$LDFLAGS"
20109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20111 save_LIBS="$LIBS"
20112 LIBS="$lt_cv_dlopen_libs $LIBS"
20114 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20115 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20116 if test "${lt_cv_dlopen_self+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 else
20119 if test "$cross_compiling" = yes; then :
20120 lt_cv_dlopen_self=cross
20121 else
20122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20123 lt_status=$lt_dlunknown
20124 cat > conftest.$ac_ext <<_LT_EOF
20125 #line 20125 "configure"
20126 #include "confdefs.h"
20128 #if HAVE_DLFCN_H
20129 #include <dlfcn.h>
20130 #endif
20132 #include <stdio.h>
20134 #ifdef RTLD_GLOBAL
20135 # define LT_DLGLOBAL RTLD_GLOBAL
20136 #else
20137 # ifdef DL_GLOBAL
20138 # define LT_DLGLOBAL DL_GLOBAL
20139 # else
20140 # define LT_DLGLOBAL 0
20141 # endif
20142 #endif
20144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20145 find out it does not work in some platform. */
20146 #ifndef LT_DLLAZY_OR_NOW
20147 # ifdef RTLD_LAZY
20148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20149 # else
20150 # ifdef DL_LAZY
20151 # define LT_DLLAZY_OR_NOW DL_LAZY
20152 # else
20153 # ifdef RTLD_NOW
20154 # define LT_DLLAZY_OR_NOW RTLD_NOW
20155 # else
20156 # ifdef DL_NOW
20157 # define LT_DLLAZY_OR_NOW DL_NOW
20158 # else
20159 # define LT_DLLAZY_OR_NOW 0
20160 # endif
20161 # endif
20162 # endif
20163 # endif
20164 #endif
20166 void fnord() { int i=42;}
20167 int main ()
20169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20170 int status = $lt_dlunknown;
20172 if (self)
20174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20175 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20176 /* dlclose (self); */
20178 else
20179 puts (dlerror ());
20181 return status;
20183 _LT_EOF
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20189 (./conftest; exit; ) >&5 2>/dev/null
20190 lt_status=$?
20191 case x$lt_status in
20192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20195 esac
20196 else :
20197 # compilation failed
20198 lt_cv_dlopen_self=no
20201 rm -fr conftest*
20205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20206 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20208 if test "x$lt_cv_dlopen_self" = xyes; then
20209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20211 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20212 if test "${lt_cv_dlopen_self_static+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215 if test "$cross_compiling" = yes; then :
20216 lt_cv_dlopen_self_static=cross
20217 else
20218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20219 lt_status=$lt_dlunknown
20220 cat > conftest.$ac_ext <<_LT_EOF
20221 #line 20221 "configure"
20222 #include "confdefs.h"
20224 #if HAVE_DLFCN_H
20225 #include <dlfcn.h>
20226 #endif
20228 #include <stdio.h>
20230 #ifdef RTLD_GLOBAL
20231 # define LT_DLGLOBAL RTLD_GLOBAL
20232 #else
20233 # ifdef DL_GLOBAL
20234 # define LT_DLGLOBAL DL_GLOBAL
20235 # else
20236 # define LT_DLGLOBAL 0
20237 # endif
20238 #endif
20240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20241 find out it does not work in some platform. */
20242 #ifndef LT_DLLAZY_OR_NOW
20243 # ifdef RTLD_LAZY
20244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20245 # else
20246 # ifdef DL_LAZY
20247 # define LT_DLLAZY_OR_NOW DL_LAZY
20248 # else
20249 # ifdef RTLD_NOW
20250 # define LT_DLLAZY_OR_NOW RTLD_NOW
20251 # else
20252 # ifdef DL_NOW
20253 # define LT_DLLAZY_OR_NOW DL_NOW
20254 # else
20255 # define LT_DLLAZY_OR_NOW 0
20256 # endif
20257 # endif
20258 # endif
20259 # endif
20260 #endif
20262 void fnord() { int i=42;}
20263 int main ()
20265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20266 int status = $lt_dlunknown;
20268 if (self)
20270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20271 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20272 /* dlclose (self); */
20274 else
20275 puts (dlerror ());
20277 return status;
20279 _LT_EOF
20280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20281 (eval $ac_link) 2>&5
20282 ac_status=$?
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20285 (./conftest; exit; ) >&5 2>/dev/null
20286 lt_status=$?
20287 case x$lt_status in
20288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20291 esac
20292 else :
20293 # compilation failed
20294 lt_cv_dlopen_self_static=no
20297 rm -fr conftest*
20301 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20302 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20305 CPPFLAGS="$save_CPPFLAGS"
20306 LDFLAGS="$save_LDFLAGS"
20307 LIBS="$save_LIBS"
20309 esac
20311 case $lt_cv_dlopen_self in
20312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20313 *) enable_dlopen_self=unknown ;;
20314 esac
20316 case $lt_cv_dlopen_self_static in
20317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20318 *) enable_dlopen_self_static=unknown ;;
20319 esac
20338 striplib=
20339 old_striplib=
20340 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20341 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20342 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20345 echo "$as_me:$LINENO: result: yes" >&5
20346 echo "${ECHO_T}yes" >&6
20347 else
20348 # FIXME - insert some real tests, host_os isn't really good enough
20349 case $host_os in
20350 darwin*)
20351 if test -n "$STRIP" ; then
20352 striplib="$STRIP -x"
20353 old_striplib="$STRIP -S"
20354 echo "$as_me:$LINENO: result: yes" >&5
20355 echo "${ECHO_T}yes" >&6
20356 else
20357 echo "$as_me:$LINENO: result: no" >&5
20358 echo "${ECHO_T}no" >&6
20362 echo "$as_me:$LINENO: result: no" >&5
20363 echo "${ECHO_T}no" >&6
20365 esac
20379 # Report which library types will actually be built
20380 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20381 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20382 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20383 echo "${ECHO_T}$can_build_shared" >&6
20385 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20386 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20387 test "$can_build_shared" = "no" && enable_shared=no
20389 # On AIX, shared libraries and static libraries use the same namespace, and
20390 # are all built from PIC.
20391 case $host_os in
20392 aix3*)
20393 test "$enable_shared" = yes && enable_static=no
20394 if test -n "$RANLIB"; then
20395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20396 postinstall_cmds='$RANLIB $lib'
20400 aix[4-9]*)
20401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20402 test "$enable_shared" = yes && enable_static=no
20405 esac
20406 echo "$as_me:$LINENO: result: $enable_shared" >&5
20407 echo "${ECHO_T}$enable_shared" >&6
20409 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20410 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20411 # Make sure either enable_shared or enable_static is yes.
20412 test "$enable_shared" = yes || enable_static=yes
20413 echo "$as_me:$LINENO: result: $enable_static" >&5
20414 echo "${ECHO_T}$enable_static" >&6
20420 ac_ext=c
20421 ac_cpp='$CPP $CPPFLAGS'
20422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20426 CC="$lt_save_CC"
20443 # Only expand once:
20449 # Identify the assembler which will work hand-in-glove with the newly
20450 # built GCC, so that we can examine its features. This is the assembler
20451 # which will be driven by the driver program.
20453 # If build != host, and we aren't building gas in-tree, we identify a
20454 # build->target assembler and hope that it will have the same features
20455 # as the host->target assembler we'll be using.
20456 gcc_cv_gas_major_version=
20457 gcc_cv_gas_minor_version=
20458 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20460 if test "${gcc_cv_as+set}" = set; then
20462 else
20464 if test -x "$DEFAULT_ASSEMBLER"; then
20465 gcc_cv_as="$DEFAULT_ASSEMBLER"
20466 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20467 && test -f ../gas/Makefile \
20468 && test x$build = x$host; then
20469 gcc_cv_as=../gas/as-new$build_exeext
20470 elif test -x as$build_exeext; then
20471 # Build using assembler in the current directory.
20472 gcc_cv_as=./as$build_exeext
20473 elif test -x $AS_FOR_TARGET; then
20474 gcc_cv_as="$AS_FOR_TARGET"
20475 else
20476 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20477 set dummy $AS_FOR_TARGET; ac_word=$2
20478 echo "$as_me:$LINENO: checking for $ac_word" >&5
20479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20480 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 case $gcc_cv_as in
20484 [\\/]* | ?:[\\/]*)
20485 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20489 for as_dir in $PATH
20491 IFS=$as_save_IFS
20492 test -z "$as_dir" && as_dir=.
20493 for ac_exec_ext in '' $ac_executable_extensions; do
20494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20495 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20497 break 2
20499 done
20500 done
20503 esac
20505 gcc_cv_as=$ac_cv_path_gcc_cv_as
20507 if test -n "$gcc_cv_as"; then
20508 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20509 echo "${ECHO_T}$gcc_cv_as" >&6
20510 else
20511 echo "$as_me:$LINENO: result: no" >&5
20512 echo "${ECHO_T}no" >&6
20519 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20521 case "$ORIGINAL_AS_FOR_TARGET" in
20522 ./as | ./as$build_exeext) ;;
20523 *) ac_config_files="$ac_config_files as:exec-tool.in"
20525 esac
20527 echo "$as_me:$LINENO: checking what assembler to use" >&5
20528 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20529 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20530 # Single tree build which includes gas. We want to prefer it
20531 # over whatever linker top-level may have detected, since
20532 # we'll use what we're building after installation anyway.
20533 echo "$as_me:$LINENO: result: newly built gas" >&5
20534 echo "${ECHO_T}newly built gas" >&6
20535 in_tree_gas=yes
20536 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20537 for f in $gcc_cv_as_bfd_srcdir/configure \
20538 $gcc_cv_as_gas_srcdir/configure \
20539 $gcc_cv_as_gas_srcdir/configure.in \
20540 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20541 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20542 if test x$gcc_cv_gas_version != x; then
20543 break
20545 done
20546 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20547 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20548 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20549 case $gcc_cv_gas_patch_version in
20550 "") gcc_cv_gas_patch_version="0" ;;
20551 esac
20552 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20553 + $gcc_cv_gas_minor_version \) \* 1000 \
20554 + $gcc_cv_gas_patch_version`
20556 in_tree_gas_is_elf=no
20557 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20558 || (grep 'obj_format = multi' ../gas/Makefile \
20559 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20560 then
20561 in_tree_gas_is_elf=yes
20563 else
20564 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20565 echo "${ECHO_T}$gcc_cv_as" >&6
20566 in_tree_gas=no
20569 # Identify the linker which will work hand-in-glove with the newly
20570 # built GCC, so that we can examine its features. This is the linker
20571 # which will be driven by the driver program.
20573 # If build != host, and we aren't building gas in-tree, we identify a
20574 # build->target linker and hope that it will have the same features
20575 # as the host->target linker we'll be using.
20576 gcc_cv_gld_major_version=
20577 gcc_cv_gld_minor_version=
20578 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20579 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20581 if test "${gcc_cv_ld+set}" = set; then
20583 else
20585 if test -x "$DEFAULT_LINKER"; then
20586 gcc_cv_ld="$DEFAULT_LINKER"
20587 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20588 && test -f ../ld/Makefile \
20589 && test x$build = x$host; then
20590 gcc_cv_ld=../ld/ld-new$build_exeext
20591 elif test -x collect-ld$build_exeext; then
20592 # Build using linker in the current directory.
20593 gcc_cv_ld=./collect-ld$build_exeext
20594 elif test -x $LD_FOR_TARGET; then
20595 gcc_cv_ld="$LD_FOR_TARGET"
20596 else
20597 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20598 set dummy $LD_FOR_TARGET; ac_word=$2
20599 echo "$as_me:$LINENO: checking for $ac_word" >&5
20600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20601 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20602 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 else
20604 case $gcc_cv_ld in
20605 [\\/]* | ?:[\\/]*)
20606 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20610 for as_dir in $PATH
20612 IFS=$as_save_IFS
20613 test -z "$as_dir" && as_dir=.
20614 for ac_exec_ext in '' $ac_executable_extensions; do
20615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20616 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20618 break 2
20620 done
20621 done
20624 esac
20626 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20628 if test -n "$gcc_cv_ld"; then
20629 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20630 echo "${ECHO_T}$gcc_cv_ld" >&6
20631 else
20632 echo "$as_me:$LINENO: result: no" >&5
20633 echo "${ECHO_T}no" >&6
20640 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20642 case "$ORIGINAL_LD_FOR_TARGET" in
20643 ./collect-ld | ./collect-ld$build_exeext) ;;
20644 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20646 esac
20648 echo "$as_me:$LINENO: checking what linker to use" >&5
20649 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20650 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20651 # Single tree build which includes ld. We want to prefer it
20652 # over whatever linker top-level may have detected, since
20653 # we'll use what we're building after installation anyway.
20654 echo "$as_me:$LINENO: result: newly built ld" >&5
20655 echo "${ECHO_T}newly built ld" >&6
20656 in_tree_ld=yes
20657 in_tree_ld_is_elf=no
20658 if (grep 'EMUL = .*elf' ../ld/Makefile \
20659 || grep 'EMUL = .*linux' ../ld/Makefile \
20660 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20661 in_tree_ld_is_elf=yes
20663 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
20665 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20666 if test x$gcc_cv_gld_version != x; then
20667 break
20669 done
20670 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20671 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20672 else
20673 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20674 echo "${ECHO_T}$gcc_cv_ld" >&6
20675 in_tree_ld=no
20678 # Figure out what nm we will be using.
20679 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20680 if test "${gcc_cv_nm+set}" = set; then
20682 else
20684 if test -f $gcc_cv_binutils_srcdir/configure.in \
20685 && test -f ../binutils/Makefile \
20686 && test x$build = x$host; then
20687 gcc_cv_nm=../binutils/nm-new$build_exeext
20688 elif test -x nm$build_exeext; then
20689 gcc_cv_nm=./nm$build_exeext
20690 elif test -x $NM_FOR_TARGET; then
20691 gcc_cv_nm="$NM_FOR_TARGET"
20692 else
20693 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20694 set dummy $NM_FOR_TARGET; ac_word=$2
20695 echo "$as_me:$LINENO: checking for $ac_word" >&5
20696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20697 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700 case $gcc_cv_nm in
20701 [\\/]* | ?:[\\/]*)
20702 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20708 IFS=$as_save_IFS
20709 test -z "$as_dir" && as_dir=.
20710 for ac_exec_ext in '' $ac_executable_extensions; do
20711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20712 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714 break 2
20716 done
20717 done
20720 esac
20722 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20724 if test -n "$gcc_cv_nm"; then
20725 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20726 echo "${ECHO_T}$gcc_cv_nm" >&6
20727 else
20728 echo "$as_me:$LINENO: result: no" >&5
20729 echo "${ECHO_T}no" >&6
20736 echo "$as_me:$LINENO: checking what nm to use" >&5
20737 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20738 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20739 # Single tree build which includes binutils.
20740 echo "$as_me:$LINENO: result: newly built nm" >&5
20741 echo "${ECHO_T}newly built nm" >&6
20742 in_tree_nm=yes
20743 else
20744 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20745 echo "${ECHO_T}$gcc_cv_nm" >&6
20746 in_tree_nm=no
20749 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20751 case "$ORIGINAL_NM_FOR_TARGET" in
20752 ./nm | ./nm$build_exeext) ;;
20753 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20755 esac
20758 # Figure out what objdump we will be using.
20759 if test "${gcc_cv_objdump+set}" = set; then
20761 else
20763 if test -f $gcc_cv_binutils_srcdir/configure.in \
20764 && test -f ../binutils/Makefile \
20765 && test x$build = x$host; then
20766 # Single tree build which includes binutils.
20767 gcc_cv_objdump=../binutils/objdump$build_exeext
20768 elif test -x objdump$build_exeext; then
20769 gcc_cv_objdump=./objdump$build_exeext
20770 elif test -x $OBJDUMP_FOR_TARGET; then
20771 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20772 else
20773 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20774 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20775 echo "$as_me:$LINENO: checking for $ac_word" >&5
20776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20777 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780 case $gcc_cv_objdump in
20781 [\\/]* | ?:[\\/]*)
20782 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20786 for as_dir in $PATH
20788 IFS=$as_save_IFS
20789 test -z "$as_dir" && as_dir=.
20790 for ac_exec_ext in '' $ac_executable_extensions; do
20791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20792 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20794 break 2
20796 done
20797 done
20800 esac
20802 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20804 if test -n "$gcc_cv_objdump"; then
20805 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20806 echo "${ECHO_T}$gcc_cv_objdump" >&6
20807 else
20808 echo "$as_me:$LINENO: result: no" >&5
20809 echo "${ECHO_T}no" >&6
20816 echo "$as_me:$LINENO: checking what objdump to use" >&5
20817 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20818 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20819 # Single tree build which includes binutils.
20820 echo "$as_me:$LINENO: result: newly built objdump" >&5
20821 echo "${ECHO_T}newly built objdump" >&6
20822 elif test x$gcc_cv_objdump = x; then
20823 echo "$as_me:$LINENO: result: not found" >&5
20824 echo "${ECHO_T}not found" >&6
20825 else
20826 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20827 echo "${ECHO_T}$gcc_cv_objdump" >&6
20830 # Figure out what readelf we will be using.
20831 if test "${gcc_cv_readelf+set}" = set; then
20833 else
20835 if test -f $gcc_cv_binutils_srcdir/configure.in \
20836 && test -f ../binutils/Makefile \
20837 && test x$build = x$host; then
20838 # Single tree build which includes binutils.
20839 gcc_cv_readelf=../binutils/readelf$build_exeext
20840 elif test -x readelf$build_exeext; then
20841 gcc_cv_readelf=./readelf$build_exeext
20842 else
20843 # Extract the first word of "readelf", so it can be a program name with args.
20844 set dummy readelf; ac_word=$2
20845 echo "$as_me:$LINENO: checking for $ac_word" >&5
20846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20847 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
20848 echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850 case $gcc_cv_readelf in
20851 [\\/]* | ?:[\\/]*)
20852 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20856 for as_dir in $PATH
20858 IFS=$as_save_IFS
20859 test -z "$as_dir" && as_dir=.
20860 for ac_exec_ext in '' $ac_executable_extensions; do
20861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20862 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20864 break 2
20866 done
20867 done
20870 esac
20872 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20874 if test -n "$gcc_cv_readelf"; then
20875 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20876 echo "${ECHO_T}$gcc_cv_readelf" >&6
20877 else
20878 echo "$as_me:$LINENO: result: no" >&5
20879 echo "${ECHO_T}no" >&6
20886 echo "$as_me:$LINENO: checking what readelf to use" >&5
20887 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
20888 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20889 # Single tree build which includes binutils.
20890 echo "$as_me:$LINENO: result: newly built readelf" >&5
20891 echo "${ECHO_T}newly built readelf" >&6
20892 elif test x$gcc_cv_readelf = x; then
20893 echo "$as_me:$LINENO: result: not found" >&5
20894 echo "${ECHO_T}not found" >&6
20895 else
20896 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
20897 echo "${ECHO_T}$gcc_cv_readelf" >&6
20900 # Figure out what assembler alignment features are present.
20901 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20902 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20903 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 else
20906 gcc_cv_as_balign_and_p2align=no
20907 if test $in_tree_gas = yes; then
20908 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20909 then gcc_cv_as_balign_and_p2align=yes
20911 elif test x$gcc_cv_as != x; then
20912 echo '.balign 4
20913 .p2align 2' > conftest.s
20914 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; }
20920 then
20921 gcc_cv_as_balign_and_p2align=yes
20922 else
20923 echo "configure: failed program was" >&5
20924 cat conftest.s >&5
20926 rm -f conftest.o conftest.s
20929 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20930 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20931 if test $gcc_cv_as_balign_and_p2align = yes; then
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20935 _ACEOF
20939 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20940 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20941 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944 gcc_cv_as_max_skip_p2align=no
20945 if test $in_tree_gas = yes; then
20946 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20947 then gcc_cv_as_max_skip_p2align=yes
20949 elif test x$gcc_cv_as != x; then
20950 echo '.p2align 4,,7' > conftest.s
20951 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20954 ac_status=$?
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }
20957 then
20958 gcc_cv_as_max_skip_p2align=yes
20959 else
20960 echo "configure: failed program was" >&5
20961 cat conftest.s >&5
20963 rm -f conftest.o conftest.s
20966 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20967 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20968 if test $gcc_cv_as_max_skip_p2align = yes; then
20970 cat >>confdefs.h <<\_ACEOF
20971 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20972 _ACEOF
20976 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20977 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20978 if test "${gcc_cv_as_literal16+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981 gcc_cv_as_literal16=no
20982 if test $in_tree_gas = yes; then
20983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20984 then gcc_cv_as_literal16=yes
20986 elif test x$gcc_cv_as != x; then
20987 echo '.literal16' > conftest.s
20988 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }
20994 then
20995 gcc_cv_as_literal16=yes
20996 else
20997 echo "configure: failed program was" >&5
20998 cat conftest.s >&5
21000 rm -f conftest.o conftest.s
21003 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
21004 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
21005 if test $gcc_cv_as_literal16 = yes; then
21007 cat >>confdefs.h <<\_ACEOF
21008 #define HAVE_GAS_LITERAL16 1
21009 _ACEOF
21013 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
21014 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
21015 if test "${gcc_cv_as_subsection_m1+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018 gcc_cv_as_subsection_m1=no
21019 if test $in_tree_gas = yes; then
21020 if test $in_tree_gas_is_elf = yes \
21021 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21022 then gcc_cv_as_subsection_m1=yes
21024 elif test x$gcc_cv_as != x; then
21025 echo 'conftest_label1: .word 0
21026 .subsection -1
21027 conftest_label2: .word 0
21028 .previous' > conftest.s
21029 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }
21035 then
21036 if test x$gcc_cv_nm != x; then
21037 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21038 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21039 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21040 then :
21041 else gcc_cv_as_subsection_m1=yes
21043 rm -f conftest.nm1 conftest.nm2
21045 else
21046 echo "configure: failed program was" >&5
21047 cat conftest.s >&5
21049 rm -f conftest.o conftest.s
21052 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
21053 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
21054 if test $gcc_cv_as_subsection_m1 = yes; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_GAS_SUBSECTION_ORDERING 1
21058 _ACEOF
21062 echo "$as_me:$LINENO: checking assembler for .weak" >&5
21063 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
21064 if test "${gcc_cv_as_weak+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 gcc_cv_as_weak=no
21068 if test $in_tree_gas = yes; then
21069 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21070 then gcc_cv_as_weak=yes
21072 elif test x$gcc_cv_as != x; then
21073 echo ' .weak foobar' > conftest.s
21074 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21076 (eval $ac_try) 2>&5
21077 ac_status=$?
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); }; }
21080 then
21081 gcc_cv_as_weak=yes
21082 else
21083 echo "configure: failed program was" >&5
21084 cat conftest.s >&5
21086 rm -f conftest.o conftest.s
21089 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
21090 echo "${ECHO_T}$gcc_cv_as_weak" >&6
21091 if test $gcc_cv_as_weak = yes; then
21093 cat >>confdefs.h <<\_ACEOF
21094 #define HAVE_GAS_WEAK 1
21095 _ACEOF
21099 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
21100 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
21101 if test "${gcc_cv_as_weakref+set}" = set; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104 gcc_cv_as_weakref=no
21105 if test $in_tree_gas = yes; then
21106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21107 then gcc_cv_as_weakref=yes
21109 elif test x$gcc_cv_as != x; then
21110 echo ' .weakref foobar, barfnot' > conftest.s
21111 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21114 ac_status=$?
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }
21117 then
21118 gcc_cv_as_weakref=yes
21119 else
21120 echo "configure: failed program was" >&5
21121 cat conftest.s >&5
21123 rm -f conftest.o conftest.s
21126 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
21127 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
21128 if test $gcc_cv_as_weakref = yes; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define HAVE_GAS_WEAKREF 1
21132 _ACEOF
21136 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
21137 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
21138 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141 gcc_cv_as_nsubspa_comdat=no
21142 if test $in_tree_gas = yes; then
21143 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21144 then gcc_cv_as_nsubspa_comdat=yes
21146 elif test x$gcc_cv_as != x; then
21147 echo ' .SPACE $TEXT$
21148 .NSUBSPA $CODE$,COMDAT' > conftest.s
21149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }
21155 then
21156 gcc_cv_as_nsubspa_comdat=yes
21157 else
21158 echo "configure: failed program was" >&5
21159 cat conftest.s >&5
21161 rm -f conftest.o conftest.s
21164 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
21165 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
21166 if test $gcc_cv_as_nsubspa_comdat = yes; then
21168 cat >>confdefs.h <<\_ACEOF
21169 #define HAVE_GAS_NSUBSPA_COMDAT 1
21170 _ACEOF
21174 # .hidden needs to be supported in both the assembler and the linker,
21175 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21176 # This is irritatingly difficult to feature test for; we have to check the
21177 # date string after the version number. If we've got an in-tree
21178 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21179 # to be safe.
21180 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21181 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
21182 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
21183 if test "${gcc_cv_as_hidden+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186 gcc_cv_as_hidden=no
21187 if test $in_tree_gas = yes; then
21188 if test $in_tree_gas_is_elf = yes \
21189 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21190 then gcc_cv_as_hidden=yes
21192 elif test x$gcc_cv_as != x; then
21193 echo ' .hidden foobar
21194 foobar:' > conftest.s
21195 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; }
21201 then
21202 gcc_cv_as_hidden=yes
21203 else
21204 echo "configure: failed program was" >&5
21205 cat conftest.s >&5
21207 rm -f conftest.o conftest.s
21210 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
21211 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
21214 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
21215 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
21216 if test "${gcc_cv_ld_hidden+set}" = set; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 else
21219 if test $in_tree_ld = yes ; then
21220 gcc_cv_ld_hidden=no
21221 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 \
21222 && test $in_tree_ld_is_elf = yes; then
21223 gcc_cv_ld_hidden=yes
21225 else
21226 gcc_cv_ld_hidden=yes
21227 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21228 if echo "$ld_ver" | grep GNU > /dev/null; then
21229 ld_vers=`echo $ld_ver | sed -n \
21230 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21231 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'`
21232 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21233 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21234 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21235 if test 0"$ld_date" -lt 20020404; then
21236 if test -n "$ld_date"; then
21237 # If there was date string, but was earlier than 2002-04-04, fail
21238 gcc_cv_ld_hidden=no
21239 elif test -z "$ld_vers"; then
21240 # If there was no date string nor ld version number, something is wrong
21241 gcc_cv_ld_hidden=no
21242 else
21243 test -z "$ld_vers_patch" && ld_vers_patch=0
21244 if test "$ld_vers_major" -lt 2; then
21245 gcc_cv_ld_hidden=no
21246 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21247 gcc_cv_ld_hidden="no"
21248 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21249 gcc_cv_ld_hidden=no
21253 else
21254 case "${target}" in
21255 hppa64*-*-hpux* | ia64*-*-hpux*)
21256 gcc_cv_ld_hidden=yes
21258 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21259 gcc_cv_ld_hidden=yes
21262 gcc_cv_ld_hidden=no
21264 esac
21268 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
21269 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
21270 libgcc_visibility=no
21273 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21274 libgcc_visibility=yes
21276 cat >>confdefs.h <<\_ACEOF
21277 #define HAVE_GAS_HIDDEN 1
21278 _ACEOF
21282 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
21283 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
21284 gcc_cv_ld_ro_rw_mix=unknown
21285 if test $in_tree_ld = yes ; then
21286 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 \
21287 && test $in_tree_ld_is_elf = yes; then
21288 gcc_cv_ld_ro_rw_mix=read-write
21290 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21291 echo '.section myfoosect, "a"' > conftest1.s
21292 echo '.section myfoosect, "aw"' > conftest2.s
21293 echo '.byte 1' >> conftest2.s
21294 echo '.section myfoosect, "a"' > conftest3.s
21295 echo '.byte 0' >> conftest3.s
21296 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21297 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21298 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21299 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21300 conftest2.o conftest3.o > /dev/null 2>&1; then
21301 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21302 | sed -e '/myfoosect/!d' -e N`
21303 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21304 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21305 gcc_cv_ld_ro_rw_mix=read-only
21306 else
21307 gcc_cv_ld_ro_rw_mix=read-write
21311 rm -f conftest.* conftest[123].*
21313 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21315 cat >>confdefs.h <<\_ACEOF
21316 #define HAVE_LD_RO_RW_SECTION_MIXING 1
21317 _ACEOF
21320 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
21321 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
21323 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21324 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
21325 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
21326 if test "${gcc_cv_as_leb128+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21328 else
21329 gcc_cv_as_leb128=no
21330 if test $in_tree_gas = yes; then
21331 if test $in_tree_gas_is_elf = yes \
21332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21333 then gcc_cv_as_leb128=yes
21335 elif test x$gcc_cv_as != x; then
21336 echo ' .data
21337 .uleb128 L2 - L1
21339 .uleb128 1280
21340 .sleb128 -1010
21341 L2:' > conftest.s
21342 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }
21348 then
21349 # GAS versions before 2.11 do not support uleb128,
21350 # despite appearing to.
21351 # ??? There exists an elf-specific test that will crash
21352 # the assembler. Perhaps it's better to figure out whether
21353 # arbitrary sections are supported and try the test.
21354 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21355 if echo "$as_ver" | grep GNU > /dev/null; then
21356 as_vers=`echo $as_ver | sed -n \
21357 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21358 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21359 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21360 if test $as_major -eq 2 && test $as_minor -lt 11
21361 then :
21362 else gcc_cv_as_leb128=yes
21365 else
21366 echo "configure: failed program was" >&5
21367 cat conftest.s >&5
21369 rm -f conftest.o conftest.s
21372 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
21373 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
21374 if test $gcc_cv_as_leb128 = yes; then
21376 cat >>confdefs.h <<\_ACEOF
21377 #define HAVE_AS_LEB128 1
21378 _ACEOF
21382 # Check if we have assembler support for unwind directives.
21383 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
21384 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
21385 if test "${gcc_cv_as_cfi_directive+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388 gcc_cv_as_cfi_directive=no
21389 if test x$gcc_cv_as != x; then
21390 echo ' .text
21391 .cfi_startproc
21392 .cfi_offset 0, 0
21393 .cfi_same_value 1
21394 .cfi_def_cfa 1, 2
21395 .cfi_escape 1, 2, 3, 4, 5
21396 .cfi_endproc' > conftest.s
21397 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21399 (eval $ac_try) 2>&5
21400 ac_status=$?
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); }; }
21403 then
21404 case "$target" in
21405 *-*-solaris*)
21406 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21407 # read-only and read-write sections, we need to make sure that the
21408 # assembler used emits read-write .eh_frame sections.
21409 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21410 if test "x$gcc_cv_objdump" != x; then
21411 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21412 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21413 gcc_cv_as_cfi_directive=no
21414 else
21415 gcc_cv_as_cfi_directive=yes
21417 else
21418 # no objdump, err on the side of caution
21419 gcc_cv_as_cfi_directive=no
21421 else
21422 gcc_cv_as_cfi_directive=yes
21425 *-*-*)
21426 gcc_cv_as_cfi_directive=yes
21428 esac
21429 else
21430 echo "configure: failed program was" >&5
21431 cat conftest.s >&5
21433 rm -f conftest.o conftest.s
21436 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
21437 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
21439 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21440 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
21441 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
21442 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444 else
21445 gcc_cv_as_cfi_advance_working=no
21446 if test x$gcc_cv_as != x; then
21447 echo ' .text
21448 .cfi_startproc
21449 .cfi_adjust_cfa_offset 64
21450 .skip 512, 0
21451 .cfi_adjust_cfa_offset 128
21452 .cfi_endproc' > conftest.s
21453 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }
21459 then
21461 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21462 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21463 gcc_cv_as_cfi_advance_working=yes
21466 else
21467 echo "configure: failed program was" >&5
21468 cat conftest.s >&5
21470 rm -f conftest.o conftest.s
21473 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
21474 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
21476 else
21477 # no readelf, err on the side of caution
21478 gcc_cv_as_cfi_advance_working=no
21481 cat >>confdefs.h <<_ACEOF
21482 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21483 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21484 _ACEOF
21487 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
21488 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
21489 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492 gcc_cv_as_cfi_personality_directive=no
21493 if test x$gcc_cv_as != x; then
21494 echo ' .text
21495 .cfi_startproc
21496 .cfi_personality 0, symbol
21497 .cfi_endproc' > conftest.s
21498 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }
21504 then
21505 gcc_cv_as_cfi_personality_directive=yes
21506 else
21507 echo "configure: failed program was" >&5
21508 cat conftest.s >&5
21510 rm -f conftest.o conftest.s
21513 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
21514 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21519 then echo 1; else echo 0; fi`
21520 _ACEOF
21523 # GAS versions up to and including 2.11.0 may mis-optimize
21524 # .eh_frame data.
21525 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
21526 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
21527 if test "${gcc_cv_as_eh_frame+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530 gcc_cv_as_eh_frame=no
21531 if test $in_tree_gas = yes; then
21532 if test $in_tree_gas_is_elf = yes \
21533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21534 then gcc_cv_as_eh_frame=yes
21536 elif test x$gcc_cv_as != x; then
21537 echo ' .text
21538 .LFB1:
21539 .4byte 0
21540 .L1:
21541 .4byte 0
21542 .LFE1:
21543 .section .eh_frame,"aw",@progbits
21544 __FRAME_BEGIN__:
21545 .4byte .LECIE1-.LSCIE1
21546 .LSCIE1:
21547 .4byte 0x0
21548 .byte 0x1
21549 .ascii "z\0"
21550 .byte 0x1
21551 .byte 0x78
21552 .byte 0x1a
21553 .byte 0x0
21554 .byte 0x4
21555 .4byte 1
21556 .p2align 1
21557 .LECIE1:
21558 .LSFDE1:
21559 .4byte .LEFDE1-.LASFDE1
21560 .LASFDE1:
21561 .4byte .LASFDE1-__FRAME_BEGIN__
21562 .4byte .LFB1
21563 .4byte .LFE1-.LFB1
21564 .byte 0x4
21565 .4byte .LFE1-.LFB1
21566 .byte 0x4
21567 .4byte .L1-.LFB1
21568 .LEFDE1:' > conftest.s
21569 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }
21575 then
21576 cat > conftest.lit <<EOF
21577 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21578 0010 01000000 12000000 18000000 00000000 ................
21579 0020 08000000 04080000 0044 .........D
21581 cat > conftest.big <<EOF
21582 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21583 0010 00000001 00000012 00000018 00000000 ................
21584 0020 00000008 04000000 0844 .........D
21586 # If the assembler didn't choke, and we can objdump,
21587 # and we got the correct data, then succeed.
21588 # The text in the here-document typically retains its unix-style line
21589 # endings, while the output of objdump will use host line endings.
21590 # Therefore, use diff -b for the comparisons.
21591 if test x$gcc_cv_objdump != x \
21592 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21593 | tail -3 > conftest.got \
21594 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21595 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21596 then
21597 gcc_cv_as_eh_frame=yes
21598 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 gcc_cv_as_eh_frame=buggy
21605 else
21606 # Uh oh, what do we do now?
21607 gcc_cv_as_eh_frame=no
21609 else
21610 echo "configure: failed program was" >&5
21611 cat conftest.s >&5
21613 rm -f conftest.o conftest.s
21616 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
21617 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
21620 if test $gcc_cv_as_eh_frame = buggy; then
21622 cat >>confdefs.h <<\_ACEOF
21623 #define USE_AS_TRADITIONAL_FORMAT 1
21624 _ACEOF
21628 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21629 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21630 if test "${gcc_cv_as_shf_merge+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633 gcc_cv_as_shf_merge=no
21634 if test $in_tree_gas = yes; then
21635 if test $in_tree_gas_is_elf = yes \
21636 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21637 then gcc_cv_as_shf_merge=yes
21639 elif test x$gcc_cv_as != x; then
21640 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21641 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643 (eval $ac_try) 2>&5
21644 ac_status=$?
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); }; }
21647 then
21648 gcc_cv_as_shf_merge=yes
21649 else
21650 echo "configure: failed program was" >&5
21651 cat conftest.s >&5
21653 rm -f conftest.o conftest.s
21656 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21657 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21659 if test $gcc_cv_as_shf_merge = no; then
21660 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
21661 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
21662 if test "${gcc_cv_as_shf_merge+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 else
21665 gcc_cv_as_shf_merge=no
21666 if test $in_tree_gas = yes; then
21667 if test $in_tree_gas_is_elf = yes \
21668 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21669 then gcc_cv_as_shf_merge=yes
21671 elif test x$gcc_cv_as != x; then
21672 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21673 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }
21679 then
21680 gcc_cv_as_shf_merge=yes
21681 else
21682 echo "configure: failed program was" >&5
21683 cat conftest.s >&5
21685 rm -f conftest.o conftest.s
21688 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21689 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21693 cat >>confdefs.h <<_ACEOF
21694 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21695 _ACEOF
21698 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21699 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21700 if test "${gcc_cv_as_comdat_group+set}" = set; then
21701 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 else
21703 gcc_cv_as_comdat_group=no
21704 if test $in_tree_gas = yes; then
21705 if test $in_tree_gas_is_elf = yes \
21706 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21707 then gcc_cv_as_comdat_group=yes
21709 elif test x$gcc_cv_as != x; then
21710 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21711 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21714 ac_status=$?
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; }
21717 then
21718 gcc_cv_as_comdat_group=yes
21719 else
21720 echo "configure: failed program was" >&5
21721 cat conftest.s >&5
21723 rm -f conftest.o conftest.s
21726 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21727 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21729 if test $gcc_cv_as_comdat_group = yes; then
21730 gcc_cv_as_comdat_group_percent=no
21731 else
21732 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21733 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21734 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737 gcc_cv_as_comdat_group_percent=no
21738 if test $in_tree_gas = yes; then
21739 if test $in_tree_gas_is_elf = yes \
21740 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21741 then gcc_cv_as_comdat_group_percent=yes
21743 elif test x$gcc_cv_as != x; then
21744 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21745 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }
21751 then
21752 gcc_cv_as_comdat_group_percent=yes
21753 else
21754 echo "configure: failed program was" >&5
21755 cat conftest.s >&5
21757 rm -f conftest.o conftest.s
21760 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21761 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21764 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21765 comdat_group=yes
21766 if test 0"$ld_date" -lt 20050308; then
21767 if test -n "$ld_date"; then
21768 # If there was date string, but was earlier than 2005-03-08, fail
21769 comdat_group=no
21770 elif test "$ld_vers_major" -lt 2; then
21771 comdat_group=no
21772 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21773 comdat_group=no
21776 else
21777 # assume linkers other than GNU ld don't support COMDAT group
21778 comdat_group=no
21780 if test $comdat_group = no; then
21781 gcc_cv_as_comdat_group=no
21782 gcc_cv_as_comdat_group_percent=no
21785 cat >>confdefs.h <<_ACEOF
21786 #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`
21787 _ACEOF
21790 # Thread-local storage - the check is heavily parameterized.
21791 conftest_s=
21792 tls_first_major=
21793 tls_first_minor=
21794 tls_as_opt=
21795 case "$target" in
21796 alpha*-*-*)
21797 conftest_s='
21798 .section ".tdata","awT",@progbits
21799 foo: .long 25
21800 .text
21801 ldq $27,__tls_get_addr($29) !literal!1
21802 lda $16,foo($29) !tlsgd!1
21803 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21804 ldq $27,__tls_get_addr($29) !literal!2
21805 lda $16,foo($29) !tlsldm!2
21806 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21807 ldq $1,foo($29) !gotdtprel
21808 ldah $2,foo($29) !dtprelhi
21809 lda $3,foo($2) !dtprello
21810 lda $4,foo($29) !dtprel
21811 ldq $1,foo($29) !gottprel
21812 ldah $2,foo($29) !tprelhi
21813 lda $3,foo($2) !tprello
21814 lda $4,foo($29) !tprel'
21815 tls_first_major=2
21816 tls_first_minor=13
21817 tls_as_opt=--fatal-warnings
21819 cris-*-*|crisv32-*-*)
21820 conftest_s='
21821 .section ".tdata","awT",@progbits
21822 x: .long 25
21823 .text
21824 move.d x:IE,$r10
21825 nop'
21826 tls_first_major=2
21827 tls_first_minor=20
21828 tls_as_opt=--fatal-warnings
21830 frv*-*-*)
21831 conftest_s='
21832 .section ".tdata","awT",@progbits
21833 x: .long 25
21834 .text
21835 call #gettlsoff(x)'
21836 tls_first_major=2
21837 tls_first_minor=14
21839 hppa*-*-linux*)
21840 conftest_s='
21841 t1: .reg %r20
21842 t2: .reg %r21
21843 gp: .reg %r19
21844 .section ".tdata","awT",@progbits
21845 foo: .long 25
21846 .text
21847 .align 4
21848 addil LT%foo-$tls_gdidx$,gp
21849 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21850 b __tls_get_addr
21852 addil LT%foo-$tls_ldidx$,gp
21853 b __tls_get_addr
21854 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21855 addil LR%foo-$tls_dtpoff$,%ret0
21856 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21857 mfctl %cr27,%t1
21858 addil LT%foo-$tls_ieoff$,gp
21859 ldw RT%foo-$tls_ieoff$(%r1),%t2
21860 add %t1,%t2,%t3
21861 mfctl %cr27,%t1
21862 addil LR%foo-$tls_leoff$,%t1
21863 ldo RR%foo-$tls_leoff$(%r1),%t2'
21864 tls_first_major=2
21865 tls_first_minor=15
21866 tls_as_opt=--fatal-warnings
21868 arm*-*-*)
21869 conftest_s='
21870 .section ".tdata","awT",%progbits
21871 foo: .long 25
21872 .text
21873 .word foo(gottpoff)
21874 .word foo(tpoff)
21875 .word foo(tlsgd)
21876 .word foo(tlsldm)
21877 .word foo(tlsldo)'
21878 tls_first_major=2
21879 tls_first_minor=17
21881 i[34567]86-*-*)
21882 conftest_s='
21883 .section ".tdata","awT",@progbits
21884 foo: .long 25
21885 .text
21886 movl %gs:0, %eax
21887 leal foo@TLSGD(,%ebx,1), %eax
21888 leal foo@TLSLDM(%ebx), %eax
21889 leal foo@DTPOFF(%eax), %edx
21890 movl foo@GOTTPOFF(%ebx), %eax
21891 subl foo@GOTTPOFF(%ebx), %eax
21892 addl foo@GOTNTPOFF(%ebx), %eax
21893 movl foo@INDNTPOFF, %eax
21894 movl $foo@TPOFF, %eax
21895 subl $foo@TPOFF, %eax
21896 leal foo@NTPOFF(%ecx), %eax'
21897 tls_first_major=2
21898 tls_first_minor=14
21899 tls_as_opt=--fatal-warnings
21901 x86_64-*-*)
21902 conftest_s='
21903 .section ".tdata","awT",@progbits
21904 foo: .long 25
21905 .text
21906 movq %fs:0, %rax
21907 leaq foo@TLSGD(%rip), %rdi
21908 leaq foo@TLSLD(%rip), %rdi
21909 leaq foo@DTPOFF(%rax), %rdx
21910 movq foo@GOTTPOFF(%rip), %rax
21911 movq $foo@TPOFF, %rax'
21912 tls_first_major=2
21913 tls_first_minor=14
21914 tls_as_opt=--fatal-warnings
21916 ia64-*-*)
21917 conftest_s='
21918 .section ".tdata","awT",@progbits
21919 foo: data8 25
21920 .text
21921 addl r16 = @ltoff(@dtpmod(foo#)), gp
21922 addl r17 = @ltoff(@dtprel(foo#)), gp
21923 addl r18 = @ltoff(@tprel(foo#)), gp
21924 addl r19 = @dtprel(foo#), gp
21925 adds r21 = @dtprel(foo#), r13
21926 movl r23 = @dtprel(foo#)
21927 addl r20 = @tprel(foo#), gp
21928 adds r22 = @tprel(foo#), r13
21929 movl r24 = @tprel(foo#)'
21930 tls_first_major=2
21931 tls_first_minor=13
21932 tls_as_opt=--fatal-warnings
21934 mips*-*-*)
21935 conftest_s='
21936 .section .tdata,"awT",@progbits
21938 .word 2
21939 .text
21940 addiu $4, $28, %tlsgd(x)
21941 addiu $4, $28, %tlsldm(x)
21942 lui $4, %dtprel_hi(x)
21943 addiu $4, $4, %dtprel_lo(x)
21944 lw $4, %gottprel(x)($28)
21945 lui $4, %tprel_hi(x)
21946 addiu $4, $4, %tprel_lo(x)'
21947 tls_first_major=2
21948 tls_first_minor=16
21949 tls_as_opt='-32 --fatal-warnings'
21951 powerpc-*-*)
21952 conftest_s='
21953 .section ".tdata","awT",@progbits
21954 .align 2
21955 ld0: .space 4
21956 ld1: .space 4
21957 x1: .space 4
21958 x2: .space 4
21959 x3: .space 4
21960 .text
21961 addi 3,31,ld0@got@tlsgd
21962 bl __tls_get_addr
21963 addi 3,31,x1@got@tlsld
21964 bl __tls_get_addr
21965 addi 9,3,x1@dtprel
21966 addis 9,3,x2@dtprel@ha
21967 addi 9,9,x2@dtprel@l
21968 lwz 9,x3@got@tprel(31)
21969 add 9,9,x@tls
21970 addi 9,2,x1@tprel
21971 addis 9,2,x2@tprel@ha
21972 addi 9,9,x2@tprel@l'
21973 tls_first_major=2
21974 tls_first_minor=14
21975 tls_as_opt="-a32 --fatal-warnings"
21977 powerpc64-*-*)
21978 conftest_s='
21979 .section ".tdata","awT",@progbits
21980 .align 3
21981 ld0: .space 8
21982 ld1: .space 8
21983 x1: .space 8
21984 x2: .space 8
21985 x3: .space 8
21986 .text
21987 addi 3,2,ld0@got@tlsgd
21988 bl .__tls_get_addr
21990 addi 3,2,ld1@toc
21991 bl .__tls_get_addr
21993 addi 3,2,x1@got@tlsld
21994 bl .__tls_get_addr
21996 addi 9,3,x1@dtprel
21997 bl .__tls_get_addr
21999 addis 9,3,x2@dtprel@ha
22000 addi 9,9,x2@dtprel@l
22001 bl .__tls_get_addr
22003 ld 9,x3@got@dtprel(2)
22004 add 9,9,3
22005 bl .__tls_get_addr
22006 nop'
22007 tls_first_major=2
22008 tls_first_minor=14
22009 tls_as_opt="-a64 --fatal-warnings"
22011 s390-*-*)
22012 conftest_s='
22013 .section ".tdata","awT",@progbits
22014 foo: .long 25
22015 .text
22016 .long foo@TLSGD
22017 .long foo@TLSLDM
22018 .long foo@DTPOFF
22019 .long foo@NTPOFF
22020 .long foo@GOTNTPOFF
22021 .long foo@INDNTPOFF
22022 l %r1,foo@GOTNTPOFF(%r12)
22023 l %r1,0(%r1):tls_load:foo
22024 bas %r14,0(%r1,%r13):tls_gdcall:foo
22025 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22026 tls_first_major=2
22027 tls_first_minor=14
22028 tls_as_opt="-m31 --fatal-warnings"
22030 s390x-*-*)
22031 conftest_s='
22032 .section ".tdata","awT",@progbits
22033 foo: .long 25
22034 .text
22035 .quad foo@TLSGD
22036 .quad foo@TLSLDM
22037 .quad foo@DTPOFF
22038 .quad foo@NTPOFF
22039 .quad foo@GOTNTPOFF
22040 lg %r1,foo@GOTNTPOFF(%r12)
22041 larl %r1,foo@INDNTPOFF
22042 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22043 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22044 tls_first_major=2
22045 tls_first_minor=14
22046 tls_as_opt="-m64 -Aesame --fatal-warnings"
22048 sh-*-* | sh[34]-*-*)
22049 conftest_s='
22050 .section ".tdata","awT",@progbits
22051 foo: .long 25
22052 .text
22053 .long foo@TLSGD
22054 .long foo@TLSLDM
22055 .long foo@DTPOFF
22056 .long foo@GOTTPOFF
22057 .long foo@TPOFF'
22058 tls_first_major=2
22059 tls_first_minor=13
22060 tls_as_opt=--fatal-warnings
22062 sparc*-*-*)
22063 case "$target" in
22064 sparc*-sun-solaris2.[56789]*)
22065 # TLS was introduced in the Solaris 9 4/04 release but
22066 # we do not enable it by default on Solaris 9 either.
22067 if test "x$enable_tls" = xyes ; then
22068 on_solaris=yes
22069 else
22070 enable_tls=no;
22073 sparc*-sun-solaris2.*)
22074 on_solaris=yes
22077 on_solaris=no
22079 esac
22080 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22081 conftest_s='
22082 .section ".tdata",#alloc,#write,#tls
22083 foo: .long 25
22084 .text
22085 sethi %tgd_hi22(foo), %o0
22086 add %o0, %tgd_lo10(foo), %o1
22087 add %l7, %o1, %o0, %tgd_add(foo)
22088 call __tls_get_addr, %tgd_call(foo)
22089 sethi %tldm_hi22(foo), %l1
22090 add %l1, %tldm_lo10(foo), %l2
22091 add %l7, %l2, %o0, %tldm_add(foo)
22092 call __tls_get_addr, %tldm_call(foo)
22093 sethi %tldo_hix22(foo), %l3
22094 xor %l3, %tldo_lox10(foo), %l4
22095 add %o0, %l4, %l5, %tldo_add(foo)
22096 sethi %tie_hi22(foo), %o3
22097 add %o3, %tie_lo10(foo), %o3
22098 ld [%l7 + %o3], %o2, %tie_ld(foo)
22099 add %g7, %o2, %o4, %tie_add(foo)
22100 sethi %tle_hix22(foo), %l1
22101 xor %l1, %tle_lox10(foo), %o5
22102 ld [%g7 + %o5], %o1'
22103 tls_first_major=0
22104 tls_first_minor=0
22105 else
22106 conftest_s='
22107 .section ".tdata","awT",@progbits
22108 foo: .long 25
22109 .text
22110 sethi %tgd_hi22(foo), %o0
22111 add %o0, %tgd_lo10(foo), %o1
22112 add %l7, %o1, %o0, %tgd_add(foo)
22113 call __tls_get_addr, %tgd_call(foo)
22114 sethi %tldm_hi22(foo), %l1
22115 add %l1, %tldm_lo10(foo), %l2
22116 add %l7, %l2, %o0, %tldm_add(foo)
22117 call __tls_get_addr, %tldm_call(foo)
22118 sethi %tldo_hix22(foo), %l3
22119 xor %l3, %tldo_lox10(foo), %l4
22120 add %o0, %l4, %l5, %tldo_add(foo)
22121 sethi %tie_hi22(foo), %o3
22122 add %o3, %tie_lo10(foo), %o3
22123 ld [%l7 + %o3], %o2, %tie_ld(foo)
22124 add %g7, %o2, %o4, %tie_add(foo)
22125 sethi %tle_hix22(foo), %l1
22126 xor %l1, %tle_lox10(foo), %o5
22127 ld [%g7 + %o5], %o1'
22128 tls_first_major=2
22129 tls_first_minor=14
22130 tls_as_opt="-32 --fatal-warnings"
22133 xtensa*-*-*)
22134 conftest_s='
22135 .section ".tdata","awT",@progbits
22136 foo: .long 25
22137 .text
22138 movi a8, foo@TLSFUNC
22139 movi a10, foo@TLSARG
22140 callx8.tls a8, foo@TLSCALL'
22141 tls_first_major=2
22142 tls_first_minor=19
22144 esac
22145 set_have_as_tls=no
22146 if test "x$enable_tls" = xno ; then
22147 : # TLS explicitly disabled.
22148 elif test "x$enable_tls" = xyes ; then
22149 set_have_as_tls=yes # TLS explicitly enabled.
22150 elif test -z "$tls_first_major"; then
22151 : # If we don't have a check, assume no support.
22152 else
22153 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
22154 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
22155 if test "${gcc_cv_as_tls+set}" = set; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 else
22158 gcc_cv_as_tls=no
22159 if test $in_tree_gas = yes; then
22160 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22161 then gcc_cv_as_tls=yes
22163 elif test x$gcc_cv_as != x; then
22164 echo "$conftest_s" > conftest.s
22165 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; }
22171 then
22172 gcc_cv_as_tls=yes
22173 else
22174 echo "configure: failed program was" >&5
22175 cat conftest.s >&5
22177 rm -f conftest.o conftest.s
22180 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
22181 echo "${ECHO_T}$gcc_cv_as_tls" >&6
22182 if test $gcc_cv_as_tls = yes; then
22183 set_have_as_tls=yes
22186 if test $set_have_as_tls = yes ; then
22188 cat >>confdefs.h <<\_ACEOF
22189 #define HAVE_AS_TLS 1
22190 _ACEOF
22194 # Target-specific assembler checks.
22196 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
22197 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
22198 gcc_cv_ld_static_dynamic=no
22199 if test $in_tree_ld = yes ; then
22200 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; then
22201 gcc_cv_ld_static_dynamic=yes
22203 elif test x$gcc_cv_ld != x; then
22204 # Check if linker supports -Bstatic/-Bdynamic option
22205 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22206 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22207 gcc_cv_ld_static_dynamic=yes
22210 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22212 cat >>confdefs.h <<\_ACEOF
22213 #define HAVE_LD_STATIC_DYNAMIC 1
22214 _ACEOF
22217 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
22218 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
22220 if test x"$demangler_in_ld" = xyes; then
22221 echo "$as_me:$LINENO: checking linker --demangle support" >&5
22222 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
22223 gcc_cv_ld_demangle=no
22224 if test $in_tree_ld = yes; then
22225 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 \
22226 gcc_cv_ld_demangle=yes
22228 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22229 # Check if the GNU linker supports --demangle option
22230 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22231 gcc_cv_ld_demangle=yes
22234 if test x"$gcc_cv_ld_demangle" = xyes; then
22236 cat >>confdefs.h <<\_ACEOF
22237 #define HAVE_LD_DEMANGLE 1
22238 _ACEOF
22241 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
22242 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
22245 case "$target" in
22246 # All TARGET_ABI_OSF targets.
22247 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22248 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22249 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22250 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 gcc_cv_as_alpha_explicit_relocs=no
22254 if test $in_tree_gas = yes; then
22255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22256 then gcc_cv_as_alpha_explicit_relocs=yes
22258 elif test x$gcc_cv_as != x; then
22259 echo ' .set nomacro
22260 .text
22261 extbl $3, $2, $3 !lituse_bytoff!1
22262 ldq $2, a($29) !literal!1
22263 ldq $4, b($29) !literal!2
22264 ldq_u $3, 0($2) !lituse_base!1
22265 ldq $27, f($29) !literal!5
22266 jsr $26, ($27), f !lituse_jsr!5
22267 ldah $29, 0($26) !gpdisp!3
22268 lda $0, c($29) !gprel
22269 ldah $1, d($29) !gprelhigh
22270 lda $1, d($1) !gprellow
22271 lda $29, 0($29) !gpdisp!3' > conftest.s
22272 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274 (eval $ac_try) 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; }
22278 then
22279 gcc_cv_as_alpha_explicit_relocs=yes
22280 else
22281 echo "configure: failed program was" >&5
22282 cat conftest.s >&5
22284 rm -f conftest.o conftest.s
22287 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22288 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
22289 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22291 cat >>confdefs.h <<\_ACEOF
22292 #define HAVE_AS_EXPLICIT_RELOCS 1
22293 _ACEOF
22296 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
22297 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
22298 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
22299 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 else
22301 gcc_cv_as_alpha_jsrdirect_relocs=no
22302 if test $in_tree_gas = yes; then
22303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22304 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22306 elif test x$gcc_cv_as != x; then
22307 echo ' .set nomacro
22308 .text
22309 ldq $27, a($29) !literal!1
22310 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22311 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }
22317 then
22318 gcc_cv_as_alpha_jsrdirect_relocs=yes
22319 else
22320 echo "configure: failed program was" >&5
22321 cat conftest.s >&5
22323 rm -f conftest.o conftest.s
22326 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22327 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
22328 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_AS_JSRDIRECT_RELOCS 1
22332 _ACEOF
22337 cris-*-*)
22338 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
22339 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
22340 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343 gcc_cv_as_cris_no_mul_bug=no
22344 if test $in_tree_gas = yes; then
22345 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22346 then gcc_cv_as_cris_no_mul_bug=yes
22348 elif test x$gcc_cv_as != x; then
22349 echo '.text' > conftest.s
22350 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }
22356 then
22357 gcc_cv_as_cris_no_mul_bug=yes
22358 else
22359 echo "configure: failed program was" >&5
22360 cat conftest.s >&5
22362 rm -f conftest.o conftest.s
22365 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
22366 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
22367 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22369 cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
22371 _ACEOF
22376 sparc*-*-*)
22377 echo "$as_me:$LINENO: checking assembler for .register" >&5
22378 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
22379 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382 gcc_cv_as_sparc_register_op=no
22383 if test x$gcc_cv_as != x; then
22384 echo '.register %g2, #scratch' > conftest.s
22385 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387 (eval $ac_try) 2>&5
22388 ac_status=$?
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); }; }
22391 then
22392 gcc_cv_as_sparc_register_op=yes
22393 else
22394 echo "configure: failed program was" >&5
22395 cat conftest.s >&5
22397 rm -f conftest.o conftest.s
22400 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
22401 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
22402 if test $gcc_cv_as_sparc_register_op = yes; then
22404 cat >>confdefs.h <<\_ACEOF
22405 #define HAVE_AS_REGISTER_PSEUDO_OP 1
22406 _ACEOF
22410 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
22411 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
22412 if test "${gcc_cv_as_sparc_relax+set}" = set; then
22413 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415 gcc_cv_as_sparc_relax=no
22416 if test x$gcc_cv_as != x; then
22417 echo '.text' > conftest.s
22418 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }
22424 then
22425 gcc_cv_as_sparc_relax=yes
22426 else
22427 echo "configure: failed program was" >&5
22428 cat conftest.s >&5
22430 rm -f conftest.o conftest.s
22433 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
22434 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
22435 if test $gcc_cv_as_sparc_relax = yes; then
22437 cat >>confdefs.h <<\_ACEOF
22438 #define HAVE_AS_RELAX_OPTION 1
22439 _ACEOF
22443 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
22444 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
22445 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448 gcc_cv_as_sparc_ua_pcrel=no
22449 if test x$gcc_cv_as != x; then
22450 echo '.text
22451 foo:
22453 .data
22454 .align 4
22455 .byte 0
22456 .uaword %r_disp32(foo)' > conftest.s
22457 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }
22463 then
22464 if test x$gcc_cv_ld != x \
22465 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22466 gcc_cv_as_sparc_ua_pcrel=yes
22468 rm -f conftest
22469 else
22470 echo "configure: failed program was" >&5
22471 cat conftest.s >&5
22473 rm -f conftest.o conftest.s
22476 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22477 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
22478 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22480 cat >>confdefs.h <<\_ACEOF
22481 #define HAVE_AS_SPARC_UA_PCREL 1
22482 _ACEOF
22485 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22486 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
22487 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 else
22490 gcc_cv_as_sparc_ua_pcrel_hidden=no
22491 if test x$gcc_cv_as != x; then
22492 echo '.data
22493 .align 4
22494 .byte 0x31
22495 .uaword %r_disp32(foo)
22496 .byte 0x32, 0x33, 0x34
22497 .global foo
22498 .hidden foo
22499 foo:
22500 .skip 4' > conftest.s
22501 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }
22507 then
22508 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22509 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22510 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22511 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22512 if $gcc_cv_objdump -R conftest 2> /dev/null \
22513 | grep 'DISP32' > /dev/null 2>&1; then
22515 else
22516 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22519 rm -f conftest
22520 else
22521 echo "configure: failed program was" >&5
22522 cat conftest.s >&5
22524 rm -f conftest.o conftest.s
22527 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22528 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
22529 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22531 cat >>confdefs.h <<\_ACEOF
22532 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
22533 _ACEOF
22537 fi # unaligned pcrel relocs
22539 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
22540 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
22541 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
22542 echo $ECHO_N "(cached) $ECHO_C" >&6
22543 else
22544 gcc_cv_as_sparc_offsetable_lo10=no
22545 if test x$gcc_cv_as != x; then
22546 echo '.text
22547 or %g1, %lo(ab) + 12, %g1
22548 or %g1, %lo(ab + 12), %g1' > conftest.s
22549 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22552 ac_status=$?
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }
22555 then
22556 if test x$gcc_cv_objdump != x \
22557 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22558 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22559 gcc_cv_as_sparc_offsetable_lo10=yes
22561 else
22562 echo "configure: failed program was" >&5
22563 cat conftest.s >&5
22565 rm -f conftest.o conftest.s
22568 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22569 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
22570 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22572 cat >>confdefs.h <<\_ACEOF
22573 #define HAVE_AS_OFFSETABLE_LO10 1
22574 _ACEOF
22579 i[34567]86-*-* | x86_64-*-*)
22580 case $target_os in
22581 cygwin* | pe | mingw32*)
22582 # Used for DWARF 2 in PE
22583 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
22584 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
22585 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 else
22588 gcc_cv_as_ix86_pe_secrel32=no
22589 if test $in_tree_gas = yes; then
22590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22591 then gcc_cv_as_ix86_pe_secrel32=yes
22593 elif test x$gcc_cv_as != x; then
22594 echo '.text
22595 foo: nop
22596 .data
22597 .secrel32 foo' > conftest.s
22598 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22601 ac_status=$?
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }
22604 then
22605 if test x$gcc_cv_ld != x \
22606 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22607 gcc_cv_as_ix86_pe_secrel32=yes
22609 rm -f conftest
22610 else
22611 echo "configure: failed program was" >&5
22612 cat conftest.s >&5
22614 rm -f conftest.o conftest.s
22617 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22618 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
22619 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22621 cat >>confdefs.h <<\_ACEOF
22622 #define HAVE_GAS_PE_SECREL32_RELOC 1
22623 _ACEOF
22627 esac
22629 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
22630 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
22631 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633 else
22634 gcc_cv_as_ix86_filds_fists=no
22635 if test $in_tree_gas = yes; then
22636 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22637 then gcc_cv_as_ix86_filds_fists=yes
22639 elif test x$gcc_cv_as != x; then
22640 echo 'filds mem; fists mem' > conftest.s
22641 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
22644 ac_status=$?
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; }
22647 then
22648 gcc_cv_as_ix86_filds_fists=yes
22649 else
22650 echo "configure: failed program was" >&5
22651 cat conftest.s >&5
22653 rm -f conftest.o conftest.s
22656 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
22657 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
22658 if test $gcc_cv_as_ix86_filds_fists = yes; then
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_GAS_FILDS_FISTS 1
22662 _ACEOF
22666 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
22667 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
22668 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
22669 echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671 gcc_cv_as_ix86_cmov_sun_syntax=no
22672 if test x$gcc_cv_as != x; then
22673 echo 'cmovl.l %edx, %eax' > conftest.s
22674 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; }
22680 then
22681 gcc_cv_as_ix86_cmov_sun_syntax=yes
22682 else
22683 echo "configure: failed program was" >&5
22684 cat conftest.s >&5
22686 rm -f conftest.o conftest.s
22689 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22690 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
22691 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
22695 _ACEOF
22699 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22700 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22701 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704 gcc_cv_as_ix86_ffreep=no
22705 if test x$gcc_cv_as != x; then
22706 echo 'ffreep %st(1)' > conftest.s
22707 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }
22713 then
22714 gcc_cv_as_ix86_ffreep=yes
22715 else
22716 echo "configure: failed program was" >&5
22717 cat conftest.s >&5
22719 rm -f conftest.o conftest.s
22722 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22723 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22724 if test $gcc_cv_as_ix86_ffreep = yes; then
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_AS_IX86_FFREEP 1
22728 _ACEOF
22732 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22733 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22734 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737 gcc_cv_as_ix86_sahf=no
22738 if test x$gcc_cv_as != x; then
22739 echo 'sahf' > conftest.s
22740 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742 (eval $ac_try) 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }
22746 then
22747 gcc_cv_as_ix86_sahf=yes
22748 else
22749 echo "configure: failed program was" >&5
22750 cat conftest.s >&5
22752 rm -f conftest.o conftest.s
22755 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22756 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22757 if test $gcc_cv_as_ix86_sahf = yes; then
22759 cat >>confdefs.h <<\_ACEOF
22760 #define HAVE_AS_IX86_SAHF 1
22761 _ACEOF
22765 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22766 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22767 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22768 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770 gcc_cv_as_ix86_diff_sect_delta=no
22771 if test x$gcc_cv_as != x; then
22772 echo '.section .rodata
22773 .L1:
22774 .long .L2-.L1
22775 .long .L3-.L1
22776 .text
22777 .L3: nop
22778 .L2: nop' > conftest.s
22779 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }
22785 then
22786 gcc_cv_as_ix86_diff_sect_delta=yes
22787 else
22788 echo "configure: failed program was" >&5
22789 cat conftest.s >&5
22791 rm -f conftest.o conftest.s
22794 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22795 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22796 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22798 cat >>confdefs.h <<\_ACEOF
22799 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22800 _ACEOF
22804 # This one is used unconditionally by i386.[ch]; it is to be defined
22805 # to 1 if the feature is present, 0 otherwise.
22806 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22807 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22808 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811 gcc_cv_as_ix86_gotoff_in_data=no
22812 if test $in_tree_gas = yes; then
22813 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22814 then gcc_cv_as_ix86_gotoff_in_data=yes
22816 elif test x$gcc_cv_as != x; then
22817 echo ' .text
22818 .L0:
22820 .data
22821 .long .L0@GOTOFF' > conftest.s
22822 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }
22828 then
22829 gcc_cv_as_ix86_gotoff_in_data=yes
22830 else
22831 echo "configure: failed program was" >&5
22832 cat conftest.s >&5
22834 rm -f conftest.o conftest.s
22837 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22838 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22841 cat >>confdefs.h <<_ACEOF
22842 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22843 _ACEOF
22847 ia64*-*-*)
22848 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22849 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22850 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22851 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 else
22853 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22854 if test $in_tree_gas = yes; then
22855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22856 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22858 elif test x$gcc_cv_as != x; then
22859 echo ' .text
22860 addl r15 = @ltoffx(x#), gp
22862 ld8.mov r16 = [r15], x#' > conftest.s
22863 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22866 ac_status=$?
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); }; }
22869 then
22870 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22871 else
22872 echo "configure: failed program was" >&5
22873 cat conftest.s >&5
22875 rm -f conftest.o conftest.s
22878 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22879 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22880 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22884 _ACEOF
22890 powerpc*-*-*)
22891 case $target in
22892 *-*-aix*) conftest_s=' .machine "pwr5"
22893 .csect .text[PR]
22894 mfcr 3,128';;
22895 *-*-darwin*)
22896 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22897 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22898 if test "${gcc_cv_as_machine_directive+set}" = set; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22900 else
22901 gcc_cv_as_machine_directive=no
22902 if test x$gcc_cv_as != x; then
22903 echo ' .machine ppc7400' > conftest.s
22904 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22907 ac_status=$?
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }
22910 then
22911 gcc_cv_as_machine_directive=yes
22912 else
22913 echo "configure: failed program was" >&5
22914 cat conftest.s >&5
22916 rm -f conftest.o conftest.s
22919 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22920 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22922 if test x$gcc_cv_as_machine_directive != xyes; then
22923 echo "*** This target requires an assembler supporting \".machine\"" >&2
22924 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22925 test x$build = x$target && exit 1
22927 conftest_s=' .text
22928 mfcr r3,128';;
22929 *) conftest_s=' .machine power4
22930 .text
22931 mfcr 3,128';;
22932 esac
22934 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22935 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22936 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939 gcc_cv_as_powerpc_mfcrf=no
22940 if test $in_tree_gas = yes; then
22941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22942 then gcc_cv_as_powerpc_mfcrf=yes
22944 elif test x$gcc_cv_as != x; then
22945 echo "$conftest_s" > conftest.s
22946 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }
22952 then
22953 gcc_cv_as_powerpc_mfcrf=yes
22954 else
22955 echo "configure: failed program was" >&5
22956 cat conftest.s >&5
22958 rm -f conftest.o conftest.s
22961 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22962 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22963 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_AS_MFCRF 1
22967 _ACEOF
22971 case $target in
22972 *-*-aix*) conftest_s=' .machine "pwr5"
22973 .csect .text[PR]
22974 popcntb 3,3';;
22975 *) conftest_s=' .machine power5
22976 .text
22977 popcntb 3,3';;
22978 esac
22980 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22981 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22982 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22983 echo $ECHO_N "(cached) $ECHO_C" >&6
22984 else
22985 gcc_cv_as_powerpc_popcntb=no
22986 if test $in_tree_gas = yes; then
22987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22988 then gcc_cv_as_powerpc_popcntb=yes
22990 elif test x$gcc_cv_as != x; then
22991 echo "$conftest_s" > conftest.s
22992 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; }
22998 then
22999 gcc_cv_as_powerpc_popcntb=yes
23000 else
23001 echo "configure: failed program was" >&5
23002 cat conftest.s >&5
23004 rm -f conftest.o conftest.s
23007 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
23008 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
23009 if test $gcc_cv_as_powerpc_popcntb = yes; then
23011 cat >>confdefs.h <<\_ACEOF
23012 #define HAVE_AS_POPCNTB 1
23013 _ACEOF
23017 case $target in
23018 *-*-aix*) conftest_s=' .machine "pwr5x"
23019 .csect .text[PR]
23020 frin 1,1';;
23021 *) conftest_s=' .machine power5
23022 .text
23023 frin 1,1';;
23024 esac
23026 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
23027 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
23028 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
23029 echo $ECHO_N "(cached) $ECHO_C" >&6
23030 else
23031 gcc_cv_as_powerpc_fprnd=no
23032 if test $in_tree_gas = yes; then
23033 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23034 then gcc_cv_as_powerpc_fprnd=yes
23036 elif test x$gcc_cv_as != x; then
23037 echo "$conftest_s" > conftest.s
23038 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23040 (eval $ac_try) 2>&5
23041 ac_status=$?
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); }; }
23044 then
23045 gcc_cv_as_powerpc_fprnd=yes
23046 else
23047 echo "configure: failed program was" >&5
23048 cat conftest.s >&5
23050 rm -f conftest.o conftest.s
23053 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
23054 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
23055 if test $gcc_cv_as_powerpc_fprnd = yes; then
23057 cat >>confdefs.h <<\_ACEOF
23058 #define HAVE_AS_FPRND 1
23059 _ACEOF
23063 case $target in
23064 *-*-aix*) conftest_s=' .machine "pwr6"
23065 .csect .text[PR]
23066 mffgpr 1,3';;
23067 *) conftest_s=' .machine power6
23068 .text
23069 mffgpr 1,3';;
23070 esac
23072 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
23073 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
23074 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 else
23077 gcc_cv_as_powerpc_mfpgpr=no
23078 if test $in_tree_gas = yes; then
23079 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23080 then gcc_cv_as_powerpc_mfpgpr=yes
23082 elif test x$gcc_cv_as != x; then
23083 echo "$conftest_s" > conftest.s
23084 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }
23090 then
23091 gcc_cv_as_powerpc_mfpgpr=yes
23092 else
23093 echo "configure: failed program was" >&5
23094 cat conftest.s >&5
23096 rm -f conftest.o conftest.s
23099 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23100 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
23101 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_AS_MFPGPR 1
23105 _ACEOF
23109 case $target in
23110 *-*-aix*) conftest_s=' .csect .text[PR]
23111 LCF..0:
23112 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23113 *-*-darwin*)
23114 conftest_s=' .text
23115 LCF0:
23116 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23117 *) conftest_s=' .text
23118 .LCF0:
23119 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23120 esac
23122 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
23123 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
23124 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127 gcc_cv_as_powerpc_rel16=no
23128 if test $in_tree_gas = yes; then
23129 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23130 then gcc_cv_as_powerpc_rel16=yes
23132 elif test x$gcc_cv_as != x; then
23133 echo "$conftest_s" > conftest.s
23134 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); }; }
23140 then
23141 gcc_cv_as_powerpc_rel16=yes
23142 else
23143 echo "configure: failed program was" >&5
23144 cat conftest.s >&5
23146 rm -f conftest.o conftest.s
23149 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
23150 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
23151 if test $gcc_cv_as_powerpc_rel16 = yes; then
23153 cat >>confdefs.h <<\_ACEOF
23154 #define HAVE_AS_REL16 1
23155 _ACEOF
23159 case $target in
23160 *-*-aix*) conftest_s=' .machine "pwr6"
23161 .csect .text[PR]
23162 cmpb 3,4,5';;
23163 *) conftest_s=' .machine power6
23164 .text
23165 cmpb 3,4,5';;
23166 esac
23168 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
23169 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
23170 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
23171 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 else
23173 gcc_cv_as_powerpc_cmpb=no
23174 if test $in_tree_gas = yes; then
23175 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23176 then gcc_cv_as_powerpc_cmpb=yes
23178 elif test x$gcc_cv_as != x; then
23179 echo "$conftest_s" > conftest.s
23180 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; }
23186 then
23187 gcc_cv_as_powerpc_cmpb=yes
23188 else
23189 echo "configure: failed program was" >&5
23190 cat conftest.s >&5
23192 rm -f conftest.o conftest.s
23195 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
23196 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
23197 if test $gcc_cv_as_powerpc_cmpb = yes; then
23199 cat >>confdefs.h <<\_ACEOF
23200 #define HAVE_AS_CMPB 1
23201 _ACEOF
23205 case $target in
23206 *-*-aix*) conftest_s=' .machine "pwr6"
23207 .csect .text[PR]
23208 dadd 1,2,3';;
23209 *) conftest_s=' .machine power6
23210 .text
23211 dadd 1,2,3';;
23212 esac
23214 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
23215 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
23216 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219 gcc_cv_as_powerpc_dfp=no
23220 if test $in_tree_gas = yes; then
23221 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23222 then gcc_cv_as_powerpc_dfp=yes
23224 elif test x$gcc_cv_as != x; then
23225 echo "$conftest_s" > conftest.s
23226 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }
23232 then
23233 gcc_cv_as_powerpc_dfp=yes
23234 else
23235 echo "configure: failed program was" >&5
23236 cat conftest.s >&5
23238 rm -f conftest.o conftest.s
23241 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
23242 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
23243 if test $gcc_cv_as_powerpc_dfp = yes; then
23245 cat >>confdefs.h <<\_ACEOF
23246 #define HAVE_AS_DFP 1
23247 _ACEOF
23251 case $target in
23252 *-*-aix*) conftest_s=' .machine "pwr7"
23253 .csect .text[PR]
23254 lxvd2x 1,2,3';;
23255 *) conftest_s=' .machine power7
23256 .text
23257 lxvd2x 1,2,3';;
23258 esac
23260 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
23261 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
23262 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265 gcc_cv_as_powerpc_vsx=no
23266 if test $in_tree_gas = yes; then
23267 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23268 then gcc_cv_as_powerpc_vsx=yes
23270 elif test x$gcc_cv_as != x; then
23271 echo "$conftest_s" > conftest.s
23272 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274 (eval $ac_try) 2>&5
23275 ac_status=$?
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); }; }
23278 then
23279 gcc_cv_as_powerpc_vsx=yes
23280 else
23281 echo "configure: failed program was" >&5
23282 cat conftest.s >&5
23284 rm -f conftest.o conftest.s
23287 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
23288 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
23289 if test $gcc_cv_as_powerpc_vsx = yes; then
23291 cat >>confdefs.h <<\_ACEOF
23292 #define HAVE_AS_VSX 1
23293 _ACEOF
23297 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23298 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23299 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302 gcc_cv_as_powerpc_gnu_attribute=no
23303 if test $in_tree_gas = yes; then
23304 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23305 then gcc_cv_as_powerpc_gnu_attribute=yes
23307 elif test x$gcc_cv_as != x; then
23308 echo '.gnu_attribute 4,1' > conftest.s
23309 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314 (exit $ac_status); }; }
23315 then
23316 gcc_cv_as_powerpc_gnu_attribute=yes
23317 else
23318 echo "configure: failed program was" >&5
23319 cat conftest.s >&5
23321 rm -f conftest.o conftest.s
23324 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23325 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
23326 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23328 cat >>confdefs.h <<\_ACEOF
23329 #define HAVE_AS_GNU_ATTRIBUTE 1
23330 _ACEOF
23334 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
23335 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
23336 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23338 else
23339 gcc_cv_as_powerpc_tls_markers=no
23340 if test $in_tree_gas = yes; then
23341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23342 then gcc_cv_as_powerpc_tls_markers=yes
23344 elif test x$gcc_cv_as != x; then
23345 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23346 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; }
23352 then
23353 gcc_cv_as_powerpc_tls_markers=yes
23354 else
23355 echo "configure: failed program was" >&5
23356 cat conftest.s >&5
23358 rm -f conftest.o conftest.s
23361 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
23362 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
23363 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23365 cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_AS_TLS_MARKERS 1
23367 _ACEOF
23372 mips*-*-*)
23373 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
23374 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
23375 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23377 else
23378 gcc_cv_as_mips_explicit_relocs=no
23379 if test $in_tree_gas = yes; then
23380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23381 then gcc_cv_as_mips_explicit_relocs=yes
23383 elif test x$gcc_cv_as != x; then
23384 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23385 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }
23391 then
23392 gcc_cv_as_mips_explicit_relocs=yes
23393 else
23394 echo "configure: failed program was" >&5
23395 cat conftest.s >&5
23397 rm -f conftest.o conftest.s
23400 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
23401 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
23402 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23403 if test x$target_cpu_default = x
23404 then target_cpu_default=MASK_EXPLICIT_RELOCS
23405 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23408 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
23409 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
23410 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
23411 echo $ECHO_N "(cached) $ECHO_C" >&6
23412 else
23413 gcc_cv_as_mips_no_shared=no
23414 if test $in_tree_gas = yes; then
23415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23416 then gcc_cv_as_mips_no_shared=yes
23418 elif test x$gcc_cv_as != x; then
23419 echo 'nop' > conftest.s
23420 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23422 (eval $ac_try) 2>&5
23423 ac_status=$?
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); }; }
23426 then
23427 gcc_cv_as_mips_no_shared=yes
23428 else
23429 echo "configure: failed program was" >&5
23430 cat conftest.s >&5
23432 rm -f conftest.o conftest.s
23435 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
23436 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
23437 if test $gcc_cv_as_mips_no_shared = yes; then
23439 cat >>confdefs.h <<\_ACEOF
23440 #define HAVE_AS_NO_SHARED 1
23441 _ACEOF
23445 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
23446 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
23447 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449 else
23450 gcc_cv_as_mips_gnu_attribute=no
23451 if test $in_tree_gas = yes; then
23452 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23453 then gcc_cv_as_mips_gnu_attribute=yes
23455 elif test x$gcc_cv_as != x; then
23456 echo '.gnu_attribute 4,1' > conftest.s
23457 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); }; }
23463 then
23464 gcc_cv_as_mips_gnu_attribute=yes
23465 else
23466 echo "configure: failed program was" >&5
23467 cat conftest.s >&5
23469 rm -f conftest.o conftest.s
23472 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
23473 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
23474 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23476 cat >>confdefs.h <<\_ACEOF
23477 #define HAVE_AS_GNU_ATTRIBUTE 1
23478 _ACEOF
23482 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
23483 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
23484 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487 gcc_cv_as_mips_dtprelword=no
23488 if test $in_tree_gas = yes; then
23489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23490 then gcc_cv_as_mips_dtprelword=yes
23492 elif test x$gcc_cv_as != x; then
23493 echo '.section .tdata,"awT",@progbits
23495 .word 2
23496 .text
23497 .dtprelword x+0x8000' > conftest.s
23498 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }
23504 then
23505 gcc_cv_as_mips_dtprelword=yes
23506 else
23507 echo "configure: failed program was" >&5
23508 cat conftest.s >&5
23510 rm -f conftest.o conftest.s
23513 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
23514 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
23515 if test $gcc_cv_as_mips_dtprelword = yes; then
23517 cat >>confdefs.h <<\_ACEOF
23518 #define HAVE_AS_DTPRELWORD 1
23519 _ACEOF
23523 esac
23525 # Mips and HP-UX need the GNU assembler.
23526 # Linux on IA64 might be able to use the Intel assembler.
23528 case "$target" in
23529 mips*-*-* | *-*-hpux* )
23530 if test x$gas_flag = xyes \
23531 || test x"$host" != x"$build" \
23532 || test ! -x "$gcc_cv_as" \
23533 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23535 else
23536 echo "*** This configuration requires the GNU assembler" >&2
23537 exit 1
23540 esac
23542 # ??? Not all targets support dwarf2 debug_line, even within a version
23543 # of gas. Moreover, we need to emit a valid instruction to trigger any
23544 # info to the output file. So, as supported targets are added to gas 2.11,
23545 # add some instruction here to (also) show we expect this might work.
23546 # ??? Once 2.11 is released, probably need to add first known working
23547 # version to the per-target configury.
23548 case "$target" in
23549 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23550 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23551 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23552 | spu-*-* | fido*-*-* | m32c-*-*)
23553 insn="nop"
23555 ia64*-*-* | s390*-*-*)
23556 insn="nop 0"
23558 mmix-*-*)
23559 insn="swym 0"
23561 esac
23562 if test x"$insn" != x; then
23563 conftest_s="\
23564 .file 1 \"conftest.s\"
23565 .loc 1 3 0
23566 $insn"
23567 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
23568 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
23569 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572 gcc_cv_as_dwarf2_debug_line=no
23573 if test $in_tree_gas = yes; then
23574 if test $in_tree_gas_is_elf = yes \
23575 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23576 then gcc_cv_as_dwarf2_debug_line=yes
23578 elif test x$gcc_cv_as != x; then
23579 echo "$conftest_s" > conftest.s
23580 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; }
23586 then
23587 if test x$gcc_cv_objdump != x \
23588 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23589 | grep debug_line > /dev/null 2>&1; then
23590 gcc_cv_as_dwarf2_debug_line=yes
23592 else
23593 echo "configure: failed program was" >&5
23594 cat conftest.s >&5
23596 rm -f conftest.o conftest.s
23599 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
23600 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
23603 # The .debug_line file table must be in the exact order that
23604 # we specified the files, since these indices are also used
23605 # by DW_AT_decl_file. Approximate this test by testing if
23606 # the assembler bitches if the same index is assigned twice.
23607 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
23608 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
23609 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
23610 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 else
23612 gcc_cv_as_dwarf2_file_buggy=no
23613 if test x$gcc_cv_as != x; then
23614 echo ' .file 1 "foo.s"
23615 .file 1 "bar.s"' > conftest.s
23616 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }
23622 then
23623 gcc_cv_as_dwarf2_file_buggy=yes
23624 else
23625 echo "configure: failed program was" >&5
23626 cat conftest.s >&5
23628 rm -f conftest.o conftest.s
23631 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23632 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
23635 if test $gcc_cv_as_dwarf2_debug_line = yes \
23636 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23638 cat >>confdefs.h <<\_ACEOF
23639 #define HAVE_AS_DWARF2_DEBUG_LINE 1
23640 _ACEOF
23644 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
23645 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
23646 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
23647 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 else
23649 gcc_cv_as_gdwarf2_flag=no
23650 if test $in_tree_gas = yes; then
23651 if test $in_tree_gas_is_elf = yes \
23652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23653 then gcc_cv_as_gdwarf2_flag=yes
23655 elif test x$gcc_cv_as != x; then
23656 echo "$insn" > conftest.s
23657 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }
23663 then
23664 gcc_cv_as_gdwarf2_flag=yes
23665 else
23666 echo "configure: failed program was" >&5
23667 cat conftest.s >&5
23669 rm -f conftest.o conftest.s
23672 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
23673 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
23674 if test $gcc_cv_as_gdwarf2_flag = yes; then
23676 cat >>confdefs.h <<\_ACEOF
23677 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
23678 _ACEOF
23682 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
23683 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
23684 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687 gcc_cv_as_gstabs_flag=no
23688 if test $in_tree_gas = yes; then
23689 if test $in_tree_gas_is_elf = yes \
23690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23691 then gcc_cv_as_gstabs_flag=yes
23693 elif test x$gcc_cv_as != x; then
23694 echo "$insn" > conftest.s
23695 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697 (eval $ac_try) 2>&5
23698 ac_status=$?
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); }; }
23701 then
23702 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23703 # and warns about it, but still exits successfully. So check for
23704 # this.
23705 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }
23711 then :
23712 else gcc_cv_as_gstabs_flag=yes
23714 else
23715 echo "configure: failed program was" >&5
23716 cat conftest.s >&5
23718 rm -f conftest.o conftest.s
23721 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
23722 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
23723 if test $gcc_cv_as_gstabs_flag = yes; then
23725 cat >>confdefs.h <<\_ACEOF
23726 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
23727 _ACEOF
23731 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
23732 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
23733 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
23734 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736 gcc_cv_as_debug_prefix_map_flag=no
23737 if test $in_tree_gas = yes; then
23738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23739 then gcc_cv_as_debug_prefix_map_flag=yes
23741 elif test x$gcc_cv_as != x; then
23742 echo "$insn" > conftest.s
23743 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }
23749 then
23750 gcc_cv_as_debug_prefix_map_flag=yes
23751 else
23752 echo "configure: failed program was" >&5
23753 cat conftest.s >&5
23755 rm -f conftest.o conftest.s
23758 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23759 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
23760 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23762 cat >>confdefs.h <<\_ACEOF
23763 #define HAVE_AS_DEBUG_PREFIX_MAP 1
23764 _ACEOF
23769 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
23770 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
23771 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
23772 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 else
23774 gcc_cv_as_lcomm_with_alignment=no
23775 if test x$gcc_cv_as != x; then
23776 echo '.lcomm bar,4,16' > conftest.s
23777 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; }
23783 then
23784 gcc_cv_as_lcomm_with_alignment=yes
23785 else
23786 echo "configure: failed program was" >&5
23787 cat conftest.s >&5
23789 rm -f conftest.o conftest.s
23792 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
23793 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
23794 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
23798 _ACEOF
23802 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
23803 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
23804 if test "${gcc_cv_as_line_zero+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806 else
23807 gcc_cv_as_line_zero=no
23808 if test $in_tree_gas = yes; then
23809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23810 then gcc_cv_as_line_zero=yes
23812 elif test "x$gcc_cv_as" != x; then
23813 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23814 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; } &&
23820 test "x`cat conftest.out`" = x
23821 then
23822 gcc_cv_as_line_zero=yes
23823 else
23824 echo "configure: failed program was" >&5
23825 cat conftest.s >&5
23826 echo "configure: error output was" >&5
23827 cat conftest.out >&5
23829 rm -f conftest.o conftest.s conftest.out
23832 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23833 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23834 if test "x$gcc_cv_as_line_zero" = xyes; then
23836 cat >>confdefs.h <<\_ACEOF
23837 #define HAVE_AS_LINE_ZERO 1
23838 _ACEOF
23842 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23843 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23844 gcc_cv_ld_eh_frame_hdr=no
23845 if test $in_tree_ld = yes ; then
23846 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 \
23847 && test $in_tree_ld_is_elf = yes; then
23848 gcc_cv_ld_eh_frame_hdr=yes
23850 elif test x$gcc_cv_ld != x; then
23851 # Check if linker supports --eh-frame-hdr option
23852 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23853 gcc_cv_ld_eh_frame_hdr=yes
23857 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23859 cat >>confdefs.h <<\_ACEOF
23860 #define HAVE_LD_EH_FRAME_HDR 1
23861 _ACEOF
23864 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23865 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23867 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23868 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23869 gcc_cv_ld_pie=no
23870 if test $in_tree_ld = yes ; then
23871 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 \
23872 && test $in_tree_ld_is_elf = yes; then
23873 gcc_cv_ld_pie=yes
23875 elif test x$gcc_cv_ld != x; then
23876 # Check if linker supports -pie option
23877 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23878 gcc_cv_ld_pie=yes
23881 if test x"$gcc_cv_ld_pie" = xyes; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_LD_PIE 1
23885 _ACEOF
23888 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23889 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23891 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23892 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23893 gcc_cv_ld_eh_gc_sections=no
23894 if test $in_tree_ld = yes ; then
23895 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
23896 && test $in_tree_ld_is_elf = yes; then
23897 gcc_cv_ld_eh_gc_sections=yes
23899 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23900 cat > conftest.s <<EOF
23901 .section .text
23902 .globl _start
23903 .type _start, @function
23904 _start:
23905 .long foo
23906 .size _start, .-_start
23907 .section .text.foo,"ax",@progbits
23908 .type foo, @function
23909 foo:
23910 .long 0
23911 .size foo, .-foo
23912 .section .gcc_except_table.foo,"a",@progbits
23913 .L0:
23914 .long 0
23915 .section .eh_frame,"a",@progbits
23916 .long .L0
23918 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23919 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23920 | grep "gc-sections option ignored" > /dev/null; then
23921 gcc_cv_ld_eh_gc_sections=no
23922 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23923 gcc_cv_ld_eh_gc_sections=yes
23924 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23925 if test x$gcc_cv_as_comdat_group != xyes; then
23926 gcc_cv_ld_eh_gc_sections=no
23927 cat > conftest.s <<EOF
23928 .section .text
23929 .globl _start
23930 .type _start, @function
23931 _start:
23932 .long foo
23933 .size _start, .-_start
23934 .section .gnu.linkonce.t.foo,"ax",@progbits
23935 .type foo, @function
23936 foo:
23937 .long 0
23938 .size foo, .-foo
23939 .section .gcc_except_table.foo,"a",@progbits
23940 .L0:
23941 .long 0
23942 .section .eh_frame,"a",@progbits
23943 .long .L0
23945 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23946 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23947 | grep "gc-sections option ignored" > /dev/null; then
23948 gcc_cv_ld_eh_gc_sections=no
23949 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23950 gcc_cv_ld_eh_gc_sections=yes
23956 rm -f conftest.s conftest.o conftest
23958 case "$target" in
23959 hppa*-*-linux*)
23960 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23961 gcc_cv_ld_eh_gc_sections=no
23963 esac
23964 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23966 cat >>confdefs.h <<\_ACEOF
23967 #define HAVE_LD_EH_GC_SECTIONS 1
23968 _ACEOF
23971 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23972 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23974 # --------
23975 # UNSORTED
23976 # --------
23978 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23979 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23980 if test "${gcc_cv_ld_as_needed+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 else
23983 gcc_cv_ld_as_needed=no
23984 if test $in_tree_ld = yes ; then
23985 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 \
23986 && test $in_tree_ld_is_elf = yes; then
23987 gcc_cv_ld_as_needed=yes
23989 elif test x$gcc_cv_ld != x; then
23990 # Check if linker supports --as-needed and --no-as-needed options
23991 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23992 gcc_cv_ld_as_needed=yes
23997 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23998 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23999 if test x"$gcc_cv_ld_as_needed" = xyes; then
24001 cat >>confdefs.h <<\_ACEOF
24002 #define HAVE_LD_AS_NEEDED 1
24003 _ACEOF
24007 case "$target:$tm_file" in
24008 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24009 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
24010 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
24011 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014 gcc_cv_ld_no_dot_syms=no
24015 if test $in_tree_ld = yes ; then
24016 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
24017 gcc_cv_ld_no_dot_syms=yes
24019 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24020 cat > conftest1.s <<EOF
24021 .text
24022 bl .foo
24024 cat > conftest2.s <<EOF
24025 .section ".opd","aw"
24026 .align 3
24027 .globl foo
24028 .type foo,@function
24029 foo:
24030 .quad .LEfoo,.TOC.@tocbase,0
24031 .text
24032 .LEfoo:
24034 .size foo,.-.LEfoo
24036 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24037 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24038 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24039 gcc_cv_ld_no_dot_syms=yes
24041 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24045 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
24046 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
24047 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24049 cat >>confdefs.h <<\_ACEOF
24050 #define HAVE_LD_NO_DOT_SYMS 1
24051 _ACEOF
24055 esac
24057 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
24058 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
24059 if test "${gcc_cv_ld_sysroot+set}" = set; then
24060 echo $ECHO_N "(cached) $ECHO_C" >&6
24061 else
24062 gcc_cv_ld_sysroot=no
24063 if test $in_tree_ld = yes ; then
24064 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
24065 gcc_cv_ld_sysroot=yes
24067 elif test x$gcc_cv_ld != x; then
24068 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24069 gcc_cv_ld_sysroot=yes
24073 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
24074 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
24075 if test x"$gcc_cv_ld_sysroot" = xyes; then
24077 cat >>confdefs.h <<\_ACEOF
24078 #define HAVE_LD_SYSROOT 1
24079 _ACEOF
24083 if test x$with_sysroot = x && test x$host = x$target \
24084 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24085 && test "$prefix" != "NONE"; then
24087 cat >>confdefs.h <<_ACEOF
24088 #define PREFIX_INCLUDE_DIR "$prefix/include"
24089 _ACEOF
24093 # Test for stack protector support in target C library.
24094 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
24095 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
24096 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
24097 echo $ECHO_N "(cached) $ECHO_C" >&6
24098 else
24099 gcc_cv_libc_provides_ssp=no
24100 case "$target" in
24101 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24102 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24103 if test "x$with_sysroot" = x; then
24104 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24105 elif test "x$with_build_sysroot" != "x"; then
24106 glibc_header_dir="${with_build_sysroot}/usr/include"
24107 elif test "x$with_sysroot" = xyes; then
24108 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24109 else
24110 glibc_header_dir="${with_sysroot}/usr/include"
24112 else
24113 glibc_header_dir=/usr/include
24115 # glibc 2.4 and later provides __stack_chk_fail and
24116 # either __stack_chk_guard, or TLS access to stack guard canary.
24117 if test -f $glibc_header_dir/features.h \
24118 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24119 $glibc_header_dir/features.h > /dev/null; then
24120 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24121 $glibc_header_dir/features.h > /dev/null; then
24122 gcc_cv_libc_provides_ssp=yes
24123 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24124 $glibc_header_dir/features.h > /dev/null \
24125 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24126 $glibc_header_dir/features.h > /dev/null; then
24127 gcc_cv_libc_provides_ssp=yes
24128 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24129 $glibc_header_dir/features.h > /dev/null && \
24130 test -f $glibc_header_dir/bits/uClibc_config.h && \
24131 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24132 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24133 gcc_cv_libc_provides_ssp=yes
24137 *-*-gnu*)
24138 # Avoid complicated tests (see
24139 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24140 # simply assert that glibc does provide this, which is true for all
24141 # realistically usable GNU/Hurd configurations.
24142 gcc_cv_libc_provides_ssp=yes;;
24143 *-*-darwin*)
24144 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
24145 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
24146 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24148 else
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h. */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
24156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24157 #define __stack_chk_fail innocuous___stack_chk_fail
24159 /* System header to define __stub macros and hopefully few prototypes,
24160 which can conflict with char __stack_chk_fail (); below.
24161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24162 <limits.h> exists even on freestanding compilers. */
24164 #ifdef __STDC__
24165 # include <limits.h>
24166 #else
24167 # include <assert.h>
24168 #endif
24170 #undef __stack_chk_fail
24172 /* Override any gcc2 internal prototype to avoid an error. */
24173 #ifdef __cplusplus
24174 extern "C"
24176 #endif
24177 /* We use char because int might match the return type of a gcc2
24178 builtin and then its argument prototype would still apply. */
24179 char __stack_chk_fail ();
24180 /* The GNU C library defines this for functions which it implements
24181 to always fail with ENOSYS. Some functions are actually named
24182 something starting with __ and the normal name is an alias. */
24183 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
24184 choke me
24185 #else
24186 char (*f) () = __stack_chk_fail;
24187 #endif
24188 #ifdef __cplusplus
24190 #endif
24193 main ()
24195 return f != __stack_chk_fail;
24197 return 0;
24199 _ACEOF
24200 rm -f conftest.$ac_objext conftest$ac_exeext
24201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24202 (eval $ac_link) 2>conftest.er1
24203 ac_status=$?
24204 grep -v '^ *+' conftest.er1 >conftest.err
24205 rm -f conftest.er1
24206 cat conftest.err >&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } &&
24209 { ac_try='test -z "$ac_c_werror_flag"
24210 || test ! -s conftest.err'
24211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212 (eval $ac_try) 2>&5
24213 ac_status=$?
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); }; } &&
24216 { ac_try='test -s conftest$ac_exeext'
24217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); }; }; then
24222 ac_cv_func___stack_chk_fail=yes
24223 else
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ac_cv_func___stack_chk_fail=no
24229 rm -f conftest.err conftest.$ac_objext \
24230 conftest$ac_exeext conftest.$ac_ext
24232 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
24233 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
24234 if test $ac_cv_func___stack_chk_fail = yes; then
24235 gcc_cv_libc_provides_ssp=yes
24236 else
24237 echo "no __stack_chk_fail on this target"
24241 *) gcc_cv_libc_provides_ssp=no ;;
24242 esac
24244 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
24245 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
24247 if test x$gcc_cv_libc_provides_ssp = xyes; then
24249 cat >>confdefs.h <<\_ACEOF
24250 #define TARGET_LIBC_PROVIDES_SSP 1
24251 _ACEOF
24255 # Check if TFmode long double should be used by default or not.
24256 # Some glibc targets used DFmode long double, but with glibc 2.4
24257 # and later they can use TFmode.
24258 case "$target" in
24259 powerpc*-*-linux* | \
24260 powerpc*-*-gnu* | \
24261 sparc*-*-linux* | \
24262 s390*-*-linux* | \
24263 alpha*-*-linux*)
24265 # Check whether --with-long-double-128 or --without-long-double-128 was given.
24266 if test "${with_long_double_128+set}" = set; then
24267 withval="$with_long_double_128"
24268 gcc_cv_target_ldbl128="$with_long_double_128"
24269 else
24270 gcc_cv_target_ldbl128=no
24271 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24272 if test "x$with_sysroot" = x; then
24273 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24274 elif test "x$with_build_sysroot" != "x"; then
24275 glibc_header_dir="${with_build_sysroot}/usr/include"
24276 elif test "x$with_sysroot" = xyes; then
24277 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24278 else
24279 glibc_header_dir="${with_sysroot}/usr/include"
24281 else
24282 glibc_header_dir=/usr/include
24284 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24285 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24286 && gcc_cv_target_ldbl128=yes
24290 esac
24291 if test x$gcc_cv_target_ldbl128 = xyes; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
24295 _ACEOF
24299 # Find out what GC implementation we want, or may, use.
24301 # Check whether --with-gc or --without-gc was given.
24302 if test "${with_gc+set}" = set; then
24303 withval="$with_gc"
24304 case "$withval" in
24305 page)
24306 GGC=ggc-$withval
24308 zone)
24309 GGC=ggc-$withval
24311 cat >>confdefs.h <<\_ACEOF
24312 #define GGC_ZONE 1
24313 _ACEOF
24317 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
24318 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
24319 { (exit 1); exit 1; }; }
24321 esac
24322 else
24323 GGC=ggc-page
24326 echo "Using $GGC for garbage collection."
24328 # Use the system's zlib library.
24329 zlibdir=-L../zlib
24330 zlibinc="-I\$(srcdir)/../zlib"
24332 # Check whether --with-system-zlib or --without-system-zlib was given.
24333 if test "${with_system_zlib+set}" = set; then
24334 withval="$with_system_zlib"
24335 zlibdir=
24336 zlibinc=
24343 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24344 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24346 if test "${enable_maintainer_mode+set}" = set; then
24347 enableval="$enable_maintainer_mode"
24348 maintainer_mode=$enableval
24349 else
24350 maintainer_mode=no
24353 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
24354 echo "${ECHO_T}$maintainer_mode" >&6
24356 if test "$maintainer_mode" = "yes"; then
24357 MAINT=''
24358 else
24359 MAINT='#'
24362 # --------------
24363 # Language hooks
24364 # --------------
24366 # Make empty files to contain the specs and options for each language.
24367 # Then add #include lines to for a compiler that has specs and/or options.
24369 subdirs=
24370 lang_opt_files=
24371 lang_specs_files=
24372 lang_tree_files=
24373 # These (without "all_") are set in each config-lang.in.
24374 # `language' must be a single word so is spelled singularly.
24375 all_languages=
24376 all_compilers=
24377 all_outputs='Makefile gccbug'
24378 # List of language makefile fragments.
24379 all_lang_makefrags=
24380 # List of language subdirectory makefiles. Deprecated.
24381 all_lang_makefiles=
24382 # Additional files for gengtype
24383 all_gtfiles="$target_gtfiles"
24385 # These are the languages that are set in --enable-languages,
24386 # and are available in the GCC tree.
24387 all_selected_languages=
24389 # Add the language fragments.
24390 # Languages are added via two mechanisms. Some information must be
24391 # recorded in makefile variables, these are defined in config-lang.in.
24392 # We accumulate them and plug them into the main Makefile.
24393 # The other mechanism is a set of hooks for each of the main targets
24394 # like `clean', `install', etc.
24396 language_hooks="Make-hooks"
24398 for lang in ${srcdir}/*/config-lang.in
24400 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24402 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24403 if test "x$lang_alias" = x
24404 then
24405 echo "$lang doesn't set \$language." 1>&2
24406 exit 1
24408 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24409 subdirs="$subdirs $subdir"
24411 # $gcc_subdir is where the gcc integration files are to be found
24412 # for a language, both for internal compiler purposes (compiler
24413 # sources implementing front-end to GCC tree converters), and for
24414 # build infrastructure purposes (Make-lang.in, etc.)
24416 # This will be <subdir> (relative to $srcdir) if a line like
24417 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24418 # is found in <langdir>/config-lang.in, and will remain <langdir>
24419 # otherwise.
24421 # Except for the language alias (fetched above), the regular
24422 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24423 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24424 # only this and the language alias.
24426 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24427 if [ "$gcc_subdir" = "" ]; then
24428 gcc_subdir="$subdir"
24431 case ",$enable_languages," in
24432 *,$lang_alias,*)
24433 all_selected_languages="$all_selected_languages $lang_alias"
24434 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24435 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24438 esac
24440 language=
24441 boot_language=
24442 compilers=
24443 outputs=
24444 gtfiles=
24445 subdir_requires=
24446 . ${srcdir}/$gcc_subdir/config-lang.in
24447 if test "x$language" = x
24448 then
24449 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24450 exit 1
24453 ok=:
24454 case ",$enable_languages," in
24455 *,$lang_alias,*) ;;
24457 for i in $subdir_requires; do
24458 test -f "${srcdir}/$i/config-lang.in" && continue
24459 ok=false
24460 break
24461 done
24463 esac
24464 $ok || continue
24466 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24467 if test -f $srcdir/$gcc_subdir/lang.opt; then
24468 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24470 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24471 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24473 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24474 then all_lang_makefiles="$gcc_subdir/Makefile"
24476 all_languages="$all_languages $language"
24477 all_compilers="$all_compilers $compilers"
24478 all_outputs="$all_outputs $outputs"
24479 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24480 done
24482 # Pick up gtfiles for c
24483 gtfiles=
24484 . ${srcdir}/c-config-lang.in
24485 all_gtfiles="$all_gtfiles [c] $gtfiles"
24487 check_languages=
24488 for language in $all_selected_languages
24490 check_languages="$check_languages check-$language"
24491 done
24493 # We link each language in with a set of hooks, reached indirectly via
24494 # lang.${target}. Only do so for selected languages.
24496 rm -f Make-hooks
24497 touch Make-hooks
24498 target_list="all.cross start.encap rest.encap tags \
24499 install-common install-man install-info install-pdf dvi pdf \
24500 html uninstall info man srcextra srcman srcinfo \
24501 mostlyclean clean distclean maintainer-clean"
24503 for t in $target_list
24506 for lang in $all_selected_languages
24508 x="$x $lang.$t"
24509 done
24510 echo "lang.$t: $x" >> Make-hooks
24511 done
24513 # --------
24514 # UNSORTED
24515 # --------
24517 # Create .gdbinit.
24519 echo "dir ." > .gdbinit
24520 echo "dir ${srcdir}" >> .gdbinit
24521 if test x$gdb_needs_out_file_path = xyes
24522 then
24523 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24525 if test "x$subdirs" != x; then
24526 for s in $subdirs
24528 echo "dir ${srcdir}/$s" >> .gdbinit
24529 done
24531 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24533 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24537 # Find a directory in which to install a shared libgcc.
24539 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
24540 if test "${enable_version_specific_runtime_libs+set}" = set; then
24541 enableval="$enable_version_specific_runtime_libs"
24546 # Check whether --with-slibdir or --without-slibdir was given.
24547 if test "${with_slibdir+set}" = set; then
24548 withval="$with_slibdir"
24549 slibdir="$with_slibdir"
24550 else
24551 if test "${enable_version_specific_runtime_libs+set}" = set; then
24552 slibdir='$(libsubdir)'
24553 elif test "$host" != "$target"; then
24554 slibdir='$(build_tooldir)/lib'
24555 else
24556 slibdir='$(libdir)'
24562 # Check whether --with-datarootdir or --without-datarootdir was given.
24563 if test "${with_datarootdir+set}" = set; then
24564 withval="$with_datarootdir"
24565 datarootdir="\${prefix}/$with_datarootdir"
24566 else
24567 datarootdir='$(prefix)/share'
24572 # Check whether --with-docdir or --without-docdir was given.
24573 if test "${with_docdir+set}" = set; then
24574 withval="$with_docdir"
24575 docdir="\${prefix}/$with_docdir"
24576 else
24577 docdir='$(datarootdir)'
24582 # Check whether --with-htmldir or --without-htmldir was given.
24583 if test "${with_htmldir+set}" = set; then
24584 withval="$with_htmldir"
24585 htmldir="\${prefix}/$with_htmldir"
24586 else
24587 htmldir='$(docdir)'
24591 # Substitute configuration variables
24650 # Echo link setup.
24651 if test x${build} = x${host} ; then
24652 if test x${host} = x${target} ; then
24653 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24654 else
24655 echo "Links are now set up to build a cross-compiler" 1>&2
24656 echo " from ${host} to ${target}." 1>&2
24658 else
24659 if test x${host} = x${target} ; then
24660 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24661 echo " for ${target}." 1>&2
24662 else
24663 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24664 echo " from ${host} to ${target}." 1>&2
24676 if test "x${CLOOGLIBS}" != "x" ; then
24678 cat >>confdefs.h <<\_ACEOF
24679 #define HAVE_cloog 1
24680 _ACEOF
24684 # Check for plugin support
24685 # Check whether --enable-plugin or --disable-plugin was given.
24686 if test "${enable_plugin+set}" = set; then
24687 enableval="$enable_plugin"
24688 enable_plugin=$enableval
24689 else
24690 enable_plugin=yes; default_plugin=yes
24693 pluginlibs=
24694 if test x"$enable_plugin" = x"yes"; then
24695 # Check that the host supports -rdynamic and -ldl
24696 have_rdynamic=no
24697 have_dl=no
24698 saved_LDFLAGS="$LDFLAGS"
24699 saved_LIBS="$LIBS"
24700 LIBS=
24702 # Check -rdynamic
24703 LDFLAGS="$LDFLAGS -rdynamic"
24704 echo "$as_me:$LINENO: checking for -rdynamic" >&5
24705 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24714 main ()
24716 return 0;
24718 return 0;
24720 _ACEOF
24721 rm -f conftest.$ac_objext conftest$ac_exeext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24723 (eval $ac_link) 2>conftest.er1
24724 ac_status=$?
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -z "$ac_c_werror_flag"
24731 || test ! -s conftest.err'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 echo "$as_me:$LINENO: result: yes" >&5
24744 echo "${ECHO_T}yes" >&6; have_rdynamic=yes
24745 else
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 echo "$as_me:$LINENO: result: no" >&5
24750 echo "${ECHO_T}no" >&6
24752 rm -f conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24754 if test x"$have_rdynamic" = x"yes" ; then
24755 pluginlibs="-rdynamic"
24758 # Check -ldl
24759 LDFLAGS="$LDFLAGS -ldl"
24760 echo "$as_me:$LINENO: checking for -ldl" >&5
24761 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
24762 cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h. */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 #include <dlfcn.h>
24770 main ()
24772 volatile int f = 0; if (f) dlopen ("dummy", 0);
24774 return 0;
24776 _ACEOF
24777 rm -f conftest.$ac_objext conftest$ac_exeext
24778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24779 (eval $ac_link) 2>conftest.er1
24780 ac_status=$?
24781 grep -v '^ *+' conftest.er1 >conftest.err
24782 rm -f conftest.er1
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } &&
24786 { ac_try='test -z "$ac_c_werror_flag"
24787 || test ! -s conftest.err'
24788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); }; } &&
24793 { ac_try='test -s conftest$ac_exeext'
24794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24798 (exit $ac_status); }; }; then
24799 echo "$as_me:$LINENO: result: yes" >&5
24800 echo "${ECHO_T}yes" >&6; have_dl=yes
24801 else
24802 echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24805 echo "$as_me:$LINENO: result: no" >&5
24806 echo "${ECHO_T}no" >&6
24808 rm -f conftest.err conftest.$ac_objext \
24809 conftest$ac_exeext conftest.$ac_ext
24810 if test x"$have_dl" = x"yes"; then
24811 pluginlibs="$pluginlibs -ldl"
24814 # Check that we can build shared objects with -fPIC -shared
24815 LDFLAGS="$LDFLAGS -fPIC -shared"
24816 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
24817 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
24818 cat >conftest.$ac_ext <<_ACEOF
24819 /* confdefs.h. */
24820 _ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h. */
24824 extern int X;
24826 main ()
24828 return X == 0;
24830 return 0;
24832 _ACEOF
24833 rm -f conftest.$ac_objext conftest$ac_exeext
24834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24835 (eval $ac_link) 2>conftest.er1
24836 ac_status=$?
24837 grep -v '^ *+' conftest.er1 >conftest.err
24838 rm -f conftest.er1
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } &&
24842 { ac_try='test -z "$ac_c_werror_flag"
24843 || test ! -s conftest.err'
24844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845 (eval $ac_try) 2>&5
24846 ac_status=$?
24847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848 (exit $ac_status); }; } &&
24849 { ac_try='test -s conftest$ac_exeext'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; }; then
24855 echo "$as_me:$LINENO: result: yes" >&5
24856 echo "${ECHO_T}yes" >&6; have_pic_shared=yes
24857 else
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 echo "$as_me:$LINENO: result: no" >&5
24862 echo "${ECHO_T}no" >&6; have_pic_shared=no
24864 rm -f conftest.err conftest.$ac_objext \
24865 conftest$ac_exeext conftest.$ac_ext
24866 if test x"$have_pic_shared" != x"yes"; then
24867 pluginlibs=
24868 enable_plugin=no
24871 # If plugin support had been requested but not available, fail.
24872 if test x"$enable_plugin" = x"no" ; then
24873 if test x"$default_plugin" != x"yes"; then
24874 { { echo "$as_me:$LINENO: error:
24875 Building GCC with plugin support requires a host that supports
24876 -fPIC, -shared, -ldl and -rdynamic." >&5
24877 echo "$as_me: error:
24878 Building GCC with plugin support requires a host that supports
24879 -fPIC, -shared, -ldl and -rdynamic." >&2;}
24880 { (exit 1); exit 1; }; }
24884 LDFLAGS="$saved_LDFLAGS"
24885 LIBS="$saved_LIBS"
24890 if test x"$enable_plugin" = x"yes"; then
24892 cat >>confdefs.h <<\_ACEOF
24893 #define ENABLE_PLUGIN 1
24894 _ACEOF
24898 # Configure the subdirectories
24899 # AC_CONFIG_SUBDIRS($subdirs)
24901 # Create the Makefile
24902 # and configure language subdirectories
24903 ac_config_files="$ac_config_files $all_outputs"
24906 ac_config_commands="$ac_config_commands default"
24908 cat >confcache <<\_ACEOF
24909 # This file is a shell script that caches the results of configure
24910 # tests run on this system so they can be shared between configure
24911 # scripts and configure runs, see configure's option --config-cache.
24912 # It is not useful on other systems. If it contains results you don't
24913 # want to keep, you may remove or edit it.
24915 # config.status only pays attention to the cache file if you give it
24916 # the --recheck option to rerun configure.
24918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24920 # following values.
24922 _ACEOF
24924 # The following way of writing the cache mishandles newlines in values,
24925 # but we know of no workaround that is simple, portable, and efficient.
24926 # So, don't put newlines in cache variables' values.
24927 # Ultrix sh set writes to stderr and can't be redirected directly,
24928 # and sets the high bit in the cache file unless we assign to the vars.
24930 (set) 2>&1 |
24931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24932 *ac_space=\ *)
24933 # `set' does not quote correctly, so add quotes (double-quote
24934 # substitution turns \\\\ into \\, and sed turns \\ into \).
24935 sed -n \
24936 "s/'/'\\\\''/g;
24937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24940 # `set' quotes correctly as required by POSIX, so do not add quotes.
24941 sed -n \
24942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24944 esac;
24946 sed '
24947 t clear
24948 : clear
24949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24950 t end
24951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24952 : end' >>confcache
24953 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24954 if test -w $cache_file; then
24955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24956 cat confcache >$cache_file
24957 else
24958 echo "not updating unwritable cache $cache_file"
24961 rm -f confcache
24963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24964 # Let make expand exec_prefix.
24965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24967 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24968 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24969 # trailing colons and then remove the whole line if VPATH becomes empty
24970 # (actually we leave an empty line to preserve line numbers).
24971 if test "x$srcdir" = x.; then
24972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24973 s/:*\$(srcdir):*/:/;
24974 s/:*\${srcdir}:*/:/;
24975 s/:*@srcdir@:*/:/;
24976 s/^\([^=]*=[ ]*\):*/\1/;
24977 s/:*$//;
24978 s/^[^=]*=[ ]*$//;
24982 DEFS=-DHAVE_CONFIG_H
24984 ac_libobjs=
24985 ac_ltlibobjs=
24986 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24987 # 1. Remove the extension, and $U if already installed.
24988 ac_i=`echo "$ac_i" |
24989 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24990 # 2. Add them.
24991 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24992 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24993 done
24994 LIBOBJS=$ac_libobjs
24996 LTLIBOBJS=$ac_ltlibobjs
25000 : ${CONFIG_STATUS=./config.status}
25001 ac_clean_files_save=$ac_clean_files
25002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25003 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25004 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25005 cat >$CONFIG_STATUS <<_ACEOF
25006 #! $SHELL
25007 # Generated by $as_me.
25008 # Run this file to recreate the current configuration.
25009 # Compiler output produced by configure, useful for debugging
25010 # configure, is in config.log if it exists.
25012 debug=false
25013 ac_cs_recheck=false
25014 ac_cs_silent=false
25015 SHELL=\${CONFIG_SHELL-$SHELL}
25016 _ACEOF
25018 cat >>$CONFIG_STATUS <<\_ACEOF
25019 ## --------------------- ##
25020 ## M4sh Initialization. ##
25021 ## --------------------- ##
25023 # Be Bourne compatible
25024 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25025 emulate sh
25026 NULLCMD=:
25027 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25028 # is contrary to our usage. Disable this feature.
25029 alias -g '${1+"$@"}'='"$@"'
25030 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25031 set -o posix
25033 DUALCASE=1; export DUALCASE # for MKS sh
25035 # Support unset when possible.
25036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25037 as_unset=unset
25038 else
25039 as_unset=false
25043 # Work around bugs in pre-3.0 UWIN ksh.
25044 $as_unset ENV MAIL MAILPATH
25045 PS1='$ '
25046 PS2='> '
25047 PS4='+ '
25049 # NLS nuisances.
25050 for as_var in \
25051 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25052 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25053 LC_TELEPHONE LC_TIME
25055 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25056 eval $as_var=C; export $as_var
25057 else
25058 $as_unset $as_var
25060 done
25062 # Required to use basename.
25063 if expr a : '\(a\)' >/dev/null 2>&1; then
25064 as_expr=expr
25065 else
25066 as_expr=false
25069 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25070 as_basename=basename
25071 else
25072 as_basename=false
25076 # Name of the executable.
25077 as_me=`$as_basename "$0" ||
25078 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25079 X"$0" : 'X\(//\)$' \| \
25080 X"$0" : 'X\(/\)$' \| \
25081 . : '\(.\)' 2>/dev/null ||
25082 echo X/"$0" |
25083 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25084 /^X\/\(\/\/\)$/{ s//\1/; q; }
25085 /^X\/\(\/\).*/{ s//\1/; q; }
25086 s/.*/./; q'`
25089 # PATH needs CR, and LINENO needs CR and PATH.
25090 # Avoid depending upon Character Ranges.
25091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25094 as_cr_digits='0123456789'
25095 as_cr_alnum=$as_cr_Letters$as_cr_digits
25097 # The user is always right.
25098 if test "${PATH_SEPARATOR+set}" != set; then
25099 echo "#! /bin/sh" >conf$$.sh
25100 echo "exit 0" >>conf$$.sh
25101 chmod +x conf$$.sh
25102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25103 PATH_SEPARATOR=';'
25104 else
25105 PATH_SEPARATOR=:
25107 rm -f conf$$.sh
25111 as_lineno_1=$LINENO
25112 as_lineno_2=$LINENO
25113 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25114 test "x$as_lineno_1" != "x$as_lineno_2" &&
25115 test "x$as_lineno_3" = "x$as_lineno_2" || {
25116 # Find who we are. Look in the path if we contain no path at all
25117 # relative or not.
25118 case $0 in
25119 *[\\/]* ) as_myself=$0 ;;
25120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25121 for as_dir in $PATH
25123 IFS=$as_save_IFS
25124 test -z "$as_dir" && as_dir=.
25125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25126 done
25129 esac
25130 # We did not find ourselves, most probably we were run as `sh COMMAND'
25131 # in which case we are not to be found in the path.
25132 if test "x$as_myself" = x; then
25133 as_myself=$0
25135 if test ! -f "$as_myself"; then
25136 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25137 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25138 { (exit 1); exit 1; }; }
25140 case $CONFIG_SHELL in
25142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25143 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25145 IFS=$as_save_IFS
25146 test -z "$as_dir" && as_dir=.
25147 for as_base in sh bash ksh sh5; do
25148 case $as_dir in
25150 if ("$as_dir/$as_base" -c '
25151 as_lineno_1=$LINENO
25152 as_lineno_2=$LINENO
25153 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25154 test "x$as_lineno_1" != "x$as_lineno_2" &&
25155 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25156 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25157 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25158 CONFIG_SHELL=$as_dir/$as_base
25159 export CONFIG_SHELL
25160 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25161 fi;;
25162 esac
25163 done
25164 done
25166 esac
25168 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25169 # uniformly replaced by the line number. The first 'sed' inserts a
25170 # line-number line before each line; the second 'sed' does the real
25171 # work. The second script uses 'N' to pair each line-number line
25172 # with the numbered line, and appends trailing '-' during
25173 # substitution so that $LINENO is not a special case at line end.
25174 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25175 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25176 sed '=' <$as_myself |
25177 sed '
25179 s,$,-,
25180 : loop
25181 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25182 t loop
25183 s,-$,,
25184 s,^['$as_cr_digits']*\n,,
25185 ' >$as_me.lineno &&
25186 chmod +x $as_me.lineno ||
25187 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25188 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25189 { (exit 1); exit 1; }; }
25191 # Don't try to exec as it changes $[0], causing all sort of problems
25192 # (the dirname of $[0] is not the place where we might find the
25193 # original and so on. Autoconf is especially sensible to this).
25194 . ./$as_me.lineno
25195 # Exit status is that of the last command.
25196 exit
25200 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25201 *c*,-n*) ECHO_N= ECHO_C='
25202 ' ECHO_T=' ' ;;
25203 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25204 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25205 esac
25207 if expr a : '\(a\)' >/dev/null 2>&1; then
25208 as_expr=expr
25209 else
25210 as_expr=false
25213 rm -f conf$$ conf$$.exe conf$$.file
25214 echo >conf$$.file
25215 if ln -s conf$$.file conf$$ 2>/dev/null; then
25216 # We could just check for DJGPP; but this test a) works b) is more generic
25217 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25218 if test -f conf$$.exe; then
25219 # Don't use ln at all; we don't have any links
25220 as_ln_s='cp -p'
25221 else
25222 as_ln_s='ln -s'
25224 elif ln conf$$.file conf$$ 2>/dev/null; then
25225 as_ln_s=ln
25226 else
25227 as_ln_s='cp -p'
25229 rm -f conf$$ conf$$.exe conf$$.file
25231 if mkdir -p . 2>/dev/null; then
25232 as_mkdir_p=:
25233 else
25234 test -d ./-p && rmdir ./-p
25235 as_mkdir_p=false
25238 as_executable_p="test -f"
25240 # Sed expression to map a string onto a valid CPP name.
25241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25243 # Sed expression to map a string onto a valid variable name.
25244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25247 # IFS
25248 # We need space, tab and new line, in precisely that order.
25249 as_nl='
25251 IFS=" $as_nl"
25253 # CDPATH.
25254 $as_unset CDPATH
25256 exec 6>&1
25258 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25259 # report actual input values of CONFIG_FILES etc. instead of their
25260 # values after options handling. Logging --version etc. is OK.
25261 exec 5>>config.log
25263 echo
25264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25265 ## Running $as_me. ##
25266 _ASBOX
25267 } >&5
25268 cat >&5 <<_CSEOF
25270 This file was extended by $as_me, which was
25271 generated by GNU Autoconf 2.59. Invocation command line was
25273 CONFIG_FILES = $CONFIG_FILES
25274 CONFIG_HEADERS = $CONFIG_HEADERS
25275 CONFIG_LINKS = $CONFIG_LINKS
25276 CONFIG_COMMANDS = $CONFIG_COMMANDS
25277 $ $0 $@
25279 _CSEOF
25280 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25281 echo >&5
25282 _ACEOF
25284 # Files that config.status was made for.
25285 if test -n "$ac_config_files"; then
25286 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25289 if test -n "$ac_config_headers"; then
25290 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25293 if test -n "$ac_config_links"; then
25294 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25297 if test -n "$ac_config_commands"; then
25298 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25301 cat >>$CONFIG_STATUS <<\_ACEOF
25303 ac_cs_usage="\
25304 \`$as_me' instantiates files from templates according to the
25305 current configuration.
25307 Usage: $0 [OPTIONS] [FILE]...
25309 -h, --help print this help, then exit
25310 -V, --version print version number, then exit
25311 -q, --quiet do not print progress messages
25312 -d, --debug don't remove temporary files
25313 --recheck update $as_me by reconfiguring in the same conditions
25314 --file=FILE[:TEMPLATE]
25315 instantiate the configuration file FILE
25316 --header=FILE[:TEMPLATE]
25317 instantiate the configuration header FILE
25319 Configuration files:
25320 $config_files
25322 Configuration headers:
25323 $config_headers
25325 Configuration commands:
25326 $config_commands
25328 Report bugs to <bug-autoconf@gnu.org>."
25329 _ACEOF
25331 cat >>$CONFIG_STATUS <<_ACEOF
25332 ac_cs_version="\\
25333 config.status
25334 configured by $0, generated by GNU Autoconf 2.59,
25335 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25337 Copyright (C) 2003 Free Software Foundation, Inc.
25338 This config.status script is free software; the Free Software Foundation
25339 gives unlimited permission to copy, distribute and modify it."
25340 srcdir=$srcdir
25341 _ACEOF
25343 cat >>$CONFIG_STATUS <<\_ACEOF
25344 # If no file are specified by the user, then we need to provide default
25345 # value. By we need to know if files were specified by the user.
25346 ac_need_defaults=:
25347 while test $# != 0
25349 case $1 in
25350 --*=*)
25351 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25352 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25353 ac_shift=:
25356 ac_option=$1
25357 ac_optarg=$2
25358 ac_shift=shift
25360 *) # This is not an option, so the user has probably given explicit
25361 # arguments.
25362 ac_option=$1
25363 ac_need_defaults=false;;
25364 esac
25366 case $ac_option in
25367 # Handling of the options.
25368 _ACEOF
25369 cat >>$CONFIG_STATUS <<\_ACEOF
25370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25371 ac_cs_recheck=: ;;
25372 --version | --vers* | -V )
25373 echo "$ac_cs_version"; exit 0 ;;
25374 --he | --h)
25375 # Conflict between --help and --header
25376 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25377 Try \`$0 --help' for more information." >&5
25378 echo "$as_me: error: ambiguous option: $1
25379 Try \`$0 --help' for more information." >&2;}
25380 { (exit 1); exit 1; }; };;
25381 --help | --hel | -h )
25382 echo "$ac_cs_usage"; exit 0 ;;
25383 --debug | --d* | -d )
25384 debug=: ;;
25385 --file | --fil | --fi | --f )
25386 $ac_shift
25387 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25388 ac_need_defaults=false;;
25389 --header | --heade | --head | --hea )
25390 $ac_shift
25391 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25392 ac_need_defaults=false;;
25393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25395 ac_cs_silent=: ;;
25397 # This is an error.
25398 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25399 Try \`$0 --help' for more information." >&5
25400 echo "$as_me: error: unrecognized option: $1
25401 Try \`$0 --help' for more information." >&2;}
25402 { (exit 1); exit 1; }; } ;;
25404 *) ac_config_targets="$ac_config_targets $1" ;;
25406 esac
25407 shift
25408 done
25410 ac_configure_extra_args=
25412 if $ac_cs_silent; then
25413 exec 6>/dev/null
25414 ac_configure_extra_args="$ac_configure_extra_args --silent"
25417 _ACEOF
25418 cat >>$CONFIG_STATUS <<_ACEOF
25419 if \$ac_cs_recheck; then
25420 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25421 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25424 _ACEOF
25426 cat >>$CONFIG_STATUS <<_ACEOF
25428 # INIT-COMMANDS section.
25431 subdirs='$subdirs'
25433 _ACEOF
25437 cat >>$CONFIG_STATUS <<\_ACEOF
25438 for ac_config_target in $ac_config_targets
25440 case "$ac_config_target" in
25441 # Handling of arguments.
25442 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25443 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25444 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25445 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25446 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25447 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25448 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25449 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25450 { (exit 1); exit 1; }; };;
25451 esac
25452 done
25454 # If the user did not use the arguments to specify the items to instantiate,
25455 # then the envvar interface is used. Set only those that are not.
25456 # We use the long form for the default assignment because of an extremely
25457 # bizarre bug on SunOS 4.1.3.
25458 if $ac_need_defaults; then
25459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25461 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25464 # Have a temporary directory for convenience. Make it in the build tree
25465 # simply because there is no reason to put it here, and in addition,
25466 # creating and moving files from /tmp can sometimes cause problems.
25467 # Create a temporary directory, and hook for its removal unless debugging.
25468 $debug ||
25470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25471 trap '{ (exit 1); exit 1; }' 1 2 13 15
25474 # Create a (secure) tmp directory for tmp files.
25477 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25478 test -n "$tmp" && test -d "$tmp"
25479 } ||
25481 tmp=./confstat$$-$RANDOM
25482 (umask 077 && mkdir $tmp)
25483 } ||
25485 echo "$me: cannot create a temporary directory in ." >&2
25486 { (exit 1); exit 1; }
25489 _ACEOF
25491 cat >>$CONFIG_STATUS <<_ACEOF
25494 # CONFIG_FILES section.
25497 # No need to generate the scripts if there are no CONFIG_FILES.
25498 # This happens for instance when ./config.status config.h
25499 if test -n "\$CONFIG_FILES"; then
25500 # Protect against being on the right side of a sed subst in config.status.
25501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25503 s,@SHELL@,$SHELL,;t t
25504 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25505 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25506 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25507 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25508 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25509 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25510 s,@exec_prefix@,$exec_prefix,;t t
25511 s,@prefix@,$prefix,;t t
25512 s,@program_transform_name@,$program_transform_name,;t t
25513 s,@bindir@,$bindir,;t t
25514 s,@sbindir@,$sbindir,;t t
25515 s,@libexecdir@,$libexecdir,;t t
25516 s,@datadir@,$datadir,;t t
25517 s,@sysconfdir@,$sysconfdir,;t t
25518 s,@sharedstatedir@,$sharedstatedir,;t t
25519 s,@localstatedir@,$localstatedir,;t t
25520 s,@libdir@,$libdir,;t t
25521 s,@includedir@,$includedir,;t t
25522 s,@oldincludedir@,$oldincludedir,;t t
25523 s,@infodir@,$infodir,;t t
25524 s,@mandir@,$mandir,;t t
25525 s,@build_alias@,$build_alias,;t t
25526 s,@host_alias@,$host_alias,;t t
25527 s,@target_alias@,$target_alias,;t t
25528 s,@DEFS@,$DEFS,;t t
25529 s,@ECHO_C@,$ECHO_C,;t t
25530 s,@ECHO_N@,$ECHO_N,;t t
25531 s,@ECHO_T@,$ECHO_T,;t t
25532 s,@LIBS@,$LIBS,;t t
25533 s,@build@,$build,;t t
25534 s,@build_cpu@,$build_cpu,;t t
25535 s,@build_vendor@,$build_vendor,;t t
25536 s,@build_os@,$build_os,;t t
25537 s,@host@,$host,;t t
25538 s,@host_cpu@,$host_cpu,;t t
25539 s,@host_vendor@,$host_vendor,;t t
25540 s,@host_os@,$host_os,;t t
25541 s,@target@,$target,;t t
25542 s,@target_cpu@,$target_cpu,;t t
25543 s,@target_vendor@,$target_vendor,;t t
25544 s,@target_os@,$target_os,;t t
25545 s,@target_noncanonical@,$target_noncanonical,;t t
25546 s,@build_libsubdir@,$build_libsubdir,;t t
25547 s,@build_subdir@,$build_subdir,;t t
25548 s,@host_subdir@,$host_subdir,;t t
25549 s,@target_subdir@,$target_subdir,;t t
25550 s,@GENINSRC@,$GENINSRC,;t t
25551 s,@CC@,$CC,;t t
25552 s,@CFLAGS@,$CFLAGS,;t t
25553 s,@LDFLAGS@,$LDFLAGS,;t t
25554 s,@CPPFLAGS@,$CPPFLAGS,;t t
25555 s,@ac_ct_CC@,$ac_ct_CC,;t t
25556 s,@EXEEXT@,$EXEEXT,;t t
25557 s,@OBJEXT@,$OBJEXT,;t t
25558 s,@GNATBIND@,$GNATBIND,;t t
25559 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
25560 s,@GNATMAKE@,$GNATMAKE,;t t
25561 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
25562 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
25563 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
25564 s,@CPP@,$CPP,;t t
25565 s,@EGREP@,$EGREP,;t t
25566 s,@loose_warn@,$loose_warn,;t t
25567 s,@strict_warn@,$strict_warn,;t t
25568 s,@warn_cflags@,$warn_cflags,;t t
25569 s,@nocommon_flag@,$nocommon_flag,;t t
25570 s,@TREEBROWSER@,$TREEBROWSER,;t t
25571 s,@valgrind_path@,$valgrind_path,;t t
25572 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
25573 s,@valgrind_command@,$valgrind_command,;t t
25574 s,@coverage_flags@,$coverage_flags,;t t
25575 s,@enable_multilib@,$enable_multilib,;t t
25576 s,@enable_decimal_float@,$enable_decimal_float,;t t
25577 s,@enable_fixed_point@,$enable_fixed_point,;t t
25578 s,@enable_shared@,$enable_shared,;t t
25579 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25580 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25581 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
25582 s,@onestep@,$onestep,;t t
25583 s,@PKGVERSION@,$PKGVERSION,;t t
25584 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
25585 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
25586 s,@datarootdir@,$datarootdir,;t t
25587 s,@docdir@,$docdir,;t t
25588 s,@htmldir@,$htmldir,;t t
25589 s,@SET_MAKE@,$SET_MAKE,;t t
25590 s,@AWK@,$AWK,;t t
25591 s,@LN_S@,$LN_S,;t t
25592 s,@LN@,$LN,;t t
25593 s,@RANLIB@,$RANLIB,;t t
25594 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25595 s,@ranlib_flags@,$ranlib_flags,;t t
25596 s,@INSTALL@,$INSTALL,;t t
25597 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25598 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25599 s,@make_compare_target@,$make_compare_target,;t t
25600 s,@have_mktemp_command@,$have_mktemp_command,;t t
25601 s,@MAKEINFO@,$MAKEINFO,;t t
25602 s,@BUILD_INFO@,$BUILD_INFO,;t t
25603 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
25604 s,@FLEX@,$FLEX,;t t
25605 s,@BISON@,$BISON,;t t
25606 s,@NM@,$NM,;t t
25607 s,@AR@,$AR,;t t
25608 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
25609 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
25610 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
25611 s,@LIBICONV@,$LIBICONV,;t t
25612 s,@LTLIBICONV@,$LTLIBICONV,;t t
25613 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
25614 s,@manext@,$manext,;t t
25615 s,@objext@,$objext,;t t
25616 s,@gthread_flags@,$gthread_flags,;t t
25617 s,@extra_modes_file@,$extra_modes_file,;t t
25618 s,@extra_opt_files@,$extra_opt_files,;t t
25619 s,@USE_NLS@,$USE_NLS,;t t
25620 s,@LIBINTL@,$LIBINTL,;t t
25621 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
25622 s,@INCINTL@,$INCINTL,;t t
25623 s,@XGETTEXT@,$XGETTEXT,;t t
25624 s,@GMSGFMT@,$GMSGFMT,;t t
25625 s,@POSUB@,$POSUB,;t t
25626 s,@CATALOGS@,$CATALOGS,;t t
25627 s,@DATADIRNAME@,$DATADIRNAME,;t t
25628 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25629 s,@GENCAT@,$GENCAT,;t t
25630 s,@CATOBJEXT@,$CATOBJEXT,;t t
25631 s,@CROSS@,$CROSS,;t t
25632 s,@ALL@,$ALL,;t t
25633 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
25634 s,@inhibit_libc@,$inhibit_libc,;t t
25635 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
25636 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
25637 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
25638 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
25639 s,@collect2@,$collect2,;t t
25640 s,@LIBTOOL@,$LIBTOOL,;t t
25641 s,@SED@,$SED,;t t
25642 s,@FGREP@,$FGREP,;t t
25643 s,@GREP@,$GREP,;t t
25644 s,@LD@,$LD,;t t
25645 s,@DUMPBIN@,$DUMPBIN,;t t
25646 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
25647 s,@OBJDUMP@,$OBJDUMP,;t t
25648 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
25649 s,@ac_ct_AR@,$ac_ct_AR,;t t
25650 s,@STRIP@,$STRIP,;t t
25651 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25652 s,@lt_ECHO@,$lt_ECHO,;t t
25653 s,@DSYMUTIL@,$DSYMUTIL,;t t
25654 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
25655 s,@NMEDIT@,$NMEDIT,;t t
25656 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
25657 s,@LIPO@,$LIPO,;t t
25658 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
25659 s,@OTOOL@,$OTOOL,;t t
25660 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
25661 s,@OTOOL64@,$OTOOL64,;t t
25662 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
25663 s,@objdir@,$objdir,;t t
25664 s,@enable_fast_install@,$enable_fast_install,;t t
25665 s,@gcc_cv_as@,$gcc_cv_as,;t t
25666 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
25667 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
25668 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
25669 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
25670 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
25671 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
25672 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
25673 s,@libgcc_visibility@,$libgcc_visibility,;t t
25674 s,@GGC@,$GGC,;t t
25675 s,@zlibdir@,$zlibdir,;t t
25676 s,@zlibinc@,$zlibinc,;t t
25677 s,@MAINT@,$MAINT,;t t
25678 s,@gcc_tooldir@,$gcc_tooldir,;t t
25679 s,@dollar@,$dollar,;t t
25680 s,@slibdir@,$slibdir,;t t
25681 s,@subdirs@,$subdirs,;t t
25682 s,@srcdir@,$srcdir,;t t
25683 s,@all_compilers@,$all_compilers,;t t
25684 s,@all_gtfiles@,$all_gtfiles,;t t
25685 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
25686 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
25687 s,@all_languages@,$all_languages,;t t
25688 s,@all_selected_languages@,$all_selected_languages,;t t
25689 s,@build_exeext@,$build_exeext,;t t
25690 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
25691 s,@build_xm_file_list@,$build_xm_file_list,;t t
25692 s,@build_xm_include_list@,$build_xm_include_list,;t t
25693 s,@build_xm_defines@,$build_xm_defines,;t t
25694 s,@build_file_translate@,$build_file_translate,;t t
25695 s,@check_languages@,$check_languages,;t t
25696 s,@cpp_install_dir@,$cpp_install_dir,;t t
25697 s,@xmake_file@,$xmake_file,;t t
25698 s,@tmake_file@,$tmake_file,;t t
25699 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
25700 s,@extra_headers_list@,$extra_headers_list,;t t
25701 s,@extra_objs@,$extra_objs,;t t
25702 s,@extra_parts@,$extra_parts,;t t
25703 s,@extra_passes@,$extra_passes,;t t
25704 s,@extra_programs@,$extra_programs,;t t
25705 s,@float_h_file@,$float_h_file,;t t
25706 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
25707 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
25708 s,@host_exeext@,$host_exeext,;t t
25709 s,@host_xm_file_list@,$host_xm_file_list,;t t
25710 s,@host_xm_include_list@,$host_xm_include_list,;t t
25711 s,@host_xm_defines@,$host_xm_defines,;t t
25712 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
25713 s,@install@,$install,;t t
25714 s,@lang_opt_files@,$lang_opt_files,;t t
25715 s,@lang_specs_files@,$lang_specs_files,;t t
25716 s,@lang_tree_files@,$lang_tree_files,;t t
25717 s,@local_prefix@,$local_prefix,;t t
25718 s,@md_file@,$md_file,;t t
25719 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
25720 s,@out_file@,$out_file,;t t
25721 s,@out_object_file@,$out_object_file,;t t
25722 s,@thread_file@,$thread_file,;t t
25723 s,@tm_file_list@,$tm_file_list,;t t
25724 s,@tm_include_list@,$tm_include_list,;t t
25725 s,@tm_defines@,$tm_defines,;t t
25726 s,@tm_p_file_list@,$tm_p_file_list,;t t
25727 s,@tm_p_include_list@,$tm_p_include_list,;t t
25728 s,@xm_file_list@,$xm_file_list,;t t
25729 s,@xm_include_list@,$xm_include_list,;t t
25730 s,@xm_defines@,$xm_defines,;t t
25731 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
25732 s,@c_target_objs@,$c_target_objs,;t t
25733 s,@cxx_target_objs@,$cxx_target_objs,;t t
25734 s,@fortran_target_objs@,$fortran_target_objs,;t t
25735 s,@target_cpu_default@,$target_cpu_default,;t t
25736 s,@GMPLIBS@,$GMPLIBS,;t t
25737 s,@GMPINC@,$GMPINC,;t t
25738 s,@PPLLIBS@,$PPLLIBS,;t t
25739 s,@PPLINC@,$PPLINC,;t t
25740 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
25741 s,@CLOOGINC@,$CLOOGINC,;t t
25742 s,@pluginlibs@,$pluginlibs,;t t
25743 s,@enable_plugin@,$enable_plugin,;t t
25744 s,@LIBOBJS@,$LIBOBJS,;t t
25745 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25746 /@language_hooks@/r $language_hooks
25747 s,@language_hooks@,,;t t
25748 CEOF
25750 _ACEOF
25752 cat >>$CONFIG_STATUS <<\_ACEOF
25753 # Split the substitutions into bite-sized pieces for seds with
25754 # small command number limits, like on Digital OSF/1 and HP-UX.
25755 ac_max_sed_lines=48
25756 ac_sed_frag=1 # Number of current file.
25757 ac_beg=1 # First line for current file.
25758 ac_end=$ac_max_sed_lines # Line after last line for current file.
25759 ac_more_lines=:
25760 ac_sed_cmds=
25761 while $ac_more_lines; do
25762 if test $ac_beg -gt 1; then
25763 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25764 else
25765 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25767 if test ! -s $tmp/subs.frag; then
25768 ac_more_lines=false
25769 else
25770 # The purpose of the label and of the branching condition is to
25771 # speed up the sed processing (if there are no `@' at all, there
25772 # is no need to browse any of the substitutions).
25773 # These are the two extra sed commands mentioned above.
25774 (echo ':t
25775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25776 if test -z "$ac_sed_cmds"; then
25777 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25778 else
25779 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25781 ac_sed_frag=`expr $ac_sed_frag + 1`
25782 ac_beg=$ac_end
25783 ac_end=`expr $ac_end + $ac_max_sed_lines`
25785 done
25786 if test -z "$ac_sed_cmds"; then
25787 ac_sed_cmds=cat
25789 fi # test -n "$CONFIG_FILES"
25791 _ACEOF
25792 cat >>$CONFIG_STATUS <<\_ACEOF
25793 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25795 case $ac_file in
25796 - | *:- | *:-:* ) # input from stdin
25797 cat >$tmp/stdin
25798 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25800 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25802 * ) ac_file_in=$ac_file.in ;;
25803 esac
25805 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25806 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25808 X"$ac_file" : 'X\(//\)[^/]' \| \
25809 X"$ac_file" : 'X\(//\)$' \| \
25810 X"$ac_file" : 'X\(/\)' \| \
25811 . : '\(.\)' 2>/dev/null ||
25812 echo X"$ac_file" |
25813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25815 /^X\(\/\/\)$/{ s//\1/; q; }
25816 /^X\(\/\).*/{ s//\1/; q; }
25817 s/.*/./; q'`
25818 { if $as_mkdir_p; then
25819 mkdir -p "$ac_dir"
25820 else
25821 as_dir="$ac_dir"
25822 as_dirs=
25823 while test ! -d "$as_dir"; do
25824 as_dirs="$as_dir $as_dirs"
25825 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25826 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25827 X"$as_dir" : 'X\(//\)[^/]' \| \
25828 X"$as_dir" : 'X\(//\)$' \| \
25829 X"$as_dir" : 'X\(/\)' \| \
25830 . : '\(.\)' 2>/dev/null ||
25831 echo X"$as_dir" |
25832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25834 /^X\(\/\/\)$/{ s//\1/; q; }
25835 /^X\(\/\).*/{ s//\1/; q; }
25836 s/.*/./; q'`
25837 done
25838 test ! -n "$as_dirs" || mkdir $as_dirs
25839 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25840 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25841 { (exit 1); exit 1; }; }; }
25843 ac_builddir=.
25845 if test "$ac_dir" != .; then
25846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25847 # A "../" for each directory in $ac_dir_suffix.
25848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25849 else
25850 ac_dir_suffix= ac_top_builddir=
25853 case $srcdir in
25854 .) # No --srcdir option. We are building in place.
25855 ac_srcdir=.
25856 if test -z "$ac_top_builddir"; then
25857 ac_top_srcdir=.
25858 else
25859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25860 fi ;;
25861 [\\/]* | ?:[\\/]* ) # Absolute path.
25862 ac_srcdir=$srcdir$ac_dir_suffix;
25863 ac_top_srcdir=$srcdir ;;
25864 *) # Relative path.
25865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25867 esac
25869 # Do not use `cd foo && pwd` to compute absolute paths, because
25870 # the directories may not exist.
25871 case `pwd` in
25872 .) ac_abs_builddir="$ac_dir";;
25874 case "$ac_dir" in
25875 .) ac_abs_builddir=`pwd`;;
25876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25878 esac;;
25879 esac
25880 case $ac_abs_builddir in
25881 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25883 case ${ac_top_builddir}. in
25884 .) ac_abs_top_builddir=$ac_abs_builddir;;
25885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25887 esac;;
25888 esac
25889 case $ac_abs_builddir in
25890 .) ac_abs_srcdir=$ac_srcdir;;
25892 case $ac_srcdir in
25893 .) ac_abs_srcdir=$ac_abs_builddir;;
25894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25896 esac;;
25897 esac
25898 case $ac_abs_builddir in
25899 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25901 case $ac_top_srcdir in
25902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25905 esac;;
25906 esac
25910 if test x"$ac_file" != x-; then
25911 { echo "$as_me:$LINENO: creating $ac_file" >&5
25912 echo "$as_me: creating $ac_file" >&6;}
25913 rm -f "$ac_file"
25915 # Let's still pretend it is `configure' which instantiates (i.e., don't
25916 # use $as_me), people would be surprised to read:
25917 # /* config.h. Generated by config.status. */
25918 if test x"$ac_file" = x-; then
25919 configure_input=
25920 else
25921 configure_input="$ac_file. "
25923 configure_input=$configure_input"Generated from `echo $ac_file_in |
25924 sed 's,.*/,,'` by configure."
25926 # First look for the input files in the build tree, otherwise in the
25927 # src tree.
25928 ac_file_inputs=`IFS=:
25929 for f in $ac_file_in; do
25930 case $f in
25931 -) echo $tmp/stdin ;;
25932 [\\/$]*)
25933 # Absolute (can't be DOS-style, as IFS=:)
25934 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25935 echo "$as_me: error: cannot find input file: $f" >&2;}
25936 { (exit 1); exit 1; }; }
25937 echo "$f";;
25938 *) # Relative
25939 if test -f "$f"; then
25940 # Build tree
25941 echo "$f"
25942 elif test -f "$srcdir/$f"; then
25943 # Source tree
25944 echo "$srcdir/$f"
25945 else
25946 # /dev/null tree
25947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25948 echo "$as_me: error: cannot find input file: $f" >&2;}
25949 { (exit 1); exit 1; }; }
25950 fi;;
25951 esac
25952 done` || { (exit 1); exit 1; }
25953 _ACEOF
25954 cat >>$CONFIG_STATUS <<_ACEOF
25955 sed "$ac_vpsub
25956 $extrasub
25957 _ACEOF
25958 cat >>$CONFIG_STATUS <<\_ACEOF
25960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25961 s,@configure_input@,$configure_input,;t t
25962 s,@srcdir@,$ac_srcdir,;t t
25963 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25964 s,@top_srcdir@,$ac_top_srcdir,;t t
25965 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25966 s,@builddir@,$ac_builddir,;t t
25967 s,@abs_builddir@,$ac_abs_builddir,;t t
25968 s,@top_builddir@,$ac_top_builddir,;t t
25969 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25970 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25971 rm -f $tmp/stdin
25972 if test x"$ac_file" != x-; then
25973 mv $tmp/out $ac_file
25974 else
25975 cat $tmp/out
25976 rm -f $tmp/out
25979 # Run the commands associated with the file.
25980 case $ac_file in
25981 as ) chmod +x as ;;
25982 collect-ld ) chmod +x collect-ld ;;
25983 nm ) chmod +x nm ;;
25984 esac
25985 done
25986 _ACEOF
25987 cat >>$CONFIG_STATUS <<\_ACEOF
25990 # CONFIG_HEADER section.
25993 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25994 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25996 # ac_d sets the value in "#define NAME VALUE" lines.
25997 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25998 ac_dB='[ ].*$,\1#\2'
25999 ac_dC=' '
26000 ac_dD=',;t'
26001 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
26002 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
26003 ac_uB='$,\1#\2define\3'
26004 ac_uC=' '
26005 ac_uD=',;t'
26007 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
26008 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26009 case $ac_file in
26010 - | *:- | *:-:* ) # input from stdin
26011 cat >$tmp/stdin
26012 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26013 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26014 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26015 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26016 * ) ac_file_in=$ac_file.in ;;
26017 esac
26019 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
26020 echo "$as_me: creating $ac_file" >&6;}
26022 # First look for the input files in the build tree, otherwise in the
26023 # src tree.
26024 ac_file_inputs=`IFS=:
26025 for f in $ac_file_in; do
26026 case $f in
26027 -) echo $tmp/stdin ;;
26028 [\\/$]*)
26029 # Absolute (can't be DOS-style, as IFS=:)
26030 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26031 echo "$as_me: error: cannot find input file: $f" >&2;}
26032 { (exit 1); exit 1; }; }
26033 # Do quote $f, to prevent DOS paths from being IFS'd.
26034 echo "$f";;
26035 *) # Relative
26036 if test -f "$f"; then
26037 # Build tree
26038 echo "$f"
26039 elif test -f "$srcdir/$f"; then
26040 # Source tree
26041 echo "$srcdir/$f"
26042 else
26043 # /dev/null tree
26044 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26045 echo "$as_me: error: cannot find input file: $f" >&2;}
26046 { (exit 1); exit 1; }; }
26047 fi;;
26048 esac
26049 done` || { (exit 1); exit 1; }
26050 # Remove the trailing spaces.
26051 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
26053 _ACEOF
26055 # Transform confdefs.h into two sed scripts, `conftest.defines' and
26056 # `conftest.undefs', that substitutes the proper values into
26057 # config.h.in to produce config.h. The first handles `#define'
26058 # templates, and the second `#undef' templates.
26059 # And first: Protect against being on the right side of a sed subst in
26060 # config.status. Protect against being in an unquoted here document
26061 # in config.status.
26062 rm -f conftest.defines conftest.undefs
26063 # Using a here document instead of a string reduces the quoting nightmare.
26064 # Putting comments in sed scripts is not portable.
26066 # `end' is used to avoid that the second main sed command (meant for
26067 # 0-ary CPP macros) applies to n-ary macro definitions.
26068 # See the Autoconf documentation for `clear'.
26069 cat >confdef2sed.sed <<\_ACEOF
26070 s/[\\&,]/\\&/g
26071 s,[\\$`],\\&,g
26072 t clear
26073 : clear
26074 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
26075 t end
26076 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
26077 : end
26078 _ACEOF
26079 # If some macros were called several times there might be several times
26080 # the same #defines, which is useless. Nevertheless, we may not want to
26081 # sort them, since we want the *last* AC-DEFINE to be honored.
26082 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
26083 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
26084 rm -f confdef2sed.sed
26086 # This sed command replaces #undef with comments. This is necessary, for
26087 # example, in the case of _POSIX_SOURCE, which is predefined and required
26088 # on some systems where configure will not decide to define it.
26089 cat >>conftest.undefs <<\_ACEOF
26090 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
26091 _ACEOF
26093 # Break up conftest.defines because some shells have a limit on the size
26094 # of here documents, and old seds have small limits too (100 cmds).
26095 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
26096 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
26097 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
26098 echo ' :' >>$CONFIG_STATUS
26099 rm -f conftest.tail
26100 while grep . conftest.defines >/dev/null
26102 # Write a limited-size here document to $tmp/defines.sed.
26103 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
26104 # Speed up: don't consider the non `#define' lines.
26105 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
26106 # Work around the forget-to-reset-the-flag bug.
26107 echo 't clr' >>$CONFIG_STATUS
26108 echo ': clr' >>$CONFIG_STATUS
26109 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
26110 echo 'CEOF
26111 sed -f $tmp/defines.sed $tmp/in >$tmp/out
26112 rm -f $tmp/in
26113 mv $tmp/out $tmp/in
26114 ' >>$CONFIG_STATUS
26115 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26116 rm -f conftest.defines
26117 mv conftest.tail conftest.defines
26118 done
26119 rm -f conftest.defines
26120 echo ' fi # grep' >>$CONFIG_STATUS
26121 echo >>$CONFIG_STATUS
26123 # Break up conftest.undefs because some shells have a limit on the size
26124 # of here documents, and old seds have small limits too (100 cmds).
26125 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26126 rm -f conftest.tail
26127 while grep . conftest.undefs >/dev/null
26129 # Write a limited-size here document to $tmp/undefs.sed.
26130 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26131 # Speed up: don't consider the non `#undef'
26132 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26133 # Work around the forget-to-reset-the-flag bug.
26134 echo 't clr' >>$CONFIG_STATUS
26135 echo ': clr' >>$CONFIG_STATUS
26136 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26137 echo 'CEOF
26138 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26139 rm -f $tmp/in
26140 mv $tmp/out $tmp/in
26141 ' >>$CONFIG_STATUS
26142 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26143 rm -f conftest.undefs
26144 mv conftest.tail conftest.undefs
26145 done
26146 rm -f conftest.undefs
26148 cat >>$CONFIG_STATUS <<\_ACEOF
26149 # Let's still pretend it is `configure' which instantiates (i.e., don't
26150 # use $as_me), people would be surprised to read:
26151 # /* config.h. Generated by config.status. */
26152 if test x"$ac_file" = x-; then
26153 echo "/* Generated by configure. */" >$tmp/config.h
26154 else
26155 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26157 cat $tmp/in >>$tmp/config.h
26158 rm -f $tmp/in
26159 if test x"$ac_file" != x-; then
26160 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26161 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26162 echo "$as_me: $ac_file is unchanged" >&6;}
26163 else
26164 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26166 X"$ac_file" : 'X\(//\)[^/]' \| \
26167 X"$ac_file" : 'X\(//\)$' \| \
26168 X"$ac_file" : 'X\(/\)' \| \
26169 . : '\(.\)' 2>/dev/null ||
26170 echo X"$ac_file" |
26171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26173 /^X\(\/\/\)$/{ s//\1/; q; }
26174 /^X\(\/\).*/{ s//\1/; q; }
26175 s/.*/./; q'`
26176 { if $as_mkdir_p; then
26177 mkdir -p "$ac_dir"
26178 else
26179 as_dir="$ac_dir"
26180 as_dirs=
26181 while test ! -d "$as_dir"; do
26182 as_dirs="$as_dir $as_dirs"
26183 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26185 X"$as_dir" : 'X\(//\)[^/]' \| \
26186 X"$as_dir" : 'X\(//\)$' \| \
26187 X"$as_dir" : 'X\(/\)' \| \
26188 . : '\(.\)' 2>/dev/null ||
26189 echo X"$as_dir" |
26190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26192 /^X\(\/\/\)$/{ s//\1/; q; }
26193 /^X\(\/\).*/{ s//\1/; q; }
26194 s/.*/./; q'`
26195 done
26196 test ! -n "$as_dirs" || mkdir $as_dirs
26197 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26198 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26199 { (exit 1); exit 1; }; }; }
26201 rm -f $ac_file
26202 mv $tmp/config.h $ac_file
26204 else
26205 cat $tmp/config.h
26206 rm -f $tmp/config.h
26208 done
26209 _ACEOF
26210 cat >>$CONFIG_STATUS <<\_ACEOF
26213 # CONFIG_COMMANDS section.
26215 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26216 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26217 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26218 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26219 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26220 X"$ac_dest" : 'X\(//\)[^/]' \| \
26221 X"$ac_dest" : 'X\(//\)$' \| \
26222 X"$ac_dest" : 'X\(/\)' \| \
26223 . : '\(.\)' 2>/dev/null ||
26224 echo X"$ac_dest" |
26225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26227 /^X\(\/\/\)$/{ s//\1/; q; }
26228 /^X\(\/\).*/{ s//\1/; q; }
26229 s/.*/./; q'`
26230 { if $as_mkdir_p; then
26231 mkdir -p "$ac_dir"
26232 else
26233 as_dir="$ac_dir"
26234 as_dirs=
26235 while test ! -d "$as_dir"; do
26236 as_dirs="$as_dir $as_dirs"
26237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26239 X"$as_dir" : 'X\(//\)[^/]' \| \
26240 X"$as_dir" : 'X\(//\)$' \| \
26241 X"$as_dir" : 'X\(/\)' \| \
26242 . : '\(.\)' 2>/dev/null ||
26243 echo X"$as_dir" |
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26246 /^X\(\/\/\)$/{ s//\1/; q; }
26247 /^X\(\/\).*/{ s//\1/; q; }
26248 s/.*/./; q'`
26249 done
26250 test ! -n "$as_dirs" || mkdir $as_dirs
26251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26252 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26253 { (exit 1); exit 1; }; }; }
26255 ac_builddir=.
26257 if test "$ac_dir" != .; then
26258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26259 # A "../" for each directory in $ac_dir_suffix.
26260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26261 else
26262 ac_dir_suffix= ac_top_builddir=
26265 case $srcdir in
26266 .) # No --srcdir option. We are building in place.
26267 ac_srcdir=.
26268 if test -z "$ac_top_builddir"; then
26269 ac_top_srcdir=.
26270 else
26271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26272 fi ;;
26273 [\\/]* | ?:[\\/]* ) # Absolute path.
26274 ac_srcdir=$srcdir$ac_dir_suffix;
26275 ac_top_srcdir=$srcdir ;;
26276 *) # Relative path.
26277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26279 esac
26281 # Do not use `cd foo && pwd` to compute absolute paths, because
26282 # the directories may not exist.
26283 case `pwd` in
26284 .) ac_abs_builddir="$ac_dir";;
26286 case "$ac_dir" in
26287 .) ac_abs_builddir=`pwd`;;
26288 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26289 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26290 esac;;
26291 esac
26292 case $ac_abs_builddir in
26293 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26295 case ${ac_top_builddir}. in
26296 .) ac_abs_top_builddir=$ac_abs_builddir;;
26297 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26298 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26299 esac;;
26300 esac
26301 case $ac_abs_builddir in
26302 .) ac_abs_srcdir=$ac_srcdir;;
26304 case $ac_srcdir in
26305 .) ac_abs_srcdir=$ac_abs_builddir;;
26306 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26307 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26308 esac;;
26309 esac
26310 case $ac_abs_builddir in
26311 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26313 case $ac_top_srcdir in
26314 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26315 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26316 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26317 esac;;
26318 esac
26321 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26322 echo "$as_me: executing $ac_dest commands" >&6;}
26323 case $ac_dest in
26324 default )
26325 case ${CONFIG_HEADERS} in
26326 *auto-host.h:config.in*)
26327 echo > cstamp-h ;;
26328 esac
26329 # Make sure all the subdirs exist.
26330 for d in $subdirs doc build
26332 test -d $d || mkdir $d
26333 done
26335 esac
26336 done
26337 _ACEOF
26339 cat >>$CONFIG_STATUS <<\_ACEOF
26341 { (exit 0); exit 0; }
26342 _ACEOF
26343 chmod +x $CONFIG_STATUS
26344 ac_clean_files=$ac_clean_files_save
26347 # configure is writing to config.log, and then calls config.status.
26348 # config.status does its own redirection, appending to config.log.
26349 # Unfortunately, on DOS this fails, as config.log is still kept open
26350 # by configure, so config.status won't be able to write to it; its
26351 # output is simply discarded. So we exec the FD to /dev/null,
26352 # effectively closing config.log, so it can be properly (re)opened and
26353 # appended to by config.status. When coming back to configure, we
26354 # need to make the FD available again.
26355 if test "$no_create" != yes; then
26356 ac_cs_success=:
26357 ac_config_status_args=
26358 test "$silent" = yes &&
26359 ac_config_status_args="$ac_config_status_args --quiet"
26360 exec 5>/dev/null
26361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26362 exec 5>>config.log
26363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26364 # would make configure fail if this is the last instruction.
26365 $ac_cs_success || { (exit 1); exit 1; }