]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
4a58626d2a7c964ee2f2cefb54c9ee8ecc5256ca
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
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','`
252 ;;
253 esac
254
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
261 :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274 $*
275 _LT_EOF
276 exit 0
277 fi
278
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
282
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
292 fi
293 done
294 fi
295
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
299 :
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'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
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
316 fi
317 done
318 IFS="$lt_save_ifs"
319
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
342 :
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=:
360
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
365 fi
366 prev="$cmd"
367 done
368
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
376 fi
377 fi
378 fi
379 fi
380 fi
381 fi
382
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"
388 fi
389
390
391
392
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`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
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}
410
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}
415
416 # Identity of this package.
417 PACKAGE_NAME=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
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"
460
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 cxx_compat_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 TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO 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 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 c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
516 case $ac_option in
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521 bindir=$ac_optarg ;;
522
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir=$ac_optarg ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
585
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
606 libdir=$ac_optarg ;;
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627 mandir=$ac_optarg ;;
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653 prefix=$ac_optarg ;;
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
694 sbindir=$ac_optarg ;;
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
705 sharedstatedir=$ac_optarg ;;
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
710 site=$ac_optarg ;;
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715 srcdir=$ac_optarg ;;
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
734
735 -with-* | --with-*)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
747
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
774
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
778 ;;
779
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
788 export $ac_envvar ;;
789
790 *)
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 ;;
797
798 esac
799 done
800
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821 do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
827 esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922 ac_env_GMPLIBS_set=${GMPLIBS+set}
923 ac_env_GMPLIBS_value=$GMPLIBS
924 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
925 ac_cv_env_GMPLIBS_value=$GMPLIBS
926 ac_env_GMPINC_set=${GMPINC+set}
927 ac_env_GMPINC_value=$GMPINC
928 ac_cv_env_GMPINC_set=${GMPINC+set}
929 ac_cv_env_GMPINC_value=$GMPINC
930
931 #
932 # Report the --help message.
933 #
934 if test "$ac_init_help" = "long"; then
935 # Omit some internal or obsolete options to make the list less imposing.
936 # This message is too long to be a string in the A/UX 3.1 sh.
937 cat <<_ACEOF
938 \`configure' configures this package to adapt to many kinds of systems.
939
940 Usage: $0 [OPTION]... [VAR=VALUE]...
941
942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
943 VAR=VALUE. See below for descriptions of some of the useful variables.
944
945 Defaults for the options are specified in brackets.
946
947 Configuration:
948 -h, --help display this help and exit
949 --help=short display options specific to this package
950 --help=recursive display the short help of all the included packages
951 -V, --version display version information and exit
952 -q, --quiet, --silent do not print \`checking...' messages
953 --cache-file=FILE cache test results in FILE [disabled]
954 -C, --config-cache alias for \`--cache-file=config.cache'
955 -n, --no-create do not create output files
956 --srcdir=DIR find the sources in DIR [configure dir or \`..']
957
958 _ACEOF
959
960 cat <<_ACEOF
961 Installation directories:
962 --prefix=PREFIX install architecture-independent files in PREFIX
963 [$ac_default_prefix]
964 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
965 [PREFIX]
966
967 By default, \`make install' will install all the files in
968 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
969 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970 for instance \`--prefix=\$HOME'.
971
972 For better control, use the options below.
973
974 Fine tuning of the installation directories:
975 --bindir=DIR user executables [EPREFIX/bin]
976 --sbindir=DIR system admin executables [EPREFIX/sbin]
977 --libexecdir=DIR program executables [EPREFIX/libexec]
978 --datadir=DIR read-only architecture-independent data [PREFIX/share]
979 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
980 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
981 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
982 --libdir=DIR object code libraries [EPREFIX/lib]
983 --includedir=DIR C header files [PREFIX/include]
984 --oldincludedir=DIR C header files for non-gcc [/usr/include]
985 --infodir=DIR info documentation [PREFIX/info]
986 --mandir=DIR man documentation [PREFIX/man]
987 _ACEOF
988
989 cat <<\_ACEOF
990
991 Program names:
992 --program-prefix=PREFIX prepend PREFIX to installed program names
993 --program-suffix=SUFFIX append SUFFIX to installed program names
994 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
995
996 System types:
997 --build=BUILD configure for building on BUILD [guessed]
998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
999 --target=TARGET configure for building compilers for TARGET [HOST]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004
1005 cat <<\_ACEOF
1006
1007 Optional Features:
1008 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1009 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1010 --enable-generated-files-in-srcdir
1011 put copies of generated files in source dir
1012 intended for creating source tarballs for users
1013 without texinfo bison or flex.
1014 --enable-werror-always enable -Werror despite compiler version
1015 --enable-checking=LIST
1016 enable expensive run-time checks. With LIST,
1017 enable only specific categories of checks.
1018 Categories are: yes,no,all,none,release.
1019 Flags are: assert,df,fold,gc,gcac,misc,
1020 rtlflag,rtl,runtime,tree,valgrind,types.
1021 --enable-coverage=LEVEL
1022 enable compiler's code coverage collection.
1023 Use to measure compiler performance and locate
1024 unused parts of the compiler. With LEVEL, specify
1025 optimization. Values are opt, noopt,
1026 default is noopt
1027 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1028 --enable-multilib enable library support for multiple ABIs
1029 --enable-__cxa_atexit enable __cxa_atexit for C++
1030 --enable-decimal-float={no,yes,bid,dpd}
1031 enable decimal float extension to C. Selecting 'bid'
1032 or 'dpd' choses which decimal floating point format
1033 to use
1034 --enable-fixed-point enable fixed-point arithmetic extension to C
1035 --enable-threads enable thread usage for target GCC
1036 --enable-threads=LIB use LIB thread package for target GCC
1037 --enable-tls enable or disable generation of tls code
1038 overriding the assembler check for tls support
1039 --enable-objc-gc enable the use of Boehm's garbage collector with
1040 the GNU Objective-C runtime
1041 --disable-shared don't provide a shared libgcc
1042 --enable-intermodule build the compiler in one step
1043 --enable-languages=LIST specify which front-ends to build
1044 --disable-rpath do not hardcode runtime library paths
1045 --enable-initfini-array use .init_array/.fini_array sections
1046 --enable-sjlj-exceptions
1047 arrange to use setjmp/longjmp exception handling
1048 --enable-secureplt enable -msecure-plt by default for PowerPC
1049 --enable-cld enable -mcld by default for 32bit x86
1050 --disable-win32-registry
1051 disable lookup of installation paths in the
1052 Registry on Windows hosts
1053 --enable-win32-registry enable registry lookup (default)
1054 --enable-win32-registry=KEY
1055 use KEY instead of GCC version as the last portion
1056 of the registry key
1057 --enable-shared[=PKGS]
1058 build shared libraries [default=yes]
1059 --enable-static[=PKGS]
1060 build static libraries [default=yes]
1061 --enable-fast-install[=PKGS]
1062 optimize for fast installation [default=yes]
1063 --disable-libtool-lock avoid locking (might break parallel builds)
1064 --enable-maintainer-mode
1065 enable make rules and dependencies not useful
1066 (and sometimes confusing) to the casual installer
1067 --enable-version-specific-runtime-libs
1068 specify that runtime libraries should be
1069 installed in a compiler-specific directory
1070
1071 Optional Packages:
1072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1074 --with-build-libsubdir=DIR Directory where to find libraries for build system
1075 --with-local-prefix=DIR specifies directory to put local include
1076 --with-gxx-include-dir=DIR
1077 specifies directory to put g++ header files
1078 --with-cpp-install-dir=DIR
1079 install the user visible C preprocessor in DIR
1080 (relative to PREFIX) as well as PREFIX/bin
1081 --with-gnu-ld arrange to work with GNU ld.
1082 --with-ld arrange to use the specified ld (full pathname)
1083 --with-demangler-in-ld try to use demangler in GNU ld.
1084 --with-gnu-as arrange to work with GNU as
1085 --with-as arrange to use the specified as (full pathname)
1086 --with-stabs arrange to use stabs instead of host debug format
1087 --with-dwarf2 force the default debug format to be DWARF 2
1088 --with-build-sysroot=sysroot
1089 use sysroot as the system root during the build
1090 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1091 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1092 --with-bugurl=URL Direct users to URL to report a bug
1093 --with-gnu-ld assume the C compiler uses GNU ld default=no
1094 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1095 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1096 --with-system-libunwind use installed libunwind
1097 --with-pic try to use only PIC/non-PIC objects [default=use
1098 both]
1099 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1100 --with-long-double-128 Use 128-bit long double by default.
1101 --with-gc={page,zone} choose the garbage collection mechanism to use
1102 with the compiler
1103 --with-system-zlib use installed libz
1104 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1105 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1106 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1107 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1108
1109 Some influential environment variables:
1110 CC C compiler command
1111 CFLAGS C compiler flags
1112 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1113 nonstandard directory <lib dir>
1114 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1115 headers in a nonstandard directory <include dir>
1116 CPP C preprocessor
1117 GMPLIBS How to link GMP
1118 GMPINC How to find GMP include files
1119
1120 Use these variables to override the choices made by `configure' or to help
1121 it to find libraries and programs with nonstandard names/locations.
1122
1123 _ACEOF
1124 fi
1125
1126 if test "$ac_init_help" = "recursive"; then
1127 # If there are subdirs, report their specific --help.
1128 ac_popdir=`pwd`
1129 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1130 test -d $ac_dir || continue
1131 ac_builddir=.
1132
1133 if test "$ac_dir" != .; then
1134 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1135 # A "../" for each directory in $ac_dir_suffix.
1136 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1137 else
1138 ac_dir_suffix= ac_top_builddir=
1139 fi
1140
1141 case $srcdir in
1142 .) # No --srcdir option. We are building in place.
1143 ac_srcdir=.
1144 if test -z "$ac_top_builddir"; then
1145 ac_top_srcdir=.
1146 else
1147 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1148 fi ;;
1149 [\\/]* | ?:[\\/]* ) # Absolute path.
1150 ac_srcdir=$srcdir$ac_dir_suffix;
1151 ac_top_srcdir=$srcdir ;;
1152 *) # Relative path.
1153 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1154 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1155 esac
1156
1157 # Do not use `cd foo && pwd` to compute absolute paths, because
1158 # the directories may not exist.
1159 case `pwd` in
1160 .) ac_abs_builddir="$ac_dir";;
1161 *)
1162 case "$ac_dir" in
1163 .) ac_abs_builddir=`pwd`;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1165 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1166 esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1170 *)
1171 case ${ac_top_builddir}. in
1172 .) ac_abs_top_builddir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1174 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1175 esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_srcdir=$ac_srcdir;;
1179 *)
1180 case $ac_srcdir in
1181 .) ac_abs_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1183 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1184 esac;;
1185 esac
1186 case $ac_abs_builddir in
1187 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1188 *)
1189 case $ac_top_srcdir in
1190 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1191 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1192 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1193 esac;;
1194 esac
1195
1196 cd $ac_dir
1197 # Check for guested configure; otherwise get Cygnus style configure.
1198 if test -f $ac_srcdir/configure.gnu; then
1199 echo
1200 $SHELL $ac_srcdir/configure.gnu --help=recursive
1201 elif test -f $ac_srcdir/configure; then
1202 echo
1203 $SHELL $ac_srcdir/configure --help=recursive
1204 elif test -f $ac_srcdir/configure.ac ||
1205 test -f $ac_srcdir/configure.in; then
1206 echo
1207 $ac_configure --help
1208 else
1209 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210 fi
1211 cd $ac_popdir
1212 done
1213 fi
1214
1215 test -n "$ac_init_help" && exit 0
1216 if $ac_init_version; then
1217 cat <<\_ACEOF
1218
1219 Copyright (C) 2003 Free Software Foundation, Inc.
1220 This configure script is free software; the Free Software Foundation
1221 gives unlimited permission to copy, distribute and modify it.
1222 _ACEOF
1223 exit 0
1224 fi
1225 exec 5>config.log
1226 cat >&5 <<_ACEOF
1227 This file contains any messages produced by compilers while
1228 running configure, to aid debugging if configure makes a mistake.
1229
1230 It was created by $as_me, which was
1231 generated by GNU Autoconf 2.59. Invocation command line was
1232
1233 $ $0 $@
1234
1235 _ACEOF
1236 {
1237 cat <<_ASUNAME
1238 ## --------- ##
1239 ## Platform. ##
1240 ## --------- ##
1241
1242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1247
1248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1249 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1250
1251 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1252 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1254 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1255 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1256 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1257 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1258
1259 _ASUNAME
1260
1261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1262 for as_dir in $PATH
1263 do
1264 IFS=$as_save_IFS
1265 test -z "$as_dir" && as_dir=.
1266 echo "PATH: $as_dir"
1267 done
1268
1269 } >&5
1270
1271 cat >&5 <<_ACEOF
1272
1273
1274 ## ----------- ##
1275 ## Core tests. ##
1276 ## ----------- ##
1277
1278 _ACEOF
1279
1280
1281 # Keep a trace of the command line.
1282 # Strip out --no-create and --no-recursion so they do not pile up.
1283 # Strip out --silent because we don't want to record it for future runs.
1284 # Also quote any args containing shell meta-characters.
1285 # Make two passes to allow for proper duplicate-argument suppression.
1286 ac_configure_args=
1287 ac_configure_args0=
1288 ac_configure_args1=
1289 ac_sep=
1290 ac_must_keep_next=false
1291 for ac_pass in 1 2
1292 do
1293 for ac_arg
1294 do
1295 case $ac_arg in
1296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1299 continue ;;
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 esac
1303 case $ac_pass in
1304 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1305 2)
1306 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1307 if test $ac_must_keep_next = true; then
1308 ac_must_keep_next=false # Got value, back to normal.
1309 else
1310 case $ac_arg in
1311 *=* | --config-cache | -C | -disable-* | --disable-* \
1312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1314 | -with-* | --with-* | -without-* | --without-* | --x)
1315 case "$ac_configure_args0 " in
1316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1317 esac
1318 ;;
1319 -* ) ac_must_keep_next=true ;;
1320 esac
1321 fi
1322 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1323 # Get rid of the leading space.
1324 ac_sep=" "
1325 ;;
1326 esac
1327 done
1328 done
1329 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1330 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1331
1332 # When interrupted or exit'd, cleanup temporary files, and complete
1333 # config.log. We remove comments because anyway the quotes in there
1334 # would cause problems or look ugly.
1335 # WARNING: Be sure not to use single quotes in there, as some shells,
1336 # such as our DU 5.0 friend, will then `close' the trap.
1337 trap 'exit_status=$?
1338 # Save into config.log some information that might help in debugging.
1339 {
1340 echo
1341
1342 cat <<\_ASBOX
1343 ## ---------------- ##
1344 ## Cache variables. ##
1345 ## ---------------- ##
1346 _ASBOX
1347 echo
1348 # The following way of writing the cache mishandles newlines in values,
1349 {
1350 (set) 2>&1 |
1351 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1352 *ac_space=\ *)
1353 sed -n \
1354 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1356 ;;
1357 *)
1358 sed -n \
1359 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ;;
1361 esac;
1362 }
1363 echo
1364
1365 cat <<\_ASBOX
1366 ## ----------------- ##
1367 ## Output variables. ##
1368 ## ----------------- ##
1369 _ASBOX
1370 echo
1371 for ac_var in $ac_subst_vars
1372 do
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1375 done | sort
1376 echo
1377
1378 if test -n "$ac_subst_files"; then
1379 cat <<\_ASBOX
1380 ## ------------- ##
1381 ## Output files. ##
1382 ## ------------- ##
1383 _ASBOX
1384 echo
1385 for ac_var in $ac_subst_files
1386 do
1387 eval ac_val=$`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1389 done | sort
1390 echo
1391 fi
1392
1393 if test -s confdefs.h; then
1394 cat <<\_ASBOX
1395 ## ----------- ##
1396 ## confdefs.h. ##
1397 ## ----------- ##
1398 _ASBOX
1399 echo
1400 sed "/^$/d" confdefs.h | sort
1401 echo
1402 fi
1403 test "$ac_signal" != 0 &&
1404 echo "$as_me: caught signal $ac_signal"
1405 echo "$as_me: exit $exit_status"
1406 } >&5
1407 rm -f core *.core &&
1408 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1409 exit $exit_status
1410 ' 0
1411 for ac_signal in 1 2 13 15; do
1412 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1413 done
1414 ac_signal=0
1415
1416 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1417 rm -rf conftest* confdefs.h
1418 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1419 echo >confdefs.h
1420
1421 # Predefined preprocessor variables.
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_NAME "$PACKAGE_NAME"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1435 _ACEOF
1436
1437
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_STRING "$PACKAGE_STRING"
1440 _ACEOF
1441
1442
1443 cat >>confdefs.h <<_ACEOF
1444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1445 _ACEOF
1446
1447
1448 # Let the site file select an alternate cache file if it wants to.
1449 # Prefer explicitly selected file to automatically selected ones.
1450 if test -z "$CONFIG_SITE"; then
1451 if test "x$prefix" != xNONE; then
1452 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1453 else
1454 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1455 fi
1456 fi
1457 for ac_site_file in $CONFIG_SITE; do
1458 if test -r "$ac_site_file"; then
1459 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1460 echo "$as_me: loading site script $ac_site_file" >&6;}
1461 sed 's/^/| /' "$ac_site_file" >&5
1462 . "$ac_site_file"
1463 fi
1464 done
1465
1466 if test -r "$cache_file"; then
1467 # Some versions of bash will fail to source /dev/null (special
1468 # files actually), so we avoid doing that.
1469 if test -f "$cache_file"; then
1470 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1471 echo "$as_me: loading cache $cache_file" >&6;}
1472 case $cache_file in
1473 [\\/]* | ?:[\\/]* ) . $cache_file;;
1474 *) . ./$cache_file;;
1475 esac
1476 fi
1477 else
1478 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1479 echo "$as_me: creating cache $cache_file" >&6;}
1480 >$cache_file
1481 fi
1482
1483 # Check that the precious variables saved in the cache have kept the same
1484 # value.
1485 ac_cache_corrupted=false
1486 for ac_var in `(set) 2>&1 |
1487 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1488 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1489 eval ac_new_set=\$ac_env_${ac_var}_set
1490 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1491 eval ac_new_val="\$ac_env_${ac_var}_value"
1492 case $ac_old_set,$ac_new_set in
1493 set,)
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1497 ,set)
1498 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1500 ac_cache_corrupted=: ;;
1501 ,);;
1502 *)
1503 if test "x$ac_old_val" != "x$ac_new_val"; then
1504 # differences in whitespace do not lead to failure.
1505 ac_old_val_w=`echo x $ac_old_val`
1506 ac_new_val_w=`echo x $ac_new_val`
1507 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1508 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510 ac_cache_corrupted=:
1511 else
1512 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1513 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1514 eval $ac_var=\$ac_old_val
1515 fi
1516 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1517 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1518 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1519 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1520 fi;;
1521 esac
1522 # Pass precious variables to config.status.
1523 if test "$ac_new_set" = set; then
1524 case $ac_new_val in
1525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1526 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 *) ac_arg=$ac_var=$ac_new_val ;;
1528 esac
1529 case " $ac_configure_args " in
1530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1531 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1532 esac
1533 fi
1534 done
1535 if $ac_cache_corrupted; then
1536 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1537 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1538 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1539 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1540 { (exit 1); exit 1; }; }
1541 fi
1542
1543 ac_ext=c
1544 ac_cpp='$CPP $CPPFLAGS'
1545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1569
1570
1571 gcc_version=`cat $srcdir/BASE-VER`
1572
1573 # Determine the host, build, and target systems
1574 ac_aux_dir=
1575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1588 fi
1589 done
1590 if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1594 fi
1595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599 # Make sure we can run config.sub.
1600 $ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605 echo "$as_me:$LINENO: checking build system type" >&5
1606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607 if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 ac_cv_build_alias=$build_alias
1611 test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613 test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624 echo "${ECHO_T}$ac_cv_build" >&6
1625 build=$ac_cv_build
1626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 echo "$as_me:$LINENO: checking host system type" >&5
1632 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633 if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 ac_cv_host_alias=$host_alias
1637 test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644 fi
1645 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646 echo "${ECHO_T}$ac_cv_host" >&6
1647 host=$ac_cv_host
1648 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653 echo "$as_me:$LINENO: checking target system type" >&5
1654 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655 if test "${ac_cv_target+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 ac_cv_target_alias=$target_alias
1659 test "x$ac_cv_target_alias" = "x" &&
1660 ac_cv_target_alias=$ac_cv_host_alias
1661 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1665
1666 fi
1667 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668 echo "${ECHO_T}$ac_cv_target" >&6
1669 target=$ac_cv_target
1670 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675 # The aliases save the names the user supplied, while $host etc.
1676 # will get canonicalized.
1677 test -n "$target_alias" &&
1678 test "$program_prefix$program_suffix$program_transform_name" = \
1679 NONENONEs,x,x, &&
1680 program_prefix=${target_alias}-
1681
1682 # Determine the noncanonical target name, for directory use.
1683 case ${build_alias} in
1684 "") build_noncanonical=${build} ;;
1685 *) build_noncanonical=${build_alias} ;;
1686 esac
1687
1688 case ${host_alias} in
1689 "") host_noncanonical=${build_noncanonical} ;;
1690 *) host_noncanonical=${host_alias} ;;
1691 esac
1692
1693 case ${target_alias} in
1694 "") target_noncanonical=${host_noncanonical} ;;
1695 *) target_noncanonical=${target_alias} ;;
1696 esac
1697
1698
1699
1700
1701 # Determine the target- and build-specific subdirectories
1702
1703 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1704 # have matching libraries, they should use host libraries: Makefile.tpl
1705 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1706 # However, they still use the build modules, because the corresponding
1707 # host modules (e.g. bison) are only built for the host when bootstrap
1708 # finishes. So:
1709 # - build_subdir is where we find build modules, and never changes.
1710 # - build_libsubdir is where we find build libraries, and can be overridden.
1711
1712 # Prefix 'build-' so this never conflicts with target_subdir.
1713 build_subdir="build-${build_noncanonical}"
1714
1715 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1716 if test "${with_build_libsubdir+set}" = set; then
1717 withval="$with_build_libsubdir"
1718 build_libsubdir="$withval"
1719 else
1720 build_libsubdir="$build_subdir"
1721 fi;
1722 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1723 if ( test $srcdir = . && test -d gcc ) \
1724 || test -d $srcdir/../host-${host_noncanonical}; then
1725 host_subdir="host-${host_noncanonical}"
1726 else
1727 host_subdir=.
1728 fi
1729 # No prefix.
1730 target_subdir=${target_noncanonical}
1731
1732
1733 # Set program_transform_name
1734 test "$program_prefix" != NONE &&
1735 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1736 # Use a double $ so make ignores it.
1737 test "$program_suffix" != NONE &&
1738 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1739 # Double any \ or $. echo might interpret backslashes.
1740 # By default was `s,x,x', remove it if useless.
1741 cat <<\_ACEOF >conftest.sed
1742 s/[\\$]/&&/g;s/;s,x,x,$//
1743 _ACEOF
1744 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1745 rm conftest.sed
1746
1747
1748 # Check for bogus environment variables.
1749 # Test if LIBRARY_PATH contains the notation for the current directory
1750 # since this would lead to problems installing/building glibc.
1751 # LIBRARY_PATH contains the current directory if one of the following
1752 # is true:
1753 # - one of the terminals (":" and ";") is the first or last sign
1754 # - two terminals occur directly after each other
1755 # - the path contains an element with a dot in it
1756 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1757 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1758 case ${LIBRARY_PATH} in
1759 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1760 library_path_setting="contains current directory"
1761 ;;
1762 *)
1763 library_path_setting="ok"
1764 ;;
1765 esac
1766 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1767 echo "${ECHO_T}$library_path_setting" >&6
1768 if test "$library_path_setting" != "ok"; then
1769 { { echo "$as_me:$LINENO: error:
1770 *** LIBRARY_PATH shouldn't contain the current directory when
1771 *** building gcc. Please change the environment variable
1772 *** and run configure again." >&5
1773 echo "$as_me: error:
1774 *** LIBRARY_PATH shouldn't contain the current directory when
1775 *** building gcc. Please change the environment variable
1776 *** and run configure again." >&2;}
1777 { (exit 1); exit 1; }; }
1778 fi
1779
1780 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1781 # since this would lead to problems installing/building glibc.
1782 # GCC_EXEC_PREFIX contains the current directory if one of the following
1783 # is true:
1784 # - one of the terminals (":" and ";") is the first or last sign
1785 # - two terminals occur directly after each other
1786 # - the path contains an element with a dot in it
1787 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1788 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1789 case ${GCC_EXEC_PREFIX} in
1790 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1791 gcc_exec_prefix_setting="contains current directory"
1792 ;;
1793 *)
1794 gcc_exec_prefix_setting="ok"
1795 ;;
1796 esac
1797 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1798 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1799 if test "$gcc_exec_prefix_setting" != "ok"; then
1800 { { echo "$as_me:$LINENO: error:
1801 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1802 *** building gcc. Please change the environment variable
1803 *** and run configure again." >&5
1804 echo "$as_me: error:
1805 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1806 *** building gcc. Please change the environment variable
1807 *** and run configure again." >&2;}
1808 { (exit 1); exit 1; }; }
1809 fi
1810
1811 # -----------
1812 # Directories
1813 # -----------
1814
1815 # Specify the local prefix
1816 local_prefix=
1817
1818 # Check whether --with-local-prefix or --without-local-prefix was given.
1819 if test "${with_local_prefix+set}" = set; then
1820 withval="$with_local_prefix"
1821 case "${withval}" in
1822 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1823 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1824 { (exit 1); exit 1; }; } ;;
1825 no) ;;
1826 *) local_prefix=$with_local_prefix ;;
1827 esac
1828 fi;
1829
1830 # Default local prefix if it is empty
1831 if test x$local_prefix = x; then
1832 local_prefix=/usr/local
1833 fi
1834
1835 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1836 # passed in by the toplevel make and thus we'd get different behavior
1837 # depending on where we built the sources.
1838 gcc_gxx_include_dir=
1839 # Specify the g++ header file directory
1840
1841 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1842 if test "${with_gxx_include_dir+set}" = set; then
1843 withval="$with_gxx_include_dir"
1844 case "${withval}" in
1845 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1846 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1847 { (exit 1); exit 1; }; } ;;
1848 no) ;;
1849 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1850 esac
1851 fi;
1852
1853 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1854 if test x${gcc_gxx_include_dir} = x; then
1855 if test x${enable_version_specific_runtime_libs} = xyes; then
1856 gcc_gxx_include_dir='${libsubdir}/include/c++'
1857 else
1858 libstdcxx_incdir='include/c++/$(version)'
1859 if test x$host != x$target; then
1860 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1861 fi
1862 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1863 fi
1864 fi
1865
1866
1867 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1868 if test "${with_cpp_install_dir+set}" = set; then
1869 withval="$with_cpp_install_dir"
1870 if test x$withval = xyes; then
1871 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1872 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1873 { (exit 1); exit 1; }; }
1874 elif test x$withval != xno; then
1875 cpp_install_dir=$withval
1876 fi
1877 fi;
1878
1879 # We would like to our source tree to be readonly. However when releases or
1880 # pre-releases are generated, the flex/bison generated files as well as the
1881 # various formats of manuals need to be included along with the rest of the
1882 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1883 # just that.
1884
1885 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1886 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1887 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1888 if test "${enable_generated_files_in_srcdir+set}" = set; then
1889 enableval="$enable_generated_files_in_srcdir"
1890 generated_files_in_srcdir=$enableval
1891 else
1892 generated_files_in_srcdir=no
1893 fi;
1894
1895 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1896 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1897
1898 if test "$generated_files_in_srcdir" = "yes"; then
1899 GENINSRC=''
1900 else
1901 GENINSRC='#'
1902 fi
1903
1904
1905 # -------------------
1906 # Find default linker
1907 # -------------------
1908
1909 # With GNU ld
1910
1911 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1912 if test "${with_gnu_ld+set}" = set; then
1913 withval="$with_gnu_ld"
1914 gnu_ld_flag="$with_gnu_ld"
1915 else
1916 gnu_ld_flag=no
1917 fi;
1918
1919 # With pre-defined ld
1920
1921 # Check whether --with-ld or --without-ld was given.
1922 if test "${with_ld+set}" = set; then
1923 withval="$with_ld"
1924 DEFAULT_LINKER="$with_ld"
1925 fi;
1926 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1927 if test ! -x "$DEFAULT_LINKER"; then
1928 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1929 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1930 { (exit 1); exit 1; }; }
1931 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1932 gnu_ld_flag=yes
1933 fi
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1937 _ACEOF
1938
1939 fi
1940
1941 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define HAVE_GNU_LD $gnu_ld
1945 _ACEOF
1946
1947
1948 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1949 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1950 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1951 if test x"$gnu_ld_flag" = x"no"; then
1952 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1953 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1954 else
1955 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1956 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1957 fi
1958 else
1959 echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963 # With demangler in GNU ld
1964
1965 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1966 if test "${with_demangler_in_ld+set}" = set; then
1967 withval="$with_demangler_in_ld"
1968 demangler_in_ld="$with_demangler_in_ld"
1969 else
1970 demangler_in_ld=no
1971 fi;
1972
1973 # ----------------------
1974 # Find default assembler
1975 # ----------------------
1976
1977 # With GNU as
1978
1979 # Check whether --with-gnu-as or --without-gnu-as was given.
1980 if test "${with_gnu_as+set}" = set; then
1981 withval="$with_gnu_as"
1982 gas_flag="$with_gnu_as"
1983 else
1984 gas_flag=no
1985 fi;
1986
1987
1988 # Check whether --with-as or --without-as was given.
1989 if test "${with_as+set}" = set; then
1990 withval="$with_as"
1991 DEFAULT_ASSEMBLER="$with_as"
1992 fi;
1993 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1994 if test ! -x "$DEFAULT_ASSEMBLER"; then
1995 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1996 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1997 { (exit 1); exit 1; }; }
1998 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1999 gas_flag=yes
2000 fi
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2004 _ACEOF
2005
2006 fi
2007
2008 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2009
2010 cat >>confdefs.h <<_ACEOF
2011 #define HAVE_GNU_AS $gnu_as
2012 _ACEOF
2013
2014
2015 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2016 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2017 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2018 if test x"$gas_flag" = x"no"; then
2019 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2020 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2021 else
2022 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2023 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2024 fi
2025 else
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2028 fi
2029
2030 # ---------------
2031 # Find C compiler
2032 # ---------------
2033
2034 # If a non-executable a.out is present (e.g. created by GNU as above even if
2035 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2036 # file, even when creating an executable, so an execution test fails.
2037 # Remove possible default executable files to avoid this.
2038 #
2039 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2040 # Autoconf includes it.
2041 rm -f a.out a.exe b.out
2042
2043 # Find the native compiler
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063 IFS=$as_save_IFS
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069 break 2
2070 fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078 echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085 fi
2086 if test -z "$ac_cv_prog_CC"; then
2087 ac_ct_CC=$CC
2088 # Extract the first word of "gcc", so it can be a program name with args.
2089 set dummy gcc; ac_word=$2
2090 echo "$as_me:$LINENO: checking for $ac_word" >&5
2091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 else
2095 if test -n "$ac_ct_CC"; then
2096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097 else
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101 IFS=$as_save_IFS
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105 ac_cv_prog_ac_ct_CC="gcc"
2106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 break 2
2108 fi
2109 done
2110 done
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6
2118 else
2119 echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6
2121 fi
2122
2123 CC=$ac_ct_CC
2124 else
2125 CC="$ac_cv_prog_CC"
2126 fi
2127
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151 done
2152 done
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2160 else
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165 fi
2166 if test -z "$ac_cv_prog_CC"; then
2167 ac_ct_CC=$CC
2168 # Extract the first word of "cc", so it can be a program name with args.
2169 set dummy cc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175 if test -n "$ac_ct_CC"; then
2176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185 ac_cv_prog_ac_ct_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2198 else
2199 echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 CC=$ac_ct_CC
2204 else
2205 CC="$ac_cv_prog_CC"
2206 fi
2207
2208 fi
2209 if test -z "$CC"; then
2210 # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220 ac_prog_rejected=no
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2229 ac_prog_rejected=yes
2230 continue
2231 fi
2232 ac_cv_prog_CC="cc"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238
2239 if test $ac_prog_rejected = yes; then
2240 # We found a bogon in the path, so make sure we never use it.
2241 set dummy $ac_cv_prog_CC
2242 shift
2243 if test $# != 0; then
2244 # We chose a different compiler from the bogus one.
2245 # However, it has the same basename, so the bogon will be chosen
2246 # first if we set CC to just the basename; use the full file name.
2247 shift
2248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2249 fi
2250 fi
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255 echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6
2257 else
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2261
2262 fi
2263 if test -z "$CC"; then
2264 if test -n "$ac_tool_prefix"; then
2265 for ac_prog in cl
2266 do
2267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274 if test -n "$CC"; then
2275 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288 done
2289 done
2290
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295 echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2297 else
2298 echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2301
2302 test -n "$CC" && break
2303 done
2304 fi
2305 if test -z "$CC"; then
2306 ac_ct_CC=$CC
2307 for ac_prog in cl
2308 do
2309 # Extract the first word of "$ac_prog", so it can be a program name with args.
2310 set dummy $ac_prog; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_ac_ct_CC="$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332
2333 fi
2334 fi
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2339 else
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344 test -n "$ac_ct_CC" && break
2345 done
2346
2347 CC=$ac_ct_CC
2348 fi
2349
2350 fi
2351
2352
2353 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: no acceptable C compiler found in \$PATH
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2358
2359 # Provide some information about the compiler.
2360 echo "$as_me:$LINENO:" \
2361 "checking for C compiler version" >&5
2362 ac_compiler=`set X $ac_compile; echo $2`
2363 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2364 (eval $ac_compiler --version </dev/null >&5) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2369 (eval $ac_compiler -v </dev/null >&5) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2374 (eval $ac_compiler -V </dev/null >&5) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }
2378
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385
2386 int
2387 main ()
2388 {
2389
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 ac_clean_files_save=$ac_clean_files
2395 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2396 # Try to create an executable without -o first, disregard a.out.
2397 # It will help us diagnose broken compilers, and finding out an intuition
2398 # of exeext.
2399 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2400 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2401 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2403 (eval $ac_link_default) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; then
2407 # Find the output, starting from the most likely. This scheme is
2408 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2409 # resort.
2410
2411 # Be careful to initialize this variable, since it used to be cached.
2412 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2413 ac_cv_exeext=
2414 # b.out is created by i960 compilers.
2415 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2416 do
2417 test -f "$ac_file" || continue
2418 case $ac_file in
2419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2420 ;;
2421 conftest.$ac_ext )
2422 # This is the source file.
2423 ;;
2424 [ab].out )
2425 # We found the default executable, but exeext='' is most
2426 # certainly right.
2427 break;;
2428 *.* )
2429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2430 # FIXME: I believe we export ac_cv_exeext for Libtool,
2431 # but it would be cool to find out if it's true. Does anybody
2432 # maintain Libtool? --akim.
2433 export ac_cv_exeext
2434 break;;
2435 * )
2436 break;;
2437 esac
2438 done
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&2;}
2447 { (exit 77); exit 77; }; }
2448 fi
2449
2450 ac_exeext=$ac_cv_exeext
2451 echo "$as_me:$LINENO: result: $ac_file" >&5
2452 echo "${ECHO_T}$ac_file" >&6
2453
2454 # Check the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try='./$ac_file'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 cross_compiling=no
2468 else
2469 if test "$cross_compiling" = maybe; then
2470 cross_compiling=yes
2471 else
2472 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2479 fi
2480 fi
2481 fi
2482 echo "$as_me:$LINENO: result: yes" >&5
2483 echo "${ECHO_T}yes" >&6
2484
2485 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2491 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 echo "${ECHO_T}$cross_compiling" >&6
2493
2494 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2497 (eval $ac_link) 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; then
2501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2503 # work properly (i.e., refer to `conftest.exe'), while it won't with
2504 # `rm'.
2505 for ac_file in conftest.exe conftest conftest.*; do
2506 test -f "$ac_file" || continue
2507 case $ac_file in
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2510 export ac_cv_exeext
2511 break;;
2512 * ) break;;
2513 esac
2514 done
2515 else
2516 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }
2521 fi
2522
2523 rm -f conftest$ac_cv_exeext
2524 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2525 echo "${ECHO_T}$ac_cv_exeext" >&6
2526
2527 rm -f conftest.$ac_ext
2528 EXEEXT=$ac_cv_exeext
2529 ac_exeext=$EXEEXT
2530 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2531 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2532 if test "${ac_cv_objext+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 cat >conftest.$ac_ext <<_ACEOF
2536 /* confdefs.h. */
2537 _ACEOF
2538 cat confdefs.h >>conftest.$ac_ext
2539 cat >>conftest.$ac_ext <<_ACEOF
2540 /* end confdefs.h. */
2541
2542 int
2543 main ()
2544 {
2545
2546 ;
2547 return 0;
2548 }
2549 _ACEOF
2550 rm -f conftest.o conftest.obj
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2553 ac_status=$?
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; then
2556 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2557 case $ac_file in
2558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2560 break;;
2561 esac
2562 done
2563 else
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }
2572 fi
2573
2574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2575 fi
2576 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2577 echo "${ECHO_T}$ac_cv_objext" >&6
2578 OBJEXT=$ac_cv_objext
2579 ac_objext=$OBJEXT
2580 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2581 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2582 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591
2592 int
2593 main ()
2594 {
2595 #ifndef __GNUC__
2596 choke me
2597 #endif
2598
2599 ;
2600 return 0;
2601 }
2602 _ACEOF
2603 rm -f conftest.$ac_objext
2604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605 (eval $ac_compile) 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_compiler_gnu=yes
2626 else
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 ac_compiler_gnu=no
2631 fi
2632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2634
2635 fi
2636 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2637 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2638 GCC=`test $ac_compiler_gnu = yes && echo yes`
2639 ac_test_CFLAGS=${CFLAGS+set}
2640 ac_save_CFLAGS=$CFLAGS
2641 CFLAGS="-g"
2642 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2643 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2644 if test "${ac_cv_prog_cc_g+set}" = set; then
2645 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h. */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2653
2654 int
2655 main ()
2656 {
2657
2658 ;
2659 return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2665 ac_status=$?
2666 grep -v '^ *+' conftest.er1 >conftest.err
2667 rm -f conftest.er1
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_c_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2684 ac_cv_prog_cc_g=yes
2685 else
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 ac_cv_prog_cc_g=no
2690 fi
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 fi
2693 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2695 if test "$ac_test_CFLAGS" = set; then
2696 CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698 if test "$GCC" = yes; then
2699 CFLAGS="-g -O2"
2700 else
2701 CFLAGS="-g"
2702 fi
2703 else
2704 if test "$GCC" = yes; then
2705 CFLAGS="-O2"
2706 else
2707 CFLAGS=
2708 fi
2709 fi
2710 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715 ac_cv_prog_cc_stdc=no
2716 ac_save_CC=$CC
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h. */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2723 #include <stdarg.h>
2724 #include <stdio.h>
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2731 char **p;
2732 int i;
2733 {
2734 return p[i];
2735 }
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2737 {
2738 char *s;
2739 va_list v;
2740 va_start (v,p);
2741 s = g (p, va_arg (v,int));
2742 va_end (v);
2743 return s;
2744 }
2745
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2747 function prototypes and stuff, but not '\xHH' hex character constants.
2748 These don't provoke an error unfortunately, instead are silently treated
2749 as 'x'. The following induces an error, until -std1 is added to get
2750 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2751 array size at least. It's necessary to write '\x00'==0 to get something
2752 that's true only with -std1. */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2759 int argc;
2760 char **argv;
2761 int
2762 main ()
2763 {
2764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 # Don't try gcc -ansi; that turns off useful extensions and
2770 # breaks some systems' header files.
2771 # AIX -qlanglvl=ansi
2772 # Ultrix and OSF/1 -std1
2773 # HP-UX 10.20 and later -Ae
2774 # HP-UX older versions -Aa -D_HPUX_SOURCE
2775 # SVR4 -Xc -D__EXTENSIONS__
2776 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 do
2778 CC="$ac_save_CC $ac_arg"
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 ac_cv_prog_cc_stdc=$ac_arg
2802 break
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2806
2807 fi
2808 rm -f conftest.err conftest.$ac_objext
2809 done
2810 rm -f conftest.$ac_ext conftest.$ac_objext
2811 CC=$ac_save_CC
2812
2813 fi
2814
2815 case "x$ac_cv_prog_cc_stdc" in
2816 x|xno)
2817 echo "$as_me:$LINENO: result: none needed" >&5
2818 echo "${ECHO_T}none needed" >&6 ;;
2819 *)
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2822 CC="$CC $ac_cv_prog_cc_stdc" ;;
2823 esac
2824
2825 # Some people use a C++ compiler to compile C. Since we use `exit',
2826 # in C++ we need to declare it. In case someone uses the same compiler
2827 # for both compiling C and C++ we need to have the C++ compiler decide
2828 # the declaration of exit, since it's the most demanding environment.
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #ifndef __cplusplus
2831 choke me
2832 #endif
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>conftest.er1
2837 ac_status=$?
2838 grep -v '^ *+' conftest.er1 >conftest.err
2839 rm -f conftest.er1
2840 cat conftest.err >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -z "$ac_c_werror_flag"
2844 || test ! -s conftest.err'
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 for ac_declaration in \
2857 '' \
2858 'extern "C" void std::exit (int) throw (); using std::exit;' \
2859 'extern "C" void std::exit (int); using std::exit;' \
2860 'extern "C" void exit (int) throw ();' \
2861 'extern "C" void exit (int);' \
2862 'void exit (int);'
2863 do
2864 cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h. */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2870 $ac_declaration
2871 #include <stdlib.h>
2872 int
2873 main ()
2874 {
2875 exit (42);
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882 (eval $ac_compile) 2>conftest.er1
2883 ac_status=$?
2884 grep -v '^ *+' conftest.er1 >conftest.err
2885 rm -f conftest.er1
2886 cat conftest.err >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); } &&
2889 { ac_try='test -z "$ac_c_werror_flag"
2890 || test ! -s conftest.err'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 :
2903 else
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 continue
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 $ac_declaration
2917 int
2918 main ()
2919 {
2920 exit (42);
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2928 ac_status=$?
2929 grep -v '^ *+' conftest.er1 >conftest.err
2930 rm -f conftest.er1
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag"
2935 || test ! -s conftest.err'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; } &&
2941 { ac_try='test -s conftest.$ac_objext'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 (eval $ac_try) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 break
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 fi
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 done
2955 rm -f conftest*
2956 if test -n "$ac_declaration"; then
2957 echo '#ifdef __cplusplus' >>confdefs.h
2958 echo $ac_declaration >>confdefs.h
2959 echo '#endif' >>confdefs.h
2960 fi
2961
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_ext=c
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2973
2974 if test "x$CC" != xcc; then
2975 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2976 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2977 else
2978 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2979 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2980 fi
2981 set dummy $CC; ac_cc=`echo $2 |
2982 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2983 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992
2993 int
2994 main ()
2995 {
2996
2997 ;
2998 return 0;
2999 }
3000 _ACEOF
3001 # Make sure it works both with $CC and with simple cc.
3002 # We do the test twice because some compilers refuse to overwrite an
3003 # existing .o file with -o, though they will create one.
3004 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3005 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } &&
3010 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 (eval $ac_try) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); };
3015 then
3016 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3017 if test "x$CC" != xcc; then
3018 # Test first that cc exists at all.
3019 if { ac_try='cc -c conftest.$ac_ext >&5'
3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021 (eval $ac_try) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }; }; then
3025 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3026 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); };
3036 then
3037 # cc works too.
3038 :
3039 else
3040 # cc exists but doesn't like -o.
3041 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3042 fi
3043 fi
3044 fi
3045 else
3046 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3047 fi
3048 rm -f conftest*
3049
3050 fi
3051 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3052 echo "$as_me:$LINENO: result: yes" >&5
3053 echo "${ECHO_T}yes" >&6
3054 else
3055 echo "$as_me:$LINENO: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3057
3058 cat >>confdefs.h <<\_ACEOF
3059 #define NO_MINUS_C_MINUS_O 1
3060 _ACEOF
3061
3062 fi
3063
3064 # expand $ac_aux_dir to an absolute path
3065 am_aux_dir=`cd $ac_aux_dir && pwd`
3066
3067 # FIXME: we rely on the cache variable name because
3068 # there is no other way.
3069 set dummy $CC
3070 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3071 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3072 # Losing compiler, so override with the script.
3073 # FIXME: It is wrong to rewrite CC.
3074 # But if we don't then we get into trouble of one sort or another.
3075 # A longer-term fix would be to have automake use am__CC in this case,
3076 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3077 CC="$am_aux_dir/compile $CC"
3078 fi
3079
3080
3081
3082
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3086 echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 if test -n "$GNATBIND"; then
3092 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107
3108 fi
3109 fi
3110 GNATBIND=$ac_cv_prog_GNATBIND
3111 if test -n "$GNATBIND"; then
3112 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3113 echo "${ECHO_T}$GNATBIND" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3117 fi
3118
3119 fi
3120 if test -z "$ac_cv_prog_GNATBIND"; then
3121 ac_ct_GNATBIND=$GNATBIND
3122 # Extract the first word of "gnatbind", so it can be a program name with args.
3123 set dummy gnatbind; ac_word=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -n "$ac_ct_GNATBIND"; then
3130 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3142 fi
3143 done
3144 done
3145
3146 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3147 fi
3148 fi
3149 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3150 if test -n "$ac_ct_GNATBIND"; then
3151 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3152 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3153 else
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi
3157
3158 GNATBIND=$ac_ct_GNATBIND
3159 else
3160 GNATBIND="$ac_cv_prog_GNATBIND"
3161 fi
3162
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -n "$GNATMAKE"; then
3172 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187
3188 fi
3189 fi
3190 GNATMAKE=$ac_cv_prog_GNATMAKE
3191 if test -n "$GNATMAKE"; then
3192 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3193 echo "${ECHO_T}$GNATMAKE" >&6
3194 else
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3197 fi
3198
3199 fi
3200 if test -z "$ac_cv_prog_GNATMAKE"; then
3201 ac_ct_GNATMAKE=$GNATMAKE
3202 # Extract the first word of "gnatmake", so it can be a program name with args.
3203 set dummy gnatmake; ac_word=$2
3204 echo "$as_me:$LINENO: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209 if test -n "$ac_ct_GNATMAKE"; then
3210 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3214 do
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3222 fi
3223 done
3224 done
3225
3226 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3227 fi
3228 fi
3229 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3230 if test -n "$ac_ct_GNATMAKE"; then
3231 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3232 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3233 else
3234 echo "$as_me:$LINENO: result: no" >&5
3235 echo "${ECHO_T}no" >&6
3236 fi
3237
3238 GNATMAKE=$ac_ct_GNATMAKE
3239 else
3240 GNATMAKE="$ac_cv_prog_GNATMAKE"
3241 fi
3242
3243 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3244 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3245 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 cat >conftest.adb <<EOF
3249 procedure conftest is begin null; end conftest;
3250 EOF
3251 acx_cv_cc_gcc_supports_ada=no
3252 # There is a bug in old released versions of GCC which causes the
3253 # driver to exit successfully when the appropriate language module
3254 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3255 # Therefore we must check for the error message as well as an
3256 # unsuccessful exit.
3257 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3258 # given a .adb file, but produce no object file. So we must check
3259 # if an object file was really produced to guard against this.
3260 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3261 if test x"$errors" = x && test -f conftest.$ac_objext; then
3262 acx_cv_cc_gcc_supports_ada=yes
3263 fi
3264 rm -f conftest.*
3265 fi
3266 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3267 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3268
3269 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3270 have_gnat=yes
3271 else
3272 have_gnat=no
3273 fi
3274
3275
3276 # autoconf is lame and doesn't give us any substitution variable for this.
3277 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3278 NO_MINUS_C_MINUS_O=yes
3279 else
3280 OUTPUT_OPTION='-o $@'
3281 fi
3282
3283
3284
3285 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3286 # optimizations to be activated explicitly by the toplevel.
3287 case "$CC" in
3288 */prev-gcc/xgcc*) ;;
3289 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3290 esac
3291
3292
3293 # -------------------------
3294 # Check C compiler features
3295 # -------------------------
3296
3297
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3307 CPP=
3308 fi
3309 if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 # Double quotes because CPP needs to be expanded
3314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315 do
3316 ac_preproc_ok=false
3317 for ac_c_preproc_warn_flag in '' yes
3318 do
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349 else
3350 ac_cpp_err=
3351 fi
3352 else
3353 ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356 :
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 # Broken: fails on valid input.
3362 continue
3363 fi
3364 rm -f conftest.err conftest.$ac_ext
3365
3366 # OK, works on sane cases. Now check whether non-existent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387 else
3388 ac_cpp_err=
3389 fi
3390 else
3391 ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394 # Broken: success on invalid input.
3395 continue
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 # Passes both tests.
3401 ac_preproc_ok=:
3402 break
3403 fi
3404 rm -f conftest.err conftest.$ac_ext
3405
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410 break
3411 fi
3412
3413 done
3414 ac_cv_prog_CPP=$CPP
3415
3416 fi
3417 CPP=$ac_cv_prog_CPP
3418 else
3419 ac_cv_prog_CPP=$CPP
3420 fi
3421 echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3425 do
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3458 fi
3459 else
3460 ac_cpp_err=yes
3461 fi
3462 if test -z "$ac_cpp_err"; then
3463 :
3464 else
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 # Broken: fails on valid input.
3469 continue
3470 fi
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether non-existent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h. */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3485 ac_status=$?
3486 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 else
3495 ac_cpp_err=
3496 fi
3497 else
3498 ac_cpp_err=yes
3499 fi
3500 if test -z "$ac_cpp_err"; then
3501 # Broken: success on invalid input.
3502 continue
3503 else
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 # Passes both tests.
3508 ac_preproc_ok=:
3509 break
3510 fi
3511 rm -f conftest.err conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then
3517 :
3518 else
3519 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&5
3521 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&2;}
3523 { (exit 1); exit 1; }; }
3524 fi
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532
3533 echo "$as_me:$LINENO: checking for egrep" >&5
3534 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3535 if test "${ac_cv_prog_egrep+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3539 then ac_cv_prog_egrep='grep -E'
3540 else ac_cv_prog_egrep='egrep'
3541 fi
3542 fi
3543 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3544 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3545 EGREP=$ac_cv_prog_egrep
3546
3547
3548 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3549 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3550 if test "${ac_cv_header_stdc+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 #include <stdlib.h>
3560 #include <stdarg.h>
3561 #include <string.h>
3562 #include <float.h>
3563
3564 int
3565 main ()
3566 {
3567
3568 ;
3569 return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 (eval $ac_try) 2>&5
3591 ac_status=$?
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_header_stdc=yes
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 ac_cv_header_stdc=no
3600 fi
3601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602
3603 if test $ac_cv_header_stdc = yes; then
3604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h. */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <string.h>
3612
3613 _ACEOF
3614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3615 $EGREP "memchr" >/dev/null 2>&1; then
3616 :
3617 else
3618 ac_cv_header_stdc=no
3619 fi
3620 rm -f conftest*
3621
3622 fi
3623
3624 if test $ac_cv_header_stdc = yes; then
3625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <stdlib.h>
3633
3634 _ACEOF
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 $EGREP "free" >/dev/null 2>&1; then
3637 :
3638 else
3639 ac_cv_header_stdc=no
3640 fi
3641 rm -f conftest*
3642
3643 fi
3644
3645 if test $ac_cv_header_stdc = yes; then
3646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3647 if test "$cross_compiling" = yes; then
3648 :
3649 else
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #include <ctype.h>
3657 #if ((' ' & 0x0FF) == 0x020)
3658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3660 #else
3661 # define ISLOWER(c) \
3662 (('a' <= (c) && (c) <= 'i') \
3663 || ('j' <= (c) && (c) <= 'r') \
3664 || ('s' <= (c) && (c) <= 'z'))
3665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3666 #endif
3667
3668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3669 int
3670 main ()
3671 {
3672 int i;
3673 for (i = 0; i < 256; i++)
3674 if (XOR (islower (i), ISLOWER (i))
3675 || toupper (i) != TOUPPER (i))
3676 exit(2);
3677 exit (0);
3678 }
3679 _ACEOF
3680 rm -f conftest$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 :
3692 else
3693 echo "$as_me: program exited with status $ac_status" >&5
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697 ( exit $ac_status )
3698 ac_cv_header_stdc=no
3699 fi
3700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 fi
3703 fi
3704 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3705 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3706 if test $ac_cv_header_stdc = yes; then
3707
3708 cat >>confdefs.h <<\_ACEOF
3709 #define STDC_HEADERS 1
3710 _ACEOF
3711
3712 fi
3713
3714 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3725 inttypes.h stdint.h unistd.h
3726 do
3727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3728 echo "$as_me:$LINENO: checking for $ac_header" >&5
3729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 $ac_includes_default
3740
3741 #include <$ac_header>
3742 _ACEOF
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3746 ac_status=$?
3747 grep -v '^ *+' conftest.er1 >conftest.err
3748 rm -f conftest.er1
3749 cat conftest.err >&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 eval "$as_ac_Header=yes"
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 eval "$as_ac_Header=no"
3771 fi
3772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3773 fi
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3777 cat >>confdefs.h <<_ACEOF
3778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3779 _ACEOF
3780
3781 fi
3782
3783 done
3784
3785
3786
3787 if test "${ac_cv_header_minix_config_h+set}" = set; then
3788 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3789 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3790 if test "${ac_cv_header_minix_config_h+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 fi
3793 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3794 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3795 else
3796 # Is the header compilable?
3797 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3798 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3800 /* confdefs.h. */
3801 _ACEOF
3802 cat confdefs.h >>conftest.$ac_ext
3803 cat >>conftest.$ac_ext <<_ACEOF
3804 /* end confdefs.h. */
3805 $ac_includes_default
3806 #include <minix/config.h>
3807 _ACEOF
3808 rm -f conftest.$ac_objext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810 (eval $ac_compile) 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -z "$ac_c_werror_flag"
3818 || test ! -s conftest.err'
3819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 (eval $ac_try) 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 ac_header_compiler=yes
3831 else
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_header_compiler=no
3836 fi
3837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3839 echo "${ECHO_T}$ac_header_compiler" >&6
3840
3841 # Is the header present?
3842 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3843 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3844 cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h. */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 #include <minix/config.h>
3851 _ACEOF
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev/null; then
3860 if test -s conftest.err; then
3861 ac_cpp_err=$ac_c_preproc_warn_flag
3862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3863 else
3864 ac_cpp_err=
3865 fi
3866 else
3867 ac_cpp_err=yes
3868 fi
3869 if test -z "$ac_cpp_err"; then
3870 ac_header_preproc=yes
3871 else
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 ac_header_preproc=no
3876 fi
3877 rm -f conftest.err conftest.$ac_ext
3878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3879 echo "${ECHO_T}$ac_header_preproc" >&6
3880
3881 # So? What about this header?
3882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3883 yes:no: )
3884 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3885 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3886 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3887 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3888 ac_header_preproc=yes
3889 ;;
3890 no:yes:* )
3891 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3892 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3894 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3896 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3898 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3900 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3902 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3903 (
3904 cat <<\_ASBOX
3905 ## ------------------------------------------ ##
3906 ## Report this to the AC_PACKAGE_NAME lists. ##
3907 ## ------------------------------------------ ##
3908 _ASBOX
3909 ) |
3910 sed "s/^/$as_me: WARNING: /" >&2
3911 ;;
3912 esac
3913 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3914 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3915 if test "${ac_cv_header_minix_config_h+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 ac_cv_header_minix_config_h=$ac_header_preproc
3919 fi
3920 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3921 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3922
3923 fi
3924 if test $ac_cv_header_minix_config_h = yes; then
3925 MINIX=yes
3926 else
3927 MINIX=
3928 fi
3929
3930
3931 if test "$MINIX" = yes; then
3932
3933 cat >>confdefs.h <<\_ACEOF
3934 #define _POSIX_SOURCE 1
3935 _ACEOF
3936
3937
3938 cat >>confdefs.h <<\_ACEOF
3939 #define _POSIX_1_SOURCE 2
3940 _ACEOF
3941
3942
3943 cat >>confdefs.h <<\_ACEOF
3944 #define _MINIX 1
3945 _ACEOF
3946
3947 fi
3948
3949
3950
3951 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3952 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3953 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962
3963 # define __EXTENSIONS__ 1
3964 $ac_includes_default
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag"
3983 || test ! -s conftest.err'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try='test -s conftest.$ac_objext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_safe_to_define___extensions__=yes
3996 else
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000 ac_cv_safe_to_define___extensions__=no
4001 fi
4002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4003 fi
4004 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4005 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4006 test $ac_cv_safe_to_define___extensions__ = yes &&
4007 cat >>confdefs.h <<\_ACEOF
4008 #define __EXTENSIONS__ 1
4009 _ACEOF
4010
4011 cat >>confdefs.h <<\_ACEOF
4012 #define _ALL_SOURCE 1
4013 _ACEOF
4014
4015 cat >>confdefs.h <<\_ACEOF
4016 #define _GNU_SOURCE 1
4017 _ACEOF
4018
4019 cat >>confdefs.h <<\_ACEOF
4020 #define _POSIX_PTHREAD_SEMANTICS 1
4021 _ACEOF
4022
4023 cat >>confdefs.h <<\_ACEOF
4024 #define _TANDEM_SOURCE 1
4025 _ACEOF
4026
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4034 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4037 CPP=
4038 fi
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4045 do
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } >/dev/null; then
4076 if test -s conftest.err; then
4077 ac_cpp_err=$ac_c_preproc_warn_flag
4078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4079 else
4080 ac_cpp_err=
4081 fi
4082 else
4083 ac_cpp_err=yes
4084 fi
4085 if test -z "$ac_cpp_err"; then
4086 :
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 # Broken: fails on valid input.
4092 continue
4093 fi
4094 rm -f conftest.err conftest.$ac_ext
4095
4096 # OK, works on sane cases. Now check whether non-existent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4105 _ACEOF
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117 else
4118 ac_cpp_err=
4119 fi
4120 else
4121 ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124 # Broken: success on invalid input.
4125 continue
4126 else
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4140 break
4141 fi
4142
4143 done
4144 ac_cv_prog_CPP=$CPP
4145
4146 fi
4147 CPP=$ac_cv_prog_CPP
4148 else
4149 ac_cv_prog_CPP=$CPP
4150 fi
4151 echo "$as_me:$LINENO: result: $CPP" >&5
4152 echo "${ECHO_T}$CPP" >&6
4153 ac_preproc_ok=false
4154 for ac_c_preproc_warn_flag in '' yes
4155 do
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h. */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 #ifdef __STDC__
4169 # include <limits.h>
4170 #else
4171 # include <assert.h>
4172 #endif
4173 Syntax error
4174 _ACEOF
4175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } >/dev/null; then
4183 if test -s conftest.err; then
4184 ac_cpp_err=$ac_c_preproc_warn_flag
4185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4186 else
4187 ac_cpp_err=
4188 fi
4189 else
4190 ac_cpp_err=yes
4191 fi
4192 if test -z "$ac_cpp_err"; then
4193 :
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 # Broken: fails on valid input.
4199 continue
4200 fi
4201 rm -f conftest.err conftest.$ac_ext
4202
4203 # OK, works on sane cases. Now check whether non-existent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4212 _ACEOF
4213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } >/dev/null; then
4221 if test -s conftest.err; then
4222 ac_cpp_err=$ac_c_preproc_warn_flag
4223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4224 else
4225 ac_cpp_err=
4226 fi
4227 else
4228 ac_cpp_err=yes
4229 fi
4230 if test -z "$ac_cpp_err"; then
4231 # Broken: success on invalid input.
4232 continue
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 # Passes both tests.
4238 ac_preproc_ok=:
4239 break
4240 fi
4241 rm -f conftest.err conftest.$ac_ext
4242
4243 done
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4247 :
4248 else
4249 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4250 See \`config.log' for more details." >&5
4251 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4254 fi
4255
4256 ac_ext=c
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261
4262 echo "$as_me:$LINENO: checking for inline" >&5
4263 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4264 if test "${ac_cv_c_inline+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267 ac_cv_c_inline=no
4268 for ac_kw in inline __inline__ __inline; do
4269 cat >conftest.$ac_ext <<_ACEOF
4270 /* confdefs.h. */
4271 _ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #ifndef __cplusplus
4276 typedef int foo_t;
4277 static $ac_kw foo_t static_foo () {return 0; }
4278 $ac_kw foo_t foo () {return 0; }
4279 #endif
4280
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_c_werror_flag"
4292 || test ! -s conftest.err'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 (eval $ac_try) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 ac_cv_c_inline=$ac_kw; break
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4308
4309 fi
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 done
4312
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4315 echo "${ECHO_T}$ac_cv_c_inline" >&6
4316
4317
4318 case $ac_cv_c_inline in
4319 inline | yes) ;;
4320 *)
4321 case $ac_cv_c_inline in
4322 no) ac_val=;;
4323 *) ac_val=$ac_cv_c_inline;;
4324 esac
4325 cat >>confdefs.h <<_ACEOF
4326 #ifndef __cplusplus
4327 #define inline $ac_val
4328 #endif
4329 _ACEOF
4330 ;;
4331 esac
4332
4333
4334 # sizeof(char) is 1 by definition.
4335 echo "$as_me:$LINENO: checking for void *" >&5
4336 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4337 if test "${ac_cv_type_void_p+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4347 int
4348 main ()
4349 {
4350 if ((void * *) 0)
4351 return 0;
4352 if (sizeof (void *))
4353 return 0;
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest.$ac_objext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -z "$ac_c_werror_flag"
4368 || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_type_void_p=yes
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ac_cv_type_void_p=no
4386 fi
4387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4390 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4391
4392 echo "$as_me:$LINENO: checking size of void *" >&5
4393 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4394 if test "${ac_cv_sizeof_void_p+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test "$ac_cv_type_void_p" = yes; then
4398 # The cast to unsigned long works around a bug in the HP C Compiler
4399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4401 # This bug is HP SR number 8606223364.
4402 if test "$cross_compiling" = yes; then
4403 # Depending upon the size, compute the lo and hi bounds.
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 int
4412 main ()
4413 {
4414 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4415 test_array [0] = 0
4416
4417 ;
4418 return 0;
4419 }
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_lo=0 ac_mid=0
4444 while :; do
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
4452 int
4453 main ()
4454 {
4455 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4456 test_array [0] = 0
4457
4458 ;
4459 return 0;
4460 }
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_hi=$ac_mid; break
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 ac_lo=`expr $ac_mid + 1`
4490 if test $ac_lo -le $ac_mid; then
4491 ac_lo= ac_hi=
4492 break
4493 fi
4494 ac_mid=`expr 2 '*' $ac_mid + 1`
4495 fi
4496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4497 done
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508 $ac_includes_default
4509 int
4510 main ()
4511 {
4512 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4513 test_array [0] = 0
4514
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4522 ac_status=$?
4523 grep -v '^ *+' conftest.er1 >conftest.err
4524 rm -f conftest.er1
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag"
4529 || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest.$ac_objext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_hi=-1 ac_mid=-1
4542 while :; do
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4550 int
4551 main ()
4552 {
4553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4554 test_array [0] = 0
4555
4556 ;
4557 return 0;
4558 }
4559 _ACEOF
4560 rm -f conftest.$ac_objext
4561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -z "$ac_c_werror_flag"
4570 || test ! -s conftest.err'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest.$ac_objext'
4577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578 (eval $ac_try) 2>&5
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 ac_lo=$ac_mid; break
4583 else
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 ac_hi=`expr '(' $ac_mid ')' - 1`
4588 if test $ac_mid -le $ac_hi; then
4589 ac_lo= ac_hi=
4590 break
4591 fi
4592 ac_mid=`expr 2 '*' $ac_mid`
4593 fi
4594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4595 done
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 ac_lo= ac_hi=
4601 fi
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605 # Binary search between lo and hi bounds.
4606 while test "x$ac_lo" != "x$ac_hi"; do
4607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h. */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 $ac_includes_default
4615 int
4616 main ()
4617 {
4618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4619 test_array [0] = 0
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627 (eval $ac_compile) 2>conftest.er1
4628 ac_status=$?
4629 grep -v '^ *+' conftest.er1 >conftest.err
4630 rm -f conftest.er1
4631 cat conftest.err >&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -z "$ac_c_werror_flag"
4635 || test ! -s conftest.err'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 (eval $ac_try) 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest.$ac_objext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 (eval $ac_try) 2>&5
4644 ac_status=$?
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_hi=$ac_mid
4648 else
4649 echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ac_lo=`expr '(' $ac_mid ')' + 1`
4653 fi
4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655 done
4656 case $ac_lo in
4657 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4659 See \`config.log' for more details." >&5
4660 echo "$as_me: error: cannot compute sizeof (void *), 77
4661 See \`config.log' for more details." >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663 esac
4664 else
4665 if test "$cross_compiling" = yes; then
4666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4667 See \`config.log' for more details." >&5
4668 echo "$as_me: error: cannot run test program while cross compiling
4669 See \`config.log' for more details." >&2;}
4670 { (exit 1); exit 1; }; }
4671 else
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 $ac_includes_default
4679 long longval () { return (long) (sizeof (void *)); }
4680 unsigned long ulongval () { return (long) (sizeof (void *)); }
4681 #include <stdio.h>
4682 #include <stdlib.h>
4683 int
4684 main ()
4685 {
4686
4687 FILE *f = fopen ("conftest.val", "w");
4688 if (! f)
4689 exit (1);
4690 if (((long) (sizeof (void *))) < 0)
4691 {
4692 long i = longval ();
4693 if (i != ((long) (sizeof (void *))))
4694 exit (1);
4695 fprintf (f, "%ld\n", i);
4696 }
4697 else
4698 {
4699 unsigned long i = ulongval ();
4700 if (i != ((long) (sizeof (void *))))
4701 exit (1);
4702 fprintf (f, "%lu\n", i);
4703 }
4704 exit (ferror (f) || fclose (f) != 0);
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712 (eval $ac_link) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_sizeof_void_p=`cat conftest.val`
4722 else
4723 echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ( exit $ac_status )
4728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: cannot compute sizeof (void *), 77
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4733 fi
4734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4735 fi
4736 fi
4737 rm -f conftest.val
4738 else
4739 ac_cv_sizeof_void_p=0
4740 fi
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4743 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4744 cat >>confdefs.h <<_ACEOF
4745 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4746 _ACEOF
4747
4748
4749 echo "$as_me:$LINENO: checking for short" >&5
4750 echo $ECHO_N "checking for short... $ECHO_C" >&6
4751 if test "${ac_cv_type_short+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h. */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 $ac_includes_default
4761 int
4762 main ()
4763 {
4764 if ((short *) 0)
4765 return 0;
4766 if (sizeof (short))
4767 return 0;
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4775 ac_status=$?
4776 grep -v '^ *+' conftest.er1 >conftest.err
4777 rm -f conftest.er1
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 (eval $ac_try) 2>&5
4785 ac_status=$?
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 (eval $ac_try) 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_type_short=yes
4795 else
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_cv_type_short=no
4800 fi
4801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 fi
4803 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4804 echo "${ECHO_T}$ac_cv_type_short" >&6
4805
4806 echo "$as_me:$LINENO: checking size of short" >&5
4807 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4808 if test "${ac_cv_sizeof_short+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811 if test "$ac_cv_type_short" = yes; then
4812 # The cast to unsigned long works around a bug in the HP C Compiler
4813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4815 # This bug is HP SR number 8606223364.
4816 if test "$cross_compiling" = yes; then
4817 # Depending upon the size, compute the lo and hi bounds.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 $ac_includes_default
4825 int
4826 main ()
4827 {
4828 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4829 test_array [0] = 0
4830
4831 ;
4832 return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.$ac_objext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 (eval $ac_compile) 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } &&
4844 { ac_try='test -z "$ac_c_werror_flag"
4845 || test ! -s conftest.err'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 (eval $ac_try) 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 (eval $ac_try) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 ac_lo=0 ac_mid=0
4858 while :; do
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865 $ac_includes_default
4866 int
4867 main ()
4868 {
4869 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4870 test_array [0] = 0
4871
4872 ;
4873 return 0;
4874 }
4875 _ACEOF
4876 rm -f conftest.$ac_objext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878 (eval $ac_compile) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag"
4886 || test ! -s conftest.err'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4888 (eval $ac_try) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; } &&
4892 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4898 ac_hi=$ac_mid; break
4899 else
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 ac_lo=`expr $ac_mid + 1`
4904 if test $ac_lo -le $ac_mid; then
4905 ac_lo= ac_hi=
4906 break
4907 fi
4908 ac_mid=`expr 2 '*' $ac_mid + 1`
4909 fi
4910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 done
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4915
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 $ac_includes_default
4923 int
4924 main ()
4925 {
4926 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4927 test_array [0] = 0
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935 (eval $ac_compile) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_hi=-1 ac_mid=-1
4956 while :; do
4957 cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4964 int
4965 main ()
4966 {
4967 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4968 test_array [0] = 0
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_lo=$ac_mid; break
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_hi=`expr '(' $ac_mid ')' - 1`
5002 if test $ac_mid -le $ac_hi; then
5003 ac_lo= ac_hi=
5004 break
5005 fi
5006 ac_mid=`expr 2 '*' $ac_mid`
5007 fi
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 done
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_lo= ac_hi=
5015 fi
5016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019 # Binary search between lo and hi bounds.
5020 while test "x$ac_lo" != "x$ac_hi"; do
5021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h. */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5028 $ac_includes_default
5029 int
5030 main ()
5031 {
5032 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5033 test_array [0] = 0
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -z "$ac_c_werror_flag"
5049 || test ! -s conftest.err'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; } &&
5055 { ac_try='test -s conftest.$ac_objext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 (eval $ac_try) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_hi=$ac_mid
5062 else
5063 echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 ac_lo=`expr '(' $ac_mid ')' + 1`
5067 fi
5068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5069 done
5070 case $ac_lo in
5071 ?*) ac_cv_sizeof_short=$ac_lo;;
5072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: cannot compute sizeof (short), 77
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; } ;;
5077 esac
5078 else
5079 if test "$cross_compiling" = yes; then
5080 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5081 See \`config.log' for more details." >&5
5082 echo "$as_me: error: cannot run test program while cross compiling
5083 See \`config.log' for more details." >&2;}
5084 { (exit 1); exit 1; }; }
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 $ac_includes_default
5093 long longval () { return (long) (sizeof (short)); }
5094 unsigned long ulongval () { return (long) (sizeof (short)); }
5095 #include <stdio.h>
5096 #include <stdlib.h>
5097 int
5098 main ()
5099 {
5100
5101 FILE *f = fopen ("conftest.val", "w");
5102 if (! f)
5103 exit (1);
5104 if (((long) (sizeof (short))) < 0)
5105 {
5106 long i = longval ();
5107 if (i != ((long) (sizeof (short))))
5108 exit (1);
5109 fprintf (f, "%ld\n", i);
5110 }
5111 else
5112 {
5113 unsigned long i = ulongval ();
5114 if (i != ((long) (sizeof (short))))
5115 exit (1);
5116 fprintf (f, "%lu\n", i);
5117 }
5118 exit (ferror (f) || fclose (f) != 0);
5119
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest$ac_exeext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 ac_cv_sizeof_short=`cat conftest.val`
5136 else
5137 echo "$as_me: program exited with status $ac_status" >&5
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ( exit $ac_status )
5142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot compute sizeof (short), 77
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5147 fi
5148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149 fi
5150 fi
5151 rm -f conftest.val
5152 else
5153 ac_cv_sizeof_short=0
5154 fi
5155 fi
5156 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5157 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5158 cat >>confdefs.h <<_ACEOF
5159 #define SIZEOF_SHORT $ac_cv_sizeof_short
5160 _ACEOF
5161
5162
5163 echo "$as_me:$LINENO: checking for int" >&5
5164 echo $ECHO_N "checking for int... $ECHO_C" >&6
5165 if test "${ac_cv_type_int+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 int
5176 main ()
5177 {
5178 if ((int *) 0)
5179 return 0;
5180 if (sizeof (int))
5181 return 0;
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_type_int=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_cv_type_int=no
5214 fi
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5218 echo "${ECHO_T}$ac_cv_type_int" >&6
5219
5220 echo "$as_me:$LINENO: checking size of int" >&5
5221 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5222 if test "${ac_cv_sizeof_int+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 if test "$ac_cv_type_int" = yes; then
5226 # The cast to unsigned long works around a bug in the HP C Compiler
5227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5229 # This bug is HP SR number 8606223364.
5230 if test "$cross_compiling" = yes; then
5231 # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 int
5240 main ()
5241 {
5242 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5243 test_array [0] = 0
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 (eval $ac_try) 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 (eval $ac_try) 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_lo=0 ac_mid=0
5272 while :; do
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5280 int
5281 main ()
5282 {
5283 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5284 test_array [0] = 0
5285
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_hi=$ac_mid; break
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_lo=`expr $ac_mid + 1`
5318 if test $ac_lo -le $ac_mid; then
5319 ac_lo= ac_hi=
5320 break
5321 fi
5322 ac_mid=`expr 2 '*' $ac_mid + 1`
5323 fi
5324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325 done
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5337 int
5338 main ()
5339 {
5340 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5341 test_array [0] = 0
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 rm -f conftest.$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 (eval $ac_try) 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 (eval $ac_try) 2>&5
5366 ac_status=$?
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5369 ac_hi=-1 ac_mid=-1
5370 while :; do
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5378 int
5379 main ()
5380 {
5381 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5382 test_array [0] = 0
5383
5384 ;
5385 return 0;
5386 }
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_lo=$ac_mid; break
5411 else
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 ac_hi=`expr '(' $ac_mid ')' - 1`
5416 if test $ac_mid -le $ac_hi; then
5417 ac_lo= ac_hi=
5418 break
5419 fi
5420 ac_mid=`expr 2 '*' $ac_mid`
5421 fi
5422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5423 done
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_lo= ac_hi=
5429 fi
5430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 fi
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 # Binary search between lo and hi bounds.
5434 while test "x$ac_lo" != "x$ac_hi"; do
5435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5443 int
5444 main ()
5445 {
5446 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5447 test_array [0] = 0
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_hi=$ac_mid
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_lo=`expr '(' $ac_mid ')' + 1`
5481 fi
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 done
5484 case $ac_lo in
5485 ?*) ac_cv_sizeof_int=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (int), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5491 esac
5492 else
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot run test program while cross compiling
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 long longval () { return (long) (sizeof (int)); }
5508 unsigned long ulongval () { return (long) (sizeof (int)); }
5509 #include <stdio.h>
5510 #include <stdlib.h>
5511 int
5512 main ()
5513 {
5514
5515 FILE *f = fopen ("conftest.val", "w");
5516 if (! f)
5517 exit (1);
5518 if (((long) (sizeof (int))) < 0)
5519 {
5520 long i = longval ();
5521 if (i != ((long) (sizeof (int))))
5522 exit (1);
5523 fprintf (f, "%ld\n", i);
5524 }
5525 else
5526 {
5527 unsigned long i = ulongval ();
5528 if (i != ((long) (sizeof (int))))
5529 exit (1);
5530 fprintf (f, "%lu\n", i);
5531 }
5532 exit (ferror (f) || fclose (f) != 0);
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_sizeof_int=`cat conftest.val`
5550 else
5551 echo "$as_me: program exited with status $ac_status" >&5
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ( exit $ac_status )
5556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (int), 77
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; }
5561 fi
5562 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563 fi
5564 fi
5565 rm -f conftest.val
5566 else
5567 ac_cv_sizeof_int=0
5568 fi
5569 fi
5570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5571 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5572 cat >>confdefs.h <<_ACEOF
5573 #define SIZEOF_INT $ac_cv_sizeof_int
5574 _ACEOF
5575
5576
5577 echo "$as_me:$LINENO: checking for long" >&5
5578 echo $ECHO_N "checking for long... $ECHO_C" >&6
5579 if test "${ac_cv_type_long+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5589 int
5590 main ()
5591 {
5592 if ((long *) 0)
5593 return 0;
5594 if (sizeof (long))
5595 return 0;
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>conftest.er1
5603 ac_status=$?
5604 grep -v '^ *+' conftest.er1 >conftest.err
5605 rm -f conftest.er1
5606 cat conftest.err >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); } &&
5609 { ac_try='test -z "$ac_c_werror_flag"
5610 || test ! -s conftest.err'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_type_long=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_type_long=no
5628 fi
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5632 echo "${ECHO_T}$ac_cv_type_long" >&6
5633
5634 echo "$as_me:$LINENO: checking size of long" >&5
5635 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5636 if test "${ac_cv_sizeof_long+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 if test "$ac_cv_type_long" = yes; then
5640 # The cast to unsigned long works around a bug in the HP C Compiler
5641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5643 # This bug is HP SR number 8606223364.
5644 if test "$cross_compiling" = yes; then
5645 # Depending upon the size, compute the lo and hi bounds.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5653 int
5654 main ()
5655 {
5656 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5657 test_array [0] = 0
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 ac_lo=0 ac_mid=0
5686 while :; do
5687 cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5694 int
5695 main ()
5696 {
5697 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5698 test_array [0] = 0
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_hi=$ac_mid; break
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_lo=`expr $ac_mid + 1`
5732 if test $ac_lo -le $ac_mid; then
5733 ac_lo= ac_hi=
5734 break
5735 fi
5736 ac_mid=`expr 2 '*' $ac_mid + 1`
5737 fi
5738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5739 done
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h. */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5755 test_array [0] = 0
5756
5757 ;
5758 return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763 (eval $ac_compile) 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag"
5771 || test ! -s conftest.err'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 ac_hi=-1 ac_mid=-1
5784 while :; do
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 int
5793 main ()
5794 {
5795 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5796 test_array [0] = 0
5797
5798 ;
5799 return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_c_werror_flag"
5812 || test ! -s conftest.err'
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; } &&
5818 { ac_try='test -s conftest.$ac_objext'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
5824 ac_lo=$ac_mid; break
5825 else
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_hi=`expr '(' $ac_mid ')' - 1`
5830 if test $ac_mid -le $ac_hi; then
5831 ac_lo= ac_hi=
5832 break
5833 fi
5834 ac_mid=`expr 2 '*' $ac_mid`
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 done
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_lo= ac_hi=
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 # Binary search between lo and hi bounds.
5848 while test "x$ac_lo" != "x$ac_hi"; do
5849 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5857 int
5858 main ()
5859 {
5860 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5861 test_array [0] = 0
5862
5863 ;
5864 return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
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); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_hi=$ac_mid
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_lo=`expr '(' $ac_mid ')' + 1`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897 done
5898 case $ac_lo in
5899 ?*) ac_cv_sizeof_long=$ac_lo;;
5900 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5901 See \`config.log' for more details." >&5
5902 echo "$as_me: error: cannot compute sizeof (long), 77
5903 See \`config.log' for more details." >&2;}
5904 { (exit 1); exit 1; }; } ;;
5905 esac
5906 else
5907 if test "$cross_compiling" = yes; then
5908 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5909 See \`config.log' for more details." >&5
5910 echo "$as_me: error: cannot run test program while cross compiling
5911 See \`config.log' for more details." >&2;}
5912 { (exit 1); exit 1; }; }
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5921 long longval () { return (long) (sizeof (long)); }
5922 unsigned long ulongval () { return (long) (sizeof (long)); }
5923 #include <stdio.h>
5924 #include <stdlib.h>
5925 int
5926 main ()
5927 {
5928
5929 FILE *f = fopen ("conftest.val", "w");
5930 if (! f)
5931 exit (1);
5932 if (((long) (sizeof (long))) < 0)
5933 {
5934 long i = longval ();
5935 if (i != ((long) (sizeof (long))))
5936 exit (1);
5937 fprintf (f, "%ld\n", i);
5938 }
5939 else
5940 {
5941 unsigned long i = ulongval ();
5942 if (i != ((long) (sizeof (long))))
5943 exit (1);
5944 fprintf (f, "%lu\n", i);
5945 }
5946 exit (ferror (f) || fclose (f) != 0);
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 rm -f conftest$ac_exeext
5953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 (eval $ac_try) 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_sizeof_long=`cat conftest.val`
5964 else
5965 echo "$as_me: program exited with status $ac_status" >&5
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 ( exit $ac_status )
5970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5971 See \`config.log' for more details." >&5
5972 echo "$as_me: error: cannot compute sizeof (long), 77
5973 See \`config.log' for more details." >&2;}
5974 { (exit 1); exit 1; }; }
5975 fi
5976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5977 fi
5978 fi
5979 rm -f conftest.val
5980 else
5981 ac_cv_sizeof_long=0
5982 fi
5983 fi
5984 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5985 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5986 cat >>confdefs.h <<_ACEOF
5987 #define SIZEOF_LONG $ac_cv_sizeof_long
5988 _ACEOF
5989
5990
5991 echo "$as_me:$LINENO: checking for long long" >&5
5992 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5993 if test "${ac_cv_type_long_long+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003 int
6004 main ()
6005 {
6006 if ((long long *) 0)
6007 return 0;
6008 if (sizeof (long long))
6009 return 0;
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag"
6024 || test ! -s conftest.err'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 (eval $ac_try) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; } &&
6030 { ac_try='test -s conftest.$ac_objext'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; }; then
6036 ac_cv_type_long_long=yes
6037 else
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_type_long_long=no
6042 fi
6043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6046 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6047 if test $ac_cv_type_long_long = yes; then
6048
6049 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_LONG_LONG 1
6051 _ACEOF
6052
6053 echo "$as_me:$LINENO: checking for long long" >&5
6054 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6055 if test "${ac_cv_type_long_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6065 int
6066 main ()
6067 {
6068 if ((long long *) 0)
6069 return 0;
6070 if (sizeof (long long))
6071 return 0;
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_type_long_long=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_type_long_long=no
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6108 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6109
6110 echo "$as_me:$LINENO: checking size of long long" >&5
6111 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6112 if test "${ac_cv_sizeof_long_long+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 if test "$ac_cv_type_long_long" = yes; then
6116 # The cast to unsigned long works around a bug in the HP C Compiler
6117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6119 # This bug is HP SR number 8606223364.
6120 if test "$cross_compiling" = yes; then
6121 # Depending upon the size, compute the lo and hi bounds.
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6129 int
6130 main ()
6131 {
6132 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6133 test_array [0] = 0
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
6155 { ac_try='test -s conftest.$ac_objext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_lo=0 ac_mid=0
6162 while :; do
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6170 int
6171 main ()
6172 {
6173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6174 test_array [0] = 0
6175
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_hi=$ac_mid; break
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_lo=`expr $ac_mid + 1`
6208 if test $ac_lo -le $ac_mid; then
6209 ac_lo= ac_hi=
6210 break
6211 fi
6212 ac_mid=`expr 2 '*' $ac_mid + 1`
6213 fi
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215 done
6216 else
6217 echo "$as_me: failed program was:" >&5
6218 sed 's/^/| /' conftest.$ac_ext >&5
6219
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 $ac_includes_default
6227 int
6228 main ()
6229 {
6230 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6231 test_array [0] = 0
6232
6233 ;
6234 return 0;
6235 }
6236 _ACEOF
6237 rm -f conftest.$ac_objext
6238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6239 (eval $ac_compile) 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -z "$ac_c_werror_flag"
6247 || test ! -s conftest.err'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 (eval $ac_try) 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; } &&
6253 { ac_try='test -s conftest.$ac_objext'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 (eval $ac_try) 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; }; then
6259 ac_hi=-1 ac_mid=-1
6260 while :; do
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6268 int
6269 main ()
6270 {
6271 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6272 test_array [0] = 0
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280 (eval $ac_compile) 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_lo=$ac_mid; break
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ac_hi=`expr '(' $ac_mid ')' - 1`
6306 if test $ac_mid -le $ac_hi; then
6307 ac_lo= ac_hi=
6308 break
6309 fi
6310 ac_mid=`expr 2 '*' $ac_mid`
6311 fi
6312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313 done
6314 else
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318 ac_lo= ac_hi=
6319 fi
6320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6321 fi
6322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6323 # Binary search between lo and hi bounds.
6324 while test "x$ac_lo" != "x$ac_hi"; do
6325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
6333 int
6334 main ()
6335 {
6336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6337 test_array [0] = 0
6338
6339 ;
6340 return 0;
6341 }
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_hi=$ac_mid
6366 else
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370 ac_lo=`expr '(' $ac_mid ')' + 1`
6371 fi
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373 done
6374 case $ac_lo in
6375 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (long long), 77
6379 See \`config.log' for more details." >&2;}
6380 { (exit 1); exit 1; }; } ;;
6381 esac
6382 else
6383 if test "$cross_compiling" = yes; then
6384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6385 See \`config.log' for more details." >&5
6386 echo "$as_me: error: cannot run test program while cross compiling
6387 See \`config.log' for more details." >&2;}
6388 { (exit 1); exit 1; }; }
6389 else
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 long longval () { return (long) (sizeof (long long)); }
6398 unsigned long ulongval () { return (long) (sizeof (long long)); }
6399 #include <stdio.h>
6400 #include <stdlib.h>
6401 int
6402 main ()
6403 {
6404
6405 FILE *f = fopen ("conftest.val", "w");
6406 if (! f)
6407 exit (1);
6408 if (((long) (sizeof (long long))) < 0)
6409 {
6410 long i = longval ();
6411 if (i != ((long) (sizeof (long long))))
6412 exit (1);
6413 fprintf (f, "%ld\n", i);
6414 }
6415 else
6416 {
6417 unsigned long i = ulongval ();
6418 if (i != ((long) (sizeof (long long))))
6419 exit (1);
6420 fprintf (f, "%lu\n", i);
6421 }
6422 exit (ferror (f) || fclose (f) != 0);
6423
6424 ;
6425 return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_sizeof_long_long=`cat conftest.val`
6440 else
6441 echo "$as_me: program exited with status $ac_status" >&5
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ( exit $ac_status )
6446 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6447 See \`config.log' for more details." >&5
6448 echo "$as_me: error: cannot compute sizeof (long long), 77
6449 See \`config.log' for more details." >&2;}
6450 { (exit 1); exit 1; }; }
6451 fi
6452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6453 fi
6454 fi
6455 rm -f conftest.val
6456 else
6457 ac_cv_sizeof_long_long=0
6458 fi
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6461 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6462 cat >>confdefs.h <<_ACEOF
6463 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6464 _ACEOF
6465
6466
6467 fi
6468
6469 echo "$as_me:$LINENO: checking for __int64" >&5
6470 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6471 if test "${ac_cv_type___int64+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 $ac_includes_default
6481 int
6482 main ()
6483 {
6484 if ((__int64 *) 0)
6485 return 0;
6486 if (sizeof (__int64))
6487 return 0;
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494 (eval $ac_compile) 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag"
6502 || test ! -s conftest.err'
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); }; } &&
6508 { ac_try='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 (eval $ac_try) 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_type___int64=yes
6515 else
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ac_cv_type___int64=no
6520 fi
6521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6524 echo "${ECHO_T}$ac_cv_type___int64" >&6
6525 if test $ac_cv_type___int64 = yes; then
6526
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE___INT64 1
6529 _ACEOF
6530
6531 echo "$as_me:$LINENO: checking for __int64" >&5
6532 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6533 if test "${ac_cv_type___int64+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6543 int
6544 main ()
6545 {
6546 if ((__int64 *) 0)
6547 return 0;
6548 if (sizeof (__int64))
6549 return 0;
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556 (eval $ac_compile) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_c_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_type___int64=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_cv_type___int64=no
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584 fi
6585 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6586 echo "${ECHO_T}$ac_cv_type___int64" >&6
6587
6588 echo "$as_me:$LINENO: checking size of __int64" >&5
6589 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6590 if test "${ac_cv_sizeof___int64+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 if test "$ac_cv_type___int64" = yes; then
6594 # The cast to unsigned long works around a bug in the HP C Compiler
6595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6597 # This bug is HP SR number 8606223364.
6598 if test "$cross_compiling" = yes; then
6599 # Depending upon the size, compute the lo and hi bounds.
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6607 int
6608 main ()
6609 {
6610 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6611 test_array [0] = 0
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest.$ac_objext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 ac_lo=0 ac_mid=0
6640 while :; do
6641 cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h. */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 $ac_includes_default
6648 int
6649 main ()
6650 {
6651 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6652 test_array [0] = 0
6653
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 rm -f conftest.$ac_objext
6659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 (eval $ac_compile) 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -z "$ac_c_werror_flag"
6668 || test ! -s conftest.err'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670 (eval $ac_try) 2>&5
6671 ac_status=$?
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; } &&
6674 { ac_try='test -s conftest.$ac_objext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6680 ac_hi=$ac_mid; break
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 ac_lo=`expr $ac_mid + 1`
6686 if test $ac_lo -le $ac_mid; then
6687 ac_lo= ac_hi=
6688 break
6689 fi
6690 ac_mid=`expr 2 '*' $ac_mid + 1`
6691 fi
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6693 done
6694 else
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.$ac_ext >&5
6697
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 int
6706 main ()
6707 {
6708 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6709 test_array [0] = 0
6710
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -z "$ac_c_werror_flag"
6725 || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6737 ac_hi=-1 ac_mid=-1
6738 while :; do
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6746 int
6747 main ()
6748 {
6749 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6750 test_array [0] = 0
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_lo=$ac_mid; break
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_hi=`expr '(' $ac_mid ')' - 1`
6784 if test $ac_mid -le $ac_hi; then
6785 ac_lo= ac_hi=
6786 break
6787 fi
6788 ac_mid=`expr 2 '*' $ac_mid`
6789 fi
6790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6791 done
6792 else
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ac_lo= ac_hi=
6797 fi
6798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 fi
6800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6801 # Binary search between lo and hi bounds.
6802 while test "x$ac_lo" != "x$ac_hi"; do
6803 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6804 cat >conftest.$ac_ext <<_ACEOF
6805 /* confdefs.h. */
6806 _ACEOF
6807 cat confdefs.h >>conftest.$ac_ext
6808 cat >>conftest.$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6810 $ac_includes_default
6811 int
6812 main ()
6813 {
6814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6815 test_array [0] = 0
6816
6817 ;
6818 return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6843 ac_hi=$ac_mid
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_lo=`expr '(' $ac_mid ')' + 1`
6849 fi
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 done
6852 case $ac_lo in
6853 ?*) ac_cv_sizeof___int64=$ac_lo;;
6854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6855 See \`config.log' for more details." >&5
6856 echo "$as_me: error: cannot compute sizeof (__int64), 77
6857 See \`config.log' for more details." >&2;}
6858 { (exit 1); exit 1; }; } ;;
6859 esac
6860 else
6861 if test "$cross_compiling" = yes; then
6862 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6863 See \`config.log' for more details." >&5
6864 echo "$as_me: error: cannot run test program while cross compiling
6865 See \`config.log' for more details." >&2;}
6866 { (exit 1); exit 1; }; }
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 long longval () { return (long) (sizeof (__int64)); }
6876 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6877 #include <stdio.h>
6878 #include <stdlib.h>
6879 int
6880 main ()
6881 {
6882
6883 FILE *f = fopen ("conftest.val", "w");
6884 if (! f)
6885 exit (1);
6886 if (((long) (sizeof (__int64))) < 0)
6887 {
6888 long i = longval ();
6889 if (i != ((long) (sizeof (__int64))))
6890 exit (1);
6891 fprintf (f, "%ld\n", i);
6892 }
6893 else
6894 {
6895 unsigned long i = ulongval ();
6896 if (i != ((long) (sizeof (__int64))))
6897 exit (1);
6898 fprintf (f, "%lu\n", i);
6899 }
6900 exit (ferror (f) || fclose (f) != 0);
6901
6902 ;
6903 return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_sizeof___int64=`cat conftest.val`
6918 else
6919 echo "$as_me: program exited with status $ac_status" >&5
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6922
6923 ( exit $ac_status )
6924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6925 See \`config.log' for more details." >&5
6926 echo "$as_me: error: cannot compute sizeof (__int64), 77
6927 See \`config.log' for more details." >&2;}
6928 { (exit 1); exit 1; }; }
6929 fi
6930 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 fi
6933 rm -f conftest.val
6934 else
6935 ac_cv_sizeof___int64=0
6936 fi
6937 fi
6938 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6939 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6940 cat >>confdefs.h <<_ACEOF
6941 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6942 _ACEOF
6943
6944
6945 fi
6946
6947
6948 # ---------------------
6949 # Warnings and checking
6950 # ---------------------
6951
6952 # Check $CC warning features (if it's GCC).
6953 # We want to use -pedantic, but we don't want warnings about
6954 # * 'long long'
6955 # * variadic macros
6956 # * overlong strings
6957 # So, we only use -pedantic if we can disable those warnings.
6958
6959 loose_warn=
6960 save_CFLAGS="$CFLAGS"
6961 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6962 -Wmissing-prototypes; do
6963 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6964
6965 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6966 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6967 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 CFLAGS="$option"
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977
6978 int
6979 main ()
6980 {
6981
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } &&
6995 { ac_try='test -z "$ac_c_werror_flag"
6996 || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 eval "$as_acx_Woption=yes"
7009 else
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013 eval "$as_acx_Woption=no"
7014 fi
7015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016
7017 fi
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7020 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7021 loose_warn="$loose_warn${loose_warn:+ }$option"
7022 fi
7023
7024 done
7025 CFLAGS="$save_CFLAGS"
7026
7027 cxx_compat_warn=
7028 save_CFLAGS="$CFLAGS"
7029 for option in -Wc++-compat; do
7030 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7031
7032 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7033 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7034 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 CFLAGS="$option"
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044
7045 int
7046 main ()
7047 {
7048
7049 ;
7050 return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -z "$ac_c_werror_flag"
7063 || test ! -s conftest.err'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 (eval $ac_try) 2>&5
7066 ac_status=$?
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; } &&
7069 { ac_try='test -s conftest.$ac_objext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 eval "$as_acx_Woption=yes"
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 eval "$as_acx_Woption=no"
7081 fi
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083
7084 fi
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7087 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7088 cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
7089 fi
7090
7091 done
7092 CFLAGS="$save_CFLAGS"
7093
7094 strict_warn=
7095 save_CFLAGS="$CFLAGS"
7096 for option in -Wold-style-definition \
7097 -Wmissing-format-attribute; do
7098 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7099
7100 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7101 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7102 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 CFLAGS="$option"
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 eval "$as_acx_Woption=yes"
7144 else
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 eval "$as_acx_Woption=no"
7149 fi
7150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7151
7152 fi
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7155 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7156 strict_warn="$strict_warn${strict_warn:+ }$option"
7157 fi
7158
7159 done
7160 CFLAGS="$save_CFLAGS"
7161
7162 if test "$GCC" = yes; then
7163 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7164 -Wno-overlength-strings" >&5
7165 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7166 -Wno-overlength-strings... $ECHO_C" >&6
7167 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170 save_CFLAGS="$CFLAGS"
7171 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7172 -Wno-overlength-strings"
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179
7180 int
7181 main ()
7182 {
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7216 fi
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 CFLAGS="$save_CFLAGS"
7219 fi
7220 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7221 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7222 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7223 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7224 -Wno-overlength-strings"
7225 fi
7226
7227
7228 fi
7229
7230
7231 # Check whether --enable-werror-always or --disable-werror-always was given.
7232 if test "${enable_werror_always+set}" = set; then
7233 enableval="$enable_werror_always"
7234
7235 else
7236 enable_werror_always=no
7237 fi;
7238 if test $enable_werror_always = yes; then
7239 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7240 fi
7241
7242
7243
7244
7245 # The above macros do nothing if the compiler is not GCC. However, the
7246 # Makefile has more goo to add other flags, so this variabl is used to
7247 # enables warnings only for GCC.
7248 warn_cflags=
7249 if test "x$GCC" = "xyes"; then
7250 warn_cflags='$(GCC_WARN_CFLAGS)'
7251 fi
7252
7253
7254 # Enable expensive internal checks
7255 is_release=
7256 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7257 is_release=yes
7258 fi
7259
7260 # Check whether --enable-checking or --disable-checking was given.
7261 if test "${enable_checking+set}" = set; then
7262 enableval="$enable_checking"
7263 ac_checking_flags="${enableval}"
7264 else
7265
7266 # Determine the default checks.
7267 if test x$is_release = x ; then
7268 ac_checking_flags=yes
7269 else
7270 ac_checking_flags=release
7271 fi
7272 fi;
7273 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7274 for check in release $ac_checking_flags
7275 do
7276 case $check in
7277 # these set all the flags to specific states
7278 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7279 ac_fold_checking= ; ac_gc_checking=1 ;
7280 ac_gc_always_collect= ; ac_rtl_checking= ;
7281 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7282 ac_tree_checking=1 ; ac_valgrind_checking= ;
7283 ac_types_checking=1 ;;
7284 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7285 ac_fold_checking= ; ac_gc_checking= ;
7286 ac_gc_always_collect= ; ac_rtl_checking= ;
7287 ac_rtlflag_checking= ; ac_runtime_checking= ;
7288 ac_tree_checking= ; ac_valgrind_checking= ;
7289 ac_types_checking= ;;
7290 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7291 ac_fold_checking=1 ; ac_gc_checking=1 ;
7292 ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7293 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7294 ac_tree_checking=1 ; ac_valgrind_checking= ;
7295 ac_types_checking=1 ;;
7296 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7297 ac_fold_checking= ; ac_gc_checking= ;
7298 ac_gc_always_collect= ; ac_rtl_checking= ;
7299 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7300 ac_tree_checking= ; ac_valgrind_checking= ;
7301 ac_types_checking= ;;
7302 # these enable particular checks
7303 assert) ac_assert_checking=1 ;;
7304 df) ac_df_checking=1 ;;
7305 fold) ac_fold_checking=1 ;;
7306 gc) ac_gc_checking=1 ;;
7307 gcac) ac_gc_always_collect=1 ;;
7308 misc) ac_checking=1 ;;
7309 rtl) ac_rtl_checking=1 ;;
7310 rtlflag) ac_rtlflag_checking=1 ;;
7311 runtime) ac_runtime_checking=1 ;;
7312 tree) ac_tree_checking=1 ;;
7313 types) ac_types_checking=1 ;;
7314 valgrind) ac_valgrind_checking=1 ;;
7315 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7316 echo "$as_me: error: unknown check category $check" >&2;}
7317 { (exit 1); exit 1; }; } ;;
7318 esac
7319 done
7320 IFS="$ac_save_IFS"
7321
7322 nocommon_flag=""
7323 if test x$ac_checking != x ; then
7324
7325 cat >>confdefs.h <<\_ACEOF
7326 #define ENABLE_CHECKING 1
7327 _ACEOF
7328
7329 nocommon_flag=-fno-common
7330 fi
7331
7332 if test x$ac_df_checking != x ; then
7333
7334 cat >>confdefs.h <<\_ACEOF
7335 #define ENABLE_DF_CHECKING 1
7336 _ACEOF
7337
7338 fi
7339 if test x$ac_assert_checking != x ; then
7340
7341 cat >>confdefs.h <<\_ACEOF
7342 #define ENABLE_ASSERT_CHECKING 1
7343 _ACEOF
7344
7345 fi
7346
7347 if test x$ac_runtime_checking != x ; then
7348
7349 cat >>confdefs.h <<\_ACEOF
7350 #define ENABLE_RUNTIME_CHECKING 1
7351 _ACEOF
7352
7353 fi
7354 if test x$ac_tree_checking != x ; then
7355
7356 cat >>confdefs.h <<\_ACEOF
7357 #define ENABLE_TREE_CHECKING 1
7358 _ACEOF
7359
7360 TREEBROWSER=tree-browser.o
7361 fi
7362 if test x$ac_types_checking != x ; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define ENABLE_TYPES_CHECKING 1
7366 _ACEOF
7367
7368 fi
7369
7370 if test x$ac_rtl_checking != x ; then
7371
7372 cat >>confdefs.h <<\_ACEOF
7373 #define ENABLE_RTL_CHECKING 1
7374 _ACEOF
7375
7376 fi
7377 if test x$ac_rtlflag_checking != x ; then
7378
7379 cat >>confdefs.h <<\_ACEOF
7380 #define ENABLE_RTL_FLAG_CHECKING 1
7381 _ACEOF
7382
7383 fi
7384 if test x$ac_gc_checking != x ; then
7385
7386 cat >>confdefs.h <<\_ACEOF
7387 #define ENABLE_GC_CHECKING 1
7388 _ACEOF
7389
7390 fi
7391 if test x$ac_gc_always_collect != x ; then
7392
7393 cat >>confdefs.h <<\_ACEOF
7394 #define ENABLE_GC_ALWAYS_COLLECT 1
7395 _ACEOF
7396
7397 fi
7398 if test x$ac_fold_checking != x ; then
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define ENABLE_FOLD_CHECKING 1
7402 _ACEOF
7403
7404 fi
7405 valgrind_path_defines=
7406 valgrind_command=
7407
7408 if test "${ac_cv_header_valgrind_h+set}" = set; then
7409 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7410 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7411 if test "${ac_cv_header_valgrind_h+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 fi
7414 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7415 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7416 else
7417 # Is the header compilable?
7418 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7419 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 #include <valgrind.h>
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest.$ac_objext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_header_compiler=yes
7452 else
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 ac_header_compiler=no
7457 fi
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7460 echo "${ECHO_T}$ac_header_compiler" >&6
7461
7462 # Is the header present?
7463 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7464 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 #include <valgrind.h>
7472 _ACEOF
7473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } >/dev/null; then
7481 if test -s conftest.err; then
7482 ac_cpp_err=$ac_c_preproc_warn_flag
7483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7484 else
7485 ac_cpp_err=
7486 fi
7487 else
7488 ac_cpp_err=yes
7489 fi
7490 if test -z "$ac_cpp_err"; then
7491 ac_header_preproc=yes
7492 else
7493 echo "$as_me: failed program was:" >&5
7494 sed 's/^/| /' conftest.$ac_ext >&5
7495
7496 ac_header_preproc=no
7497 fi
7498 rm -f conftest.err conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7500 echo "${ECHO_T}$ac_header_preproc" >&6
7501
7502 # So? What about this header?
7503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7504 yes:no: )
7505 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7506 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7508 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7509 ac_header_preproc=yes
7510 ;;
7511 no:yes:* )
7512 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7513 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
7515 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7517 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
7519 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
7520 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7521 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7523 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7524 (
7525 cat <<\_ASBOX
7526 ## ------------------------------------------ ##
7527 ## Report this to the AC_PACKAGE_NAME lists. ##
7528 ## ------------------------------------------ ##
7529 _ASBOX
7530 ) |
7531 sed "s/^/$as_me: WARNING: /" >&2
7532 ;;
7533 esac
7534 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7535 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7536 if test "${ac_cv_header_valgrind_h+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 ac_cv_header_valgrind_h=$ac_header_preproc
7540 fi
7541 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7542 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7543
7544 fi
7545 if test $ac_cv_header_valgrind_h = yes; then
7546 have_valgrind_h=yes
7547 else
7548 have_valgrind_h=no
7549 fi
7550
7551
7552
7553 if test x$ac_valgrind_checking != x ; then
7554 # It is certainly possible that there's valgrind but no valgrind.h.
7555 # GCC relies on making annotations so we must have both.
7556 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7557 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <valgrind/memcheck.h>
7565 #ifndef VALGRIND_DISCARD
7566 #error VALGRIND_DISCARD not defined
7567 #endif
7568 _ACEOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } >/dev/null; then
7577 if test -s conftest.err; then
7578 ac_cpp_err=$ac_c_preproc_warn_flag
7579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7580 else
7581 ac_cpp_err=
7582 fi
7583 else
7584 ac_cpp_err=yes
7585 fi
7586 if test -z "$ac_cpp_err"; then
7587 gcc_cv_header_valgrind_memcheck_h=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592 gcc_cv_header_valgrind_memcheck_h=no
7593 fi
7594 rm -f conftest.err conftest.$ac_ext
7595 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7596 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7597 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7598 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <memcheck.h>
7606 #ifndef VALGRIND_DISCARD
7607 #error VALGRIND_DISCARD not defined
7608 #endif
7609 _ACEOF
7610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } >/dev/null; then
7618 if test -s conftest.err; then
7619 ac_cpp_err=$ac_c_preproc_warn_flag
7620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7621 else
7622 ac_cpp_err=
7623 fi
7624 else
7625 ac_cpp_err=yes
7626 fi
7627 if test -z "$ac_cpp_err"; then
7628 gcc_cv_header_memcheck_h=yes
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 gcc_cv_header_memcheck_h=no
7634 fi
7635 rm -f conftest.err conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7637 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7638
7639 # Prepare PATH_SEPARATOR.
7640 # The user is always right.
7641 if test "${PATH_SEPARATOR+set}" != set; then
7642 echo "#! /bin/sh" >conf$$.sh
7643 echo "exit 0" >>conf$$.sh
7644 chmod +x conf$$.sh
7645 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7646 PATH_SEPARATOR=';'
7647 else
7648 PATH_SEPARATOR=:
7649 fi
7650 rm -f conf$$.sh
7651 fi
7652
7653 # Find out how to test for executable files. Don't use a zero-byte file,
7654 # as systems may use methods other than mode bits to determine executability.
7655 cat >conf$$.file <<_ASEOF
7656 #! /bin/sh
7657 exit 0
7658 _ASEOF
7659 chmod +x conf$$.file
7660 if test -x conf$$.file >/dev/null 2>&1; then
7661 ac_executable_p="test -x"
7662 else
7663 ac_executable_p="test -f"
7664 fi
7665 rm -f conf$$.file
7666
7667 # Extract the first word of "valgrind", so it can be a program name with args.
7668 set dummy valgrind; ac_word=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_path_valgrind_path+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674 case "$valgrind_path" in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7680 for ac_dir in $PATH; do
7681 IFS="$ac_save_IFS"
7682 test -z "$ac_dir" && ac_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7685 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7686 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7687 break 2
7688 fi
7689 fi
7690 done
7691 done
7692 IFS="$ac_save_IFS"
7693 ;;
7694 esac
7695 fi
7696 valgrind_path="$ac_cv_path_valgrind_path"
7697 if test -n "$valgrind_path"; then
7698 echo "$as_me:$LINENO: result: $valgrind_path" >&5
7699 echo "${ECHO_T}$valgrind_path" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7703 fi
7704
7705 if test "x$valgrind_path" = "x" \
7706 || (test $have_valgrind_h = no \
7707 && test $gcc_cv_header_memcheck_h = no \
7708 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7709 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7710 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7711 { (exit 1); exit 1; }; }
7712 fi
7713 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7714 valgrind_command="$valgrind_path -q"
7715
7716 cat >>confdefs.h <<\_ACEOF
7717 #define ENABLE_VALGRIND_CHECKING 1
7718 _ACEOF
7719
7720 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_VALGRIND_MEMCHECK_H 1
7724 _ACEOF
7725
7726 fi
7727 if test $gcc_cv_header_memcheck_h = yes; then
7728
7729 cat >>confdefs.h <<\_ACEOF
7730 #define HAVE_MEMCHECK_H 1
7731 _ACEOF
7732
7733 fi
7734 fi
7735
7736
7737
7738 # Enable code coverage collection
7739 # Check whether --enable-coverage or --disable-coverage was given.
7740 if test "${enable_coverage+set}" = set; then
7741 enableval="$enable_coverage"
7742 case "${enableval}" in
7743 yes|noopt)
7744 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7745 ;;
7746 opt)
7747 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7748 ;;
7749 no)
7750 # a.k.a. --disable-coverage
7751 coverage_flags=""
7752 ;;
7753 *)
7754 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7755 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7756 { (exit 1); exit 1; }; }
7757 ;;
7758 esac
7759 else
7760 coverage_flags=""
7761 fi;
7762
7763
7764 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7765 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7766 enableval="$enable_gather_detailed_mem_stats"
7767
7768 else
7769 enable_gather_detailed_mem_stats=no
7770 fi;
7771 if test x$enable_gather_detailed_mem_stats = xyes ; then
7772
7773 cat >>confdefs.h <<\_ACEOF
7774 #define GATHER_STATISTICS 1
7775 _ACEOF
7776
7777 fi
7778
7779 # -------------------------------
7780 # Miscenalleous configure options
7781 # -------------------------------
7782
7783 # With stabs
7784
7785 # Check whether --with-stabs or --without-stabs was given.
7786 if test "${with_stabs+set}" = set; then
7787 withval="$with_stabs"
7788 stabs="$with_stabs"
7789 else
7790 stabs=no
7791 fi;
7792
7793 # Determine whether or not multilibs are enabled.
7794 # Check whether --enable-multilib or --disable-multilib was given.
7795 if test "${enable_multilib+set}" = set; then
7796 enableval="$enable_multilib"
7797
7798 else
7799 enable_multilib=yes
7800 fi;
7801
7802
7803 # Enable __cxa_atexit for C++.
7804 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7805 if test "${enable___cxa_atexit+set}" = set; then
7806 enableval="$enable___cxa_atexit"
7807
7808 fi;
7809
7810 # Enable C extension for decimal float if target supports it.
7811 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7812 if test "${enable_decimal_float+set}" = set; then
7813 enableval="$enable_decimal_float"
7814
7815 case $enable_decimal_float in
7816 yes | no | bid | dpd) ;;
7817 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7818 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7819 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7820 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7821 { (exit 1); exit 1; }; } ;;
7822 esac
7823
7824 else
7825
7826 case $target in
7827 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7828 enable_decimal_float=yes
7829 ;;
7830 *)
7831 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7832 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7833 enable_decimal_float=no
7834 ;;
7835 esac
7836
7837 fi;
7838
7839 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7840
7841 cat >>confdefs.h <<_ACEOF
7842 #define ENABLE_DECIMAL_FLOAT $dfp
7843 _ACEOF
7844
7845
7846 # x86's use BID format instead of DPD
7847 case x$enable_decimal_float in
7848 xyes)
7849 case $target in
7850 i?86*-*-linux* | x86_64*-*-linux*)
7851 enable_decimal_float=bid
7852 ;;
7853 *)
7854 enable_decimal_float=dpd
7855 ;;
7856 esac
7857 ;;
7858 xno)
7859 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7860 # dependency on libdecnumber.
7861 enable_decimal_float=dpd
7862 ;;
7863 esac
7864
7865
7866 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define ENABLE_DECIMAL_BID_FORMAT $bid
7870 _ACEOF
7871
7872
7873 # Enable C extension for fixed-point arithmetic.
7874 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7875 if test "${enable_fixed_point+set}" = set; then
7876 enableval="$enable_fixed_point"
7877
7878
7879 else
7880
7881 case $target in
7882 mips*-*-*)
7883 case $host in
7884 mips*-sgi-irix*)
7885 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7886 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7887 enable_fixed_point=no
7888 ;;
7889 *)
7890 enable_fixed_point=yes
7891 ;;
7892 esac
7893 ;;
7894 *)
7895 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7896 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7897 enable_fixed_point=no
7898 ;;
7899 esac
7900
7901 fi;
7902
7903
7904 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7905
7906 cat >>confdefs.h <<_ACEOF
7907 #define ENABLE_FIXED_POINT $fixedpoint
7908 _ACEOF
7909
7910
7911 # Enable threads
7912 # Pass with no value to take the default
7913 # Pass with a value to specify a thread package
7914 # Check whether --enable-threads or --disable-threads was given.
7915 if test "${enable_threads+set}" = set; then
7916 enableval="$enable_threads"
7917
7918 else
7919 enable_threads=''
7920 fi;
7921
7922 # Check whether --enable-tls or --disable-tls was given.
7923 if test "${enable_tls+set}" = set; then
7924 enableval="$enable_tls"
7925
7926 case $enable_tls in
7927 yes | no) ;;
7928 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7929 Valid choices are 'yes' and 'no'." >&5
7930 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7931 Valid choices are 'yes' and 'no'." >&2;}
7932 { (exit 1); exit 1; }; } ;;
7933 esac
7934
7935 else
7936 enable_tls=''
7937 fi;
7938
7939 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7940 if test "${enable_objc_gc+set}" = set; then
7941 enableval="$enable_objc_gc"
7942 if test x$enable_objc_gc = xno; then
7943 objc_boehm_gc=''
7944 else
7945 objc_boehm_gc=1
7946 fi
7947 else
7948 objc_boehm_gc=''
7949 fi;
7950
7951
7952 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7953 if test "${with_dwarf2+set}" = set; then
7954 withval="$with_dwarf2"
7955 dwarf2="$with_dwarf2"
7956 else
7957 dwarf2=no
7958 fi;
7959
7960 # Check whether --enable-shared or --disable-shared was given.
7961 if test "${enable_shared+set}" = set; then
7962 enableval="$enable_shared"
7963
7964 case $enable_shared in
7965 yes | no) ;;
7966 *)
7967 enable_shared=no
7968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7969 for pkg in $enableval; do
7970 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7971 enable_shared=yes
7972 fi
7973 done
7974 IFS="$ac_save_ifs"
7975 ;;
7976 esac
7977
7978 else
7979 enable_shared=yes
7980 fi;
7981
7982
7983
7984 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7985 if test "${with_build_sysroot+set}" = set; then
7986 withval="$with_build_sysroot"
7987
7988 fi;
7989
7990
7991 # Check whether --with-sysroot or --without-sysroot was given.
7992 if test "${with_sysroot+set}" = set; then
7993 withval="$with_sysroot"
7994
7995 case ${with_sysroot} in
7996 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7997 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7998 esac
7999
8000 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8001 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8002
8003 if test "x$prefix" = xNONE; then
8004 test_prefix=/usr/local
8005 else
8006 test_prefix=$prefix
8007 fi
8008 if test "x$exec_prefix" = xNONE; then
8009 test_exec_prefix=$test_prefix
8010 else
8011 test_exec_prefix=$exec_prefix
8012 fi
8013 case ${TARGET_SYSTEM_ROOT} in
8014 "${test_prefix}"|"${test_prefix}/"*|\
8015 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8016 '${prefix}'|'${prefix}/'*|\
8017 '${exec_prefix}'|'${exec_prefix}/'*)
8018 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8019 TARGET_SYSTEM_ROOT_DEFINE="$t"
8020 ;;
8021 esac
8022
8023 else
8024
8025 TARGET_SYSTEM_ROOT=
8026 TARGET_SYSTEM_ROOT_DEFINE=
8027 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8028
8029 fi;
8030
8031
8032
8033
8034 # Build with intermodule optimisations
8035 # Check whether --enable-intermodule or --disable-intermodule was given.
8036 if test "${enable_intermodule+set}" = set; then
8037 enableval="$enable_intermodule"
8038 case ${enable_intermodule} in
8039 yes) onestep="-onestep";;
8040 *) onestep="";;
8041 esac
8042 else
8043 onestep=""
8044 fi;
8045
8046
8047
8048
8049 # Check whether --with-pkgversion or --without-pkgversion was given.
8050 if test "${with_pkgversion+set}" = set; then
8051 withval="$with_pkgversion"
8052 case "$withval" in
8053 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8054 echo "$as_me: error: package version not specified" >&2;}
8055 { (exit 1); exit 1; }; } ;;
8056 no) PKGVERSION= ;;
8057 *) PKGVERSION="($withval) " ;;
8058 esac
8059 else
8060 PKGVERSION="(GCC) "
8061
8062 fi;
8063
8064
8065
8066
8067 # Check whether --with-bugurl or --without-bugurl was given.
8068 if test "${with_bugurl+set}" = set; then
8069 withval="$with_bugurl"
8070 case "$withval" in
8071 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8072 echo "$as_me: error: bug URL not specified" >&2;}
8073 { (exit 1); exit 1; }; } ;;
8074 no) BUGURL=
8075 ;;
8076 *) BUGURL="$withval"
8077 ;;
8078 esac
8079 else
8080 BUGURL="http://gcc.gnu.org/bugs.html"
8081
8082 fi;
8083 case ${BUGURL} in
8084 "")
8085 REPORT_BUGS_TO=
8086 REPORT_BUGS_TEXI=
8087 ;;
8088 *)
8089 REPORT_BUGS_TO="<$BUGURL>"
8090 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8091 ;;
8092 esac;
8093
8094
8095
8096
8097 # Sanity check enable_languages in case someone does not run the toplevel
8098 # configure # script.
8099 # Check whether --enable-languages or --disable-languages was given.
8100 if test "${enable_languages+set}" = set; then
8101 enableval="$enable_languages"
8102 case ,${enable_languages}, in
8103 ,,|,yes,)
8104 # go safe -- we cannot be much sure without the toplevel
8105 # configure's
8106 # analysis of which target libs are present and usable
8107 enable_languages=c
8108 ;;
8109 *,all,*)
8110 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8111 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8112 { (exit 1); exit 1; }; }
8113 ;;
8114 *,c,*)
8115 ;;
8116 *)
8117 enable_languages=c,${enable_languages}
8118 ;;
8119 esac
8120 else
8121 enable_languages=c
8122 fi;
8123
8124 # Used by documentation targets
8125
8126
8127
8128
8129 # -------------------------
8130 # Checks for other programs
8131 # -------------------------
8132
8133 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8134 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8135 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8136 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 else
8139 cat >conftest.make <<\_ACEOF
8140 all:
8141 @echo 'ac_maketemp="$(MAKE)"'
8142 _ACEOF
8143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8144 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8145 if test -n "$ac_maketemp"; then
8146 eval ac_cv_prog_make_${ac_make}_set=yes
8147 else
8148 eval ac_cv_prog_make_${ac_make}_set=no
8149 fi
8150 rm -f conftest.make
8151 fi
8152 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8155 SET_MAKE=
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8159 SET_MAKE="MAKE=${MAKE-make}"
8160 fi
8161
8162
8163 # Find some useful tools
8164 for ac_prog in gawk mawk nawk awk
8165 do
8166 # Extract the first word of "$ac_prog", so it can be a program name with args.
8167 set dummy $ac_prog; ac_word=$2
8168 echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8170 if test "${ac_cv_prog_AWK+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173 if test -n "$AWK"; then
8174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_AWK="$ac_prog"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 break 2
8186 fi
8187 done
8188 done
8189
8190 fi
8191 fi
8192 AWK=$ac_cv_prog_AWK
8193 if test -n "$AWK"; then
8194 echo "$as_me:$LINENO: result: $AWK" >&5
8195 echo "${ECHO_T}$AWK" >&6
8196 else
8197 echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8199 fi
8200
8201 test -n "$AWK" && break
8202 done
8203
8204 # We need awk to create options.c and options.h.
8205 # Bail out if it's missing.
8206 case ${AWK} in
8207 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8208 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8209 { (exit 1); exit 1; }; } ;;
8210 esac
8211
8212 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8213 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8214 if test "${gcc_cv_prog_LN_S+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216 else
8217 rm -f conftestdata_t
8218 echo >conftestdata_f
8219 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8220 then
8221 gcc_cv_prog_LN_S="ln -s"
8222 else
8223 if ln conftestdata_f conftestdata_t 2>/dev/null
8224 then
8225 gcc_cv_prog_LN_S=ln
8226 else
8227 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8228 then
8229 gcc_cv_prog_LN_S="cp -p"
8230 else
8231 gcc_cv_prog_LN_S=cp
8232 fi
8233 fi
8234 fi
8235 rm -f conftestdata_f conftestdata_t
8236
8237 fi
8238 LN_S="$gcc_cv_prog_LN_S"
8239 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8240 echo "$as_me:$LINENO: result: yes" >&5
8241 echo "${ECHO_T}yes" >&6
8242 else
8243 if test "$gcc_cv_prog_LN_S" = "ln"; then
8244 echo "$as_me:$LINENO: result: no, using ln" >&5
8245 echo "${ECHO_T}no, using ln" >&6
8246 else
8247 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8248 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8249 fi
8250 fi
8251
8252 echo "$as_me:$LINENO: checking whether ln works" >&5
8253 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8254 if test "${acx_cv_prog_LN+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 else
8257 rm -f conftestdata_t
8258 echo >conftestdata_f
8259 if ln conftestdata_f conftestdata_t 2>/dev/null
8260 then
8261 acx_cv_prog_LN=ln
8262 else
8263 acx_cv_prog_LN=no
8264 fi
8265 rm -f conftestdata_f conftestdata_t
8266
8267 fi
8268 if test $acx_cv_prog_LN = no; then
8269 LN="$LN_S"
8270 echo "$as_me:$LINENO: result: no, using $LN" >&5
8271 echo "${ECHO_T}no, using $LN" >&6
8272 else
8273 LN="$acx_cv_prog_LN"
8274 echo "$as_me:$LINENO: result: yes" >&5
8275 echo "${ECHO_T}yes" >&6
8276 fi
8277
8278 if test -n "$ac_tool_prefix"; then
8279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_prog_RANLIB+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286 if test -n "$RANLIB"; then
8287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8291 do
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302
8303 fi
8304 fi
8305 RANLIB=$ac_cv_prog_RANLIB
8306 if test -n "$RANLIB"; then
8307 echo "$as_me:$LINENO: result: $RANLIB" >&5
8308 echo "${ECHO_T}$RANLIB" >&6
8309 else
8310 echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312 fi
8313
8314 fi
8315 if test -z "$ac_cv_prog_RANLIB"; then
8316 ac_ct_RANLIB=$RANLIB
8317 # Extract the first word of "ranlib", so it can be a program name with args.
8318 set dummy ranlib; ac_word=$2
8319 echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8321 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 if test -n "$ac_ct_RANLIB"; then
8325 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8326 else
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334 ac_cv_prog_ac_ct_RANLIB="ranlib"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338 done
8339 done
8340
8341 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8342 fi
8343 fi
8344 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8345 if test -n "$ac_ct_RANLIB"; then
8346 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8347 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8348 else
8349 echo "$as_me:$LINENO: result: no" >&5
8350 echo "${ECHO_T}no" >&6
8351 fi
8352
8353 RANLIB=$ac_ct_RANLIB
8354 else
8355 RANLIB="$ac_cv_prog_RANLIB"
8356 fi
8357
8358 case "${host}" in
8359 *-*-darwin*)
8360 # By default, the Darwin ranlib will not treat common symbols as
8361 # definitions when building the archive table of contents. Other
8362 # ranlibs do that; pass an option to the Darwin ranlib that makes
8363 # it behave similarly.
8364 ranlib_flags="-c"
8365 ;;
8366 *)
8367 ranlib_flags=""
8368 esac
8369
8370
8371 # Find a good install program. We prefer a C program (faster),
8372 # so one script is as good as another. But avoid the broken or
8373 # incompatible versions:
8374 # SysV /etc/install, /usr/sbin/install
8375 # SunOS /usr/etc/install
8376 # IRIX /sbin/install
8377 # AIX /bin/install
8378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8380 # ./install, which can be erroneously created by make from ./install.sh.
8381 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8382 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8383 if test -z "$INSTALL"; then
8384 if test "${ac_cv_path_install+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8388 for ac_dir in $PATH; do
8389 # Account for people who put trailing slashes in PATH elements.
8390 case "$ac_dir/" in
8391 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8392 *)
8393 # OSF1 and SCO ODT 3.0 have their own names for install.
8394 for ac_prog in ginstall scoinst install; do
8395 if test -f $ac_dir/$ac_prog; then
8396 if test $ac_prog = install &&
8397 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8398 # AIX install. It has an incompatible calling convention.
8399 # OSF/1 installbsd also uses dspmsg, but is usable.
8400 :
8401 else
8402 ac_cv_path_install="$ac_dir/$ac_prog -c"
8403 break 2
8404 fi
8405 fi
8406 done
8407 ;;
8408 esac
8409 done
8410 IFS="$ac_save_IFS"
8411
8412 fi
8413 if test "${ac_cv_path_install+set}" = set; then
8414 INSTALL="$ac_cv_path_install"
8415 else
8416 # As a last resort, use the slow shell script. We don't cache a
8417 # path for INSTALL within a source directory, because that will
8418 # break other packages using the cache if that directory is
8419 # removed, or if the path is relative.
8420 INSTALL="$ac_install_sh"
8421 fi
8422 fi
8423 echo "$as_me:$LINENO: result: $INSTALL" >&5
8424 echo "${ECHO_T}$INSTALL" >&6
8425
8426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8427 # It thinks the first close brace ends the variable substitution.
8428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8429
8430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8431
8432
8433 # See if cmp has --ignore-initial.
8434 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8435 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8436 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 echo abfoo >t1
8440 echo cdfoo >t2
8441 gcc_cv_prog_cmp_skip=slowcompare
8442 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8443 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8444 :
8445 else
8446 gcc_cv_prog_cmp_skip=gnucompare
8447 fi
8448 fi
8449 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8450 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8451 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8452 :
8453 else
8454 gcc_cv_prog_cmp_skip=fastcompare
8455 fi
8456 fi
8457 fi
8458 rm t1 t2
8459
8460 fi
8461 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8462 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8463 make_compare_target=$gcc_cv_prog_cmp_skip
8464
8465
8466
8467 # See if we have the mktemp command.
8468 # Extract the first word of "mktemp", so it can be a program name with args.
8469 set dummy mktemp; ac_word=$2
8470 echo "$as_me:$LINENO: checking for $ac_word" >&5
8471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8472 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475 if test -n "$have_mktemp_command"; then
8476 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_prog_have_mktemp_command="yes"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489 done
8490 done
8491
8492 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8493 fi
8494 fi
8495 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8496 if test -n "$have_mktemp_command"; then
8497 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8498 echo "${ECHO_T}$have_mktemp_command" >&6
8499 else
8500 echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6
8502 fi
8503
8504
8505 # See if makeinfo has been installed and is modern enough
8506 # that we can use it.
8507
8508 # Extract the first word of "makeinfo", so it can be a program name with args.
8509 set dummy makeinfo; ac_word=$2
8510 echo "$as_me:$LINENO: checking for $ac_word" >&5
8511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8512 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515 if test -n "$MAKEINFO"; then
8516 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8520 do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_MAKEINFO="makeinfo"
8526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529 done
8530 done
8531
8532 fi
8533 fi
8534 MAKEINFO=$ac_cv_prog_MAKEINFO
8535 if test -n "$MAKEINFO"; then
8536 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8537 echo "${ECHO_T}$MAKEINFO" >&6
8538 else
8539 echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541 fi
8542
8543 if test -n "$MAKEINFO"; then
8544 # Found it, now check the version.
8545 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8546 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8547 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8551 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8552
8553 case $ac_prog_version in
8554 '') gcc_cv_prog_makeinfo_modern=no;;
8555 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8556 *) gcc_cv_prog_makeinfo_modern=no;;
8557 esac
8558
8559 fi
8560 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8561 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8562 else
8563 gcc_cv_prog_makeinfo_modern=no
8564 fi
8565 if test $gcc_cv_prog_makeinfo_modern = no; then
8566 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8567 fi
8568
8569 if test $gcc_cv_prog_makeinfo_modern = no; then
8570 { echo "$as_me:$LINENO: WARNING:
8571 *** Makeinfo is missing or too old.
8572 *** Info documentation will not be built." >&5
8573 echo "$as_me: WARNING:
8574 *** Makeinfo is missing or too old.
8575 *** Info documentation will not be built." >&2;}
8576 BUILD_INFO=
8577 else
8578 BUILD_INFO=info
8579 fi
8580
8581
8582 # Is pod2man recent enough to regenerate manpages?
8583 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8584 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8585 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8586 echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588 GENERATED_MANPAGES=generated-manpages
8589 else
8590 echo "$as_me:$LINENO: result: no" >&5
8591 echo "${ECHO_T}no" >&6
8592 GENERATED_MANPAGES=
8593 fi
8594
8595
8596 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8597
8598 # How about lex?
8599 for ac_prog in flex
8600 do
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602 set dummy $ac_prog; ac_word=$2
8603 echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8605 if test "${ac_cv_prog_FLEX+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 if test -n "$FLEX"; then
8609 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618 ac_cv_prog_FLEX="$ac_prog"
8619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8620 break 2
8621 fi
8622 done
8623 done
8624
8625 fi
8626 fi
8627 FLEX=$ac_cv_prog_FLEX
8628 if test -n "$FLEX"; then
8629 echo "$as_me:$LINENO: result: $FLEX" >&5
8630 echo "${ECHO_T}$FLEX" >&6
8631 else
8632 echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8634 fi
8635
8636 test -n "$FLEX" && break
8637 done
8638 test -n "$FLEX" || FLEX="$MISSING flex"
8639
8640
8641 # Bison?
8642 for ac_prog in bison
8643 do
8644 # Extract the first word of "$ac_prog", so it can be a program name with args.
8645 set dummy $ac_prog; ac_word=$2
8646 echo "$as_me:$LINENO: checking for $ac_word" >&5
8647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8648 if test "${ac_cv_prog_BISON+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 if test -n "$BISON"; then
8652 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661 ac_cv_prog_BISON="$ac_prog"
8662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8664 fi
8665 done
8666 done
8667
8668 fi
8669 fi
8670 BISON=$ac_cv_prog_BISON
8671 if test -n "$BISON"; then
8672 echo "$as_me:$LINENO: result: $BISON" >&5
8673 echo "${ECHO_T}$BISON" >&6
8674 else
8675 echo "$as_me:$LINENO: result: no" >&5
8676 echo "${ECHO_T}no" >&6
8677 fi
8678
8679 test -n "$BISON" && break
8680 done
8681 test -n "$BISON" || BISON="$MISSING bison"
8682
8683
8684 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8685 # check for build == host before using them.
8686
8687 # NM
8688 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8689 && test -d ../binutils ; then
8690 NM='$(objdir)/../binutils/nm-new'
8691 else
8692 # Extract the first word of "nm", so it can be a program name with args.
8693 set dummy nm; ac_word=$2
8694 echo "$as_me:$LINENO: checking for $ac_word" >&5
8695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8696 if test "${ac_cv_prog_NM+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699 if test -n "$NM"; then
8700 ac_cv_prog_NM="$NM" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_NM="nm"
8710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713 done
8714 done
8715
8716 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8717 fi
8718 fi
8719 NM=$ac_cv_prog_NM
8720 if test -n "$NM"; then
8721 echo "$as_me:$LINENO: result: $NM" >&5
8722 echo "${ECHO_T}$NM" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725 echo "${ECHO_T}no" >&6
8726 fi
8727
8728 fi
8729
8730 # AR
8731 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8732 && test -d ../binutils ; then
8733 AR='$(objdir)/../binutils/ar'
8734 else
8735 # Extract the first word of "ar", so it can be a program name with args.
8736 set dummy ar; ac_word=$2
8737 echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8739 if test "${ac_cv_prog_AR+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742 if test -n "$AR"; then
8743 ac_cv_prog_AR="$AR" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8752 ac_cv_prog_AR="ar"
8753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758
8759 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8760 fi
8761 fi
8762 AR=$ac_cv_prog_AR
8763 if test -n "$AR"; then
8764 echo "$as_me:$LINENO: result: $AR" >&5
8765 echo "${ECHO_T}$AR" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8769 fi
8770
8771 fi
8772
8773
8774 # --------------------
8775 # Checks for C headers
8776 # --------------------
8777
8778 # Need to reject headers which give warnings, so that the -Werror bootstrap
8779 # works later. *sigh* This needs to come before all header checks.
8780
8781 ac_c_preproc_warn_flag=yes
8782
8783 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8785 if test "${ac_cv_header_stdc+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 #include <stdlib.h>
8795 #include <stdarg.h>
8796 #include <string.h>
8797 #include <float.h>
8798
8799 int
8800 main ()
8801 {
8802
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8809 (eval $ac_compile) 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -z "$ac_c_werror_flag"
8817 || test ! -s conftest.err'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest.$ac_objext'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 (eval $ac_try) 2>&5
8826 ac_status=$?
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; }; then
8829 ac_cv_header_stdc=yes
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 ac_cv_header_stdc=no
8835 fi
8836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8837
8838 if test $ac_cv_header_stdc = yes; then
8839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 #include <string.h>
8847
8848 _ACEOF
8849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8850 $EGREP "memchr" >/dev/null 2>&1; then
8851 :
8852 else
8853 ac_cv_header_stdc=no
8854 fi
8855 rm -f conftest*
8856
8857 fi
8858
8859 if test $ac_cv_header_stdc = yes; then
8860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8861 cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h. */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 #include <stdlib.h>
8868
8869 _ACEOF
8870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8871 $EGREP "free" >/dev/null 2>&1; then
8872 :
8873 else
8874 ac_cv_header_stdc=no
8875 fi
8876 rm -f conftest*
8877
8878 fi
8879
8880 if test $ac_cv_header_stdc = yes; then
8881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8882 if test "$cross_compiling" = yes; then
8883 :
8884 else
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 #include <ctype.h>
8892 #if ((' ' & 0x0FF) == 0x020)
8893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8895 #else
8896 # define ISLOWER(c) \
8897 (('a' <= (c) && (c) <= 'i') \
8898 || ('j' <= (c) && (c) <= 'r') \
8899 || ('s' <= (c) && (c) <= 'z'))
8900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8901 #endif
8902
8903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8904 int
8905 main ()
8906 {
8907 int i;
8908 for (i = 0; i < 256; i++)
8909 if (XOR (islower (i), ISLOWER (i))
8910 || toupper (i) != TOUPPER (i))
8911 exit(2);
8912 exit (0);
8913 }
8914 _ACEOF
8915 rm -f conftest$ac_exeext
8916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917 (eval $ac_link) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 (eval $ac_try) 2>&5
8923 ac_status=$?
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 :
8927 else
8928 echo "$as_me: program exited with status $ac_status" >&5
8929 echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 ( exit $ac_status )
8933 ac_cv_header_stdc=no
8934 fi
8935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 fi
8937 fi
8938 fi
8939 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8940 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8941 if test $ac_cv_header_stdc = yes; then
8942
8943 cat >>confdefs.h <<\_ACEOF
8944 #define STDC_HEADERS 1
8945 _ACEOF
8946
8947 fi
8948
8949 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8950 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8951 if test "${ac_cv_header_time+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <sys/types.h>
8961 #include <sys/time.h>
8962 #include <time.h>
8963
8964 int
8965 main ()
8966 {
8967 if ((struct tm *) 0)
8968 return 0;
8969 ;
8970 return 0;
8971 }
8972 _ACEOF
8973 rm -f conftest.$ac_objext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_header_time=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_cv_header_time=no
9001 fi
9002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003 fi
9004 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9005 echo "${ECHO_T}$ac_cv_header_time" >&6
9006 if test $ac_cv_header_time = yes; then
9007
9008 cat >>confdefs.h <<\_ACEOF
9009 #define TIME_WITH_SYS_TIME 1
9010 _ACEOF
9011
9012 fi
9013
9014 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9015 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9016 if test "${gcc_cv_header_string+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 cat >conftest.$ac_ext <<_ACEOF
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 #include <string.h>
9026 #include <strings.h>
9027 int
9028 main ()
9029 {
9030
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try='test -z "$ac_c_werror_flag"
9045 || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest.$ac_objext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 gcc_cv_header_string=yes
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 gcc_cv_header_string=no
9063 fi
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9067 echo "${ECHO_T}$gcc_cv_header_string" >&6
9068 if test $gcc_cv_header_string = yes; then
9069
9070 cat >>confdefs.h <<\_ACEOF
9071 #define STRING_WITH_STRINGS 1
9072 _ACEOF
9073
9074 fi
9075
9076 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9077 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9078 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 #include <sys/types.h>
9088 #include <sys/wait.h>
9089 #ifndef WEXITSTATUS
9090 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9091 #endif
9092 #ifndef WIFEXITED
9093 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9094 #endif
9095
9096 int
9097 main ()
9098 {
9099 int s;
9100 wait (&s);
9101 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9102 ;
9103 return 0;
9104 }
9105 _ACEOF
9106 rm -f conftest.$ac_objext
9107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9108 (eval $ac_compile) 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -z "$ac_c_werror_flag"
9116 || test ! -s conftest.err'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118 (eval $ac_try) 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; } &&
9122 { ac_try='test -s conftest.$ac_objext'
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9128 ac_cv_header_sys_wait_h=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133 ac_cv_header_sys_wait_h=no
9134 fi
9135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9136 fi
9137 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9138 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9139 if test $ac_cv_header_sys_wait_h = yes; then
9140
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_SYS_WAIT_H 1
9143 _ACEOF
9144
9145 fi
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9170 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9171 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9172 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9173 do
9174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175 echo "$as_me:$LINENO: checking for $ac_header" >&5
9176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <$ac_header>
9187 _ACEOF
9188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } >/dev/null; then
9196 if test -s conftest.err; then
9197 ac_cpp_err=$ac_c_preproc_warn_flag
9198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9199 else
9200 ac_cpp_err=
9201 fi
9202 else
9203 ac_cpp_err=yes
9204 fi
9205 if test -z "$ac_cpp_err"; then
9206 eval "$as_ac_Header=yes"
9207 else
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 eval "$as_ac_Header=no"
9212 fi
9213 rm -f conftest.err conftest.$ac_ext
9214 fi
9215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9218 cat >>confdefs.h <<_ACEOF
9219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9220 _ACEOF
9221
9222 fi
9223 done
9224
9225
9226 # Check for thread headers.
9227 echo "$as_me:$LINENO: checking for thread.h" >&5
9228 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9229 if test "${ac_cv_header_thread_h+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <thread.h>
9239 _ACEOF
9240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } >/dev/null; then
9248 if test -s conftest.err; then
9249 ac_cpp_err=$ac_c_preproc_warn_flag
9250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9251 else
9252 ac_cpp_err=
9253 fi
9254 else
9255 ac_cpp_err=yes
9256 fi
9257 if test -z "$ac_cpp_err"; then
9258 ac_cv_header_thread_h=yes
9259 else
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_cv_header_thread_h=no
9264 fi
9265 rm -f conftest.err conftest.$ac_ext
9266 fi
9267 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9268 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9269 if test $ac_cv_header_thread_h = yes; then
9270 have_thread_h=yes
9271 else
9272 have_thread_h=
9273 fi
9274
9275 echo "$as_me:$LINENO: checking for pthread.h" >&5
9276 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9277 if test "${ac_cv_header_pthread_h+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280 cat >conftest.$ac_ext <<_ACEOF
9281 /* confdefs.h. */
9282 _ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <pthread.h>
9287 _ACEOF
9288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null; then
9296 if test -s conftest.err; then
9297 ac_cpp_err=$ac_c_preproc_warn_flag
9298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9299 else
9300 ac_cpp_err=
9301 fi
9302 else
9303 ac_cpp_err=yes
9304 fi
9305 if test -z "$ac_cpp_err"; then
9306 ac_cv_header_pthread_h=yes
9307 else
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_header_pthread_h=no
9312 fi
9313 rm -f conftest.err conftest.$ac_ext
9314 fi
9315 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9316 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9317 if test $ac_cv_header_pthread_h = yes; then
9318 have_pthread_h=yes
9319 else
9320 have_pthread_h=
9321 fi
9322
9323
9324 # These tests can't be done till we know if we have limits.h.
9325 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9326 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9327 if test "${gcc_cv_decl_char_bit+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #ifdef HAVE_LIMITS_H
9337 #include <limits.h>
9338 #endif
9339 #ifdef CHAR_BIT
9340 found
9341 #endif
9342 _ACEOF
9343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9344 $EGREP "found" >/dev/null 2>&1; then
9345 gcc_cv_decl_char_bit=yes
9346 else
9347 gcc_cv_decl_char_bit=no
9348 fi
9349 rm -f conftest*
9350
9351
9352 fi
9353 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9354 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9355 if test $gcc_cv_decl_char_bit = no; then
9356 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9357 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9358 if test "${gcc_cv_c_nbby+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361 i=8
9362 gcc_cv_c_nbby=
9363 while test $i -lt 65; do
9364 cat >conftest.$ac_ext <<_ACEOF
9365 /* confdefs.h. */
9366 _ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370
9371 int
9372 main ()
9373 {
9374 switch(0) {
9375 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9376 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9377 ; }
9378 ;
9379 return 0;
9380 }
9381 _ACEOF
9382 rm -f conftest.$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag"
9392 || test ! -s conftest.err'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 gcc_cv_c_nbby=$i; break
9405 else
9406 echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 fi
9410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9411 i=`expr $i + 1`
9412 done
9413 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9414
9415 fi
9416 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9417 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9418 if test $gcc_cv_c_nbby = failed; then
9419 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9420 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9421 { (exit 1); exit 1; }; }
9422 else
9423
9424 cat >>confdefs.h <<_ACEOF
9425 #define CHAR_BIT $gcc_cv_c_nbby
9426 _ACEOF
9427
9428 fi
9429 fi
9430 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9431 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9432 if test "${ac_cv_c_bigendian+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435 # See if sys/param.h defines the BYTE_ORDER macro.
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 #include <sys/types.h>
9443 #include <sys/param.h>
9444
9445 int
9446 main ()
9447 {
9448 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9449 bogus endian macros
9450 #endif
9451
9452 ;
9453 return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9458 (eval $ac_compile) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_c_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest.$ac_objext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 # It does; now see whether it defined to BIG_ENDIAN or not.
9479 cat >conftest.$ac_ext <<_ACEOF
9480 /* confdefs.h. */
9481 _ACEOF
9482 cat confdefs.h >>conftest.$ac_ext
9483 cat >>conftest.$ac_ext <<_ACEOF
9484 /* end confdefs.h. */
9485 #include <sys/types.h>
9486 #include <sys/param.h>
9487
9488 int
9489 main ()
9490 {
9491 #if BYTE_ORDER != BIG_ENDIAN
9492 not big endian
9493 #endif
9494
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_c_bigendian=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_cv_c_bigendian=no
9527 fi
9528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 else
9530 echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533 # It does not; compile a test program.
9534 if test "$cross_compiling" = yes; then
9535 # try to guess the endianness by grepping values into an object file
9536 ac_cv_c_bigendian=unknown
9537 cat >conftest.$ac_ext <<_ACEOF
9538 /* confdefs.h. */
9539 _ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9544 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9545 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9546 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9547 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9548 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9549 int
9550 main ()
9551 {
9552 _ascii (); _ebcdic ();
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag"
9567 || test ! -s conftest.err'
9568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9569 (eval $ac_try) 2>&5
9570 ac_status=$?
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); }; } &&
9573 { ac_try='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9580 ac_cv_c_bigendian=yes
9581 fi
9582 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9583 if test "$ac_cv_c_bigendian" = unknown; then
9584 ac_cv_c_bigendian=no
9585 else
9586 # finding both strings is unlikely to happen, but who knows?
9587 ac_cv_c_bigendian=unknown
9588 fi
9589 fi
9590 else
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594 fi
9595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9596 else
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 int
9604 main ()
9605 {
9606 /* Are we little or big endian? From Harbison&Steele. */
9607 union
9608 {
9609 long l;
9610 char c[sizeof (long)];
9611 } u;
9612 u.l = 1;
9613 exit (u.c[sizeof (long) - 1] == 1);
9614 }
9615 _ACEOF
9616 rm -f conftest$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9619 ac_status=$?
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_c_bigendian=no
9628 else
9629 echo "$as_me: program exited with status $ac_status" >&5
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ( exit $ac_status )
9634 ac_cv_c_bigendian=yes
9635 fi
9636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 fi
9639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9640 fi
9641 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9642 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9643 case $ac_cv_c_bigendian in
9644 yes)
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define WORDS_BIGENDIAN 1
9648 _ACEOF
9649 ;;
9650 no)
9651 ;;
9652 *)
9653 { { echo "$as_me:$LINENO: error: unknown endianness
9654 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9655 echo "$as_me: error: unknown endianness
9656 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9657 { (exit 1); exit 1; }; } ;;
9658 esac
9659
9660
9661 # --------
9662 # UNSORTED
9663 # --------
9664
9665
9666 # These libraries may be used by collect2.
9667 # We may need a special search path to get them linked.
9668 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9669 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9670 if test "${gcc_cv_collect2_libs+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 save_LIBS="$LIBS"
9674 for libs in '' -lld -lmld \
9675 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9676 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9677 do
9678 LIBS="$libs"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h. */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685
9686 /* Override any gcc2 internal prototype to avoid an error. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9692 char ldopen ();
9693 int
9694 main ()
9695 {
9696 ldopen ();
9697 ;
9698 return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>conftest.er1
9704 ac_status=$?
9705 grep -v '^ *+' conftest.er1 >conftest.err
9706 rm -f conftest.er1
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_c_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719 (eval $ac_try) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 gcc_cv_collect2_libs="$libs"; break
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 fi
9729 rm -f conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 done
9732 LIBS="$save_LIBS"
9733 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9734 fi
9735 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9736 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9737 case $gcc_cv_collect2_libs in
9738 "none required") ;;
9739 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9740 esac
9741
9742
9743 # When building Ada code on Alpha, we need exc_resume which is usually in
9744 # -lexc. So test for it.
9745 save_LIBS="$LIBS"
9746 LIBS=
9747 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9748 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9749 if test "${ac_cv_search_exc_resume+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 ac_func_search_save_LIBS=$LIBS
9753 ac_cv_search_exc_resume=no
9754 cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h. */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760
9761 /* Override any gcc2 internal prototype to avoid an error. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767 char exc_resume ();
9768 int
9769 main ()
9770 {
9771 exc_resume ();
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } &&
9785 { ac_try='test -z "$ac_c_werror_flag"
9786 || test ! -s conftest.err'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794 (eval $ac_try) 2>&5
9795 ac_status=$?
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); }; }; then
9798 ac_cv_search_exc_resume="none required"
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 fi
9804 rm -f conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 if test "$ac_cv_search_exc_resume" = no; then
9807 for ac_lib in exc; do
9808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815
9816 /* Override any gcc2 internal prototype to avoid an error. */
9817 #ifdef __cplusplus
9818 extern "C"
9819 #endif
9820 /* We use char because int might match the return type of a gcc2
9821 builtin and then its argument prototype would still apply. */
9822 char exc_resume ();
9823 int
9824 main ()
9825 {
9826 exc_resume ();
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext conftest$ac_exeext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833 (eval $ac_link) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
9853 ac_cv_search_exc_resume="-l$ac_lib"
9854 break
9855 else
9856 echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 fi
9860 rm -f conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 done
9863 fi
9864 LIBS=$ac_func_search_save_LIBS
9865 fi
9866 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9867 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9868 if test "$ac_cv_search_exc_resume" != no; then
9869 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9870
9871 fi
9872
9873 GNAT_LIBEXC="$LIBS"
9874 LIBS="$save_LIBS"
9875
9876
9877 # Some systems put ldexp and frexp in libm instead of libc; assume
9878 # they're both in the same place. jcf-dump needs them.
9879 save_LIBS="$LIBS"
9880 LIBS=
9881 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9882 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9883 if test "${ac_cv_search_ldexp+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 else
9886 ac_func_search_save_LIBS=$LIBS
9887 ac_cv_search_ldexp=no
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894
9895 /* Override any gcc2 internal prototype to avoid an error. */
9896 #ifdef __cplusplus
9897 extern "C"
9898 #endif
9899 /* We use char because int might match the return type of a gcc2
9900 builtin and then its argument prototype would still apply. */
9901 char ldexp ();
9902 int
9903 main ()
9904 {
9905 ldexp ();
9906 ;
9907 return 0;
9908 }
9909 _ACEOF
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>conftest.er1
9913 ac_status=$?
9914 grep -v '^ *+' conftest.er1 >conftest.err
9915 rm -f conftest.er1
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_c_werror_flag"
9920 || test ! -s conftest.err'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_search_ldexp="none required"
9933 else
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9936
9937 fi
9938 rm -f conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 if test "$ac_cv_search_ldexp" = no; then
9941 for ac_lib in m; do
9942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9943 cat >conftest.$ac_ext <<_ACEOF
9944 /* confdefs.h. */
9945 _ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949
9950 /* Override any gcc2 internal prototype to avoid an error. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9956 char ldexp ();
9957 int
9958 main ()
9959 {
9960 ldexp ();
9961 ;
9962 return 0;
9963 }
9964 _ACEOF
9965 rm -f conftest.$ac_objext conftest$ac_exeext
9966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967 (eval $ac_link) 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag"
9975 || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest$ac_exeext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_search_ldexp="-l$ac_lib"
9988 break
9989 else
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 fi
9994 rm -f conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996 done
9997 fi
9998 LIBS=$ac_func_search_save_LIBS
9999 fi
10000 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10001 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10002 if test "$ac_cv_search_ldexp" != no; then
10003 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10004
10005 fi
10006
10007 LDEXP_LIB="$LIBS"
10008 LIBS="$save_LIBS"
10009
10010
10011 # Use <inttypes.h> only if it exists,
10012 # doesn't clash with <sys/types.h>, and declares intmax_t.
10013 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10014 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10015 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <sys/types.h>
10025 #include <inttypes.h>
10026 int
10027 main ()
10028 {
10029 intmax_t i = -1;
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 gcc_cv_header_inttypes_h=yes
10057 else
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 gcc_cv_header_inttypes_h=no
10062 fi
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065
10066 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10067 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10068 if test $gcc_cv_header_inttypes_h = yes; then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_INTTYPES_H 1
10072 _ACEOF
10073
10074 fi
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10114 sysconf strsignal getrusage nl_langinfo scandir alphasort \
10115 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10116 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
10117 do
10118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10119 echo "$as_me:$LINENO: checking for $ac_func" >&5
10120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10121 if eval "test \"\${$as_ac_var+set}\" = set"; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h. */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10132 #define $ac_func innocuous_$ac_func
10133
10134 /* System header to define __stub macros and hopefully few prototypes,
10135 which can conflict with char $ac_func (); below.
10136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10137 <limits.h> exists even on freestanding compilers. */
10138
10139 #ifdef __STDC__
10140 # include <limits.h>
10141 #else
10142 # include <assert.h>
10143 #endif
10144
10145 #undef $ac_func
10146
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 #ifdef __cplusplus
10149 extern "C"
10150 {
10151 #endif
10152 /* We use char because int might match the return type of a gcc2
10153 builtin and then its argument prototype would still apply. */
10154 char $ac_func ();
10155 /* The GNU C library defines this for functions which it implements
10156 to always fail with ENOSYS. Some functions are actually named
10157 something starting with __ and the normal name is an alias. */
10158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10159 choke me
10160 #else
10161 char (*f) () = $ac_func;
10162 #endif
10163 #ifdef __cplusplus
10164 }
10165 #endif
10166
10167 int
10168 main ()
10169 {
10170 return f != $ac_func;
10171 ;
10172 return 0;
10173 }
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest$ac_exeext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 eval "$as_ac_var=yes"
10198 else
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202 eval "$as_ac_var=no"
10203 fi
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 fi
10207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10209 if test `eval echo '${'$as_ac_var'}'` = yes; then
10210 cat >>confdefs.h <<_ACEOF
10211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10212 _ACEOF
10213
10214 fi
10215 done
10216
10217
10218 if test x$ac_cv_func_mbstowcs = xyes; then
10219 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10220 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10221 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224 if test "$cross_compiling" = yes; then
10225 gcc_cv_func_mbstowcs_works=yes
10226 else
10227 cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h. */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h. */
10233 #include <stdlib.h>
10234 int main()
10235 {
10236 mbstowcs(0, "", 0);
10237 return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 gcc_cv_func_mbstowcs_works=yes
10252 else
10253 echo "$as_me: program exited with status $ac_status" >&5
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257 ( exit $ac_status )
10258 gcc_cv_func_mbstowcs_works=no
10259 fi
10260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10261 fi
10262 fi
10263 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10264 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10265 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10266
10267 cat >>confdefs.h <<\_ACEOF
10268 #define HAVE_WORKING_MBSTOWCS 1
10269 _ACEOF
10270
10271 fi
10272 fi
10273
10274 echo "$as_me:$LINENO: checking for ssize_t" >&5
10275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10276 if test "${ac_cv_type_ssize_t+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h. */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 $ac_includes_default
10286 int
10287 main ()
10288 {
10289 if ((ssize_t *) 0)
10290 return 0;
10291 if (sizeof (ssize_t))
10292 return 0;
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 ac_cv_type_ssize_t=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_cv_type_ssize_t=no
10325 fi
10326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10327 fi
10328 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10329 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10330 if test $ac_cv_type_ssize_t = yes; then
10331 :
10332 else
10333
10334 cat >>confdefs.h <<_ACEOF
10335 #define ssize_t int
10336 _ACEOF
10337
10338 fi
10339
10340
10341 # Try to determine the array type of the second argument of getgroups
10342 # for the target system (int or gid_t).
10343 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10344 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10345 if test "${ac_cv_type_uid_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 #include <sys/types.h>
10355
10356 _ACEOF
10357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10358 $EGREP "uid_t" >/dev/null 2>&1; then
10359 ac_cv_type_uid_t=yes
10360 else
10361 ac_cv_type_uid_t=no
10362 fi
10363 rm -f conftest*
10364
10365 fi
10366 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10367 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10368 if test $ac_cv_type_uid_t = no; then
10369
10370 cat >>confdefs.h <<\_ACEOF
10371 #define uid_t int
10372 _ACEOF
10373
10374
10375 cat >>confdefs.h <<\_ACEOF
10376 #define gid_t int
10377 _ACEOF
10378
10379 fi
10380
10381 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10382 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10383 if test "${ac_cv_type_getgroups+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 if test "$cross_compiling" = yes; then
10387 ac_cv_type_getgroups=cross
10388 else
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 /* Thanks to Mike Rendell for this test. */
10396 #include <sys/types.h>
10397 #define NGID 256
10398 #undef MAX
10399 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10400
10401 int
10402 main ()
10403 {
10404 gid_t gidset[NGID];
10405 int i, n;
10406 union { gid_t gval; long lval; } val;
10407
10408 val.lval = -1;
10409 for (i = 0; i < NGID; i++)
10410 gidset[i] = val.gval;
10411 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10412 gidset);
10413 /* Exit non-zero if getgroups seems to require an array of ints. This
10414 happens when gid_t is short but getgroups modifies an array of ints. */
10415 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10416 }
10417 _ACEOF
10418 rm -f conftest$ac_exeext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_type_getgroups=gid_t
10430 else
10431 echo "$as_me: program exited with status $ac_status" >&5
10432 echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435 ( exit $ac_status )
10436 ac_cv_type_getgroups=int
10437 fi
10438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10439 fi
10440 if test $ac_cv_type_getgroups = cross; then
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 #include <unistd.h>
10448
10449 _ACEOF
10450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10451 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10452 ac_cv_type_getgroups=gid_t
10453 else
10454 ac_cv_type_getgroups=int
10455 fi
10456 rm -f conftest*
10457
10458 fi
10459 fi
10460 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10461 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10462
10463 cat >>confdefs.h <<_ACEOF
10464 #define GETGROUPS_T $ac_cv_type_getgroups
10465 _ACEOF
10466
10467
10468 if test "${target}" = "${build}"; then
10469 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10470 else
10471 case "${target}" in
10472 # This condition may need some tweaking. It should include all
10473 # targets where the array type of the second argument of getgroups
10474 # is int and the type of gid_t is not equivalent to int.
10475 *-*-sunos* | *-*-ultrix*)
10476 TARGET_GETGROUPS_T=int
10477 ;;
10478 *)
10479 TARGET_GETGROUPS_T=gid_t
10480 ;;
10481 esac
10482 fi
10483
10484
10485
10486 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10487 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10488 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <sys/mman.h>
10498 _ACEOF
10499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } >/dev/null; then
10507 if test -s conftest.err; then
10508 ac_cpp_err=$ac_c_preproc_warn_flag
10509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10510 else
10511 ac_cpp_err=
10512 fi
10513 else
10514 ac_cpp_err=yes
10515 fi
10516 if test -z "$ac_cpp_err"; then
10517 ac_cv_header_sys_mman_h=yes
10518 else
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522 ac_cv_header_sys_mman_h=no
10523 fi
10524 rm -f conftest.err conftest.$ac_ext
10525 fi
10526 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10527 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10528 if test $ac_cv_header_sys_mman_h = yes; then
10529 gcc_header_sys_mman_h=yes
10530 else
10531 gcc_header_sys_mman_h=no
10532 fi
10533
10534 echo "$as_me:$LINENO: checking for mmap" >&5
10535 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10536 if test "${ac_cv_func_mmap+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h. */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547 #define mmap innocuous_mmap
10548
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char mmap (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10553
10554 #ifdef __STDC__
10555 # include <limits.h>
10556 #else
10557 # include <assert.h>
10558 #endif
10559
10560 #undef mmap
10561
10562 /* Override any gcc2 internal prototype to avoid an error. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 {
10566 #endif
10567 /* We use char because int might match the return type of a gcc2
10568 builtin and then its argument prototype would still apply. */
10569 char mmap ();
10570 /* The GNU C library defines this for functions which it implements
10571 to always fail with ENOSYS. Some functions are actually named
10572 something starting with __ and the normal name is an alias. */
10573 #if defined (__stub_mmap) || defined (__stub___mmap)
10574 choke me
10575 #else
10576 char (*f) () = mmap;
10577 #endif
10578 #ifdef __cplusplus
10579 }
10580 #endif
10581
10582 int
10583 main ()
10584 {
10585 return f != mmap;
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 rm -f conftest.$ac_objext conftest$ac_exeext
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag"
10600 || test ! -s conftest.err'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_func_mmap=yes
10613 else
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_cv_func_mmap=no
10618 fi
10619 rm -f conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 fi
10622 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10623 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10624 if test $ac_cv_func_mmap = yes; then
10625 gcc_func_mmap=yes
10626 else
10627 gcc_func_mmap=no
10628 fi
10629
10630 if test "$gcc_header_sys_mman_h" != yes \
10631 || test "$gcc_func_mmap" != yes; then
10632 gcc_cv_func_mmap_file=no
10633 gcc_cv_func_mmap_dev_zero=no
10634 gcc_cv_func_mmap_anon=no
10635 else
10636 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10637 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10638 if test "${gcc_cv_func_mmap_file+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 # Add a system to this blacklist if
10642 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10643 # memory area containing the same data that you'd get if you applied
10644 # read() to the same fd. The only system known to have a problem here
10645 # is VMS, where text files have record structure.
10646 case "$host_os" in
10647 vms* | ultrix*)
10648 gcc_cv_func_mmap_file=no ;;
10649 *)
10650 gcc_cv_func_mmap_file=yes;;
10651 esac
10652 fi
10653 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10654 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10655 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10656 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10657 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660 # Add a system to this blacklist if it has mmap() but /dev/zero
10661 # does not exist, or if mmapping /dev/zero does not give anonymous
10662 # zeroed pages with both the following properties:
10663 # 1. If you map N consecutive pages in with one call, and then
10664 # unmap any subset of those pages, the pages that were not
10665 # explicitly unmapped remain accessible.
10666 # 2. If you map two adjacent blocks of memory and then unmap them
10667 # both at once, they must both go away.
10668 # Systems known to be in this category are Windows (all variants),
10669 # VMS, and Darwin.
10670 case "$host_os" in
10671 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10672 gcc_cv_func_mmap_dev_zero=no ;;
10673 *)
10674 gcc_cv_func_mmap_dev_zero=yes;;
10675 esac
10676 fi
10677 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10678 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10679
10680 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10681 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10682 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10683 if test "${gcc_cv_decl_map_anon+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <sys/types.h>
10693 #include <sys/mman.h>
10694 #include <unistd.h>
10695
10696 #ifndef MAP_ANONYMOUS
10697 #define MAP_ANONYMOUS MAP_ANON
10698 #endif
10699
10700 int
10701 main ()
10702 {
10703 int n = MAP_ANONYMOUS;
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } &&
10717 { ac_try='test -z "$ac_c_werror_flag"
10718 || test ! -s conftest.err'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10721 ac_status=$?
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest.$ac_objext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 gcc_cv_decl_map_anon=yes
10731 else
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 gcc_cv_decl_map_anon=no
10736 fi
10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10740 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10741
10742 if test $gcc_cv_decl_map_anon = no; then
10743 gcc_cv_func_mmap_anon=no
10744 else
10745 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10746 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10747 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10751 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10752 # doesn't give anonymous zeroed pages with the same properties listed
10753 # above for use of /dev/zero.
10754 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10755 case "$host_os" in
10756 vms* | cygwin* | pe | mingw* | sco* | udk* )
10757 gcc_cv_func_mmap_anon=no ;;
10758 *)
10759 gcc_cv_func_mmap_anon=yes;;
10760 esac
10761 fi
10762 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10763 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10764 fi
10765 fi
10766
10767 if test $gcc_cv_func_mmap_file = yes; then
10768
10769 cat >>confdefs.h <<\_ACEOF
10770 #define HAVE_MMAP_FILE 1
10771 _ACEOF
10772
10773 fi
10774 if test $gcc_cv_func_mmap_dev_zero = yes; then
10775
10776 cat >>confdefs.h <<\_ACEOF
10777 #define HAVE_MMAP_DEV_ZERO 1
10778 _ACEOF
10779
10780 fi
10781 if test $gcc_cv_func_mmap_anon = yes; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define HAVE_MMAP_ANON 1
10785 _ACEOF
10786
10787 fi
10788
10789
10790 case "${host}" in
10791 *-*-*vms*)
10792 # Under VMS, vfork works very differently than on Unix. The standard test
10793 # won't work, and it isn't easily adaptable. It makes more sense to
10794 # just force it.
10795 ac_cv_func_vfork_works=yes
10796 ;;
10797 esac
10798 echo "$as_me:$LINENO: checking for pid_t" >&5
10799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10800 if test "${ac_cv_type_pid_t+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10810 int
10811 main ()
10812 {
10813 if ((pid_t *) 0)
10814 return 0;
10815 if (sizeof (pid_t))
10816 return 0;
10817 ;
10818 return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest.$ac_objext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10823 (eval $ac_compile) 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } &&
10830 { ac_try='test -z "$ac_c_werror_flag"
10831 || test ! -s conftest.err'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; } &&
10837 { ac_try='test -s conftest.$ac_objext'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_type_pid_t=yes
10844 else
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848 ac_cv_type_pid_t=no
10849 fi
10850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10851 fi
10852 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10853 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10854 if test $ac_cv_type_pid_t = yes; then
10855 :
10856 else
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define pid_t int
10860 _ACEOF
10861
10862 fi
10863
10864
10865
10866 for ac_header in unistd.h vfork.h
10867 do
10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10869 echo "$as_me:$LINENO: checking for $ac_header" >&5
10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h. */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <$ac_header>
10881 _ACEOF
10882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } >/dev/null; then
10890 if test -s conftest.err; then
10891 ac_cpp_err=$ac_c_preproc_warn_flag
10892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10893 else
10894 ac_cpp_err=
10895 fi
10896 else
10897 ac_cpp_err=yes
10898 fi
10899 if test -z "$ac_cpp_err"; then
10900 eval "$as_ac_Header=yes"
10901 else
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10904
10905 eval "$as_ac_Header=no"
10906 fi
10907 rm -f conftest.err conftest.$ac_ext
10908 fi
10909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10914 _ACEOF
10915
10916 fi
10917 done
10918
10919
10920
10921 for ac_func in fork vfork
10922 do
10923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 echo "$as_me:$LINENO: checking for $ac_func" >&5
10925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10926 if eval "test \"\${$as_ac_var+set}\" = set"; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 else
10929 cat >conftest.$ac_ext <<_ACEOF
10930 /* confdefs.h. */
10931 _ACEOF
10932 cat confdefs.h >>conftest.$ac_ext
10933 cat >>conftest.$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10937 #define $ac_func innocuous_$ac_func
10938
10939 /* System header to define __stub macros and hopefully few prototypes,
10940 which can conflict with char $ac_func (); below.
10941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10942 <limits.h> exists even on freestanding compilers. */
10943
10944 #ifdef __STDC__
10945 # include <limits.h>
10946 #else
10947 # include <assert.h>
10948 #endif
10949
10950 #undef $ac_func
10951
10952 /* Override any gcc2 internal prototype to avoid an error. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 {
10956 #endif
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char $ac_func ();
10960 /* The GNU C library defines this for functions which it implements
10961 to always fail with ENOSYS. Some functions are actually named
10962 something starting with __ and the normal name is an alias. */
10963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10964 choke me
10965 #else
10966 char (*f) () = $ac_func;
10967 #endif
10968 #ifdef __cplusplus
10969 }
10970 #endif
10971
10972 int
10973 main ()
10974 {
10975 return f != $ac_func;
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982 (eval $ac_link) 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } &&
10989 { ac_try='test -z "$ac_c_werror_flag"
10990 || test ! -s conftest.err'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10993 ac_status=$?
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; } &&
10996 { ac_try='test -s conftest$ac_exeext'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 eval "$as_ac_var=yes"
11003 else
11004 echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007 eval "$as_ac_var=no"
11008 fi
11009 rm -f conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 fi
11012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11014 if test `eval echo '${'$as_ac_var'}'` = yes; then
11015 cat >>confdefs.h <<_ACEOF
11016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11017 _ACEOF
11018
11019 fi
11020 done
11021
11022 if test "x$ac_cv_func_fork" = xyes; then
11023 echo "$as_me:$LINENO: checking for working fork" >&5
11024 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11025 if test "${ac_cv_func_fork_works+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 if test "$cross_compiling" = yes; then
11029 ac_cv_func_fork_works=cross
11030 else
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* By Ruediger Kuhlmann. */
11033 #include <sys/types.h>
11034 #if HAVE_UNISTD_H
11035 # include <unistd.h>
11036 #endif
11037 /* Some systems only have a dummy stub for fork() */
11038 int main ()
11039 {
11040 if (fork() < 0)
11041 exit (1);
11042 exit (0);
11043 }
11044 _ACEOF
11045 rm -f conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; }; then
11056 ac_cv_func_fork_works=yes
11057 else
11058 echo "$as_me: program exited with status $ac_status" >&5
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ( exit $ac_status )
11063 ac_cv_func_fork_works=no
11064 fi
11065 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11066 fi
11067 fi
11068 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11069 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11070
11071 else
11072 ac_cv_func_fork_works=$ac_cv_func_fork
11073 fi
11074 if test "x$ac_cv_func_fork_works" = xcross; then
11075 case $host in
11076 *-*-amigaos* | *-*-msdosdjgpp*)
11077 # Override, as these systems have only a dummy fork() stub
11078 ac_cv_func_fork_works=no
11079 ;;
11080 *)
11081 ac_cv_func_fork_works=yes
11082 ;;
11083 esac
11084 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11085 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11086 fi
11087 ac_cv_func_vfork_works=$ac_cv_func_vfork
11088 if test "x$ac_cv_func_vfork" = xyes; then
11089 echo "$as_me:$LINENO: checking for working vfork" >&5
11090 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11091 if test "${ac_cv_func_vfork_works+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094 if test "$cross_compiling" = yes; then
11095 ac_cv_func_vfork_works=cross
11096 else
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 /* Thanks to Paul Eggert for this test. */
11104 #include <stdio.h>
11105 #include <stdlib.h>
11106 #include <sys/types.h>
11107 #include <sys/stat.h>
11108 #include <sys/wait.h>
11109 #if HAVE_UNISTD_H
11110 # include <unistd.h>
11111 #endif
11112 #if HAVE_VFORK_H
11113 # include <vfork.h>
11114 #endif
11115 /* On some sparc systems, changes by the child to local and incoming
11116 argument registers are propagated back to the parent. The compiler
11117 is told about this with #include <vfork.h>, but some compilers
11118 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11119 static variable whose address is put into a register that is
11120 clobbered by the vfork. */
11121 static void
11122 #ifdef __cplusplus
11123 sparc_address_test (int arg)
11124 # else
11125 sparc_address_test (arg) int arg;
11126 #endif
11127 {
11128 static pid_t child;
11129 if (!child) {
11130 child = vfork ();
11131 if (child < 0) {
11132 perror ("vfork");
11133 _exit(2);
11134 }
11135 if (!child) {
11136 arg = getpid();
11137 write(-1, "", 0);
11138 _exit (arg);
11139 }
11140 }
11141 }
11142
11143 int
11144 main ()
11145 {
11146 pid_t parent = getpid ();
11147 pid_t child;
11148
11149 sparc_address_test (0);
11150
11151 child = vfork ();
11152
11153 if (child == 0) {
11154 /* Here is another test for sparc vfork register problems. This
11155 test uses lots of local variables, at least as many local
11156 variables as main has allocated so far including compiler
11157 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11158 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11159 reuse the register of parent for one of the local variables,
11160 since it will think that parent can't possibly be used any more
11161 in this routine. Assigning to the local variable will thus
11162 munge parent in the parent process. */
11163 pid_t
11164 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11165 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11166 /* Convince the compiler that p..p7 are live; otherwise, it might
11167 use the same hardware register for all 8 local variables. */
11168 if (p != p1 || p != p2 || p != p3 || p != p4
11169 || p != p5 || p != p6 || p != p7)
11170 _exit(1);
11171
11172 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11173 from child file descriptors. If the child closes a descriptor
11174 before it execs or exits, this munges the parent's descriptor
11175 as well. Test for this by closing stdout in the child. */
11176 _exit(close(fileno(stdout)) != 0);
11177 } else {
11178 int status;
11179 struct stat st;
11180
11181 while (wait(&status) != child)
11182 ;
11183 exit(
11184 /* Was there some problem with vforking? */
11185 child < 0
11186
11187 /* Did the child fail? (This shouldn't happen.) */
11188 || status
11189
11190 /* Did the vfork/compiler bug occur? */
11191 || parent != getpid()
11192
11193 /* Did the file descriptor bug occur? */
11194 || fstat(fileno(stdout), &st) != 0
11195 );
11196 }
11197 }
11198 _ACEOF
11199 rm -f conftest$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11202 ac_status=$?
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_func_vfork_works=yes
11211 else
11212 echo "$as_me: program exited with status $ac_status" >&5
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ( exit $ac_status )
11217 ac_cv_func_vfork_works=no
11218 fi
11219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11220 fi
11221 fi
11222 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11223 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11224
11225 fi;
11226 if test "x$ac_cv_func_fork_works" = xcross; then
11227 ac_cv_func_vfork_works=$ac_cv_func_vfork
11228 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11229 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11230 fi
11231
11232 if test "x$ac_cv_func_vfork_works" = xyes; then
11233
11234 cat >>confdefs.h <<\_ACEOF
11235 #define HAVE_WORKING_VFORK 1
11236 _ACEOF
11237
11238 else
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 #define vfork fork
11242 _ACEOF
11243
11244 fi
11245 if test "x$ac_cv_func_fork_works" = xyes; then
11246
11247 cat >>confdefs.h <<\_ACEOF
11248 #define HAVE_WORKING_FORK 1
11249 _ACEOF
11250
11251 fi
11252
11253
11254
11255 if test "X$prefix" = "XNONE"; then
11256 acl_final_prefix="$ac_default_prefix"
11257 else
11258 acl_final_prefix="$prefix"
11259 fi
11260 if test "X$exec_prefix" = "XNONE"; then
11261 acl_final_exec_prefix='${prefix}'
11262 else
11263 acl_final_exec_prefix="$exec_prefix"
11264 fi
11265 acl_save_prefix="$prefix"
11266 prefix="$acl_final_prefix"
11267 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11268 prefix="$acl_save_prefix"
11269
11270
11271 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11272 if test "${with_gnu_ld+set}" = set; then
11273 withval="$with_gnu_ld"
11274 test "$withval" = no || with_gnu_ld=yes
11275 else
11276 with_gnu_ld=no
11277 fi;
11278 # Prepare PATH_SEPARATOR.
11279 # The user is always right.
11280 if test "${PATH_SEPARATOR+set}" != set; then
11281 echo "#! /bin/sh" >conf$$.sh
11282 echo "exit 0" >>conf$$.sh
11283 chmod +x conf$$.sh
11284 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11285 PATH_SEPARATOR=';'
11286 else
11287 PATH_SEPARATOR=:
11288 fi
11289 rm -f conf$$.sh
11290 fi
11291 ac_prog=ld
11292 if test "$GCC" = yes; then
11293 # Check if gcc -print-prog-name=ld gives a path.
11294 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11295 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11296 case $host in
11297 *-*-mingw*)
11298 # gcc leaves a trailing carriage return which upsets mingw
11299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11300 *)
11301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11302 esac
11303 case $ac_prog in
11304 # Accept absolute paths.
11305 [\\/]* | [A-Za-z]:[\\/]*)
11306 re_direlt='/[^/][^/]*/\.\./'
11307 # Canonicalize the path of ld
11308 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11309 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11310 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11311 done
11312 test -z "$LD" && LD="$ac_prog"
11313 ;;
11314 "")
11315 # If it fails, then pretend we aren't using GCC.
11316 ac_prog=ld
11317 ;;
11318 *)
11319 # If it is relative, then search for the first ld in PATH.
11320 with_gnu_ld=unknown
11321 ;;
11322 esac
11323 elif test "$with_gnu_ld" = yes; then
11324 echo "$as_me:$LINENO: checking for GNU ld" >&5
11325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11326 else
11327 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11329 fi
11330 if test "${acl_cv_path_LD+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333 if test -z "$LD"; then
11334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11335 for ac_dir in $PATH; do
11336 test -z "$ac_dir" && ac_dir=.
11337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11338 acl_cv_path_LD="$ac_dir/$ac_prog"
11339 # Check to see if the program is GNU ld. I'd rather use --version,
11340 # but apparently some GNU ld's only accept -v.
11341 # Break only if it was the GNU/non-GNU ld that we prefer.
11342 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11343 test "$with_gnu_ld" != no && break
11344 else
11345 test "$with_gnu_ld" != yes && break
11346 fi
11347 fi
11348 done
11349 IFS="$ac_save_ifs"
11350 else
11351 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11352 fi
11353 fi
11354
11355 LD="$acl_cv_path_LD"
11356 if test -n "$LD"; then
11357 echo "$as_me:$LINENO: result: $LD" >&5
11358 echo "${ECHO_T}$LD" >&6
11359 else
11360 echo "$as_me:$LINENO: result: no" >&5
11361 echo "${ECHO_T}no" >&6
11362 fi
11363 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11364 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11365 { (exit 1); exit 1; }; }
11366 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11367 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11368 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11372 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11373 acl_cv_prog_gnu_ld=yes
11374 else
11375 acl_cv_prog_gnu_ld=no
11376 fi
11377 fi
11378 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11379 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11380 with_gnu_ld=$acl_cv_prog_gnu_ld
11381
11382
11383
11384 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11385 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11386 if test "${acl_cv_rpath+set}" = set; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 else
11389
11390 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11391 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11392 . ./conftest.sh
11393 rm -f ./conftest.sh
11394 acl_cv_rpath=done
11395
11396 fi
11397 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11398 echo "${ECHO_T}$acl_cv_rpath" >&6
11399 wl="$acl_cv_wl"
11400 libext="$acl_cv_libext"
11401 shlibext="$acl_cv_shlibext"
11402 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11403 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11404 hardcode_direct="$acl_cv_hardcode_direct"
11405 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11406 # Check whether --enable-rpath or --disable-rpath was given.
11407 if test "${enable_rpath+set}" = set; then
11408 enableval="$enable_rpath"
11409 :
11410 else
11411 enable_rpath=yes
11412 fi;
11413
11414
11415
11416
11417
11418
11419
11420 use_additional=yes
11421
11422 acl_save_prefix="$prefix"
11423 prefix="$acl_final_prefix"
11424 acl_save_exec_prefix="$exec_prefix"
11425 exec_prefix="$acl_final_exec_prefix"
11426
11427 eval additional_includedir=\"$includedir\"
11428 eval additional_libdir=\"$libdir\"
11429
11430 exec_prefix="$acl_save_exec_prefix"
11431 prefix="$acl_save_prefix"
11432
11433
11434 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11435 if test "${with_libiconv_prefix+set}" = set; then
11436 withval="$with_libiconv_prefix"
11437
11438 if test "X$withval" = "Xno"; then
11439 use_additional=no
11440 else
11441 if test "X$withval" = "X"; then
11442
11443 acl_save_prefix="$prefix"
11444 prefix="$acl_final_prefix"
11445 acl_save_exec_prefix="$exec_prefix"
11446 exec_prefix="$acl_final_exec_prefix"
11447
11448 eval additional_includedir=\"$includedir\"
11449 eval additional_libdir=\"$libdir\"
11450
11451 exec_prefix="$acl_save_exec_prefix"
11452 prefix="$acl_save_prefix"
11453
11454 else
11455 additional_includedir="$withval/include"
11456 additional_libdir="$withval/lib"
11457 fi
11458 fi
11459
11460 fi;
11461 LIBICONV=
11462 LTLIBICONV=
11463 INCICONV=
11464 rpathdirs=
11465 ltrpathdirs=
11466 names_already_handled=
11467 names_next_round='iconv '
11468 while test -n "$names_next_round"; do
11469 names_this_round="$names_next_round"
11470 names_next_round=
11471 for name in $names_this_round; do
11472 already_handled=
11473 for n in $names_already_handled; do
11474 if test "$n" = "$name"; then
11475 already_handled=yes
11476 break
11477 fi
11478 done
11479 if test -z "$already_handled"; then
11480 names_already_handled="$names_already_handled $name"
11481 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11482 eval value=\"\$HAVE_LIB$uppername\"
11483 if test -n "$value"; then
11484 if test "$value" = yes; then
11485 eval value=\"\$LIB$uppername\"
11486 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11487 eval value=\"\$LTLIB$uppername\"
11488 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11489 else
11490 :
11491 fi
11492 else
11493 found_dir=
11494 found_la=
11495 found_so=
11496 found_a=
11497 if test $use_additional = yes; then
11498 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11499 found_dir="$additional_libdir"
11500 found_so="$additional_libdir/lib$name.$shlibext"
11501 if test -f "$additional_libdir/lib$name.la"; then
11502 found_la="$additional_libdir/lib$name.la"
11503 fi
11504 else
11505 if test -f "$additional_libdir/lib$name.$libext"; then
11506 found_dir="$additional_libdir"
11507 found_a="$additional_libdir/lib$name.$libext"
11508 if test -f "$additional_libdir/lib$name.la"; then
11509 found_la="$additional_libdir/lib$name.la"
11510 fi
11511 fi
11512 fi
11513 fi
11514 if test "X$found_dir" = "X"; then
11515 for x in $LDFLAGS $LTLIBICONV; do
11516
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"
11524
11525 case "$x" in
11526 -L*)
11527 dir=`echo "X$x" | sed -e 's/^X-L//'`
11528 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11529 found_dir="$dir"
11530 found_so="$dir/lib$name.$shlibext"
11531 if test -f "$dir/lib$name.la"; then
11532 found_la="$dir/lib$name.la"
11533 fi
11534 else
11535 if test -f "$dir/lib$name.$libext"; then
11536 found_dir="$dir"
11537 found_a="$dir/lib$name.$libext"
11538 if test -f "$dir/lib$name.la"; then
11539 found_la="$dir/lib$name.la"
11540 fi
11541 fi
11542 fi
11543 ;;
11544 esac
11545 if test "X$found_dir" != "X"; then
11546 break
11547 fi
11548 done
11549 fi
11550 if test "X$found_dir" != "X"; then
11551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11552 if test "X$found_so" != "X"; then
11553 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11554 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11555 else
11556 haveit=
11557 for x in $ltrpathdirs; do
11558 if test "X$x" = "X$found_dir"; then
11559 haveit=yes
11560 break
11561 fi
11562 done
11563 if test -z "$haveit"; then
11564 ltrpathdirs="$ltrpathdirs $found_dir"
11565 fi
11566 if test "$hardcode_direct" = yes; then
11567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11568 else
11569 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11571 haveit=
11572 for x in $rpathdirs; do
11573 if test "X$x" = "X$found_dir"; then
11574 haveit=yes
11575 break
11576 fi
11577 done
11578 if test -z "$haveit"; then
11579 rpathdirs="$rpathdirs $found_dir"
11580 fi
11581 else
11582 haveit=
11583 for x in $LDFLAGS $LIBICONV; do
11584
11585 acl_save_prefix="$prefix"
11586 prefix="$acl_final_prefix"
11587 acl_save_exec_prefix="$exec_prefix"
11588 exec_prefix="$acl_final_exec_prefix"
11589 eval x=\"$x\"
11590 exec_prefix="$acl_save_exec_prefix"
11591 prefix="$acl_save_prefix"
11592
11593 if test "X$x" = "X-L$found_dir"; then
11594 haveit=yes
11595 break
11596 fi
11597 done
11598 if test -z "$haveit"; then
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11600 fi
11601 if test "$hardcode_minus_L" != no; then
11602 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11603 else
11604 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11605 fi
11606 fi
11607 fi
11608 fi
11609 else
11610 if test "X$found_a" != "X"; then
11611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11612 else
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11614 fi
11615 fi
11616 additional_includedir=
11617 case "$found_dir" in
11618 */lib | */lib/)
11619 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11620 additional_includedir="$basedir/include"
11621 ;;
11622 esac
11623 if test "X$additional_includedir" != "X"; then
11624 if test "X$additional_includedir" != "X/usr/include"; then
11625 haveit=
11626 if test "X$additional_includedir" = "X/usr/local/include"; then
11627 if test -n "$GCC"; then
11628 case $host_os in
11629 linux*) haveit=yes;;
11630 esac
11631 fi
11632 fi
11633 if test -z "$haveit"; then
11634 for x in $CPPFLAGS $INCICONV; do
11635
11636 acl_save_prefix="$prefix"
11637 prefix="$acl_final_prefix"
11638 acl_save_exec_prefix="$exec_prefix"
11639 exec_prefix="$acl_final_exec_prefix"
11640 eval x=\"$x\"
11641 exec_prefix="$acl_save_exec_prefix"
11642 prefix="$acl_save_prefix"
11643
11644 if test "X$x" = "X-I$additional_includedir"; then
11645 haveit=yes
11646 break
11647 fi
11648 done
11649 if test -z "$haveit"; then
11650 if test -d "$additional_includedir"; then
11651 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11652 fi
11653 fi
11654 fi
11655 fi
11656 fi
11657 if test -n "$found_la"; then
11658 save_libdir="$libdir"
11659 case "$found_la" in
11660 */* | *\\*) . "$found_la" ;;
11661 *) . "./$found_la" ;;
11662 esac
11663 libdir="$save_libdir"
11664 for dep in $dependency_libs; do
11665 case "$dep" in
11666 -L*)
11667 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11668 if test "X$additional_libdir" != "X/usr/lib"; then
11669 haveit=
11670 if test "X$additional_libdir" = "X/usr/local/lib"; then
11671 if test -n "$GCC"; then
11672 case $host_os in
11673 linux*) haveit=yes;;
11674 esac
11675 fi
11676 fi
11677 if test -z "$haveit"; then
11678 haveit=
11679 for x in $LDFLAGS $LIBICONV; do
11680
11681 acl_save_prefix="$prefix"
11682 prefix="$acl_final_prefix"
11683 acl_save_exec_prefix="$exec_prefix"
11684 exec_prefix="$acl_final_exec_prefix"
11685 eval x=\"$x\"
11686 exec_prefix="$acl_save_exec_prefix"
11687 prefix="$acl_save_prefix"
11688
11689 if test "X$x" = "X-L$additional_libdir"; then
11690 haveit=yes
11691 break
11692 fi
11693 done
11694 if test -z "$haveit"; then
11695 if test -d "$additional_libdir"; then
11696 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11697 fi
11698 fi
11699 haveit=
11700 for x in $LDFLAGS $LTLIBICONV; do
11701
11702 acl_save_prefix="$prefix"
11703 prefix="$acl_final_prefix"
11704 acl_save_exec_prefix="$exec_prefix"
11705 exec_prefix="$acl_final_exec_prefix"
11706 eval x=\"$x\"
11707 exec_prefix="$acl_save_exec_prefix"
11708 prefix="$acl_save_prefix"
11709
11710 if test "X$x" = "X-L$additional_libdir"; then
11711 haveit=yes
11712 break
11713 fi
11714 done
11715 if test -z "$haveit"; then
11716 if test -d "$additional_libdir"; then
11717 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11718 fi
11719 fi
11720 fi
11721 fi
11722 ;;
11723 -R*)
11724 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11725 if test "$enable_rpath" != no; then
11726 haveit=
11727 for x in $rpathdirs; do
11728 if test "X$x" = "X$dir"; then
11729 haveit=yes
11730 break
11731 fi
11732 done
11733 if test -z "$haveit"; then
11734 rpathdirs="$rpathdirs $dir"
11735 fi
11736 haveit=
11737 for x in $ltrpathdirs; do
11738 if test "X$x" = "X$dir"; then
11739 haveit=yes
11740 break
11741 fi
11742 done
11743 if test -z "$haveit"; then
11744 ltrpathdirs="$ltrpathdirs $dir"
11745 fi
11746 fi
11747 ;;
11748 -l*)
11749 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11750 ;;
11751 *.la)
11752 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11753 ;;
11754 *)
11755 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11756 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11757 ;;
11758 esac
11759 done
11760 fi
11761 else
11762 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11763 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11764 fi
11765 fi
11766 fi
11767 done
11768 done
11769 if test "X$rpathdirs" != "X"; then
11770 if test -n "$hardcode_libdir_separator"; then
11771 alldirs=
11772 for found_dir in $rpathdirs; do
11773 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11774 done
11775 acl_save_libdir="$libdir"
11776 libdir="$alldirs"
11777 eval flag=\"$hardcode_libdir_flag_spec\"
11778 libdir="$acl_save_libdir"
11779 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11780 else
11781 for found_dir in $rpathdirs; do
11782 acl_save_libdir="$libdir"
11783 libdir="$found_dir"
11784 eval flag=\"$hardcode_libdir_flag_spec\"
11785 libdir="$acl_save_libdir"
11786 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11787 done
11788 fi
11789 fi
11790 if test "X$ltrpathdirs" != "X"; then
11791 for found_dir in $ltrpathdirs; do
11792 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11793 done
11794 fi
11795
11796
11797
11798
11799
11800
11801
11802 am_save_CPPFLAGS="$CPPFLAGS"
11803
11804 for element in $INCICONV; do
11805 haveit=
11806 for x in $CPPFLAGS; do
11807
11808 acl_save_prefix="$prefix"
11809 prefix="$acl_final_prefix"
11810 acl_save_exec_prefix="$exec_prefix"
11811 exec_prefix="$acl_final_exec_prefix"
11812 eval x=\"$x\"
11813 exec_prefix="$acl_save_exec_prefix"
11814 prefix="$acl_save_prefix"
11815
11816 if test "X$x" = "X$element"; then
11817 haveit=yes
11818 break
11819 fi
11820 done
11821 if test -z "$haveit"; then
11822 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11823 fi
11824 done
11825
11826
11827 echo "$as_me:$LINENO: checking for iconv" >&5
11828 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11829 if test "${am_cv_func_iconv+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 else
11832
11833 am_cv_func_iconv="no, consider installing GNU libiconv"
11834 am_cv_lib_iconv=no
11835 cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h. */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <stdlib.h>
11842 #include <iconv.h>
11843 int
11844 main ()
11845 {
11846 iconv_t cd = iconv_open("","");
11847 iconv(cd,NULL,NULL,NULL,NULL);
11848 iconv_close(cd);
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 rm -f conftest.$ac_objext conftest$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_c_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 am_cv_func_iconv=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 fi
11881 rm -f conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 if test "$am_cv_func_iconv" != yes; then
11884 am_save_LIBS="$LIBS"
11885 LIBS="$LIBS $LIBICONV"
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h. */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 #include <stdlib.h>
11893 #include <iconv.h>
11894 int
11895 main ()
11896 {
11897 iconv_t cd = iconv_open("","");
11898 iconv(cd,NULL,NULL,NULL,NULL);
11899 iconv_close(cd);
11900 ;
11901 return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 am_cv_lib_iconv=yes
11927 am_cv_func_iconv=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 fi
11933 rm -f conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS="$am_save_LIBS"
11936 fi
11937
11938 fi
11939 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11940 echo "${ECHO_T}$am_cv_func_iconv" >&6
11941 if test "$am_cv_func_iconv" = yes; then
11942
11943 cat >>confdefs.h <<\_ACEOF
11944 #define HAVE_ICONV 1
11945 _ACEOF
11946
11947 fi
11948 if test "$am_cv_lib_iconv" = yes; then
11949 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11950 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11951 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11952 echo "${ECHO_T}$LIBICONV" >&6
11953 else
11954 CPPFLAGS="$am_save_CPPFLAGS"
11955 LIBICONV=
11956 LTLIBICONV=
11957 fi
11958
11959
11960
11961 if test "$am_cv_func_iconv" = yes; then
11962 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11963 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11964 if test "${am_cv_proto_iconv+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974
11975 #include <stdlib.h>
11976 #include <iconv.h>
11977 extern
11978 #ifdef __cplusplus
11979 "C"
11980 #endif
11981 #if defined(__STDC__) || defined(__cplusplus)
11982 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11983 #else
11984 size_t iconv();
11985 #endif
11986
11987 int
11988 main ()
11989 {
11990
11991 ;
11992 return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag"
12005 || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest.$ac_objext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 am_cv_proto_iconv_arg1=""
12018 else
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022 am_cv_proto_iconv_arg1="const"
12023 fi
12024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12025 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);"
12026 fi
12027
12028 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12029 echo "$as_me:$LINENO: result: ${ac_t:-
12030 }$am_cv_proto_iconv" >&5
12031 echo "${ECHO_T}${ac_t:-
12032 }$am_cv_proto_iconv" >&6
12033
12034 cat >>confdefs.h <<_ACEOF
12035 #define ICONV_CONST $am_cv_proto_iconv_arg1
12036 _ACEOF
12037
12038 fi
12039
12040 # Until we have in-tree GNU iconv:
12041 LIBICONV_DEP=
12042
12043
12044
12045 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12046 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12047 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <locale.h>
12057 int
12058 main ()
12059 {
12060 return LC_MESSAGES
12061 ;
12062 return 0;
12063 }
12064 _ACEOF
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest$ac_exeext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 am_cv_val_LC_MESSAGES=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 am_cv_val_LC_MESSAGES=no
12093 fi
12094 rm -f conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 fi
12097 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12098 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12099 if test $am_cv_val_LC_MESSAGES = yes; then
12100
12101 cat >>confdefs.h <<\_ACEOF
12102 #define HAVE_LC_MESSAGES 1
12103 _ACEOF
12104
12105 fi
12106
12107
12108
12109 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12110 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12111 if test "${am_cv_langinfo_codeset+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <langinfo.h>
12121 int
12122 main ()
12123 {
12124 char* cs = nl_langinfo(CODESET);
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag"
12139 || test ! -s conftest.err'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest$ac_exeext'
12146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147 (eval $ac_try) 2>&5
12148 ac_status=$?
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); }; }; then
12151 am_cv_langinfo_codeset=yes
12152 else
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 am_cv_langinfo_codeset=no
12157 fi
12158 rm -f conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160
12161 fi
12162 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12163 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12164 if test $am_cv_langinfo_codeset = yes; then
12165
12166 cat >>confdefs.h <<\_ACEOF
12167 #define HAVE_LANGINFO_CODESET 1
12168 _ACEOF
12169
12170 fi
12171
12172
12173 # We will need to find libiberty.h and ansidecl.h
12174 saved_CFLAGS="$CFLAGS"
12175 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12216 strsignal strstr strverscmp \
12217 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12218 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
12219 do
12220 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12221 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12222 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12223 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 #undef $ac_tr_decl
12233 #define $ac_tr_decl 1
12234
12235 #include "ansidecl.h"
12236 #include "system.h"
12237
12238 int
12239 main ()
12240 {
12241 #ifndef $ac_func
12242 char *(*pfn) = (char *(*)) $ac_func ;
12243 #endif
12244 ;
12245 return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest.$ac_objext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "gcc_cv_have_decl_$ac_func=yes"
12271 else
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275 eval "gcc_cv_have_decl_$ac_func=no"
12276 fi
12277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12278 fi
12279
12280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12281 echo "$as_me:$LINENO: result: yes" >&5
12282 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12283 #define $ac_tr_decl 1
12284 _ACEOF
12285
12286 else
12287 echo "$as_me:$LINENO: result: no" >&5
12288 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12289 #define $ac_tr_decl 0
12290 _ACEOF
12291
12292 fi
12293
12294 done
12295
12296
12297
12298
12299
12300 for ac_func in getrlimit setrlimit getrusage
12301 do
12302 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12303 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12304 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12305 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 else
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314 #undef $ac_tr_decl
12315 #define $ac_tr_decl 1
12316
12317 #include "ansidecl.h"
12318 #include "system.h"
12319 #ifdef HAVE_SYS_RESOURCE_H
12320 #include <sys/resource.h>
12321 #endif
12322
12323
12324 int
12325 main ()
12326 {
12327 #ifndef $ac_func
12328 char *(*pfn) = (char *(*)) $ac_func ;
12329 #endif
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 eval "gcc_cv_have_decl_$ac_func=yes"
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12360
12361 eval "gcc_cv_have_decl_$ac_func=no"
12362 fi
12363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364 fi
12365
12366 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12367 echo "$as_me:$LINENO: result: yes" >&5
12368 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12369 #define $ac_tr_decl 1
12370 _ACEOF
12371
12372 else
12373 echo "$as_me:$LINENO: result: no" >&5
12374 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12375 #define $ac_tr_decl 0
12376 _ACEOF
12377
12378 fi
12379
12380 done
12381
12382
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12389
12390 #include "ansidecl.h"
12391 #include "system.h"
12392 #ifdef HAVE_SYS_RESOURCE_H
12393 #include <sys/resource.h>
12394 #endif
12395
12396 int
12397 main ()
12398 {
12399 rlim_t l = 0;
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag"
12414 || test ! -s conftest.err'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; } &&
12420 { ac_try='test -s conftest.$ac_objext'
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 :
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431
12432 cat >>confdefs.h <<\_ACEOF
12433 #define rlim_t long
12434 _ACEOF
12435
12436 fi
12437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12438
12439 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12440 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12441 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12442 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12443
12444 for ac_func in ldgetname
12445 do
12446 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12447 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12448 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12449 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h. */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 #undef $ac_tr_decl
12459 #define $ac_tr_decl 1
12460
12461 #include "ansidecl.h"
12462 #include "system.h"
12463 #ifdef HAVE_LDFCN_H
12464 #undef FREAD
12465 #undef FWRITE
12466 #include <ldfcn.h>
12467 #endif
12468
12469
12470 int
12471 main ()
12472 {
12473 #ifndef $ac_func
12474 char *(*pfn) = (char *(*)) $ac_func ;
12475 #endif
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482 (eval $ac_compile) 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } &&
12489 { ac_try='test -z "$ac_c_werror_flag"
12490 || test ! -s conftest.err'
12491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; } &&
12496 { ac_try='test -s conftest.$ac_objext'
12497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 eval "gcc_cv_have_decl_$ac_func=yes"
12503 else
12504 echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 eval "gcc_cv_have_decl_$ac_func=no"
12508 fi
12509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12510 fi
12511
12512 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12513 echo "$as_me:$LINENO: result: yes" >&5
12514 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12515 #define $ac_tr_decl 1
12516 _ACEOF
12517
12518 else
12519 echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12521 #define $ac_tr_decl 0
12522 _ACEOF
12523
12524 fi
12525
12526 done
12527
12528
12529
12530 for ac_func in times
12531 do
12532 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12533 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12534 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12535 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538 cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h. */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 #undef $ac_tr_decl
12545 #define $ac_tr_decl 1
12546
12547 #include "ansidecl.h"
12548 #include "system.h"
12549 #ifdef HAVE_SYS_TIMES_H
12550 #include <sys/times.h>
12551 #endif
12552
12553
12554 int
12555 main ()
12556 {
12557 #ifndef $ac_func
12558 char *(*pfn) = (char *(*)) $ac_func ;
12559 #endif
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext
12565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12566 (eval $ac_compile) 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest.$ac_objext'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586 eval "gcc_cv_have_decl_$ac_func=yes"
12587 else
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591 eval "gcc_cv_have_decl_$ac_func=no"
12592 fi
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594 fi
12595
12596 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12597 echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12599 #define $ac_tr_decl 1
12600 _ACEOF
12601
12602 else
12603 echo "$as_me:$LINENO: result: no" >&5
12604 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12605 #define $ac_tr_decl 0
12606 _ACEOF
12607
12608 fi
12609
12610 done
12611
12612
12613
12614 for ac_func in sigaltstack
12615 do
12616 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12617 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12618 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12619 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 else
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 #undef $ac_tr_decl
12629 #define $ac_tr_decl 1
12630
12631 #include "ansidecl.h"
12632 #include "system.h"
12633 #include <signal.h>
12634
12635
12636 int
12637 main ()
12638 {
12639 #ifndef $ac_func
12640 char *(*pfn) = (char *(*)) $ac_func ;
12641 #endif
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12648 (eval $ac_compile) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest.$ac_objext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 eval "gcc_cv_have_decl_$ac_func=yes"
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673 eval "gcc_cv_have_decl_$ac_func=no"
12674 fi
12675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12676 fi
12677
12678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12679 echo "$as_me:$LINENO: result: yes" >&5
12680 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12681 #define $ac_tr_decl 1
12682 _ACEOF
12683
12684 else
12685 echo "$as_me:$LINENO: result: no" >&5
12686 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12687 #define $ac_tr_decl 0
12688 _ACEOF
12689
12690 fi
12691
12692 done
12693
12694
12695 # More time-related stuff.
12696 echo "$as_me:$LINENO: checking for struct tms" >&5
12697 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12698 if test "${ac_cv_struct_tms+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708
12709 #include "ansidecl.h"
12710 #include "system.h"
12711 #ifdef HAVE_SYS_TIMES_H
12712 #include <sys/times.h>
12713 #endif
12714
12715 int
12716 main ()
12717 {
12718 struct tms tms;
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12726 ac_status=$?
12727 grep -v '^ *+' conftest.er1 >conftest.err
12728 rm -f conftest.er1
12729 cat conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12742 ac_status=$?
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_struct_tms=yes
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_cv_struct_tms=no
12751 fi
12752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12755 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12756 if test $ac_cv_struct_tms = yes; then
12757
12758 cat >>confdefs.h <<\_ACEOF
12759 #define HAVE_STRUCT_TMS 1
12760 _ACEOF
12761
12762 fi
12763
12764 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12765 # revisit after autoconf 2.50.
12766 echo "$as_me:$LINENO: checking for clock_t" >&5
12767 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12768 if test "${gcc_cv_type_clock_t+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 else
12771
12772 cat >conftest.$ac_ext <<_ACEOF
12773 /* confdefs.h. */
12774 _ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12778
12779 #include "ansidecl.h"
12780 #include "system.h"
12781
12782 int
12783 main ()
12784 {
12785 clock_t x;
12786 ;
12787 return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12792 (eval $ac_compile) 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest.$ac_objext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 gcc_cv_type_clock_t=yes
12813 else
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 gcc_cv_type_clock_t=no
12818 fi
12819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12822 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12823 if test $gcc_cv_type_clock_t = yes; then
12824
12825 cat >>confdefs.h <<\_ACEOF
12826 #define HAVE_CLOCK_T 1
12827 _ACEOF
12828
12829 fi
12830
12831 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12832 CFLAGS="$saved_CFLAGS"
12833
12834 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12835 if test "${enable_initfini_array+set}" = set; then
12836 enableval="$enable_initfini_array"
12837
12838 else
12839
12840 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12841 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12842 if test "${gcc_cv_initfini_array+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 else
12845 if test "$cross_compiling" = yes; then
12846 gcc_cv_initfini_array=no
12847 else
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854
12855 static int x = -1;
12856 int main (void) { return x; }
12857 int foo (void) { x = 0; }
12858 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12859 _ACEOF
12860 rm -f conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 gcc_cv_initfini_array=yes
12872 else
12873 echo "$as_me: program exited with status $ac_status" >&5
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 ( exit $ac_status )
12878 gcc_cv_initfini_array=no
12879 fi
12880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12881 fi
12882 fi
12883 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12884 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12885 enable_initfini_array=$gcc_cv_initfini_array
12886
12887 fi;
12888 if test $enable_initfini_array = yes; then
12889
12890 cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_INITFINI_ARRAY 1
12892 _ACEOF
12893
12894 fi
12895
12896 # mkdir takes a single argument on some systems.
12897 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12898 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12899 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902 cat >conftest.$ac_ext <<_ACEOF
12903 /* confdefs.h. */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h. */
12908
12909 #include <sys/types.h>
12910 #ifdef HAVE_SYS_STAT_H
12911 # include <sys/stat.h>
12912 #endif
12913 #ifdef HAVE_UNISTD_H
12914 # include <unistd.h>
12915 #endif
12916 #ifdef HAVE_DIRECT_H
12917 # include <direct.h>
12918 #endif
12919 int
12920 main ()
12921 {
12922 mkdir ("foo", 0);
12923 ;
12924 return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -z "$ac_c_werror_flag"
12937 || test ! -s conftest.err'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12946 ac_status=$?
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 gcc_cv_mkdir_takes_one_arg=no
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12953
12954 gcc_cv_mkdir_takes_one_arg=yes
12955 fi
12956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12957 fi
12958 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12959 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12960 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12961
12962 cat >>confdefs.h <<\_ACEOF
12963 #define MKDIR_TAKES_ONE_ARG 1
12964 _ACEOF
12965
12966 fi
12967
12968
12969 # File extensions
12970 manext='.1'
12971 objext='.o'
12972
12973
12974
12975 # With Setjmp/Longjmp based exception handling.
12976 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12977 if test "${enable_sjlj_exceptions+set}" = set; then
12978 enableval="$enable_sjlj_exceptions"
12979 case $target in
12980 *-*-hpux10*)
12981 if test $enableval != yes; then
12982 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12983 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12984 enableval=yes
12985 fi
12986 ;;
12987 esac
12988 force_sjlj_exceptions=yes
12989 else
12990 case $target in
12991 *-*-hpux10*)
12992 force_sjlj_exceptions=yes
12993 enableval=yes
12994 ;;
12995 *)
12996 force_sjlj_exceptions=no
12997 ;;
12998 esac
12999 fi;
13000 if test $force_sjlj_exceptions = yes; then
13001 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13002
13003 cat >>confdefs.h <<_ACEOF
13004 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13005 _ACEOF
13006
13007 fi
13008
13009 # For platforms with the unwind ABI which includes an unwind library,
13010 # libunwind, we can choose to use the system libunwind.
13011
13012 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13013 if test "${with_system_libunwind+set}" = set; then
13014 withval="$with_system_libunwind"
13015
13016 fi;
13017
13018 # config.gcc also contains tests of with_system_libunwind.
13019 if test x$with_system_libunwind = xyes; then
13020
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_GETIPINFO 1
13023 _ACEOF
13024
13025 fi
13026
13027 # --------------------------------------------------------
13028 # Build, host, and target specific configuration fragments
13029 # --------------------------------------------------------
13030
13031 # Collect build-machine-specific information.
13032 . ${srcdir}/config.build
13033
13034 # Collect host-machine-specific information.
13035 . ${srcdir}/config.host
13036
13037 target_gtfiles=
13038
13039 # Collect target-machine-specific information.
13040 . ${srcdir}/config.gcc
13041
13042 extra_objs="${host_extra_objs} ${extra_objs}"
13043 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13044
13045 # Default the target-machine variables that were not explicitly set.
13046 if test x"$tm_file" = x
13047 then tm_file=$cpu_type/$cpu_type.h; fi
13048
13049 if test x"$extra_headers" = x
13050 then extra_headers=; fi
13051
13052 if test x$md_file = x
13053 then md_file=$cpu_type/$cpu_type.md; fi
13054
13055 if test x$out_file = x
13056 then out_file=$cpu_type/$cpu_type.c; fi
13057
13058 if test x"$tmake_file" = x
13059 then tmake_file=$cpu_type/t-$cpu_type
13060 fi
13061
13062 if test x"$dwarf2" = xyes
13063 then tm_file="$tm_file tm-dwarf2.h"
13064 fi
13065
13066 # Say what files are being used for the output code and MD file.
13067 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13068 echo "Using \`$srcdir/config/$md_file' as machine description file."
13069
13070 # If any of the xm_file variables contain nonexistent files, warn
13071 # about them and drop them.
13072
13073 bx=
13074 for x in $build_xm_file; do
13075 if test -f $srcdir/config/$x
13076 then bx="$bx $x"
13077 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13078 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13079 fi
13080 done
13081 build_xm_file="$bx"
13082
13083 hx=
13084 for x in $host_xm_file; do
13085 if test -f $srcdir/config/$x
13086 then hx="$hx $x"
13087 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13088 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13089 fi
13090 done
13091 host_xm_file="$hx"
13092
13093 tx=
13094 for x in $xm_file; do
13095 if test -f $srcdir/config/$x
13096 then tx="$tx $x"
13097 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13098 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13099 fi
13100 done
13101 xm_file="$tx"
13102
13103 count=a
13104 for f in $tm_file; do
13105 count=${count}x
13106 done
13107 if test $count = ax; then
13108 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13109 else
13110 echo "Using the following target machine macro files:"
13111 for f in $tm_file; do
13112 echo " $srcdir/config/$f"
13113 done
13114 fi
13115
13116 if test x$need_64bit_hwint = xyes; then
13117
13118 cat >>confdefs.h <<\_ACEOF
13119 #define NEED_64BIT_HOST_WIDE_INT 1
13120 _ACEOF
13121
13122 fi
13123
13124 if test x$use_long_long_for_widest_fast_int = xyes; then
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13128 _ACEOF
13129
13130 fi
13131
13132 count=a
13133 for f in $host_xm_file; do
13134 count=${count}x
13135 done
13136 if test $count = a; then
13137 :
13138 elif test $count = ax; then
13139 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13140 else
13141 echo "Using the following host machine macro files:"
13142 for f in $host_xm_file; do
13143 echo " $srcdir/config/$f"
13144 done
13145 fi
13146 echo "Using ${out_host_hook_obj} for host machine hooks."
13147
13148 if test "$host_xm_file" != "$build_xm_file"; then
13149 count=a
13150 for f in $build_xm_file; do
13151 count=${count}x
13152 done
13153 if test $count = a; then
13154 :
13155 elif test $count = ax; then
13156 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13157 else
13158 echo "Using the following build machine macro files:"
13159 for f in $build_xm_file; do
13160 echo " $srcdir/config/$f"
13161 done
13162 fi
13163 fi
13164
13165 case ${host} in
13166 powerpc*-*-darwin*)
13167 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13168 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13169 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 else
13172 cat >conftest.$ac_ext <<_ACEOF
13173
13174 #include <sys/cdefs.h>
13175 #include <sys/signal.h>
13176 #include <ucontext.h>
13177 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13178
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -z "$ac_c_werror_flag"
13190 || test ! -s conftest.err'
13191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13192 (eval $ac_try) 2>&5
13193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; } &&
13196 { ac_try='test -s conftest.$ac_objext'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 gcc_cv_mcontext_underscores=no
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 gcc_cv_mcontext_underscores=yes
13208 fi
13209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13210 fi
13211 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13212 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13213 if test $gcc_cv_mcontext_underscores = yes; then
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAS_MCONTEXT_T_UNDERSCORES
13217 _ACEOF
13218
13219 fi
13220 ;;
13221 esac
13222
13223 # ---------
13224 # Threading
13225 # ---------
13226
13227 # Check if a valid thread package
13228 case ${enable_threads} in
13229 "" | no)
13230 # No threads
13231 target_thread_file='single'
13232 ;;
13233 yes)
13234 # default
13235 target_thread_file='single'
13236 ;;
13237 aix | dce | gnat | irix | posix | posix95 | rtems | \
13238 single | solaris | vxworks | win32 | mipssde)
13239 target_thread_file=${enable_threads}
13240 ;;
13241 *)
13242 echo "${enable_threads} is an unknown thread package" 1>&2
13243 exit 1
13244 ;;
13245 esac
13246
13247 if test x${thread_file} = x; then
13248 # No thread file set by target-specific clauses in config.gcc,
13249 # so use file chosen by default logic above
13250 thread_file=${target_thread_file}
13251 fi
13252
13253 # Make gthr-default.h if we have a thread file.
13254 gthread_flags=
13255 if test $thread_file != single; then
13256 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13257 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13258 rm -f gthr-default.h-t
13259 else
13260 mv -f gthr-default.h-t gthr-default.h
13261 fi
13262 gthread_flags=-DHAVE_GTHR_DEFAULT
13263 fi
13264
13265
13266 # --------
13267 # UNSORTED
13268 # --------
13269
13270 use_cxa_atexit=no
13271 if test x$enable___cxa_atexit = xyes || \
13272 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13273 if test x$host = x$target; then
13274 case $host in
13275 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13276 # keyed to flag_use_cxa_atexit
13277 *-*-mingw32*)
13278 use_cxa_atexit=yes
13279 ;;
13280 *)
13281 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13282 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13283 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h. */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13294 #define __cxa_atexit innocuous___cxa_atexit
13295
13296 /* System header to define __stub macros and hopefully few prototypes,
13297 which can conflict with char __cxa_atexit (); below.
13298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13299 <limits.h> exists even on freestanding compilers. */
13300
13301 #ifdef __STDC__
13302 # include <limits.h>
13303 #else
13304 # include <assert.h>
13305 #endif
13306
13307 #undef __cxa_atexit
13308
13309 /* Override any gcc2 internal prototype to avoid an error. */
13310 #ifdef __cplusplus
13311 extern "C"
13312 {
13313 #endif
13314 /* We use char because int might match the return type of a gcc2
13315 builtin and then its argument prototype would still apply. */
13316 char __cxa_atexit ();
13317 /* The GNU C library defines this for functions which it implements
13318 to always fail with ENOSYS. Some functions are actually named
13319 something starting with __ and the normal name is an alias. */
13320 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13321 choke me
13322 #else
13323 char (*f) () = __cxa_atexit;
13324 #endif
13325 #ifdef __cplusplus
13326 }
13327 #endif
13328
13329 int
13330 main ()
13331 {
13332 return f != __cxa_atexit;
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 rm -f conftest.$ac_objext conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339 (eval $ac_link) 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_func___cxa_atexit=yes
13360 else
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 ac_cv_func___cxa_atexit=no
13365 fi
13366 rm -f conftest.err conftest.$ac_objext \
13367 conftest$ac_exeext conftest.$ac_ext
13368 fi
13369 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13370 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13371 if test $ac_cv_func___cxa_atexit = yes; then
13372 use_cxa_atexit=yes
13373 else
13374 echo "__cxa_atexit can't be enabled on this target"
13375 fi
13376
13377 ;;
13378 esac
13379 else
13380 # We can't check for __cxa_atexit when building a cross, so assume
13381 # it is available
13382 use_cxa_atexit=yes
13383 fi
13384 if test x$use_cxa_atexit = xyes; then
13385
13386 cat >>confdefs.h <<\_ACEOF
13387 #define DEFAULT_USE_CXA_ATEXIT 2
13388 _ACEOF
13389
13390 fi
13391 fi
13392
13393 use_getipinfo=yes
13394 if test x$with_system_libunwind = xyes; then
13395 if test x$host = x$target; then
13396 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13397 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13398 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401 ac_func_search_save_LIBS=$LIBS
13402 ac_cv_search__Unwind_GetIPInfo=no
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409
13410 /* Override any gcc2 internal prototype to avoid an error. */
13411 #ifdef __cplusplus
13412 extern "C"
13413 #endif
13414 /* We use char because int might match the return type of a gcc2
13415 builtin and then its argument prototype would still apply. */
13416 char _Unwind_GetIPInfo ();
13417 int
13418 main ()
13419 {
13420 _Unwind_GetIPInfo ();
13421 ;
13422 return 0;
13423 }
13424 _ACEOF
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13427 (eval $ac_link) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 ac_cv_search__Unwind_GetIPInfo="none required"
13448 else
13449 echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 fi
13453 rm -f conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext conftest.$ac_ext
13455 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13456 for ac_lib in unwind; do
13457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h. */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464
13465 /* Override any gcc2 internal prototype to avoid an error. */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 /* We use char because int might match the return type of a gcc2
13470 builtin and then its argument prototype would still apply. */
13471 char _Unwind_GetIPInfo ();
13472 int
13473 main ()
13474 {
13475 _Unwind_GetIPInfo ();
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest.$ac_objext conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13503 break
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 fi
13509 rm -f conftest.err conftest.$ac_objext \
13510 conftest$ac_exeext conftest.$ac_ext
13511 done
13512 fi
13513 LIBS=$ac_func_search_save_LIBS
13514 fi
13515 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13516 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13517 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13518 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13519
13520 else
13521 use_getipinfo=no
13522 fi
13523
13524 fi
13525 fi
13526
13527 if test x$use_getipinfo = xyes; then
13528
13529 cat >>confdefs.h <<\_ACEOF
13530 #define HAVE_GETIPINFO 1
13531 _ACEOF
13532
13533 else
13534 echo "The system unwind library does not support _Unwind_GetIPInfo."
13535 fi
13536
13537 # Look for a file containing extra machine modes.
13538 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13539 extra_modes_file='$(srcdir)'/config/${extra_modes}
13540
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define EXTRA_MODES_FILE "config/$extra_modes"
13544 _ACEOF
13545
13546 fi
13547
13548 # Convert extra_options into a form suitable for Makefile use.
13549 extra_opt_files=
13550 for f in $extra_options; do
13551 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13552 done
13553
13554
13555 # auto-host.h is the file containing items generated by autoconf and is
13556 # the first file included by config.h.
13557 # If host=build, it is correct to have bconfig include auto-host.h
13558 # as well. If host!=build, we are in error and need to do more
13559 # work to find out the build config parameters.
13560 if test x$host = x$build
13561 then
13562 build_auto=auto-host.h
13563 else
13564 # We create a subdir, then run autoconf in the subdir.
13565 # To prevent recursion we set host and build for the new
13566 # invocation of configure to the build for this invocation
13567 # of configure.
13568 tempdir=build.$$
13569 rm -rf $tempdir
13570 mkdir $tempdir
13571 cd $tempdir
13572 case ${srcdir} in
13573 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13574 *) realsrcdir=../${srcdir};;
13575 esac
13576 saved_CFLAGS="${CFLAGS}"
13577 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13578 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13579 ${realsrcdir}/configure \
13580 --enable-languages=${enable_languages-all} \
13581 --target=$target_alias --host=$build_alias --build=$build_alias
13582 CFLAGS="${saved_CFLAGS}"
13583
13584 # We just finished tests for the build machine, so rename
13585 # the file auto-build.h in the gcc directory.
13586 mv auto-host.h ../auto-build.h
13587 cd ..
13588 rm -rf $tempdir
13589 build_auto=auto-build.h
13590 fi
13591
13592
13593 tm_file="${tm_file} defaults.h"
13594 tm_p_file="${tm_p_file} tm-preds.h"
13595 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13596 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13597 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13598 # put this back in temporarily.
13599 xm_file="auto-host.h ansidecl.h ${xm_file}"
13600
13601 # --------
13602 # UNSORTED
13603 # --------
13604
13605 # Compile in configure arguments.
13606 if test -f configargs.h ; then
13607 # Being re-configured.
13608 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13609 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13610 else
13611 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13612 fi
13613
13614 # Double all backslashes and backslash all quotes to turn
13615 # gcc_config_arguments into a C string.
13616 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13617 $gcc_config_arguments
13618 EOF
13619 gcc_config_arguments_str=`cat conftest.out`
13620 rm -f conftest.out
13621
13622 cat > configargs.h <<EOF
13623 /* Generated automatically. */
13624 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13625 static const char thread_model[] = "$thread_file";
13626
13627 static const struct {
13628 const char *name, *value;
13629 } configure_default_options[] = $configure_default_options;
13630 EOF
13631
13632 # Internationalization
13633 # If we haven't got the data from the intl directory,
13634 # assume NLS is disabled.
13635 USE_NLS=no
13636 LIBINTL=
13637 LIBINTL_DEP=
13638 INCINTL=
13639 XGETTEXT=
13640 GMSGFMT=
13641 POSUB=
13642
13643 if test -f ../intl/config.intl; then
13644 . ../intl/config.intl
13645 fi
13646 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13647 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13648 if test x"$USE_NLS" != xyes; then
13649 echo "$as_me:$LINENO: result: no" >&5
13650 echo "${ECHO_T}no" >&6
13651 else
13652 echo "$as_me:$LINENO: result: yes" >&5
13653 echo "${ECHO_T}yes" >&6
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define ENABLE_NLS 1
13657 _ACEOF
13658
13659
13660 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13661 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13662 # Look for .po and .gmo files in the source directory.
13663 CATALOGS=
13664 XLINGUAS=
13665 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13666 # If there aren't any .gmo files the shell will give us the
13667 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13668 # weeded out.
13669 case "$cat" in *\**)
13670 continue;;
13671 esac
13672 # The quadruple backslash is collapsed to a double backslash
13673 # by the backticks, then collapsed again by the double quotes,
13674 # leaving us with one backslash in the sed expression (right
13675 # before the dot that mustn't act as a wildcard).
13676 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13677 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13678 # The user is allowed to set LINGUAS to a list of languages to
13679 # install catalogs for. If it's empty that means "all of them."
13680 if test "x$LINGUAS" = x; then
13681 CATALOGS="$CATALOGS $cat"
13682 XLINGUAS="$XLINGUAS $lang"
13683 else
13684 case "$LINGUAS" in *$lang*)
13685 CATALOGS="$CATALOGS $cat"
13686 XLINGUAS="$XLINGUAS $lang"
13687 ;;
13688 esac
13689 fi
13690 done
13691 LINGUAS="$XLINGUAS"
13692 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13693 echo "${ECHO_T}$LINGUAS" >&6
13694
13695
13696 DATADIRNAME=share
13697
13698 INSTOBJEXT=.mo
13699
13700 GENCAT=gencat
13701
13702 CATOBJEXT=.gmo
13703
13704 fi
13705
13706 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13707 # -liconv on the link line twice.
13708 case "$LIBINTL" in *$LIBICONV*)
13709 LIBICONV= ;;
13710 esac
13711
13712 # Check whether --enable-secureplt or --disable-secureplt was given.
13713 if test "${enable_secureplt+set}" = set; then
13714 enableval="$enable_secureplt"
13715
13716 fi;
13717
13718 # Check whether --enable-cld or --disable-cld was given.
13719 if test "${enable_cld+set}" = set; then
13720 enableval="$enable_cld"
13721
13722 else
13723 enable_cld=no
13724 fi;
13725
13726 # Windows32 Registry support for specifying GCC installation paths.
13727 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13728 if test "${enable_win32_registry+set}" = set; then
13729 enableval="$enable_win32_registry"
13730
13731 fi;
13732
13733 case $host_os in
13734 win32 | pe | cygwin* | mingw32* | uwin*)
13735 if test "x$enable_win32_registry" != xno; then
13736 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13737 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13738 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 ac_func_search_save_LIBS=$LIBS
13742 ac_cv_search_RegOpenKeyExA=no
13743 cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h. */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749
13750 /* Override any gcc2 internal prototype to avoid an error. */
13751 #ifdef __cplusplus
13752 extern "C"
13753 #endif
13754 /* We use char because int might match the return type of a gcc2
13755 builtin and then its argument prototype would still apply. */
13756 char RegOpenKeyExA ();
13757 int
13758 main ()
13759 {
13760 RegOpenKeyExA ();
13761 ;
13762 return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13767 (eval $ac_link) 2>conftest.er1
13768 ac_status=$?
13769 grep -v '^ *+' conftest.er1 >conftest.err
13770 rm -f conftest.er1
13771 cat conftest.err >&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try='test -z "$ac_c_werror_flag"
13775 || test ! -s conftest.err'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13778 ac_status=$?
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try='test -s conftest$ac_exeext'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_search_RegOpenKeyExA="none required"
13788 else
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792 fi
13793 rm -f conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13796 for ac_lib in advapi32; do
13797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804
13805 /* Override any gcc2 internal prototype to avoid an error. */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 /* We use char because int might match the return type of a gcc2
13810 builtin and then its argument prototype would still apply. */
13811 char RegOpenKeyExA ();
13812 int
13813 main ()
13814 {
13815 RegOpenKeyExA ();
13816 ;
13817 return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag"
13830 || test ! -s conftest.err'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13843 break
13844 else
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848 fi
13849 rm -f conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 done
13852 fi
13853 LIBS=$ac_func_search_save_LIBS
13854 fi
13855 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13856 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13857 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13858 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13859
13860 else
13861 enable_win32_registry=no
13862 fi
13863
13864 fi
13865
13866 if test "x$enable_win32_registry" != xno; then
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define ENABLE_WIN32_REGISTRY 1
13870 _ACEOF
13871
13872
13873 if test "x$enable_win32_registry" != xyes \
13874 && test "x$enable_win32_registry" != x; then
13875
13876 cat >>confdefs.h <<_ACEOF
13877 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13878 _ACEOF
13879
13880 fi
13881 fi
13882 ;;
13883 esac
13884
13885 # Get an absolute path to the GCC top-level source directory
13886 holddir=`${PWDCMD-pwd}`
13887 cd $srcdir
13888 topdir=`${PWDCMD-pwd}`
13889 cd $holddir
13890
13891 # Conditionalize the makefile for this host machine.
13892 xmake_file=
13893 for f in ${host_xmake_file}
13894 do
13895 if test -f ${srcdir}/config/$f
13896 then
13897 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13898 fi
13899 done
13900
13901 # Conditionalize the makefile for this target machine.
13902 tmake_file_=
13903 for f in ${tmake_file}
13904 do
13905 if test -f ${srcdir}/config/$f
13906 then
13907 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13908 fi
13909 done
13910 tmake_file="${tmake_file_}"
13911
13912 # This is a terrible hack which will go away some day.
13913 host_cc_for_libada=${CC}
13914
13915
13916 out_object_file=`basename $out_file .c`.o
13917
13918 tm_file_list="options.h"
13919 tm_include_list="options.h"
13920 for f in $tm_file; do
13921 case $f in
13922 ./* )
13923 f=`echo $f | sed 's/^..//'`
13924 tm_file_list="${tm_file_list} $f"
13925 tm_include_list="${tm_include_list} $f"
13926 ;;
13927 defaults.h )
13928 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13929 tm_include_list="${tm_include_list} $f"
13930 ;;
13931 * )
13932 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13933 tm_include_list="${tm_include_list} config/$f"
13934 ;;
13935 esac
13936 done
13937
13938 tm_p_file_list=
13939 tm_p_include_list=
13940 for f in $tm_p_file; do
13941 case $f in
13942 tm-preds.h )
13943 tm_p_file_list="${tm_p_file_list} $f"
13944 tm_p_include_list="${tm_p_include_list} $f"
13945 ;;
13946 * )
13947 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13948 tm_p_include_list="${tm_p_include_list} config/$f"
13949 esac
13950 done
13951
13952 xm_file_list=
13953 xm_include_list=
13954 for f in $xm_file; do
13955 case $f in
13956 ansidecl.h )
13957 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13958 xm_include_list="${xm_include_list} $f"
13959 ;;
13960 auto-host.h )
13961 xm_file_list="${xm_file_list} $f"
13962 xm_include_list="${xm_include_list} $f"
13963 ;;
13964 * )
13965 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13966 xm_include_list="${xm_include_list} config/$f"
13967 ;;
13968 esac
13969 done
13970
13971 host_xm_file_list=
13972 host_xm_include_list=
13973 for f in $host_xm_file; do
13974 case $f in
13975 ansidecl.h )
13976 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13977 host_xm_include_list="${host_xm_include_list} $f"
13978 ;;
13979 auto-host.h )
13980 host_xm_file_list="${host_xm_file_list} $f"
13981 host_xm_include_list="${host_xm_include_list} $f"
13982 ;;
13983 * )
13984 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13985 host_xm_include_list="${host_xm_include_list} config/$f"
13986 ;;
13987 esac
13988 done
13989
13990 build_xm_file_list=
13991 for f in $build_xm_file; do
13992 case $f in
13993 ansidecl.h )
13994 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13995 build_xm_include_list="${build_xm_include_list} $f"
13996 ;;
13997 auto-build.h | auto-host.h )
13998 build_xm_file_list="${build_xm_file_list} $f"
13999 build_xm_include_list="${build_xm_include_list} $f"
14000 ;;
14001 * )
14002 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14003 build_xm_include_list="${build_xm_include_list} config/$f"
14004 ;;
14005 esac
14006 done
14007
14008 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14009 # cross-compiler which does not use the native headers and libraries.
14010 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14011 CROSS=
14012 ALL=all.internal
14013 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14014
14015 if test "x$with_build_sysroot" != x; then
14016 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14017 else
14018 # This value is used, even on a native system, because
14019 # CROSS_SYSTEM_HEADER_DIR is just
14020 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14021 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14022 fi
14023
14024 if test x$host != x$target
14025 then
14026 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14027 ALL=all.cross
14028 SYSTEM_HEADER_DIR=$build_system_header_dir
14029 case "$host","$target" in
14030 # Darwin crosses can use the host system's libraries and headers,
14031 # because of the fat library support. Of course, it must be the
14032 # same version of Darwin on both sides. Allow the user to
14033 # just say --target=foo-darwin without a version number to mean
14034 # "the version on this system".
14035 *-*-darwin*,*-*-darwin*)
14036 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14037 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14038 if test $hostos = $targetos -o $targetos = darwin ; then
14039 CROSS=
14040 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14041 with_headers=yes
14042 fi
14043 ;;
14044
14045 i?86-*-*,x86_64-*-* \
14046 | powerpc*-*-*,powerpc64*-*-*)
14047 CROSS="$CROSS -DNATIVE_CROSS" ;;
14048 esac
14049 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14050 SYSTEM_HEADER_DIR=$build_system_header_dir
14051 fi
14052
14053 # If this is a cross-compiler that does not
14054 # have its own set of headers then define
14055 # inhibit_libc
14056
14057 # If this is using newlib, without having the headers available now,
14058 # then define inhibit_libc in LIBGCC2_CFLAGS.
14059 # This prevents libgcc2 from containing any code which requires libc
14060 # support.
14061 : ${inhibit_libc=false}
14062 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14063 test x$with_newlib = xyes ; } &&
14064 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14065 inhibit_libc=true
14066 fi
14067
14068
14069 # When building gcc with a cross-compiler, we need to adjust things so
14070 # that the generator programs are still built with the native compiler.
14071 # Also, we cannot run fixincludes or fix-header.
14072
14073 # These are the normal (build=host) settings:
14074 CC_FOR_BUILD='$(CC)'
14075 BUILD_CFLAGS='$(ALL_CFLAGS)'
14076 BUILD_LDFLAGS='$(LDFLAGS)'
14077 STMP_FIXINC=stmp-fixinc
14078
14079 # Possibly disable fixproto, on a per-target basis.
14080 case ${use_fixproto} in
14081 no)
14082 STMP_FIXPROTO=
14083 ;;
14084 yes)
14085 STMP_FIXPROTO=stmp-fixproto
14086 ;;
14087 esac
14088
14089
14090 # And these apply if build != host, or we are generating coverage data
14091 if test x$build != x$host || test "x$coverage_flags" != x
14092 then
14093 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14094 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14095
14096 if test "x$TARGET_SYSTEM_ROOT" = x; then
14097 if test "x$STMP_FIXPROTO" != x; then
14098 STMP_FIXPROTO=stmp-install-fixproto
14099 fi
14100 fi
14101 fi
14102
14103 # Expand extra_headers to include complete path.
14104 # This substitutes for lots of t-* files.
14105 extra_headers_list=
14106 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14107 for file in ${extra_headers} ; do
14108 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14109 done
14110
14111 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14112 if test x"$use_gcc_tgmath" = xyes
14113 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14114 fi
14115
14116 # Define collect2 in Makefile.
14117 case $host_can_use_collect2 in
14118 no) collect2= ;;
14119 *) collect2='collect2$(exeext)' ;;
14120 esac
14121
14122
14123 # Add a definition of USE_COLLECT2 if system wants one.
14124 case $use_collect2 in
14125 no) use_collect2= ;;
14126 "") ;;
14127 *)
14128 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14129 xm_defines="${xm_defines} USE_COLLECT2"
14130 case $host_can_use_collect2 in
14131 no)
14132 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14133 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14134 { (exit 1); exit 1; }; }
14135 ;;
14136 esac
14137 ;;
14138 esac
14139
14140 # ---------------------------
14141 # Assembler & linker features
14142 # ---------------------------
14143
14144 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14145 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14146 # However when ld-new is first executed from the build tree, libtool will
14147 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14148 # to the build tree. While doing this we need to use the previous-stage
14149 # linker, or we have an infinite loop. The presence of a shell script as
14150 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14151 # the gcc/collect-ld script. So we need to know how libtool works, or
14152 # exec-tool will fail.
14153
14154
14155
14156
14157 macro_version='2.1a'
14158 macro_revision='1.2435'
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171 ltmain="$ac_aux_dir/ltmain.sh"
14172
14173 # Set options
14174
14175 enable_dlopen=no
14176
14177
14178 enable_win32_dll=no
14179
14180
14181 # Check whether --enable-shared or --disable-shared was given.
14182 if test "${enable_shared+set}" = set; then
14183 enableval="$enable_shared"
14184 p=${PACKAGE-default}
14185 case $enableval in
14186 yes) enable_shared=yes ;;
14187 no) enable_shared=no ;;
14188 *)
14189 enable_shared=no
14190 # Look at the argument we got. We use all the common list separators.
14191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14192 for pkg in $enableval; do
14193 IFS="$lt_save_ifs"
14194 if test "X$pkg" = "X$p"; then
14195 enable_shared=yes
14196 fi
14197 done
14198 IFS="$lt_save_ifs"
14199 ;;
14200 esac
14201 else
14202 enable_shared=yes
14203 fi;
14204
14205
14206
14207
14208
14209
14210
14211
14212 # Check whether --enable-static or --disable-static was given.
14213 if test "${enable_static+set}" = set; then
14214 enableval="$enable_static"
14215 p=${PACKAGE-default}
14216 case $enableval in
14217 yes) enable_static=yes ;;
14218 no) enable_static=no ;;
14219 *)
14220 enable_static=no
14221 # Look at the argument we got. We use all the common list separators.
14222 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14223 for pkg in $enableval; do
14224 IFS="$lt_save_ifs"
14225 if test "X$pkg" = "X$p"; then
14226 enable_static=yes
14227 fi
14228 done
14229 IFS="$lt_save_ifs"
14230 ;;
14231 esac
14232 else
14233 enable_static=yes
14234 fi;
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244 # Check whether --with-pic or --without-pic was given.
14245 if test "${with_pic+set}" = set; then
14246 withval="$with_pic"
14247 pic_mode="$withval"
14248 else
14249 pic_mode=default
14250 fi;
14251
14252 test -z "$pic_mode" && pic_mode=default
14253
14254
14255
14256
14257
14258
14259
14260 # Check whether --enable-fast-install or --disable-fast-install was given.
14261 if test "${enable_fast_install+set}" = set; then
14262 enableval="$enable_fast_install"
14263 p=${PACKAGE-default}
14264 case $enableval in
14265 yes) enable_fast_install=yes ;;
14266 no) enable_fast_install=no ;;
14267 *)
14268 enable_fast_install=no
14269 # Look at the argument we got. We use all the common list separators.
14270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14271 for pkg in $enableval; do
14272 IFS="$lt_save_ifs"
14273 if test "X$pkg" = "X$p"; then
14274 enable_fast_install=yes
14275 fi
14276 done
14277 IFS="$lt_save_ifs"
14278 ;;
14279 esac
14280 else
14281 enable_fast_install=yes
14282 fi;
14283
14284
14285
14286
14287
14288
14289
14290
14291 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14292 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14293 if test "${lt_cv_path_SED+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296 # Loop through the user's path and test for sed and gsed.
14297 # Then use that list of sed's as ones to test for truncation.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14300 do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for lt_ac_prog in sed gsed; do
14304 for ac_exec_ext in '' $ac_executable_extensions; do
14305 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14306 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14307 fi
14308 done
14309 done
14310 done
14311 IFS=$as_save_IFS
14312 lt_ac_max=0
14313 lt_ac_count=0
14314 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14315 # along with /bin/sed that truncates output.
14316 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14317 test ! -f $lt_ac_sed && continue
14318 cat /dev/null > conftest.in
14319 lt_ac_count=0
14320 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14321 # Check for GNU sed and select it if it is found.
14322 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14323 lt_cv_path_SED=$lt_ac_sed
14324 break
14325 fi
14326 while true; do
14327 cat conftest.in conftest.in >conftest.tmp
14328 mv conftest.tmp conftest.in
14329 cp conftest.in conftest.nl
14330 echo >>conftest.nl
14331 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14332 cmp -s conftest.out conftest.nl || break
14333 # 10000 chars as input seems more than enough
14334 test $lt_ac_count -gt 10 && break
14335 lt_ac_count=`expr $lt_ac_count + 1`
14336 if test $lt_ac_count -gt $lt_ac_max; then
14337 lt_ac_max=$lt_ac_count
14338 lt_cv_path_SED=$lt_ac_sed
14339 fi
14340 done
14341 done
14342
14343 fi
14344
14345 SED=$lt_cv_path_SED
14346
14347 echo "$as_me:$LINENO: result: $SED" >&5
14348 echo "${ECHO_T}$SED" >&6
14349
14350 test -z "$SED" && SED=sed
14351 Xsed="$SED -e 1s/^X//"
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363 echo "$as_me:$LINENO: checking for fgrep" >&5
14364 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14365 if test "${ac_cv_prog_fgrep+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14369 then ac_cv_prog_fgrep='grep -F'
14370 else ac_cv_prog_fgrep='fgrep'
14371 fi
14372 fi
14373 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14374 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14375 FGREP=$ac_cv_prog_fgrep
14376
14377
14378 test -z "$GREP" && GREP=grep
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14399 if test "${with_gnu_ld+set}" = set; then
14400 withval="$with_gnu_ld"
14401 test "$withval" = no || with_gnu_ld=yes
14402 else
14403 with_gnu_ld=no
14404 fi;
14405 ac_prog=ld
14406 if test "$GCC" = yes; then
14407 # Check if gcc -print-prog-name=ld gives a path.
14408 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14409 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14410 case $host in
14411 *-*-mingw*)
14412 # gcc leaves a trailing carriage return which upsets mingw
14413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14414 *)
14415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14416 esac
14417 case $ac_prog in
14418 # Accept absolute paths.
14419 [\\/]* | ?:[\\/]*)
14420 re_direlt='/[^/][^/]*/\.\./'
14421 # Canonicalize the pathname of ld
14422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14425 done
14426 test -z "$LD" && LD="$ac_prog"
14427 ;;
14428 "")
14429 # If it fails, then pretend we aren't using GCC.
14430 ac_prog=ld
14431 ;;
14432 *)
14433 # If it is relative, then search for the first ld in PATH.
14434 with_gnu_ld=unknown
14435 ;;
14436 esac
14437 elif test "$with_gnu_ld" = yes; then
14438 echo "$as_me:$LINENO: checking for GNU ld" >&5
14439 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14440 else
14441 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14442 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14443 fi
14444 if test "${lt_cv_path_LD+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447 if test -z "$LD"; then
14448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14449 for ac_dir in $PATH; do
14450 IFS="$lt_save_ifs"
14451 test -z "$ac_dir" && ac_dir=.
14452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14453 lt_cv_path_LD="$ac_dir/$ac_prog"
14454 # Check to see if the program is GNU ld. I'd rather use --version,
14455 # but apparently some variants of GNU ld only accept -v.
14456 # Break only if it was the GNU/non-GNU ld that we prefer.
14457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14458 *GNU* | *'with BFD'*)
14459 test "$with_gnu_ld" != no && break
14460 ;;
14461 *)
14462 test "$with_gnu_ld" != yes && break
14463 ;;
14464 esac
14465 fi
14466 done
14467 IFS="$lt_save_ifs"
14468 else
14469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14470 fi
14471 fi
14472
14473 LD="$lt_cv_path_LD"
14474 if test -n "$LD"; then
14475 echo "$as_me:$LINENO: result: $LD" >&5
14476 echo "${ECHO_T}$LD" >&6
14477 else
14478 echo "$as_me:$LINENO: result: no" >&5
14479 echo "${ECHO_T}no" >&6
14480 fi
14481 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14482 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14483 { (exit 1); exit 1; }; }
14484 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14485 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14486 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14490 case `$LD -v 2>&1 </dev/null` in
14491 *GNU* | *'with BFD'*)
14492 lt_cv_prog_gnu_ld=yes
14493 ;;
14494 *)
14495 lt_cv_prog_gnu_ld=no
14496 ;;
14497 esac
14498 fi
14499 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14500 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14501 with_gnu_ld=$lt_cv_prog_gnu_ld
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14513 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14514 if test "${lt_cv_path_NM+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517 if test -n "$NM"; then
14518 # Let the user override the test.
14519 lt_cv_path_NM="$NM"
14520 else
14521 lt_nm_to_check="${ac_tool_prefix}nm"
14522 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14523 lt_nm_to_check="$lt_nm_to_check nm"
14524 fi
14525 for lt_tmp_nm in $lt_nm_to_check; do
14526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14527 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14528 IFS="$lt_save_ifs"
14529 test -z "$ac_dir" && ac_dir=.
14530 tmp_nm="$ac_dir/$lt_tmp_nm"
14531 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14532 # Check to see if the nm accepts a BSD-compat flag.
14533 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14534 # nm: unknown option "B" ignored
14535 # Tru64's nm complains that /dev/null is an invalid object file
14536 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14537 */dev/null* | *'Invalid file or object type'*)
14538 lt_cv_path_NM="$tmp_nm -B"
14539 break
14540 ;;
14541 *)
14542 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14543 */dev/null*)
14544 lt_cv_path_NM="$tmp_nm -p"
14545 break
14546 ;;
14547 *)
14548 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14549 continue # so that we can try to find one that supports BSD flags
14550 ;;
14551 esac
14552 ;;
14553 esac
14554 fi
14555 done
14556 IFS="$lt_save_ifs"
14557 done
14558 : ${lt_cv_path_NM=no}
14559 fi
14560 fi
14561 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14562 echo "${ECHO_T}$lt_cv_path_NM" >&6
14563 if test "$lt_cv_path_NM" != "no"; then
14564 NM="$lt_cv_path_NM"
14565 else
14566 # Didn't find any BSD compatible name lister, look for dumpbin.
14567 if test -n "$ac_tool_prefix"; then
14568 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14569 do
14570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14572 echo "$as_me:$LINENO: checking for $ac_word" >&5
14573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14574 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 else
14577 if test -n "$DUMPBIN"; then
14578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14579 else
14580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14581 for as_dir in $PATH
14582 do
14583 IFS=$as_save_IFS
14584 test -z "$as_dir" && as_dir=.
14585 for ac_exec_ext in '' $ac_executable_extensions; do
14586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14589 break 2
14590 fi
14591 done
14592 done
14593
14594 fi
14595 fi
14596 DUMPBIN=$ac_cv_prog_DUMPBIN
14597 if test -n "$DUMPBIN"; then
14598 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14599 echo "${ECHO_T}$DUMPBIN" >&6
14600 else
14601 echo "$as_me:$LINENO: result: no" >&5
14602 echo "${ECHO_T}no" >&6
14603 fi
14604
14605 test -n "$DUMPBIN" && break
14606 done
14607 fi
14608 if test -z "$DUMPBIN"; then
14609 ac_ct_DUMPBIN=$DUMPBIN
14610 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14611 do
14612 # Extract the first word of "$ac_prog", so it can be a program name with args.
14613 set dummy $ac_prog; ac_word=$2
14614 echo "$as_me:$LINENO: checking for $ac_word" >&5
14615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14616 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 if test -n "$ac_ct_DUMPBIN"; then
14620 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14621 else
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14624 do
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14632 fi
14633 done
14634 done
14635
14636 fi
14637 fi
14638 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14639 if test -n "$ac_ct_DUMPBIN"; then
14640 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14641 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14642 else
14643 echo "$as_me:$LINENO: result: no" >&5
14644 echo "${ECHO_T}no" >&6
14645 fi
14646
14647 test -n "$ac_ct_DUMPBIN" && break
14648 done
14649 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14650
14651 DUMPBIN=$ac_ct_DUMPBIN
14652 fi
14653
14654
14655 if test "$DUMPBIN" != ":"; then
14656 NM="$DUMPBIN"
14657 fi
14658 fi
14659 test -z "$NM" && NM=nm
14660
14661
14662
14663
14664
14665
14666 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14667 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14668 if test "${lt_cv_nm_interface+set}" = set; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671 lt_cv_nm_interface="BSD nm"
14672 echo "int some_variable = 0;" > conftest.$ac_ext
14673 (eval echo "\"\$as_me:14673: $ac_compile\"" >&5)
14674 (eval "$ac_compile" 2>conftest.err)
14675 cat conftest.err >&5
14676 (eval echo "\"\$as_me:14676: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14677 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14678 cat conftest.err >&5
14679 (eval echo "\"\$as_me:14679: output\"" >&5)
14680 cat conftest.out >&5
14681 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14682 lt_cv_nm_interface="MS dumpbin"
14683 fi
14684 rm -f conftest*
14685 fi
14686 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14687 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14688
14689 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14691 LN_S=$as_ln_s
14692 if test "$LN_S" = "ln -s"; then
14693 echo "$as_me:$LINENO: result: yes" >&5
14694 echo "${ECHO_T}yes" >&6
14695 else
14696 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14697 echo "${ECHO_T}no, using $LN_S" >&6
14698 fi
14699
14700 # find the maximum length of command line arguments
14701 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14702 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14703 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706 i=0
14707 teststring="ABCD"
14708
14709 case $build_os in
14710 msdosdjgpp*)
14711 # On DJGPP, this test can blow up pretty badly due to problems in libc
14712 # (any single argument exceeding 2000 bytes causes a buffer overrun
14713 # during glob expansion). Even if it were fixed, the result of this
14714 # check would be larger than it should be.
14715 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14716 ;;
14717
14718 gnu*)
14719 # Under GNU Hurd, this test is not required because there is
14720 # no limit to the length of command line arguments.
14721 # Libtool will interpret -1 as no limit whatsoever
14722 lt_cv_sys_max_cmd_len=-1;
14723 ;;
14724
14725 cygwin* | mingw*)
14726 # On Win9x/ME, this test blows up -- it succeeds, but takes
14727 # about 5 minutes as the teststring grows exponentially.
14728 # Worse, since 9x/ME are not pre-emptively multitasking,
14729 # you end up with a "frozen" computer, even though with patience
14730 # the test eventually succeeds (with a max line length of 256k).
14731 # Instead, let's just punt: use the minimum linelength reported by
14732 # all of the supported platforms: 8192 (on NT/2K/XP).
14733 lt_cv_sys_max_cmd_len=8192;
14734 ;;
14735
14736 amigaos*)
14737 # On AmigaOS with pdksh, this test takes hours, literally.
14738 # So we just punt and use a minimum line length of 8192.
14739 lt_cv_sys_max_cmd_len=8192;
14740 ;;
14741
14742 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14743 # This has been around since 386BSD, at least. Likely further.
14744 if test -x /sbin/sysctl; then
14745 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14746 elif test -x /usr/sbin/sysctl; then
14747 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14748 else
14749 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14750 fi
14751 # And add a safety zone
14752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14754 ;;
14755
14756 interix*)
14757 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14758 lt_cv_sys_max_cmd_len=196608
14759 ;;
14760
14761 osf*)
14762 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14763 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14764 # nice to cause kernel panics so lets avoid the loop below.
14765 # First set a reasonable default.
14766 lt_cv_sys_max_cmd_len=16384
14767 #
14768 if test -x /sbin/sysconfig; then
14769 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14770 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14771 esac
14772 fi
14773 ;;
14774 sco3.2v5*)
14775 lt_cv_sys_max_cmd_len=102400
14776 ;;
14777 sysv5* | sco5v6* | sysv4.2uw2*)
14778 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14779 if test -n "$kargmax"; then
14780 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14781 else
14782 lt_cv_sys_max_cmd_len=32768
14783 fi
14784 ;;
14785 *)
14786 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14787 if test -n $lt_cv_sys_max_cmd_len; then
14788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14790 else
14791 # Make teststring a little bigger before we do anything with it.
14792 # a 1K string should be a reasonable start.
14793 for i in 1 2 3 4 5 6 7 8 ; do
14794 teststring=$teststring$teststring
14795 done
14796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14797 # If test is not a shell built-in, we'll probably end up computing a
14798 # maximum length that is only half of the actual maximum length, but
14799 # we can't tell.
14800 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14801 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14802 test $i != 17 # 1/2 MB should be enough
14803 do
14804 i=`expr $i + 1`
14805 teststring=$teststring$teststring
14806 done
14807 # Only check the string length outside the loop.
14808 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14809 teststring=
14810 # Add a significant safety factor because C++ compilers can tack on
14811 # massive amounts of additional arguments before passing them to the
14812 # linker. It appears as though 1/2 is a usable value.
14813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14814 fi
14815 ;;
14816 esac
14817
14818 fi
14819
14820 if test -n $lt_cv_sys_max_cmd_len ; then
14821 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14822 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14823 else
14824 echo "$as_me:$LINENO: result: none" >&5
14825 echo "${ECHO_T}none" >&6
14826 fi
14827 max_cmd_len=$lt_cv_sys_max_cmd_len
14828
14829
14830
14831
14832
14833
14834
14835 : ${CP="cp -f"}
14836 : ${MV="mv -f"}
14837 : ${RM="rm -f"}
14838
14839 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14840 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14841 # Try some XSI features
14842 xsi_shell=no
14843 ( _lt_dummy="a/b/c"
14844 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14845 = c,a/b,, ) >/dev/null 2>&1 \
14846 && xsi_shell=yes
14847 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14848 echo "${ECHO_T}$xsi_shell" >&6
14849
14850
14851 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14852 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14853 lt_shell_append=no
14854 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14855 >/dev/null 2>&1 \
14856 && lt_shell_append=yes
14857 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14858 echo "${ECHO_T}$lt_shell_append" >&6
14859
14860
14861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14862 lt_unset=unset
14863 else
14864 lt_unset=false
14865 fi
14866
14867
14868
14869
14870
14871 # test EBCDIC or ASCII
14872 case `echo X|tr X '\101'` in
14873 A) # ASCII based system
14874 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14875 lt_SP2NL='tr \040 \012'
14876 lt_NL2SP='tr \015\012 \040\040'
14877 ;;
14878 *) # EBCDIC based system
14879 lt_SP2NL='tr \100 \n'
14880 lt_NL2SP='tr \r\n \100\100'
14881 ;;
14882 esac
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14893 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14894 if test "${lt_cv_ld_reload_flag+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 lt_cv_ld_reload_flag='-r'
14898 fi
14899 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14900 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14901 reload_flag=$lt_cv_ld_reload_flag
14902 case $reload_flag in
14903 "" | " "*) ;;
14904 *) reload_flag=" $reload_flag" ;;
14905 esac
14906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14907 case $host_os in
14908 darwin*)
14909 if test "$GCC" = yes; then
14910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14911 else
14912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14913 fi
14914 ;;
14915 esac
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14927 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14928 if test "${lt_cv_deplibs_check_method+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931 lt_cv_file_magic_cmd='$MAGIC_CMD'
14932 lt_cv_file_magic_test_file=
14933 lt_cv_deplibs_check_method='unknown'
14934 # Need to set the preceding variable on all platforms that support
14935 # interlibrary dependencies.
14936 # 'none' -- dependencies not supported.
14937 # `unknown' -- same as none, but documents that we really don't know.
14938 # 'pass_all' -- all dependencies passed with no checks.
14939 # 'test_compile' -- check by making test program.
14940 # 'file_magic [[regex]]' -- check by looking for files in library path
14941 # which responds to the $file_magic_cmd with a given extended regex.
14942 # If you have `file' or equivalent on your system and you're not sure
14943 # whether `pass_all' will *always* work, you probably want this one.
14944
14945 case $host_os in
14946 aix[4-9]*)
14947 lt_cv_deplibs_check_method=pass_all
14948 ;;
14949
14950 beos*)
14951 lt_cv_deplibs_check_method=pass_all
14952 ;;
14953
14954 bsdi[45]*)
14955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14956 lt_cv_file_magic_cmd='/usr/bin/file -L'
14957 lt_cv_file_magic_test_file=/shlib/libc.so
14958 ;;
14959
14960 cygwin*)
14961 # func_win32_libid is a shell function defined in ltmain.sh
14962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14963 lt_cv_file_magic_cmd='func_win32_libid'
14964 ;;
14965
14966 mingw* | pw32*)
14967 # Base MSYS/MinGW do not provide the 'file' command needed by
14968 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14969 # unless we find 'file', for example because we are cross-compiling.
14970 if ( file / ) >/dev/null 2>&1; then
14971 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14972 lt_cv_file_magic_cmd='func_win32_libid'
14973 else
14974 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14975 lt_cv_file_magic_cmd='$OBJDUMP -f'
14976 fi
14977 ;;
14978
14979 darwin* | rhapsody*)
14980 lt_cv_deplibs_check_method=pass_all
14981 ;;
14982
14983 freebsd* | dragonfly*)
14984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14985 case $host_cpu in
14986 i*86 )
14987 # Not sure whether the presence of OpenBSD here was a mistake.
14988 # Let's accept both of them until this is cleared up.
14989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14990 lt_cv_file_magic_cmd=/usr/bin/file
14991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14992 ;;
14993 esac
14994 else
14995 lt_cv_deplibs_check_method=pass_all
14996 fi
14997 ;;
14998
14999 gnu*)
15000 lt_cv_deplibs_check_method=pass_all
15001 ;;
15002
15003 hpux10.20* | hpux11*)
15004 lt_cv_file_magic_cmd=/usr/bin/file
15005 case $host_cpu in
15006 ia64*)
15007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15008 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15009 ;;
15010 hppa*64*)
15011 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]'
15012 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15013 ;;
15014 *)
15015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15016 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15017 ;;
15018 esac
15019 ;;
15020
15021 interix[3-9]*)
15022 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15024 ;;
15025
15026 irix5* | irix6* | nonstopux*)
15027 case $LD in
15028 *-32|*"-32 ") libmagic=32-bit;;
15029 *-n32|*"-n32 ") libmagic=N32;;
15030 *-64|*"-64 ") libmagic=64-bit;;
15031 *) libmagic=never-match;;
15032 esac
15033 lt_cv_deplibs_check_method=pass_all
15034 ;;
15035
15036 # This must be Linux ELF.
15037 linux* | k*bsd*-gnu)
15038 lt_cv_deplibs_check_method=pass_all
15039 ;;
15040
15041 netbsd*)
15042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15044 else
15045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15046 fi
15047 ;;
15048
15049 newos6*)
15050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15051 lt_cv_file_magic_cmd=/usr/bin/file
15052 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15053 ;;
15054
15055 *nto* | *qnx*)
15056 lt_cv_deplibs_check_method=pass_all
15057 ;;
15058
15059 openbsd*)
15060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15062 else
15063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15064 fi
15065 ;;
15066
15067 osf3* | osf4* | osf5*)
15068 lt_cv_deplibs_check_method=pass_all
15069 ;;
15070
15071 rdos*)
15072 lt_cv_deplibs_check_method=pass_all
15073 ;;
15074
15075 solaris*)
15076 lt_cv_deplibs_check_method=pass_all
15077 ;;
15078
15079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15080 lt_cv_deplibs_check_method=pass_all
15081 ;;
15082
15083 sysv4 | sysv4.3*)
15084 case $host_vendor in
15085 motorola)
15086 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]'
15087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15088 ;;
15089 ncr)
15090 lt_cv_deplibs_check_method=pass_all
15091 ;;
15092 sequent)
15093 lt_cv_file_magic_cmd='/bin/file'
15094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15095 ;;
15096 sni)
15097 lt_cv_file_magic_cmd='/bin/file'
15098 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15099 lt_cv_file_magic_test_file=/lib/libc.so
15100 ;;
15101 siemens)
15102 lt_cv_deplibs_check_method=pass_all
15103 ;;
15104 pc)
15105 lt_cv_deplibs_check_method=pass_all
15106 ;;
15107 esac
15108 ;;
15109
15110 tpf*)
15111 lt_cv_deplibs_check_method=pass_all
15112 ;;
15113 esac
15114
15115 fi
15116 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15117 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15118 file_magic_cmd=$lt_cv_file_magic_cmd
15119 deplibs_check_method=$lt_cv_deplibs_check_method
15120 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133 if test -n "$ac_tool_prefix"; then
15134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15135 set dummy ${ac_tool_prefix}ar; ac_word=$2
15136 echo "$as_me:$LINENO: checking for $ac_word" >&5
15137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15138 if test "${ac_cv_prog_AR+set}" = set; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15140 else
15141 if test -n "$AR"; then
15142 ac_cv_prog_AR="$AR" # Let the user override the test.
15143 else
15144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15145 for as_dir in $PATH
15146 do
15147 IFS=$as_save_IFS
15148 test -z "$as_dir" && as_dir=.
15149 for ac_exec_ext in '' $ac_executable_extensions; do
15150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15151 ac_cv_prog_AR="${ac_tool_prefix}ar"
15152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15153 break 2
15154 fi
15155 done
15156 done
15157
15158 fi
15159 fi
15160 AR=$ac_cv_prog_AR
15161 if test -n "$AR"; then
15162 echo "$as_me:$LINENO: result: $AR" >&5
15163 echo "${ECHO_T}$AR" >&6
15164 else
15165 echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6
15167 fi
15168
15169 fi
15170 if test -z "$ac_cv_prog_AR"; then
15171 ac_ct_AR=$AR
15172 # Extract the first word of "ar", so it can be a program name with args.
15173 set dummy ar; ac_word=$2
15174 echo "$as_me:$LINENO: checking for $ac_word" >&5
15175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179 if test -n "$ac_ct_AR"; then
15180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15181 else
15182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15183 for as_dir in $PATH
15184 do
15185 IFS=$as_save_IFS
15186 test -z "$as_dir" && as_dir=.
15187 for ac_exec_ext in '' $ac_executable_extensions; do
15188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15189 ac_cv_prog_ac_ct_AR="ar"
15190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15191 break 2
15192 fi
15193 done
15194 done
15195
15196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15197 fi
15198 fi
15199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15200 if test -n "$ac_ct_AR"; then
15201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15202 echo "${ECHO_T}$ac_ct_AR" >&6
15203 else
15204 echo "$as_me:$LINENO: result: no" >&5
15205 echo "${ECHO_T}no" >&6
15206 fi
15207
15208 AR=$ac_ct_AR
15209 else
15210 AR="$ac_cv_prog_AR"
15211 fi
15212
15213 test -z "$AR" && AR=ar
15214 test -z "$AR_FLAGS" && AR_FLAGS=cru
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226 if test -n "$ac_tool_prefix"; then
15227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15228 set dummy ${ac_tool_prefix}strip; ac_word=$2
15229 echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231 if test "${ac_cv_prog_STRIP+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233 else
15234 if test -n "$STRIP"; then
15235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15236 else
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15239 do
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15247 fi
15248 done
15249 done
15250
15251 fi
15252 fi
15253 STRIP=$ac_cv_prog_STRIP
15254 if test -n "$STRIP"; then
15255 echo "$as_me:$LINENO: result: $STRIP" >&5
15256 echo "${ECHO_T}$STRIP" >&6
15257 else
15258 echo "$as_me:$LINENO: result: no" >&5
15259 echo "${ECHO_T}no" >&6
15260 fi
15261
15262 fi
15263 if test -z "$ac_cv_prog_STRIP"; then
15264 ac_ct_STRIP=$STRIP
15265 # Extract the first word of "strip", so it can be a program name with args.
15266 set dummy strip; ac_word=$2
15267 echo "$as_me:$LINENO: checking for $ac_word" >&5
15268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 if test -n "$ac_ct_STRIP"; then
15273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15274 else
15275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15276 for as_dir in $PATH
15277 do
15278 IFS=$as_save_IFS
15279 test -z "$as_dir" && as_dir=.
15280 for ac_exec_ext in '' $ac_executable_extensions; do
15281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15282 ac_cv_prog_ac_ct_STRIP="strip"
15283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15284 break 2
15285 fi
15286 done
15287 done
15288
15289 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15290 fi
15291 fi
15292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15293 if test -n "$ac_ct_STRIP"; then
15294 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15295 echo "${ECHO_T}$ac_ct_STRIP" >&6
15296 else
15297 echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6
15299 fi
15300
15301 STRIP=$ac_ct_STRIP
15302 else
15303 STRIP="$ac_cv_prog_STRIP"
15304 fi
15305
15306 test -z "$STRIP" && STRIP=:
15307
15308
15309
15310
15311
15312
15313 if test -n "$ac_tool_prefix"; then
15314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15316 echo "$as_me:$LINENO: checking for $ac_word" >&5
15317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15318 if test "${ac_cv_prog_RANLIB+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 else
15321 if test -n "$RANLIB"; then
15322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15323 else
15324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15325 for as_dir in $PATH
15326 do
15327 IFS=$as_save_IFS
15328 test -z "$as_dir" && as_dir=.
15329 for ac_exec_ext in '' $ac_executable_extensions; do
15330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15333 break 2
15334 fi
15335 done
15336 done
15337
15338 fi
15339 fi
15340 RANLIB=$ac_cv_prog_RANLIB
15341 if test -n "$RANLIB"; then
15342 echo "$as_me:$LINENO: result: $RANLIB" >&5
15343 echo "${ECHO_T}$RANLIB" >&6
15344 else
15345 echo "$as_me:$LINENO: result: no" >&5
15346 echo "${ECHO_T}no" >&6
15347 fi
15348
15349 fi
15350 if test -z "$ac_cv_prog_RANLIB"; then
15351 ac_ct_RANLIB=$RANLIB
15352 # Extract the first word of "ranlib", so it can be a program name with args.
15353 set dummy ranlib; ac_word=$2
15354 echo "$as_me:$LINENO: checking for $ac_word" >&5
15355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 if test -n "$ac_ct_RANLIB"; then
15360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15361 else
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15364 do
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_ac_ct_RANLIB="ranlib"
15370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15372 fi
15373 done
15374 done
15375
15376 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15377 fi
15378 fi
15379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15380 if test -n "$ac_ct_RANLIB"; then
15381 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15382 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15383 else
15384 echo "$as_me:$LINENO: result: no" >&5
15385 echo "${ECHO_T}no" >&6
15386 fi
15387
15388 RANLIB=$ac_ct_RANLIB
15389 else
15390 RANLIB="$ac_cv_prog_RANLIB"
15391 fi
15392
15393 test -z "$RANLIB" && RANLIB=:
15394
15395
15396
15397
15398
15399
15400 # Determine commands to create old-style static archives.
15401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15402 old_postinstall_cmds='chmod 644 $oldlib'
15403 old_postuninstall_cmds=
15404
15405 if test -n "$RANLIB"; then
15406 case $host_os in
15407 openbsd*)
15408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15409 ;;
15410 *)
15411 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15412 ;;
15413 esac
15414 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15415 fi
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450 # If no C compiler was specified, use CC.
15451 LTCC=${LTCC-"$CC"}
15452
15453 # If no C compiler flags were specified, use CFLAGS.
15454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15455
15456 # Allow CC to be a program name with arguments.
15457 compiler=$CC
15458
15459
15460 # Check for command to grab the raw symbol name followed by C symbol from nm.
15461 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15462 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 else
15466
15467 # These are sane defaults that work on at least a few old systems.
15468 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15469
15470 # Character class describing NM global symbol codes.
15471 symcode='[BCDEGRST]'
15472
15473 # Regexp to match symbols that can be accessed directly from C.
15474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15475
15476 # Define system-specific variables.
15477 case $host_os in
15478 aix*)
15479 symcode='[BCDT]'
15480 ;;
15481 cygwin* | mingw* | pw32*)
15482 symcode='[ABCDGISTW]'
15483 ;;
15484 hpux*)
15485 if test "$host_cpu" = ia64; then
15486 symcode='[ABCDEGRST]'
15487 fi
15488 ;;
15489 irix* | nonstopux*)
15490 symcode='[BCDEGRST]'
15491 ;;
15492 osf*)
15493 symcode='[BCDEGQRST]'
15494 ;;
15495 solaris*)
15496 symcode='[BDRT]'
15497 ;;
15498 sco3.2v5*)
15499 symcode='[DT]'
15500 ;;
15501 sysv4.2uw2*)
15502 symcode='[DT]'
15503 ;;
15504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15505 symcode='[ABDT]'
15506 ;;
15507 sysv4)
15508 symcode='[DFNSTU]'
15509 ;;
15510 esac
15511
15512 # If we're using GNU nm, then use its standard symbol codes.
15513 case `$NM -V 2>&1` in
15514 *GNU* | *'with BFD'*)
15515 symcode='[ABCDGIRSTW]' ;;
15516 esac
15517
15518 # Transform an extracted symbol line into a proper C declaration.
15519 # Some systems (esp. on ia64) link data and code symbols differently,
15520 # so use this general approach.
15521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15522
15523 # Transform an extracted symbol line into symbol name and symbol address
15524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15525
15526 # Handle CRLF in mingw tool chain
15527 opt_cr=
15528 case $build_os in
15529 mingw*)
15530 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15531 ;;
15532 esac
15533
15534 # Try without a prefix underscore, then with it.
15535 for ac_symprfx in "" "_"; do
15536
15537 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15538 symxfrm="\\1 $ac_symprfx\\2 \\2"
15539
15540 # Write the raw and C identifiers.
15541 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15542 # Fake it for dumpbin and say T for any non-static function
15543 # and D for any global variable.
15544 # Also find C++ and __fastcall symbols from MSVC++,
15545 # which start with @ or ?.
15546 lt_cv_sys_global_symbol_pipe="$AWK '"\
15547 " {last_section=section; section=\$ 3};"\
15548 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15549 " \$ 0!~/External *\|/{next};"\
15550 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15551 " {if(hide[section]) next};"\
15552 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15553 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15554 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15555 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15556 " ' prfx=^$ac_symprfx"
15557 else
15558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15559 fi
15560
15561 # Check to see that the pipe works correctly.
15562 pipe_works=no
15563
15564 rm -f conftest*
15565 cat > conftest.$ac_ext <<_LT_EOF
15566 #ifdef __cplusplus
15567 extern "C" {
15568 #endif
15569 char nm_test_var;
15570 void nm_test_func(void);
15571 void nm_test_func(void){}
15572 #ifdef __cplusplus
15573 }
15574 #endif
15575 int main(){nm_test_var='a';nm_test_func();return(0);}
15576 _LT_EOF
15577
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; then
15583 # Now try to grab the symbols.
15584 nlist=conftest.nm
15585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && test -s "$nlist"; then
15590 # Try sorting and uniquifying the output.
15591 if sort "$nlist" | uniq > "$nlist"T; then
15592 mv -f "$nlist"T "$nlist"
15593 else
15594 rm -f "$nlist"T
15595 fi
15596
15597 # Make sure that we snagged all the symbols we need.
15598 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15599 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15600 cat <<_LT_EOF > conftest.$ac_ext
15601 #ifdef __cplusplus
15602 extern "C" {
15603 #endif
15604
15605 _LT_EOF
15606 # Now generate the symbol file.
15607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15608
15609 cat <<_LT_EOF >> conftest.$ac_ext
15610
15611 /* The mapping between symbol names and symbols. */
15612 const struct {
15613 const char *name;
15614 void *address;
15615 }
15616 lt__PROGRAM__LTX_preloaded_symbols[] =
15617 {
15618 { "@PROGRAM@", (void *) 0 },
15619 _LT_EOF
15620 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15621 cat <<\_LT_EOF >> conftest.$ac_ext
15622 {0, (void *) 0}
15623 };
15624
15625 /* This works around a problem in FreeBSD linker */
15626 #ifdef FREEBSD_WORKAROUND
15627 static const void *lt_preloaded_setup() {
15628 return lt__PROGRAM__LTX_preloaded_symbols;
15629 }
15630 #endif
15631
15632 #ifdef __cplusplus
15633 }
15634 #endif
15635 _LT_EOF
15636 # Now try linking the two files.
15637 mv conftest.$ac_objext conftstm.$ac_objext
15638 lt_save_LIBS="$LIBS"
15639 lt_save_CFLAGS="$CFLAGS"
15640 LIBS="conftstm.$ac_objext"
15641 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15643 (eval $ac_link) 2>&5
15644 ac_status=$?
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15647 pipe_works=yes
15648 fi
15649 LIBS="$lt_save_LIBS"
15650 CFLAGS="$lt_save_CFLAGS"
15651 else
15652 echo "cannot find nm_test_func in $nlist" >&5
15653 fi
15654 else
15655 echo "cannot find nm_test_var in $nlist" >&5
15656 fi
15657 else
15658 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15659 fi
15660 else
15661 echo "$progname: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 fi
15664 rm -f conftest* conftst*
15665
15666 # Do not use the global_symbol_pipe unless it works.
15667 if test "$pipe_works" = yes; then
15668 break
15669 else
15670 lt_cv_sys_global_symbol_pipe=
15671 fi
15672 done
15673
15674 fi
15675
15676 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15677 lt_cv_sys_global_symbol_to_cdecl=
15678 fi
15679 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15680 echo "$as_me:$LINENO: result: failed" >&5
15681 echo "${ECHO_T}failed" >&6
15682 else
15683 echo "$as_me:$LINENO: result: ok" >&5
15684 echo "${ECHO_T}ok" >&6
15685 fi
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15704 if test "${enable_libtool_lock+set}" = set; then
15705 enableval="$enable_libtool_lock"
15706
15707 fi;
15708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15709
15710 # Some flags need to be propagated to the compiler or linker for good
15711 # libtool support.
15712 case $host in
15713 ia64-*-hpux*)
15714 # Find out which ABI we are using.
15715 echo 'int i;' > conftest.$ac_ext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717 (eval $ac_compile) 2>&5
15718 ac_status=$?
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; then
15721 case `/usr/bin/file conftest.$ac_objext` in
15722 *ELF-32*)
15723 HPUX_IA64_MODE="32"
15724 ;;
15725 *ELF-64*)
15726 HPUX_IA64_MODE="64"
15727 ;;
15728 esac
15729 fi
15730 rm -rf conftest*
15731 ;;
15732 *-*-irix6*)
15733 # Find out which ABI we are using.
15734 echo '#line 15734 "configure"' > conftest.$ac_ext
15735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15736 (eval $ac_compile) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; then
15740 if test "$lt_cv_prog_gnu_ld" = yes; then
15741 case `/usr/bin/file conftest.$ac_objext` in
15742 *32-bit*)
15743 LD="${LD-ld} -melf32bsmip"
15744 ;;
15745 *N32*)
15746 LD="${LD-ld} -melf32bmipn32"
15747 ;;
15748 *64-bit*)
15749 LD="${LD-ld} -melf64bmip"
15750 ;;
15751 esac
15752 else
15753 case `/usr/bin/file conftest.$ac_objext` in
15754 *32-bit*)
15755 LD="${LD-ld} -32"
15756 ;;
15757 *N32*)
15758 LD="${LD-ld} -n32"
15759 ;;
15760 *64-bit*)
15761 LD="${LD-ld} -64"
15762 ;;
15763 esac
15764 fi
15765 fi
15766 rm -rf conftest*
15767 ;;
15768
15769 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15770 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15771 # Find out which ABI we are using.
15772 echo 'int i;' > conftest.$ac_ext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; then
15778 case `/usr/bin/file conftest.o` in
15779 *32-bit*)
15780 case $host in
15781 x86_64-*kfreebsd*-gnu)
15782 LD="${LD-ld} -m elf_i386_fbsd"
15783 ;;
15784 x86_64-*linux*)
15785 LD="${LD-ld} -m elf_i386"
15786 ;;
15787 ppc64-*linux*|powerpc64-*linux*)
15788 LD="${LD-ld} -m elf32ppclinux"
15789 ;;
15790 s390x-*linux*)
15791 LD="${LD-ld} -m elf_s390"
15792 ;;
15793 sparc64-*linux*)
15794 LD="${LD-ld} -m elf32_sparc"
15795 ;;
15796 esac
15797 ;;
15798 *64-bit*)
15799 case $host in
15800 x86_64-*kfreebsd*-gnu)
15801 LD="${LD-ld} -m elf_x86_64_fbsd"
15802 ;;
15803 x86_64-*linux*)
15804 LD="${LD-ld} -m elf_x86_64"
15805 ;;
15806 ppc*-*linux*|powerpc*-*linux*)
15807 LD="${LD-ld} -m elf64ppc"
15808 ;;
15809 s390*-*linux*|s390*-*tpf*)
15810 LD="${LD-ld} -m elf64_s390"
15811 ;;
15812 sparc*-*linux*)
15813 LD="${LD-ld} -m elf64_sparc"
15814 ;;
15815 esac
15816 ;;
15817 esac
15818 fi
15819 rm -rf conftest*
15820 ;;
15821
15822 *-*-sco3.2v5*)
15823 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15824 SAVE_CFLAGS="$CFLAGS"
15825 CFLAGS="$CFLAGS -belf"
15826 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15827 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15828 if test "${lt_cv_cc_needs_belf+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831 ac_ext=c
15832 ac_cpp='$CPP $CPPFLAGS'
15833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15836
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h. */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h. */
15843
15844 int
15845 main ()
15846 {
15847
15848 ;
15849 return 0;
15850 }
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15854 (eval $ac_link) 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -z "$ac_c_werror_flag"
15862 || test ! -s conftest.err'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 lt_cv_cc_needs_belf=yes
15875 else
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879 lt_cv_cc_needs_belf=no
15880 fi
15881 rm -f conftest.err conftest.$ac_objext \
15882 conftest$ac_exeext conftest.$ac_ext
15883 ac_ext=c
15884 ac_cpp='$CPP $CPPFLAGS'
15885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15888
15889 fi
15890 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15891 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15892 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15893 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15894 CFLAGS="$SAVE_CFLAGS"
15895 fi
15896 ;;
15897 sparc*-*solaris*)
15898 # Find out which ABI we are using.
15899 echo 'int i;' > conftest.$ac_ext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901 (eval $ac_compile) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; then
15905 case `/usr/bin/file conftest.o` in
15906 *64-bit*)
15907 case $lt_cv_prog_gnu_ld in
15908 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15909 *) LD="${LD-ld} -64" ;;
15910 esac
15911 ;;
15912 esac
15913 fi
15914 rm -rf conftest*
15915 ;;
15916 esac
15917
15918 need_locks="$enable_libtool_lock"
15919
15920
15921 for ac_header in dlfcn.h
15922 do
15923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15924 echo "$as_me:$LINENO: checking for $ac_header" >&5
15925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h. */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <$ac_header>
15936 _ACEOF
15937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15939 ac_status=$?
15940 grep -v '^ *+' conftest.er1 >conftest.err
15941 rm -f conftest.er1
15942 cat conftest.err >&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); } >/dev/null; then
15945 if test -s conftest.err; then
15946 ac_cpp_err=$ac_c_preproc_warn_flag
15947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15948 else
15949 ac_cpp_err=
15950 fi
15951 else
15952 ac_cpp_err=yes
15953 fi
15954 if test -z "$ac_cpp_err"; then
15955 eval "$as_ac_Header=yes"
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 eval "$as_ac_Header=no"
15961 fi
15962 rm -f conftest.err conftest.$ac_ext
15963 fi
15964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15967 cat >>confdefs.h <<_ACEOF
15968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15969 _ACEOF
15970
15971 fi
15972 done
15973
15974
15975
15976 # This can be used to rebuild libtool when needed
15977 LIBTOOL_DEPS="$ltmain"
15978
15979 # Always use our own libtool.
15980 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006 test -z "$LN_S" && LN_S="ln -s"
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021 if test -n "${ZSH_VERSION+set}" ; then
16022 setopt NO_GLOB_SUBST
16023 fi
16024
16025 echo "$as_me:$LINENO: checking for objdir" >&5
16026 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16027 if test "${lt_cv_objdir+set}" = set; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 else
16030 rm -f .libs 2>/dev/null
16031 mkdir .libs 2>/dev/null
16032 if test -d .libs; then
16033 lt_cv_objdir=.libs
16034 else
16035 # MS-DOS does not allow filenames that begin with a dot.
16036 lt_cv_objdir=_libs
16037 fi
16038 rmdir .libs 2>/dev/null
16039 fi
16040 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16041 echo "${ECHO_T}$lt_cv_objdir" >&6
16042 objdir=$lt_cv_objdir
16043
16044
16045
16046
16047
16048 cat >>confdefs.h <<_ACEOF
16049 #define LT_OBJDIR "$lt_cv_objdir/"
16050 _ACEOF
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068 case $host_os in
16069 aix3*)
16070 # AIX sometimes has problems with the GCC collect2 program. For some
16071 # reason, if we set the COLLECT_NAMES environment variable, the problems
16072 # vanish in a puff of smoke.
16073 if test "X${COLLECT_NAMES+set}" != Xset; then
16074 COLLECT_NAMES=
16075 export COLLECT_NAMES
16076 fi
16077 ;;
16078 esac
16079
16080 # Sed substitution that helps us do robust quoting. It backslashifies
16081 # metacharacters that are still active within double-quoted strings.
16082 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16083
16084 # Same as above, but do not quote variable references.
16085 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16086
16087 # Sed substitution to delay expansion of an escaped shell variable in a
16088 # double_quote_subst'ed string.
16089 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16090
16091 # Sed substitution to delay expansion of an escaped single quote.
16092 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16093
16094 # Sed substitution to avoid accidental globbing in evaled expressions
16095 no_glob_subst='s/\*/\\\*/g'
16096
16097 # Global variables:
16098 ofile=libtool
16099 can_build_shared=yes
16100
16101 # All known linkers require a `.a' archive for static linking (except MSVC,
16102 # which needs '.lib').
16103 libext=a
16104
16105 with_gnu_ld="$lt_cv_prog_gnu_ld"
16106
16107 old_CC="$CC"
16108 old_CFLAGS="$CFLAGS"
16109
16110 # Set sane defaults for various variables
16111 test -z "$CC" && CC=cc
16112 test -z "$LTCC" && LTCC=$CC
16113 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16114 test -z "$LD" && LD=ld
16115 test -z "$ac_objext" && ac_objext=o
16116
16117 for cc_temp in $compiler""; do
16118 case $cc_temp in
16119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16121 \-*) ;;
16122 *) break;;
16123 esac
16124 done
16125 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16126
16127
16128 # Only perform the check for file, if the check method requires it
16129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16130 case $deplibs_check_method in
16131 file_magic*)
16132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16133 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16134 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16135 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138 case $MAGIC_CMD in
16139 [\\/*] | ?:[\\/]*)
16140 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16141 ;;
16142 *)
16143 lt_save_MAGIC_CMD="$MAGIC_CMD"
16144 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16145 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16146 for ac_dir in $ac_dummy; do
16147 IFS="$lt_save_ifs"
16148 test -z "$ac_dir" && ac_dir=.
16149 if test -f $ac_dir/${ac_tool_prefix}file; then
16150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16151 if test -n "$file_magic_test_file"; then
16152 case $deplibs_check_method in
16153 "file_magic "*)
16154 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16157 $EGREP "$file_magic_regex" > /dev/null; then
16158 :
16159 else
16160 cat <<_LT_EOF 1>&2
16161
16162 *** Warning: the command libtool uses to detect shared libraries,
16163 *** $file_magic_cmd, produces output that libtool cannot recognize.
16164 *** The result is that libtool may fail to recognize shared libraries
16165 *** as such. This will affect the creation of libtool libraries that
16166 *** depend on shared libraries, but programs linked with such libtool
16167 *** libraries will work regardless of this problem. Nevertheless, you
16168 *** may want to report the problem to your system manager and/or to
16169 *** bug-libtool@gnu.org
16170
16171 _LT_EOF
16172 fi ;;
16173 esac
16174 fi
16175 break
16176 fi
16177 done
16178 IFS="$lt_save_ifs"
16179 MAGIC_CMD="$lt_save_MAGIC_CMD"
16180 ;;
16181 esac
16182 fi
16183
16184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16185 if test -n "$MAGIC_CMD"; then
16186 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16187 echo "${ECHO_T}$MAGIC_CMD" >&6
16188 else
16189 echo "$as_me:$LINENO: result: no" >&5
16190 echo "${ECHO_T}no" >&6
16191 fi
16192
16193
16194
16195
16196
16197 if test -z "$lt_cv_path_MAGIC_CMD"; then
16198 if test -n "$ac_tool_prefix"; then
16199 echo "$as_me:$LINENO: checking for file" >&5
16200 echo $ECHO_N "checking for file... $ECHO_C" >&6
16201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204 case $MAGIC_CMD in
16205 [\\/*] | ?:[\\/]*)
16206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16207 ;;
16208 *)
16209 lt_save_MAGIC_CMD="$MAGIC_CMD"
16210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16212 for ac_dir in $ac_dummy; do
16213 IFS="$lt_save_ifs"
16214 test -z "$ac_dir" && ac_dir=.
16215 if test -f $ac_dir/file; then
16216 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16217 if test -n "$file_magic_test_file"; then
16218 case $deplibs_check_method in
16219 "file_magic "*)
16220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16223 $EGREP "$file_magic_regex" > /dev/null; then
16224 :
16225 else
16226 cat <<_LT_EOF 1>&2
16227
16228 *** Warning: the command libtool uses to detect shared libraries,
16229 *** $file_magic_cmd, produces output that libtool cannot recognize.
16230 *** The result is that libtool may fail to recognize shared libraries
16231 *** as such. This will affect the creation of libtool libraries that
16232 *** depend on shared libraries, but programs linked with such libtool
16233 *** libraries will work regardless of this problem. Nevertheless, you
16234 *** may want to report the problem to your system manager and/or to
16235 *** bug-libtool@gnu.org
16236
16237 _LT_EOF
16238 fi ;;
16239 esac
16240 fi
16241 break
16242 fi
16243 done
16244 IFS="$lt_save_ifs"
16245 MAGIC_CMD="$lt_save_MAGIC_CMD"
16246 ;;
16247 esac
16248 fi
16249
16250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16251 if test -n "$MAGIC_CMD"; then
16252 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16253 echo "${ECHO_T}$MAGIC_CMD" >&6
16254 else
16255 echo "$as_me:$LINENO: result: no" >&5
16256 echo "${ECHO_T}no" >&6
16257 fi
16258
16259
16260 else
16261 MAGIC_CMD=:
16262 fi
16263 fi
16264
16265 fi
16266 ;;
16267 esac
16268
16269 # Use C for the default configuration in the libtool script
16270
16271 lt_save_CC="$CC"
16272 ac_ext=c
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278
16279 # Source file extension for C test sources.
16280 ac_ext=c
16281
16282 # Object file extension for compiled C test sources.
16283 objext=o
16284 objext=$objext
16285
16286 # Code to be used in simple compile tests
16287 lt_simple_compile_test_code="int some_variable = 0;"
16288
16289 # Code to be used in simple link tests
16290 lt_simple_link_test_code='int main(){return(0);}'
16291
16292
16293
16294
16295
16296
16297
16298 # If no C compiler was specified, use CC.
16299 LTCC=${LTCC-"$CC"}
16300
16301 # If no C compiler flags were specified, use CFLAGS.
16302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16303
16304 # Allow CC to be a program name with arguments.
16305 compiler=$CC
16306
16307 # Save the default compiler, since it gets overwritten when the other
16308 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16309 compiler_DEFAULT=$CC
16310
16311 # save warnings/boilerplate of simple test code
16312 ac_outfile=conftest.$ac_objext
16313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16315 _lt_compiler_boilerplate=`cat conftest.err`
16316 $RM conftest*
16317
16318 ac_outfile=conftest.$ac_objext
16319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16321 _lt_linker_boilerplate=`cat conftest.err`
16322 $RM conftest*
16323
16324
16325 ## CAVEAT EMPTOR:
16326 ## There is no encapsulation within the following macros, do not change
16327 ## the running order or otherwise move them around unless you know exactly
16328 ## what you are doing...
16329 if test -n "$compiler"; then
16330
16331 lt_prog_compiler_no_builtin_flag=
16332
16333 if test "$GCC" = yes; then
16334 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16335
16336 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16337 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16338 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 else
16341 lt_cv_prog_compiler_rtti_exceptions=no
16342 ac_outfile=conftest.$ac_objext
16343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16344 lt_compiler_flag="-fno-rtti -fno-exceptions"
16345 # Insert the option either (1) after the last *FLAGS variable, or
16346 # (2) before a word containing "conftest.", or (3) at the end.
16347 # Note that $ac_compile itself does not contain backslashes and begins
16348 # with a dollar sign (not a hyphen), so the echo should work correctly.
16349 # The option is referenced via a variable to avoid confusing sed.
16350 lt_compile=`echo "$ac_compile" | $SED \
16351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353 -e 's:$: $lt_compiler_flag:'`
16354 (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355 (eval "$lt_compile" 2>conftest.err)
16356 ac_status=$?
16357 cat conftest.err >&5
16358 echo "$as_me:16358: \$? = $ac_status" >&5
16359 if (exit $ac_status) && test -s "$ac_outfile"; then
16360 # The compiler can only warn and ignore the option if not recognized
16361 # So say no if there are warnings other than the usual output.
16362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16365 lt_cv_prog_compiler_rtti_exceptions=yes
16366 fi
16367 fi
16368 $RM conftest*
16369
16370 fi
16371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16372 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16373
16374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16375 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16376 else
16377 :
16378 fi
16379
16380 fi
16381
16382
16383
16384
16385
16386
16387 lt_prog_compiler_wl=
16388 lt_prog_compiler_pic=
16389 lt_prog_compiler_static=
16390
16391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16393
16394 if test "$GCC" = yes; then
16395 lt_prog_compiler_wl='-Wl,'
16396 lt_prog_compiler_static='-static'
16397
16398 case $host_os in
16399 aix*)
16400 # All AIX code is PIC.
16401 if test "$host_cpu" = ia64; then
16402 # AIX 5 now supports IA64 processor
16403 lt_prog_compiler_static='-Bstatic'
16404 fi
16405 ;;
16406
16407 amigaos*)
16408 if test "$host_cpu" = m68k; then
16409 # FIXME: we need at least 68020 code to build shared libraries, but
16410 # adding the `-m68020' flag to GCC prevents building anything better,
16411 # like `-m68040'.
16412 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16413 fi
16414 ;;
16415
16416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16417 # PIC is the default for these OSes.
16418 ;;
16419
16420 mingw* | cygwin* | pw32* | os2*)
16421 # This hack is so that the source file can tell whether it is being
16422 # built for inclusion in a dll (and should export symbols for example).
16423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16424 # (--disable-auto-import) libraries
16425 lt_prog_compiler_pic='-DDLL_EXPORT'
16426 ;;
16427
16428 darwin* | rhapsody*)
16429 # PIC is the default on this platform
16430 # Common symbols not allowed in MH_DYLIB files
16431 lt_prog_compiler_pic='-fno-common'
16432 ;;
16433
16434 hpux*)
16435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16436 # not for PA HP-UX.
16437 case $host_cpu in
16438 hppa*64*|ia64*)
16439 # +Z the default
16440 ;;
16441 *)
16442 lt_prog_compiler_pic='-fPIC'
16443 ;;
16444 esac
16445 ;;
16446
16447 interix[3-9]*)
16448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16449 # Instead, we relocate shared libraries at runtime.
16450 ;;
16451
16452 msdosdjgpp*)
16453 # Just because we use GCC doesn't mean we suddenly get shared libraries
16454 # on systems that don't support them.
16455 lt_prog_compiler_can_build_shared=no
16456 enable_shared=no
16457 ;;
16458
16459 *nto* | *qnx*)
16460 # QNX uses GNU C++, but need to define -shared option too, otherwise
16461 # it will coredump.
16462 lt_prog_compiler_pic='-fPIC -shared'
16463 ;;
16464
16465 sysv4*MP*)
16466 if test -d /usr/nec; then
16467 lt_prog_compiler_pic=-Kconform_pic
16468 fi
16469 ;;
16470
16471 *)
16472 lt_prog_compiler_pic='-fPIC'
16473 ;;
16474 esac
16475 else
16476 # PORTME Check for flag to pass linker flags through the system compiler.
16477 case $host_os in
16478 aix*)
16479 lt_prog_compiler_wl='-Wl,'
16480 if test "$host_cpu" = ia64; then
16481 # AIX 5 now supports IA64 processor
16482 lt_prog_compiler_static='-Bstatic'
16483 else
16484 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16485 fi
16486 ;;
16487 darwin*)
16488 # PIC is the default on this platform
16489 # Common symbols not allowed in MH_DYLIB files
16490 case $cc_basename in
16491 xlc*)
16492 lt_prog_compiler_pic='-qnocommon'
16493 lt_prog_compiler_wl='-Wl,'
16494 ;;
16495 esac
16496 ;;
16497
16498 mingw* | cygwin* | pw32* | os2*)
16499 # This hack is so that the source file can tell whether it is being
16500 # built for inclusion in a dll (and should export symbols for example).
16501 lt_prog_compiler_pic='-DDLL_EXPORT'
16502 ;;
16503
16504 hpux9* | hpux10* | hpux11*)
16505 lt_prog_compiler_wl='-Wl,'
16506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16507 # not for PA HP-UX.
16508 case $host_cpu in
16509 hppa*64*|ia64*)
16510 # +Z the default
16511 ;;
16512 *)
16513 lt_prog_compiler_pic='+Z'
16514 ;;
16515 esac
16516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16517 lt_prog_compiler_static='${wl}-a ${wl}archive'
16518 ;;
16519
16520 irix5* | irix6* | nonstopux*)
16521 lt_prog_compiler_wl='-Wl,'
16522 # PIC (with -KPIC) is the default.
16523 lt_prog_compiler_static='-non_shared'
16524 ;;
16525
16526 linux* | k*bsd*-gnu)
16527 case $cc_basename in
16528 icc* | ecc*)
16529 lt_prog_compiler_wl='-Wl,'
16530 lt_prog_compiler_pic='-KPIC'
16531 lt_prog_compiler_static='-static'
16532 ;;
16533 pgcc* | pgf77* | pgf90* | pgf95*)
16534 # Portland Group compilers (*not* the Pentium gcc compiler,
16535 # which looks to be a dead project)
16536 lt_prog_compiler_wl='-Wl,'
16537 lt_prog_compiler_pic='-fpic'
16538 lt_prog_compiler_static='-Bstatic'
16539 ;;
16540 ccc*)
16541 lt_prog_compiler_wl='-Wl,'
16542 # All Alpha code is PIC.
16543 lt_prog_compiler_static='-non_shared'
16544 ;;
16545 *)
16546 case `$CC -V 2>&1 | sed 5q` in
16547 *Sun\ C*)
16548 # Sun C 5.9
16549 lt_prog_compiler_pic='-KPIC'
16550 lt_prog_compiler_static='-Bstatic'
16551 lt_prog_compiler_wl='-Wl,'
16552 ;;
16553 *Sun\ F*)
16554 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16555 lt_prog_compiler_pic='-KPIC'
16556 lt_prog_compiler_static='-Bstatic'
16557 lt_prog_compiler_wl=''
16558 ;;
16559 esac
16560 ;;
16561 esac
16562 ;;
16563
16564 newsos6)
16565 lt_prog_compiler_pic='-KPIC'
16566 lt_prog_compiler_static='-Bstatic'
16567 ;;
16568
16569 *nto* | *qnx*)
16570 # QNX uses GNU C++, but need to define -shared option too, otherwise
16571 # it will coredump.
16572 lt_prog_compiler_pic='-fPIC -shared'
16573 ;;
16574
16575 osf3* | osf4* | osf5*)
16576 lt_prog_compiler_wl='-Wl,'
16577 # All OSF/1 code is PIC.
16578 lt_prog_compiler_static='-non_shared'
16579 ;;
16580
16581 rdos*)
16582 lt_prog_compiler_static='-non_shared'
16583 ;;
16584
16585 solaris*)
16586 lt_prog_compiler_pic='-KPIC'
16587 lt_prog_compiler_static='-Bstatic'
16588 case $cc_basename in
16589 f77* | f90* | f95*)
16590 lt_prog_compiler_wl='-Qoption ld ';;
16591 *)
16592 lt_prog_compiler_wl='-Wl,';;
16593 esac
16594 ;;
16595
16596 sunos4*)
16597 lt_prog_compiler_wl='-Qoption ld '
16598 lt_prog_compiler_pic='-PIC'
16599 lt_prog_compiler_static='-Bstatic'
16600 ;;
16601
16602 sysv4 | sysv4.2uw2* | sysv4.3*)
16603 lt_prog_compiler_wl='-Wl,'
16604 lt_prog_compiler_pic='-KPIC'
16605 lt_prog_compiler_static='-Bstatic'
16606 ;;
16607
16608 sysv4*MP*)
16609 if test -d /usr/nec ;then
16610 lt_prog_compiler_pic='-Kconform_pic'
16611 lt_prog_compiler_static='-Bstatic'
16612 fi
16613 ;;
16614
16615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16616 lt_prog_compiler_wl='-Wl,'
16617 lt_prog_compiler_pic='-KPIC'
16618 lt_prog_compiler_static='-Bstatic'
16619 ;;
16620
16621 unicos*)
16622 lt_prog_compiler_wl='-Wl,'
16623 lt_prog_compiler_can_build_shared=no
16624 ;;
16625
16626 uts4*)
16627 lt_prog_compiler_pic='-pic'
16628 lt_prog_compiler_static='-Bstatic'
16629 ;;
16630
16631 *)
16632 lt_prog_compiler_can_build_shared=no
16633 ;;
16634 esac
16635 fi
16636
16637 case $host_os in
16638 # For platforms which do not support PIC, -DPIC is meaningless:
16639 *djgpp*)
16640 lt_prog_compiler_pic=
16641 ;;
16642 *)
16643 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16644 ;;
16645 esac
16646 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16647 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16648
16649
16650
16651
16652
16653
16654 #
16655 # Check to make sure the PIC flag actually works.
16656 #
16657 if test -n "$lt_prog_compiler_pic"; then
16658 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16660 if test "${lt_prog_compiler_pic_works+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663 lt_prog_compiler_pic_works=no
16664 ac_outfile=conftest.$ac_objext
16665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16667 # Insert the option either (1) after the last *FLAGS variable, or
16668 # (2) before a word containing "conftest.", or (3) at the end.
16669 # Note that $ac_compile itself does not contain backslashes and begins
16670 # with a dollar sign (not a hyphen), so the echo should work correctly.
16671 # The option is referenced via a variable to avoid confusing sed.
16672 lt_compile=`echo "$ac_compile" | $SED \
16673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16675 -e 's:$: $lt_compiler_flag:'`
16676 (eval echo "\"\$as_me:16676: $lt_compile\"" >&5)
16677 (eval "$lt_compile" 2>conftest.err)
16678 ac_status=$?
16679 cat conftest.err >&5
16680 echo "$as_me:16680: \$? = $ac_status" >&5
16681 if (exit $ac_status) && test -s "$ac_outfile"; then
16682 # The compiler can only warn and ignore the option if not recognized
16683 # So say no if there are warnings other than the usual output.
16684 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16687 lt_prog_compiler_pic_works=yes
16688 fi
16689 fi
16690 $RM conftest*
16691
16692 fi
16693 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16694 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16695
16696 if test x"$lt_prog_compiler_pic_works" = xyes; then
16697 case $lt_prog_compiler_pic in
16698 "" | " "*) ;;
16699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16700 esac
16701 else
16702 lt_prog_compiler_pic=
16703 lt_prog_compiler_can_build_shared=no
16704 fi
16705
16706 fi
16707
16708
16709
16710
16711
16712
16713 #
16714 # Check to make sure the static flag actually works.
16715 #
16716 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16717 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16718 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16719 if test "${lt_prog_compiler_static_works+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 lt_prog_compiler_static_works=no
16723 save_LDFLAGS="$LDFLAGS"
16724 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16725 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16726 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16727 # The linker can only warn and ignore the option if not recognized
16728 # So say no if there are warnings
16729 if test -s conftest.err; then
16730 # Append any errors to the config.log.
16731 cat conftest.err 1>&5
16732 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16734 if diff conftest.exp conftest.er2 >/dev/null; then
16735 lt_prog_compiler_static_works=yes
16736 fi
16737 else
16738 lt_prog_compiler_static_works=yes
16739 fi
16740 fi
16741 $RM conftest*
16742 LDFLAGS="$save_LDFLAGS"
16743
16744 fi
16745 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16746 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16747
16748 if test x"$lt_prog_compiler_static_works" = xyes; then
16749 :
16750 else
16751 lt_prog_compiler_static=
16752 fi
16753
16754
16755
16756
16757
16758
16759
16760 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16761 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16762 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765 lt_cv_prog_compiler_c_o=no
16766 $RM -r conftest 2>/dev/null
16767 mkdir conftest
16768 cd conftest
16769 mkdir out
16770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16771
16772 lt_compiler_flag="-o out/conftest2.$ac_objext"
16773 # Insert the option either (1) after the last *FLAGS variable, or
16774 # (2) before a word containing "conftest.", or (3) at the end.
16775 # Note that $ac_compile itself does not contain backslashes and begins
16776 # with a dollar sign (not a hyphen), so the echo should work correctly.
16777 lt_compile=`echo "$ac_compile" | $SED \
16778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16780 -e 's:$: $lt_compiler_flag:'`
16781 (eval echo "\"\$as_me:16781: $lt_compile\"" >&5)
16782 (eval "$lt_compile" 2>out/conftest.err)
16783 ac_status=$?
16784 cat out/conftest.err >&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16787 then
16788 # The compiler can only warn and ignore the option if not recognized
16789 # So say no if there are warnings
16790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16793 lt_cv_prog_compiler_c_o=yes
16794 fi
16795 fi
16796 chmod u+w . 2>&5
16797 $RM conftest*
16798 # SGI C++ compiler will create directory out/ii_files/ for
16799 # template instantiation
16800 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16801 $RM out/* && rmdir out
16802 cd ..
16803 $RM -r conftest
16804 $RM conftest*
16805
16806 fi
16807 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16808 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16809
16810
16811
16812
16813
16814
16815 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16816 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16817 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820 lt_cv_prog_compiler_c_o=no
16821 $RM -r conftest 2>/dev/null
16822 mkdir conftest
16823 cd conftest
16824 mkdir out
16825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16826
16827 lt_compiler_flag="-o out/conftest2.$ac_objext"
16828 # Insert the option either (1) after the last *FLAGS variable, or
16829 # (2) before a word containing "conftest.", or (3) at the end.
16830 # Note that $ac_compile itself does not contain backslashes and begins
16831 # with a dollar sign (not a hyphen), so the echo should work correctly.
16832 lt_compile=`echo "$ac_compile" | $SED \
16833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16835 -e 's:$: $lt_compiler_flag:'`
16836 (eval echo "\"\$as_me:16836: $lt_compile\"" >&5)
16837 (eval "$lt_compile" 2>out/conftest.err)
16838 ac_status=$?
16839 cat out/conftest.err >&5
16840 echo "$as_me:16840: \$? = $ac_status" >&5
16841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16842 then
16843 # The compiler can only warn and ignore the option if not recognized
16844 # So say no if there are warnings
16845 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16848 lt_cv_prog_compiler_c_o=yes
16849 fi
16850 fi
16851 chmod u+w . 2>&5
16852 $RM conftest*
16853 # SGI C++ compiler will create directory out/ii_files/ for
16854 # template instantiation
16855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16856 $RM out/* && rmdir out
16857 cd ..
16858 $RM -r conftest
16859 $RM conftest*
16860
16861 fi
16862 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16863 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16864
16865
16866
16867
16868 hard_links="nottested"
16869 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16870 # do not overwrite the value of need_locks provided by the user
16871 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16873 hard_links=yes
16874 $RM conftest*
16875 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876 touch conftest.a
16877 ln conftest.a conftest.b 2>&5 || hard_links=no
16878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879 echo "$as_me:$LINENO: result: $hard_links" >&5
16880 echo "${ECHO_T}$hard_links" >&6
16881 if test "$hard_links" = no; then
16882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884 need_locks=warn
16885 fi
16886 else
16887 need_locks=no
16888 fi
16889
16890
16891
16892
16893
16894
16895 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16896 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16897
16898 runpath_var=
16899 allow_undefined_flag=
16900 always_export_symbols=no
16901 archive_cmds=
16902 archive_expsym_cmds=
16903 compiler_needs_object=no
16904 enable_shared_with_static_runtimes=no
16905 export_dynamic_flag_spec=
16906 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16907 hardcode_automatic=no
16908 hardcode_direct=no
16909 hardcode_direct_absolute=no
16910 hardcode_libdir_flag_spec=
16911 hardcode_libdir_flag_spec_ld=
16912 hardcode_libdir_separator=
16913 hardcode_minus_L=no
16914 hardcode_shlibpath_var=unsupported
16915 inherit_rpath=no
16916 link_all_deplibs=unknown
16917 module_cmds=
16918 module_expsym_cmds=
16919 old_archive_from_new_cmds=
16920 old_archive_from_expsyms_cmds=
16921 thread_safe_flag_spec=
16922 whole_archive_flag_spec=
16923 # include_expsyms should be a list of space-separated symbols to be *always*
16924 # included in the symbol list
16925 include_expsyms=
16926 # exclude_expsyms can be an extended regexp of symbols to exclude
16927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16929 # as well as any symbol that contains `d'.
16930 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16932 # platforms (ab)use it in PIC code, but their linkers get confused if
16933 # the symbol is explicitly referenced. Since portable code cannot
16934 # rely on this symbol name, it's probably fine to never include it in
16935 # preloaded symbol tables.
16936 extract_expsyms_cmds=
16937
16938 case $host_os in
16939 cygwin* | mingw* | pw32*)
16940 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16941 # When not using gcc, we currently assume that we are using
16942 # Microsoft Visual C++.
16943 if test "$GCC" != yes; then
16944 with_gnu_ld=no
16945 fi
16946 ;;
16947 interix*)
16948 # we just hope/assume this is gcc and not c89 (= MSVC++)
16949 with_gnu_ld=yes
16950 ;;
16951 openbsd*)
16952 with_gnu_ld=no
16953 ;;
16954 esac
16955
16956 ld_shlibs=yes
16957 if test "$with_gnu_ld" = yes; then
16958 # If archive_cmds runs LD, not CC, wlarc should be empty
16959 wlarc='${wl}'
16960
16961 # Set some defaults for GNU ld with shared library support. These
16962 # are reset later if shared libraries are not supported. Putting them
16963 # here allows them to be overridden if necessary.
16964 runpath_var=LD_RUN_PATH
16965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16966 export_dynamic_flag_spec='${wl}--export-dynamic'
16967 # ancient GNU ld didn't support --whole-archive et. al.
16968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16969 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16970 else
16971 whole_archive_flag_spec=
16972 fi
16973 supports_anon_versioning=no
16974 case `$LD -v 2>&1` in
16975 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16976 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16977 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16978 *\ 2.11.*) ;; # other 2.11 versions
16979 *) supports_anon_versioning=yes ;;
16980 esac
16981
16982 # See if GNU ld supports shared libraries.
16983 case $host_os in
16984 aix[3-9]*)
16985 # On AIX/PPC, the GNU linker is very broken
16986 if test "$host_cpu" != ia64; then
16987 ld_shlibs=no
16988 cat <<_LT_EOF 1>&2
16989
16990 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16991 *** to be unable to reliably create shared libraries on AIX.
16992 *** Therefore, libtool is disabling shared libraries support. If you
16993 *** really care for shared libraries, you may want to modify your PATH
16994 *** so that a non-GNU linker is found, and then restart.
16995
16996 _LT_EOF
16997 fi
16998 ;;
16999
17000 amigaos*)
17001 if test "$host_cpu" = m68k; then
17002 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)'
17003 hardcode_libdir_flag_spec='-L$libdir'
17004 hardcode_minus_L=yes
17005 fi
17006
17007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17008 # that the semantics of dynamic libraries on AmigaOS, at least up
17009 # to version 4, is to share data among multiple programs linked
17010 # with the same dynamic library. Since this doesn't match the
17011 # behavior of shared libraries on other platforms, we can't use
17012 # them.
17013 ld_shlibs=no
17014 ;;
17015
17016 beos*)
17017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17018 allow_undefined_flag=unsupported
17019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17020 # support --undefined. This deserves some investigation. FIXME
17021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 else
17023 ld_shlibs=no
17024 fi
17025 ;;
17026
17027 cygwin* | mingw* | pw32*)
17028 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17029 # as there is no search path for DLLs.
17030 hardcode_libdir_flag_spec='-L$libdir'
17031 allow_undefined_flag=unsupported
17032 always_export_symbols=no
17033 enable_shared_with_static_runtimes=yes
17034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17035
17036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17038 # If the export-symbols file already is a .def file (1st line
17039 # is EXPORTS), use it as is; otherwise, prepend...
17040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17041 cp $export_symbols $output_objdir/$soname.def;
17042 else
17043 echo EXPORTS > $output_objdir/$soname.def;
17044 cat $export_symbols >> $output_objdir/$soname.def;
17045 fi~
17046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17047 else
17048 ld_shlibs=no
17049 fi
17050 ;;
17051
17052 interix[3-9]*)
17053 hardcode_direct=no
17054 hardcode_shlibpath_var=no
17055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17056 export_dynamic_flag_spec='${wl}-E'
17057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17058 # Instead, shared libraries are loaded at an image base (0x10000000 by
17059 # default) and relocated if they conflict, which is a slow very memory
17060 # consuming and fragmenting process. To avoid this, we pick a random,
17061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17063 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17064 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'
17065 ;;
17066
17067 gnu* | linux* | tpf* | k*bsd*-gnu)
17068 tmp_diet=no
17069 if test "$host_os" = linux-dietlibc; then
17070 case $cc_basename in
17071 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17072 esac
17073 fi
17074 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17075 && test "$tmp_diet" = no
17076 then
17077 tmp_addflag=
17078 case $cc_basename,$host_cpu in
17079 pgcc*) # Portland Group C compiler
17080 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'
17081 tmp_addflag=' $pic_flag'
17082 ;;
17083 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17084 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'
17085 tmp_addflag=' $pic_flag -Mnomain' ;;
17086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17087 tmp_addflag=' -i_dynamic' ;;
17088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17089 tmp_addflag=' -i_dynamic -nofor_main' ;;
17090 ifc* | ifort*) # Intel Fortran compiler
17091 tmp_addflag=' -nofor_main' ;;
17092 esac
17093 case `$CC -V 2>&1 | sed 5q` in
17094 *Sun\ C*) # Sun C 5.9
17095 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'
17096 compiler_needs_object=yes
17097 tmp_sharedflag='-G' ;;
17098 *Sun\ F*) # Sun Fortran 8.3
17099 tmp_sharedflag='-G' ;;
17100 *)
17101 tmp_sharedflag='-shared' ;;
17102 esac
17103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17104
17105 if test "x$supports_anon_versioning" = xyes; then
17106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17108 echo "local: *; };" >> $output_objdir/$libname.ver~
17109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17110 fi
17111 else
17112 ld_shlibs=no
17113 fi
17114 ;;
17115
17116 netbsd*)
17117 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17118 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17119 wlarc=
17120 else
17121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17123 fi
17124 ;;
17125
17126 solaris*)
17127 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17128 ld_shlibs=no
17129 cat <<_LT_EOF 1>&2
17130
17131 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17132 *** create shared libraries on Solaris systems. Therefore, libtool
17133 *** is disabling shared libraries support. We urge you to upgrade GNU
17134 *** binutils to release 2.9.1 or newer. Another option is to modify
17135 *** your PATH or compiler configuration so that the native linker is
17136 *** used, and then restart.
17137
17138 _LT_EOF
17139 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17142 else
17143 ld_shlibs=no
17144 fi
17145 ;;
17146
17147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17148 case `$LD -v 2>&1` in
17149 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17150 ld_shlibs=no
17151 cat <<_LT_EOF 1>&2
17152
17153 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17154 *** reliably create shared libraries on SCO systems. Therefore, libtool
17155 *** is disabling shared libraries support. We urge you to upgrade GNU
17156 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17157 *** your PATH or compiler configuration so that the native linker is
17158 *** used, and then restart.
17159
17160 _LT_EOF
17161 ;;
17162 *)
17163 # For security reasons, it is highly recommended that you always
17164 # use absolute paths for naming shared libraries, and exclude the
17165 # DT_RUNPATH tag from executables and libraries. But doing so
17166 # requires that you compile everything twice, which is a pain.
17167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17171 else
17172 ld_shlibs=no
17173 fi
17174 ;;
17175 esac
17176 ;;
17177
17178 sunos4*)
17179 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17180 wlarc=
17181 hardcode_direct=yes
17182 hardcode_shlibpath_var=no
17183 ;;
17184
17185 *)
17186 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17189 else
17190 ld_shlibs=no
17191 fi
17192 ;;
17193 esac
17194
17195 if test "$ld_shlibs" = no; then
17196 runpath_var=
17197 hardcode_libdir_flag_spec=
17198 export_dynamic_flag_spec=
17199 whole_archive_flag_spec=
17200 fi
17201 else
17202 # PORTME fill in a description of your system's linker (not GNU ld)
17203 case $host_os in
17204 aix3*)
17205 allow_undefined_flag=unsupported
17206 always_export_symbols=yes
17207 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'
17208 # Note: this linker hardcodes the directories in LIBPATH if there
17209 # are no directories specified by -L.
17210 hardcode_minus_L=yes
17211 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17212 # Neither direct hardcoding nor static linking is supported with a
17213 # broken collect2.
17214 hardcode_direct=unsupported
17215 fi
17216 ;;
17217
17218 aix[4-9]*)
17219 if test "$host_cpu" = ia64; then
17220 # On IA64, the linker does run time linking by default, so we don't
17221 # have to do anything special.
17222 aix_use_runtimelinking=no
17223 exp_sym_flag='-Bexport'
17224 no_entry_flag=""
17225 else
17226 # If we're using GNU nm, then we don't want the "-C" option.
17227 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17228 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17229 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'
17230 else
17231 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'
17232 fi
17233 aix_use_runtimelinking=no
17234
17235 # Test if we are trying to use run time linking or normal
17236 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17237 # need to do runtime linking.
17238 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17239 for ld_flag in $LDFLAGS; do
17240 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17241 aix_use_runtimelinking=yes
17242 break
17243 fi
17244 done
17245 ;;
17246 esac
17247
17248 exp_sym_flag='-bexport'
17249 no_entry_flag='-bnoentry'
17250 fi
17251
17252 # When large executables or shared objects are built, AIX ld can
17253 # have problems creating the table of contents. If linking a library
17254 # or program results in "error TOC overflow" add -mminimal-toc to
17255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17257
17258 archive_cmds=''
17259 hardcode_direct=yes
17260 hardcode_direct_absolute=yes
17261 hardcode_libdir_separator=':'
17262 link_all_deplibs=yes
17263 file_list_spec='${wl}-f,'
17264
17265 if test "$GCC" = yes; then
17266 case $host_os in aix4.[012]|aix4.[012].*)
17267 # We only want to do this on AIX 4.2 and lower, the check
17268 # below for broken collect2 doesn't work under 4.3+
17269 collect2name=`${CC} -print-prog-name=collect2`
17270 if test -f "$collect2name" &&
17271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17272 then
17273 # We have reworked collect2
17274 :
17275 else
17276 # We have old collect2
17277 hardcode_direct=unsupported
17278 # It fails to find uninstalled libraries when the uninstalled
17279 # path is not listed in the libpath. Setting hardcode_minus_L
17280 # to unsupported forces relinking
17281 hardcode_minus_L=yes
17282 hardcode_libdir_flag_spec='-L$libdir'
17283 hardcode_libdir_separator=
17284 fi
17285 ;;
17286 esac
17287 shared_flag='-shared'
17288 if test "$aix_use_runtimelinking" = yes; then
17289 shared_flag="$shared_flag "'${wl}-G'
17290 fi
17291 else
17292 # not using gcc
17293 if test "$host_cpu" = ia64; then
17294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17295 # chokes on -Wl,-G. The following line is correct:
17296 shared_flag='-G'
17297 else
17298 if test "$aix_use_runtimelinking" = yes; then
17299 shared_flag='${wl}-G'
17300 else
17301 shared_flag='${wl}-bM:SRE'
17302 fi
17303 fi
17304 fi
17305
17306 # It seems that -bexpall does not export symbols beginning with
17307 # underscore (_), so it is better to generate a list of symbols to export.
17308 always_export_symbols=yes
17309 if test "$aix_use_runtimelinking" = yes; then
17310 # Warning - without using the other runtime loading flags (-brtl),
17311 # -berok will link without error, but may produce a broken library.
17312 allow_undefined_flag='-berok'
17313 # Determine the default libpath from the value encoded in an
17314 # empty executable.
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321
17322 int
17323 main ()
17324 {
17325
17326 ;
17327 return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17332 (eval $ac_link) 2>conftest.er1
17333 ac_status=$?
17334 grep -v '^ *+' conftest.er1 >conftest.err
17335 rm -f conftest.er1
17336 cat conftest.err >&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } &&
17339 { ac_try='test -z "$ac_c_werror_flag"
17340 || test ! -s conftest.err'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest$ac_exeext'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352
17353 lt_aix_libpath_sed='
17354 /Import File Strings/,/^$/ {
17355 /^0/ {
17356 s/^0 *\(.*\)$/\1/
17357 p
17358 }
17359 }'
17360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17361 # Check for a 64-bit object if we didn't find anything.
17362 if test -z "$aix_libpath"; then
17363 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17364 fi
17365 else
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 fi
17370 rm -f conftest.err conftest.$ac_objext \
17371 conftest$ac_exeext conftest.$ac_ext
17372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17373
17374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17375 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"
17376 else
17377 if test "$host_cpu" = ia64; then
17378 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17379 allow_undefined_flag="-z nodefs"
17380 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"
17381 else
17382 # Determine the default libpath from the value encoded in an
17383 # empty executable.
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h. */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h. */
17390
17391 int
17392 main ()
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401 (eval $ac_link) 2>conftest.er1
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
17408 { ac_try='test -z "$ac_c_werror_flag"
17409 || test ! -s conftest.err'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } &&
17415 { ac_try='test -s conftest$ac_exeext'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
17421
17422 lt_aix_libpath_sed='
17423 /Import File Strings/,/^$/ {
17424 /^0/ {
17425 s/^0 *\(.*\)$/\1/
17426 p
17427 }
17428 }'
17429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17430 # Check for a 64-bit object if we didn't find anything.
17431 if test -z "$aix_libpath"; then
17432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17433 fi
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 fi
17439 rm -f conftest.err conftest.$ac_objext \
17440 conftest$ac_exeext conftest.$ac_ext
17441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17442
17443 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17444 # Warning - without using the other run time loading flags,
17445 # -berok will link without error, but may produce a broken library.
17446 no_undefined_flag=' ${wl}-bernotok'
17447 allow_undefined_flag=' ${wl}-berok'
17448 # Exported symbols can be pulled into shared objects from archives
17449 whole_archive_flag_spec='$convenience'
17450 archive_cmds_need_lc=yes
17451 # This is similar to how AIX traditionally builds its shared libraries.
17452 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'
17453 fi
17454 fi
17455 ;;
17456
17457 amigaos*)
17458 if test "$host_cpu" = m68k; then
17459 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)'
17460 hardcode_libdir_flag_spec='-L$libdir'
17461 hardcode_minus_L=yes
17462 fi
17463 # see comment about different semantics on the GNU ld section
17464 ld_shlibs=no
17465 ;;
17466
17467 bsdi[45]*)
17468 export_dynamic_flag_spec=-rdynamic
17469 ;;
17470
17471 cygwin* | mingw* | pw32*)
17472 # When not using gcc, we currently assume that we are using
17473 # Microsoft Visual C++.
17474 # hardcode_libdir_flag_spec is actually meaningless, as there is
17475 # no search path for DLLs.
17476 hardcode_libdir_flag_spec=' '
17477 allow_undefined_flag=unsupported
17478 # Tell ltmain to make .lib files, not .a files.
17479 libext=lib
17480 # Tell ltmain to make .dll files, not .so files.
17481 shrext_cmds=".dll"
17482 # FIXME: Setting linknames here is a bad hack.
17483 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17484 # The linker will automatically build a .lib file if we build a DLL.
17485 old_archive_from_new_cmds='true'
17486 # FIXME: Should let the user specify the lib program.
17487 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17488 fix_srcfile_path='`cygpath -w "$srcfile"`'
17489 enable_shared_with_static_runtimes=yes
17490 ;;
17491
17492 darwin* | rhapsody*)
17493 case $host_os in
17494 rhapsody* | darwin1.[012])
17495 allow_undefined_flag='${wl}-undefined ${wl}suppress'
17496 ;;
17497 *) # Darwin 1.3 on
17498 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17499 10.[012])
17500 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17501 ;;
17502 10.*)
17503 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17504 ;;
17505 esac
17506 ;;
17507 esac
17508 archive_cmds_need_lc=no
17509 hardcode_direct=no
17510 hardcode_automatic=yes
17511 hardcode_shlibpath_var=unsupported
17512 whole_archive_flag_spec=''
17513 link_all_deplibs=yes
17514 if test "$GCC" = yes ; then
17515 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 else
17518 lt_cv_apple_cc_single_mod=no
17519 if test -z "${LT_MULTI_MODULE}"; then
17520 # By default we will add the -single_module flag. You can override
17521 # by either setting the environment variable LT_MULTI_MODULE
17522 # non-empty at configure time, or by adding -multi-module to the
17523 # link flags.
17524 echo "int foo(void){return 1;}" > conftest.c
17525 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17526 -dynamiclib ${wl}-single_module conftest.c
17527 if test -f libconftest.dylib; then
17528 lt_cv_apple_cc_single_mod=yes
17529 rm libconftest.dylib
17530 fi
17531 rm conftest.$ac_ext
17532 fi
17533 fi
17534
17535 output_verbose_link_cmd=echo
17536 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17537 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17538 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17539 else
17540 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17541 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17542 fi
17543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17544 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17545 else
17546 case $cc_basename in
17547 xlc*)
17548 output_verbose_link_cmd=echo
17549 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17550 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17552 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17553 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17554 ;;
17555 *)
17556 ld_shlibs=no
17557 ;;
17558 esac
17559 fi
17560 ;;
17561
17562 dgux*)
17563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17564 hardcode_libdir_flag_spec='-L$libdir'
17565 hardcode_shlibpath_var=no
17566 ;;
17567
17568 freebsd1*)
17569 ld_shlibs=no
17570 ;;
17571
17572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17573 # support. Future versions do this automatically, but an explicit c++rt0.o
17574 # does not break anything, and helps significantly (at the cost of a little
17575 # extra space).
17576 freebsd2.2*)
17577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17578 hardcode_libdir_flag_spec='-R$libdir'
17579 hardcode_direct=yes
17580 hardcode_shlibpath_var=no
17581 ;;
17582
17583 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17584 freebsd2*)
17585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17586 hardcode_direct=yes
17587 hardcode_minus_L=yes
17588 hardcode_shlibpath_var=no
17589 ;;
17590
17591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17592 freebsd* | dragonfly*)
17593 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17594 hardcode_libdir_flag_spec='-R$libdir'
17595 hardcode_direct=yes
17596 hardcode_shlibpath_var=no
17597 ;;
17598
17599 hpux9*)
17600 if test "$GCC" = yes; then
17601 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'
17602 else
17603 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'
17604 fi
17605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17606 hardcode_libdir_separator=:
17607 hardcode_direct=yes
17608
17609 # hardcode_minus_L: Not really in the search PATH,
17610 # but as the default location of the library.
17611 hardcode_minus_L=yes
17612 export_dynamic_flag_spec='${wl}-E'
17613 ;;
17614
17615 hpux10*)
17616 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17617 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17618 else
17619 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17620 fi
17621 if test "$with_gnu_ld" = no; then
17622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17623 hardcode_libdir_flag_spec_ld='+b $libdir'
17624 hardcode_libdir_separator=:
17625 hardcode_direct=yes
17626 hardcode_direct_absolute=yes
17627 export_dynamic_flag_spec='${wl}-E'
17628 # hardcode_minus_L: Not really in the search PATH,
17629 # but as the default location of the library.
17630 hardcode_minus_L=yes
17631 fi
17632 ;;
17633
17634 hpux11*)
17635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17636 case $host_cpu in
17637 hppa*64*)
17638 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17639 ;;
17640 ia64*)
17641 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17642 ;;
17643 *)
17644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17645 ;;
17646 esac
17647 else
17648 case $host_cpu in
17649 hppa*64*)
17650 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17651 ;;
17652 ia64*)
17653 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17654 ;;
17655 *)
17656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17657 ;;
17658 esac
17659 fi
17660 if test "$with_gnu_ld" = no; then
17661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17662 hardcode_libdir_separator=:
17663
17664 case $host_cpu in
17665 hppa*64*|ia64*)
17666 hardcode_direct=no
17667 hardcode_shlibpath_var=no
17668 ;;
17669 *)
17670 hardcode_direct=yes
17671 hardcode_direct_absolute=yes
17672 export_dynamic_flag_spec='${wl}-E'
17673
17674 # hardcode_minus_L: Not really in the search PATH,
17675 # but as the default location of the library.
17676 hardcode_minus_L=yes
17677 ;;
17678 esac
17679 fi
17680 ;;
17681
17682 irix5* | irix6* | nonstopux*)
17683 if test "$GCC" = yes; then
17684 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'
17685 # Try to use the -exported_symbol ld option, if it does not
17686 # work, assume that -exports_file does not work either and
17687 # implicitly export all symbols.
17688 save_LDFLAGS="$LDFLAGS"
17689 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17690 cat >conftest.$ac_ext <<_ACEOF
17691 int foo(void) {}
17692 _ACEOF
17693 rm -f conftest.$ac_objext conftest$ac_exeext
17694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695 (eval $ac_link) 2>conftest.er1
17696 ac_status=$?
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag"
17703 || test ! -s conftest.err'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17715 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'
17716
17717 else
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.$ac_ext >&5
17720
17721 fi
17722 rm -f conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17724 LDFLAGS="$save_LDFLAGS"
17725 else
17726 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'
17727 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'
17728 fi
17729 archive_cmds_need_lc='no'
17730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17731 hardcode_libdir_separator=:
17732 inherit_rpath=yes
17733 link_all_deplibs=yes
17734 ;;
17735
17736 netbsd*)
17737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17739 else
17740 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17741 fi
17742 hardcode_libdir_flag_spec='-R$libdir'
17743 hardcode_direct=yes
17744 hardcode_shlibpath_var=no
17745 ;;
17746
17747 newsos6)
17748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17749 hardcode_direct=yes
17750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17751 hardcode_libdir_separator=:
17752 hardcode_shlibpath_var=no
17753 ;;
17754
17755 *nto* | *qnx*)
17756 ;;
17757
17758 openbsd*)
17759 hardcode_direct=yes
17760 hardcode_shlibpath_var=no
17761 hardcode_direct_absolute=yes
17762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17764 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17765 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17766 export_dynamic_flag_spec='${wl}-E'
17767 else
17768 case $host_os in
17769 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17771 hardcode_libdir_flag_spec='-R$libdir'
17772 ;;
17773 *)
17774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17776 ;;
17777 esac
17778 fi
17779 ;;
17780
17781 os2*)
17782 hardcode_libdir_flag_spec='-L$libdir'
17783 hardcode_minus_L=yes
17784 allow_undefined_flag=unsupported
17785 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'
17786 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17787 ;;
17788
17789 osf3*)
17790 if test "$GCC" = yes; then
17791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17792 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'
17793 else
17794 allow_undefined_flag=' -expect_unresolved \*'
17795 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'
17796 fi
17797 archive_cmds_need_lc='no'
17798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17799 hardcode_libdir_separator=:
17800 ;;
17801
17802 osf4* | osf5*) # as osf3* with the addition of -msym flag
17803 if test "$GCC" = yes; then
17804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17805 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'
17806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17807 else
17808 allow_undefined_flag=' -expect_unresolved \*'
17809 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'
17810 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~
17811 $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'
17812
17813 # Both c and cxx compiler support -rpath directly
17814 hardcode_libdir_flag_spec='-rpath $libdir'
17815 fi
17816 archive_cmds_need_lc='no'
17817 hardcode_libdir_separator=:
17818 ;;
17819
17820 solaris*)
17821 no_undefined_flag=' -z defs'
17822 if test "$GCC" = yes; then
17823 wlarc='${wl}'
17824 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17826 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17827 else
17828 case `$CC -V 2>&1` in
17829 *"Compilers 5.0"*)
17830 wlarc=''
17831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17834 ;;
17835 *)
17836 wlarc='${wl}'
17837 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17839 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17840 ;;
17841 esac
17842 fi
17843 hardcode_libdir_flag_spec='-R$libdir'
17844 hardcode_shlibpath_var=no
17845 case $host_os in
17846 solaris2.[0-5] | solaris2.[0-5].*) ;;
17847 *)
17848 # The compiler driver will combine and reorder linker options,
17849 # but understands `-z linker_flag'. GCC discards it without `$wl',
17850 # but is careful enough not to reorder.
17851 # Supported since Solaris 2.6 (maybe 2.5.1?)
17852 if test "$GCC" = yes; then
17853 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17854 else
17855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17856 fi
17857 ;;
17858 esac
17859 link_all_deplibs=yes
17860 ;;
17861
17862 sunos4*)
17863 if test "x$host_vendor" = xsequent; then
17864 # Use $CC to link under sequent, because it throws in some extra .o
17865 # files that make .init and .fini sections work.
17866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17867 else
17868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17869 fi
17870 hardcode_libdir_flag_spec='-L$libdir'
17871 hardcode_direct=yes
17872 hardcode_minus_L=yes
17873 hardcode_shlibpath_var=no
17874 ;;
17875
17876 sysv4)
17877 case $host_vendor in
17878 sni)
17879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17880 hardcode_direct=yes # is this really true???
17881 ;;
17882 siemens)
17883 ## LD is ld it makes a PLAMLIB
17884 ## CC just makes a GrossModule.
17885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17886 reload_cmds='$CC -r -o $output$reload_objs'
17887 hardcode_direct=no
17888 ;;
17889 motorola)
17890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17892 ;;
17893 esac
17894 runpath_var='LD_RUN_PATH'
17895 hardcode_shlibpath_var=no
17896 ;;
17897
17898 sysv4.3*)
17899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17900 hardcode_shlibpath_var=no
17901 export_dynamic_flag_spec='-Bexport'
17902 ;;
17903
17904 sysv4*MP*)
17905 if test -d /usr/nec; then
17906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17907 hardcode_shlibpath_var=no
17908 runpath_var=LD_RUN_PATH
17909 hardcode_runpath_var=yes
17910 ld_shlibs=yes
17911 fi
17912 ;;
17913
17914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17915 no_undefined_flag='${wl}-z,text'
17916 archive_cmds_need_lc=no
17917 hardcode_shlibpath_var=no
17918 runpath_var='LD_RUN_PATH'
17919
17920 if test "$GCC" = yes; then
17921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17923 else
17924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17926 fi
17927 ;;
17928
17929 sysv5* | sco3.2v5* | sco5v6*)
17930 # Note: We can NOT use -z defs as we might desire, because we do not
17931 # link with -lc, and that would cause any symbols used from libc to
17932 # always be unresolved, which means just about no library would
17933 # ever link correctly. If we're not using GNU ld we use -z text
17934 # though, which does catch some bad symbols but isn't as heavy-handed
17935 # as -z defs.
17936 no_undefined_flag='${wl}-z,text'
17937 allow_undefined_flag='${wl}-z,nodefs'
17938 archive_cmds_need_lc=no
17939 hardcode_shlibpath_var=no
17940 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17941 hardcode_libdir_separator=':'
17942 link_all_deplibs=yes
17943 export_dynamic_flag_spec='${wl}-Bexport'
17944 runpath_var='LD_RUN_PATH'
17945
17946 if test "$GCC" = yes; then
17947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17949 else
17950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17952 fi
17953 ;;
17954
17955 uts4*)
17956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17957 hardcode_libdir_flag_spec='-L$libdir'
17958 hardcode_shlibpath_var=no
17959 ;;
17960
17961 *)
17962 ld_shlibs=no
17963 ;;
17964 esac
17965
17966 if test x$host_vendor = xsni; then
17967 case $host in
17968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17969 export_dynamic_flag_spec='${wl}-Blargedynsym'
17970 ;;
17971 esac
17972 fi
17973 fi
17974
17975 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17976 echo "${ECHO_T}$ld_shlibs" >&6
17977 test "$ld_shlibs" = no && can_build_shared=no
17978
17979 with_gnu_ld=$with_gnu_ld
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995 #
17996 # Do we need to explicitly link libc?
17997 #
17998 case "x$archive_cmds_need_lc" in
17999 x|xyes)
18000 # Assume -lc should be added
18001 archive_cmds_need_lc=yes
18002
18003 if test "$enable_shared" = yes && test "$GCC" = yes; then
18004 case $archive_cmds in
18005 *'~'*)
18006 # FIXME: we may have to deal with multi-command sequences.
18007 ;;
18008 '$CC '*)
18009 # Test whether the compiler implicitly links with -lc since on some
18010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18011 # to ld, don't add -lc before -lgcc.
18012 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18013 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18014 $RM conftest*
18015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18016
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018 (eval $ac_compile) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } 2>conftest.err; then
18022 soname=conftest
18023 lib=conftest
18024 libobjs=conftest.$ac_objext
18025 deplibs=
18026 wl=$lt_prog_compiler_wl
18027 pic_flag=$lt_prog_compiler_pic
18028 compiler_flags=-v
18029 linker_flags=-v
18030 verstring=
18031 output_objdir=.
18032 libname=conftest
18033 lt_save_allow_undefined_flag=$allow_undefined_flag
18034 allow_undefined_flag=
18035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }
18040 then
18041 archive_cmds_need_lc=no
18042 else
18043 archive_cmds_need_lc=yes
18044 fi
18045 allow_undefined_flag=$lt_save_allow_undefined_flag
18046 else
18047 cat conftest.err 1>&5
18048 fi
18049 $RM conftest*
18050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18051 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18052 ;;
18053 esac
18054 fi
18055 ;;
18056 esac
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18216 withGCC=$GCC
18217 if test "$withGCC" = yes; then
18218 case $host_os in
18219 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18220 *) lt_awk_arg="/^libraries:/" ;;
18221 esac
18222 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18223 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18224 # if the path contains ";" then we assume it to be the separator
18225 # otherwise default to the standard path separator (i.e. ":") - it is
18226 # assumed that no part of a normal pathname contains ";" but that should
18227 # okay in the real world where ";" in dirpaths is itself problematic.
18228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18229 else
18230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18231 fi
18232 # Ok, now we have the path, separated by spaces, we can step through it
18233 # and add multilib dir if necessary.
18234 lt_tmp_lt_search_path_spec=
18235 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18236 for lt_sys_path in $lt_search_path_spec; do
18237 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18239 else
18240 test -d "$lt_sys_path" && \
18241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18242 fi
18243 done
18244 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18245 BEGIN {RS=" "; FS="/|\n";} {
18246 lt_foo="";
18247 lt_count=0;
18248 for (lt_i = NF; lt_i > 0; lt_i--) {
18249 if ($lt_i != "" && $lt_i != ".") {
18250 if ($lt_i == "..") {
18251 lt_count++;
18252 } else {
18253 if (lt_count == 0) {
18254 lt_foo="/" $lt_i lt_foo;
18255 } else {
18256 lt_count--;
18257 }
18258 }
18259 }
18260 }
18261 if (lt_foo != "") { lt_freq[lt_foo]++; }
18262 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18263 }'`
18264 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18265 else
18266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18267 fi
18268 library_names_spec=
18269 libname_spec='lib$name'
18270 soname_spec=
18271 shrext_cmds=".so"
18272 postinstall_cmds=
18273 postuninstall_cmds=
18274 finish_cmds=
18275 finish_eval=
18276 shlibpath_var=
18277 shlibpath_overrides_runpath=unknown
18278 version_type=none
18279 dynamic_linker="$host_os ld.so"
18280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18281 need_lib_prefix=unknown
18282 hardcode_into_libs=no
18283
18284 # when you set need_version to no, make sure it does not cause -set_version
18285 # flags to be left without arguments
18286 need_version=unknown
18287
18288 case $host_os in
18289 aix3*)
18290 version_type=linux
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18292 shlibpath_var=LIBPATH
18293
18294 # AIX 3 has no versioning support, so we append a major version to the name.
18295 soname_spec='${libname}${release}${shared_ext}$major'
18296 ;;
18297
18298 aix[4-9]*)
18299 version_type=linux
18300 need_lib_prefix=no
18301 need_version=no
18302 hardcode_into_libs=yes
18303 if test "$host_cpu" = ia64; then
18304 # AIX 5 supports IA64
18305 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18306 shlibpath_var=LD_LIBRARY_PATH
18307 else
18308 # With GCC up to 2.95.x, collect2 would create an import file
18309 # for dependence libraries. The import file would start with
18310 # the line `#! .'. This would cause the generated library to
18311 # depend on `.', always an invalid library. This was fixed in
18312 # development snapshots of GCC prior to 3.0.
18313 case $host_os in
18314 aix4 | aix4.[01] | aix4.[01].*)
18315 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18316 echo ' yes '
18317 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18318 :
18319 else
18320 can_build_shared=no
18321 fi
18322 ;;
18323 esac
18324 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18325 # soname into executable. Probably we can add versioning support to
18326 # collect2, so additional links can be useful in future.
18327 if test "$aix_use_runtimelinking" = yes; then
18328 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18329 # instead of lib<name>.a to let people know that these are not
18330 # typical AIX shared libraries.
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 else
18333 # We preserve .a as extension for shared libraries through AIX4.2
18334 # and later when we are not doing run time linking.
18335 library_names_spec='${libname}${release}.a $libname.a'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 fi
18338 shlibpath_var=LIBPATH
18339 fi
18340 ;;
18341
18342 amigaos*)
18343 if test "$host_cpu" = m68k; then
18344 library_names_spec='$libname.ixlibrary $libname.a'
18345 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18346 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'
18347 else
18348 dynamic_linker=no
18349 fi
18350 ;;
18351
18352 beos*)
18353 library_names_spec='${libname}${shared_ext}'
18354 dynamic_linker="$host_os ld.so"
18355 shlibpath_var=LIBRARY_PATH
18356 ;;
18357
18358 bsdi[45]*)
18359 version_type=linux
18360 need_version=no
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18362 soname_spec='${libname}${release}${shared_ext}$major'
18363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18364 shlibpath_var=LD_LIBRARY_PATH
18365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18367 # the default ld.so.conf also contains /usr/contrib/lib and
18368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18369 # libtool to hard-code these into programs
18370 ;;
18371
18372 cygwin* | mingw* | pw32*)
18373 version_type=windows
18374 shrext_cmds=".dll"
18375 need_version=no
18376 need_lib_prefix=no
18377
18378 case $withGCC,$host_os in
18379 yes,cygwin* | yes,mingw* | yes,pw32*)
18380 library_names_spec='$libname.dll.a'
18381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18382 postinstall_cmds='base_file=`basename \${file}`~
18383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18384 dldir=$destdir/`dirname \$dlpath`~
18385 test -d \$dldir || mkdir -p \$dldir~
18386 $install_prog $dir/$dlname \$dldir/$dlname~
18387 chmod a+x \$dldir/$dlname~
18388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18390 fi'
18391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18392 dlpath=$dir/\$dldll~
18393 $RM \$dlpath'
18394 shlibpath_overrides_runpath=yes
18395
18396 case $host_os in
18397 cygwin*)
18398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18401 ;;
18402 mingw*)
18403 # MinGW DLLs use traditional 'lib' prefix
18404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18405 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18407 # It is most probably a Windows format PATH printed by
18408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18409 # path with ; separators, and with drive letters. We can handle the
18410 # drive letters (cygwin fileutils understands them), so leave them,
18411 # especially as we might pass files found there to a mingw objdump,
18412 # which wouldn't understand a cygwinified path. Ahh.
18413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18414 else
18415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18416 fi
18417 ;;
18418 pw32*)
18419 # pw32 DLLs use 'pw' prefix rather than 'lib'
18420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18421 ;;
18422 esac
18423 ;;
18424
18425 *)
18426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18427 ;;
18428 esac
18429 dynamic_linker='Win32 ld.exe'
18430 # FIXME: first we should search . and the directory the executable is in
18431 shlibpath_var=PATH
18432 ;;
18433
18434 darwin* | rhapsody*)
18435 dynamic_linker="$host_os dyld"
18436 version_type=darwin
18437 need_lib_prefix=no
18438 need_version=no
18439 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18440 soname_spec='${libname}${release}${major}$shared_ext'
18441 shlibpath_overrides_runpath=yes
18442 shlibpath_var=DYLD_LIBRARY_PATH
18443 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18444
18445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18447 ;;
18448
18449 dgux*)
18450 version_type=linux
18451 need_lib_prefix=no
18452 need_version=no
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 ;;
18457
18458 freebsd1*)
18459 dynamic_linker=no
18460 ;;
18461
18462 freebsd* | dragonfly*)
18463 # DragonFly does not have aout. When/if they implement a new
18464 # versioning mechanism, adjust this.
18465 if test -x /usr/bin/objformat; then
18466 objformat=`/usr/bin/objformat`
18467 else
18468 case $host_os in
18469 freebsd[123]*) objformat=aout ;;
18470 *) objformat=elf ;;
18471 esac
18472 fi
18473 version_type=freebsd-$objformat
18474 case $version_type in
18475 freebsd-elf*)
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18477 need_version=no
18478 need_lib_prefix=no
18479 ;;
18480 freebsd-*)
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18482 need_version=yes
18483 ;;
18484 esac
18485 shlibpath_var=LD_LIBRARY_PATH
18486 case $host_os in
18487 freebsd2*)
18488 shlibpath_overrides_runpath=yes
18489 ;;
18490 freebsd3.[01]* | freebsdelf3.[01]*)
18491 shlibpath_overrides_runpath=yes
18492 hardcode_into_libs=yes
18493 ;;
18494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18496 shlibpath_overrides_runpath=no
18497 hardcode_into_libs=yes
18498 ;;
18499 *) # from 4.6 on, and DragonFly
18500 shlibpath_overrides_runpath=yes
18501 hardcode_into_libs=yes
18502 ;;
18503 esac
18504 ;;
18505
18506 gnu*)
18507 version_type=linux
18508 need_lib_prefix=no
18509 need_version=no
18510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18511 soname_spec='${libname}${release}${shared_ext}$major'
18512 shlibpath_var=LD_LIBRARY_PATH
18513 hardcode_into_libs=yes
18514 ;;
18515
18516 hpux9* | hpux10* | hpux11*)
18517 # Give a soname corresponding to the major version so that dld.sl refuses to
18518 # link against other versions.
18519 version_type=sunos
18520 need_lib_prefix=no
18521 need_version=no
18522 case $host_cpu in
18523 ia64*)
18524 shrext_cmds='.so'
18525 hardcode_into_libs=yes
18526 dynamic_linker="$host_os dld.so"
18527 shlibpath_var=LD_LIBRARY_PATH
18528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 soname_spec='${libname}${release}${shared_ext}$major'
18531 if test "X$HPUX_IA64_MODE" = X32; then
18532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18533 else
18534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18535 fi
18536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18537 ;;
18538 hppa*64*)
18539 shrext_cmds='.sl'
18540 hardcode_into_libs=yes
18541 dynamic_linker="$host_os dld.sl"
18542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18548 ;;
18549 *)
18550 shrext_cmds='.sl'
18551 dynamic_linker="$host_os dld.sl"
18552 shlibpath_var=SHLIB_PATH
18553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555 soname_spec='${libname}${release}${shared_ext}$major'
18556 ;;
18557 esac
18558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18559 postinstall_cmds='chmod 555 $lib'
18560 ;;
18561
18562 interix[3-9]*)
18563 version_type=linux
18564 need_lib_prefix=no
18565 need_version=no
18566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18567 soname_spec='${libname}${release}${shared_ext}$major'
18568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 shlibpath_overrides_runpath=no
18571 hardcode_into_libs=yes
18572 ;;
18573
18574 irix5* | irix6* | nonstopux*)
18575 case $host_os in
18576 nonstopux*) version_type=nonstopux ;;
18577 *)
18578 if test "$lt_cv_prog_gnu_ld" = yes; then
18579 version_type=linux
18580 else
18581 version_type=irix
18582 fi ;;
18583 esac
18584 need_lib_prefix=no
18585 need_version=no
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18588 case $host_os in
18589 irix5* | nonstopux*)
18590 libsuff= shlibsuff=
18591 ;;
18592 *)
18593 case $LD in # libtool.m4 will add one of these switches to LD
18594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18595 libsuff= shlibsuff= libmagic=32-bit;;
18596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18597 libsuff=32 shlibsuff=N32 libmagic=N32;;
18598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18600 *) libsuff= shlibsuff= libmagic=never-match;;
18601 esac
18602 ;;
18603 esac
18604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18605 shlibpath_overrides_runpath=no
18606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18608 hardcode_into_libs=yes
18609 ;;
18610
18611 # No shared lib support for Linux oldld, aout, or coff.
18612 linux*oldld* | linux*aout* | linux*coff*)
18613 dynamic_linker=no
18614 ;;
18615
18616 # This must be Linux ELF.
18617 linux* | k*bsd*-gnu)
18618 version_type=linux
18619 need_lib_prefix=no
18620 need_version=no
18621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18622 soname_spec='${libname}${release}${shared_ext}$major'
18623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18624 shlibpath_var=LD_LIBRARY_PATH
18625 shlibpath_overrides_runpath=no
18626 # Some binutils ld are patched to set DT_RUNPATH
18627 save_LDFLAGS=$LDFLAGS
18628 save_libdir=$libdir
18629 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18630 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18631 cat >conftest.$ac_ext <<_ACEOF
18632 /* confdefs.h. */
18633 _ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18637
18638 int
18639 main ()
18640 {
18641
18642 ;
18643 return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648 (eval $ac_link) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try='test -s conftest$ac_exeext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18669 shlibpath_overrides_runpath=yes
18670 fi
18671
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 fi
18677 rm -f conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 LDFLAGS=$save_LDFLAGS
18680 libdir=$save_libdir
18681
18682 # This implies no fast_install, which is unacceptable.
18683 # Some rework will be needed to allow for fast_install
18684 # before this can be enabled.
18685 hardcode_into_libs=yes
18686
18687 # Append ld.so.conf contents to the search path
18688 if test -f /etc/ld.so.conf; then
18689 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18691 fi
18692
18693 # We used to test for /lib/ld.so.1 and disable shared libraries on
18694 # powerpc, because MkLinux only supported shared libraries with the
18695 # GNU dynamic linker. Since this was broken with cross compilers,
18696 # most powerpc-linux boxes support dynamic linking these days and
18697 # people can always --disable-shared, the test was removed, and we
18698 # assume the GNU/Linux dynamic linker is in use.
18699 dynamic_linker='GNU/Linux ld.so'
18700 ;;
18701
18702 netbsd*)
18703 version_type=sunos
18704 need_lib_prefix=no
18705 need_version=no
18706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18709 dynamic_linker='NetBSD (a.out) ld.so'
18710 else
18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18712 soname_spec='${libname}${release}${shared_ext}$major'
18713 dynamic_linker='NetBSD ld.elf_so'
18714 fi
18715 shlibpath_var=LD_LIBRARY_PATH
18716 shlibpath_overrides_runpath=yes
18717 hardcode_into_libs=yes
18718 ;;
18719
18720 newsos6)
18721 version_type=linux
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes
18725 ;;
18726
18727 *nto* | *qnx*)
18728 version_type=qnx
18729 need_lib_prefix=no
18730 need_version=no
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 shlibpath_var=LD_LIBRARY_PATH
18734 shlibpath_overrides_runpath=no
18735 hardcode_into_libs=yes
18736 dynamic_linker='ldqnx.so'
18737 ;;
18738
18739 openbsd*)
18740 version_type=sunos
18741 sys_lib_dlsearch_path_spec="/usr/lib"
18742 need_lib_prefix=no
18743 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18744 case $host_os in
18745 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18746 *) need_version=no ;;
18747 esac
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18750 shlibpath_var=LD_LIBRARY_PATH
18751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18752 case $host_os in
18753 openbsd2.[89] | openbsd2.[89].*)
18754 shlibpath_overrides_runpath=no
18755 ;;
18756 *)
18757 shlibpath_overrides_runpath=yes
18758 ;;
18759 esac
18760 else
18761 shlibpath_overrides_runpath=yes
18762 fi
18763 ;;
18764
18765 os2*)
18766 libname_spec='$name'
18767 shrext_cmds=".dll"
18768 need_lib_prefix=no
18769 library_names_spec='$libname${shared_ext} $libname.a'
18770 dynamic_linker='OS/2 ld.exe'
18771 shlibpath_var=LIBPATH
18772 ;;
18773
18774 osf3* | osf4* | osf5*)
18775 version_type=osf
18776 need_lib_prefix=no
18777 need_version=no
18778 soname_spec='${libname}${release}${shared_ext}$major'
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18782 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18783 ;;
18784
18785 rdos*)
18786 dynamic_linker=no
18787 ;;
18788
18789 solaris*)
18790 version_type=linux
18791 need_lib_prefix=no
18792 need_version=no
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794 soname_spec='${libname}${release}${shared_ext}$major'
18795 shlibpath_var=LD_LIBRARY_PATH
18796 shlibpath_overrides_runpath=yes
18797 hardcode_into_libs=yes
18798 # ldd complains unless libraries are executable
18799 postinstall_cmds='chmod +x $lib'
18800 ;;
18801
18802 sunos4*)
18803 version_type=sunos
18804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18806 shlibpath_var=LD_LIBRARY_PATH
18807 shlibpath_overrides_runpath=yes
18808 if test "$with_gnu_ld" = yes; then
18809 need_lib_prefix=no
18810 fi
18811 need_version=yes
18812 ;;
18813
18814 sysv4 | sysv4.3*)
18815 version_type=linux
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817 soname_spec='${libname}${release}${shared_ext}$major'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 case $host_vendor in
18820 sni)
18821 shlibpath_overrides_runpath=no
18822 need_lib_prefix=no
18823 runpath_var=LD_RUN_PATH
18824 ;;
18825 siemens)
18826 need_lib_prefix=no
18827 ;;
18828 motorola)
18829 need_lib_prefix=no
18830 need_version=no
18831 shlibpath_overrides_runpath=no
18832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18833 ;;
18834 esac
18835 ;;
18836
18837 sysv4*MP*)
18838 if test -d /usr/nec ;then
18839 version_type=linux
18840 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18841 soname_spec='$libname${shared_ext}.$major'
18842 shlibpath_var=LD_LIBRARY_PATH
18843 fi
18844 ;;
18845
18846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18847 version_type=freebsd-elf
18848 need_lib_prefix=no
18849 need_version=no
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=yes
18854 hardcode_into_libs=yes
18855 if test "$with_gnu_ld" = yes; then
18856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18857 else
18858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18859 case $host_os in
18860 sco3.2v5*)
18861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18862 ;;
18863 esac
18864 fi
18865 sys_lib_dlsearch_path_spec='/usr/lib'
18866 ;;
18867
18868 tpf*)
18869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18870 version_type=linux
18871 need_lib_prefix=no
18872 need_version=no
18873 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=no
18876 hardcode_into_libs=yes
18877 ;;
18878
18879 uts4*)
18880 version_type=linux
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 soname_spec='${libname}${release}${shared_ext}$major'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 ;;
18885
18886 *)
18887 dynamic_linker=no
18888 ;;
18889 esac
18890 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18891 echo "${ECHO_T}$dynamic_linker" >&6
18892 test "$dynamic_linker" = no && can_build_shared=no
18893
18894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18895 if test "$GCC" = yes; then
18896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18897 fi
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18986 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18987 hardcode_action=
18988 if test -n "$hardcode_libdir_flag_spec" ||
18989 test -n "$runpath_var" ||
18990 test "X$hardcode_automatic" = "Xyes" ; then
18991
18992 # We can hardcode non-existent directories.
18993 if test "$hardcode_direct" != no &&
18994 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18995 # have to relink, otherwise we might link with an installed library
18996 # when we should be linking with a yet-to-be-installed one
18997 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18998 test "$hardcode_minus_L" != no; then
18999 # Linking always hardcodes the temporary library directory.
19000 hardcode_action=relink
19001 else
19002 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19003 hardcode_action=immediate
19004 fi
19005 else
19006 # We cannot hardcode anything, or else we can only hardcode existing
19007 # directories.
19008 hardcode_action=unsupported
19009 fi
19010 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19011 echo "${ECHO_T}$hardcode_action" >&6
19012
19013 if test "$hardcode_action" = relink ||
19014 test "$inherit_rpath" = yes; then
19015 # Fast installation is not supported
19016 enable_fast_install=no
19017 elif test "$shlibpath_overrides_runpath" = yes ||
19018 test "$enable_shared" = no; then
19019 # Fast installation is not necessary
19020 enable_fast_install=needless
19021 fi
19022
19023
19024
19025
19026
19027
19028 if test "x$enable_dlopen" != xyes; then
19029 enable_dlopen=unknown
19030 enable_dlopen_self=unknown
19031 enable_dlopen_self_static=unknown
19032 else
19033 lt_cv_dlopen=no
19034 lt_cv_dlopen_libs=
19035
19036 case $host_os in
19037 beos*)
19038 lt_cv_dlopen="load_add_on"
19039 lt_cv_dlopen_libs=
19040 lt_cv_dlopen_self=yes
19041 ;;
19042
19043 mingw* | pw32*)
19044 lt_cv_dlopen="LoadLibrary"
19045 lt_cv_dlopen_libs=
19046 ;;
19047
19048 cygwin*)
19049 lt_cv_dlopen="dlopen"
19050 lt_cv_dlopen_libs=
19051 ;;
19052
19053 darwin*)
19054 # if libdl is installed we need to link against it
19055 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19056 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19057 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060 ac_check_lib_save_LIBS=$LIBS
19061 LIBS="-ldl $LIBS"
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068
19069 /* Override any gcc2 internal prototype to avoid an error. */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 /* We use char because int might match the return type of a gcc2
19074 builtin and then its argument prototype would still apply. */
19075 char dlopen ();
19076 int
19077 main ()
19078 {
19079 dlopen ();
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086 (eval $ac_link) 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag"
19094 || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest$ac_exeext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_lib_dl_dlopen=yes
19107 else
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_cv_lib_dl_dlopen=no
19112 fi
19113 rm -f conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19118 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19119 if test $ac_cv_lib_dl_dlopen = yes; then
19120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19121 else
19122
19123 lt_cv_dlopen="dyld"
19124 lt_cv_dlopen_libs=
19125 lt_cv_dlopen_self=yes
19126
19127 fi
19128
19129 ;;
19130
19131 *)
19132 echo "$as_me:$LINENO: checking for shl_load" >&5
19133 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19134 if test "${ac_cv_func_shl_load+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19145 #define shl_load innocuous_shl_load
19146
19147 /* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char shl_load (); below.
19149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19150 <limits.h> exists even on freestanding compilers. */
19151
19152 #ifdef __STDC__
19153 # include <limits.h>
19154 #else
19155 # include <assert.h>
19156 #endif
19157
19158 #undef shl_load
19159
19160 /* Override any gcc2 internal prototype to avoid an error. */
19161 #ifdef __cplusplus
19162 extern "C"
19163 {
19164 #endif
19165 /* We use char because int might match the return type of a gcc2
19166 builtin and then its argument prototype would still apply. */
19167 char shl_load ();
19168 /* The GNU C library defines this for functions which it implements
19169 to always fail with ENOSYS. Some functions are actually named
19170 something starting with __ and the normal name is an alias. */
19171 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19172 choke me
19173 #else
19174 char (*f) () = shl_load;
19175 #endif
19176 #ifdef __cplusplus
19177 }
19178 #endif
19179
19180 int
19181 main ()
19182 {
19183 return f != shl_load;
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19190 (eval $ac_link) 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_c_werror_flag"
19198 || test ! -s conftest.err'
19199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19200 (eval $ac_try) 2>&5
19201 ac_status=$?
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); }; } &&
19204 { ac_try='test -s conftest$ac_exeext'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210 ac_cv_func_shl_load=yes
19211 else
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 ac_cv_func_shl_load=no
19216 fi
19217 rm -f conftest.err conftest.$ac_objext \
19218 conftest$ac_exeext conftest.$ac_ext
19219 fi
19220 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19221 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19222 if test $ac_cv_func_shl_load = yes; then
19223 lt_cv_dlopen="shl_load"
19224 else
19225 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19226 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229 else
19230 ac_check_lib_save_LIBS=$LIBS
19231 LIBS="-ldld $LIBS"
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238
19239 /* Override any gcc2 internal prototype to avoid an error. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 /* We use char because int might match the return type of a gcc2
19244 builtin and then its argument prototype would still apply. */
19245 char shl_load ();
19246 int
19247 main ()
19248 {
19249 shl_load ();
19250 ;
19251 return 0;
19252 }
19253 _ACEOF
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
19263 { ac_try='test -z "$ac_c_werror_flag"
19264 || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest$ac_exeext'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276 ac_cv_lib_dld_shl_load=yes
19277 else
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ac_cv_lib_dld_shl_load=no
19282 fi
19283 rm -f conftest.err conftest.$ac_objext \
19284 conftest$ac_exeext conftest.$ac_ext
19285 LIBS=$ac_check_lib_save_LIBS
19286 fi
19287 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19288 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19289 if test $ac_cv_lib_dld_shl_load = yes; then
19290 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19291 else
19292 echo "$as_me:$LINENO: checking for dlopen" >&5
19293 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19294 if test "${ac_cv_func_dlopen+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19305 #define dlopen innocuous_dlopen
19306
19307 /* System header to define __stub macros and hopefully few prototypes,
19308 which can conflict with char dlopen (); below.
19309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19310 <limits.h> exists even on freestanding compilers. */
19311
19312 #ifdef __STDC__
19313 # include <limits.h>
19314 #else
19315 # include <assert.h>
19316 #endif
19317
19318 #undef dlopen
19319
19320 /* Override any gcc2 internal prototype to avoid an error. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 {
19324 #endif
19325 /* We use char because int might match the return type of a gcc2
19326 builtin and then its argument prototype would still apply. */
19327 char dlopen ();
19328 /* The GNU C library defines this for functions which it implements
19329 to always fail with ENOSYS. Some functions are actually named
19330 something starting with __ and the normal name is an alias. */
19331 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19332 choke me
19333 #else
19334 char (*f) () = dlopen;
19335 #endif
19336 #ifdef __cplusplus
19337 }
19338 #endif
19339
19340 int
19341 main ()
19342 {
19343 return f != dlopen;
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19350 (eval $ac_link) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest$ac_exeext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_func_dlopen=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 ac_cv_func_dlopen=no
19376 fi
19377 rm -f conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
19379 fi
19380 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19381 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19382 if test $ac_cv_func_dlopen = yes; then
19383 lt_cv_dlopen="dlopen"
19384 else
19385 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19386 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19387 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390 ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-ldl $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398
19399 /* Override any gcc2 internal prototype to avoid an error. */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 /* We use char because int might match the return type of a gcc2
19404 builtin and then its argument prototype would still apply. */
19405 char dlopen ();
19406 int
19407 main ()
19408 {
19409 dlopen ();
19410 ;
19411 return 0;
19412 }
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416 (eval $ac_link) 2>conftest.er1
19417 ac_status=$?
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag"
19424 || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_lib_dl_dlopen=yes
19437 else
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441 ac_cv_lib_dl_dlopen=no
19442 fi
19443 rm -f conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19446 fi
19447 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19449 if test $ac_cv_lib_dl_dlopen = yes; then
19450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19451 else
19452 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19453 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19454 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457 ac_check_lib_save_LIBS=$LIBS
19458 LIBS="-lsvld $LIBS"
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h. */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465
19466 /* Override any gcc2 internal prototype to avoid an error. */
19467 #ifdef __cplusplus
19468 extern "C"
19469 #endif
19470 /* We use char because int might match the return type of a gcc2
19471 builtin and then its argument prototype would still apply. */
19472 char dlopen ();
19473 int
19474 main ()
19475 {
19476 dlopen ();
19477 ;
19478 return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext conftest$ac_exeext
19482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19483 (eval $ac_link) 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_c_werror_flag"
19491 || test ! -s conftest.err'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest$ac_exeext'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 ac_cv_lib_svld_dlopen=yes
19504 else
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19507
19508 ac_cv_lib_svld_dlopen=no
19509 fi
19510 rm -f conftest.err conftest.$ac_objext \
19511 conftest$ac_exeext conftest.$ac_ext
19512 LIBS=$ac_check_lib_save_LIBS
19513 fi
19514 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19516 if test $ac_cv_lib_svld_dlopen = yes; then
19517 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19518 else
19519 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19520 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19521 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 else
19524 ac_check_lib_save_LIBS=$LIBS
19525 LIBS="-ldld $LIBS"
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532
19533 /* Override any gcc2 internal prototype to avoid an error. */
19534 #ifdef __cplusplus
19535 extern "C"
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19539 char dld_link ();
19540 int
19541 main ()
19542 {
19543 dld_link ();
19544 ;
19545 return 0;
19546 }
19547 _ACEOF
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_dld_dld_link=yes
19571 else
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19574
19575 ac_cv_lib_dld_dld_link=no
19576 fi
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19582 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19583 if test $ac_cv_lib_dld_dld_link = yes; then
19584 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19585 fi
19586
19587
19588 fi
19589
19590
19591 fi
19592
19593
19594 fi
19595
19596
19597 fi
19598
19599
19600 fi
19601
19602 ;;
19603 esac
19604
19605 if test "x$lt_cv_dlopen" != xno; then
19606 enable_dlopen=yes
19607 else
19608 enable_dlopen=no
19609 fi
19610
19611 case $lt_cv_dlopen in
19612 dlopen)
19613 save_CPPFLAGS="$CPPFLAGS"
19614 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19615
19616 save_LDFLAGS="$LDFLAGS"
19617 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19618
19619 save_LIBS="$LIBS"
19620 LIBS="$lt_cv_dlopen_libs $LIBS"
19621
19622 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19623 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19624 if test "${lt_cv_dlopen_self+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627 if test "$cross_compiling" = yes; then :
19628 lt_cv_dlopen_self=cross
19629 else
19630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19631 lt_status=$lt_dlunknown
19632 cat > conftest.$ac_ext <<_LT_EOF
19633 #line 19633 "configure"
19634 #include "confdefs.h"
19635
19636 #if HAVE_DLFCN_H
19637 #include <dlfcn.h>
19638 #endif
19639
19640 #include <stdio.h>
19641
19642 #ifdef RTLD_GLOBAL
19643 # define LT_DLGLOBAL RTLD_GLOBAL
19644 #else
19645 # ifdef DL_GLOBAL
19646 # define LT_DLGLOBAL DL_GLOBAL
19647 # else
19648 # define LT_DLGLOBAL 0
19649 # endif
19650 #endif
19651
19652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19653 find out it does not work in some platform. */
19654 #ifndef LT_DLLAZY_OR_NOW
19655 # ifdef RTLD_LAZY
19656 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19657 # else
19658 # ifdef DL_LAZY
19659 # define LT_DLLAZY_OR_NOW DL_LAZY
19660 # else
19661 # ifdef RTLD_NOW
19662 # define LT_DLLAZY_OR_NOW RTLD_NOW
19663 # else
19664 # ifdef DL_NOW
19665 # define LT_DLLAZY_OR_NOW DL_NOW
19666 # else
19667 # define LT_DLLAZY_OR_NOW 0
19668 # endif
19669 # endif
19670 # endif
19671 # endif
19672 #endif
19673
19674 #ifdef __cplusplus
19675 extern "C" void exit (int);
19676 #endif
19677
19678 void fnord() { int i=42;}
19679 int main ()
19680 {
19681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19682 int status = $lt_dlunknown;
19683
19684 if (self)
19685 {
19686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19688 /* dlclose (self); */
19689 }
19690 else
19691 puts (dlerror ());
19692
19693 exit (status);
19694 }
19695 _LT_EOF
19696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19697 (eval $ac_link) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19701 (./conftest; exit; ) >&5 2>/dev/null
19702 lt_status=$?
19703 case x$lt_status in
19704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19706 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19707 esac
19708 else :
19709 # compilation failed
19710 lt_cv_dlopen_self=no
19711 fi
19712 fi
19713 rm -fr conftest*
19714
19715
19716 fi
19717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19718 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19719
19720 if test "x$lt_cv_dlopen_self" = xyes; then
19721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19723 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19724 if test "${lt_cv_dlopen_self_static+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727 if test "$cross_compiling" = yes; then :
19728 lt_cv_dlopen_self_static=cross
19729 else
19730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19731 lt_status=$lt_dlunknown
19732 cat > conftest.$ac_ext <<_LT_EOF
19733 #line 19733 "configure"
19734 #include "confdefs.h"
19735
19736 #if HAVE_DLFCN_H
19737 #include <dlfcn.h>
19738 #endif
19739
19740 #include <stdio.h>
19741
19742 #ifdef RTLD_GLOBAL
19743 # define LT_DLGLOBAL RTLD_GLOBAL
19744 #else
19745 # ifdef DL_GLOBAL
19746 # define LT_DLGLOBAL DL_GLOBAL
19747 # else
19748 # define LT_DLGLOBAL 0
19749 # endif
19750 #endif
19751
19752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19753 find out it does not work in some platform. */
19754 #ifndef LT_DLLAZY_OR_NOW
19755 # ifdef RTLD_LAZY
19756 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19757 # else
19758 # ifdef DL_LAZY
19759 # define LT_DLLAZY_OR_NOW DL_LAZY
19760 # else
19761 # ifdef RTLD_NOW
19762 # define LT_DLLAZY_OR_NOW RTLD_NOW
19763 # else
19764 # ifdef DL_NOW
19765 # define LT_DLLAZY_OR_NOW DL_NOW
19766 # else
19767 # define LT_DLLAZY_OR_NOW 0
19768 # endif
19769 # endif
19770 # endif
19771 # endif
19772 #endif
19773
19774 #ifdef __cplusplus
19775 extern "C" void exit (int);
19776 #endif
19777
19778 void fnord() { int i=42;}
19779 int main ()
19780 {
19781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19782 int status = $lt_dlunknown;
19783
19784 if (self)
19785 {
19786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19788 /* dlclose (self); */
19789 }
19790 else
19791 puts (dlerror ());
19792
19793 exit (status);
19794 }
19795 _LT_EOF
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19801 (./conftest; exit; ) >&5 2>/dev/null
19802 lt_status=$?
19803 case x$lt_status in
19804 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19805 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19806 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19807 esac
19808 else :
19809 # compilation failed
19810 lt_cv_dlopen_self_static=no
19811 fi
19812 fi
19813 rm -fr conftest*
19814
19815
19816 fi
19817 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19818 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19819 fi
19820
19821 CPPFLAGS="$save_CPPFLAGS"
19822 LDFLAGS="$save_LDFLAGS"
19823 LIBS="$save_LIBS"
19824 ;;
19825 esac
19826
19827 case $lt_cv_dlopen_self in
19828 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19829 *) enable_dlopen_self=unknown ;;
19830 esac
19831
19832 case $lt_cv_dlopen_self_static in
19833 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19834 *) enable_dlopen_self_static=unknown ;;
19835 esac
19836 fi
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854 striplib=
19855 old_striplib=
19856 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19857 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19858 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19860 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19861 echo "$as_me:$LINENO: result: yes" >&5
19862 echo "${ECHO_T}yes" >&6
19863 else
19864 # FIXME - insert some real tests, host_os isn't really good enough
19865 case $host_os in
19866 darwin*)
19867 if test -n "$STRIP" ; then
19868 striplib="$STRIP -x"
19869 old_striplib="$STRIP -S"
19870 echo "$as_me:$LINENO: result: yes" >&5
19871 echo "${ECHO_T}yes" >&6
19872 else
19873 echo "$as_me:$LINENO: result: no" >&5
19874 echo "${ECHO_T}no" >&6
19875 fi
19876 ;;
19877 *)
19878 echo "$as_me:$LINENO: result: no" >&5
19879 echo "${ECHO_T}no" >&6
19880 ;;
19881 esac
19882 fi
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895 # Report which library types will actually be built
19896 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19897 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19898 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19899 echo "${ECHO_T}$can_build_shared" >&6
19900
19901 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19902 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19903 test "$can_build_shared" = "no" && enable_shared=no
19904
19905 # On AIX, shared libraries and static libraries use the same namespace, and
19906 # are all built from PIC.
19907 case $host_os in
19908 aix3*)
19909 test "$enable_shared" = yes && enable_static=no
19910 if test -n "$RANLIB"; then
19911 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19912 postinstall_cmds='$RANLIB $lib'
19913 fi
19914 ;;
19915
19916 aix[4-9]*)
19917 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19918 test "$enable_shared" = yes && enable_static=no
19919 fi
19920 ;;
19921 esac
19922 echo "$as_me:$LINENO: result: $enable_shared" >&5
19923 echo "${ECHO_T}$enable_shared" >&6
19924
19925 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19926 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19927 # Make sure either enable_shared or enable_static is yes.
19928 test "$enable_shared" = yes || enable_static=yes
19929 echo "$as_me:$LINENO: result: $enable_static" >&5
19930 echo "${ECHO_T}$enable_static" >&6
19931
19932
19933
19934
19935 fi
19936 ac_ext=c
19937 ac_cpp='$CPP $CPPFLAGS'
19938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942 CC="$lt_save_CC"
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959 # Only expand once:
19960
19961
19962
19963
19964
19965 # Identify the assembler which will work hand-in-glove with the newly
19966 # built GCC, so that we can examine its features. This is the assembler
19967 # which will be driven by the driver program.
19968 #
19969 # If build != host, and we aren't building gas in-tree, we identify a
19970 # build->target assembler and hope that it will have the same features
19971 # as the host->target assembler we'll be using.
19972 gcc_cv_gas_major_version=
19973 gcc_cv_gas_minor_version=
19974 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19975
19976 if test "${gcc_cv_as+set}" = set; then
19977 :
19978 else
19979
19980 if test -x "$DEFAULT_ASSEMBLER"; then
19981 gcc_cv_as="$DEFAULT_ASSEMBLER"
19982 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
19983 && test -f ../gas/Makefile \
19984 && test x$build = x$host; then
19985 gcc_cv_as=../gas/as-new$build_exeext
19986 elif test -x as$build_exeext; then
19987 # Build using assembler in the current directory.
19988 gcc_cv_as=./as$build_exeext
19989 elif test -x $AS_FOR_TARGET; then
19990 gcc_cv_as="$AS_FOR_TARGET"
19991 else
19992 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19993 set dummy $AS_FOR_TARGET; ac_word=$2
19994 echo "$as_me:$LINENO: checking for $ac_word" >&5
19995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19996 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999 case $gcc_cv_as in
20000 [\\/]* | ?:[\\/]*)
20001 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20002 ;;
20003 *)
20004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20005 for as_dir in $PATH
20006 do
20007 IFS=$as_save_IFS
20008 test -z "$as_dir" && as_dir=.
20009 for ac_exec_ext in '' $ac_executable_extensions; do
20010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20011 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20013 break 2
20014 fi
20015 done
20016 done
20017
20018 ;;
20019 esac
20020 fi
20021 gcc_cv_as=$ac_cv_path_gcc_cv_as
20022
20023 if test -n "$gcc_cv_as"; then
20024 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20025 echo "${ECHO_T}$gcc_cv_as" >&6
20026 else
20027 echo "$as_me:$LINENO: result: no" >&5
20028 echo "${ECHO_T}no" >&6
20029 fi
20030
20031 fi
20032 fi
20033
20034
20035 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20036
20037 case "$ORIGINAL_AS_FOR_TARGET" in
20038 ./as | ./as$build_exeext) ;;
20039 *) ac_config_files="$ac_config_files as:exec-tool.in"
20040 ;;
20041 esac
20042
20043 echo "$as_me:$LINENO: checking what assembler to use" >&5
20044 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20045 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20046 # Single tree build which includes gas. We want to prefer it
20047 # over whatever linker top-level may have detected, since
20048 # we'll use what we're building after installation anyway.
20049 echo "$as_me:$LINENO: result: newly built gas" >&5
20050 echo "${ECHO_T}newly built gas" >&6
20051 in_tree_gas=yes
20052 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20053 for f in $gcc_cv_as_bfd_srcdir/configure \
20054 $gcc_cv_as_gas_srcdir/configure \
20055 $gcc_cv_as_gas_srcdir/configure.in \
20056 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20057 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20058 if test x$gcc_cv_gas_version != x; then
20059 break
20060 fi
20061 done
20062 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20063 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20064 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20065 case $gcc_cv_gas_patch_version in
20066 "") gcc_cv_gas_patch_version="0" ;;
20067 esac
20068 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20069 + $gcc_cv_gas_minor_version \) \* 1000 \
20070 + $gcc_cv_gas_patch_version`
20071
20072 in_tree_gas_is_elf=no
20073 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20074 || (grep 'obj_format = multi' ../gas/Makefile \
20075 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20076 then
20077 in_tree_gas_is_elf=yes
20078 fi
20079 else
20080 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20081 echo "${ECHO_T}$gcc_cv_as" >&6
20082 in_tree_gas=no
20083 fi
20084
20085 # Identify the linker which will work hand-in-glove with the newly
20086 # built GCC, so that we can examine its features. This is the linker
20087 # which will be driven by the driver program.
20088 #
20089 # If build != host, and we aren't building gas in-tree, we identify a
20090 # build->target linker and hope that it will have the same features
20091 # as the host->target linker we'll be using.
20092 gcc_cv_gld_major_version=
20093 gcc_cv_gld_minor_version=
20094 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20095 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20096
20097 if test "${gcc_cv_ld+set}" = set; then
20098 :
20099 else
20100
20101 if test -x "$DEFAULT_LINKER"; then
20102 gcc_cv_ld="$DEFAULT_LINKER"
20103 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20104 && test -f ../ld/Makefile \
20105 && test x$build = x$host; then
20106 gcc_cv_ld=../ld/ld-new$build_exeext
20107 elif test -x collect-ld$build_exeext; then
20108 # Build using linker in the current directory.
20109 gcc_cv_ld=./collect-ld$build_exeext
20110 elif test -x $LD_FOR_TARGET; then
20111 gcc_cv_ld="$LD_FOR_TARGET"
20112 else
20113 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20114 set dummy $LD_FOR_TARGET; ac_word=$2
20115 echo "$as_me:$LINENO: checking for $ac_word" >&5
20116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20117 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120 case $gcc_cv_ld in
20121 [\\/]* | ?:[\\/]*)
20122 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20123 ;;
20124 *)
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20127 do
20128 IFS=$as_save_IFS
20129 test -z "$as_dir" && as_dir=.
20130 for ac_exec_ext in '' $ac_executable_extensions; do
20131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20132 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20134 break 2
20135 fi
20136 done
20137 done
20138
20139 ;;
20140 esac
20141 fi
20142 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20143
20144 if test -n "$gcc_cv_ld"; then
20145 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20146 echo "${ECHO_T}$gcc_cv_ld" >&6
20147 else
20148 echo "$as_me:$LINENO: result: no" >&5
20149 echo "${ECHO_T}no" >&6
20150 fi
20151
20152 fi
20153 fi
20154
20155
20156 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20157
20158 case "$ORIGINAL_LD_FOR_TARGET" in
20159 ./collect-ld | ./collect-ld$build_exeext) ;;
20160 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20161 ;;
20162 esac
20163
20164 echo "$as_me:$LINENO: checking what linker to use" >&5
20165 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20166 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20167 # Single tree build which includes ld. We want to prefer it
20168 # over whatever linker top-level may have detected, since
20169 # we'll use what we're building after installation anyway.
20170 echo "$as_me:$LINENO: result: newly built ld" >&5
20171 echo "${ECHO_T}newly built ld" >&6
20172 in_tree_ld=yes
20173 in_tree_ld_is_elf=no
20174 if (grep 'EMUL = .*elf' ../ld/Makefile \
20175 || grep 'EMUL = .*linux' ../ld/Makefile \
20176 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20177 in_tree_ld_is_elf=yes
20178 fi
20179 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
20180 do
20181 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20182 if test x$gcc_cv_gld_version != x; then
20183 break
20184 fi
20185 done
20186 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20187 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20188 else
20189 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20190 echo "${ECHO_T}$gcc_cv_ld" >&6
20191 in_tree_ld=no
20192 fi
20193
20194 # Figure out what nm we will be using.
20195 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20196 if test "${gcc_cv_nm+set}" = set; then
20197 :
20198 else
20199
20200 if test -f $gcc_cv_binutils_srcdir/configure.in \
20201 && test -f ../binutils/Makefile \
20202 && test x$build = x$host; then
20203 gcc_cv_nm=../binutils/nm-new$build_exeext
20204 elif test -x nm$build_exeext; then
20205 gcc_cv_nm=./nm$build_exeext
20206 elif test -x $NM_FOR_TARGET; then
20207 gcc_cv_nm="$NM_FOR_TARGET"
20208 else
20209 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20210 set dummy $NM_FOR_TARGET; ac_word=$2
20211 echo "$as_me:$LINENO: checking for $ac_word" >&5
20212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20213 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20214 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 else
20216 case $gcc_cv_nm in
20217 [\\/]* | ?:[\\/]*)
20218 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20219 ;;
20220 *)
20221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20223 do
20224 IFS=$as_save_IFS
20225 test -z "$as_dir" && as_dir=.
20226 for ac_exec_ext in '' $ac_executable_extensions; do
20227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20228 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20230 break 2
20231 fi
20232 done
20233 done
20234
20235 ;;
20236 esac
20237 fi
20238 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20239
20240 if test -n "$gcc_cv_nm"; then
20241 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20242 echo "${ECHO_T}$gcc_cv_nm" >&6
20243 else
20244 echo "$as_me:$LINENO: result: no" >&5
20245 echo "${ECHO_T}no" >&6
20246 fi
20247
20248 fi
20249 fi
20250
20251
20252 echo "$as_me:$LINENO: checking what nm to use" >&5
20253 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20254 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20255 # Single tree build which includes binutils.
20256 echo "$as_me:$LINENO: result: newly built nm" >&5
20257 echo "${ECHO_T}newly built nm" >&6
20258 in_tree_nm=yes
20259 else
20260 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20261 echo "${ECHO_T}$gcc_cv_nm" >&6
20262 in_tree_nm=no
20263 fi
20264
20265 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20266
20267 case "$ORIGINAL_NM_FOR_TARGET" in
20268 ./nm | ./nm$build_exeext) ;;
20269 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20270 ;;
20271 esac
20272
20273
20274 # Figure out what objdump we will be using.
20275 if test "${gcc_cv_objdump+set}" = set; then
20276 :
20277 else
20278
20279 if test -f $gcc_cv_binutils_srcdir/configure.in \
20280 && test -f ../binutils/Makefile \
20281 && test x$build = x$host; then
20282 # Single tree build which includes binutils.
20283 gcc_cv_objdump=../binutils/objdump$build_exeext
20284 elif test -x objdump$build_exeext; then
20285 gcc_cv_objdump=./objdump$build_exeext
20286 elif test -x $OBJDUMP_FOR_TARGET; then
20287 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20288 else
20289 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20290 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20291 echo "$as_me:$LINENO: checking for $ac_word" >&5
20292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20293 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 else
20296 case $gcc_cv_objdump in
20297 [\\/]* | ?:[\\/]*)
20298 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20299 ;;
20300 *)
20301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20302 for as_dir in $PATH
20303 do
20304 IFS=$as_save_IFS
20305 test -z "$as_dir" && as_dir=.
20306 for ac_exec_ext in '' $ac_executable_extensions; do
20307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20308 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20310 break 2
20311 fi
20312 done
20313 done
20314
20315 ;;
20316 esac
20317 fi
20318 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20319
20320 if test -n "$gcc_cv_objdump"; then
20321 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20322 echo "${ECHO_T}$gcc_cv_objdump" >&6
20323 else
20324 echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6
20326 fi
20327
20328 fi
20329 fi
20330
20331
20332 echo "$as_me:$LINENO: checking what objdump to use" >&5
20333 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20334 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20335 # Single tree build which includes binutils.
20336 echo "$as_me:$LINENO: result: newly built objdump" >&5
20337 echo "${ECHO_T}newly built objdump" >&6
20338 elif test x$gcc_cv_objdump = x; then
20339 echo "$as_me:$LINENO: result: not found" >&5
20340 echo "${ECHO_T}not found" >&6
20341 else
20342 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20343 echo "${ECHO_T}$gcc_cv_objdump" >&6
20344 fi
20345
20346 # Figure out what assembler alignment features are present.
20347 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20348 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20349 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 gcc_cv_as_balign_and_p2align=no
20353 if test $in_tree_gas = yes; then
20354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20355 then gcc_cv_as_balign_and_p2align=yes
20356 fi
20357 elif test x$gcc_cv_as != x; then
20358 echo '.balign 4
20359 .p2align 2' > conftest.s
20360 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }
20366 then
20367 gcc_cv_as_balign_and_p2align=yes
20368 else
20369 echo "configure: failed program was" >&5
20370 cat conftest.s >&5
20371 fi
20372 rm -f conftest.o conftest.s
20373 fi
20374 fi
20375 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20376 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20377 if test $gcc_cv_as_balign_and_p2align = yes; then
20378
20379 cat >>confdefs.h <<\_ACEOF
20380 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20381 _ACEOF
20382
20383 fi
20384
20385 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20386 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20387 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20388 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 else
20390 gcc_cv_as_max_skip_p2align=no
20391 if test $in_tree_gas = yes; then
20392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20393 then gcc_cv_as_max_skip_p2align=yes
20394 fi
20395 elif test x$gcc_cv_as != x; then
20396 echo '.p2align 4,,7' > conftest.s
20397 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399 (eval $ac_try) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; }
20403 then
20404 gcc_cv_as_max_skip_p2align=yes
20405 else
20406 echo "configure: failed program was" >&5
20407 cat conftest.s >&5
20408 fi
20409 rm -f conftest.o conftest.s
20410 fi
20411 fi
20412 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20413 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20414 if test $gcc_cv_as_max_skip_p2align = yes; then
20415
20416 cat >>confdefs.h <<\_ACEOF
20417 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20418 _ACEOF
20419
20420 fi
20421
20422 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20423 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20424 if test "${gcc_cv_as_literal16+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427 gcc_cv_as_literal16=no
20428 if test $in_tree_gas = yes; then
20429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20430 then gcc_cv_as_literal16=yes
20431 fi
20432 elif test x$gcc_cv_as != x; then
20433 echo '.literal16' > conftest.s
20434 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20437 ac_status=$?
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }
20440 then
20441 gcc_cv_as_literal16=yes
20442 else
20443 echo "configure: failed program was" >&5
20444 cat conftest.s >&5
20445 fi
20446 rm -f conftest.o conftest.s
20447 fi
20448 fi
20449 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20450 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20451 if test $gcc_cv_as_literal16 = yes; then
20452
20453 cat >>confdefs.h <<\_ACEOF
20454 #define HAVE_GAS_LITERAL16 1
20455 _ACEOF
20456
20457 fi
20458
20459 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20460 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20461 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 gcc_cv_as_subsection_m1=no
20465 if test $in_tree_gas = yes; then
20466 if test $in_tree_gas_is_elf = yes \
20467 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20468 then gcc_cv_as_subsection_m1=yes
20469 fi
20470 elif test x$gcc_cv_as != x; then
20471 echo 'conftest_label1: .word 0
20472 .subsection -1
20473 conftest_label2: .word 0
20474 .previous' > conftest.s
20475 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }
20481 then
20482 if test x$gcc_cv_nm != x; then
20483 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20484 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20485 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20486 then :
20487 else gcc_cv_as_subsection_m1=yes
20488 fi
20489 rm -f conftest.nm1 conftest.nm2
20490 fi
20491 else
20492 echo "configure: failed program was" >&5
20493 cat conftest.s >&5
20494 fi
20495 rm -f conftest.o conftest.s
20496 fi
20497 fi
20498 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20499 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20500 if test $gcc_cv_as_subsection_m1 = yes; then
20501
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_GAS_SUBSECTION_ORDERING 1
20504 _ACEOF
20505
20506 fi
20507
20508 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20509 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20510 if test "${gcc_cv_as_weak+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513 gcc_cv_as_weak=no
20514 if test $in_tree_gas = yes; then
20515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20516 then gcc_cv_as_weak=yes
20517 fi
20518 elif test x$gcc_cv_as != x; then
20519 echo ' .weak foobar' > conftest.s
20520 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }
20526 then
20527 gcc_cv_as_weak=yes
20528 else
20529 echo "configure: failed program was" >&5
20530 cat conftest.s >&5
20531 fi
20532 rm -f conftest.o conftest.s
20533 fi
20534 fi
20535 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20536 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20537 if test $gcc_cv_as_weak = yes; then
20538
20539 cat >>confdefs.h <<\_ACEOF
20540 #define HAVE_GAS_WEAK 1
20541 _ACEOF
20542
20543 fi
20544
20545 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20546 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20547 if test "${gcc_cv_as_weakref+set}" = set; then
20548 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 else
20550 gcc_cv_as_weakref=no
20551 if test $in_tree_gas = yes; then
20552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20553 then gcc_cv_as_weakref=yes
20554 fi
20555 elif test x$gcc_cv_as != x; then
20556 echo ' .weakref foobar, barfnot' > conftest.s
20557 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); }; }
20563 then
20564 gcc_cv_as_weakref=yes
20565 else
20566 echo "configure: failed program was" >&5
20567 cat conftest.s >&5
20568 fi
20569 rm -f conftest.o conftest.s
20570 fi
20571 fi
20572 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20573 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20574 if test $gcc_cv_as_weakref = yes; then
20575
20576 cat >>confdefs.h <<\_ACEOF
20577 #define HAVE_GAS_WEAKREF 1
20578 _ACEOF
20579
20580 fi
20581
20582 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20583 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20584 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20585 echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587 gcc_cv_as_nsubspa_comdat=no
20588 if test $in_tree_gas = yes; then
20589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20590 then gcc_cv_as_nsubspa_comdat=yes
20591 fi
20592 elif test x$gcc_cv_as != x; then
20593 echo ' .SPACE $TEXT$
20594 .NSUBSPA $CODE$,COMDAT' > conftest.s
20595 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }
20601 then
20602 gcc_cv_as_nsubspa_comdat=yes
20603 else
20604 echo "configure: failed program was" >&5
20605 cat conftest.s >&5
20606 fi
20607 rm -f conftest.o conftest.s
20608 fi
20609 fi
20610 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20611 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20612 if test $gcc_cv_as_nsubspa_comdat = yes; then
20613
20614 cat >>confdefs.h <<\_ACEOF
20615 #define HAVE_GAS_NSUBSPA_COMDAT 1
20616 _ACEOF
20617
20618 fi
20619
20620 # .hidden needs to be supported in both the assembler and the linker,
20621 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20622 # This is irritatingly difficult to feature test for; we have to check the
20623 # date string after the version number. If we've got an in-tree
20624 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20625 # to be safe.
20626 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20627 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20628 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20629 if test "${gcc_cv_as_hidden+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 gcc_cv_as_hidden=no
20633 if test $in_tree_gas = yes; then
20634 if test $in_tree_gas_is_elf = yes \
20635 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20636 then gcc_cv_as_hidden=yes
20637 fi
20638 elif test x$gcc_cv_as != x; then
20639 echo ' .hidden foobar
20640 foobar:' > conftest.s
20641 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); }; }
20647 then
20648 gcc_cv_as_hidden=yes
20649 else
20650 echo "configure: failed program was" >&5
20651 cat conftest.s >&5
20652 fi
20653 rm -f conftest.o conftest.s
20654 fi
20655 fi
20656 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20657 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20658
20659
20660 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20661 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20662 if test "${gcc_cv_ld_hidden+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665 if test $in_tree_ld = yes ; then
20666 gcc_cv_ld_hidden=no
20667 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 \
20668 && test $in_tree_ld_is_elf = yes; then
20669 gcc_cv_ld_hidden=yes
20670 fi
20671 else
20672 gcc_cv_ld_hidden=yes
20673 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20674 if echo "$ld_ver" | grep GNU > /dev/null; then
20675 ld_vers=`echo $ld_ver | sed -n \
20676 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20677 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'`
20678 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20679 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20680 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20681 if test 0"$ld_date" -lt 20020404; then
20682 if test -n "$ld_date"; then
20683 # If there was date string, but was earlier than 2002-04-04, fail
20684 gcc_cv_ld_hidden=no
20685 elif test -z "$ld_vers"; then
20686 # If there was no date string nor ld version number, something is wrong
20687 gcc_cv_ld_hidden=no
20688 else
20689 test -z "$ld_vers_patch" && ld_vers_patch=0
20690 if test "$ld_vers_major" -lt 2; then
20691 gcc_cv_ld_hidden=no
20692 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20693 gcc_cv_ld_hidden="no"
20694 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20695 gcc_cv_ld_hidden=no
20696 fi
20697 fi
20698 fi
20699 else
20700 case "${target}" in
20701 hppa64*-*-hpux* | ia64*-*-hpux*)
20702 gcc_cv_ld_hidden=yes
20703 ;;
20704 *)
20705 gcc_cv_ld_hidden=no
20706 ;;
20707 esac
20708 fi
20709 fi
20710 fi
20711 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20712 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20713 libgcc_visibility=no
20714
20715
20716 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20717 libgcc_visibility=yes
20718
20719 cat >>confdefs.h <<\_ACEOF
20720 #define HAVE_GAS_HIDDEN 1
20721 _ACEOF
20722
20723 fi
20724
20725 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20726 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20727 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20728 if test "${gcc_cv_as_leb128+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 else
20731 gcc_cv_as_leb128=no
20732 if test $in_tree_gas = yes; then
20733 if test $in_tree_gas_is_elf = yes \
20734 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20735 then gcc_cv_as_leb128=yes
20736 fi
20737 elif test x$gcc_cv_as != x; then
20738 echo ' .data
20739 .uleb128 L2 - L1
20740 L1:
20741 .uleb128 1280
20742 .sleb128 -1010
20743 L2:' > conftest.s
20744 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20747 ac_status=$?
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }
20750 then
20751 # GAS versions before 2.11 do not support uleb128,
20752 # despite appearing to.
20753 # ??? There exists an elf-specific test that will crash
20754 # the assembler. Perhaps it's better to figure out whether
20755 # arbitrary sections are supported and try the test.
20756 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20757 if echo "$as_ver" | grep GNU > /dev/null; then
20758 as_vers=`echo $as_ver | sed -n \
20759 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20760 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20761 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20762 if test $as_major -eq 2 && test $as_minor -lt 11
20763 then :
20764 else gcc_cv_as_leb128=yes
20765 fi
20766 fi
20767 else
20768 echo "configure: failed program was" >&5
20769 cat conftest.s >&5
20770 fi
20771 rm -f conftest.o conftest.s
20772 fi
20773 fi
20774 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20775 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20776 if test $gcc_cv_as_leb128 = yes; then
20777
20778 cat >>confdefs.h <<\_ACEOF
20779 #define HAVE_AS_LEB128 1
20780 _ACEOF
20781
20782 fi
20783
20784 # GAS versions up to and including 2.11.0 may mis-optimize
20785 # .eh_frame data.
20786 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20787 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20788 if test "${gcc_cv_as_eh_frame+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791 gcc_cv_as_eh_frame=no
20792 if test $in_tree_gas = yes; then
20793 if test $in_tree_gas_is_elf = yes \
20794 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20795 then gcc_cv_as_eh_frame=yes
20796 fi
20797 elif test x$gcc_cv_as != x; then
20798 echo ' .text
20799 .LFB1:
20800 .4byte 0
20801 .L1:
20802 .4byte 0
20803 .LFE1:
20804 .section .eh_frame,"aw",@progbits
20805 __FRAME_BEGIN__:
20806 .4byte .LECIE1-.LSCIE1
20807 .LSCIE1:
20808 .4byte 0x0
20809 .byte 0x1
20810 .ascii "z\0"
20811 .byte 0x1
20812 .byte 0x78
20813 .byte 0x1a
20814 .byte 0x0
20815 .byte 0x4
20816 .4byte 1
20817 .p2align 1
20818 .LECIE1:
20819 .LSFDE1:
20820 .4byte .LEFDE1-.LASFDE1
20821 .LASFDE1:
20822 .4byte .LASFDE1-__FRAME_BEGIN__
20823 .4byte .LFB1
20824 .4byte .LFE1-.LFB1
20825 .byte 0x4
20826 .4byte .LFE1-.LFB1
20827 .byte 0x4
20828 .4byte .L1-.LFB1
20829 .LEFDE1:' > conftest.s
20830 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20833 ac_status=$?
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }
20836 then
20837 cat > conftest.lit <<EOF
20838 0000 10000000 00000000 017a0001 781a0004 .........z..x...
20839 0010 01000000 12000000 18000000 00000000 ................
20840 0020 08000000 04080000 0044 .........D
20841 EOF
20842 cat > conftest.big <<EOF
20843 0000 00000010 00000000 017a0001 781a0004 .........z..x...
20844 0010 00000001 00000012 00000018 00000000 ................
20845 0020 00000008 04000000 0844 .........D
20846 EOF
20847 # If the assembler didn't choke, and we can objdump,
20848 # and we got the correct data, then succeed.
20849 # The text in the here-document typically retains its unix-style line
20850 # endings, while the output of objdump will use host line endings.
20851 # Therefore, use diff -b for the comparisons.
20852 if test x$gcc_cv_objdump != x \
20853 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20854 | tail -3 > conftest.got \
20855 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20856 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20857 then
20858 gcc_cv_as_eh_frame=yes
20859 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 gcc_cv_as_eh_frame=buggy
20866 else
20867 # Uh oh, what do we do now?
20868 gcc_cv_as_eh_frame=no
20869 fi
20870 else
20871 echo "configure: failed program was" >&5
20872 cat conftest.s >&5
20873 fi
20874 rm -f conftest.o conftest.s
20875 fi
20876 fi
20877 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20878 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20879
20880
20881 if test $gcc_cv_as_eh_frame = buggy; then
20882
20883 cat >>confdefs.h <<\_ACEOF
20884 #define USE_AS_TRADITIONAL_FORMAT 1
20885 _ACEOF
20886
20887 fi
20888
20889 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20890 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20891 if test "${gcc_cv_as_shf_merge+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894 gcc_cv_as_shf_merge=no
20895 if test $in_tree_gas = yes; then
20896 if test $in_tree_gas_is_elf = yes \
20897 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20898 then gcc_cv_as_shf_merge=yes
20899 fi
20900 elif test x$gcc_cv_as != x; then
20901 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20902 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }
20908 then
20909 gcc_cv_as_shf_merge=yes
20910 else
20911 echo "configure: failed program was" >&5
20912 cat conftest.s >&5
20913 fi
20914 rm -f conftest.o conftest.s
20915 fi
20916 fi
20917 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20918 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20919
20920 if test $gcc_cv_as_shf_merge = no; then
20921 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20922 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20923 if test "${gcc_cv_as_shf_merge+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926 gcc_cv_as_shf_merge=no
20927 if test $in_tree_gas = yes; then
20928 if test $in_tree_gas_is_elf = yes \
20929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20930 then gcc_cv_as_shf_merge=yes
20931 fi
20932 elif test x$gcc_cv_as != x; then
20933 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20934 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }
20940 then
20941 gcc_cv_as_shf_merge=yes
20942 else
20943 echo "configure: failed program was" >&5
20944 cat conftest.s >&5
20945 fi
20946 rm -f conftest.o conftest.s
20947 fi
20948 fi
20949 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20950 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20951
20952 fi
20953
20954 cat >>confdefs.h <<_ACEOF
20955 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20956 _ACEOF
20957
20958
20959 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20960 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20961 if test "${gcc_cv_as_comdat_group+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 else
20964 gcc_cv_as_comdat_group=no
20965 if test $in_tree_gas = yes; then
20966 if test $in_tree_gas_is_elf = yes \
20967 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20968 then gcc_cv_as_comdat_group=yes
20969 fi
20970 elif test x$gcc_cv_as != x; then
20971 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20972 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977 (exit $ac_status); }; }
20978 then
20979 gcc_cv_as_comdat_group=yes
20980 else
20981 echo "configure: failed program was" >&5
20982 cat conftest.s >&5
20983 fi
20984 rm -f conftest.o conftest.s
20985 fi
20986 fi
20987 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20988 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20989
20990 if test $gcc_cv_as_comdat_group = yes; then
20991 gcc_cv_as_comdat_group_percent=no
20992 else
20993 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20994 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20995 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20996 echo $ECHO_N "(cached) $ECHO_C" >&6
20997 else
20998 gcc_cv_as_comdat_group_percent=no
20999 if test $in_tree_gas = yes; then
21000 if test $in_tree_gas_is_elf = yes \
21001 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21002 then gcc_cv_as_comdat_group_percent=yes
21003 fi
21004 elif test x$gcc_cv_as != x; then
21005 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21006 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21008 (eval $ac_try) 2>&5
21009 ac_status=$?
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; }
21012 then
21013 gcc_cv_as_comdat_group_percent=yes
21014 else
21015 echo "configure: failed program was" >&5
21016 cat conftest.s >&5
21017 fi
21018 rm -f conftest.o conftest.s
21019 fi
21020 fi
21021 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21022 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21023
21024 fi
21025 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21026 comdat_group=yes
21027 if test 0"$ld_date" -lt 20050308; then
21028 if test -n "$ld_date"; then
21029 # If there was date string, but was earlier than 2005-03-08, fail
21030 comdat_group=no
21031 elif test "$ld_vers_major" -lt 2; then
21032 comdat_group=no
21033 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21034 comdat_group=no
21035 fi
21036 fi
21037 else
21038 # assume linkers other than GNU ld don't support COMDAT group
21039 comdat_group=no
21040 fi
21041 if test $comdat_group = no; then
21042 gcc_cv_as_comdat_group=no
21043 gcc_cv_as_comdat_group_percent=no
21044 fi
21045
21046 cat >>confdefs.h <<_ACEOF
21047 #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`
21048 _ACEOF
21049
21050
21051 # Thread-local storage - the check is heavily parametrized.
21052 conftest_s=
21053 tls_first_major=
21054 tls_first_minor=
21055 tls_as_opt=
21056 case "$target" in
21057 alpha*-*-*)
21058 conftest_s='
21059 .section ".tdata","awT",@progbits
21060 foo: .long 25
21061 .text
21062 ldq $27,__tls_get_addr($29) !literal!1
21063 lda $16,foo($29) !tlsgd!1
21064 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21065 ldq $27,__tls_get_addr($29) !literal!2
21066 lda $16,foo($29) !tlsldm!2
21067 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21068 ldq $1,foo($29) !gotdtprel
21069 ldah $2,foo($29) !dtprelhi
21070 lda $3,foo($2) !dtprello
21071 lda $4,foo($29) !dtprel
21072 ldq $1,foo($29) !gottprel
21073 ldah $2,foo($29) !tprelhi
21074 lda $3,foo($2) !tprello
21075 lda $4,foo($29) !tprel'
21076 tls_first_major=2
21077 tls_first_minor=13
21078 tls_as_opt=--fatal-warnings
21079 ;;
21080 frv*-*-*)
21081 conftest_s='
21082 .section ".tdata","awT",@progbits
21083 x: .long 25
21084 .text
21085 call #gettlsoff(x)'
21086 tls_first_major=2
21087 tls_first_minor=14
21088 ;;
21089 hppa*-*-linux*)
21090 conftest_s='
21091 t1: .reg %r20
21092 t2: .reg %r21
21093 gp: .reg %r19
21094 .section ".tdata","awT",@progbits
21095 foo: .long 25
21096 .text
21097 .align 4
21098 addil LT%foo-$tls_gdidx$,gp
21099 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21100 b __tls_get_addr
21101 nop
21102 addil LT%foo-$tls_ldidx$,gp
21103 b __tls_get_addr
21104 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21105 addil LR%foo-$tls_dtpoff$,%ret0
21106 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21107 mfctl %cr27,%t1
21108 addil LT%foo-$tls_ieoff$,gp
21109 ldw RT%foo-$tls_ieoff$(%r1),%t2
21110 add %t1,%t2,%t3
21111 mfctl %cr27,%t1
21112 addil LR%foo-$tls_leoff$,%t1
21113 ldo RR%foo-$tls_leoff$(%r1),%t2'
21114 tls_first_major=2
21115 tls_first_minor=15
21116 tls_as_opt=--fatal-warnings
21117 ;;
21118 arm*-*-*)
21119 conftest_s='
21120 .section ".tdata","awT",%progbits
21121 foo: .long 25
21122 .text
21123 .word foo(gottpoff)
21124 .word foo(tpoff)
21125 .word foo(tlsgd)
21126 .word foo(tlsldm)
21127 .word foo(tlsldo)'
21128 tls_first_major=2
21129 tls_first_minor=17
21130 ;;
21131 i[34567]86-*-*)
21132 conftest_s='
21133 .section ".tdata","awT",@progbits
21134 foo: .long 25
21135 .text
21136 movl %gs:0, %eax
21137 leal foo@TLSGD(,%ebx,1), %eax
21138 leal foo@TLSLDM(%ebx), %eax
21139 leal foo@DTPOFF(%eax), %edx
21140 movl foo@GOTTPOFF(%ebx), %eax
21141 subl foo@GOTTPOFF(%ebx), %eax
21142 addl foo@GOTNTPOFF(%ebx), %eax
21143 movl foo@INDNTPOFF, %eax
21144 movl $foo@TPOFF, %eax
21145 subl $foo@TPOFF, %eax
21146 leal foo@NTPOFF(%ecx), %eax'
21147 tls_first_major=2
21148 tls_first_minor=14
21149 tls_as_opt=--fatal-warnings
21150 ;;
21151 x86_64-*-*)
21152 conftest_s='
21153 .section ".tdata","awT",@progbits
21154 foo: .long 25
21155 .text
21156 movq %fs:0, %rax
21157 leaq foo@TLSGD(%rip), %rdi
21158 leaq foo@TLSLD(%rip), %rdi
21159 leaq foo@DTPOFF(%rax), %rdx
21160 movq foo@GOTTPOFF(%rip), %rax
21161 movq $foo@TPOFF, %rax'
21162 tls_first_major=2
21163 tls_first_minor=14
21164 tls_as_opt=--fatal-warnings
21165 ;;
21166 ia64-*-*)
21167 conftest_s='
21168 .section ".tdata","awT",@progbits
21169 foo: data8 25
21170 .text
21171 addl r16 = @ltoff(@dtpmod(foo#)), gp
21172 addl r17 = @ltoff(@dtprel(foo#)), gp
21173 addl r18 = @ltoff(@tprel(foo#)), gp
21174 addl r19 = @dtprel(foo#), gp
21175 adds r21 = @dtprel(foo#), r13
21176 movl r23 = @dtprel(foo#)
21177 addl r20 = @tprel(foo#), gp
21178 adds r22 = @tprel(foo#), r13
21179 movl r24 = @tprel(foo#)'
21180 tls_first_major=2
21181 tls_first_minor=13
21182 tls_as_opt=--fatal-warnings
21183 ;;
21184 mips*-*-*)
21185 conftest_s='
21186 .section .tdata,"awT",@progbits
21187 x:
21188 .word 2
21189 .text
21190 addiu $4, $28, %tlsgd(x)
21191 addiu $4, $28, %tlsldm(x)
21192 lui $4, %dtprel_hi(x)
21193 addiu $4, $4, %dtprel_lo(x)
21194 lw $4, %gottprel(x)($28)
21195 lui $4, %tprel_hi(x)
21196 addiu $4, $4, %tprel_lo(x)'
21197 tls_first_major=2
21198 tls_first_minor=16
21199 tls_as_opt='-32 --fatal-warnings'
21200 ;;
21201 powerpc-*-*)
21202 conftest_s='
21203 .section ".tdata","awT",@progbits
21204 .align 2
21205 ld0: .space 4
21206 ld1: .space 4
21207 x1: .space 4
21208 x2: .space 4
21209 x3: .space 4
21210 .text
21211 addi 3,31,ld0@got@tlsgd
21212 bl __tls_get_addr
21213 addi 3,31,x1@got@tlsld
21214 bl __tls_get_addr
21215 addi 9,3,x1@dtprel
21216 addis 9,3,x2@dtprel@ha
21217 addi 9,9,x2@dtprel@l
21218 lwz 9,x3@got@tprel(31)
21219 add 9,9,x@tls
21220 addi 9,2,x1@tprel
21221 addis 9,2,x2@tprel@ha
21222 addi 9,9,x2@tprel@l'
21223 tls_first_major=2
21224 tls_first_minor=14
21225 tls_as_opt="-a32 --fatal-warnings"
21226 ;;
21227 powerpc64-*-*)
21228 conftest_s='
21229 .section ".tdata","awT",@progbits
21230 .align 3
21231 ld0: .space 8
21232 ld1: .space 8
21233 x1: .space 8
21234 x2: .space 8
21235 x3: .space 8
21236 .text
21237 addi 3,2,ld0@got@tlsgd
21238 bl .__tls_get_addr
21239 nop
21240 addi 3,2,ld1@toc
21241 bl .__tls_get_addr
21242 nop
21243 addi 3,2,x1@got@tlsld
21244 bl .__tls_get_addr
21245 nop
21246 addi 9,3,x1@dtprel
21247 bl .__tls_get_addr
21248 nop
21249 addis 9,3,x2@dtprel@ha
21250 addi 9,9,x2@dtprel@l
21251 bl .__tls_get_addr
21252 nop
21253 ld 9,x3@got@dtprel(2)
21254 add 9,9,3
21255 bl .__tls_get_addr
21256 nop'
21257 tls_first_major=2
21258 tls_first_minor=14
21259 tls_as_opt="-a64 --fatal-warnings"
21260 ;;
21261 s390-*-*)
21262 conftest_s='
21263 .section ".tdata","awT",@progbits
21264 foo: .long 25
21265 .text
21266 .long foo@TLSGD
21267 .long foo@TLSLDM
21268 .long foo@DTPOFF
21269 .long foo@NTPOFF
21270 .long foo@GOTNTPOFF
21271 .long foo@INDNTPOFF
21272 l %r1,foo@GOTNTPOFF(%r12)
21273 l %r1,0(%r1):tls_load:foo
21274 bas %r14,0(%r1,%r13):tls_gdcall:foo
21275 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21276 tls_first_major=2
21277 tls_first_minor=14
21278 tls_as_opt="-m31 --fatal-warnings"
21279 ;;
21280 s390x-*-*)
21281 conftest_s='
21282 .section ".tdata","awT",@progbits
21283 foo: .long 25
21284 .text
21285 .quad foo@TLSGD
21286 .quad foo@TLSLDM
21287 .quad foo@DTPOFF
21288 .quad foo@NTPOFF
21289 .quad foo@GOTNTPOFF
21290 lg %r1,foo@GOTNTPOFF(%r12)
21291 larl %r1,foo@INDNTPOFF
21292 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21293 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21294 tls_first_major=2
21295 tls_first_minor=14
21296 tls_as_opt="-m64 -Aesame --fatal-warnings"
21297 ;;
21298 sh-*-* | sh[34]-*-*)
21299 conftest_s='
21300 .section ".tdata","awT",@progbits
21301 foo: .long 25
21302 .text
21303 .long foo@TLSGD
21304 .long foo@TLSLDM
21305 .long foo@DTPOFF
21306 .long foo@GOTTPOFF
21307 .long foo@TPOFF'
21308 tls_first_major=2
21309 tls_first_minor=13
21310 tls_as_opt=--fatal-warnings
21311 ;;
21312 sparc*-*-*)
21313 case "$target" in
21314 sparc*-sun-solaris2.[56789]*)
21315 # TLS was introduced in the Solaris 9 4/04 release but
21316 # we do not enable it by default on Solaris 9 either.
21317 if test "x$enable_tls" = xyes ; then
21318 on_solaris=yes
21319 else
21320 enable_tls=no;
21321 fi
21322 ;;
21323 sparc*-sun-solaris2.*)
21324 on_solaris=yes
21325 ;;
21326 *)
21327 on_solaris=no
21328 ;;
21329 esac
21330 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21331 conftest_s='
21332 .section ".tdata",#alloc,#write,#tls
21333 foo: .long 25
21334 .text
21335 sethi %tgd_hi22(foo), %o0
21336 add %o0, %tgd_lo10(foo), %o1
21337 add %l7, %o1, %o0, %tgd_add(foo)
21338 call __tls_get_addr, %tgd_call(foo)
21339 sethi %tldm_hi22(foo), %l1
21340 add %l1, %tldm_lo10(foo), %l2
21341 add %l7, %l2, %o0, %tldm_add(foo)
21342 call __tls_get_addr, %tldm_call(foo)
21343 sethi %tldo_hix22(foo), %l3
21344 xor %l3, %tldo_lox10(foo), %l4
21345 add %o0, %l4, %l5, %tldo_add(foo)
21346 sethi %tie_hi22(foo), %o3
21347 add %o3, %tie_lo10(foo), %o3
21348 ld [%l7 + %o3], %o2, %tie_ld(foo)
21349 add %g7, %o2, %o4, %tie_add(foo)
21350 sethi %tle_hix22(foo), %l1
21351 xor %l1, %tle_lox10(foo), %o5
21352 ld [%g7 + %o5], %o1'
21353 tls_first_major=0
21354 tls_first_minor=0
21355 else
21356 conftest_s='
21357 .section ".tdata","awT",@progbits
21358 foo: .long 25
21359 .text
21360 sethi %tgd_hi22(foo), %o0
21361 add %o0, %tgd_lo10(foo), %o1
21362 add %l7, %o1, %o0, %tgd_add(foo)
21363 call __tls_get_addr, %tgd_call(foo)
21364 sethi %tldm_hi22(foo), %l1
21365 add %l1, %tldm_lo10(foo), %l2
21366 add %l7, %l2, %o0, %tldm_add(foo)
21367 call __tls_get_addr, %tldm_call(foo)
21368 sethi %tldo_hix22(foo), %l3
21369 xor %l3, %tldo_lox10(foo), %l4
21370 add %o0, %l4, %l5, %tldo_add(foo)
21371 sethi %tie_hi22(foo), %o3
21372 add %o3, %tie_lo10(foo), %o3
21373 ld [%l7 + %o3], %o2, %tie_ld(foo)
21374 add %g7, %o2, %o4, %tie_add(foo)
21375 sethi %tle_hix22(foo), %l1
21376 xor %l1, %tle_lox10(foo), %o5
21377 ld [%g7 + %o5], %o1'
21378 tls_first_major=2
21379 tls_first_minor=14
21380 tls_as_opt="-32 --fatal-warnings"
21381 fi
21382 ;;
21383 esac
21384 set_have_as_tls=no
21385 if test "x$enable_tls" = xno ; then
21386 : # TLS explicitly disabled.
21387 elif test "x$enable_tls" = xyes ; then
21388 set_have_as_tls=yes # TLS explicitly enabled.
21389 elif test -z "$tls_first_major"; then
21390 : # If we don't have a check, assume no support.
21391 else
21392 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21393 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21394 if test "${gcc_cv_as_tls+set}" = set; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397 gcc_cv_as_tls=no
21398 if test $in_tree_gas = yes; then
21399 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21400 then gcc_cv_as_tls=yes
21401 fi
21402 elif test x$gcc_cv_as != x; then
21403 echo "$conftest_s" > conftest.s
21404 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; }
21410 then
21411 gcc_cv_as_tls=yes
21412 else
21413 echo "configure: failed program was" >&5
21414 cat conftest.s >&5
21415 fi
21416 rm -f conftest.o conftest.s
21417 fi
21418 fi
21419 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21420 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21421 if test $gcc_cv_as_tls = yes; then
21422 set_have_as_tls=yes
21423 fi
21424 fi
21425 if test $set_have_as_tls = yes ; then
21426
21427 cat >>confdefs.h <<\_ACEOF
21428 #define HAVE_AS_TLS 1
21429 _ACEOF
21430
21431 fi
21432
21433 # Target-specific assembler checks.
21434
21435 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21436 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21437 gcc_cv_ld_static_dynamic=no
21438 if test $in_tree_ld = yes ; then
21439 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21440 gcc_cv_ld_static_dynamic=yes
21441 fi
21442 elif test x$gcc_cv_ld != x; then
21443 # Check if linker supports -Bstatic/-Bdynamic option
21444 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21445 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21446 gcc_cv_ld_static_dynamic=yes
21447 fi
21448 fi
21449 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21450
21451 cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_LD_STATIC_DYNAMIC 1
21453 _ACEOF
21454
21455 fi
21456 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21457 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21458
21459 if test x"$demangler_in_ld" = xyes; then
21460 echo "$as_me:$LINENO: checking linker --demangle support" >&5
21461 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21462 gcc_cv_ld_demangle=no
21463 if test $in_tree_ld = yes; then
21464 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 \
21465 gcc_cv_ld_demangle=yes
21466 fi
21467 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21468 # Check if the GNU linker supports --demangle option
21469 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21470 gcc_cv_ld_demangle=yes
21471 fi
21472 fi
21473 if test x"$gcc_cv_ld_demangle" = xyes; then
21474
21475 cat >>confdefs.h <<\_ACEOF
21476 #define HAVE_LD_DEMANGLE 1
21477 _ACEOF
21478
21479 fi
21480 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21481 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21482 fi
21483
21484 case "$target" in
21485 # All TARGET_ABI_OSF targets.
21486 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21487 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21488 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21489 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492 gcc_cv_as_alpha_explicit_relocs=no
21493 if test $in_tree_gas = yes; then
21494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21495 then gcc_cv_as_alpha_explicit_relocs=yes
21496 fi
21497 elif test x$gcc_cv_as != x; then
21498 echo ' .set nomacro
21499 .text
21500 extbl $3, $2, $3 !lituse_bytoff!1
21501 ldq $2, a($29) !literal!1
21502 ldq $4, b($29) !literal!2
21503 ldq_u $3, 0($2) !lituse_base!1
21504 ldq $27, f($29) !literal!5
21505 jsr $26, ($27), f !lituse_jsr!5
21506 ldah $29, 0($26) !gpdisp!3
21507 lda $0, c($29) !gprel
21508 ldah $1, d($29) !gprelhigh
21509 lda $1, d($1) !gprellow
21510 lda $29, 0($29) !gpdisp!3' > conftest.s
21511 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }
21517 then
21518 gcc_cv_as_alpha_explicit_relocs=yes
21519 else
21520 echo "configure: failed program was" >&5
21521 cat conftest.s >&5
21522 fi
21523 rm -f conftest.o conftest.s
21524 fi
21525 fi
21526 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21527 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21528 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21529
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_AS_EXPLICIT_RELOCS 1
21532 _ACEOF
21533
21534 fi
21535 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21536 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21537 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540 gcc_cv_as_alpha_jsrdirect_relocs=no
21541 if test $in_tree_gas = yes; then
21542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21543 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21544 fi
21545 elif test x$gcc_cv_as != x; then
21546 echo ' .set nomacro
21547 .text
21548 ldq $27, a($29) !literal!1
21549 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21550 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; }
21556 then
21557 gcc_cv_as_alpha_jsrdirect_relocs=yes
21558 else
21559 echo "configure: failed program was" >&5
21560 cat conftest.s >&5
21561 fi
21562 rm -f conftest.o conftest.s
21563 fi
21564 fi
21565 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21566 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21567 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21568
21569 cat >>confdefs.h <<\_ACEOF
21570 #define HAVE_AS_JSRDIRECT_RELOCS 1
21571 _ACEOF
21572
21573 fi
21574 ;;
21575
21576 cris-*-*)
21577 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21578 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21579 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 else
21582 gcc_cv_as_cris_no_mul_bug=no
21583 if test $in_tree_gas = yes; then
21584 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21585 then gcc_cv_as_cris_no_mul_bug=yes
21586 fi
21587 elif test x$gcc_cv_as != x; then
21588 echo '.text' > conftest.s
21589 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }
21595 then
21596 gcc_cv_as_cris_no_mul_bug=yes
21597 else
21598 echo "configure: failed program was" >&5
21599 cat conftest.s >&5
21600 fi
21601 rm -f conftest.o conftest.s
21602 fi
21603 fi
21604 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21605 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21606 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21607
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21610 _ACEOF
21611
21612 fi
21613 ;;
21614
21615 sparc*-*-*)
21616 echo "$as_me:$LINENO: checking assembler for .register" >&5
21617 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21618 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621 gcc_cv_as_sparc_register_op=no
21622 if test x$gcc_cv_as != x; then
21623 echo '.register %g2, #scratch' > conftest.s
21624 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }
21630 then
21631 gcc_cv_as_sparc_register_op=yes
21632 else
21633 echo "configure: failed program was" >&5
21634 cat conftest.s >&5
21635 fi
21636 rm -f conftest.o conftest.s
21637 fi
21638 fi
21639 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21640 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21641 if test $gcc_cv_as_sparc_register_op = yes; then
21642
21643 cat >>confdefs.h <<\_ACEOF
21644 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21645 _ACEOF
21646
21647 fi
21648
21649 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21650 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21651 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 else
21654 gcc_cv_as_sparc_relax=no
21655 if test x$gcc_cv_as != x; then
21656 echo '.text' > conftest.s
21657 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }
21663 then
21664 gcc_cv_as_sparc_relax=yes
21665 else
21666 echo "configure: failed program was" >&5
21667 cat conftest.s >&5
21668 fi
21669 rm -f conftest.o conftest.s
21670 fi
21671 fi
21672 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21673 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21674 if test $gcc_cv_as_sparc_relax = yes; then
21675
21676 cat >>confdefs.h <<\_ACEOF
21677 #define HAVE_AS_RELAX_OPTION 1
21678 _ACEOF
21679
21680 fi
21681
21682 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21683 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21684 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21685 echo $ECHO_N "(cached) $ECHO_C" >&6
21686 else
21687 gcc_cv_as_sparc_ua_pcrel=no
21688 if test x$gcc_cv_as != x; then
21689 echo '.text
21690 foo:
21691 nop
21692 .data
21693 .align 4
21694 .byte 0
21695 .uaword %r_disp32(foo)' > conftest.s
21696 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; }
21702 then
21703 if test x$gcc_cv_ld != x \
21704 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21705 gcc_cv_as_sparc_ua_pcrel=yes
21706 fi
21707 rm -f conftest
21708 else
21709 echo "configure: failed program was" >&5
21710 cat conftest.s >&5
21711 fi
21712 rm -f conftest.o conftest.s
21713 fi
21714 fi
21715 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21716 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21717 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21718
21719 cat >>confdefs.h <<\_ACEOF
21720 #define HAVE_AS_SPARC_UA_PCREL 1
21721 _ACEOF
21722
21723
21724 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21725 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21726 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 else
21729 gcc_cv_as_sparc_ua_pcrel_hidden=no
21730 if test x$gcc_cv_as != x; then
21731 echo '.data
21732 .align 4
21733 .byte 0x31
21734 .uaword %r_disp32(foo)
21735 .byte 0x32, 0x33, 0x34
21736 .global foo
21737 .hidden foo
21738 foo:
21739 .skip 4' > conftest.s
21740 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; }
21746 then
21747 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21748 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21749 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21750 | grep ' 31000000 07323334' > /dev/null 2>&1; then
21751 if $gcc_cv_objdump -R conftest 2> /dev/null \
21752 | grep 'DISP32' > /dev/null 2>&1; then
21753 :
21754 else
21755 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21756 fi
21757 fi
21758 rm -f conftest
21759 else
21760 echo "configure: failed program was" >&5
21761 cat conftest.s >&5
21762 fi
21763 rm -f conftest.o conftest.s
21764 fi
21765 fi
21766 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21767 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21768 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21769
21770 cat >>confdefs.h <<\_ACEOF
21771 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21772 _ACEOF
21773
21774 fi
21775
21776 fi # unaligned pcrel relocs
21777
21778 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21779 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21780 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783 gcc_cv_as_sparc_offsetable_lo10=no
21784 if test x$gcc_cv_as != x; then
21785 echo '.text
21786 or %g1, %lo(ab) + 12, %g1
21787 or %g1, %lo(ab + 12), %g1' > conftest.s
21788 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }
21794 then
21795 if test x$gcc_cv_objdump != x \
21796 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21797 | grep ' 82106000 82106000' > /dev/null 2>&1; then
21798 gcc_cv_as_sparc_offsetable_lo10=yes
21799 fi
21800 else
21801 echo "configure: failed program was" >&5
21802 cat conftest.s >&5
21803 fi
21804 rm -f conftest.o conftest.s
21805 fi
21806 fi
21807 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21808 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21809 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21810
21811 cat >>confdefs.h <<\_ACEOF
21812 #define HAVE_AS_OFFSETABLE_LO10 1
21813 _ACEOF
21814
21815 fi
21816 ;;
21817
21818 i[34567]86-*-* | x86_64-*-*)
21819 case $target_os in
21820 cygwin* | pe | mingw32*)
21821 # Used for DWARF 2 in PE
21822 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21823 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21824 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21825 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 else
21827 gcc_cv_as_ix86_pe_secrel32=no
21828 if test $in_tree_gas = yes; then
21829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21830 then gcc_cv_as_ix86_pe_secrel32=yes
21831 fi
21832 elif test x$gcc_cv_as != x; then
21833 echo '.text
21834 foo: nop
21835 .data
21836 .secrel32 foo' > conftest.s
21837 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839 (eval $ac_try) 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; }
21843 then
21844 if test x$gcc_cv_ld != x \
21845 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21846 gcc_cv_as_ix86_pe_secrel32=yes
21847 fi
21848 rm -f conftest
21849 else
21850 echo "configure: failed program was" >&5
21851 cat conftest.s >&5
21852 fi
21853 rm -f conftest.o conftest.s
21854 fi
21855 fi
21856 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21857 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21858 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21859
21860 cat >>confdefs.h <<\_ACEOF
21861 #define HAVE_GAS_PE_SECREL32_RELOC 1
21862 _ACEOF
21863
21864 fi
21865 ;;
21866 esac
21867
21868 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21869 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21870 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 gcc_cv_as_ix86_filds_fists=no
21874 if test $in_tree_gas = yes; then
21875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21876 then gcc_cv_as_ix86_filds_fists=yes
21877 fi
21878 elif test x$gcc_cv_as != x; then
21879 echo 'filds mem; fists mem' > conftest.s
21880 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; }
21886 then
21887 gcc_cv_as_ix86_filds_fists=yes
21888 else
21889 echo "configure: failed program was" >&5
21890 cat conftest.s >&5
21891 fi
21892 rm -f conftest.o conftest.s
21893 fi
21894 fi
21895 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21896 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21897 if test $gcc_cv_as_ix86_filds_fists = yes; then
21898
21899 cat >>confdefs.h <<\_ACEOF
21900 #define HAVE_GAS_FILDS_FISTS 1
21901 _ACEOF
21902
21903 fi
21904
21905 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21906 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21907 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910 gcc_cv_as_ix86_cmov_sun_syntax=no
21911 if test x$gcc_cv_as != x; then
21912 echo 'cmovl.l %edx, %eax' > conftest.s
21913 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; }
21919 then
21920 gcc_cv_as_ix86_cmov_sun_syntax=yes
21921 else
21922 echo "configure: failed program was" >&5
21923 cat conftest.s >&5
21924 fi
21925 rm -f conftest.o conftest.s
21926 fi
21927 fi
21928 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21929 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21930 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21931
21932 cat >>confdefs.h <<\_ACEOF
21933 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21934 _ACEOF
21935
21936 fi
21937
21938 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21939 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21940 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 else
21943 gcc_cv_as_ix86_ffreep=no
21944 if test x$gcc_cv_as != x; then
21945 echo 'ffreep %st(1)' > conftest.s
21946 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }
21952 then
21953 gcc_cv_as_ix86_ffreep=yes
21954 else
21955 echo "configure: failed program was" >&5
21956 cat conftest.s >&5
21957 fi
21958 rm -f conftest.o conftest.s
21959 fi
21960 fi
21961 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21962 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21963 if test $gcc_cv_as_ix86_ffreep = yes; then
21964
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_AS_IX86_FFREEP 1
21967 _ACEOF
21968
21969 fi
21970
21971 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21972 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21973 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976 gcc_cv_as_ix86_sahf=no
21977 if test x$gcc_cv_as != x; then
21978 echo 'sahf' > conftest.s
21979 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; }
21985 then
21986 gcc_cv_as_ix86_sahf=yes
21987 else
21988 echo "configure: failed program was" >&5
21989 cat conftest.s >&5
21990 fi
21991 rm -f conftest.o conftest.s
21992 fi
21993 fi
21994 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21995 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21996 if test $gcc_cv_as_ix86_sahf = yes; then
21997
21998 cat >>confdefs.h <<\_ACEOF
21999 #define HAVE_AS_IX86_SAHF 1
22000 _ACEOF
22001
22002 fi
22003
22004 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22005 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22006 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009 gcc_cv_as_ix86_diff_sect_delta=no
22010 if test x$gcc_cv_as != x; then
22011 echo '.section .rodata
22012 .L1:
22013 .long .L2-.L1
22014 .long .L3-.L1
22015 .text
22016 .L3: nop
22017 .L2: nop' > conftest.s
22018 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }
22024 then
22025 gcc_cv_as_ix86_diff_sect_delta=yes
22026 else
22027 echo "configure: failed program was" >&5
22028 cat conftest.s >&5
22029 fi
22030 rm -f conftest.o conftest.s
22031 fi
22032 fi
22033 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22034 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22035 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22036
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22039 _ACEOF
22040
22041 fi
22042
22043 # This one is used unconditionally by i386.[ch]; it is to be defined
22044 # to 1 if the feature is present, 0 otherwise.
22045 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22046 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22047 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 gcc_cv_as_ix86_gotoff_in_data=no
22051 if test $in_tree_gas = yes; then
22052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22053 then gcc_cv_as_ix86_gotoff_in_data=yes
22054 fi
22055 elif test x$gcc_cv_as != x; then
22056 echo ' .text
22057 .L0:
22058 nop
22059 .data
22060 .long .L0@GOTOFF' > conftest.s
22061 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }
22067 then
22068 gcc_cv_as_ix86_gotoff_in_data=yes
22069 else
22070 echo "configure: failed program was" >&5
22071 cat conftest.s >&5
22072 fi
22073 rm -f conftest.o conftest.s
22074 fi
22075 fi
22076 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22077 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22078
22079
22080 cat >>confdefs.h <<_ACEOF
22081 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22082 _ACEOF
22083
22084 ;;
22085
22086 ia64*-*-*)
22087 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22088 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22089 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22093 if test $in_tree_gas = yes; then
22094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22095 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22096 fi
22097 elif test x$gcc_cv_as != x; then
22098 echo ' .text
22099 addl r15 = @ltoffx(x#), gp
22100 ;;
22101 ld8.mov r16 = [r15], x#' > conftest.s
22102 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }
22108 then
22109 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22110 else
22111 echo "configure: failed program was" >&5
22112 cat conftest.s >&5
22113 fi
22114 rm -f conftest.o conftest.s
22115 fi
22116 fi
22117 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22118 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22119 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22120
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22123 _ACEOF
22124
22125 fi
22126
22127 ;;
22128
22129 powerpc*-*-*)
22130 case $target in
22131 *-*-aix*) conftest_s=' .machine "pwr5"
22132 .csect .text[PR]
22133 mfcr 3,128';;
22134 *-*-darwin*)
22135 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22136 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22137 if test "${gcc_cv_as_machine_directive+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140 gcc_cv_as_machine_directive=no
22141 if test x$gcc_cv_as != x; then
22142 echo ' .machine ppc7400' > conftest.s
22143 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }
22149 then
22150 gcc_cv_as_machine_directive=yes
22151 else
22152 echo "configure: failed program was" >&5
22153 cat conftest.s >&5
22154 fi
22155 rm -f conftest.o conftest.s
22156 fi
22157 fi
22158 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22159 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22160
22161 if test x$gcc_cv_as_machine_directive != xyes; then
22162 echo "*** This target requires an assembler supporting \".machine\"" >&2
22163 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22164 test x$build = x$target && exit 1
22165 fi
22166 conftest_s=' .text
22167 mfcr r3,128';;
22168 *) conftest_s=' .machine power4
22169 .text
22170 mfcr 3,128';;
22171 esac
22172
22173 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22174 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22175 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 else
22178 gcc_cv_as_powerpc_mfcrf=no
22179 if test $in_tree_gas = yes; then
22180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22181 then gcc_cv_as_powerpc_mfcrf=yes
22182 fi
22183 elif test x$gcc_cv_as != x; then
22184 echo "$conftest_s" > conftest.s
22185 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22187 (eval $ac_try) 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }
22191 then
22192 gcc_cv_as_powerpc_mfcrf=yes
22193 else
22194 echo "configure: failed program was" >&5
22195 cat conftest.s >&5
22196 fi
22197 rm -f conftest.o conftest.s
22198 fi
22199 fi
22200 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22201 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22202 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22203
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_AS_MFCRF 1
22206 _ACEOF
22207
22208 fi
22209
22210 case $target in
22211 *-*-aix*) conftest_s=' .machine "pwr5"
22212 .csect .text[PR]
22213 popcntb 3,3';;
22214 *) conftest_s=' .machine power5
22215 .text
22216 popcntb 3,3';;
22217 esac
22218
22219 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22220 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22221 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224 gcc_cv_as_powerpc_popcntb=no
22225 if test $in_tree_gas = yes; then
22226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22227 then gcc_cv_as_powerpc_popcntb=yes
22228 fi
22229 elif test x$gcc_cv_as != x; then
22230 echo "$conftest_s" > conftest.s
22231 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }
22237 then
22238 gcc_cv_as_powerpc_popcntb=yes
22239 else
22240 echo "configure: failed program was" >&5
22241 cat conftest.s >&5
22242 fi
22243 rm -f conftest.o conftest.s
22244 fi
22245 fi
22246 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22247 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22248 if test $gcc_cv_as_powerpc_popcntb = yes; then
22249
22250 cat >>confdefs.h <<\_ACEOF
22251 #define HAVE_AS_POPCNTB 1
22252 _ACEOF
22253
22254 fi
22255
22256 case $target in
22257 *-*-aix*) conftest_s=' .machine "pwr5x"
22258 .csect .text[PR]
22259 frin 1,1';;
22260 *) conftest_s=' .machine power5
22261 .text
22262 frin 1,1';;
22263 esac
22264
22265 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22266 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22267 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269 else
22270 gcc_cv_as_powerpc_fprnd=no
22271 if test $in_tree_gas = yes; then
22272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22273 then gcc_cv_as_powerpc_fprnd=yes
22274 fi
22275 elif test x$gcc_cv_as != x; then
22276 echo "$conftest_s" > conftest.s
22277 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }
22283 then
22284 gcc_cv_as_powerpc_fprnd=yes
22285 else
22286 echo "configure: failed program was" >&5
22287 cat conftest.s >&5
22288 fi
22289 rm -f conftest.o conftest.s
22290 fi
22291 fi
22292 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22293 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22294 if test $gcc_cv_as_powerpc_fprnd = yes; then
22295
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_AS_FPRND 1
22298 _ACEOF
22299
22300 fi
22301
22302 case $target in
22303 *-*-aix*) conftest_s=' .machine "pwr6"
22304 .csect .text[PR]
22305 mffgpr 1,3';;
22306 *) conftest_s=' .machine power6
22307 .text
22308 mffgpr 1,3';;
22309 esac
22310
22311 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22312 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22313 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22315 else
22316 gcc_cv_as_powerpc_mfpgpr=no
22317 if test $in_tree_gas = yes; then
22318 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22319 then gcc_cv_as_powerpc_mfpgpr=yes
22320 fi
22321 elif test x$gcc_cv_as != x; then
22322 echo "$conftest_s" > conftest.s
22323 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325 (eval $ac_try) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; }
22329 then
22330 gcc_cv_as_powerpc_mfpgpr=yes
22331 else
22332 echo "configure: failed program was" >&5
22333 cat conftest.s >&5
22334 fi
22335 rm -f conftest.o conftest.s
22336 fi
22337 fi
22338 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22339 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22340 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_AS_MFPGPR 1
22344 _ACEOF
22345
22346 fi
22347
22348 case $target in
22349 *-*-aix*) conftest_s=' .csect .text[PR]
22350 LCF..0:
22351 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22352 *-*-darwin*)
22353 conftest_s=' .text
22354 LCF0:
22355 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22356 *) conftest_s=' .text
22357 .LCF0:
22358 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22359 esac
22360
22361 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22362 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22363 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366 gcc_cv_as_powerpc_rel16=no
22367 if test $in_tree_gas = yes; then
22368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22369 then gcc_cv_as_powerpc_rel16=yes
22370 fi
22371 elif test x$gcc_cv_as != x; then
22372 echo "$conftest_s" > conftest.s
22373 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }
22379 then
22380 gcc_cv_as_powerpc_rel16=yes
22381 else
22382 echo "configure: failed program was" >&5
22383 cat conftest.s >&5
22384 fi
22385 rm -f conftest.o conftest.s
22386 fi
22387 fi
22388 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22389 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22390 if test $gcc_cv_as_powerpc_rel16 = yes; then
22391
22392 cat >>confdefs.h <<\_ACEOF
22393 #define HAVE_AS_REL16 1
22394 _ACEOF
22395
22396 fi
22397
22398 case $target in
22399 *-*-aix*) conftest_s=' .machine "pwr6"
22400 .csect .text[PR]
22401 cmpb 3,4,5';;
22402 *) conftest_s=' .machine power6
22403 .text
22404 cmpb 3,4,5';;
22405 esac
22406
22407 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22408 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22409 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22410 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 else
22412 gcc_cv_as_powerpc_cmpb=no
22413 if test $in_tree_gas = yes; then
22414 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22415 then gcc_cv_as_powerpc_cmpb=yes
22416 fi
22417 elif test x$gcc_cv_as != x; then
22418 echo "$conftest_s" > conftest.s
22419 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }
22425 then
22426 gcc_cv_as_powerpc_cmpb=yes
22427 else
22428 echo "configure: failed program was" >&5
22429 cat conftest.s >&5
22430 fi
22431 rm -f conftest.o conftest.s
22432 fi
22433 fi
22434 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22435 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22436 if test $gcc_cv_as_powerpc_cmpb = yes; then
22437
22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_AS_CMPB 1
22440 _ACEOF
22441
22442 fi
22443
22444 case $target in
22445 *-*-aix*) conftest_s=' .machine "pwr6"
22446 .csect .text[PR]
22447 dadd 1,2,3';;
22448 *) conftest_s=' .machine power6
22449 .text
22450 dadd 1,2,3';;
22451 esac
22452
22453 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22454 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22455 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458 gcc_cv_as_powerpc_dfp=no
22459 if test $in_tree_gas = yes; then
22460 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22461 then gcc_cv_as_powerpc_dfp=yes
22462 fi
22463 elif test x$gcc_cv_as != x; then
22464 echo "$conftest_s" > conftest.s
22465 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); }; }
22471 then
22472 gcc_cv_as_powerpc_dfp=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22476 fi
22477 rm -f conftest.o conftest.s
22478 fi
22479 fi
22480 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22481 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22482 if test $gcc_cv_as_powerpc_dfp = yes; then
22483
22484 cat >>confdefs.h <<\_ACEOF
22485 #define HAVE_AS_DFP 1
22486 _ACEOF
22487
22488 fi
22489
22490 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22491 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22492 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 gcc_cv_as_powerpc_gnu_attribute=no
22496 if test $in_tree_gas = yes; then
22497 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22498 then gcc_cv_as_powerpc_gnu_attribute=yes
22499 fi
22500 elif test x$gcc_cv_as != x; then
22501 echo '.gnu_attribute 4,1' > conftest.s
22502 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22505 ac_status=$?
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }
22508 then
22509 gcc_cv_as_powerpc_gnu_attribute=yes
22510 else
22511 echo "configure: failed program was" >&5
22512 cat conftest.s >&5
22513 fi
22514 rm -f conftest.o conftest.s
22515 fi
22516 fi
22517 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22518 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22519 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22520
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_AS_GNU_ATTRIBUTE 1
22523 _ACEOF
22524
22525 fi
22526 ;;
22527
22528 mips*-*-*)
22529 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22530 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22531 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 else
22534 gcc_cv_as_mips_explicit_relocs=no
22535 if test $in_tree_gas = yes; then
22536 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22537 then gcc_cv_as_mips_explicit_relocs=yes
22538 fi
22539 elif test x$gcc_cv_as != x; then
22540 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
22541 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }
22547 then
22548 gcc_cv_as_mips_explicit_relocs=yes
22549 else
22550 echo "configure: failed program was" >&5
22551 cat conftest.s >&5
22552 fi
22553 rm -f conftest.o conftest.s
22554 fi
22555 fi
22556 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22557 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22558 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22559 if test x$target_cpu_default = x
22560 then target_cpu_default=MASK_EXPLICIT_RELOCS
22561 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22562 fi
22563 fi
22564 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22565 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22566 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22567 echo $ECHO_N "(cached) $ECHO_C" >&6
22568 else
22569 gcc_cv_as_mips_no_shared=no
22570 if test $in_tree_gas = yes; then
22571 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22572 then gcc_cv_as_mips_no_shared=yes
22573 fi
22574 elif test x$gcc_cv_as != x; then
22575 echo 'nop' > conftest.s
22576 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; }
22582 then
22583 gcc_cv_as_mips_no_shared=yes
22584 else
22585 echo "configure: failed program was" >&5
22586 cat conftest.s >&5
22587 fi
22588 rm -f conftest.o conftest.s
22589 fi
22590 fi
22591 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22592 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22593 if test $gcc_cv_as_mips_no_shared = yes; then
22594
22595 cat >>confdefs.h <<\_ACEOF
22596 #define HAVE_AS_NO_SHARED 1
22597 _ACEOF
22598
22599 fi
22600
22601 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22602 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22603 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606 gcc_cv_as_mips_gnu_attribute=no
22607 if test $in_tree_gas = yes; then
22608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22609 then gcc_cv_as_mips_gnu_attribute=yes
22610 fi
22611 elif test x$gcc_cv_as != x; then
22612 echo '.gnu_attribute 4,1' > conftest.s
22613 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }
22619 then
22620 gcc_cv_as_mips_gnu_attribute=yes
22621 else
22622 echo "configure: failed program was" >&5
22623 cat conftest.s >&5
22624 fi
22625 rm -f conftest.o conftest.s
22626 fi
22627 fi
22628 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22629 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22630 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22631
22632 cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_AS_GNU_ATTRIBUTE 1
22634 _ACEOF
22635
22636 fi
22637
22638 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22639 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22640 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22641 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643 gcc_cv_as_mips_dtprelword=no
22644 if test $in_tree_gas = yes; then
22645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22646 then gcc_cv_as_mips_dtprelword=yes
22647 fi
22648 elif test x$gcc_cv_as != x; then
22649 echo '.section .tdata,"awT",@progbits
22650 x:
22651 .word 2
22652 .text
22653 .dtprelword x+0x8000' > conftest.s
22654 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); }; }
22660 then
22661 gcc_cv_as_mips_dtprelword=yes
22662 else
22663 echo "configure: failed program was" >&5
22664 cat conftest.s >&5
22665 fi
22666 rm -f conftest.o conftest.s
22667 fi
22668 fi
22669 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22670 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22671 if test $gcc_cv_as_mips_dtprelword = yes; then
22672
22673 cat >>confdefs.h <<\_ACEOF
22674 #define HAVE_AS_DTPRELWORD 1
22675 _ACEOF
22676
22677 fi
22678 ;;
22679 esac
22680
22681 # Mips and HP-UX need the GNU assembler.
22682 # Linux on IA64 might be able to use the Intel assembler.
22683
22684 case "$target" in
22685 mips*-*-* | *-*-hpux* )
22686 if test x$gas_flag = xyes \
22687 || test x"$host" != x"$build" \
22688 || test ! -x "$gcc_cv_as" \
22689 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22690 :
22691 else
22692 echo "*** This configuration requires the GNU assembler" >&2
22693 exit 1
22694 fi
22695 ;;
22696 esac
22697
22698 # ??? Not all targets support dwarf2 debug_line, even within a version
22699 # of gas. Moreover, we need to emit a valid instruction to trigger any
22700 # info to the output file. So, as supported targets are added to gas 2.11,
22701 # add some instruction here to (also) show we expect this might work.
22702 # ??? Once 2.11 is released, probably need to add first known working
22703 # version to the per-target configury.
22704 case "$target" in
22705 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22706 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22707 | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22708 | spu-*-* | fido*-*-*)
22709 insn="nop"
22710 ;;
22711 ia64*-*-* | s390*-*-*)
22712 insn="nop 0"
22713 ;;
22714 mmix-*-*)
22715 insn="swym 0"
22716 ;;
22717 esac
22718 if test x"$insn" != x; then
22719 conftest_s="\
22720 .file 1 \"conftest.s\"
22721 .loc 1 3 0
22722 $insn"
22723 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22724 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22725 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728 gcc_cv_as_dwarf2_debug_line=no
22729 if test $in_tree_gas = yes; then
22730 if test $in_tree_gas_is_elf = yes \
22731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22732 then gcc_cv_as_dwarf2_debug_line=yes
22733 fi
22734 elif test x$gcc_cv_as != x; then
22735 echo "$conftest_s" > conftest.s
22736 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; }
22742 then
22743 if test x$gcc_cv_objdump != x \
22744 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22745 | grep debug_line > /dev/null 2>&1; then
22746 gcc_cv_as_dwarf2_debug_line=yes
22747 fi
22748 else
22749 echo "configure: failed program was" >&5
22750 cat conftest.s >&5
22751 fi
22752 rm -f conftest.o conftest.s
22753 fi
22754 fi
22755 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22756 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22757
22758
22759 # The .debug_line file table must be in the exact order that
22760 # we specified the files, since these indices are also used
22761 # by DW_AT_decl_file. Approximate this test by testing if
22762 # the assembler bitches if the same index is assigned twice.
22763 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22764 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22765 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22766 echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768 gcc_cv_as_dwarf2_file_buggy=no
22769 if test x$gcc_cv_as != x; then
22770 echo ' .file 1 "foo.s"
22771 .file 1 "bar.s"' > conftest.s
22772 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }
22778 then
22779 gcc_cv_as_dwarf2_file_buggy=yes
22780 else
22781 echo "configure: failed program was" >&5
22782 cat conftest.s >&5
22783 fi
22784 rm -f conftest.o conftest.s
22785 fi
22786 fi
22787 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22788 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22789
22790
22791 if test $gcc_cv_as_dwarf2_debug_line = yes \
22792 && test $gcc_cv_as_dwarf2_file_buggy = no; then
22793
22794 cat >>confdefs.h <<\_ACEOF
22795 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22796 _ACEOF
22797
22798 fi
22799
22800 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22801 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22802 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22803 echo $ECHO_N "(cached) $ECHO_C" >&6
22804 else
22805 gcc_cv_as_gdwarf2_flag=no
22806 if test $in_tree_gas = yes; then
22807 if test $in_tree_gas_is_elf = yes \
22808 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22809 then gcc_cv_as_gdwarf2_flag=yes
22810 fi
22811 elif test x$gcc_cv_as != x; then
22812 echo "$insn" > conftest.s
22813 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22816 ac_status=$?
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }
22819 then
22820 gcc_cv_as_gdwarf2_flag=yes
22821 else
22822 echo "configure: failed program was" >&5
22823 cat conftest.s >&5
22824 fi
22825 rm -f conftest.o conftest.s
22826 fi
22827 fi
22828 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22829 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22830 if test $gcc_cv_as_gdwarf2_flag = yes; then
22831
22832 cat >>confdefs.h <<\_ACEOF
22833 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22834 _ACEOF
22835
22836 fi
22837
22838 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22839 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22840 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22841 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 else
22843 gcc_cv_as_gstabs_flag=no
22844 if test $in_tree_gas = yes; then
22845 if test $in_tree_gas_is_elf = yes \
22846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22847 then gcc_cv_as_gstabs_flag=yes
22848 fi
22849 elif test x$gcc_cv_as != x; then
22850 echo "$insn" > conftest.s
22851 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22854 ac_status=$?
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }
22857 then
22858 # The native Solaris 9/Intel assembler doesn't understand --gstabs
22859 # and warns about it, but still exits successfully. So check for
22860 # this.
22861 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }
22867 then :
22868 else gcc_cv_as_gstabs_flag=yes
22869 fi
22870 else
22871 echo "configure: failed program was" >&5
22872 cat conftest.s >&5
22873 fi
22874 rm -f conftest.o conftest.s
22875 fi
22876 fi
22877 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22878 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22879 if test $gcc_cv_as_gstabs_flag = yes; then
22880
22881 cat >>confdefs.h <<\_ACEOF
22882 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22883 _ACEOF
22884
22885 fi
22886
22887 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22888 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22889 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 gcc_cv_as_debug_prefix_map_flag=no
22893 if test $in_tree_gas = yes; then
22894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22895 then gcc_cv_as_debug_prefix_map_flag=yes
22896 fi
22897 elif test x$gcc_cv_as != x; then
22898 echo "$insn" > conftest.s
22899 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901 (eval $ac_try) 2>&5
22902 ac_status=$?
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); }; }
22905 then
22906 gcc_cv_as_debug_prefix_map_flag=yes
22907 else
22908 echo "configure: failed program was" >&5
22909 cat conftest.s >&5
22910 fi
22911 rm -f conftest.o conftest.s
22912 fi
22913 fi
22914 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22915 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22916 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22917
22918 cat >>confdefs.h <<\_ACEOF
22919 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22920 _ACEOF
22921
22922 fi
22923 fi
22924
22925 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22926 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22927 if test "${gcc_cv_as_line_zero+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930 gcc_cv_as_line_zero=no
22931 if test $in_tree_gas = yes; then
22932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22933 then gcc_cv_as_line_zero=yes
22934 fi
22935 elif test "x$gcc_cv_as" != x; then
22936 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22937 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22940 ac_status=$?
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 test "x`cat conftest.out`" = x
22944 then
22945 gcc_cv_as_line_zero=yes
22946 else
22947 echo "configure: failed program was" >&5
22948 cat conftest.s >&5
22949 echo "configure: error output was" >&5
22950 cat conftest.out >&5
22951 fi
22952 rm -f conftest.o conftest.s conftest.out
22953 fi
22954 fi
22955 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22956 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22957 if test "x$gcc_cv_as_line_zero" = xyes; then
22958
22959 cat >>confdefs.h <<\_ACEOF
22960 #define HAVE_AS_LINE_ZERO 1
22961 _ACEOF
22962
22963 fi
22964
22965 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22966 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22967 gcc_cv_ld_ro_rw_mix=unknown
22968 if test $in_tree_ld = yes ; then
22969 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 \
22970 && test $in_tree_ld_is_elf = yes; then
22971 gcc_cv_ld_ro_rw_mix=read-write
22972 fi
22973 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22974 echo '.section myfoosect, "a"' > conftest1.s
22975 echo '.section myfoosect, "aw"' > conftest2.s
22976 echo '.byte 1' >> conftest2.s
22977 echo '.section myfoosect, "a"' > conftest3.s
22978 echo '.byte 0' >> conftest3.s
22979 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22980 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22981 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22982 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22983 conftest2.o conftest3.o > /dev/null 2>&1; then
22984 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22985 | sed -e '/myfoosect/!d' -e N`
22986 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22987 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22988 gcc_cv_ld_ro_rw_mix=read-only
22989 else
22990 gcc_cv_ld_ro_rw_mix=read-write
22991 fi
22992 fi
22993 fi
22994 rm -f conftest.* conftest[123].*
22995 fi
22996 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22997
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23000 _ACEOF
23001
23002 fi
23003 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23004 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23005
23006 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23007 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23008 gcc_cv_ld_eh_frame_hdr=no
23009 if test $in_tree_ld = yes ; then
23010 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 \
23011 && test $in_tree_ld_is_elf = yes; then
23012 gcc_cv_ld_eh_frame_hdr=yes
23013 fi
23014 elif test x$gcc_cv_ld != x; then
23015 # Check if linker supports --eh-frame-hdr option
23016 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23017 gcc_cv_ld_eh_frame_hdr=yes
23018 fi
23019 fi
23020
23021 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23022
23023 cat >>confdefs.h <<\_ACEOF
23024 #define HAVE_LD_EH_FRAME_HDR 1
23025 _ACEOF
23026
23027 fi
23028 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23029 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23030
23031 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23032 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23033 gcc_cv_ld_pie=no
23034 if test $in_tree_ld = yes ; then
23035 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 \
23036 && test $in_tree_ld_is_elf = yes; then
23037 gcc_cv_ld_pie=yes
23038 fi
23039 elif test x$gcc_cv_ld != x; then
23040 # Check if linker supports -pie option
23041 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23042 gcc_cv_ld_pie=yes
23043 fi
23044 fi
23045 if test x"$gcc_cv_ld_pie" = xyes; then
23046
23047 cat >>confdefs.h <<\_ACEOF
23048 #define HAVE_LD_PIE 1
23049 _ACEOF
23050
23051 fi
23052 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23053 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23054
23055 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23056 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23057 gcc_cv_ld_eh_gc_sections=no
23058 if test $in_tree_ld = yes ; then
23059 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 \
23060 && test $in_tree_ld_is_elf = yes; then
23061 gcc_cv_ld_eh_gc_sections=yes
23062 fi
23063 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23064 cat > conftest.s <<EOF
23065 .section .text
23066 .globl _start
23067 .type _start, @function
23068 _start:
23069 .long foo
23070 .size _start, .-_start
23071 .section .text.foo,"ax",@progbits
23072 .type foo, @function
23073 foo:
23074 .long 0
23075 .size foo, .-foo
23076 .section .gcc_except_table.foo,"a",@progbits
23077 .L0:
23078 .long 0
23079 .section .eh_frame,"a",@progbits
23080 .long .L0
23081 EOF
23082 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23083 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23084 | grep "gc-sections option ignored" > /dev/null; then
23085 gcc_cv_ld_eh_gc_sections=no
23086 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23087 gcc_cv_ld_eh_gc_sections=yes
23088 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23089 if test x$gcc_cv_as_comdat_group != xyes; then
23090 gcc_cv_ld_eh_gc_sections=no
23091 cat > conftest.s <<EOF
23092 .section .text
23093 .globl _start
23094 .type _start, @function
23095 _start:
23096 .long foo
23097 .size _start, .-_start
23098 .section .gnu.linkonce.t.foo,"ax",@progbits
23099 .type foo, @function
23100 foo:
23101 .long 0
23102 .size foo, .-foo
23103 .section .gcc_except_table.foo,"a",@progbits
23104 .L0:
23105 .long 0
23106 .section .eh_frame,"a",@progbits
23107 .long .L0
23108 EOF
23109 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23110 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23111 | grep "gc-sections option ignored" > /dev/null; then
23112 gcc_cv_ld_eh_gc_sections=no
23113 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23114 gcc_cv_ld_eh_gc_sections=yes
23115 fi
23116 fi
23117 fi
23118 fi
23119 fi
23120 rm -f conftest.s conftest.o conftest
23121 fi
23122 case "$target" in
23123 hppa*-*-linux*)
23124 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23125 gcc_cv_ld_eh_gc_sections=no
23126 ;;
23127 esac
23128 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23129
23130 cat >>confdefs.h <<\_ACEOF
23131 #define HAVE_LD_EH_GC_SECTIONS 1
23132 _ACEOF
23133
23134 fi
23135 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23136 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23137
23138 # --------
23139 # UNSORTED
23140 # --------
23141
23142 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23143 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23144 if test "${gcc_cv_ld_as_needed+set}" = set; then
23145 echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147 gcc_cv_ld_as_needed=no
23148 if test $in_tree_ld = yes ; then
23149 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 \
23150 && test $in_tree_ld_is_elf = yes; then
23151 gcc_cv_ld_as_needed=yes
23152 fi
23153 elif test x$gcc_cv_ld != x; then
23154 # Check if linker supports --as-needed and --no-as-needed options
23155 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23156 gcc_cv_ld_as_needed=yes
23157 fi
23158 fi
23159
23160 fi
23161 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23162 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23163 if test x"$gcc_cv_ld_as_needed" = xyes; then
23164
23165 cat >>confdefs.h <<\_ACEOF
23166 #define HAVE_LD_AS_NEEDED 1
23167 _ACEOF
23168
23169 fi
23170
23171 case "$target:$tm_file" in
23172 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23173 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23174 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23175 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23176 echo $ECHO_N "(cached) $ECHO_C" >&6
23177 else
23178 gcc_cv_ld_no_dot_syms=no
23179 if test $in_tree_ld = yes ; then
23180 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
23181 gcc_cv_ld_no_dot_syms=yes
23182 fi
23183 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23184 cat > conftest1.s <<EOF
23185 .text
23186 bl .foo
23187 EOF
23188 cat > conftest2.s <<EOF
23189 .section ".opd","aw"
23190 .align 3
23191 .globl foo
23192 .type foo,@function
23193 foo:
23194 .quad .LEfoo,.TOC.@tocbase,0
23195 .text
23196 .LEfoo:
23197 blr
23198 .size foo,.-.LEfoo
23199 EOF
23200 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23201 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23202 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23203 gcc_cv_ld_no_dot_syms=yes
23204 fi
23205 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23206 fi
23207
23208 fi
23209 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23210 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23211 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23212
23213 cat >>confdefs.h <<\_ACEOF
23214 #define HAVE_LD_NO_DOT_SYMS 1
23215 _ACEOF
23216
23217 fi
23218 ;;
23219 esac
23220
23221 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23222 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23223 if test "${gcc_cv_ld_sysroot+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226 gcc_cv_ld_sysroot=no
23227 if test $in_tree_ld = yes ; then
23228 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
23229 gcc_cv_ld_sysroot=yes
23230 fi
23231 elif test x$gcc_cv_ld != x; then
23232 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23233 gcc_cv_ld_sysroot=yes
23234 fi
23235 fi
23236 fi
23237 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23238 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23239 if test x"$gcc_cv_ld_sysroot" = xyes; then
23240
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_LD_SYSROOT 1
23243 _ACEOF
23244
23245 fi
23246
23247 if test x$with_sysroot = x && test x$host = x$target \
23248 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23249 && test "$prefix" != "NONE"; then
23250
23251 cat >>confdefs.h <<_ACEOF
23252 #define PREFIX_INCLUDE_DIR "$prefix/include"
23253 _ACEOF
23254
23255 fi
23256
23257 # Test for stack protector support in target C library.
23258 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23259 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23260 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263 gcc_cv_libc_provides_ssp=no
23264 case "$target" in
23265 *-*-linux*)
23266 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23267 if test "x$with_sysroot" = x; then
23268 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23269 elif test "x$with_build_sysroot" != "x"; then
23270 glibc_header_dir="${with_build_sysroot}/usr/include"
23271 elif test "x$with_sysroot" = xyes; then
23272 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23273 else
23274 glibc_header_dir="${with_sysroot}/usr/include"
23275 fi
23276 else
23277 glibc_header_dir=/usr/include
23278 fi
23279 # glibc 2.4 and later provides __stack_chk_fail and
23280 # either __stack_chk_guard, or TLS access to stack guard canary.
23281 if test -f $glibc_header_dir/features.h \
23282 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23283 $glibc_header_dir/features.h > /dev/null; then
23284 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23285 $glibc_header_dir/features.h > /dev/null; then
23286 gcc_cv_libc_provides_ssp=yes
23287 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23288 $glibc_header_dir/features.h > /dev/null \
23289 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23290 $glibc_header_dir/features.h > /dev/null; then
23291 gcc_cv_libc_provides_ssp=yes
23292 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23293 $glibc_header_dir/features.h > /dev/null && \
23294 test -f $glibc_header_dir/bits/uClibc_config.h && \
23295 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23296 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23297 gcc_cv_libc_provides_ssp=yes
23298 fi
23299 fi
23300 ;;
23301 *-*-darwin*)
23302 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23303 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23304 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 else
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23315 #define __stack_chk_fail innocuous___stack_chk_fail
23316
23317 /* System header to define __stub macros and hopefully few prototypes,
23318 which can conflict with char __stack_chk_fail (); below.
23319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23320 <limits.h> exists even on freestanding compilers. */
23321
23322 #ifdef __STDC__
23323 # include <limits.h>
23324 #else
23325 # include <assert.h>
23326 #endif
23327
23328 #undef __stack_chk_fail
23329
23330 /* Override any gcc2 internal prototype to avoid an error. */
23331 #ifdef __cplusplus
23332 extern "C"
23333 {
23334 #endif
23335 /* We use char because int might match the return type of a gcc2
23336 builtin and then its argument prototype would still apply. */
23337 char __stack_chk_fail ();
23338 /* The GNU C library defines this for functions which it implements
23339 to always fail with ENOSYS. Some functions are actually named
23340 something starting with __ and the normal name is an alias. */
23341 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23342 choke me
23343 #else
23344 char (*f) () = __stack_chk_fail;
23345 #endif
23346 #ifdef __cplusplus
23347 }
23348 #endif
23349
23350 int
23351 main ()
23352 {
23353 return f != __stack_chk_fail;
23354 ;
23355 return 0;
23356 }
23357 _ACEOF
23358 rm -f conftest.$ac_objext conftest$ac_exeext
23359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23360 (eval $ac_link) 2>conftest.er1
23361 ac_status=$?
23362 grep -v '^ *+' conftest.er1 >conftest.err
23363 rm -f conftest.er1
23364 cat conftest.err >&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } &&
23367 { ac_try='test -z "$ac_c_werror_flag"
23368 || test ! -s conftest.err'
23369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); }; } &&
23374 { ac_try='test -s conftest$ac_exeext'
23375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; }; then
23380 ac_cv_func___stack_chk_fail=yes
23381 else
23382 echo "$as_me: failed program was:" >&5
23383 sed 's/^/| /' conftest.$ac_ext >&5
23384
23385 ac_cv_func___stack_chk_fail=no
23386 fi
23387 rm -f conftest.err conftest.$ac_objext \
23388 conftest$ac_exeext conftest.$ac_ext
23389 fi
23390 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23391 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23392 if test $ac_cv_func___stack_chk_fail = yes; then
23393 gcc_cv_libc_provides_ssp=yes
23394 else
23395 echo "no __stack_chk_fail on this target"
23396 fi
23397
23398 ;;
23399 *) gcc_cv_libc_provides_ssp=no ;;
23400 esac
23401 fi
23402 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23403 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23404
23405 if test x$gcc_cv_libc_provides_ssp = xyes; then
23406
23407 cat >>confdefs.h <<\_ACEOF
23408 #define TARGET_LIBC_PROVIDES_SSP 1
23409 _ACEOF
23410
23411 fi
23412
23413 # Check if TFmode long double should be used by default or not.
23414 # Some glibc targets used DFmode long double, but with glibc 2.4
23415 # and later they can use TFmode.
23416 case "$target" in
23417 powerpc*-*-linux* | \
23418 powerpc*-*-gnu* | \
23419 sparc*-*-linux* | \
23420 s390*-*-linux* | \
23421 alpha*-*-linux*)
23422
23423 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23424 if test "${with_long_double_128+set}" = set; then
23425 withval="$with_long_double_128"
23426 gcc_cv_target_ldbl128="$with_long_double_128"
23427 else
23428 gcc_cv_target_ldbl128=no
23429 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23430 if test "x$with_sysroot" = x; then
23431 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23432 elif test "x$with_build_sysroot" != "x"; then
23433 glibc_header_dir="${with_build_sysroot}/usr/include"
23434 elif test "x$with_sysroot" = xyes; then
23435 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23436 else
23437 glibc_header_dir="${with_sysroot}/usr/include"
23438 fi
23439 else
23440 glibc_header_dir=/usr/include
23441 fi
23442 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23443 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23444 && gcc_cv_target_ldbl128=yes
23445
23446 fi;
23447 ;;
23448 esac
23449 if test x$gcc_cv_target_ldbl128 = xyes; then
23450
23451 cat >>confdefs.h <<\_ACEOF
23452 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23453 _ACEOF
23454
23455 fi
23456
23457 # Find out what GC implementation we want, or may, use.
23458
23459 # Check whether --with-gc or --without-gc was given.
23460 if test "${with_gc+set}" = set; then
23461 withval="$with_gc"
23462 case "$withval" in
23463 page)
23464 GGC=ggc-$withval
23465 ;;
23466 zone)
23467 GGC=ggc-$withval
23468
23469 cat >>confdefs.h <<\_ACEOF
23470 #define GGC_ZONE 1
23471 _ACEOF
23472
23473 ;;
23474 *)
23475 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23476 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23477 { (exit 1); exit 1; }; }
23478 ;;
23479 esac
23480 else
23481 GGC=ggc-page
23482 fi;
23483
23484 echo "Using $GGC for garbage collection."
23485
23486 # Use the system's zlib library.
23487 zlibdir=-L../zlib
23488 zlibinc="-I\$(srcdir)/../zlib"
23489
23490 # Check whether --with-system-zlib or --without-system-zlib was given.
23491 if test "${with_system_zlib+set}" = set; then
23492 withval="$with_system_zlib"
23493 zlibdir=
23494 zlibinc=
23495
23496 fi;
23497
23498
23499
23500
23501 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23502 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23503 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23504 if test "${enable_maintainer_mode+set}" = set; then
23505 enableval="$enable_maintainer_mode"
23506 maintainer_mode=$enableval
23507 else
23508 maintainer_mode=no
23509 fi;
23510
23511 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23512 echo "${ECHO_T}$maintainer_mode" >&6
23513
23514 if test "$maintainer_mode" = "yes"; then
23515 MAINT=''
23516 else
23517 MAINT='#'
23518 fi
23519
23520 # --------------
23521 # Language hooks
23522 # --------------
23523
23524 # Make empty files to contain the specs and options for each language.
23525 # Then add #include lines to for a compiler that has specs and/or options.
23526
23527 subdirs=
23528 lang_opt_files=
23529 lang_specs_files=
23530 lang_tree_files=
23531 # These (without "all_") are set in each config-lang.in.
23532 # `language' must be a single word so is spelled singularly.
23533 all_languages=
23534 all_compilers=
23535 all_outputs='Makefile gccbug libada-mk'
23536 # List of language makefile fragments.
23537 all_lang_makefrags=
23538 # List of language subdirectory makefiles. Deprecated.
23539 all_lang_makefiles=
23540 # Additional files for gengtype
23541 all_gtfiles="$target_gtfiles"
23542
23543 # These are the languages that are set in --enable-languages,
23544 # and are available in the GCC tree.
23545 all_selected_languages=
23546
23547 # Add the language fragments.
23548 # Languages are added via two mechanisms. Some information must be
23549 # recorded in makefile variables, these are defined in config-lang.in.
23550 # We accumulate them and plug them into the main Makefile.
23551 # The other mechanism is a set of hooks for each of the main targets
23552 # like `clean', `install', etc.
23553
23554 language_hooks="Make-hooks"
23555
23556 for lang in ${srcdir}/*/config-lang.in
23557 do
23558 test "$lang" = "${srcdir}/*/config-lang.in" && continue
23559
23560 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
23561 if test "x$lang_alias" = x
23562 then
23563 echo "$lang doesn't set \$language." 1>&2
23564 exit 1
23565 fi
23566 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23567 subdirs="$subdirs $subdir"
23568
23569 # $gcc_subdir is where the gcc integration files are to be found
23570 # for a language, both for internal compiler purposes (compiler
23571 # sources implementing front-end to GCC tree converters), and for
23572 # build infrastructure purposes (Make-lang.in, etc.)
23573 #
23574 # This will be <subdir> (relative to $srcdir) if a line like
23575 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23576 # is found in <langdir>/config-lang.in, and will remain <langdir>
23577 # otherwise.
23578 #
23579 # Except for the language alias (fetched above), the regular
23580 # "config-lang.in" contents are always retrieved from $gcc_subdir,
23581 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23582 # only this and the language alias.
23583
23584 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
23585 if [ "$gcc_subdir" = "" ]; then
23586 gcc_subdir="$subdir"
23587 fi
23588
23589 case ",$enable_languages," in
23590 *,$lang_alias,*)
23591 all_selected_languages="$all_selected_languages $lang_alias"
23592 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23593 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23594 fi
23595 ;;
23596 esac
23597
23598 language=
23599 boot_language=
23600 compilers=
23601 outputs=
23602 gtfiles=
23603 subdir_requires=
23604 . ${srcdir}/$gcc_subdir/config-lang.in
23605 if test "x$language" = x
23606 then
23607 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23608 exit 1
23609 fi
23610
23611 ok=:
23612 case ",$enable_languages," in
23613 *,$lang_alias,*) ;;
23614 *)
23615 for i in $subdir_requires; do
23616 test -f "${srcdir}/$i/config-lang.in" && continue
23617 ok=false
23618 break
23619 done
23620 ;;
23621 esac
23622 $ok || continue
23623
23624 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23625 if test -f $srcdir/$gcc_subdir/lang.opt; then
23626 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23627 fi
23628 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23629 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23630 fi
23631 if test -f ${srcdir}/$gcc_subdir/Makefile.in
23632 then all_lang_makefiles="$gcc_subdir/Makefile"
23633 fi
23634 all_languages="$all_languages $language"
23635 all_compilers="$all_compilers $compilers"
23636 all_outputs="$all_outputs $outputs"
23637 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23638 done
23639
23640 # Pick up gtfiles for c
23641 gtfiles=
23642 . ${srcdir}/c-config-lang.in
23643 all_gtfiles="$all_gtfiles [c] $gtfiles"
23644
23645 check_languages=
23646 for language in $all_selected_languages
23647 do
23648 check_languages="$check_languages check-$language"
23649 done
23650
23651 # We link each language in with a set of hooks, reached indirectly via
23652 # lang.${target}. Only do so for selected languages.
23653
23654 rm -f Make-hooks
23655 touch Make-hooks
23656 target_list="all.cross start.encap rest.encap tags \
23657 install-common install-man install-info install-pdf dvi pdf \
23658 html uninstall info man srcextra srcman srcinfo \
23659 mostlyclean clean distclean maintainer-clean"
23660
23661 for t in $target_list
23662 do
23663 x=
23664 for lang in $all_selected_languages
23665 do
23666 x="$x $lang.$t"
23667 done
23668 echo "lang.$t: $x" >> Make-hooks
23669 done
23670
23671 # --------
23672 # UNSORTED
23673 # --------
23674
23675 # Create .gdbinit.
23676
23677 echo "dir ." > .gdbinit
23678 echo "dir ${srcdir}" >> .gdbinit
23679 if test x$gdb_needs_out_file_path = xyes
23680 then
23681 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23682 fi
23683 if test "x$subdirs" != x; then
23684 for s in $subdirs
23685 do
23686 echo "dir ${srcdir}/$s" >> .gdbinit
23687 done
23688 fi
23689 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23690
23691 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23692
23693
23694
23695 # Find a directory in which to install a shared libgcc.
23696
23697 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23698 if test "${enable_version_specific_runtime_libs+set}" = set; then
23699 enableval="$enable_version_specific_runtime_libs"
23700
23701 fi;
23702
23703
23704 # Check whether --with-slibdir or --without-slibdir was given.
23705 if test "${with_slibdir+set}" = set; then
23706 withval="$with_slibdir"
23707 slibdir="$with_slibdir"
23708 else
23709 if test "${enable_version_specific_runtime_libs+set}" = set; then
23710 slibdir='$(libsubdir)'
23711 elif test "$host" != "$target"; then
23712 slibdir='$(build_tooldir)/lib'
23713 else
23714 slibdir='$(libdir)'
23715 fi
23716 fi;
23717
23718
23719
23720 # Check whether --with-datarootdir or --without-datarootdir was given.
23721 if test "${with_datarootdir+set}" = set; then
23722 withval="$with_datarootdir"
23723 datarootdir="\${prefix}/$with_datarootdir"
23724 else
23725 datarootdir='$(prefix)/share'
23726 fi;
23727
23728
23729
23730 # Check whether --with-docdir or --without-docdir was given.
23731 if test "${with_docdir+set}" = set; then
23732 withval="$with_docdir"
23733 docdir="\${prefix}/$with_docdir"
23734 else
23735 docdir='$(datarootdir)'
23736 fi;
23737
23738
23739
23740 # Check whether --with-htmldir or --without-htmldir was given.
23741 if test "${with_htmldir+set}" = set; then
23742 withval="$with_htmldir"
23743 htmldir="\${prefix}/$with_htmldir"
23744 else
23745 htmldir='$(docdir)'
23746 fi;
23747
23748
23749 # Substitute configuration variables
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807 # Echo link setup.
23808 if test x${build} = x${host} ; then
23809 if test x${host} = x${target} ; then
23810 echo "Links are now set up to build a native compiler for ${target}." 1>&2
23811 else
23812 echo "Links are now set up to build a cross-compiler" 1>&2
23813 echo " from ${host} to ${target}." 1>&2
23814 fi
23815 else
23816 if test x${host} = x${target} ; then
23817 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23818 echo " for ${target}." 1>&2
23819 else
23820 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23821 echo " from ${host} to ${target}." 1>&2
23822 fi
23823 fi
23824
23825
23826
23827
23828 # Configure the subdirectories
23829 # AC_CONFIG_SUBDIRS($subdirs)
23830
23831 # Create the Makefile
23832 # and configure language subdirectories
23833 ac_config_files="$ac_config_files $all_outputs"
23834
23835
23836 ac_config_commands="$ac_config_commands default"
23837
23838 cat >confcache <<\_ACEOF
23839 # This file is a shell script that caches the results of configure
23840 # tests run on this system so they can be shared between configure
23841 # scripts and configure runs, see configure's option --config-cache.
23842 # It is not useful on other systems. If it contains results you don't
23843 # want to keep, you may remove or edit it.
23844 #
23845 # config.status only pays attention to the cache file if you give it
23846 # the --recheck option to rerun configure.
23847 #
23848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23850 # following values.
23851
23852 _ACEOF
23853
23854 # The following way of writing the cache mishandles newlines in values,
23855 # but we know of no workaround that is simple, portable, and efficient.
23856 # So, don't put newlines in cache variables' values.
23857 # Ultrix sh set writes to stderr and can't be redirected directly,
23858 # and sets the high bit in the cache file unless we assign to the vars.
23859 {
23860 (set) 2>&1 |
23861 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23862 *ac_space=\ *)
23863 # `set' does not quote correctly, so add quotes (double-quote
23864 # substitution turns \\\\ into \\, and sed turns \\ into \).
23865 sed -n \
23866 "s/'/'\\\\''/g;
23867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23868 ;;
23869 *)
23870 # `set' quotes correctly as required by POSIX, so do not add quotes.
23871 sed -n \
23872 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23873 ;;
23874 esac;
23875 } |
23876 sed '
23877 t clear
23878 : clear
23879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23880 t end
23881 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23882 : end' >>confcache
23883 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23884 if test -w $cache_file; then
23885 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23886 cat confcache >$cache_file
23887 else
23888 echo "not updating unwritable cache $cache_file"
23889 fi
23890 fi
23891 rm -f confcache
23892
23893 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23894 # Let make expand exec_prefix.
23895 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23896
23897 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23898 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23899 # trailing colons and then remove the whole line if VPATH becomes empty
23900 # (actually we leave an empty line to preserve line numbers).
23901 if test "x$srcdir" = x.; then
23902 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23903 s/:*\$(srcdir):*/:/;
23904 s/:*\${srcdir}:*/:/;
23905 s/:*@srcdir@:*/:/;
23906 s/^\([^=]*=[ ]*\):*/\1/;
23907 s/:*$//;
23908 s/^[^=]*=[ ]*$//;
23909 }'
23910 fi
23911
23912 DEFS=-DHAVE_CONFIG_H
23913
23914 ac_libobjs=
23915 ac_ltlibobjs=
23916 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23917 # 1. Remove the extension, and $U if already installed.
23918 ac_i=`echo "$ac_i" |
23919 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23920 # 2. Add them.
23921 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23922 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23923 done
23924 LIBOBJS=$ac_libobjs
23925
23926 LTLIBOBJS=$ac_ltlibobjs
23927
23928
23929
23930 : ${CONFIG_STATUS=./config.status}
23931 ac_clean_files_save=$ac_clean_files
23932 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23933 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23934 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23935 cat >$CONFIG_STATUS <<_ACEOF
23936 #! $SHELL
23937 # Generated by $as_me.
23938 # Run this file to recreate the current configuration.
23939 # Compiler output produced by configure, useful for debugging
23940 # configure, is in config.log if it exists.
23941
23942 debug=false
23943 ac_cs_recheck=false
23944 ac_cs_silent=false
23945 SHELL=\${CONFIG_SHELL-$SHELL}
23946 _ACEOF
23947
23948 cat >>$CONFIG_STATUS <<\_ACEOF
23949 ## --------------------- ##
23950 ## M4sh Initialization. ##
23951 ## --------------------- ##
23952
23953 # Be Bourne compatible
23954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23955 emulate sh
23956 NULLCMD=:
23957 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23958 # is contrary to our usage. Disable this feature.
23959 alias -g '${1+"$@"}'='"$@"'
23960 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23961 set -o posix
23962 fi
23963 DUALCASE=1; export DUALCASE # for MKS sh
23964
23965 # Support unset when possible.
23966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23967 as_unset=unset
23968 else
23969 as_unset=false
23970 fi
23971
23972
23973 # Work around bugs in pre-3.0 UWIN ksh.
23974 $as_unset ENV MAIL MAILPATH
23975 PS1='$ '
23976 PS2='> '
23977 PS4='+ '
23978
23979 # NLS nuisances.
23980 for as_var in \
23981 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23982 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23983 LC_TELEPHONE LC_TIME
23984 do
23985 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23986 eval $as_var=C; export $as_var
23987 else
23988 $as_unset $as_var
23989 fi
23990 done
23991
23992 # Required to use basename.
23993 if expr a : '\(a\)' >/dev/null 2>&1; then
23994 as_expr=expr
23995 else
23996 as_expr=false
23997 fi
23998
23999 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24000 as_basename=basename
24001 else
24002 as_basename=false
24003 fi
24004
24005
24006 # Name of the executable.
24007 as_me=`$as_basename "$0" ||
24008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24009 X"$0" : 'X\(//\)$' \| \
24010 X"$0" : 'X\(/\)$' \| \
24011 . : '\(.\)' 2>/dev/null ||
24012 echo X/"$0" |
24013 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24014 /^X\/\(\/\/\)$/{ s//\1/; q; }
24015 /^X\/\(\/\).*/{ s//\1/; q; }
24016 s/.*/./; q'`
24017
24018
24019 # PATH needs CR, and LINENO needs CR and PATH.
24020 # Avoid depending upon Character Ranges.
24021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24024 as_cr_digits='0123456789'
24025 as_cr_alnum=$as_cr_Letters$as_cr_digits
24026
24027 # The user is always right.
24028 if test "${PATH_SEPARATOR+set}" != set; then
24029 echo "#! /bin/sh" >conf$$.sh
24030 echo "exit 0" >>conf$$.sh
24031 chmod +x conf$$.sh
24032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24033 PATH_SEPARATOR=';'
24034 else
24035 PATH_SEPARATOR=:
24036 fi
24037 rm -f conf$$.sh
24038 fi
24039
24040
24041 as_lineno_1=$LINENO
24042 as_lineno_2=$LINENO
24043 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24044 test "x$as_lineno_1" != "x$as_lineno_2" &&
24045 test "x$as_lineno_3" = "x$as_lineno_2" || {
24046 # Find who we are. Look in the path if we contain no path at all
24047 # relative or not.
24048 case $0 in
24049 *[\\/]* ) as_myself=$0 ;;
24050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24051 for as_dir in $PATH
24052 do
24053 IFS=$as_save_IFS
24054 test -z "$as_dir" && as_dir=.
24055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24056 done
24057
24058 ;;
24059 esac
24060 # We did not find ourselves, most probably we were run as `sh COMMAND'
24061 # in which case we are not to be found in the path.
24062 if test "x$as_myself" = x; then
24063 as_myself=$0
24064 fi
24065 if test ! -f "$as_myself"; then
24066 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24067 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24068 { (exit 1); exit 1; }; }
24069 fi
24070 case $CONFIG_SHELL in
24071 '')
24072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24073 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24074 do
24075 IFS=$as_save_IFS
24076 test -z "$as_dir" && as_dir=.
24077 for as_base in sh bash ksh sh5; do
24078 case $as_dir in
24079 /*)
24080 if ("$as_dir/$as_base" -c '
24081 as_lineno_1=$LINENO
24082 as_lineno_2=$LINENO
24083 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24084 test "x$as_lineno_1" != "x$as_lineno_2" &&
24085 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24086 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24087 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24088 CONFIG_SHELL=$as_dir/$as_base
24089 export CONFIG_SHELL
24090 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24091 fi;;
24092 esac
24093 done
24094 done
24095 ;;
24096 esac
24097
24098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24099 # uniformly replaced by the line number. The first 'sed' inserts a
24100 # line-number line before each line; the second 'sed' does the real
24101 # work. The second script uses 'N' to pair each line-number line
24102 # with the numbered line, and appends trailing '-' during
24103 # substitution so that $LINENO is not a special case at line end.
24104 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24105 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24106 sed '=' <$as_myself |
24107 sed '
24108 N
24109 s,$,-,
24110 : loop
24111 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24112 t loop
24113 s,-$,,
24114 s,^['$as_cr_digits']*\n,,
24115 ' >$as_me.lineno &&
24116 chmod +x $as_me.lineno ||
24117 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24118 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24119 { (exit 1); exit 1; }; }
24120
24121 # Don't try to exec as it changes $[0], causing all sort of problems
24122 # (the dirname of $[0] is not the place where we might find the
24123 # original and so on. Autoconf is especially sensible to this).
24124 . ./$as_me.lineno
24125 # Exit status is that of the last command.
24126 exit
24127 }
24128
24129
24130 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24131 *c*,-n*) ECHO_N= ECHO_C='
24132 ' ECHO_T=' ' ;;
24133 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24134 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24135 esac
24136
24137 if expr a : '\(a\)' >/dev/null 2>&1; then
24138 as_expr=expr
24139 else
24140 as_expr=false
24141 fi
24142
24143 rm -f conf$$ conf$$.exe conf$$.file
24144 echo >conf$$.file
24145 if ln -s conf$$.file conf$$ 2>/dev/null; then
24146 # We could just check for DJGPP; but this test a) works b) is more generic
24147 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24148 if test -f conf$$.exe; then
24149 # Don't use ln at all; we don't have any links
24150 as_ln_s='cp -p'
24151 else
24152 as_ln_s='ln -s'
24153 fi
24154 elif ln conf$$.file conf$$ 2>/dev/null; then
24155 as_ln_s=ln
24156 else
24157 as_ln_s='cp -p'
24158 fi
24159 rm -f conf$$ conf$$.exe conf$$.file
24160
24161 if mkdir -p . 2>/dev/null; then
24162 as_mkdir_p=:
24163 else
24164 test -d ./-p && rmdir ./-p
24165 as_mkdir_p=false
24166 fi
24167
24168 as_executable_p="test -f"
24169
24170 # Sed expression to map a string onto a valid CPP name.
24171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24172
24173 # Sed expression to map a string onto a valid variable name.
24174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24175
24176
24177 # IFS
24178 # We need space, tab and new line, in precisely that order.
24179 as_nl='
24180 '
24181 IFS=" $as_nl"
24182
24183 # CDPATH.
24184 $as_unset CDPATH
24185
24186 exec 6>&1
24187
24188 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24189 # report actual input values of CONFIG_FILES etc. instead of their
24190 # values after options handling. Logging --version etc. is OK.
24191 exec 5>>config.log
24192 {
24193 echo
24194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24195 ## Running $as_me. ##
24196 _ASBOX
24197 } >&5
24198 cat >&5 <<_CSEOF
24199
24200 This file was extended by $as_me, which was
24201 generated by GNU Autoconf 2.59. Invocation command line was
24202
24203 CONFIG_FILES = $CONFIG_FILES
24204 CONFIG_HEADERS = $CONFIG_HEADERS
24205 CONFIG_LINKS = $CONFIG_LINKS
24206 CONFIG_COMMANDS = $CONFIG_COMMANDS
24207 $ $0 $@
24208
24209 _CSEOF
24210 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24211 echo >&5
24212 _ACEOF
24213
24214 # Files that config.status was made for.
24215 if test -n "$ac_config_files"; then
24216 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24217 fi
24218
24219 if test -n "$ac_config_headers"; then
24220 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24221 fi
24222
24223 if test -n "$ac_config_links"; then
24224 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24225 fi
24226
24227 if test -n "$ac_config_commands"; then
24228 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24229 fi
24230
24231 cat >>$CONFIG_STATUS <<\_ACEOF
24232
24233 ac_cs_usage="\
24234 \`$as_me' instantiates files from templates according to the
24235 current configuration.
24236
24237 Usage: $0 [OPTIONS] [FILE]...
24238
24239 -h, --help print this help, then exit
24240 -V, --version print version number, then exit
24241 -q, --quiet do not print progress messages
24242 -d, --debug don't remove temporary files
24243 --recheck update $as_me by reconfiguring in the same conditions
24244 --file=FILE[:TEMPLATE]
24245 instantiate the configuration file FILE
24246 --header=FILE[:TEMPLATE]
24247 instantiate the configuration header FILE
24248
24249 Configuration files:
24250 $config_files
24251
24252 Configuration headers:
24253 $config_headers
24254
24255 Configuration commands:
24256 $config_commands
24257
24258 Report bugs to <bug-autoconf@gnu.org>."
24259 _ACEOF
24260
24261 cat >>$CONFIG_STATUS <<_ACEOF
24262 ac_cs_version="\\
24263 config.status
24264 configured by $0, generated by GNU Autoconf 2.59,
24265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24266
24267 Copyright (C) 2003 Free Software Foundation, Inc.
24268 This config.status script is free software; the Free Software Foundation
24269 gives unlimited permission to copy, distribute and modify it."
24270 srcdir=$srcdir
24271 _ACEOF
24272
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24274 # If no file are specified by the user, then we need to provide default
24275 # value. By we need to know if files were specified by the user.
24276 ac_need_defaults=:
24277 while test $# != 0
24278 do
24279 case $1 in
24280 --*=*)
24281 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24282 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24283 ac_shift=:
24284 ;;
24285 -*)
24286 ac_option=$1
24287 ac_optarg=$2
24288 ac_shift=shift
24289 ;;
24290 *) # This is not an option, so the user has probably given explicit
24291 # arguments.
24292 ac_option=$1
24293 ac_need_defaults=false;;
24294 esac
24295
24296 case $ac_option in
24297 # Handling of the options.
24298 _ACEOF
24299 cat >>$CONFIG_STATUS <<\_ACEOF
24300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24301 ac_cs_recheck=: ;;
24302 --version | --vers* | -V )
24303 echo "$ac_cs_version"; exit 0 ;;
24304 --he | --h)
24305 # Conflict between --help and --header
24306 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24307 Try \`$0 --help' for more information." >&5
24308 echo "$as_me: error: ambiguous option: $1
24309 Try \`$0 --help' for more information." >&2;}
24310 { (exit 1); exit 1; }; };;
24311 --help | --hel | -h )
24312 echo "$ac_cs_usage"; exit 0 ;;
24313 --debug | --d* | -d )
24314 debug=: ;;
24315 --file | --fil | --fi | --f )
24316 $ac_shift
24317 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24318 ac_need_defaults=false;;
24319 --header | --heade | --head | --hea )
24320 $ac_shift
24321 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24322 ac_need_defaults=false;;
24323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24325 ac_cs_silent=: ;;
24326
24327 # This is an error.
24328 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24329 Try \`$0 --help' for more information." >&5
24330 echo "$as_me: error: unrecognized option: $1
24331 Try \`$0 --help' for more information." >&2;}
24332 { (exit 1); exit 1; }; } ;;
24333
24334 *) ac_config_targets="$ac_config_targets $1" ;;
24335
24336 esac
24337 shift
24338 done
24339
24340 ac_configure_extra_args=
24341
24342 if $ac_cs_silent; then
24343 exec 6>/dev/null
24344 ac_configure_extra_args="$ac_configure_extra_args --silent"
24345 fi
24346
24347 _ACEOF
24348 cat >>$CONFIG_STATUS <<_ACEOF
24349 if \$ac_cs_recheck; then
24350 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24351 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24352 fi
24353
24354 _ACEOF
24355
24356 cat >>$CONFIG_STATUS <<_ACEOF
24357 #
24358 # INIT-COMMANDS section.
24359 #
24360
24361 subdirs='$subdirs'
24362
24363 _ACEOF
24364
24365
24366
24367 cat >>$CONFIG_STATUS <<\_ACEOF
24368 for ac_config_target in $ac_config_targets
24369 do
24370 case "$ac_config_target" in
24371 # Handling of arguments.
24372 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24373 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24374 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24375 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24376 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24377 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24378 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24380 { (exit 1); exit 1; }; };;
24381 esac
24382 done
24383
24384 # If the user did not use the arguments to specify the items to instantiate,
24385 # then the envvar interface is used. Set only those that are not.
24386 # We use the long form for the default assignment because of an extremely
24387 # bizarre bug on SunOS 4.1.3.
24388 if $ac_need_defaults; then
24389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24392 fi
24393
24394 # Have a temporary directory for convenience. Make it in the build tree
24395 # simply because there is no reason to put it here, and in addition,
24396 # creating and moving files from /tmp can sometimes cause problems.
24397 # Create a temporary directory, and hook for its removal unless debugging.
24398 $debug ||
24399 {
24400 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24401 trap '{ (exit 1); exit 1; }' 1 2 13 15
24402 }
24403
24404 # Create a (secure) tmp directory for tmp files.
24405
24406 {
24407 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24408 test -n "$tmp" && test -d "$tmp"
24409 } ||
24410 {
24411 tmp=./confstat$$-$RANDOM
24412 (umask 077 && mkdir $tmp)
24413 } ||
24414 {
24415 echo "$me: cannot create a temporary directory in ." >&2
24416 { (exit 1); exit 1; }
24417 }
24418
24419 _ACEOF
24420
24421 cat >>$CONFIG_STATUS <<_ACEOF
24422
24423 #
24424 # CONFIG_FILES section.
24425 #
24426
24427 # No need to generate the scripts if there are no CONFIG_FILES.
24428 # This happens for instance when ./config.status config.h
24429 if test -n "\$CONFIG_FILES"; then
24430 # Protect against being on the right side of a sed subst in config.status.
24431 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24432 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24433 s,@SHELL@,$SHELL,;t t
24434 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24435 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24436 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24437 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24438 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24439 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24440 s,@exec_prefix@,$exec_prefix,;t t
24441 s,@prefix@,$prefix,;t t
24442 s,@program_transform_name@,$program_transform_name,;t t
24443 s,@bindir@,$bindir,;t t
24444 s,@sbindir@,$sbindir,;t t
24445 s,@libexecdir@,$libexecdir,;t t
24446 s,@datadir@,$datadir,;t t
24447 s,@sysconfdir@,$sysconfdir,;t t
24448 s,@sharedstatedir@,$sharedstatedir,;t t
24449 s,@localstatedir@,$localstatedir,;t t
24450 s,@libdir@,$libdir,;t t
24451 s,@includedir@,$includedir,;t t
24452 s,@oldincludedir@,$oldincludedir,;t t
24453 s,@infodir@,$infodir,;t t
24454 s,@mandir@,$mandir,;t t
24455 s,@build_alias@,$build_alias,;t t
24456 s,@host_alias@,$host_alias,;t t
24457 s,@target_alias@,$target_alias,;t t
24458 s,@DEFS@,$DEFS,;t t
24459 s,@ECHO_C@,$ECHO_C,;t t
24460 s,@ECHO_N@,$ECHO_N,;t t
24461 s,@ECHO_T@,$ECHO_T,;t t
24462 s,@LIBS@,$LIBS,;t t
24463 s,@build@,$build,;t t
24464 s,@build_cpu@,$build_cpu,;t t
24465 s,@build_vendor@,$build_vendor,;t t
24466 s,@build_os@,$build_os,;t t
24467 s,@host@,$host,;t t
24468 s,@host_cpu@,$host_cpu,;t t
24469 s,@host_vendor@,$host_vendor,;t t
24470 s,@host_os@,$host_os,;t t
24471 s,@target@,$target,;t t
24472 s,@target_cpu@,$target_cpu,;t t
24473 s,@target_vendor@,$target_vendor,;t t
24474 s,@target_os@,$target_os,;t t
24475 s,@target_noncanonical@,$target_noncanonical,;t t
24476 s,@build_libsubdir@,$build_libsubdir,;t t
24477 s,@build_subdir@,$build_subdir,;t t
24478 s,@host_subdir@,$host_subdir,;t t
24479 s,@target_subdir@,$target_subdir,;t t
24480 s,@GENINSRC@,$GENINSRC,;t t
24481 s,@CC@,$CC,;t t
24482 s,@CFLAGS@,$CFLAGS,;t t
24483 s,@LDFLAGS@,$LDFLAGS,;t t
24484 s,@CPPFLAGS@,$CPPFLAGS,;t t
24485 s,@ac_ct_CC@,$ac_ct_CC,;t t
24486 s,@EXEEXT@,$EXEEXT,;t t
24487 s,@OBJEXT@,$OBJEXT,;t t
24488 s,@GNATBIND@,$GNATBIND,;t t
24489 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24490 s,@GNATMAKE@,$GNATMAKE,;t t
24491 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24492 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24493 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24494 s,@CPP@,$CPP,;t t
24495 s,@EGREP@,$EGREP,;t t
24496 s,@loose_warn@,$loose_warn,;t t
24497 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24498 s,@strict_warn@,$strict_warn,;t t
24499 s,@warn_cflags@,$warn_cflags,;t t
24500 s,@nocommon_flag@,$nocommon_flag,;t t
24501 s,@TREEBROWSER@,$TREEBROWSER,;t t
24502 s,@valgrind_path@,$valgrind_path,;t t
24503 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24504 s,@valgrind_command@,$valgrind_command,;t t
24505 s,@coverage_flags@,$coverage_flags,;t t
24506 s,@enable_multilib@,$enable_multilib,;t t
24507 s,@enable_decimal_float@,$enable_decimal_float,;t t
24508 s,@enable_fixed_point@,$enable_fixed_point,;t t
24509 s,@enable_shared@,$enable_shared,;t t
24510 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24511 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24512 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24513 s,@onestep@,$onestep,;t t
24514 s,@PKGVERSION@,$PKGVERSION,;t t
24515 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24516 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24517 s,@datarootdir@,$datarootdir,;t t
24518 s,@docdir@,$docdir,;t t
24519 s,@htmldir@,$htmldir,;t t
24520 s,@SET_MAKE@,$SET_MAKE,;t t
24521 s,@AWK@,$AWK,;t t
24522 s,@LN_S@,$LN_S,;t t
24523 s,@LN@,$LN,;t t
24524 s,@RANLIB@,$RANLIB,;t t
24525 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24526 s,@ranlib_flags@,$ranlib_flags,;t t
24527 s,@INSTALL@,$INSTALL,;t t
24528 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24529 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24530 s,@make_compare_target@,$make_compare_target,;t t
24531 s,@have_mktemp_command@,$have_mktemp_command,;t t
24532 s,@MAKEINFO@,$MAKEINFO,;t t
24533 s,@BUILD_INFO@,$BUILD_INFO,;t t
24534 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24535 s,@FLEX@,$FLEX,;t t
24536 s,@BISON@,$BISON,;t t
24537 s,@NM@,$NM,;t t
24538 s,@AR@,$AR,;t t
24539 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24540 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24541 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24542 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24543 s,@LIBICONV@,$LIBICONV,;t t
24544 s,@LTLIBICONV@,$LTLIBICONV,;t t
24545 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24546 s,@manext@,$manext,;t t
24547 s,@objext@,$objext,;t t
24548 s,@gthread_flags@,$gthread_flags,;t t
24549 s,@extra_modes_file@,$extra_modes_file,;t t
24550 s,@extra_opt_files@,$extra_opt_files,;t t
24551 s,@USE_NLS@,$USE_NLS,;t t
24552 s,@LIBINTL@,$LIBINTL,;t t
24553 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24554 s,@INCINTL@,$INCINTL,;t t
24555 s,@XGETTEXT@,$XGETTEXT,;t t
24556 s,@GMSGFMT@,$GMSGFMT,;t t
24557 s,@POSUB@,$POSUB,;t t
24558 s,@CATALOGS@,$CATALOGS,;t t
24559 s,@DATADIRNAME@,$DATADIRNAME,;t t
24560 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24561 s,@GENCAT@,$GENCAT,;t t
24562 s,@CATOBJEXT@,$CATOBJEXT,;t t
24563 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24564 s,@CROSS@,$CROSS,;t t
24565 s,@ALL@,$ALL,;t t
24566 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24567 s,@inhibit_libc@,$inhibit_libc,;t t
24568 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24569 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24570 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24571 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24572 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24573 s,@collect2@,$collect2,;t t
24574 s,@LIBTOOL@,$LIBTOOL,;t t
24575 s,@SED@,$SED,;t t
24576 s,@FGREP@,$FGREP,;t t
24577 s,@GREP@,$GREP,;t t
24578 s,@LD@,$LD,;t t
24579 s,@DUMPBIN@,$DUMPBIN,;t t
24580 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24581 s,@ac_ct_AR@,$ac_ct_AR,;t t
24582 s,@STRIP@,$STRIP,;t t
24583 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24584 s,@lt_ECHO@,$lt_ECHO,;t t
24585 s,@objdir@,$objdir,;t t
24586 s,@enable_fast_install@,$enable_fast_install,;t t
24587 s,@gcc_cv_as@,$gcc_cv_as,;t t
24588 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24589 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24590 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24591 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24592 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24593 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24594 s,@libgcc_visibility@,$libgcc_visibility,;t t
24595 s,@GGC@,$GGC,;t t
24596 s,@zlibdir@,$zlibdir,;t t
24597 s,@zlibinc@,$zlibinc,;t t
24598 s,@MAINT@,$MAINT,;t t
24599 s,@gcc_tooldir@,$gcc_tooldir,;t t
24600 s,@dollar@,$dollar,;t t
24601 s,@slibdir@,$slibdir,;t t
24602 s,@subdirs@,$subdirs,;t t
24603 s,@srcdir@,$srcdir,;t t
24604 s,@all_compilers@,$all_compilers,;t t
24605 s,@all_gtfiles@,$all_gtfiles,;t t
24606 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24607 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24608 s,@all_languages@,$all_languages,;t t
24609 s,@all_selected_languages@,$all_selected_languages,;t t
24610 s,@build_exeext@,$build_exeext,;t t
24611 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24612 s,@build_xm_file_list@,$build_xm_file_list,;t t
24613 s,@build_xm_include_list@,$build_xm_include_list,;t t
24614 s,@build_xm_defines@,$build_xm_defines,;t t
24615 s,@build_file_translate@,$build_file_translate,;t t
24616 s,@check_languages@,$check_languages,;t t
24617 s,@cpp_install_dir@,$cpp_install_dir,;t t
24618 s,@xmake_file@,$xmake_file,;t t
24619 s,@tmake_file@,$tmake_file,;t t
24620 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24621 s,@extra_headers_list@,$extra_headers_list,;t t
24622 s,@extra_objs@,$extra_objs,;t t
24623 s,@extra_parts@,$extra_parts,;t t
24624 s,@extra_passes@,$extra_passes,;t t
24625 s,@extra_programs@,$extra_programs,;t t
24626 s,@float_h_file@,$float_h_file,;t t
24627 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24628 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24629 s,@host_exeext@,$host_exeext,;t t
24630 s,@host_xm_file_list@,$host_xm_file_list,;t t
24631 s,@host_xm_include_list@,$host_xm_include_list,;t t
24632 s,@host_xm_defines@,$host_xm_defines,;t t
24633 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24634 s,@install@,$install,;t t
24635 s,@lang_opt_files@,$lang_opt_files,;t t
24636 s,@lang_specs_files@,$lang_specs_files,;t t
24637 s,@lang_tree_files@,$lang_tree_files,;t t
24638 s,@local_prefix@,$local_prefix,;t t
24639 s,@md_file@,$md_file,;t t
24640 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24641 s,@out_file@,$out_file,;t t
24642 s,@out_object_file@,$out_object_file,;t t
24643 s,@thread_file@,$thread_file,;t t
24644 s,@tm_file_list@,$tm_file_list,;t t
24645 s,@tm_include_list@,$tm_include_list,;t t
24646 s,@tm_defines@,$tm_defines,;t t
24647 s,@tm_p_file_list@,$tm_p_file_list,;t t
24648 s,@tm_p_include_list@,$tm_p_include_list,;t t
24649 s,@xm_file_list@,$xm_file_list,;t t
24650 s,@xm_include_list@,$xm_include_list,;t t
24651 s,@xm_defines@,$xm_defines,;t t
24652 s,@c_target_objs@,$c_target_objs,;t t
24653 s,@cxx_target_objs@,$cxx_target_objs,;t t
24654 s,@fortran_target_objs@,$fortran_target_objs,;t t
24655 s,@target_cpu_default@,$target_cpu_default,;t t
24656 s,@GMPLIBS@,$GMPLIBS,;t t
24657 s,@GMPINC@,$GMPINC,;t t
24658 s,@LIBOBJS@,$LIBOBJS,;t t
24659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24660 /@language_hooks@/r $language_hooks
24661 s,@language_hooks@,,;t t
24662 CEOF
24663
24664 _ACEOF
24665
24666 cat >>$CONFIG_STATUS <<\_ACEOF
24667 # Split the substitutions into bite-sized pieces for seds with
24668 # small command number limits, like on Digital OSF/1 and HP-UX.
24669 ac_max_sed_lines=48
24670 ac_sed_frag=1 # Number of current file.
24671 ac_beg=1 # First line for current file.
24672 ac_end=$ac_max_sed_lines # Line after last line for current file.
24673 ac_more_lines=:
24674 ac_sed_cmds=
24675 while $ac_more_lines; do
24676 if test $ac_beg -gt 1; then
24677 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24678 else
24679 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24680 fi
24681 if test ! -s $tmp/subs.frag; then
24682 ac_more_lines=false
24683 else
24684 # The purpose of the label and of the branching condition is to
24685 # speed up the sed processing (if there are no `@' at all, there
24686 # is no need to browse any of the substitutions).
24687 # These are the two extra sed commands mentioned above.
24688 (echo ':t
24689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24690 if test -z "$ac_sed_cmds"; then
24691 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24692 else
24693 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24694 fi
24695 ac_sed_frag=`expr $ac_sed_frag + 1`
24696 ac_beg=$ac_end
24697 ac_end=`expr $ac_end + $ac_max_sed_lines`
24698 fi
24699 done
24700 if test -z "$ac_sed_cmds"; then
24701 ac_sed_cmds=cat
24702 fi
24703 fi # test -n "$CONFIG_FILES"
24704
24705 _ACEOF
24706 cat >>$CONFIG_STATUS <<\_ACEOF
24707 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24709 case $ac_file in
24710 - | *:- | *:-:* ) # input from stdin
24711 cat >$tmp/stdin
24712 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24714 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24716 * ) ac_file_in=$ac_file.in ;;
24717 esac
24718
24719 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24720 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24722 X"$ac_file" : 'X\(//\)[^/]' \| \
24723 X"$ac_file" : 'X\(//\)$' \| \
24724 X"$ac_file" : 'X\(/\)' \| \
24725 . : '\(.\)' 2>/dev/null ||
24726 echo X"$ac_file" |
24727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24729 /^X\(\/\/\)$/{ s//\1/; q; }
24730 /^X\(\/\).*/{ s//\1/; q; }
24731 s/.*/./; q'`
24732 { if $as_mkdir_p; then
24733 mkdir -p "$ac_dir"
24734 else
24735 as_dir="$ac_dir"
24736 as_dirs=
24737 while test ! -d "$as_dir"; do
24738 as_dirs="$as_dir $as_dirs"
24739 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24741 X"$as_dir" : 'X\(//\)[^/]' \| \
24742 X"$as_dir" : 'X\(//\)$' \| \
24743 X"$as_dir" : 'X\(/\)' \| \
24744 . : '\(.\)' 2>/dev/null ||
24745 echo X"$as_dir" |
24746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24748 /^X\(\/\/\)$/{ s//\1/; q; }
24749 /^X\(\/\).*/{ s//\1/; q; }
24750 s/.*/./; q'`
24751 done
24752 test ! -n "$as_dirs" || mkdir $as_dirs
24753 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24754 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24755 { (exit 1); exit 1; }; }; }
24756
24757 ac_builddir=.
24758
24759 if test "$ac_dir" != .; then
24760 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24761 # A "../" for each directory in $ac_dir_suffix.
24762 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24763 else
24764 ac_dir_suffix= ac_top_builddir=
24765 fi
24766
24767 case $srcdir in
24768 .) # No --srcdir option. We are building in place.
24769 ac_srcdir=.
24770 if test -z "$ac_top_builddir"; then
24771 ac_top_srcdir=.
24772 else
24773 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24774 fi ;;
24775 [\\/]* | ?:[\\/]* ) # Absolute path.
24776 ac_srcdir=$srcdir$ac_dir_suffix;
24777 ac_top_srcdir=$srcdir ;;
24778 *) # Relative path.
24779 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24780 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24781 esac
24782
24783 # Do not use `cd foo && pwd` to compute absolute paths, because
24784 # the directories may not exist.
24785 case `pwd` in
24786 .) ac_abs_builddir="$ac_dir";;
24787 *)
24788 case "$ac_dir" in
24789 .) ac_abs_builddir=`pwd`;;
24790 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24791 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24792 esac;;
24793 esac
24794 case $ac_abs_builddir in
24795 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24796 *)
24797 case ${ac_top_builddir}. in
24798 .) ac_abs_top_builddir=$ac_abs_builddir;;
24799 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24800 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24801 esac;;
24802 esac
24803 case $ac_abs_builddir in
24804 .) ac_abs_srcdir=$ac_srcdir;;
24805 *)
24806 case $ac_srcdir in
24807 .) ac_abs_srcdir=$ac_abs_builddir;;
24808 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24809 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24810 esac;;
24811 esac
24812 case $ac_abs_builddir in
24813 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24814 *)
24815 case $ac_top_srcdir in
24816 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24817 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24818 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24819 esac;;
24820 esac
24821
24822
24823
24824 if test x"$ac_file" != x-; then
24825 { echo "$as_me:$LINENO: creating $ac_file" >&5
24826 echo "$as_me: creating $ac_file" >&6;}
24827 rm -f "$ac_file"
24828 fi
24829 # Let's still pretend it is `configure' which instantiates (i.e., don't
24830 # use $as_me), people would be surprised to read:
24831 # /* config.h. Generated by config.status. */
24832 if test x"$ac_file" = x-; then
24833 configure_input=
24834 else
24835 configure_input="$ac_file. "
24836 fi
24837 configure_input=$configure_input"Generated from `echo $ac_file_in |
24838 sed 's,.*/,,'` by configure."
24839
24840 # First look for the input files in the build tree, otherwise in the
24841 # src tree.
24842 ac_file_inputs=`IFS=:
24843 for f in $ac_file_in; do
24844 case $f in
24845 -) echo $tmp/stdin ;;
24846 [\\/$]*)
24847 # Absolute (can't be DOS-style, as IFS=:)
24848 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24849 echo "$as_me: error: cannot find input file: $f" >&2;}
24850 { (exit 1); exit 1; }; }
24851 echo "$f";;
24852 *) # Relative
24853 if test -f "$f"; then
24854 # Build tree
24855 echo "$f"
24856 elif test -f "$srcdir/$f"; then
24857 # Source tree
24858 echo "$srcdir/$f"
24859 else
24860 # /dev/null tree
24861 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24862 echo "$as_me: error: cannot find input file: $f" >&2;}
24863 { (exit 1); exit 1; }; }
24864 fi;;
24865 esac
24866 done` || { (exit 1); exit 1; }
24867 _ACEOF
24868 cat >>$CONFIG_STATUS <<_ACEOF
24869 sed "$ac_vpsub
24870 $extrasub
24871 _ACEOF
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24873 :t
24874 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24875 s,@configure_input@,$configure_input,;t t
24876 s,@srcdir@,$ac_srcdir,;t t
24877 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24878 s,@top_srcdir@,$ac_top_srcdir,;t t
24879 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24880 s,@builddir@,$ac_builddir,;t t
24881 s,@abs_builddir@,$ac_abs_builddir,;t t
24882 s,@top_builddir@,$ac_top_builddir,;t t
24883 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24884 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24885 rm -f $tmp/stdin
24886 if test x"$ac_file" != x-; then
24887 mv $tmp/out $ac_file
24888 else
24889 cat $tmp/out
24890 rm -f $tmp/out
24891 fi
24892
24893 # Run the commands associated with the file.
24894 case $ac_file in
24895 as ) chmod +x as ;;
24896 collect-ld ) chmod +x collect-ld ;;
24897 nm ) chmod +x nm ;;
24898 esac
24899 done
24900 _ACEOF
24901 cat >>$CONFIG_STATUS <<\_ACEOF
24902
24903 #
24904 # CONFIG_HEADER section.
24905 #
24906
24907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24909 #
24910 # ac_d sets the value in "#define NAME VALUE" lines.
24911 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24912 ac_dB='[ ].*$,\1#\2'
24913 ac_dC=' '
24914 ac_dD=',;t'
24915 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24916 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24917 ac_uB='$,\1#\2define\3'
24918 ac_uC=' '
24919 ac_uD=',;t'
24920
24921 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24923 case $ac_file in
24924 - | *:- | *:-:* ) # input from stdin
24925 cat >$tmp/stdin
24926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24930 * ) ac_file_in=$ac_file.in ;;
24931 esac
24932
24933 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24934 echo "$as_me: creating $ac_file" >&6;}
24935
24936 # First look for the input files in the build tree, otherwise in the
24937 # src tree.
24938 ac_file_inputs=`IFS=:
24939 for f in $ac_file_in; do
24940 case $f in
24941 -) echo $tmp/stdin ;;
24942 [\\/$]*)
24943 # Absolute (can't be DOS-style, as IFS=:)
24944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24945 echo "$as_me: error: cannot find input file: $f" >&2;}
24946 { (exit 1); exit 1; }; }
24947 # Do quote $f, to prevent DOS paths from being IFS'd.
24948 echo "$f";;
24949 *) # Relative
24950 if test -f "$f"; then
24951 # Build tree
24952 echo "$f"
24953 elif test -f "$srcdir/$f"; then
24954 # Source tree
24955 echo "$srcdir/$f"
24956 else
24957 # /dev/null tree
24958 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24959 echo "$as_me: error: cannot find input file: $f" >&2;}
24960 { (exit 1); exit 1; }; }
24961 fi;;
24962 esac
24963 done` || { (exit 1); exit 1; }
24964 # Remove the trailing spaces.
24965 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24966
24967 _ACEOF
24968
24969 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24970 # `conftest.undefs', that substitutes the proper values into
24971 # config.h.in to produce config.h. The first handles `#define'
24972 # templates, and the second `#undef' templates.
24973 # And first: Protect against being on the right side of a sed subst in
24974 # config.status. Protect against being in an unquoted here document
24975 # in config.status.
24976 rm -f conftest.defines conftest.undefs
24977 # Using a here document instead of a string reduces the quoting nightmare.
24978 # Putting comments in sed scripts is not portable.
24979 #
24980 # `end' is used to avoid that the second main sed command (meant for
24981 # 0-ary CPP macros) applies to n-ary macro definitions.
24982 # See the Autoconf documentation for `clear'.
24983 cat >confdef2sed.sed <<\_ACEOF
24984 s/[\\&,]/\\&/g
24985 s,[\\$`],\\&,g
24986 t clear
24987 : clear
24988 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24989 t end
24990 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24991 : end
24992 _ACEOF
24993 # If some macros were called several times there might be several times
24994 # the same #defines, which is useless. Nevertheless, we may not want to
24995 # sort them, since we want the *last* AC-DEFINE to be honored.
24996 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24997 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24998 rm -f confdef2sed.sed
24999
25000 # This sed command replaces #undef with comments. This is necessary, for
25001 # example, in the case of _POSIX_SOURCE, which is predefined and required
25002 # on some systems where configure will not decide to define it.
25003 cat >>conftest.undefs <<\_ACEOF
25004 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25005 _ACEOF
25006
25007 # Break up conftest.defines because some shells have a limit on the size
25008 # of here documents, and old seds have small limits too (100 cmds).
25009 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25010 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25011 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25012 echo ' :' >>$CONFIG_STATUS
25013 rm -f conftest.tail
25014 while grep . conftest.defines >/dev/null
25015 do
25016 # Write a limited-size here document to $tmp/defines.sed.
25017 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25018 # Speed up: don't consider the non `#define' lines.
25019 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25020 # Work around the forget-to-reset-the-flag bug.
25021 echo 't clr' >>$CONFIG_STATUS
25022 echo ': clr' >>$CONFIG_STATUS
25023 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25024 echo 'CEOF
25025 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25026 rm -f $tmp/in
25027 mv $tmp/out $tmp/in
25028 ' >>$CONFIG_STATUS
25029 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25030 rm -f conftest.defines
25031 mv conftest.tail conftest.defines
25032 done
25033 rm -f conftest.defines
25034 echo ' fi # grep' >>$CONFIG_STATUS
25035 echo >>$CONFIG_STATUS
25036
25037 # Break up conftest.undefs because some shells have a limit on the size
25038 # of here documents, and old seds have small limits too (100 cmds).
25039 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25040 rm -f conftest.tail
25041 while grep . conftest.undefs >/dev/null
25042 do
25043 # Write a limited-size here document to $tmp/undefs.sed.
25044 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25045 # Speed up: don't consider the non `#undef'
25046 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25047 # Work around the forget-to-reset-the-flag bug.
25048 echo 't clr' >>$CONFIG_STATUS
25049 echo ': clr' >>$CONFIG_STATUS
25050 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25051 echo 'CEOF
25052 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25053 rm -f $tmp/in
25054 mv $tmp/out $tmp/in
25055 ' >>$CONFIG_STATUS
25056 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25057 rm -f conftest.undefs
25058 mv conftest.tail conftest.undefs
25059 done
25060 rm -f conftest.undefs
25061
25062 cat >>$CONFIG_STATUS <<\_ACEOF
25063 # Let's still pretend it is `configure' which instantiates (i.e., don't
25064 # use $as_me), people would be surprised to read:
25065 # /* config.h. Generated by config.status. */
25066 if test x"$ac_file" = x-; then
25067 echo "/* Generated by configure. */" >$tmp/config.h
25068 else
25069 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25070 fi
25071 cat $tmp/in >>$tmp/config.h
25072 rm -f $tmp/in
25073 if test x"$ac_file" != x-; then
25074 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25075 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25076 echo "$as_me: $ac_file is unchanged" >&6;}
25077 else
25078 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25079 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25080 X"$ac_file" : 'X\(//\)[^/]' \| \
25081 X"$ac_file" : 'X\(//\)$' \| \
25082 X"$ac_file" : 'X\(/\)' \| \
25083 . : '\(.\)' 2>/dev/null ||
25084 echo X"$ac_file" |
25085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25087 /^X\(\/\/\)$/{ s//\1/; q; }
25088 /^X\(\/\).*/{ s//\1/; q; }
25089 s/.*/./; q'`
25090 { if $as_mkdir_p; then
25091 mkdir -p "$ac_dir"
25092 else
25093 as_dir="$ac_dir"
25094 as_dirs=
25095 while test ! -d "$as_dir"; do
25096 as_dirs="$as_dir $as_dirs"
25097 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25099 X"$as_dir" : 'X\(//\)[^/]' \| \
25100 X"$as_dir" : 'X\(//\)$' \| \
25101 X"$as_dir" : 'X\(/\)' \| \
25102 . : '\(.\)' 2>/dev/null ||
25103 echo X"$as_dir" |
25104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25106 /^X\(\/\/\)$/{ s//\1/; q; }
25107 /^X\(\/\).*/{ s//\1/; q; }
25108 s/.*/./; q'`
25109 done
25110 test ! -n "$as_dirs" || mkdir $as_dirs
25111 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25113 { (exit 1); exit 1; }; }; }
25114
25115 rm -f $ac_file
25116 mv $tmp/config.h $ac_file
25117 fi
25118 else
25119 cat $tmp/config.h
25120 rm -f $tmp/config.h
25121 fi
25122 done
25123 _ACEOF
25124 cat >>$CONFIG_STATUS <<\_ACEOF
25125
25126 #
25127 # CONFIG_COMMANDS section.
25128 #
25129 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25130 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25131 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25132 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25133 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25134 X"$ac_dest" : 'X\(//\)[^/]' \| \
25135 X"$ac_dest" : 'X\(//\)$' \| \
25136 X"$ac_dest" : 'X\(/\)' \| \
25137 . : '\(.\)' 2>/dev/null ||
25138 echo X"$ac_dest" |
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25141 /^X\(\/\/\)$/{ s//\1/; q; }
25142 /^X\(\/\).*/{ s//\1/; q; }
25143 s/.*/./; q'`
25144 { if $as_mkdir_p; then
25145 mkdir -p "$ac_dir"
25146 else
25147 as_dir="$ac_dir"
25148 as_dirs=
25149 while test ! -d "$as_dir"; do
25150 as_dirs="$as_dir $as_dirs"
25151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25153 X"$as_dir" : 'X\(//\)[^/]' \| \
25154 X"$as_dir" : 'X\(//\)$' \| \
25155 X"$as_dir" : 'X\(/\)' \| \
25156 . : '\(.\)' 2>/dev/null ||
25157 echo X"$as_dir" |
25158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25160 /^X\(\/\/\)$/{ s//\1/; q; }
25161 /^X\(\/\).*/{ s//\1/; q; }
25162 s/.*/./; q'`
25163 done
25164 test ! -n "$as_dirs" || mkdir $as_dirs
25165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25166 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25167 { (exit 1); exit 1; }; }; }
25168
25169 ac_builddir=.
25170
25171 if test "$ac_dir" != .; then
25172 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25173 # A "../" for each directory in $ac_dir_suffix.
25174 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25175 else
25176 ac_dir_suffix= ac_top_builddir=
25177 fi
25178
25179 case $srcdir in
25180 .) # No --srcdir option. We are building in place.
25181 ac_srcdir=.
25182 if test -z "$ac_top_builddir"; then
25183 ac_top_srcdir=.
25184 else
25185 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25186 fi ;;
25187 [\\/]* | ?:[\\/]* ) # Absolute path.
25188 ac_srcdir=$srcdir$ac_dir_suffix;
25189 ac_top_srcdir=$srcdir ;;
25190 *) # Relative path.
25191 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25192 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25193 esac
25194
25195 # Do not use `cd foo && pwd` to compute absolute paths, because
25196 # the directories may not exist.
25197 case `pwd` in
25198 .) ac_abs_builddir="$ac_dir";;
25199 *)
25200 case "$ac_dir" in
25201 .) ac_abs_builddir=`pwd`;;
25202 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25203 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25204 esac;;
25205 esac
25206 case $ac_abs_builddir in
25207 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25208 *)
25209 case ${ac_top_builddir}. in
25210 .) ac_abs_top_builddir=$ac_abs_builddir;;
25211 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25212 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25213 esac;;
25214 esac
25215 case $ac_abs_builddir in
25216 .) ac_abs_srcdir=$ac_srcdir;;
25217 *)
25218 case $ac_srcdir in
25219 .) ac_abs_srcdir=$ac_abs_builddir;;
25220 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25221 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25222 esac;;
25223 esac
25224 case $ac_abs_builddir in
25225 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25226 *)
25227 case $ac_top_srcdir in
25228 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25229 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25230 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25231 esac;;
25232 esac
25233
25234
25235 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25236 echo "$as_me: executing $ac_dest commands" >&6;}
25237 case $ac_dest in
25238 default )
25239 case ${CONFIG_HEADERS} in
25240 *auto-host.h:config.in*)
25241 echo > cstamp-h ;;
25242 esac
25243 # Make sure all the subdirs exist.
25244 for d in $subdirs doc build
25245 do
25246 test -d $d || mkdir $d
25247 done
25248 ;;
25249 esac
25250 done
25251 _ACEOF
25252
25253 cat >>$CONFIG_STATUS <<\_ACEOF
25254
25255 { (exit 0); exit 0; }
25256 _ACEOF
25257 chmod +x $CONFIG_STATUS
25258 ac_clean_files=$ac_clean_files_save
25259
25260
25261 # configure is writing to config.log, and then calls config.status.
25262 # config.status does its own redirection, appending to config.log.
25263 # Unfortunately, on DOS this fails, as config.log is still kept open
25264 # by configure, so config.status won't be able to write to it; its
25265 # output is simply discarded. So we exec the FD to /dev/null,
25266 # effectively closing config.log, so it can be properly (re)opened and
25267 # appended to by config.status. When coming back to configure, we
25268 # need to make the FD available again.
25269 if test "$no_create" != yes; then
25270 ac_cs_success=:
25271 ac_config_status_args=
25272 test "$silent" = yes &&
25273 ac_config_status_args="$ac_config_status_args --quiet"
25274 exec 5>/dev/null
25275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25276 exec 5>>config.log
25277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25278 # would make configure fail if this is the last instruction.
25279 $ac_cs_success || { (exit 1); exit 1; }
25280 fi
25281