]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac: Add --enable-build-with-cxx.
[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 CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn c_loose_warn strict_warn c_strict_warn warn_cflags warn_cxxflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags ENABLE_BUILD_WITH_CXX enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN OBJDUMP ac_ct_OBJDUMP ac_ct_AR STRIP ac_ct_STRIP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXXCPP objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump gcc_cv_readelf libgcc_visibility GGC HOST_LIBS 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 TM_ENDIAN_CONFIG TM_MULTILIB_CONFIG TM_MULTILIB_EXCEPTIONS_CONFIG extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines use_gcc_stdint c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC PPLLIBS PPLINC CLOOGLIBS CLOOGINC pluginlibs enable_plugin LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
517 case $ac_option in
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
523
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
544
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
553
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
586
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
735
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
748
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
775
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
779 ;;
780
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
791 *)
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822 do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875 else
876 ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CXX_set=${CXX+set}
920 ac_env_CXX_value=$CXX
921 ac_cv_env_CXX_set=${CXX+set}
922 ac_cv_env_CXX_value=$CXX
923 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
924 ac_env_CXXFLAGS_value=$CXXFLAGS
925 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
926 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXXCPP_set=${CXXCPP+set}
932 ac_env_CXXCPP_value=$CXXCPP
933 ac_cv_env_CXXCPP_set=${CXXCPP+set}
934 ac_cv_env_CXXCPP_value=$CXXCPP
935 ac_env_GMPLIBS_set=${GMPLIBS+set}
936 ac_env_GMPLIBS_value=$GMPLIBS
937 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
938 ac_cv_env_GMPLIBS_value=$GMPLIBS
939 ac_env_GMPINC_set=${GMPINC+set}
940 ac_env_GMPINC_value=$GMPINC
941 ac_cv_env_GMPINC_set=${GMPINC+set}
942 ac_cv_env_GMPINC_value=$GMPINC
943 ac_env_PPLLIBS_set=${PPLLIBS+set}
944 ac_env_PPLLIBS_value=$PPLLIBS
945 ac_cv_env_PPLLIBS_set=${PPLLIBS+set}
946 ac_cv_env_PPLLIBS_value=$PPLLIBS
947 ac_env_PPLINC_set=${PPLINC+set}
948 ac_env_PPLINC_value=$PPLINC
949 ac_cv_env_PPLINC_set=${PPLINC+set}
950 ac_cv_env_PPLINC_value=$PPLINC
951 ac_env_CLOOGLIBS_set=${CLOOGLIBS+set}
952 ac_env_CLOOGLIBS_value=$CLOOGLIBS
953 ac_cv_env_CLOOGLIBS_set=${CLOOGLIBS+set}
954 ac_cv_env_CLOOGLIBS_value=$CLOOGLIBS
955 ac_env_CLOOGINC_set=${CLOOGINC+set}
956 ac_env_CLOOGINC_value=$CLOOGINC
957 ac_cv_env_CLOOGINC_set=${CLOOGINC+set}
958 ac_cv_env_CLOOGINC_value=$CLOOGINC
959
960 #
961 # Report the --help message.
962 #
963 if test "$ac_init_help" = "long"; then
964 # Omit some internal or obsolete options to make the list less imposing.
965 # This message is too long to be a string in the A/UX 3.1 sh.
966 cat <<_ACEOF
967 \`configure' configures this package to adapt to many kinds of systems.
968
969 Usage: $0 [OPTION]... [VAR=VALUE]...
970
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE. See below for descriptions of some of the useful variables.
973
974 Defaults for the options are specified in brackets.
975
976 Configuration:
977 -h, --help display this help and exit
978 --help=short display options specific to this package
979 --help=recursive display the short help of all the included packages
980 -V, --version display version information and exit
981 -q, --quiet, --silent do not print \`checking...' messages
982 --cache-file=FILE cache test results in FILE [disabled]
983 -C, --config-cache alias for \`--cache-file=config.cache'
984 -n, --no-create do not create output files
985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
986
987 _ACEOF
988
989 cat <<_ACEOF
990 Installation directories:
991 --prefix=PREFIX install architecture-independent files in PREFIX
992 [$ac_default_prefix]
993 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
994 [PREFIX]
995
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1000
1001 For better control, use the options below.
1002
1003 Fine tuning of the installation directories:
1004 --bindir=DIR user executables [EPREFIX/bin]
1005 --sbindir=DIR system admin executables [EPREFIX/sbin]
1006 --libexecdir=DIR program executables [EPREFIX/libexec]
1007 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1008 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1009 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1010 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1011 --libdir=DIR object code libraries [EPREFIX/lib]
1012 --includedir=DIR C header files [PREFIX/include]
1013 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1014 --infodir=DIR info documentation [PREFIX/info]
1015 --mandir=DIR man documentation [PREFIX/man]
1016 _ACEOF
1017
1018 cat <<\_ACEOF
1019
1020 Program names:
1021 --program-prefix=PREFIX prepend PREFIX to installed program names
1022 --program-suffix=SUFFIX append SUFFIX to installed program names
1023 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1024
1025 System types:
1026 --build=BUILD configure for building on BUILD [guessed]
1027 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1028 --target=TARGET configure for building compilers for TARGET [HOST]
1029 _ACEOF
1030 fi
1031
1032 if test -n "$ac_init_help"; then
1033
1034 cat <<\_ACEOF
1035
1036 Optional Features:
1037 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1038 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1039 --enable-generated-files-in-srcdir
1040 put copies of generated files in source dir
1041 intended for creating source tarballs for users
1042 without texinfo bison or flex.
1043 --enable-werror-always enable -Werror despite compiler version
1044 --enable-checking=LIST
1045 enable expensive run-time checks. With LIST,
1046 enable only specific categories of checks.
1047 Categories are: yes,no,all,none,release.
1048 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1049 rtlflag,rtl,runtime,tree,valgrind,types.
1050 --enable-coverage=LEVEL
1051 enable compiler's code coverage collection.
1052 Use to measure compiler performance and locate
1053 unused parts of the compiler. With LEVEL, specify
1054 optimization. Values are opt, noopt,
1055 default is noopt
1056 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1057 --enable-build-with-cxx build with C++ compiler instead of C compiler
1058 --enable-multilib enable library support for multiple ABIs
1059 --enable-__cxa_atexit enable __cxa_atexit for C++
1060 --enable-decimal-float={no,yes,bid,dpd}
1061 enable decimal float extension to C. Selecting 'bid'
1062 or 'dpd' choses which decimal floating point format
1063 to use
1064 --enable-fixed-point enable fixed-point arithmetic extension to C
1065 --enable-threads enable thread usage for target GCC
1066 --enable-threads=LIB use LIB thread package for target GCC
1067 --enable-tls enable or disable generation of tls code
1068 overriding the assembler check for tls support
1069 --enable-objc-gc enable the use of Boehm's garbage collector with
1070 the GNU Objective-C runtime
1071 --disable-shared don't provide a shared libgcc
1072 --enable-intermodule build the compiler in one step
1073 --enable-languages=LIST specify which front-ends to build
1074 --disable-rpath do not hardcode runtime library paths
1075 --enable-initfini-array use .init_array/.fini_array sections
1076 --enable-sjlj-exceptions
1077 arrange to use setjmp/longjmp exception handling
1078 --enable-secureplt enable -msecure-plt by default for PowerPC
1079 --enable-cld enable -mcld by default for 32bit x86
1080 --disable-win32-registry
1081 disable lookup of installation paths in the
1082 Registry on Windows hosts
1083 --enable-win32-registry enable registry lookup (default)
1084 --enable-win32-registry=KEY
1085 use KEY instead of GCC version as the last portion
1086 of the registry key
1087 --enable-shared[=PKGS]
1088 build shared libraries [default=yes]
1089 --enable-static[=PKGS]
1090 build static libraries [default=yes]
1091 --enable-fast-install[=PKGS]
1092 optimize for fast installation [default=yes]
1093 --disable-libtool-lock avoid locking (might break parallel builds)
1094 --enable-linker-build-id
1095 compiler will always pass --build-id to linker
1096 --enable-maintainer-mode
1097 enable make rules and dependencies not useful
1098 (and sometimes confusing) to the casual installer
1099 --enable-version-specific-runtime-libs
1100 specify that runtime libraries should be
1101 installed in a compiler-specific directory
1102 --enable-plugin enable plugin support
1103
1104 Optional Packages:
1105 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1106 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1107 --with-build-libsubdir=DIR Directory where to find libraries for build system
1108 --with-local-prefix=DIR specifies directory to put local include
1109 --with-gxx-include-dir=DIR
1110 specifies directory to put g++ header files
1111 --with-cpp-install-dir=DIR
1112 install the user visible C preprocessor in DIR
1113 (relative to PREFIX) as well as PREFIX/bin
1114 --with-gnu-ld arrange to work with GNU ld.
1115 --with-ld arrange to use the specified ld (full pathname)
1116 --with-demangler-in-ld try to use demangler in GNU ld.
1117 --with-gnu-as arrange to work with GNU as
1118 --with-as arrange to use the specified as (full pathname)
1119 --with-stabs arrange to use stabs instead of host debug format
1120 --with-dwarf2 force the default debug format to be DWARF 2
1121 --with-build-sysroot=sysroot
1122 use sysroot as the system root during the build
1123 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1124 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1125 --with-bugurl=URL Direct users to URL to report a bug
1126 --with-multilib-list Select multilibs (SH only)
1127 --with-gnu-ld assume the C compiler uses GNU ld default=no
1128 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1129 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1130 --with-system-libunwind use installed libunwind
1131 --with-pic try to use only PIC/non-PIC objects [default=use
1132 both]
1133 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1134 --with-long-double-128 Use 128-bit long double by default.
1135 --with-gc={page,zone} choose the garbage collection mechanism to use
1136 with the compiler
1137 --with-system-zlib use installed libz
1138 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1139 --with-datarootdir=DIR Use DIR as the data root [PREFIX/share]
1140 --with-docdir=DIR Install documentation in DIR [DATAROOTDIR]
1141 --with-htmldir=DIR html documentation in in DIR [DOCDIR]
1142
1143 Some influential environment variables:
1144 CC C compiler command
1145 CFLAGS C compiler flags
1146 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1147 nonstandard directory <lib dir>
1148 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1149 headers in a nonstandard directory <include dir>
1150 CXX C++ compiler command
1151 CXXFLAGS C++ compiler flags
1152 CPP C preprocessor
1153 CXXCPP C++ preprocessor
1154 GMPLIBS How to link GMP
1155 GMPINC How to find GMP include files
1156 PPLLIBS How to link PPL
1157 PPLINC How to find PPL include files
1158 CLOOGLIBS How to link CLOOG
1159 CLOOGINC How to find CLOOG include files
1160
1161 Use these variables to override the choices made by `configure' or to help
1162 it to find libraries and programs with nonstandard names/locations.
1163
1164 _ACEOF
1165 fi
1166
1167 if test "$ac_init_help" = "recursive"; then
1168 # If there are subdirs, report their specific --help.
1169 ac_popdir=`pwd`
1170 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1171 test -d $ac_dir || continue
1172 ac_builddir=.
1173
1174 if test "$ac_dir" != .; then
1175 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1176 # A "../" for each directory in $ac_dir_suffix.
1177 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1178 else
1179 ac_dir_suffix= ac_top_builddir=
1180 fi
1181
1182 case $srcdir in
1183 .) # No --srcdir option. We are building in place.
1184 ac_srcdir=.
1185 if test -z "$ac_top_builddir"; then
1186 ac_top_srcdir=.
1187 else
1188 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1189 fi ;;
1190 [\\/]* | ?:[\\/]* ) # Absolute path.
1191 ac_srcdir=$srcdir$ac_dir_suffix;
1192 ac_top_srcdir=$srcdir ;;
1193 *) # Relative path.
1194 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1195 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1196 esac
1197
1198 # Do not use `cd foo && pwd` to compute absolute paths, because
1199 # the directories may not exist.
1200 case `pwd` in
1201 .) ac_abs_builddir="$ac_dir";;
1202 *)
1203 case "$ac_dir" in
1204 .) ac_abs_builddir=`pwd`;;
1205 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1206 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1207 esac;;
1208 esac
1209 case $ac_abs_builddir in
1210 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1211 *)
1212 case ${ac_top_builddir}. in
1213 .) ac_abs_top_builddir=$ac_abs_builddir;;
1214 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1215 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1216 esac;;
1217 esac
1218 case $ac_abs_builddir in
1219 .) ac_abs_srcdir=$ac_srcdir;;
1220 *)
1221 case $ac_srcdir in
1222 .) ac_abs_srcdir=$ac_abs_builddir;;
1223 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1224 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1225 esac;;
1226 esac
1227 case $ac_abs_builddir in
1228 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1229 *)
1230 case $ac_top_srcdir in
1231 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1232 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1233 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1234 esac;;
1235 esac
1236
1237 cd $ac_dir
1238 # Check for guested configure; otherwise get Cygnus style configure.
1239 if test -f $ac_srcdir/configure.gnu; then
1240 echo
1241 $SHELL $ac_srcdir/configure.gnu --help=recursive
1242 elif test -f $ac_srcdir/configure; then
1243 echo
1244 $SHELL $ac_srcdir/configure --help=recursive
1245 elif test -f $ac_srcdir/configure.ac ||
1246 test -f $ac_srcdir/configure.in; then
1247 echo
1248 $ac_configure --help
1249 else
1250 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1251 fi
1252 cd $ac_popdir
1253 done
1254 fi
1255
1256 test -n "$ac_init_help" && exit 0
1257 if $ac_init_version; then
1258 cat <<\_ACEOF
1259
1260 Copyright (C) 2003 Free Software Foundation, Inc.
1261 This configure script is free software; the Free Software Foundation
1262 gives unlimited permission to copy, distribute and modify it.
1263 _ACEOF
1264 exit 0
1265 fi
1266 exec 5>config.log
1267 cat >&5 <<_ACEOF
1268 This file contains any messages produced by compilers while
1269 running configure, to aid debugging if configure makes a mistake.
1270
1271 It was created by $as_me, which was
1272 generated by GNU Autoconf 2.59. Invocation command line was
1273
1274 $ $0 $@
1275
1276 _ACEOF
1277 {
1278 cat <<_ASUNAME
1279 ## --------- ##
1280 ## Platform. ##
1281 ## --------- ##
1282
1283 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1284 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1285 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1286 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1287 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1288
1289 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1290 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1291
1292 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1293 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1294 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1295 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1296 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1297 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1298 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1299
1300 _ASUNAME
1301
1302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1303 for as_dir in $PATH
1304 do
1305 IFS=$as_save_IFS
1306 test -z "$as_dir" && as_dir=.
1307 echo "PATH: $as_dir"
1308 done
1309
1310 } >&5
1311
1312 cat >&5 <<_ACEOF
1313
1314
1315 ## ----------- ##
1316 ## Core tests. ##
1317 ## ----------- ##
1318
1319 _ACEOF
1320
1321
1322 # Keep a trace of the command line.
1323 # Strip out --no-create and --no-recursion so they do not pile up.
1324 # Strip out --silent because we don't want to record it for future runs.
1325 # Also quote any args containing shell meta-characters.
1326 # Make two passes to allow for proper duplicate-argument suppression.
1327 ac_configure_args=
1328 ac_configure_args0=
1329 ac_configure_args1=
1330 ac_sep=
1331 ac_must_keep_next=false
1332 for ac_pass in 1 2
1333 do
1334 for ac_arg
1335 do
1336 case $ac_arg in
1337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1340 continue ;;
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 esac
1344 case $ac_pass in
1345 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1346 2)
1347 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1348 if test $ac_must_keep_next = true; then
1349 ac_must_keep_next=false # Got value, back to normal.
1350 else
1351 case $ac_arg in
1352 *=* | --config-cache | -C | -disable-* | --disable-* \
1353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1355 | -with-* | --with-* | -without-* | --without-* | --x)
1356 case "$ac_configure_args0 " in
1357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1358 esac
1359 ;;
1360 -* ) ac_must_keep_next=true ;;
1361 esac
1362 fi
1363 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1364 # Get rid of the leading space.
1365 ac_sep=" "
1366 ;;
1367 esac
1368 done
1369 done
1370 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1371 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1372
1373 # When interrupted or exit'd, cleanup temporary files, and complete
1374 # config.log. We remove comments because anyway the quotes in there
1375 # would cause problems or look ugly.
1376 # WARNING: Be sure not to use single quotes in there, as some shells,
1377 # such as our DU 5.0 friend, will then `close' the trap.
1378 trap 'exit_status=$?
1379 # Save into config.log some information that might help in debugging.
1380 {
1381 echo
1382
1383 cat <<\_ASBOX
1384 ## ---------------- ##
1385 ## Cache variables. ##
1386 ## ---------------- ##
1387 _ASBOX
1388 echo
1389 # The following way of writing the cache mishandles newlines in values,
1390 {
1391 (set) 2>&1 |
1392 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1393 *ac_space=\ *)
1394 sed -n \
1395 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1397 ;;
1398 *)
1399 sed -n \
1400 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1401 ;;
1402 esac;
1403 }
1404 echo
1405
1406 cat <<\_ASBOX
1407 ## ----------------- ##
1408 ## Output variables. ##
1409 ## ----------------- ##
1410 _ASBOX
1411 echo
1412 for ac_var in $ac_subst_vars
1413 do
1414 eval ac_val=$`echo $ac_var`
1415 echo "$ac_var='"'"'$ac_val'"'"'"
1416 done | sort
1417 echo
1418
1419 if test -n "$ac_subst_files"; then
1420 cat <<\_ASBOX
1421 ## ------------- ##
1422 ## Output files. ##
1423 ## ------------- ##
1424 _ASBOX
1425 echo
1426 for ac_var in $ac_subst_files
1427 do
1428 eval ac_val=$`echo $ac_var`
1429 echo "$ac_var='"'"'$ac_val'"'"'"
1430 done | sort
1431 echo
1432 fi
1433
1434 if test -s confdefs.h; then
1435 cat <<\_ASBOX
1436 ## ----------- ##
1437 ## confdefs.h. ##
1438 ## ----------- ##
1439 _ASBOX
1440 echo
1441 sed "/^$/d" confdefs.h | sort
1442 echo
1443 fi
1444 test "$ac_signal" != 0 &&
1445 echo "$as_me: caught signal $ac_signal"
1446 echo "$as_me: exit $exit_status"
1447 } >&5
1448 rm -f core *.core &&
1449 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1450 exit $exit_status
1451 ' 0
1452 for ac_signal in 1 2 13 15; do
1453 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1454 done
1455 ac_signal=0
1456
1457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1458 rm -rf conftest* confdefs.h
1459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1460 echo >confdefs.h
1461
1462 # Predefined preprocessor variables.
1463
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_NAME "$PACKAGE_NAME"
1466 _ACEOF
1467
1468
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1471 _ACEOF
1472
1473
1474 cat >>confdefs.h <<_ACEOF
1475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1476 _ACEOF
1477
1478
1479 cat >>confdefs.h <<_ACEOF
1480 #define PACKAGE_STRING "$PACKAGE_STRING"
1481 _ACEOF
1482
1483
1484 cat >>confdefs.h <<_ACEOF
1485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1486 _ACEOF
1487
1488
1489 # Let the site file select an alternate cache file if it wants to.
1490 # Prefer explicitly selected file to automatically selected ones.
1491 if test -z "$CONFIG_SITE"; then
1492 if test "x$prefix" != xNONE; then
1493 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1494 else
1495 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1496 fi
1497 fi
1498 for ac_site_file in $CONFIG_SITE; do
1499 if test -r "$ac_site_file"; then
1500 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1501 echo "$as_me: loading site script $ac_site_file" >&6;}
1502 sed 's/^/| /' "$ac_site_file" >&5
1503 . "$ac_site_file"
1504 fi
1505 done
1506
1507 if test -r "$cache_file"; then
1508 # Some versions of bash will fail to source /dev/null (special
1509 # files actually), so we avoid doing that.
1510 if test -f "$cache_file"; then
1511 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1512 echo "$as_me: loading cache $cache_file" >&6;}
1513 case $cache_file in
1514 [\\/]* | ?:[\\/]* ) . $cache_file;;
1515 *) . ./$cache_file;;
1516 esac
1517 fi
1518 else
1519 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1520 echo "$as_me: creating cache $cache_file" >&6;}
1521 >$cache_file
1522 fi
1523
1524 # Check that the precious variables saved in the cache have kept the same
1525 # value.
1526 ac_cache_corrupted=false
1527 for ac_var in `(set) 2>&1 |
1528 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1529 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1530 eval ac_new_set=\$ac_env_${ac_var}_set
1531 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1532 eval ac_new_val="\$ac_env_${ac_var}_value"
1533 case $ac_old_set,$ac_new_set in
1534 set,)
1535 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1536 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1537 ac_cache_corrupted=: ;;
1538 ,set)
1539 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1540 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1541 ac_cache_corrupted=: ;;
1542 ,);;
1543 *)
1544 if test "x$ac_old_val" != "x$ac_new_val"; then
1545 # differences in whitespace do not lead to failure.
1546 ac_old_val_w=`echo x $ac_old_val`
1547 ac_new_val_w=`echo x $ac_new_val`
1548 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1549 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1550 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1551 ac_cache_corrupted=:
1552 else
1553 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1554 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1555 eval $ac_var=\$ac_old_val
1556 fi
1557 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1558 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1559 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1560 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1561 fi;;
1562 esac
1563 # Pass precious variables to config.status.
1564 if test "$ac_new_set" = set; then
1565 case $ac_new_val in
1566 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1568 *) ac_arg=$ac_var=$ac_new_val ;;
1569 esac
1570 case " $ac_configure_args " in
1571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1572 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1573 esac
1574 fi
1575 done
1576 if $ac_cache_corrupted; then
1577 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1578 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1579 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1580 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1581 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1582 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1583 { (exit 1); exit 1; }; }
1584 fi
1585
1586 ac_ext=c
1587 ac_cpp='$CPP $CPPFLAGS'
1588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1615
1616
1617 gcc_version=`cat $srcdir/BASE-VER`
1618
1619 # Determine the host, build, and target systems
1620 ac_aux_dir=
1621 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1622 if test -f $ac_dir/install-sh; then
1623 ac_aux_dir=$ac_dir
1624 ac_install_sh="$ac_aux_dir/install-sh -c"
1625 break
1626 elif test -f $ac_dir/install.sh; then
1627 ac_aux_dir=$ac_dir
1628 ac_install_sh="$ac_aux_dir/install.sh -c"
1629 break
1630 elif test -f $ac_dir/shtool; then
1631 ac_aux_dir=$ac_dir
1632 ac_install_sh="$ac_aux_dir/shtool install -c"
1633 break
1634 fi
1635 done
1636 if test -z "$ac_aux_dir"; then
1637 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1638 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1639 { (exit 1); exit 1; }; }
1640 fi
1641 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1642 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1643 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1644
1645 # Make sure we can run config.sub.
1646 $ac_config_sub sun4 >/dev/null 2>&1 ||
1647 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1648 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1649 { (exit 1); exit 1; }; }
1650
1651 echo "$as_me:$LINENO: checking build system type" >&5
1652 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1653 if test "${ac_cv_build+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656 ac_cv_build_alias=$build_alias
1657 test -z "$ac_cv_build_alias" &&
1658 ac_cv_build_alias=`$ac_config_guess`
1659 test -z "$ac_cv_build_alias" &&
1660 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1661 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1662 { (exit 1); exit 1; }; }
1663 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1670 echo "${ECHO_T}$ac_cv_build" >&6
1671 build=$ac_cv_build
1672 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking host system type" >&5
1678 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1679 if test "${ac_cv_host+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682 ac_cv_host_alias=$host_alias
1683 test -z "$ac_cv_host_alias" &&
1684 ac_cv_host_alias=$ac_cv_build_alias
1685 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1692 echo "${ECHO_T}$ac_cv_host" >&6
1693 host=$ac_cv_host
1694 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 echo "$as_me:$LINENO: checking target system type" >&5
1700 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1701 if test "${ac_cv_target+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 ac_cv_target_alias=$target_alias
1705 test "x$ac_cv_target_alias" = "x" &&
1706 ac_cv_target_alias=$ac_cv_host_alias
1707 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1708 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1709 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1710 { (exit 1); exit 1; }; }
1711
1712 fi
1713 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1714 echo "${ECHO_T}$ac_cv_target" >&6
1715 target=$ac_cv_target
1716 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719
1720
1721 # The aliases save the names the user supplied, while $host etc.
1722 # will get canonicalized.
1723 test -n "$target_alias" &&
1724 test "$program_prefix$program_suffix$program_transform_name" = \
1725 NONENONEs,x,x, &&
1726 program_prefix=${target_alias}-
1727
1728 # Determine the noncanonical target name, for directory use.
1729 case ${build_alias} in
1730 "") build_noncanonical=${build} ;;
1731 *) build_noncanonical=${build_alias} ;;
1732 esac
1733
1734 case ${host_alias} in
1735 "") host_noncanonical=${build_noncanonical} ;;
1736 *) host_noncanonical=${host_alias} ;;
1737 esac
1738
1739 case ${target_alias} in
1740 "") target_noncanonical=${host_noncanonical} ;;
1741 *) target_noncanonical=${target_alias} ;;
1742 esac
1743
1744
1745
1746
1747 # Determine the target- and build-specific subdirectories
1748
1749 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1750 # have matching libraries, they should use host libraries: Makefile.tpl
1751 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1752 # However, they still use the build modules, because the corresponding
1753 # host modules (e.g. bison) are only built for the host when bootstrap
1754 # finishes. So:
1755 # - build_subdir is where we find build modules, and never changes.
1756 # - build_libsubdir is where we find build libraries, and can be overridden.
1757
1758 # Prefix 'build-' so this never conflicts with target_subdir.
1759 build_subdir="build-${build_noncanonical}"
1760
1761 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1762 if test "${with_build_libsubdir+set}" = set; then
1763 withval="$with_build_libsubdir"
1764 build_libsubdir="$withval"
1765 else
1766 build_libsubdir="$build_subdir"
1767 fi;
1768 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1769 if ( test $srcdir = . && test -d gcc ) \
1770 || test -d $srcdir/../host-${host_noncanonical}; then
1771 host_subdir="host-${host_noncanonical}"
1772 else
1773 host_subdir=.
1774 fi
1775 # No prefix.
1776 target_subdir=${target_noncanonical}
1777
1778
1779 # Set program_transform_name
1780 test "$program_prefix" != NONE &&
1781 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1782 # Use a double $ so make ignores it.
1783 test "$program_suffix" != NONE &&
1784 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1785 # Double any \ or $. echo might interpret backslashes.
1786 # By default was `s,x,x', remove it if useless.
1787 cat <<\_ACEOF >conftest.sed
1788 s/[\\$]/&&/g;s/;s,x,x,$//
1789 _ACEOF
1790 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1791 rm conftest.sed
1792
1793
1794 # Check for bogus environment variables.
1795 # Test if LIBRARY_PATH contains the notation for the current directory
1796 # since this would lead to problems installing/building glibc.
1797 # LIBRARY_PATH contains the current directory if one of the following
1798 # is true:
1799 # - one of the terminals (":" and ";") is the first or last sign
1800 # - two terminals occur directly after each other
1801 # - the path contains an element with a dot in it
1802 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1803 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1804 case ${LIBRARY_PATH} in
1805 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1806 library_path_setting="contains current directory"
1807 ;;
1808 *)
1809 library_path_setting="ok"
1810 ;;
1811 esac
1812 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1813 echo "${ECHO_T}$library_path_setting" >&6
1814 if test "$library_path_setting" != "ok"; then
1815 { { echo "$as_me:$LINENO: error:
1816 *** LIBRARY_PATH shouldn't contain the current directory when
1817 *** building gcc. Please change the environment variable
1818 *** and run configure again." >&5
1819 echo "$as_me: error:
1820 *** LIBRARY_PATH shouldn't contain the current directory when
1821 *** building gcc. Please change the environment variable
1822 *** and run configure again." >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
1825
1826 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1827 # since this would lead to problems installing/building glibc.
1828 # GCC_EXEC_PREFIX contains the current directory if one of the following
1829 # is true:
1830 # - one of the terminals (":" and ";") is the first or last sign
1831 # - two terminals occur directly after each other
1832 # - the path contains an element with a dot in it
1833 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1834 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1835 case ${GCC_EXEC_PREFIX} in
1836 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1837 gcc_exec_prefix_setting="contains current directory"
1838 ;;
1839 *)
1840 gcc_exec_prefix_setting="ok"
1841 ;;
1842 esac
1843 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1844 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1845 if test "$gcc_exec_prefix_setting" != "ok"; then
1846 { { echo "$as_me:$LINENO: error:
1847 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1848 *** building gcc. Please change the environment variable
1849 *** and run configure again." >&5
1850 echo "$as_me: error:
1851 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1852 *** building gcc. Please change the environment variable
1853 *** and run configure again." >&2;}
1854 { (exit 1); exit 1; }; }
1855 fi
1856
1857 # -----------
1858 # Directories
1859 # -----------
1860
1861 # Specify the local prefix
1862 local_prefix=
1863
1864 # Check whether --with-local-prefix or --without-local-prefix was given.
1865 if test "${with_local_prefix+set}" = set; then
1866 withval="$with_local_prefix"
1867 case "${withval}" in
1868 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1869 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1870 { (exit 1); exit 1; }; } ;;
1871 no) ;;
1872 *) local_prefix=$with_local_prefix ;;
1873 esac
1874 fi;
1875
1876 # Default local prefix if it is empty
1877 if test x$local_prefix = x; then
1878 local_prefix=/usr/local
1879 fi
1880
1881 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1882 # passed in by the toplevel make and thus we'd get different behavior
1883 # depending on where we built the sources.
1884 gcc_gxx_include_dir=
1885 # Specify the g++ header file directory
1886
1887 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1888 if test "${with_gxx_include_dir+set}" = set; then
1889 withval="$with_gxx_include_dir"
1890 case "${withval}" in
1891 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1892 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1893 { (exit 1); exit 1; }; } ;;
1894 no) ;;
1895 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1896 esac
1897 fi;
1898
1899 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1900 if test x${gcc_gxx_include_dir} = x; then
1901 if test x${enable_version_specific_runtime_libs} = xyes; then
1902 gcc_gxx_include_dir='${libsubdir}/include/c++'
1903 else
1904 libstdcxx_incdir='include/c++/$(version)'
1905 if test x$host != x$target; then
1906 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1907 fi
1908 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1909 fi
1910 fi
1911
1912
1913 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1914 if test "${with_cpp_install_dir+set}" = set; then
1915 withval="$with_cpp_install_dir"
1916 if test x$withval = xyes; then
1917 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1918 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1919 { (exit 1); exit 1; }; }
1920 elif test x$withval != xno; then
1921 cpp_install_dir=$withval
1922 fi
1923 fi;
1924
1925 # We would like to our source tree to be readonly. However when releases or
1926 # pre-releases are generated, the flex/bison generated files as well as the
1927 # various formats of manuals need to be included along with the rest of the
1928 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1929 # just that.
1930
1931 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1932 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1933 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1934 if test "${enable_generated_files_in_srcdir+set}" = set; then
1935 enableval="$enable_generated_files_in_srcdir"
1936 generated_files_in_srcdir=$enableval
1937 else
1938 generated_files_in_srcdir=no
1939 fi;
1940
1941 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1942 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1943
1944 if test "$generated_files_in_srcdir" = "yes"; then
1945 GENINSRC=''
1946 else
1947 GENINSRC='#'
1948 fi
1949
1950
1951 # -------------------
1952 # Find default linker
1953 # -------------------
1954
1955 # With GNU ld
1956
1957 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1958 if test "${with_gnu_ld+set}" = set; then
1959 withval="$with_gnu_ld"
1960 gnu_ld_flag="$with_gnu_ld"
1961 else
1962 gnu_ld_flag=no
1963 fi;
1964
1965 # With pre-defined ld
1966
1967 # Check whether --with-ld or --without-ld was given.
1968 if test "${with_ld+set}" = set; then
1969 withval="$with_ld"
1970 DEFAULT_LINKER="$with_ld"
1971 fi;
1972 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1973 if test ! -x "$DEFAULT_LINKER"; then
1974 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1975 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1976 { (exit 1); exit 1; }; }
1977 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1978 gnu_ld_flag=yes
1979 fi
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1983 _ACEOF
1984
1985 fi
1986
1987 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define HAVE_GNU_LD $gnu_ld
1991 _ACEOF
1992
1993
1994 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1995 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1996 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1997 if test x"$gnu_ld_flag" = x"no"; then
1998 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1999 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
2000 else
2001 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
2002 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
2003 fi
2004 else
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2007 fi
2008
2009 # With demangler in GNU ld
2010
2011 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
2012 if test "${with_demangler_in_ld+set}" = set; then
2013 withval="$with_demangler_in_ld"
2014 demangler_in_ld="$with_demangler_in_ld"
2015 else
2016 demangler_in_ld=no
2017 fi;
2018
2019 # ----------------------
2020 # Find default assembler
2021 # ----------------------
2022
2023 # With GNU as
2024
2025 # Check whether --with-gnu-as or --without-gnu-as was given.
2026 if test "${with_gnu_as+set}" = set; then
2027 withval="$with_gnu_as"
2028 gas_flag="$with_gnu_as"
2029 else
2030 gas_flag=no
2031 fi;
2032
2033
2034 # Check whether --with-as or --without-as was given.
2035 if test "${with_as+set}" = set; then
2036 withval="$with_as"
2037 DEFAULT_ASSEMBLER="$with_as"
2038 fi;
2039 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2040 if test ! -x "$DEFAULT_ASSEMBLER"; then
2041 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2042 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2043 { (exit 1); exit 1; }; }
2044 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2045 gas_flag=yes
2046 fi
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2050 _ACEOF
2051
2052 fi
2053
2054 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define HAVE_GNU_AS $gnu_as
2058 _ACEOF
2059
2060
2061 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2062 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2063 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2064 if test x"$gas_flag" = x"no"; then
2065 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2066 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2067 else
2068 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2069 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2070 fi
2071 else
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 # ---------------
2077 # Find C compiler
2078 # ---------------
2079
2080 # If a non-executable a.out is present (e.g. created by GNU as above even if
2081 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2082 # file, even when creating an executable, so an execution test fails.
2083 # Remove possible default executable files to avoid this.
2084 #
2085 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2086 # Autoconf includes it.
2087 rm -f a.out a.exe b.out
2088
2089 # Find the native compiler
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124 echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2126 else
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131 fi
2132 if test -z "$ac_cv_prog_CC"; then
2133 ac_ct_CC=$CC
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2154 fi
2155 done
2156 done
2157
2158 fi
2159 fi
2160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161 if test -n "$ac_ct_CC"; then
2162 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163 echo "${ECHO_T}$ac_ct_CC" >&6
2164 else
2165 echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6
2167 fi
2168
2169 CC=$ac_ct_CC
2170 else
2171 CC="$ac_cv_prog_CC"
2172 fi
2173
2174 if test -z "$CC"; then
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 ac_cv_prog_CC="${ac_tool_prefix}cc"
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195 break 2
2196 fi
2197 done
2198 done
2199
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2206 else
2207 echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211 fi
2212 if test -z "$ac_cv_prog_CC"; then
2213 ac_ct_CC=$CC
2214 # Extract the first word of "cc", so it can be a program name with args.
2215 set dummy cc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$ac_ct_CC"; then
2222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231 ac_cv_prog_ac_ct_CC="cc"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2234 fi
2235 done
2236 done
2237
2238 fi
2239 fi
2240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241 if test -n "$ac_ct_CC"; then
2242 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243 echo "${ECHO_T}$ac_ct_CC" >&6
2244 else
2245 echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2247 fi
2248
2249 CC=$ac_ct_CC
2250 else
2251 CC="$ac_cv_prog_CC"
2252 fi
2253
2254 fi
2255 if test -z "$CC"; then
2256 # Extract the first word of "cc", so it can be a program name with args.
2257 set dummy cc; ac_word=$2
2258 echo "$as_me:$LINENO: checking for $ac_word" >&5
2259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260 if test "${ac_cv_prog_CC+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 if test -n "$CC"; then
2264 ac_cv_prog_CC="$CC" # Let the user override the test.
2265 else
2266 ac_prog_rejected=no
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 for as_dir in $PATH
2269 do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2275 ac_prog_rejected=yes
2276 continue
2277 fi
2278 ac_cv_prog_CC="cc"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282 done
2283 done
2284
2285 if test $ac_prog_rejected = yes; then
2286 # We found a bogon in the path, so make sure we never use it.
2287 set dummy $ac_cv_prog_CC
2288 shift
2289 if test $# != 0; then
2290 # We chose a different compiler from the bogus one.
2291 # However, it has the same basename, so the bogon will be chosen
2292 # first if we set CC to just the basename; use the full file name.
2293 shift
2294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2295 fi
2296 fi
2297 fi
2298 fi
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301 echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304 echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308 fi
2309 if test -z "$CC"; then
2310 if test -n "$ac_tool_prefix"; then
2311 for ac_prog in cl
2312 do
2313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2315 echo "$as_me:$LINENO: checking for $ac_word" >&5
2316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2317 if test "${ac_cv_prog_CC+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2325 do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2333 fi
2334 done
2335 done
2336
2337 fi
2338 fi
2339 CC=$ac_cv_prog_CC
2340 if test -n "$CC"; then
2341 echo "$as_me:$LINENO: result: $CC" >&5
2342 echo "${ECHO_T}$CC" >&6
2343 else
2344 echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2346 fi
2347
2348 test -n "$CC" && break
2349 done
2350 fi
2351 if test -z "$CC"; then
2352 ac_ct_CC=$CC
2353 for ac_prog in cl
2354 do
2355 # Extract the first word of "$ac_prog", so it can be a program name with args.
2356 set dummy $ac_prog; ac_word=$2
2357 echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 if test -n "$ac_ct_CC"; then
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2367 do
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_prog_ac_ct_CC="$ac_prog"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2375 fi
2376 done
2377 done
2378
2379 fi
2380 fi
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6
2385 else
2386 echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6
2388 fi
2389
2390 test -n "$ac_ct_CC" && break
2391 done
2392
2393 CC=$ac_ct_CC
2394 fi
2395
2396 fi
2397
2398
2399 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2400 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405 { (exit 1); exit 1; }; }; }
2406
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO:" \
2409 "checking for C compiler version" >&5
2410 ac_compiler=`set X $ac_compile; echo $2`
2411 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2412 (eval $ac_compiler --version </dev/null >&5) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }
2416 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2417 (eval $ac_compiler -v </dev/null >&5) 2>&5
2418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2422 (eval $ac_compiler -V </dev/null >&5) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426
2427 cat >conftest.$ac_ext <<_ACEOF
2428 /* confdefs.h. */
2429 _ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2433
2434 int
2435 main ()
2436 {
2437
2438 ;
2439 return 0;
2440 }
2441 _ACEOF
2442 ac_clean_files_save=$ac_clean_files
2443 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2444 # Try to create an executable without -o first, disregard a.out.
2445 # It will help us diagnose broken compilers, and finding out an intuition
2446 # of exeext.
2447 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2448 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2449 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2450 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2451 (eval $ac_link_default) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # Find the output, starting from the most likely. This scheme is
2456 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2457 # resort.
2458
2459 # Be careful to initialize this variable, since it used to be cached.
2460 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2461 ac_cv_exeext=
2462 # b.out is created by i960 compilers.
2463 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2464 do
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2468 ;;
2469 conftest.$ac_ext )
2470 # This is the source file.
2471 ;;
2472 [ab].out )
2473 # We found the default executable, but exeext='' is most
2474 # certainly right.
2475 break;;
2476 *.* )
2477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 # FIXME: I believe we export ac_cv_exeext for Libtool,
2479 # but it would be cool to find out if it's true. Does anybody
2480 # maintain Libtool? --akim.
2481 export ac_cv_exeext
2482 break;;
2483 * )
2484 break;;
2485 esac
2486 done
2487 else
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2492 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&2;}
2497 { (exit 77); exit 77; }; }; }
2498 fi
2499
2500 ac_exeext=$ac_cv_exeext
2501 echo "$as_me:$LINENO: result: $ac_file" >&5
2502 echo "${ECHO_T}$ac_file" >&6
2503
2504 # Check the compiler produces executables we can run. If not, either
2505 # the compiler is broken, or we cross compile.
2506 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2509 # If not cross compiling, check that we can run a simple program.
2510 if test "$cross_compiling" != yes; then
2511 if { ac_try='./$ac_file'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 cross_compiling=no
2518 else
2519 if test "$cross_compiling" = maybe; then
2520 cross_compiling=yes
2521 else
2522 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2523 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }; }
2531 fi
2532 fi
2533 fi
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2536
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2545
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2556 # `rm'.
2557 for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
2559 case $ac_file in
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562 export ac_cv_exeext
2563 break;;
2564 * ) break;;
2565 esac
2566 done
2567 else
2568 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2569 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&5
2572 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2573 See \`config.log' for more details." >&2;}
2574 { (exit 1); exit 1; }; }; }
2575 fi
2576
2577 rm -f conftest$ac_cv_exeext
2578 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2579 echo "${ECHO_T}$ac_cv_exeext" >&6
2580
2581 rm -f conftest.$ac_ext
2582 EXEEXT=$ac_cv_exeext
2583 ac_exeext=$EXEEXT
2584 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2585 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2586 if test "${ac_cv_objext+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h. */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2595
2596 int
2597 main ()
2598 {
2599
2600 ;
2601 return 0;
2602 }
2603 _ACEOF
2604 rm -f conftest.o conftest.obj
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2611 case $ac_file in
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2614 break;;
2615 esac
2616 done
2617 else
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2622 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }; }
2628 fi
2629
2630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2631 fi
2632 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2633 echo "${ECHO_T}$ac_cv_objext" >&6
2634 OBJEXT=$ac_cv_objext
2635 ac_objext=$OBJEXT
2636 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h. */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2647
2648 int
2649 main ()
2650 {
2651 #ifndef __GNUC__
2652 choke me
2653 #endif
2654
2655 ;
2656 return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661 (eval $ac_compile) 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_compiler_gnu=yes
2682 else
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_compiler_gnu=no
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2690
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2693 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2694 GCC=`test $ac_compiler_gnu = yes && echo yes`
2695 ac_test_CFLAGS=${CFLAGS+set}
2696 ac_save_CFLAGS=$CFLAGS
2697 CFLAGS="-g"
2698 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2699 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2700 if test "${ac_cv_prog_cc_g+set}" = set; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703 cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h. */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h. */
2709
2710 int
2711 main ()
2712 {
2713
2714 ;
2715 return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720 (eval $ac_compile) 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } &&
2727 { ac_try='test -z "$ac_c_werror_flag"
2728 || test ! -s conftest.err'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; } &&
2734 { ac_try='test -s conftest.$ac_objext'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; }; then
2740 ac_cv_prog_cc_g=yes
2741 else
2742 echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 ac_cv_prog_cc_g=no
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 fi
2749 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2750 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2751 if test "$ac_test_CFLAGS" = set; then
2752 CFLAGS=$ac_save_CFLAGS
2753 elif test $ac_cv_prog_cc_g = yes; then
2754 if test "$GCC" = yes; then
2755 CFLAGS="-g -O2"
2756 else
2757 CFLAGS="-g"
2758 fi
2759 else
2760 if test "$GCC" = yes; then
2761 CFLAGS="-O2"
2762 else
2763 CFLAGS=
2764 fi
2765 fi
2766 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2767 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 ac_cv_prog_cc_stdc=no
2772 ac_save_CC=$CC
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2779 #include <stdarg.h>
2780 #include <stdio.h>
2781 #include <sys/types.h>
2782 #include <sys/stat.h>
2783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2784 struct buf { int x; };
2785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2786 static char *e (p, i)
2787 char **p;
2788 int i;
2789 {
2790 return p[i];
2791 }
2792 static char *f (char * (*g) (char **, int), char **p, ...)
2793 {
2794 char *s;
2795 va_list v;
2796 va_start (v,p);
2797 s = g (p, va_arg (v,int));
2798 va_end (v);
2799 return s;
2800 }
2801
2802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2803 function prototypes and stuff, but not '\xHH' hex character constants.
2804 These don't provoke an error unfortunately, instead are silently treated
2805 as 'x'. The following induces an error, until -std1 is added to get
2806 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2807 array size at least. It's necessary to write '\x00'==0 to get something
2808 that's true only with -std1. */
2809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2810
2811 int test (int i, double x);
2812 struct s1 {int (*f) (int a);};
2813 struct s2 {int (*f) (double a);};
2814 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2815 int argc;
2816 char **argv;
2817 int
2818 main ()
2819 {
2820 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2821 ;
2822 return 0;
2823 }
2824 _ACEOF
2825 # Don't try gcc -ansi; that turns off useful extensions and
2826 # breaks some systems' header files.
2827 # AIX -qlanglvl=ansi
2828 # Ultrix and OSF/1 -std1
2829 # HP-UX 10.20 and later -Ae
2830 # HP-UX older versions -Aa -D_HPUX_SOURCE
2831 # SVR4 -Xc -D__EXTENSIONS__
2832 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2833 do
2834 CC="$ac_save_CC $ac_arg"
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 { ac_try='test -z "$ac_c_werror_flag"
2845 || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cc_stdc=$ac_arg
2858 break
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 fi
2864 rm -f conftest.err conftest.$ac_objext
2865 done
2866 rm -f conftest.$ac_ext conftest.$ac_objext
2867 CC=$ac_save_CC
2868
2869 fi
2870
2871 case "x$ac_cv_prog_cc_stdc" in
2872 x|xno)
2873 echo "$as_me:$LINENO: result: none needed" >&5
2874 echo "${ECHO_T}none needed" >&6 ;;
2875 *)
2876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2877 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2878 CC="$CC $ac_cv_prog_cc_stdc" ;;
2879 esac
2880
2881 # Some people use a C++ compiler to compile C. Since we use `exit',
2882 # in C++ we need to declare it. In case someone uses the same compiler
2883 # for both compiling C and C++ we need to have the C++ compiler decide
2884 # the declaration of exit, since it's the most demanding environment.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #ifndef __cplusplus
2887 choke me
2888 #endif
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 for ac_declaration in \
2913 '' \
2914 'extern "C" void std::exit (int) throw (); using std::exit;' \
2915 'extern "C" void std::exit (int); using std::exit;' \
2916 'extern "C" void exit (int) throw ();' \
2917 'extern "C" void exit (int);' \
2918 'void exit (int);'
2919 do
2920 cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h. */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2926 $ac_declaration
2927 #include <stdlib.h>
2928 int
2929 main ()
2930 {
2931 exit (42);
2932 ;
2933 return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.$ac_objext
2937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2938 (eval $ac_compile) 2>conftest.er1
2939 ac_status=$?
2940 grep -v '^ *+' conftest.er1 >conftest.err
2941 rm -f conftest.er1
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 { ac_try='test -z "$ac_c_werror_flag"
2946 || test ! -s conftest.err'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 (eval $ac_try) 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 :
2959 else
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963 continue
2964 fi
2965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 $ac_declaration
2973 int
2974 main ()
2975 {
2976 exit (42);
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>conftest.er1
2984 ac_status=$?
2985 grep -v '^ *+' conftest.er1 >conftest.err
2986 rm -f conftest.er1
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } &&
2990 { ac_try='test -z "$ac_c_werror_flag"
2991 || test ! -s conftest.err'
2992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 (eval $ac_try) 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; } &&
2997 { ac_try='test -s conftest.$ac_objext'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 break
3004 else
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 fi
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 done
3011 rm -f conftest*
3012 if test -n "$ac_declaration"; then
3013 echo '#ifdef __cplusplus' >>confdefs.h
3014 echo $ac_declaration >>confdefs.h
3015 echo '#endif' >>confdefs.h
3016 fi
3017
3018 else
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3021
3022 fi
3023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030 if test "x$CC" != xcc; then
3031 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3032 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3033 else
3034 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3035 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3036 fi
3037 set dummy $CC; ac_cc=`echo $2 |
3038 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3039 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048
3049 int
3050 main ()
3051 {
3052
3053 ;
3054 return 0;
3055 }
3056 _ACEOF
3057 # Make sure it works both with $CC and with simple cc.
3058 # We do the test twice because some compilers refuse to overwrite an
3059 # existing .o file with -o, though they will create one.
3060 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3061 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 (eval $ac_try) 2>&5
3068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); };
3071 then
3072 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3073 if test "x$CC" != xcc; then
3074 # Test first that cc exists at all.
3075 if { ac_try='cc -c conftest.$ac_ext >&5'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 (eval $ac_try) 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3082 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); };
3092 then
3093 # cc works too.
3094 :
3095 else
3096 # cc exists but doesn't like -o.
3097 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3098 fi
3099 fi
3100 fi
3101 else
3102 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3103 fi
3104 rm -f conftest*
3105
3106 fi
3107 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3108 echo "$as_me:$LINENO: result: yes" >&5
3109 echo "${ECHO_T}yes" >&6
3110 else
3111 echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6
3113
3114 cat >>confdefs.h <<\_ACEOF
3115 #define NO_MINUS_C_MINUS_O 1
3116 _ACEOF
3117
3118 fi
3119
3120 # expand $ac_aux_dir to an absolute path
3121 am_aux_dir=`cd $ac_aux_dir && pwd`
3122
3123 # FIXME: we rely on the cache variable name because
3124 # there is no other way.
3125 set dummy $CC
3126 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3127 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3128 # Losing compiler, so override with the script.
3129 # FIXME: It is wrong to rewrite CC.
3130 # But if we don't then we get into trouble of one sort or another.
3131 # A longer-term fix would be to have automake use am__CC in this case,
3132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3133 CC="$am_aux_dir/compile $CC"
3134 fi
3135
3136 ac_ext=cc
3137 ac_cpp='$CXXCPP $CPPFLAGS'
3138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3143 do
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_CXX+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167
3168 fi
3169 fi
3170 CXX=$ac_cv_prog_CXX
3171 if test -n "$CXX"; then
3172 echo "$as_me:$LINENO: result: $CXX" >&5
3173 echo "${ECHO_T}$CXX" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3177 fi
3178
3179 test -n "$CXX" && break
3180 done
3181 fi
3182 if test -z "$CXX"; then
3183 ac_ct_CXX=$CXX
3184 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3185 do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -n "$ac_ct_CXX"; then
3194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_prog"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209
3210 fi
3211 fi
3212 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3213 if test -n "$ac_ct_CXX"; then
3214 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3215 echo "${ECHO_T}$ac_ct_CXX" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220
3221 test -n "$ac_ct_CXX" && break
3222 done
3223 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3224
3225 CXX=$ac_ct_CXX
3226 fi
3227
3228
3229 # Provide some information about the compiler.
3230 echo "$as_me:$LINENO:" \
3231 "checking for C++ compiler version" >&5
3232 ac_compiler=`set X $ac_compile; echo $2`
3233 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3234 (eval $ac_compiler --version </dev/null >&5) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3239 (eval $ac_compiler -v </dev/null >&5) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }
3243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3244 (eval $ac_compiler -V </dev/null >&5) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248
3249 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3250 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3251 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h. */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264 #ifndef __GNUC__
3265 choke me
3266 #endif
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_cxx_werror_flag"
3282 || test ! -s conftest.err'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; } &&
3288 { ac_try='test -s conftest.$ac_objext'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; }; then
3294 ac_compiler_gnu=yes
3295 else
3296 echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 ac_compiler_gnu=no
3300 fi
3301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303
3304 fi
3305 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3306 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3307 GXX=`test $ac_compiler_gnu = yes && echo yes`
3308 ac_test_CXXFLAGS=${CXXFLAGS+set}
3309 ac_save_CXXFLAGS=$CXXFLAGS
3310 CXXFLAGS="-g"
3311 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3312 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3313 if test "${ac_cv_prog_cxx_g+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 rm -f conftest.$ac_objext
3332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3333 (eval $ac_compile) 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_cxx_werror_flag"
3341 || test ! -s conftest.err'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cxx_g=yes
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358 ac_cv_prog_cxx_g=no
3359 fi
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 fi
3362 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3364 if test "$ac_test_CXXFLAGS" = set; then
3365 CXXFLAGS=$ac_save_CXXFLAGS
3366 elif test $ac_cv_prog_cxx_g = yes; then
3367 if test "$GXX" = yes; then
3368 CXXFLAGS="-g -O2"
3369 else
3370 CXXFLAGS="-g"
3371 fi
3372 else
3373 if test "$GXX" = yes; then
3374 CXXFLAGS="-O2"
3375 else
3376 CXXFLAGS=
3377 fi
3378 fi
3379 for ac_declaration in \
3380 '' \
3381 'extern "C" void std::exit (int) throw (); using std::exit;' \
3382 'extern "C" void std::exit (int); using std::exit;' \
3383 'extern "C" void exit (int) throw ();' \
3384 'extern "C" void exit (int);' \
3385 'void exit (int);'
3386 do
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3393 $ac_declaration
3394 #include <stdlib.h>
3395 int
3396 main ()
3397 {
3398 exit (42);
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_cxx_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 :
3426 else
3427 echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 continue
3431 fi
3432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 $ac_declaration
3440 int
3441 main ()
3442 {
3443 exit (42);
3444 ;
3445 return 0;
3446 }
3447 _ACEOF
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } &&
3457 { ac_try='test -z "$ac_cxx_werror_flag"
3458 || test ! -s conftest.err'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466 (eval $ac_try) 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 break
3471 else
3472 echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 fi
3476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3477 done
3478 rm -f conftest*
3479 if test -n "$ac_declaration"; then
3480 echo '#ifdef __cplusplus' >>confdefs.h
3481 echo $ac_declaration >>confdefs.h
3482 echo '#endif' >>confdefs.h
3483 fi
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492
3493
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$GNATBIND"; then
3503 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518
3519 fi
3520 fi
3521 GNATBIND=$ac_cv_prog_GNATBIND
3522 if test -n "$GNATBIND"; then
3523 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3524 echo "${ECHO_T}$GNATBIND" >&6
3525 else
3526 echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6
3528 fi
3529
3530 fi
3531 if test -z "$ac_cv_prog_GNATBIND"; then
3532 ac_ct_GNATBIND=$GNATBIND
3533 # Extract the first word of "gnatbind", so it can be a program name with args.
3534 set dummy gnatbind; ac_word=$2
3535 echo "$as_me:$LINENO: checking for $ac_word" >&5
3536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3537 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 if test -n "$ac_ct_GNATBIND"; then
3541 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556
3557 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3558 fi
3559 fi
3560 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3561 if test -n "$ac_ct_GNATBIND"; then
3562 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3563 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3564 else
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3567 fi
3568
3569 GNATBIND=$ac_ct_GNATBIND
3570 else
3571 GNATBIND="$ac_cv_prog_GNATBIND"
3572 fi
3573
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582 if test -n "$GNATMAKE"; then
3583 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598
3599 fi
3600 fi
3601 GNATMAKE=$ac_cv_prog_GNATMAKE
3602 if test -n "$GNATMAKE"; then
3603 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3604 echo "${ECHO_T}$GNATMAKE" >&6
3605 else
3606 echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6
3608 fi
3609
3610 fi
3611 if test -z "$ac_cv_prog_GNATMAKE"; then
3612 ac_ct_GNATMAKE=$GNATMAKE
3613 # Extract the first word of "gnatmake", so it can be a program name with args.
3614 set dummy gnatmake; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 if test -n "$ac_ct_GNATMAKE"; then
3621 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3633 fi
3634 done
3635 done
3636
3637 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3638 fi
3639 fi
3640 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3641 if test -n "$ac_ct_GNATMAKE"; then
3642 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3643 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3647 fi
3648
3649 GNATMAKE=$ac_ct_GNATMAKE
3650 else
3651 GNATMAKE="$ac_cv_prog_GNATMAKE"
3652 fi
3653
3654 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3655 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3656 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659 cat >conftest.adb <<EOF
3660 procedure conftest is begin null; end conftest;
3661 EOF
3662 acx_cv_cc_gcc_supports_ada=no
3663 # There is a bug in old released versions of GCC which causes the
3664 # driver to exit successfully when the appropriate language module
3665 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3666 # Therefore we must check for the error message as well as an
3667 # unsuccessful exit.
3668 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3669 # given a .adb file, but produce no object file. So we must check
3670 # if an object file was really produced to guard against this.
3671 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3672 if test x"$errors" = x && test -f conftest.$ac_objext; then
3673 acx_cv_cc_gcc_supports_ada=yes
3674 fi
3675 rm -f conftest.*
3676 fi
3677 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3678 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3679
3680 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3681 have_gnat=yes
3682 else
3683 have_gnat=no
3684 fi
3685
3686
3687 # autoconf is lame and doesn't give us any substitution variable for this.
3688 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3689 NO_MINUS_C_MINUS_O=yes
3690 else
3691 OUTPUT_OPTION='-o $@'
3692 fi
3693
3694
3695
3696 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3697 # optimizations to be activated explicitly by the toplevel.
3698 case "$CC" in
3699 */prev-gcc/xgcc*) ;;
3700 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3701 esac
3702
3703
3704 # -------------------------
3705 # Check C compiler features
3706 # -------------------------
3707
3708
3709 ac_ext=c
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3715 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3718 CPP=
3719 fi
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724 # Double quotes because CPP needs to be expanded
3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3726 do
3727 ac_preproc_ok=false
3728 for ac_c_preproc_warn_flag in '' yes
3729 do
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #ifdef __STDC__
3743 # include <limits.h>
3744 #else
3745 # include <assert.h>
3746 #endif
3747 Syntax error
3748 _ACEOF
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3751 ac_status=$?
3752 grep -v '^ *+' conftest.er1 >conftest.err
3753 rm -f conftest.er1
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev/null; then
3757 if test -s conftest.err; then
3758 ac_cpp_err=$ac_c_preproc_warn_flag
3759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3760 else
3761 ac_cpp_err=
3762 fi
3763 else
3764 ac_cpp_err=yes
3765 fi
3766 if test -z "$ac_cpp_err"; then
3767 :
3768 else
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 # Broken: fails on valid input.
3773 continue
3774 fi
3775 rm -f conftest.err conftest.$ac_ext
3776
3777 # OK, works on sane cases. Now check whether non-existent headers
3778 # can be detected and how.
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <ac_nonexistent.h>
3786 _ACEOF
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null; then
3795 if test -s conftest.err; then
3796 ac_cpp_err=$ac_c_preproc_warn_flag
3797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3798 else
3799 ac_cpp_err=
3800 fi
3801 else
3802 ac_cpp_err=yes
3803 fi
3804 if test -z "$ac_cpp_err"; then
3805 # Broken: success on invalid input.
3806 continue
3807 else
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 # Passes both tests.
3812 ac_preproc_ok=:
3813 break
3814 fi
3815 rm -f conftest.err conftest.$ac_ext
3816
3817 done
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.$ac_ext
3820 if $ac_preproc_ok; then
3821 break
3822 fi
3823
3824 done
3825 ac_cv_prog_CPP=$CPP
3826
3827 fi
3828 CPP=$ac_cv_prog_CPP
3829 else
3830 ac_cv_prog_CPP=$CPP
3831 fi
3832 echo "$as_me:$LINENO: result: $CPP" >&5
3833 echo "${ECHO_T}$CPP" >&6
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3836 do
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #ifdef __STDC__
3850 # include <limits.h>
3851 #else
3852 # include <assert.h>
3853 #endif
3854 Syntax error
3855 _ACEOF
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3869 fi
3870 else
3871 ac_cpp_err=yes
3872 fi
3873 if test -z "$ac_cpp_err"; then
3874 :
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 # Broken: fails on valid input.
3880 continue
3881 fi
3882 rm -f conftest.err conftest.$ac_ext
3883
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h. */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3893 _ACEOF
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3896 ac_status=$?
3897 grep -v '^ *+' conftest.er1 >conftest.err
3898 rm -f conftest.er1
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null; then
3902 if test -s conftest.err; then
3903 ac_cpp_err=$ac_c_preproc_warn_flag
3904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 else
3906 ac_cpp_err=
3907 fi
3908 else
3909 ac_cpp_err=yes
3910 fi
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3913 continue
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3921 fi
3922 rm -f conftest.err conftest.$ac_ext
3923
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then
3928 :
3929 else
3930 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3931 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&5
3934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3935 See \`config.log' for more details." >&2;}
3936 { (exit 1); exit 1; }; }; }
3937 fi
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945
3946 echo "$as_me:$LINENO: checking for egrep" >&5
3947 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3948 if test "${ac_cv_prog_egrep+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3952 then ac_cv_prog_egrep='grep -E'
3953 else ac_cv_prog_egrep='egrep'
3954 fi
3955 fi
3956 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3957 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3958 EGREP=$ac_cv_prog_egrep
3959
3960
3961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3963 if test "${ac_cv_header_stdc+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966 cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h. */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3972 #include <stdlib.h>
3973 #include <stdarg.h>
3974 #include <string.h>
3975 #include <float.h>
3976
3977 int
3978 main ()
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -z "$ac_c_werror_flag"
3995 || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest.$ac_objext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_header_stdc=yes
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 ac_cv_header_stdc=no
4013 fi
4014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015
4016 if test $ac_cv_header_stdc = yes; then
4017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 #include <string.h>
4025
4026 _ACEOF
4027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028 $EGREP "memchr" >/dev/null 2>&1; then
4029 :
4030 else
4031 ac_cv_header_stdc=no
4032 fi
4033 rm -f conftest*
4034
4035 fi
4036
4037 if test $ac_cv_header_stdc = yes; then
4038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4045 #include <stdlib.h>
4046
4047 _ACEOF
4048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4049 $EGREP "free" >/dev/null 2>&1; then
4050 :
4051 else
4052 ac_cv_header_stdc=no
4053 fi
4054 rm -f conftest*
4055
4056 fi
4057
4058 if test $ac_cv_header_stdc = yes; then
4059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4060 if test "$cross_compiling" = yes; then
4061 :
4062 else
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #include <ctype.h>
4070 #if ((' ' & 0x0FF) == 0x020)
4071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4073 #else
4074 # define ISLOWER(c) \
4075 (('a' <= (c) && (c) <= 'i') \
4076 || ('j' <= (c) && (c) <= 'r') \
4077 || ('s' <= (c) && (c) <= 'z'))
4078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4079 #endif
4080
4081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4082 int
4083 main ()
4084 {
4085 int i;
4086 for (i = 0; i < 256; i++)
4087 if (XOR (islower (i), ISLOWER (i))
4088 || toupper (i) != TOUPPER (i))
4089 exit(2);
4090 exit (0);
4091 }
4092 _ACEOF
4093 rm -f conftest$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100 (eval $ac_try) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }; }; then
4104 :
4105 else
4106 echo "$as_me: program exited with status $ac_status" >&5
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110 ( exit $ac_status )
4111 ac_cv_header_stdc=no
4112 fi
4113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114 fi
4115 fi
4116 fi
4117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4119 if test $ac_cv_header_stdc = yes; then
4120
4121 cat >>confdefs.h <<\_ACEOF
4122 #define STDC_HEADERS 1
4123 _ACEOF
4124
4125 fi
4126
4127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4138 inttypes.h stdint.h unistd.h
4139 do
4140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141 echo "$as_me:$LINENO: checking for $ac_header" >&5
4142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h. */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 $ac_includes_default
4153
4154 #include <$ac_header>
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 (eval $ac_try) 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 eval "$as_ac_Header=yes"
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 eval "$as_ac_Header=no"
4184 fi
4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 fi
4187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4190 cat >>confdefs.h <<_ACEOF
4191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4192 _ACEOF
4193
4194 fi
4195
4196 done
4197
4198
4199
4200 if test "${ac_cv_header_minix_config_h+set}" = set; then
4201 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4202 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4203 if test "${ac_cv_header_minix_config_h+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 fi
4206 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4207 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4208 else
4209 # Is the header compilable?
4210 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4211 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h. */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 $ac_includes_default
4219 #include <minix/config.h>
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag"
4231 || test ! -s conftest.err'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 (eval $ac_try) 2>&5
4240 ac_status=$?
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_header_compiler=yes
4244 else
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 ac_header_compiler=no
4249 fi
4250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4252 echo "${ECHO_T}$ac_header_compiler" >&6
4253
4254 # Is the header present?
4255 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4256 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <minix/config.h>
4264 _ACEOF
4265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } >/dev/null; then
4273 if test -s conftest.err; then
4274 ac_cpp_err=$ac_c_preproc_warn_flag
4275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4276 else
4277 ac_cpp_err=
4278 fi
4279 else
4280 ac_cpp_err=yes
4281 fi
4282 if test -z "$ac_cpp_err"; then
4283 ac_header_preproc=yes
4284 else
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4287
4288 ac_header_preproc=no
4289 fi
4290 rm -f conftest.err conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4292 echo "${ECHO_T}$ac_header_preproc" >&6
4293
4294 # So? What about this header?
4295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4296 yes:no: )
4297 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4298 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4299 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4300 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4301 ac_header_preproc=yes
4302 ;;
4303 no:yes:* )
4304 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4305 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4306 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4307 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4308 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4309 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4310 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4311 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4313 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4315 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4316 (
4317 cat <<\_ASBOX
4318 ## ------------------------------------------ ##
4319 ## Report this to the AC_PACKAGE_NAME lists. ##
4320 ## ------------------------------------------ ##
4321 _ASBOX
4322 ) |
4323 sed "s/^/$as_me: WARNING: /" >&2
4324 ;;
4325 esac
4326 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4327 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4328 if test "${ac_cv_header_minix_config_h+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 ac_cv_header_minix_config_h=$ac_header_preproc
4332 fi
4333 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4335
4336 fi
4337 if test $ac_cv_header_minix_config_h = yes; then
4338 MINIX=yes
4339 else
4340 MINIX=
4341 fi
4342
4343
4344 if test "$MINIX" = yes; then
4345
4346 cat >>confdefs.h <<\_ACEOF
4347 #define _POSIX_SOURCE 1
4348 _ACEOF
4349
4350
4351 cat >>confdefs.h <<\_ACEOF
4352 #define _POSIX_1_SOURCE 2
4353 _ACEOF
4354
4355
4356 cat >>confdefs.h <<\_ACEOF
4357 #define _MINIX 1
4358 _ACEOF
4359
4360 fi
4361
4362
4363
4364 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4365 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4366 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375
4376 # define __EXTENSIONS__ 1
4377 $ac_includes_default
4378 int
4379 main ()
4380 {
4381
4382 ;
4383 return 0;
4384 }
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>conftest.er1
4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } &&
4395 { ac_try='test -z "$ac_c_werror_flag"
4396 || test ! -s conftest.err'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 (eval $ac_try) 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_safe_to_define___extensions__=yes
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4412
4413 ac_cv_safe_to_define___extensions__=no
4414 fi
4415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416 fi
4417 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4418 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4419 test $ac_cv_safe_to_define___extensions__ = yes &&
4420 cat >>confdefs.h <<\_ACEOF
4421 #define __EXTENSIONS__ 1
4422 _ACEOF
4423
4424 cat >>confdefs.h <<\_ACEOF
4425 #define _ALL_SOURCE 1
4426 _ACEOF
4427
4428 cat >>confdefs.h <<\_ACEOF
4429 #define _GNU_SOURCE 1
4430 _ACEOF
4431
4432 cat >>confdefs.h <<\_ACEOF
4433 #define _POSIX_PTHREAD_SEMANTICS 1
4434 _ACEOF
4435
4436 cat >>confdefs.h <<\_ACEOF
4437 #define _TANDEM_SOURCE 1
4438 _ACEOF
4439
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4448 # On Suns, sometimes $CPP names a directory.
4449 if test -n "$CPP" && test -d "$CPP"; then
4450 CPP=
4451 fi
4452 if test -z "$CPP"; then
4453 if test "${ac_cv_prog_CPP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456 # Double quotes because CPP needs to be expanded
4457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4458 do
4459 ac_preproc_ok=false
4460 for ac_c_preproc_warn_flag in '' yes
4461 do
4462 # Use a header file that comes with gcc, so configuring glibc
4463 # with a fresh cross-compiler works.
4464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 # <limits.h> exists even on freestanding compilers.
4466 # On the NeXT, cc -E runs the code through the compiler's parser,
4467 # not just through cpp. "Syntax error" is here to catch this case.
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #ifdef __STDC__
4475 # include <limits.h>
4476 #else
4477 # include <assert.h>
4478 #endif
4479 Syntax error
4480 _ACEOF
4481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null; then
4489 if test -s conftest.err; then
4490 ac_cpp_err=$ac_c_preproc_warn_flag
4491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4492 else
4493 ac_cpp_err=
4494 fi
4495 else
4496 ac_cpp_err=yes
4497 fi
4498 if test -z "$ac_cpp_err"; then
4499 :
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 # Broken: fails on valid input.
4505 continue
4506 fi
4507 rm -f conftest.err conftest.$ac_ext
4508
4509 # OK, works on sane cases. Now check whether non-existent headers
4510 # can be detected and how.
4511 cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4521 ac_status=$?
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev/null; then
4527 if test -s conftest.err; then
4528 ac_cpp_err=$ac_c_preproc_warn_flag
4529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4530 else
4531 ac_cpp_err=
4532 fi
4533 else
4534 ac_cpp_err=yes
4535 fi
4536 if test -z "$ac_cpp_err"; then
4537 # Broken: success on invalid input.
4538 continue
4539 else
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 # Passes both tests.
4544 ac_preproc_ok=:
4545 break
4546 fi
4547 rm -f conftest.err conftest.$ac_ext
4548
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then
4553 break
4554 fi
4555
4556 done
4557 ac_cv_prog_CPP=$CPP
4558
4559 fi
4560 CPP=$ac_cv_prog_CPP
4561 else
4562 ac_cv_prog_CPP=$CPP
4563 fi
4564 echo "$as_me:$LINENO: result: $CPP" >&5
4565 echo "${ECHO_T}$CPP" >&6
4566 ac_preproc_ok=false
4567 for ac_c_preproc_warn_flag in '' yes
4568 do
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #ifdef __STDC__
4582 # include <limits.h>
4583 #else
4584 # include <assert.h>
4585 #endif
4586 Syntax error
4587 _ACEOF
4588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null; then
4596 if test -s conftest.err; then
4597 ac_cpp_err=$ac_c_preproc_warn_flag
4598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4599 else
4600 ac_cpp_err=
4601 fi
4602 else
4603 ac_cpp_err=yes
4604 fi
4605 if test -z "$ac_cpp_err"; then
4606 :
4607 else
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4610
4611 # Broken: fails on valid input.
4612 continue
4613 fi
4614 rm -f conftest.err conftest.$ac_ext
4615
4616 # OK, works on sane cases. Now check whether non-existent headers
4617 # can be detected and how.
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4627 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4634 if test -s conftest.err; then
4635 ac_cpp_err=$ac_c_preproc_warn_flag
4636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4637 else
4638 ac_cpp_err=
4639 fi
4640 else
4641 ac_cpp_err=yes
4642 fi
4643 if test -z "$ac_cpp_err"; then
4644 # Broken: success on invalid input.
4645 continue
4646 else
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 # Passes both tests.
4651 ac_preproc_ok=:
4652 break
4653 fi
4654 rm -f conftest.err conftest.$ac_ext
4655
4656 done
4657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658 rm -f conftest.err conftest.$ac_ext
4659 if $ac_preproc_ok; then
4660 :
4661 else
4662 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4663 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4665 See \`config.log' for more details." >&5
4666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4667 See \`config.log' for more details." >&2;}
4668 { (exit 1); exit 1; }; }; }
4669 fi
4670
4671 ac_ext=c
4672 ac_cpp='$CPP $CPPFLAGS'
4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4676
4677 echo "$as_me:$LINENO: checking for inline" >&5
4678 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4679 if test "${ac_cv_c_inline+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_cv_c_inline=no
4683 for ac_kw in inline __inline__ __inline; do
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 #ifndef __cplusplus
4691 typedef int foo_t;
4692 static $ac_kw foo_t static_foo () {return 0; }
4693 $ac_kw foo_t foo () {return 0; }
4694 #endif
4695
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4719 ac_cv_c_inline=$ac_kw; break
4720 else
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 fi
4725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 done
4727
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4730 echo "${ECHO_T}$ac_cv_c_inline" >&6
4731
4732
4733 case $ac_cv_c_inline in
4734 inline | yes) ;;
4735 *)
4736 case $ac_cv_c_inline in
4737 no) ac_val=;;
4738 *) ac_val=$ac_cv_c_inline;;
4739 esac
4740 cat >>confdefs.h <<_ACEOF
4741 #ifndef __cplusplus
4742 #define inline $ac_val
4743 #endif
4744 _ACEOF
4745 ;;
4746 esac
4747
4748
4749 # sizeof(char) is 1 by definition.
4750 echo "$as_me:$LINENO: checking for void *" >&5
4751 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4752 if test "${ac_cv_type_void_p+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 $ac_includes_default
4762 int
4763 main ()
4764 {
4765 if ((void * *) 0)
4766 return 0;
4767 if (sizeof (void *))
4768 return 0;
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4795 ac_cv_type_void_p=yes
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 ac_cv_type_void_p=no
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4805 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4806
4807 echo "$as_me:$LINENO: checking size of void *" >&5
4808 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4809 if test "${ac_cv_sizeof_void_p+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 else
4812 if test "$ac_cv_type_void_p" = yes; then
4813 # The cast to unsigned long works around a bug in the HP C Compiler
4814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4816 # This bug is HP SR number 8606223364.
4817 if test "$cross_compiling" = yes; then
4818 # Depending upon the size, compute the lo and hi bounds.
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h. */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4825 $ac_includes_default
4826 int
4827 main ()
4828 {
4829 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4830 test_array [0] = 0
4831
4832 ;
4833 return 0;
4834 }
4835 _ACEOF
4836 rm -f conftest.$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 (eval $ac_try) 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 (eval $ac_try) 2>&5
4855 ac_status=$?
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_lo=0 ac_mid=0
4859 while :; do
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 $ac_includes_default
4867 int
4868 main ()
4869 {
4870 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4871 test_array [0] = 0
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 rm -f conftest.$ac_objext
4878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4879 (eval $ac_compile) 2>conftest.er1
4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 { ac_try='test -z "$ac_c_werror_flag"
4887 || test ! -s conftest.err'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; } &&
4893 { ac_try='test -s conftest.$ac_objext'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; }; then
4899 ac_hi=$ac_mid; break
4900 else
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 ac_lo=`expr $ac_mid + 1`
4905 if test $ac_lo -le $ac_mid; then
4906 ac_lo= ac_hi=
4907 break
4908 fi
4909 ac_mid=`expr 2 '*' $ac_mid + 1`
4910 fi
4911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4912 done
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4923 $ac_includes_default
4924 int
4925 main ()
4926 {
4927 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4928 test_array [0] = 0
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try='test -z "$ac_c_werror_flag"
4944 || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_hi=-1 ac_mid=-1
4957 while :; do
4958 cat >conftest.$ac_ext <<_ACEOF
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4965 int
4966 main ()
4967 {
4968 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4969 test_array [0] = 0
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_c_werror_flag"
4985 || test ! -s conftest.err'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; } &&
4991 { ac_try='test -s conftest.$ac_objext'
4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993 (eval $ac_try) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_lo=$ac_mid; break
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 ac_hi=`expr '(' $ac_mid ')' - 1`
5003 if test $ac_mid -le $ac_hi; then
5004 ac_lo= ac_hi=
5005 break
5006 fi
5007 ac_mid=`expr 2 '*' $ac_mid`
5008 fi
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010 done
5011 else
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 ac_lo= ac_hi=
5016 fi
5017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5018 fi
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5020 # Binary search between lo and hi bounds.
5021 while test "x$ac_lo" != "x$ac_hi"; do
5022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 $ac_includes_default
5030 int
5031 main ()
5032 {
5033 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
5034 test_array [0] = 0
5035
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -z "$ac_c_werror_flag"
5050 || test ! -s conftest.err'
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_hi=$ac_mid
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 ac_lo=`expr '(' $ac_mid ')' + 1`
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 done
5071 case $ac_lo in
5072 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5073 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5074 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5076 See \`config.log' for more details." >&5
5077 echo "$as_me: error: cannot compute sizeof (void *), 77
5078 See \`config.log' for more details." >&2;}
5079 { (exit 1); exit 1; }; }; } ;;
5080 esac
5081 else
5082 if test "$cross_compiling" = yes; then
5083 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5084 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot run test program while cross compiling
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; }; }
5090 else
5091 cat >conftest.$ac_ext <<_ACEOF
5092 /* confdefs.h. */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h. */
5097 $ac_includes_default
5098 long longval () { return (long) (sizeof (void *)); }
5099 unsigned long ulongval () { return (long) (sizeof (void *)); }
5100 #include <stdio.h>
5101 #include <stdlib.h>
5102 int
5103 main ()
5104 {
5105
5106 FILE *f = fopen ("conftest.val", "w");
5107 if (! f)
5108 exit (1);
5109 if (((long) (sizeof (void *))) < 0)
5110 {
5111 long i = longval ();
5112 if (i != ((long) (sizeof (void *))))
5113 exit (1);
5114 fprintf (f, "%ld\n", i);
5115 }
5116 else
5117 {
5118 unsigned long i = ulongval ();
5119 if (i != ((long) (sizeof (void *))))
5120 exit (1);
5121 fprintf (f, "%lu\n", i);
5122 }
5123 exit (ferror (f) || fclose (f) != 0);
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 rm -f conftest$ac_exeext
5130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5140 ac_cv_sizeof_void_p=`cat conftest.val`
5141 else
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ( exit $ac_status )
5147 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5148 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
5150 See \`config.log' for more details." >&5
5151 echo "$as_me: error: cannot compute sizeof (void *), 77
5152 See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }; }
5154 fi
5155 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 fi
5158 rm -f conftest.val
5159 else
5160 ac_cv_sizeof_void_p=0
5161 fi
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5164 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
5165 cat >>confdefs.h <<_ACEOF
5166 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5167 _ACEOF
5168
5169
5170 echo "$as_me:$LINENO: checking for short" >&5
5171 echo $ECHO_N "checking for short... $ECHO_C" >&6
5172 if test "${ac_cv_type_short+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 $ac_includes_default
5182 int
5183 main ()
5184 {
5185 if ((short *) 0)
5186 return 0;
5187 if (sizeof (short))
5188 return 0;
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5195 (eval $ac_compile) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest.$ac_objext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_type_short=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_cv_type_short=no
5221 fi
5222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5223 fi
5224 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5225 echo "${ECHO_T}$ac_cv_type_short" >&6
5226
5227 echo "$as_me:$LINENO: checking size of short" >&5
5228 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5229 if test "${ac_cv_sizeof_short+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 if test "$ac_cv_type_short" = yes; then
5233 # The cast to unsigned long works around a bug in the HP C Compiler
5234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5236 # This bug is HP SR number 8606223364.
5237 if test "$cross_compiling" = yes; then
5238 # Depending upon the size, compute the lo and hi bounds.
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 $ac_includes_default
5246 int
5247 main ()
5248 {
5249 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5250 test_array [0] = 0
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_lo=0 ac_mid=0
5279 while :; do
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 $ac_includes_default
5287 int
5288 main ()
5289 {
5290 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5291 test_array [0] = 0
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>conftest.er1
5300 ac_status=$?
5301 grep -v '^ *+' conftest.er1 >conftest.err
5302 rm -f conftest.er1
5303 cat conftest.err >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } &&
5306 { ac_try='test -z "$ac_c_werror_flag"
5307 || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_hi=$ac_mid; break
5320 else
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5323
5324 ac_lo=`expr $ac_mid + 1`
5325 if test $ac_lo -le $ac_mid; then
5326 ac_lo= ac_hi=
5327 break
5328 fi
5329 ac_mid=`expr 2 '*' $ac_mid + 1`
5330 fi
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 done
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 $ac_includes_default
5344 int
5345 main ()
5346 {
5347 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5348 test_array [0] = 0
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_hi=-1 ac_mid=-1
5377 while :; do
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 int
5386 main ()
5387 {
5388 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5389 test_array [0] = 0
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397 (eval $ac_compile) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -z "$ac_c_werror_flag"
5405 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } &&
5411 { ac_try='test -s conftest.$ac_objext'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_lo=$ac_mid; break
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_hi=`expr '(' $ac_mid ')' - 1`
5423 if test $ac_mid -le $ac_hi; then
5424 ac_lo= ac_hi=
5425 break
5426 fi
5427 ac_mid=`expr 2 '*' $ac_mid`
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 done
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435 ac_lo= ac_hi=
5436 fi
5437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5438 fi
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440 # Binary search between lo and hi bounds.
5441 while test "x$ac_lo" != "x$ac_hi"; do
5442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h. */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 $ac_includes_default
5450 int
5451 main ()
5452 {
5453 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5454 test_array [0] = 0
5455
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -z "$ac_c_werror_flag"
5470 || test ! -s conftest.err'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; } &&
5476 { ac_try='test -s conftest.$ac_objext'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; }; then
5482 ac_hi=$ac_mid
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_lo=`expr '(' $ac_mid ')' + 1`
5488 fi
5489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5490 done
5491 case $ac_lo in
5492 ?*) ac_cv_sizeof_short=$ac_lo;;
5493 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5494 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: cannot compute sizeof (short), 77
5498 See \`config.log' for more details." >&2;}
5499 { (exit 1); exit 1; }; }; } ;;
5500 esac
5501 else
5502 if test "$cross_compiling" = yes; then
5503 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5505 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5506 See \`config.log' for more details." >&5
5507 echo "$as_me: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&2;}
5509 { (exit 1); exit 1; }; }; }
5510 else
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 $ac_includes_default
5518 long longval () { return (long) (sizeof (short)); }
5519 unsigned long ulongval () { return (long) (sizeof (short)); }
5520 #include <stdio.h>
5521 #include <stdlib.h>
5522 int
5523 main ()
5524 {
5525
5526 FILE *f = fopen ("conftest.val", "w");
5527 if (! f)
5528 exit (1);
5529 if (((long) (sizeof (short))) < 0)
5530 {
5531 long i = longval ();
5532 if (i != ((long) (sizeof (short))))
5533 exit (1);
5534 fprintf (f, "%ld\n", i);
5535 }
5536 else
5537 {
5538 unsigned long i = ulongval ();
5539 if (i != ((long) (sizeof (short))))
5540 exit (1);
5541 fprintf (f, "%lu\n", i);
5542 }
5543 exit (ferror (f) || fclose (f) != 0);
5544
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 rm -f conftest$ac_exeext
5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5551 (eval $ac_link) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 (eval $ac_try) 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 ac_cv_sizeof_short=`cat conftest.val`
5561 else
5562 echo "$as_me: program exited with status $ac_status" >&5
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 ( exit $ac_status )
5567 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5568 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: cannot compute sizeof (short), 77
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }; }
5574 fi
5575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5576 fi
5577 fi
5578 rm -f conftest.val
5579 else
5580 ac_cv_sizeof_short=0
5581 fi
5582 fi
5583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5584 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5585 cat >>confdefs.h <<_ACEOF
5586 #define SIZEOF_SHORT $ac_cv_sizeof_short
5587 _ACEOF
5588
5589
5590 echo "$as_me:$LINENO: checking for int" >&5
5591 echo $ECHO_N "checking for int... $ECHO_C" >&6
5592 if test "${ac_cv_type_int+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 $ac_includes_default
5602 int
5603 main ()
5604 {
5605 if ((int *) 0)
5606 return 0;
5607 if (sizeof (int))
5608 return 0;
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_type_int=yes
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_type_int=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5645 echo "${ECHO_T}$ac_cv_type_int" >&6
5646
5647 echo "$as_me:$LINENO: checking size of int" >&5
5648 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof_int+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 if test "$ac_cv_type_int" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666 int
5667 main ()
5668 {
5669 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5670 test_array [0] = 0
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_lo=0 ac_mid=0
5699 while :; do
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 int
5708 main ()
5709 {
5710 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5711 test_array [0] = 0
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest.$ac_objext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_hi=$ac_mid; break
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ac_lo=`expr $ac_mid + 1`
5745 if test $ac_lo -le $ac_mid; then
5746 ac_lo= ac_hi=
5747 break
5748 fi
5749 ac_mid=`expr 2 '*' $ac_mid + 1`
5750 fi
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 done
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5768 test_array [0] = 0
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_hi=-1 ac_mid=-1
5797 while :; do
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5809 test_array [0] = 0
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_lo=$ac_mid; break
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_hi=`expr '(' $ac_mid ')' - 1`
5843 if test $ac_mid -le $ac_hi; then
5844 ac_lo= ac_hi=
5845 break
5846 fi
5847 ac_mid=`expr 2 '*' $ac_mid`
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 done
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_lo= ac_hi=
5856 fi
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860 # Binary search between lo and hi bounds.
5861 while test "x$ac_lo" != "x$ac_hi"; do
5862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5863 cat >conftest.$ac_ext <<_ACEOF
5864 /* confdefs.h. */
5865 _ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_hi=$ac_mid
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo=`expr '(' $ac_mid ')' + 1`
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 done
5911 case $ac_lo in
5912 ?*) ac_cv_sizeof_int=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5914 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5916 See \`config.log' for more details." >&5
5917 echo "$as_me: error: cannot compute sizeof (int), 77
5918 See \`config.log' for more details." >&2;}
5919 { (exit 1); exit 1; }; }; } ;;
5920 esac
5921 else
5922 if test "$cross_compiling" = yes; then
5923 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5924 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5926 See \`config.log' for more details." >&5
5927 echo "$as_me: error: cannot run test program while cross compiling
5928 See \`config.log' for more details." >&2;}
5929 { (exit 1); exit 1; }; }; }
5930 else
5931 cat >conftest.$ac_ext <<_ACEOF
5932 /* confdefs.h. */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 long longval () { return (long) (sizeof (int)); }
5939 unsigned long ulongval () { return (long) (sizeof (int)); }
5940 #include <stdio.h>
5941 #include <stdlib.h>
5942 int
5943 main ()
5944 {
5945
5946 FILE *f = fopen ("conftest.val", "w");
5947 if (! f)
5948 exit (1);
5949 if (((long) (sizeof (int))) < 0)
5950 {
5951 long i = longval ();
5952 if (i != ((long) (sizeof (int))))
5953 exit (1);
5954 fprintf (f, "%ld\n", i);
5955 }
5956 else
5957 {
5958 unsigned long i = ulongval ();
5959 if (i != ((long) (sizeof (int))))
5960 exit (1);
5961 fprintf (f, "%lu\n", i);
5962 }
5963 exit (ferror (f) || fclose (f) != 0);
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; }; then
5980 ac_cv_sizeof_int=`cat conftest.val`
5981 else
5982 echo "$as_me: program exited with status $ac_status" >&5
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 ( exit $ac_status )
5987 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5988 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5990 See \`config.log' for more details." >&5
5991 echo "$as_me: error: cannot compute sizeof (int), 77
5992 See \`config.log' for more details." >&2;}
5993 { (exit 1); exit 1; }; }; }
5994 fi
5995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 fi
5998 rm -f conftest.val
5999 else
6000 ac_cv_sizeof_int=0
6001 fi
6002 fi
6003 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6004 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6005 cat >>confdefs.h <<_ACEOF
6006 #define SIZEOF_INT $ac_cv_sizeof_int
6007 _ACEOF
6008
6009
6010 echo "$as_me:$LINENO: checking for long" >&5
6011 echo $ECHO_N "checking for long... $ECHO_C" >&6
6012 if test "${ac_cv_type_long+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 $ac_includes_default
6022 int
6023 main ()
6024 {
6025 if ((long *) 0)
6026 return 0;
6027 if (sizeof (long))
6028 return 0;
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } &&
6042 { ac_try='test -z "$ac_c_werror_flag"
6043 || test ! -s conftest.err'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; } &&
6049 { ac_try='test -s conftest.$ac_objext'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 (eval $ac_try) 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6055 ac_cv_type_long=yes
6056 else
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_type_long=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6065 echo "${ECHO_T}$ac_cv_type_long" >&6
6066
6067 echo "$as_me:$LINENO: checking size of long" >&5
6068 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6069 if test "${ac_cv_sizeof_long+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if test "$ac_cv_type_long" = yes; then
6073 # The cast to unsigned long works around a bug in the HP C Compiler
6074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076 # This bug is HP SR number 8606223364.
6077 if test "$cross_compiling" = yes; then
6078 # Depending upon the size, compute the lo and hi bounds.
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 $ac_includes_default
6086 int
6087 main ()
6088 {
6089 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6090 test_array [0] = 0
6091
6092 ;
6093 return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_lo=0 ac_mid=0
6119 while :; do
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6127 int
6128 main ()
6129 {
6130 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6131 test_array [0] = 0
6132
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_hi=$ac_mid; break
6160 else
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6163
6164 ac_lo=`expr $ac_mid + 1`
6165 if test $ac_lo -le $ac_mid; then
6166 ac_lo= ac_hi=
6167 break
6168 fi
6169 ac_mid=`expr 2 '*' $ac_mid + 1`
6170 fi
6171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6172 done
6173 else
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177 cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6184 int
6185 main ()
6186 {
6187 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6188 test_array [0] = 0
6189
6190 ;
6191 return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_hi=-1 ac_mid=-1
6217 while :; do
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h. */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 int
6226 main ()
6227 {
6228 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6229 test_array [0] = 0
6230
6231 ;
6232 return 0;
6233 }
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_lo=$ac_mid; break
6258 else
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262 ac_hi=`expr '(' $ac_mid ')' - 1`
6263 if test $ac_mid -le $ac_hi; then
6264 ac_lo= ac_hi=
6265 break
6266 fi
6267 ac_mid=`expr 2 '*' $ac_mid`
6268 fi
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270 done
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_lo= ac_hi=
6276 fi
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278 fi
6279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6280 # Binary search between lo and hi bounds.
6281 while test "x$ac_lo" != "x$ac_hi"; do
6282 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 int
6291 main ()
6292 {
6293 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6294 test_array [0] = 0
6295
6296 ;
6297 return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_hi=$ac_mid
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ac_lo=`expr '(' $ac_mid ')' + 1`
6328 fi
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330 done
6331 case $ac_lo in
6332 ?*) ac_cv_sizeof_long=$ac_lo;;
6333 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6334 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6335 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot compute sizeof (long), 77
6338 See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }; } ;;
6340 esac
6341 else
6342 if test "$cross_compiling" = yes; then
6343 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6344 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6345 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6346 See \`config.log' for more details." >&5
6347 echo "$as_me: error: cannot run test program while cross compiling
6348 See \`config.log' for more details." >&2;}
6349 { (exit 1); exit 1; }; }; }
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 long longval () { return (long) (sizeof (long)); }
6359 unsigned long ulongval () { return (long) (sizeof (long)); }
6360 #include <stdio.h>
6361 #include <stdlib.h>
6362 int
6363 main ()
6364 {
6365
6366 FILE *f = fopen ("conftest.val", "w");
6367 if (! f)
6368 exit (1);
6369 if (((long) (sizeof (long))) < 0)
6370 {
6371 long i = longval ();
6372 if (i != ((long) (sizeof (long))))
6373 exit (1);
6374 fprintf (f, "%ld\n", i);
6375 }
6376 else
6377 {
6378 unsigned long i = ulongval ();
6379 if (i != ((long) (sizeof (long))))
6380 exit (1);
6381 fprintf (f, "%lu\n", i);
6382 }
6383 exit (ferror (f) || fclose (f) != 0);
6384
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest$ac_exeext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391 (eval $ac_link) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_sizeof_long=`cat conftest.val`
6401 else
6402 echo "$as_me: program exited with status $ac_status" >&5
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ( exit $ac_status )
6407 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6408 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6410 See \`config.log' for more details." >&5
6411 echo "$as_me: error: cannot compute sizeof (long), 77
6412 See \`config.log' for more details." >&2;}
6413 { (exit 1); exit 1; }; }; }
6414 fi
6415 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 fi
6418 rm -f conftest.val
6419 else
6420 ac_cv_sizeof_long=0
6421 fi
6422 fi
6423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6424 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6425 cat >>confdefs.h <<_ACEOF
6426 #define SIZEOF_LONG $ac_cv_sizeof_long
6427 _ACEOF
6428
6429
6430 echo "$as_me:$LINENO: checking for long long" >&5
6431 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6432 if test "${ac_cv_type_long_long+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 $ac_includes_default
6442 int
6443 main ()
6444 {
6445 if ((long long *) 0)
6446 return 0;
6447 if (sizeof (long long))
6448 return 0;
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext
6454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } &&
6462 { ac_try='test -z "$ac_c_werror_flag"
6463 || test ! -s conftest.err'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; } &&
6469 { ac_try='test -s conftest.$ac_objext'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_type_long_long=yes
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 ac_cv_type_long_long=no
6481 fi
6482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6485 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6486 if test $ac_cv_type_long_long = yes; then
6487
6488 cat >>confdefs.h <<_ACEOF
6489 #define HAVE_LONG_LONG 1
6490 _ACEOF
6491
6492 echo "$as_me:$LINENO: checking for long long" >&5
6493 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6494 if test "${ac_cv_type_long_long+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h. */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 $ac_includes_default
6504 int
6505 main ()
6506 {
6507 if ((long long *) 0)
6508 return 0;
6509 if (sizeof (long long))
6510 return 0;
6511 ;
6512 return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_type_long_long=yes
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_cv_type_long_long=no
6543 fi
6544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6545 fi
6546 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6547 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6548
6549 echo "$as_me:$LINENO: checking size of long long" >&5
6550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6551 if test "${ac_cv_sizeof_long_long+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 else
6554 if test "$ac_cv_type_long_long" = yes; then
6555 # The cast to unsigned long works around a bug in the HP C Compiler
6556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6558 # This bug is HP SR number 8606223364.
6559 if test "$cross_compiling" = yes; then
6560 # Depending upon the size, compute the lo and hi bounds.
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 int
6569 main ()
6570 {
6571 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6572 test_array [0] = 0
6573
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_lo=0 ac_mid=0
6601 while :; do
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 $ac_includes_default
6609 int
6610 main ()
6611 {
6612 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6613 test_array [0] = 0
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest.$ac_objext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6621 (eval $ac_compile) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 (eval $ac_try) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_hi=$ac_mid; break
6642 else
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 ac_lo=`expr $ac_mid + 1`
6647 if test $ac_lo -le $ac_mid; then
6648 ac_lo= ac_hi=
6649 break
6650 fi
6651 ac_mid=`expr 2 '*' $ac_mid + 1`
6652 fi
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 done
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h. */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 $ac_includes_default
6666 int
6667 main ()
6668 {
6669 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6670 test_array [0] = 0
6671
6672 ;
6673 return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 (eval $ac_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try='test -s conftest.$ac_objext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694 (eval $ac_try) 2>&5
6695 ac_status=$?
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 ac_hi=-1 ac_mid=-1
6699 while :; do
6700 cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h. */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 $ac_includes_default
6707 int
6708 main ()
6709 {
6710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6711 test_array [0] = 0
6712
6713 ;
6714 return 0;
6715 }
6716 _ACEOF
6717 rm -f conftest.$ac_objext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 (eval $ac_try) 2>&5
6730 ac_status=$?
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest.$ac_objext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_lo=$ac_mid; break
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744 ac_hi=`expr '(' $ac_mid ')' - 1`
6745 if test $ac_mid -le $ac_hi; then
6746 ac_lo= ac_hi=
6747 break
6748 fi
6749 ac_mid=`expr 2 '*' $ac_mid`
6750 fi
6751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752 done
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 ac_lo= ac_hi=
6758 fi
6759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6760 fi
6761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 $ac_includes_default
6772 int
6773 main ()
6774 {
6775 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6776 test_array [0] = 0
6777
6778 ;
6779 return 0;
6780 }
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6785 ac_status=$?
6786 grep -v '^ *+' conftest.er1 >conftest.err
6787 rm -f conftest.er1
6788 cat conftest.err >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 (eval $ac_try) 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_hi=$ac_mid
6805 else
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 ac_lo=`expr '(' $ac_mid ')' + 1`
6810 fi
6811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812 done
6813 case $ac_lo in
6814 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6815 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6816 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6818 See \`config.log' for more details." >&5
6819 echo "$as_me: error: cannot compute sizeof (long long), 77
6820 See \`config.log' for more details." >&2;}
6821 { (exit 1); exit 1; }; }; } ;;
6822 esac
6823 else
6824 if test "$cross_compiling" = yes; then
6825 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6826 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6827 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6828 See \`config.log' for more details." >&5
6829 echo "$as_me: error: cannot run test program while cross compiling
6830 See \`config.log' for more details." >&2;}
6831 { (exit 1); exit 1; }; }; }
6832 else
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 long longval () { return (long) (sizeof (long long)); }
6841 unsigned long ulongval () { return (long) (sizeof (long long)); }
6842 #include <stdio.h>
6843 #include <stdlib.h>
6844 int
6845 main ()
6846 {
6847
6848 FILE *f = fopen ("conftest.val", "w");
6849 if (! f)
6850 exit (1);
6851 if (((long) (sizeof (long long))) < 0)
6852 {
6853 long i = longval ();
6854 if (i != ((long) (sizeof (long long))))
6855 exit (1);
6856 fprintf (f, "%ld\n", i);
6857 }
6858 else
6859 {
6860 unsigned long i = ulongval ();
6861 if (i != ((long) (sizeof (long long))))
6862 exit (1);
6863 fprintf (f, "%lu\n", i);
6864 }
6865 exit (ferror (f) || fclose (f) != 0);
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest$ac_exeext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_sizeof_long_long=`cat conftest.val`
6883 else
6884 echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ( exit $ac_status )
6889 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6890 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6892 See \`config.log' for more details." >&5
6893 echo "$as_me: error: cannot compute sizeof (long long), 77
6894 See \`config.log' for more details." >&2;}
6895 { (exit 1); exit 1; }; }; }
6896 fi
6897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6898 fi
6899 fi
6900 rm -f conftest.val
6901 else
6902 ac_cv_sizeof_long_long=0
6903 fi
6904 fi
6905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6906 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6907 cat >>confdefs.h <<_ACEOF
6908 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6909 _ACEOF
6910
6911
6912 fi
6913
6914 echo "$as_me:$LINENO: checking for __int64" >&5
6915 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6916 if test "${ac_cv_type___int64+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 $ac_includes_default
6926 int
6927 main ()
6928 {
6929 if ((__int64 *) 0)
6930 return 0;
6931 if (sizeof (__int64))
6932 return 0;
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6939 (eval $ac_compile) 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } &&
6946 { ac_try='test -z "$ac_c_werror_flag"
6947 || test ! -s conftest.err'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 (eval $ac_try) 2>&5
6956 ac_status=$?
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 ac_cv_type___int64=yes
6960 else
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.$ac_ext >&5
6963
6964 ac_cv_type___int64=no
6965 fi
6966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6967 fi
6968 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6969 echo "${ECHO_T}$ac_cv_type___int64" >&6
6970 if test $ac_cv_type___int64 = yes; then
6971
6972 cat >>confdefs.h <<_ACEOF
6973 #define HAVE___INT64 1
6974 _ACEOF
6975
6976 echo "$as_me:$LINENO: checking for __int64" >&5
6977 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6978 if test "${ac_cv_type___int64+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 if ((__int64 *) 0)
6992 return 0;
6993 if (sizeof (__int64))
6994 return 0;
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7001 (eval $ac_compile) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_c_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_type___int64=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ac_cv_type___int64=no
7027 fi
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 fi
7030 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
7031 echo "${ECHO_T}$ac_cv_type___int64" >&6
7032
7033 echo "$as_me:$LINENO: checking size of __int64" >&5
7034 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
7035 if test "${ac_cv_sizeof___int64+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 if test "$ac_cv_type___int64" = yes; then
7039 # The cast to unsigned long works around a bug in the HP C Compiler
7040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7042 # This bug is HP SR number 8606223364.
7043 if test "$cross_compiling" = yes; then
7044 # Depending upon the size, compute the lo and hi bounds.
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7052 int
7053 main ()
7054 {
7055 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
7056 test_array [0] = 0
7057
7058 ;
7059 return 0;
7060 }
7061 _ACEOF
7062 rm -f conftest.$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_lo=0 ac_mid=0
7085 while :; do
7086 cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h. */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7093 int
7094 main ()
7095 {
7096 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
7097 test_array [0] = 0
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105 (eval $ac_compile) 2>conftest.er1
7106 ac_status=$?
7107 grep -v '^ *+' conftest.er1 >conftest.err
7108 rm -f conftest.er1
7109 cat conftest.err >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } &&
7112 { ac_try='test -z "$ac_c_werror_flag"
7113 || test ! -s conftest.err'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 (eval $ac_try) 2>&5
7116 ac_status=$?
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; } &&
7119 { ac_try='test -s conftest.$ac_objext'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 ac_hi=$ac_mid; break
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_lo=`expr $ac_mid + 1`
7131 if test $ac_lo -le $ac_mid; then
7132 ac_lo= ac_hi=
7133 break
7134 fi
7135 ac_mid=`expr 2 '*' $ac_mid + 1`
7136 fi
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138 done
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h. */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 int
7151 main ()
7152 {
7153 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
7154 test_array [0] = 0
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest.$ac_objext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7162 (eval $ac_compile) 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -z "$ac_c_werror_flag"
7170 || test ! -s conftest.err'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try='test -s conftest.$ac_objext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 ac_hi=-1 ac_mid=-1
7183 while :; do
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 int
7192 main ()
7193 {
7194 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
7195 test_array [0] = 0
7196
7197 ;
7198 return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
7210 { ac_try='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try='test -s conftest.$ac_objext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_lo=$ac_mid; break
7224 else
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7227
7228 ac_hi=`expr '(' $ac_mid ')' - 1`
7229 if test $ac_mid -le $ac_hi; then
7230 ac_lo= ac_hi=
7231 break
7232 fi
7233 ac_mid=`expr 2 '*' $ac_mid`
7234 fi
7235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7236 done
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_lo= ac_hi=
7242 fi
7243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244 fi
7245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7246 # Binary search between lo and hi bounds.
7247 while test "x$ac_lo" != "x$ac_hi"; do
7248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 int
7257 main ()
7258 {
7259 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
7260 test_array [0] = 0
7261
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_hi=$ac_mid
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ac_lo=`expr '(' $ac_mid ')' + 1`
7294 fi
7295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7296 done
7297 case $ac_lo in
7298 ?*) ac_cv_sizeof___int64=$ac_lo;;
7299 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7300 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7302 See \`config.log' for more details." >&5
7303 echo "$as_me: error: cannot compute sizeof (__int64), 77
7304 See \`config.log' for more details." >&2;}
7305 { (exit 1); exit 1; }; }; } ;;
7306 esac
7307 else
7308 if test "$cross_compiling" = yes; then
7309 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7310 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7312 See \`config.log' for more details." >&5
7313 echo "$as_me: error: cannot run test program while cross compiling
7314 See \`config.log' for more details." >&2;}
7315 { (exit 1); exit 1; }; }; }
7316 else
7317 cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h. */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 long longval () { return (long) (sizeof (__int64)); }
7325 unsigned long ulongval () { return (long) (sizeof (__int64)); }
7326 #include <stdio.h>
7327 #include <stdlib.h>
7328 int
7329 main ()
7330 {
7331
7332 FILE *f = fopen ("conftest.val", "w");
7333 if (! f)
7334 exit (1);
7335 if (((long) (sizeof (__int64))) < 0)
7336 {
7337 long i = longval ();
7338 if (i != ((long) (sizeof (__int64))))
7339 exit (1);
7340 fprintf (f, "%ld\n", i);
7341 }
7342 else
7343 {
7344 unsigned long i = ulongval ();
7345 if (i != ((long) (sizeof (__int64))))
7346 exit (1);
7347 fprintf (f, "%lu\n", i);
7348 }
7349 exit (ferror (f) || fclose (f) != 0);
7350
7351 ;
7352 return 0;
7353 }
7354 _ACEOF
7355 rm -f conftest$ac_exeext
7356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>&5
7358 ac_status=$?
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_sizeof___int64=`cat conftest.val`
7367 else
7368 echo "$as_me: program exited with status $ac_status" >&5
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ( exit $ac_status )
7373 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7374 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot compute sizeof (__int64), 77
7378 See \`config.log' for more details." >&2;}
7379 { (exit 1); exit 1; }; }; }
7380 fi
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382 fi
7383 fi
7384 rm -f conftest.val
7385 else
7386 ac_cv_sizeof___int64=0
7387 fi
7388 fi
7389 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
7390 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZEOF___INT64 $ac_cv_sizeof___int64
7393 _ACEOF
7394
7395
7396 fi
7397
7398
7399 # ---------------------
7400 # Warnings and checking
7401 # ---------------------
7402
7403 # Check $CC warning features (if it's GCC).
7404 # We want to use -pedantic, but we don't want warnings about
7405 # * 'long long'
7406 # * variadic macros
7407 # * overlong strings
7408 # So, we only use -pedantic if we can disable those warnings.
7409
7410 loose_warn=
7411 save_CFLAGS="$CFLAGS"
7412 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
7413 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7414
7415 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7416 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7417 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 CFLAGS="$option"
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427
7428 int
7429 main ()
7430 {
7431
7432 ;
7433 return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7438 (eval $ac_compile) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } &&
7445 { ac_try='test -z "$ac_c_werror_flag"
7446 || test ! -s conftest.err'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; } &&
7452 { ac_try='test -s conftest.$ac_objext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 eval "$as_acx_Woption=yes"
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463 eval "$as_acx_Woption=no"
7464 fi
7465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466
7467 fi
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7470 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7471 loose_warn="$loose_warn${loose_warn:+ }$option"
7472 fi
7473
7474 done
7475 CFLAGS="$save_CFLAGS"
7476
7477 c_loose_warn=
7478 save_CFLAGS="$CFLAGS"
7479 for option in -Wstrict-prototypes -Wmissing-prototypes; do
7480 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7481
7482 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7483 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7484 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486 else
7487 CFLAGS="$option"
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494
7495 int
7496 main ()
7497 {
7498
7499 ;
7500 return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505 (eval $ac_compile) 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } &&
7512 { ac_try='test -z "$ac_c_werror_flag"
7513 || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest.$ac_objext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_acx_Woption=yes"
7526 else
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 eval "$as_acx_Woption=no"
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533
7534 fi
7535 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7536 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7537 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7538 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
7539 fi
7540
7541 done
7542 CFLAGS="$save_CFLAGS"
7543
7544 strict_warn=
7545 save_CFLAGS="$CFLAGS"
7546 for option in -Wmissing-format-attribute; do
7547 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7548
7549 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7550 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7551 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 CFLAGS="$option"
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561
7562 int
7563 main ()
7564 {
7565
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest.$ac_objext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_acx_Woption=yes"
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 eval "$as_acx_Woption=no"
7598 fi
7599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7600
7601 fi
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7604 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7605 strict_warn="$strict_warn${strict_warn:+ }$option"
7606 fi
7607
7608 done
7609 CFLAGS="$save_CFLAGS"
7610
7611 c_strict_warn=
7612 save_CFLAGS="$CFLAGS"
7613 for option in -Wold-style-definition -Wc++-compat; do
7614 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7615
7616 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7617 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7618 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 CFLAGS="$option"
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628
7629 int
7630 main ()
7631 {
7632
7633 ;
7634 return 0;
7635 }
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7659 eval "$as_acx_Woption=yes"
7660 else
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 eval "$as_acx_Woption=no"
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667
7668 fi
7669 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7670 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7671 if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7672 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
7673 fi
7674
7675 done
7676 CFLAGS="$save_CFLAGS"
7677
7678 if test "$GCC" = yes; then
7679 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
7680 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... $ECHO_C" >&6
7681 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 save_CFLAGS="$CFLAGS"
7685 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7686 cat >conftest.$ac_ext <<_ACEOF
7687 /* confdefs.h. */
7688 _ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692
7693 int
7694 main ()
7695 {
7696
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703 (eval $ac_compile) 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7727
7728 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
7729 fi
7730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 CFLAGS="$save_CFLAGS"
7732 fi
7733 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
7734 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6
7735 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then
7736 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7737 fi
7738
7739
7740 fi
7741
7742
7743 # Check whether --enable-werror-always or --disable-werror-always was given.
7744 if test "${enable_werror_always+set}" = set; then
7745 enableval="$enable_werror_always"
7746
7747 else
7748 enable_werror_always=no
7749 fi;
7750 if test $enable_werror_always = yes; then
7751 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7752 fi
7753
7754
7755
7756
7757 # The above macros do nothing if the compiler is not GCC. However, the
7758 # Makefile has more goo to add other flags, so these variables are used
7759 # to enable warnings only for GCC.
7760 warn_cflags=
7761 warn_cxxflags=
7762 if test "x$GCC" = "xyes"; then
7763 warn_cflags='$(GCC_WARN_CFLAGS)'
7764 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7765 fi
7766
7767
7768
7769 # Enable expensive internal checks
7770 is_release=
7771 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7772 is_release=yes
7773 fi
7774
7775 # Check whether --enable-checking or --disable-checking was given.
7776 if test "${enable_checking+set}" = set; then
7777 enableval="$enable_checking"
7778 ac_checking_flags="${enableval}"
7779 else
7780
7781 # Determine the default checks.
7782 if test x$is_release = x ; then
7783 ac_checking_flags=yes
7784 else
7785 ac_checking_flags=release
7786 fi
7787 fi;
7788 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7789 for check in release $ac_checking_flags
7790 do
7791 case $check in
7792 # these set all the flags to specific states
7793 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7794 ac_fold_checking= ; ac_gc_checking=1 ;
7795 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7796 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7797 ac_tree_checking=1 ; ac_valgrind_checking= ;
7798 ac_types_checking=1 ;;
7799 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7800 ac_fold_checking= ; ac_gc_checking= ;
7801 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7802 ac_rtlflag_checking= ; ac_runtime_checking= ;
7803 ac_tree_checking= ; ac_valgrind_checking= ;
7804 ac_types_checking= ;;
7805 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7806 ac_fold_checking=1 ; ac_gc_checking=1 ;
7807 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7808 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7809 ac_tree_checking=1 ; ac_valgrind_checking= ;
7810 ac_types_checking=1 ;;
7811 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7812 ac_fold_checking= ; ac_gc_checking= ;
7813 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7814 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7815 ac_tree_checking= ; ac_valgrind_checking= ;
7816 ac_types_checking= ;;
7817 # these enable particular checks
7818 assert) ac_assert_checking=1 ;;
7819 df) ac_df_checking=1 ;;
7820 fold) ac_fold_checking=1 ;;
7821 gc) ac_gc_checking=1 ;;
7822 gcac) ac_gc_always_collect=1 ;;
7823 gimple) ac_gimple_checking=1 ;;
7824 misc) ac_checking=1 ;;
7825 rtl) ac_rtl_checking=1 ;;
7826 rtlflag) ac_rtlflag_checking=1 ;;
7827 runtime) ac_runtime_checking=1 ;;
7828 tree) ac_tree_checking=1 ;;
7829 types) ac_types_checking=1 ;;
7830 valgrind) ac_valgrind_checking=1 ;;
7831 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7832 echo "$as_me: error: unknown check category $check" >&2;}
7833 { (exit 1); exit 1; }; } ;;
7834 esac
7835 done
7836 IFS="$ac_save_IFS"
7837
7838 nocommon_flag=""
7839 if test x$ac_checking != x ; then
7840
7841 cat >>confdefs.h <<\_ACEOF
7842 #define ENABLE_CHECKING 1
7843 _ACEOF
7844
7845 nocommon_flag=-fno-common
7846 fi
7847
7848 if test x$ac_df_checking != x ; then
7849
7850 cat >>confdefs.h <<\_ACEOF
7851 #define ENABLE_DF_CHECKING 1
7852 _ACEOF
7853
7854 fi
7855 if test x$ac_assert_checking != x ; then
7856
7857 cat >>confdefs.h <<\_ACEOF
7858 #define ENABLE_ASSERT_CHECKING 1
7859 _ACEOF
7860
7861 fi
7862 if test x$ac_gimple_checking != x ; then
7863
7864 cat >>confdefs.h <<\_ACEOF
7865 #define ENABLE_GIMPLE_CHECKING 1
7866 _ACEOF
7867
7868 fi
7869
7870 if test x$ac_runtime_checking != x ; then
7871
7872 cat >>confdefs.h <<\_ACEOF
7873 #define ENABLE_RUNTIME_CHECKING 1
7874 _ACEOF
7875
7876 fi
7877 if test x$ac_tree_checking != x ; then
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define ENABLE_TREE_CHECKING 1
7881 _ACEOF
7882
7883 TREEBROWSER=tree-browser.o
7884 fi
7885 if test x$ac_types_checking != x ; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define ENABLE_TYPES_CHECKING 1
7889 _ACEOF
7890
7891 fi
7892
7893 if test x$ac_rtl_checking != x ; then
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define ENABLE_RTL_CHECKING 1
7897 _ACEOF
7898
7899 fi
7900 if test x$ac_rtlflag_checking != x ; then
7901
7902 cat >>confdefs.h <<\_ACEOF
7903 #define ENABLE_RTL_FLAG_CHECKING 1
7904 _ACEOF
7905
7906 fi
7907 if test x$ac_gc_checking != x ; then
7908
7909 cat >>confdefs.h <<\_ACEOF
7910 #define ENABLE_GC_CHECKING 1
7911 _ACEOF
7912
7913 fi
7914 if test x$ac_gc_always_collect != x ; then
7915
7916 cat >>confdefs.h <<\_ACEOF
7917 #define ENABLE_GC_ALWAYS_COLLECT 1
7918 _ACEOF
7919
7920 fi
7921 if test x$ac_fold_checking != x ; then
7922
7923 cat >>confdefs.h <<\_ACEOF
7924 #define ENABLE_FOLD_CHECKING 1
7925 _ACEOF
7926
7927 fi
7928 valgrind_path_defines=
7929 valgrind_command=
7930
7931 if test "${ac_cv_header_valgrind_h+set}" = set; then
7932 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7933 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7934 if test "${ac_cv_header_valgrind_h+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 fi
7937 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7938 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7939 else
7940 # Is the header compilable?
7941 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7942 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 #include <valgrind.h>
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954 (eval $ac_compile) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -z "$ac_c_werror_flag"
7962 || test ! -s conftest.err'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; } &&
7968 { ac_try='test -s conftest.$ac_objext'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 (eval $ac_try) 2>&5
7971 ac_status=$?
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; }; then
7974 ac_header_compiler=yes
7975 else
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979 ac_header_compiler=no
7980 fi
7981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7983 echo "${ECHO_T}$ac_header_compiler" >&6
7984
7985 # Is the header present?
7986 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7987 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 #include <valgrind.h>
7995 _ACEOF
7996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7998 ac_status=$?
7999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); } >/dev/null; then
8004 if test -s conftest.err; then
8005 ac_cpp_err=$ac_c_preproc_warn_flag
8006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8007 else
8008 ac_cpp_err=
8009 fi
8010 else
8011 ac_cpp_err=yes
8012 fi
8013 if test -z "$ac_cpp_err"; then
8014 ac_header_preproc=yes
8015 else
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 ac_header_preproc=no
8020 fi
8021 rm -f conftest.err conftest.$ac_ext
8022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8023 echo "${ECHO_T}$ac_header_preproc" >&6
8024
8025 # So? What about this header?
8026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8027 yes:no: )
8028 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
8029 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8030 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
8031 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
8032 ac_header_preproc=yes
8033 ;;
8034 no:yes:* )
8035 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
8036 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
8038 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
8040 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
8041 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
8042 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
8044 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
8045 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
8046 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
8047 (
8048 cat <<\_ASBOX
8049 ## ------------------------------------------ ##
8050 ## Report this to the AC_PACKAGE_NAME lists. ##
8051 ## ------------------------------------------ ##
8052 _ASBOX
8053 ) |
8054 sed "s/^/$as_me: WARNING: /" >&2
8055 ;;
8056 esac
8057 echo "$as_me:$LINENO: checking for valgrind.h" >&5
8058 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
8059 if test "${ac_cv_header_valgrind_h+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 ac_cv_header_valgrind_h=$ac_header_preproc
8063 fi
8064 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
8065 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
8066
8067 fi
8068 if test $ac_cv_header_valgrind_h = yes; then
8069 have_valgrind_h=yes
8070 else
8071 have_valgrind_h=no
8072 fi
8073
8074
8075
8076 if test x$ac_valgrind_checking != x ; then
8077 # It is certainly possible that there's valgrind but no valgrind.h.
8078 # GCC relies on making annotations so we must have both.
8079 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
8080 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 /* confdefs.h. */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 #include <valgrind/memcheck.h>
8088 #ifndef VALGRIND_DISCARD
8089 #error VALGRIND_DISCARD not defined
8090 #endif
8091 _ACEOF
8092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } >/dev/null; then
8100 if test -s conftest.err; then
8101 ac_cpp_err=$ac_c_preproc_warn_flag
8102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8103 else
8104 ac_cpp_err=
8105 fi
8106 else
8107 ac_cpp_err=yes
8108 fi
8109 if test -z "$ac_cpp_err"; then
8110 gcc_cv_header_valgrind_memcheck_h=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 gcc_cv_header_valgrind_memcheck_h=no
8116 fi
8117 rm -f conftest.err conftest.$ac_ext
8118 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
8119 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
8120 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
8121 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 #include <memcheck.h>
8129 #ifndef VALGRIND_DISCARD
8130 #error VALGRIND_DISCARD not defined
8131 #endif
8132 _ACEOF
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null; then
8141 if test -s conftest.err; then
8142 ac_cpp_err=$ac_c_preproc_warn_flag
8143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8144 else
8145 ac_cpp_err=
8146 fi
8147 else
8148 ac_cpp_err=yes
8149 fi
8150 if test -z "$ac_cpp_err"; then
8151 gcc_cv_header_memcheck_h=yes
8152 else
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 gcc_cv_header_memcheck_h=no
8157 fi
8158 rm -f conftest.err conftest.$ac_ext
8159 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
8160 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
8161
8162 # Prepare PATH_SEPARATOR.
8163 # The user is always right.
8164 if test "${PATH_SEPARATOR+set}" != set; then
8165 echo "#! /bin/sh" >conf$$.sh
8166 echo "exit 0" >>conf$$.sh
8167 chmod +x conf$$.sh
8168 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8169 PATH_SEPARATOR=';'
8170 else
8171 PATH_SEPARATOR=:
8172 fi
8173 rm -f conf$$.sh
8174 fi
8175
8176 # Find out how to test for executable files. Don't use a zero-byte file,
8177 # as systems may use methods other than mode bits to determine executability.
8178 cat >conf$$.file <<_ASEOF
8179 #! /bin/sh
8180 exit 0
8181 _ASEOF
8182 chmod +x conf$$.file
8183 if test -x conf$$.file >/dev/null 2>&1; then
8184 ac_executable_p="test -x"
8185 else
8186 ac_executable_p="test -f"
8187 fi
8188 rm -f conf$$.file
8189
8190 # Extract the first word of "valgrind", so it can be a program name with args.
8191 set dummy valgrind; ac_word=$2
8192 echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194 if test "${ac_cv_path_valgrind_path+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 case "$valgrind_path" in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
8200 ;;
8201 *)
8202 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8203 for ac_dir in $PATH; do
8204 IFS="$ac_save_IFS"
8205 test -z "$ac_dir" && ac_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8208 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
8209 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
8210 break 2
8211 fi
8212 fi
8213 done
8214 done
8215 IFS="$ac_save_IFS"
8216 ;;
8217 esac
8218 fi
8219 valgrind_path="$ac_cv_path_valgrind_path"
8220 if test -n "$valgrind_path"; then
8221 echo "$as_me:$LINENO: result: $valgrind_path" >&5
8222 echo "${ECHO_T}$valgrind_path" >&6
8223 else
8224 echo "$as_me:$LINENO: result: no" >&5
8225 echo "${ECHO_T}no" >&6
8226 fi
8227
8228 if test "x$valgrind_path" = "x" \
8229 || (test $have_valgrind_h = no \
8230 && test $gcc_cv_header_memcheck_h = no \
8231 && test $gcc_cv_header_valgrind_memcheck_h = no); then
8232 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
8233 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
8234 { (exit 1); exit 1; }; }
8235 fi
8236 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
8237 valgrind_command="$valgrind_path -q"
8238
8239 cat >>confdefs.h <<\_ACEOF
8240 #define ENABLE_VALGRIND_CHECKING 1
8241 _ACEOF
8242
8243 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define HAVE_VALGRIND_MEMCHECK_H 1
8247 _ACEOF
8248
8249 fi
8250 if test $gcc_cv_header_memcheck_h = yes; then
8251
8252 cat >>confdefs.h <<\_ACEOF
8253 #define HAVE_MEMCHECK_H 1
8254 _ACEOF
8255
8256 fi
8257 fi
8258
8259
8260
8261 # Enable code coverage collection
8262 # Check whether --enable-coverage or --disable-coverage was given.
8263 if test "${enable_coverage+set}" = set; then
8264 enableval="$enable_coverage"
8265 case "${enableval}" in
8266 yes|noopt)
8267 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
8268 ;;
8269 opt)
8270 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
8271 ;;
8272 no)
8273 # a.k.a. --disable-coverage
8274 coverage_flags=""
8275 ;;
8276 *)
8277 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
8278 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
8279 { (exit 1); exit 1; }; }
8280 ;;
8281 esac
8282 else
8283 coverage_flags=""
8284 fi;
8285
8286
8287 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
8288 if test "${enable_gather_detailed_mem_stats+set}" = set; then
8289 enableval="$enable_gather_detailed_mem_stats"
8290
8291 else
8292 enable_gather_detailed_mem_stats=no
8293 fi;
8294 if test x$enable_gather_detailed_mem_stats = xyes ; then
8295
8296 cat >>confdefs.h <<\_ACEOF
8297 #define GATHER_STATISTICS 1
8298 _ACEOF
8299
8300 fi
8301
8302 # -------------------------------
8303 # Miscenalleous configure options
8304 # -------------------------------
8305
8306 # See if we are building gcc with C++.
8307 # Check whether --enable-build-with-cxx or --disable-build-with-cxx was given.
8308 if test "${enable_build_with_cxx+set}" = set; then
8309 enableval="$enable_build_with_cxx"
8310 ENABLE_BUILD_WITH_CXX=$enableval
8311 else
8312 ENABLE_BUILD_WITH_CXX=no
8313 fi;
8314
8315
8316 # With stabs
8317
8318 # Check whether --with-stabs or --without-stabs was given.
8319 if test "${with_stabs+set}" = set; then
8320 withval="$with_stabs"
8321 stabs="$with_stabs"
8322 else
8323 stabs=no
8324 fi;
8325
8326 # Determine whether or not multilibs are enabled.
8327 # Check whether --enable-multilib or --disable-multilib was given.
8328 if test "${enable_multilib+set}" = set; then
8329 enableval="$enable_multilib"
8330
8331 else
8332 enable_multilib=yes
8333 fi;
8334
8335
8336 # Enable __cxa_atexit for C++.
8337 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
8338 if test "${enable___cxa_atexit+set}" = set; then
8339 enableval="$enable___cxa_atexit"
8340
8341 fi;
8342
8343 # Enable C extension for decimal float if target supports it.
8344 # Check whether --enable-decimal-float or --disable-decimal-float was given.
8345 if test "${enable_decimal_float+set}" = set; then
8346 enableval="$enable_decimal_float"
8347
8348 case $enable_decimal_float in
8349 yes | no | bid | dpd) ;;
8350 *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
8351 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
8352 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
8353 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
8354 { (exit 1); exit 1; }; } ;;
8355 esac
8356
8357 else
8358
8359 case $target in
8360 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
8361 enable_decimal_float=yes
8362 ;;
8363 *)
8364 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
8365 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
8366 enable_decimal_float=no
8367 ;;
8368 esac
8369
8370 fi;
8371
8372 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
8373
8374 cat >>confdefs.h <<_ACEOF
8375 #define ENABLE_DECIMAL_FLOAT $dfp
8376 _ACEOF
8377
8378
8379 # x86's use BID format instead of DPD
8380 case x$enable_decimal_float in
8381 xyes)
8382 case $target in
8383 i?86*-*-linux* | x86_64*-*-linux*)
8384 enable_decimal_float=bid
8385 ;;
8386 *)
8387 enable_decimal_float=dpd
8388 ;;
8389 esac
8390 ;;
8391 xno)
8392 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
8393 # dependency on libdecnumber.
8394 enable_decimal_float=dpd
8395 ;;
8396 esac
8397
8398
8399 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
8400
8401 cat >>confdefs.h <<_ACEOF
8402 #define ENABLE_DECIMAL_BID_FORMAT $bid
8403 _ACEOF
8404
8405
8406 # Enable C extension for fixed-point arithmetic.
8407 # Check whether --enable-fixed-point or --disable-fixed-point was given.
8408 if test "${enable_fixed_point+set}" = set; then
8409 enableval="$enable_fixed_point"
8410
8411
8412 else
8413
8414 case $target in
8415 mips*-*-*)
8416 case $host in
8417 mips*-sgi-irix*)
8418 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
8419 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
8420 enable_fixed_point=no
8421 ;;
8422 *)
8423 enable_fixed_point=yes
8424 ;;
8425 esac
8426 ;;
8427 *)
8428 { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
8429 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
8430 enable_fixed_point=no
8431 ;;
8432 esac
8433
8434 fi;
8435
8436
8437 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
8438
8439 cat >>confdefs.h <<_ACEOF
8440 #define ENABLE_FIXED_POINT $fixedpoint
8441 _ACEOF
8442
8443
8444 # Enable threads
8445 # Pass with no value to take the default
8446 # Pass with a value to specify a thread package
8447 # Check whether --enable-threads or --disable-threads was given.
8448 if test "${enable_threads+set}" = set; then
8449 enableval="$enable_threads"
8450
8451 else
8452 enable_threads=''
8453 fi;
8454
8455 # Check whether --enable-tls or --disable-tls was given.
8456 if test "${enable_tls+set}" = set; then
8457 enableval="$enable_tls"
8458
8459 case $enable_tls in
8460 yes | no) ;;
8461 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
8462 Valid choices are 'yes' and 'no'." >&5
8463 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
8464 Valid choices are 'yes' and 'no'." >&2;}
8465 { (exit 1); exit 1; }; } ;;
8466 esac
8467
8468 else
8469 enable_tls=''
8470 fi;
8471
8472 # Check whether --enable-objc-gc or --disable-objc-gc was given.
8473 if test "${enable_objc_gc+set}" = set; then
8474 enableval="$enable_objc_gc"
8475 if test x$enable_objc_gc = xno; then
8476 objc_boehm_gc=''
8477 else
8478 objc_boehm_gc=1
8479 fi
8480 else
8481 objc_boehm_gc=''
8482 fi;
8483
8484
8485 # Check whether --with-dwarf2 or --without-dwarf2 was given.
8486 if test "${with_dwarf2+set}" = set; then
8487 withval="$with_dwarf2"
8488 dwarf2="$with_dwarf2"
8489 else
8490 dwarf2=no
8491 fi;
8492
8493 # Check whether --enable-shared or --disable-shared was given.
8494 if test "${enable_shared+set}" = set; then
8495 enableval="$enable_shared"
8496
8497 case $enable_shared in
8498 yes | no) ;;
8499 *)
8500 enable_shared=no
8501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8502 for pkg in $enableval; do
8503 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8504 enable_shared=yes
8505 fi
8506 done
8507 IFS="$ac_save_ifs"
8508 ;;
8509 esac
8510
8511 else
8512 enable_shared=yes
8513 fi;
8514
8515
8516
8517 # Check whether --with-build-sysroot or --without-build-sysroot was given.
8518 if test "${with_build_sysroot+set}" = set; then
8519 withval="$with_build_sysroot"
8520
8521 fi;
8522
8523
8524 # Check whether --with-sysroot or --without-sysroot was given.
8525 if test "${with_sysroot+set}" = set; then
8526 withval="$with_sysroot"
8527
8528 case ${with_sysroot} in
8529 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
8530 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
8531 esac
8532
8533 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
8534 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
8535
8536 if test "x$prefix" = xNONE; then
8537 test_prefix=/usr/local
8538 else
8539 test_prefix=$prefix
8540 fi
8541 if test "x$exec_prefix" = xNONE; then
8542 test_exec_prefix=$test_prefix
8543 else
8544 test_exec_prefix=$exec_prefix
8545 fi
8546 case ${TARGET_SYSTEM_ROOT} in
8547 "${test_prefix}"|"${test_prefix}/"*|\
8548 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8549 '${prefix}'|'${prefix}/'*|\
8550 '${exec_prefix}'|'${exec_prefix}/'*)
8551 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8552 TARGET_SYSTEM_ROOT_DEFINE="$t"
8553 ;;
8554 esac
8555
8556 else
8557
8558 TARGET_SYSTEM_ROOT=
8559 TARGET_SYSTEM_ROOT_DEFINE=
8560 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8561
8562 fi;
8563
8564
8565
8566
8567 # Build with intermodule optimisations
8568 # Check whether --enable-intermodule or --disable-intermodule was given.
8569 if test "${enable_intermodule+set}" = set; then
8570 enableval="$enable_intermodule"
8571 case ${enable_intermodule} in
8572 yes) onestep="-onestep";;
8573 *) onestep="";;
8574 esac
8575 else
8576 onestep=""
8577 fi;
8578
8579
8580
8581
8582 # Check whether --with-pkgversion or --without-pkgversion was given.
8583 if test "${with_pkgversion+set}" = set; then
8584 withval="$with_pkgversion"
8585 case "$withval" in
8586 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8587 echo "$as_me: error: package version not specified" >&2;}
8588 { (exit 1); exit 1; }; } ;;
8589 no) PKGVERSION= ;;
8590 *) PKGVERSION="($withval) " ;;
8591 esac
8592 else
8593 PKGVERSION="(GCC) "
8594
8595 fi;
8596
8597
8598
8599
8600 # Check whether --with-bugurl or --without-bugurl was given.
8601 if test "${with_bugurl+set}" = set; then
8602 withval="$with_bugurl"
8603 case "$withval" in
8604 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8605 echo "$as_me: error: bug URL not specified" >&2;}
8606 { (exit 1); exit 1; }; } ;;
8607 no) BUGURL=
8608 ;;
8609 *) BUGURL="$withval"
8610 ;;
8611 esac
8612 else
8613 BUGURL="http://gcc.gnu.org/bugs.html"
8614
8615 fi;
8616 case ${BUGURL} in
8617 "")
8618 REPORT_BUGS_TO=
8619 REPORT_BUGS_TEXI=
8620 ;;
8621 *)
8622 REPORT_BUGS_TO="<$BUGURL>"
8623 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8624 ;;
8625 esac;
8626
8627
8628
8629
8630 # Sanity check enable_languages in case someone does not run the toplevel
8631 # configure # script.
8632 # Check whether --enable-languages or --disable-languages was given.
8633 if test "${enable_languages+set}" = set; then
8634 enableval="$enable_languages"
8635 case ,${enable_languages}, in
8636 ,,|,yes,)
8637 # go safe -- we cannot be much sure without the toplevel
8638 # configure's
8639 # analysis of which target libs are present and usable
8640 enable_languages=c
8641 ;;
8642 *,all,*)
8643 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8644 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8645 { (exit 1); exit 1; }; }
8646 ;;
8647 *,c,*)
8648 ;;
8649 *)
8650 enable_languages=c,${enable_languages}
8651 ;;
8652 esac
8653 else
8654 enable_languages=c
8655 fi;
8656
8657 # Used by documentation targets
8658
8659
8660
8661
8662
8663 # Check whether --with-multilib-list or --without-multilib-list was given.
8664 if test "${with_multilib_list+set}" = set; then
8665 withval="$with_multilib_list"
8666 :
8667 else
8668 with_multilib_list=default
8669 fi;
8670
8671 # -------------------------
8672 # Checks for other programs
8673 # -------------------------
8674
8675 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8677 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8678 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 cat >conftest.make <<\_ACEOF
8682 all:
8683 @echo 'ac_maketemp="$(MAKE)"'
8684 _ACEOF
8685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8686 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8687 if test -n "$ac_maketemp"; then
8688 eval ac_cv_prog_make_${ac_make}_set=yes
8689 else
8690 eval ac_cv_prog_make_${ac_make}_set=no
8691 fi
8692 rm -f conftest.make
8693 fi
8694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696 echo "${ECHO_T}yes" >&6
8697 SET_MAKE=
8698 else
8699 echo "$as_me:$LINENO: result: no" >&5
8700 echo "${ECHO_T}no" >&6
8701 SET_MAKE="MAKE=${MAKE-make}"
8702 fi
8703
8704
8705 # Find some useful tools
8706 for ac_prog in gawk mawk nawk awk
8707 do
8708 # Extract the first word of "$ac_prog", so it can be a program name with args.
8709 set dummy $ac_prog; ac_word=$2
8710 echo "$as_me:$LINENO: checking for $ac_word" >&5
8711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8712 if test "${ac_cv_prog_AWK+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 else
8715 if test -n "$AWK"; then
8716 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8717 else
8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8719 for as_dir in $PATH
8720 do
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_prog_AWK="$ac_prog"
8726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8728 fi
8729 done
8730 done
8731
8732 fi
8733 fi
8734 AWK=$ac_cv_prog_AWK
8735 if test -n "$AWK"; then
8736 echo "$as_me:$LINENO: result: $AWK" >&5
8737 echo "${ECHO_T}$AWK" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6
8741 fi
8742
8743 test -n "$AWK" && break
8744 done
8745
8746 # We need awk to create options.c and options.h.
8747 # Bail out if it's missing.
8748 case ${AWK} in
8749 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8750 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8751 { (exit 1); exit 1; }; } ;;
8752 esac
8753
8754 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8755 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8756 if test "${gcc_cv_prog_LN_S+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 rm -f conftestdata_t
8760 echo >conftestdata_f
8761 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8762 then
8763 gcc_cv_prog_LN_S="ln -s"
8764 else
8765 if ln conftestdata_f conftestdata_t 2>/dev/null
8766 then
8767 gcc_cv_prog_LN_S=ln
8768 else
8769 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8770 then
8771 gcc_cv_prog_LN_S="cp -p"
8772 else
8773 gcc_cv_prog_LN_S=cp
8774 fi
8775 fi
8776 fi
8777 rm -f conftestdata_f conftestdata_t
8778
8779 fi
8780 LN_S="$gcc_cv_prog_LN_S"
8781 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8782 echo "$as_me:$LINENO: result: yes" >&5
8783 echo "${ECHO_T}yes" >&6
8784 else
8785 if test "$gcc_cv_prog_LN_S" = "ln"; then
8786 echo "$as_me:$LINENO: result: no, using ln" >&5
8787 echo "${ECHO_T}no, using ln" >&6
8788 else
8789 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8790 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8791 fi
8792 fi
8793
8794 echo "$as_me:$LINENO: checking whether ln works" >&5
8795 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8796 if test "${acx_cv_prog_LN+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799 rm -f conftestdata_t
8800 echo >conftestdata_f
8801 if ln conftestdata_f conftestdata_t 2>/dev/null
8802 then
8803 acx_cv_prog_LN=ln
8804 else
8805 acx_cv_prog_LN=no
8806 fi
8807 rm -f conftestdata_f conftestdata_t
8808
8809 fi
8810 if test $acx_cv_prog_LN = no; then
8811 LN="$LN_S"
8812 echo "$as_me:$LINENO: result: no, using $LN" >&5
8813 echo "${ECHO_T}no, using $LN" >&6
8814 else
8815 LN="$acx_cv_prog_LN"
8816 echo "$as_me:$LINENO: result: yes" >&5
8817 echo "${ECHO_T}yes" >&6
8818 fi
8819
8820 if test -n "$ac_tool_prefix"; then
8821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8823 echo "$as_me:$LINENO: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8825 if test "${ac_cv_prog_RANLIB+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 else
8828 if test -n "$RANLIB"; then
8829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842 done
8843 done
8844
8845 fi
8846 fi
8847 RANLIB=$ac_cv_prog_RANLIB
8848 if test -n "$RANLIB"; then
8849 echo "$as_me:$LINENO: result: $RANLIB" >&5
8850 echo "${ECHO_T}$RANLIB" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6
8854 fi
8855
8856 fi
8857 if test -z "$ac_cv_prog_RANLIB"; then
8858 ac_ct_RANLIB=$RANLIB
8859 # Extract the first word of "ranlib", so it can be a program name with args.
8860 set dummy ranlib; ac_word=$2
8861 echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 if test -n "$ac_ct_RANLIB"; then
8867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8871 do
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_ac_ct_RANLIB="ranlib"
8877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8879 fi
8880 done
8881 done
8882
8883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8884 fi
8885 fi
8886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8887 if test -n "$ac_ct_RANLIB"; then
8888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8889 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6
8893 fi
8894
8895 RANLIB=$ac_ct_RANLIB
8896 else
8897 RANLIB="$ac_cv_prog_RANLIB"
8898 fi
8899
8900 case "${host}" in
8901 *-*-darwin*)
8902 # By default, the Darwin ranlib will not treat common symbols as
8903 # definitions when building the archive table of contents. Other
8904 # ranlibs do that; pass an option to the Darwin ranlib that makes
8905 # it behave similarly.
8906 ranlib_flags="-c"
8907 ;;
8908 *)
8909 ranlib_flags=""
8910 esac
8911
8912
8913 # Find a good install program. We prefer a C program (faster),
8914 # so one script is as good as another. But avoid the broken or
8915 # incompatible versions:
8916 # SysV /etc/install, /usr/sbin/install
8917 # SunOS /usr/etc/install
8918 # IRIX /sbin/install
8919 # AIX /bin/install
8920 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8921 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8922 # ./install, which can be erroneously created by make from ./install.sh.
8923 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8924 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8925 if test -z "$INSTALL"; then
8926 if test "${ac_cv_path_install+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8930 for ac_dir in $PATH; do
8931 # Account for people who put trailing slashes in PATH elements.
8932 case "$ac_dir/" in
8933 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8934 *)
8935 # OSF1 and SCO ODT 3.0 have their own names for install.
8936 for ac_prog in ginstall scoinst install; do
8937 if test -f $ac_dir/$ac_prog; then
8938 if test $ac_prog = install &&
8939 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8940 # AIX install. It has an incompatible calling convention.
8941 # OSF/1 installbsd also uses dspmsg, but is usable.
8942 :
8943 else
8944 ac_cv_path_install="$ac_dir/$ac_prog -c"
8945 break 2
8946 fi
8947 fi
8948 done
8949 ;;
8950 esac
8951 done
8952 IFS="$ac_save_IFS"
8953
8954 fi
8955 if test "${ac_cv_path_install+set}" = set; then
8956 INSTALL="$ac_cv_path_install"
8957 else
8958 # As a last resort, use the slow shell script. We don't cache a
8959 # path for INSTALL within a source directory, because that will
8960 # break other packages using the cache if that directory is
8961 # removed, or if the path is relative.
8962 INSTALL="$ac_install_sh"
8963 fi
8964 fi
8965 echo "$as_me:$LINENO: result: $INSTALL" >&5
8966 echo "${ECHO_T}$INSTALL" >&6
8967
8968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8969 # It thinks the first close brace ends the variable substitution.
8970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8971
8972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8973
8974
8975 # See if cmp has --ignore-initial.
8976 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8977 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8978 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 echo abfoo >t1
8982 echo cdfoo >t2
8983 gcc_cv_prog_cmp_skip=slowcompare
8984 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8985 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8986 :
8987 else
8988 gcc_cv_prog_cmp_skip=gnucompare
8989 fi
8990 fi
8991 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8992 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8993 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8994 :
8995 else
8996 gcc_cv_prog_cmp_skip=fastcompare
8997 fi
8998 fi
8999 fi
9000 rm t1 t2
9001
9002 fi
9003 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
9004 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
9005 make_compare_target=$gcc_cv_prog_cmp_skip
9006
9007
9008
9009 # See if we have the mktemp command.
9010 # Extract the first word of "mktemp", so it can be a program name with args.
9011 set dummy mktemp; ac_word=$2
9012 echo "$as_me:$LINENO: checking for $ac_word" >&5
9013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9014 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 else
9017 if test -n "$have_mktemp_command"; then
9018 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_have_mktemp_command="yes"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031 done
9032 done
9033
9034 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
9035 fi
9036 fi
9037 have_mktemp_command=$ac_cv_prog_have_mktemp_command
9038 if test -n "$have_mktemp_command"; then
9039 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
9040 echo "${ECHO_T}$have_mktemp_command" >&6
9041 else
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044 fi
9045
9046
9047 # See if makeinfo has been installed and is modern enough
9048 # that we can use it.
9049
9050 # Extract the first word of "makeinfo", so it can be a program name with args.
9051 set dummy makeinfo; ac_word=$2
9052 echo "$as_me:$LINENO: checking for $ac_word" >&5
9053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057 if test -n "$MAKEINFO"; then
9058 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9059 else
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in $PATH
9062 do
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9067 ac_cv_prog_MAKEINFO="makeinfo"
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9070 fi
9071 done
9072 done
9073
9074 fi
9075 fi
9076 MAKEINFO=$ac_cv_prog_MAKEINFO
9077 if test -n "$MAKEINFO"; then
9078 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
9079 echo "${ECHO_T}$MAKEINFO" >&6
9080 else
9081 echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6
9083 fi
9084
9085 if test -n "$MAKEINFO"; then
9086 # Found it, now check the version.
9087 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
9088 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
9089 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 else
9092 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
9093 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
9094
9095 case $ac_prog_version in
9096 '') gcc_cv_prog_makeinfo_modern=no;;
9097 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
9098 *) gcc_cv_prog_makeinfo_modern=no;;
9099 esac
9100
9101 fi
9102 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
9103 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
9104 else
9105 gcc_cv_prog_makeinfo_modern=no
9106 fi
9107 if test $gcc_cv_prog_makeinfo_modern = no; then
9108 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
9109 fi
9110
9111 if test $gcc_cv_prog_makeinfo_modern = no; then
9112 { echo "$as_me:$LINENO: WARNING:
9113 *** Makeinfo is missing or too old.
9114 *** Info documentation will not be built." >&5
9115 echo "$as_me: WARNING:
9116 *** Makeinfo is missing or too old.
9117 *** Info documentation will not be built." >&2;}
9118 BUILD_INFO=
9119 else
9120 BUILD_INFO=info
9121 fi
9122
9123
9124 # Is pod2man recent enough to regenerate manpages?
9125 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
9126 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
9127 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6
9130 GENERATED_MANPAGES=generated-manpages
9131 else
9132 echo "$as_me:$LINENO: result: no" >&5
9133 echo "${ECHO_T}no" >&6
9134 GENERATED_MANPAGES=
9135 fi
9136
9137
9138 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
9139
9140 # How about lex?
9141 for ac_prog in flex
9142 do
9143 # Extract the first word of "$ac_prog", so it can be a program name with args.
9144 set dummy $ac_prog; ac_word=$2
9145 echo "$as_me:$LINENO: checking for $ac_word" >&5
9146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9147 if test "${ac_cv_prog_FLEX+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 if test -n "$FLEX"; then
9151 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9155 do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9160 ac_cv_prog_FLEX="$ac_prog"
9161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9163 fi
9164 done
9165 done
9166
9167 fi
9168 fi
9169 FLEX=$ac_cv_prog_FLEX
9170 if test -n "$FLEX"; then
9171 echo "$as_me:$LINENO: result: $FLEX" >&5
9172 echo "${ECHO_T}$FLEX" >&6
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175 echo "${ECHO_T}no" >&6
9176 fi
9177
9178 test -n "$FLEX" && break
9179 done
9180 test -n "$FLEX" || FLEX="$MISSING flex"
9181
9182
9183 # Bison?
9184 for ac_prog in bison
9185 do
9186 # Extract the first word of "$ac_prog", so it can be a program name with args.
9187 set dummy $ac_prog; ac_word=$2
9188 echo "$as_me:$LINENO: checking for $ac_word" >&5
9189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190 if test "${ac_cv_prog_BISON+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193 if test -n "$BISON"; then
9194 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9195 else
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_BISON="$ac_prog"
9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207 done
9208 done
9209
9210 fi
9211 fi
9212 BISON=$ac_cv_prog_BISON
9213 if test -n "$BISON"; then
9214 echo "$as_me:$LINENO: result: $BISON" >&5
9215 echo "${ECHO_T}$BISON" >&6
9216 else
9217 echo "$as_me:$LINENO: result: no" >&5
9218 echo "${ECHO_T}no" >&6
9219 fi
9220
9221 test -n "$BISON" && break
9222 done
9223 test -n "$BISON" || BISON="$MISSING bison"
9224
9225
9226 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
9227 # check for build == host before using them.
9228
9229 # NM
9230 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
9231 && test -d ../binutils ; then
9232 NM='$(objdir)/../binutils/nm-new'
9233 else
9234 # Extract the first word of "nm", so it can be a program name with args.
9235 set dummy nm; ac_word=$2
9236 echo "$as_me:$LINENO: checking for $ac_word" >&5
9237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9238 if test "${ac_cv_prog_NM+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 if test -n "$NM"; then
9242 ac_cv_prog_NM="$NM" # Let the user override the test.
9243 else
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9246 do
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251 ac_cv_prog_NM="nm"
9252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9254 fi
9255 done
9256 done
9257
9258 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
9259 fi
9260 fi
9261 NM=$ac_cv_prog_NM
9262 if test -n "$NM"; then
9263 echo "$as_me:$LINENO: result: $NM" >&5
9264 echo "${ECHO_T}$NM" >&6
9265 else
9266 echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9268 fi
9269
9270 fi
9271
9272 # AR
9273 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
9274 && test -d ../binutils ; then
9275 AR='$(objdir)/../binutils/ar'
9276 else
9277 # Extract the first word of "ar", so it can be a program name with args.
9278 set dummy ar; ac_word=$2
9279 echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9281 if test "${ac_cv_prog_AR+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 if test -n "$AR"; then
9285 ac_cv_prog_AR="$AR" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9289 do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_AR="ar"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9297 fi
9298 done
9299 done
9300
9301 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
9302 fi
9303 fi
9304 AR=$ac_cv_prog_AR
9305 if test -n "$AR"; then
9306 echo "$as_me:$LINENO: result: $AR" >&5
9307 echo "${ECHO_T}$AR" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310 echo "${ECHO_T}no" >&6
9311 fi
9312
9313 fi
9314
9315
9316 # --------------------
9317 # Checks for C headers
9318 # --------------------
9319
9320 # Need to reject headers which give warnings, so that the -Werror bootstrap
9321 # works later. *sigh* This needs to come before all header checks.
9322
9323 ac_c_preproc_warn_flag=yes
9324
9325 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9327 if test "${ac_cv_header_stdc+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 #include <stdlib.h>
9337 #include <stdarg.h>
9338 #include <string.h>
9339 #include <float.h>
9340
9341 int
9342 main ()
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest.$ac_objext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_header_stdc=yes
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 ac_cv_header_stdc=no
9377 fi
9378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9379
9380 if test $ac_cv_header_stdc = yes; then
9381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9382 cat >conftest.$ac_ext <<_ACEOF
9383 /* confdefs.h. */
9384 _ACEOF
9385 cat confdefs.h >>conftest.$ac_ext
9386 cat >>conftest.$ac_ext <<_ACEOF
9387 /* end confdefs.h. */
9388 #include <string.h>
9389
9390 _ACEOF
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "memchr" >/dev/null 2>&1; then
9393 :
9394 else
9395 ac_cv_header_stdc=no
9396 fi
9397 rm -f conftest*
9398
9399 fi
9400
9401 if test $ac_cv_header_stdc = yes; then
9402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 #include <stdlib.h>
9410
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 $EGREP "free" >/dev/null 2>&1; then
9414 :
9415 else
9416 ac_cv_header_stdc=no
9417 fi
9418 rm -f conftest*
9419
9420 fi
9421
9422 if test $ac_cv_header_stdc = yes; then
9423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9424 if test "$cross_compiling" = yes; then
9425 :
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 #include <ctype.h>
9434 #if ((' ' & 0x0FF) == 0x020)
9435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9437 #else
9438 # define ISLOWER(c) \
9439 (('a' <= (c) && (c) <= 'i') \
9440 || ('j' <= (c) && (c) <= 'r') \
9441 || ('s' <= (c) && (c) <= 'z'))
9442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9443 #endif
9444
9445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9446 int
9447 main ()
9448 {
9449 int i;
9450 for (i = 0; i < 256; i++)
9451 if (XOR (islower (i), ISLOWER (i))
9452 || toupper (i) != TOUPPER (i))
9453 exit(2);
9454 exit (0);
9455 }
9456 _ACEOF
9457 rm -f conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 :
9469 else
9470 echo "$as_me: program exited with status $ac_status" >&5
9471 echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ( exit $ac_status )
9475 ac_cv_header_stdc=no
9476 fi
9477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 fi
9480 fi
9481 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9482 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9483 if test $ac_cv_header_stdc = yes; then
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define STDC_HEADERS 1
9487 _ACEOF
9488
9489 fi
9490
9491 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9492 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9493 if test "${ac_cv_header_time+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 #include <sys/types.h>
9503 #include <sys/time.h>
9504 #include <time.h>
9505
9506 int
9507 main ()
9508 {
9509 if ((struct tm *) 0)
9510 return 0;
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } &&
9524 { ac_try='test -z "$ac_c_werror_flag"
9525 || test ! -s conftest.err'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; } &&
9531 { ac_try='test -s conftest.$ac_objext'
9532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 (eval $ac_try) 2>&5
9534 ac_status=$?
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); }; }; then
9537 ac_cv_header_time=yes
9538 else
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542 ac_cv_header_time=no
9543 fi
9544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9545 fi
9546 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9547 echo "${ECHO_T}$ac_cv_header_time" >&6
9548 if test $ac_cv_header_time = yes; then
9549
9550 cat >>confdefs.h <<\_ACEOF
9551 #define TIME_WITH_SYS_TIME 1
9552 _ACEOF
9553
9554 fi
9555
9556 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9557 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9558 if test "${gcc_cv_header_string+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 else
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 #include <string.h>
9568 #include <strings.h>
9569 int
9570 main ()
9571 {
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579 (eval $ac_compile) 2>conftest.er1
9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -z "$ac_c_werror_flag"
9587 || test ! -s conftest.err'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; } &&
9593 { ac_try='test -s conftest.$ac_objext'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; }; then
9599 gcc_cv_header_string=yes
9600 else
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 gcc_cv_header_string=no
9605 fi
9606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9607 fi
9608 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9609 echo "${ECHO_T}$gcc_cv_header_string" >&6
9610 if test $gcc_cv_header_string = yes; then
9611
9612 cat >>confdefs.h <<\_ACEOF
9613 #define STRING_WITH_STRINGS 1
9614 _ACEOF
9615
9616 fi
9617
9618 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9619 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9620 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 cat >conftest.$ac_ext <<_ACEOF
9624 /* confdefs.h. */
9625 _ACEOF
9626 cat confdefs.h >>conftest.$ac_ext
9627 cat >>conftest.$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 #include <sys/types.h>
9630 #include <sys/wait.h>
9631 #ifndef WEXITSTATUS
9632 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9633 #endif
9634 #ifndef WIFEXITED
9635 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9636 #endif
9637
9638 int
9639 main ()
9640 {
9641 int s;
9642 wait (&s);
9643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest.$ac_objext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_header_sys_wait_h=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_header_sys_wait_h=no
9676 fi
9677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9678 fi
9679 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9680 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9681 if test $ac_cv_header_sys_wait_h = yes; then
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define HAVE_SYS_WAIT_H 1
9685 _ACEOF
9686
9687 fi
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9712 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9713 sys/resource.h sys/param.h sys/times.h sys/stat.h \
9714 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9715 do
9716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9717 echo "$as_me:$LINENO: checking for $ac_header" >&5
9718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h. */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h. */
9728 #include <$ac_header>
9729 _ACEOF
9730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev/null; then
9738 if test -s conftest.err; then
9739 ac_cpp_err=$ac_c_preproc_warn_flag
9740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9741 else
9742 ac_cpp_err=
9743 fi
9744 else
9745 ac_cpp_err=yes
9746 fi
9747 if test -z "$ac_cpp_err"; then
9748 eval "$as_ac_Header=yes"
9749 else
9750 echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753 eval "$as_ac_Header=no"
9754 fi
9755 rm -f conftest.err conftest.$ac_ext
9756 fi
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9760 cat >>confdefs.h <<_ACEOF
9761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9762 _ACEOF
9763
9764 fi
9765 done
9766
9767
9768 # Check for thread headers.
9769 echo "$as_me:$LINENO: checking for thread.h" >&5
9770 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9771 if test "${ac_cv_header_thread_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 #include <thread.h>
9781 _ACEOF
9782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } >/dev/null; then
9790 if test -s conftest.err; then
9791 ac_cpp_err=$ac_c_preproc_warn_flag
9792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9793 else
9794 ac_cpp_err=
9795 fi
9796 else
9797 ac_cpp_err=yes
9798 fi
9799 if test -z "$ac_cpp_err"; then
9800 ac_cv_header_thread_h=yes
9801 else
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805 ac_cv_header_thread_h=no
9806 fi
9807 rm -f conftest.err conftest.$ac_ext
9808 fi
9809 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9810 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9811 if test $ac_cv_header_thread_h = yes; then
9812 have_thread_h=yes
9813 else
9814 have_thread_h=
9815 fi
9816
9817 echo "$as_me:$LINENO: checking for pthread.h" >&5
9818 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9819 if test "${ac_cv_header_pthread_h+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h. */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 #include <pthread.h>
9829 _ACEOF
9830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } >/dev/null; then
9838 if test -s conftest.err; then
9839 ac_cpp_err=$ac_c_preproc_warn_flag
9840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9841 else
9842 ac_cpp_err=
9843 fi
9844 else
9845 ac_cpp_err=yes
9846 fi
9847 if test -z "$ac_cpp_err"; then
9848 ac_cv_header_pthread_h=yes
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_cv_header_pthread_h=no
9854 fi
9855 rm -f conftest.err conftest.$ac_ext
9856 fi
9857 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9858 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9859 if test $ac_cv_header_pthread_h = yes; then
9860 have_pthread_h=yes
9861 else
9862 have_pthread_h=
9863 fi
9864
9865
9866 # These tests can't be done till we know if we have limits.h.
9867 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9868 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9869 if test "${gcc_cv_decl_char_bit+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #ifdef HAVE_LIMITS_H
9879 #include <limits.h>
9880 #endif
9881 #ifdef CHAR_BIT
9882 found
9883 #endif
9884 _ACEOF
9885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9886 $EGREP "found" >/dev/null 2>&1; then
9887 gcc_cv_decl_char_bit=yes
9888 else
9889 gcc_cv_decl_char_bit=no
9890 fi
9891 rm -f conftest*
9892
9893
9894 fi
9895 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9896 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9897 if test $gcc_cv_decl_char_bit = no; then
9898 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9899 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9900 if test "${gcc_cv_c_nbby+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903 i=8
9904 gcc_cv_c_nbby=
9905 while test $i -lt 65; do
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912
9913 int
9914 main ()
9915 {
9916 switch(0) {
9917 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9918 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9919 ; }
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9926 (eval $ac_compile) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest.$ac_objext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 gcc_cv_c_nbby=$i; break
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951 fi
9952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9953 i=`expr $i + 1`
9954 done
9955 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9956
9957 fi
9958 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9959 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9960 if test $gcc_cv_c_nbby = failed; then
9961 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9962 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9963 { (exit 1); exit 1; }; }
9964 else
9965
9966 cat >>confdefs.h <<_ACEOF
9967 #define CHAR_BIT $gcc_cv_c_nbby
9968 _ACEOF
9969
9970 fi
9971 fi
9972 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9973 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9974 if test "${ac_cv_c_bigendian+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 # See if sys/param.h defines the BYTE_ORDER macro.
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 #include <sys/types.h>
9985 #include <sys/param.h>
9986
9987 int
9988 main ()
9989 {
9990 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9991 bogus endian macros
9992 #endif
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 # It does; now see whether it defined to BIG_ENDIAN or not.
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <sys/types.h>
10028 #include <sys/param.h>
10029
10030 int
10031 main ()
10032 {
10033 #if BYTE_ORDER != BIG_ENDIAN
10034 not big endian
10035 #endif
10036
10037 ;
10038 return 0;
10039 }
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_c_bigendian=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ac_cv_c_bigendian=no
10069 fi
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 else
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 # It does not; compile a test program.
10076 if test "$cross_compiling" = yes; then
10077 # try to guess the endianness by grepping values into an object file
10078 ac_cv_c_bigendian=unknown
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10086 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10087 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10088 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10089 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10090 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10091 int
10092 main ()
10093 {
10094 _ascii (); _ebcdic ();
10095 ;
10096 return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10122 ac_cv_c_bigendian=yes
10123 fi
10124 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10125 if test "$ac_cv_c_bigendian" = unknown; then
10126 ac_cv_c_bigendian=no
10127 else
10128 # finding both strings is unlikely to happen, but who knows?
10129 ac_cv_c_bigendian=unknown
10130 fi
10131 fi
10132 else
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136 fi
10137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10138 else
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 int
10146 main ()
10147 {
10148 /* Are we little or big endian? From Harbison&Steele. */
10149 union
10150 {
10151 long l;
10152 char c[sizeof (long)];
10153 } u;
10154 u.l = 1;
10155 exit (u.c[sizeof (long) - 1] == 1);
10156 }
10157 _ACEOF
10158 rm -f conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>&5
10161 ac_status=$?
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_c_bigendian=no
10170 else
10171 echo "$as_me: program exited with status $ac_status" >&5
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ( exit $ac_status )
10176 ac_cv_c_bigendian=yes
10177 fi
10178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10179 fi
10180 fi
10181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10182 fi
10183 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10184 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10185 case $ac_cv_c_bigendian in
10186 yes)
10187
10188 cat >>confdefs.h <<\_ACEOF
10189 #define WORDS_BIGENDIAN 1
10190 _ACEOF
10191 ;;
10192 no)
10193 ;;
10194 *)
10195 { { echo "$as_me:$LINENO: error: unknown endianness
10196 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10197 echo "$as_me: error: unknown endianness
10198 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10199 { (exit 1); exit 1; }; } ;;
10200 esac
10201
10202
10203 # --------
10204 # UNSORTED
10205 # --------
10206
10207
10208 # These libraries may be used by collect2.
10209 # We may need a special search path to get them linked.
10210 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
10211 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
10212 if test "${gcc_cv_collect2_libs+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215 save_LIBS="$LIBS"
10216 for libs in '' -lld -lmld \
10217 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
10218 '-L/usr/lib/cmplrs/cc3.11 -lmld'
10219 do
10220 LIBS="$libs"
10221 cat >conftest.$ac_ext <<_ACEOF
10222 /* confdefs.h. */
10223 _ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227
10228 /* Override any gcc2 internal prototype to avoid an error. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10234 char ldopen ();
10235 int
10236 main ()
10237 {
10238 ldopen ();
10239 ;
10240 return 0;
10241 }
10242 _ACEOF
10243 rm -f conftest.$ac_objext conftest$ac_exeext
10244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245 (eval $ac_link) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag"
10253 || test ! -s conftest.err'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 gcc_cv_collect2_libs="$libs"; break
10266 else
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 fi
10271 rm -f conftest.err conftest.$ac_objext \
10272 conftest$ac_exeext conftest.$ac_ext
10273 done
10274 LIBS="$save_LIBS"
10275 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
10276 fi
10277 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
10278 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
10279 case $gcc_cv_collect2_libs in
10280 "none required") ;;
10281 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10282 esac
10283
10284
10285 # When building Ada code on Alpha, we need exc_resume which is usually in
10286 # -lexc. So test for it.
10287 save_LIBS="$LIBS"
10288 LIBS=
10289 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
10290 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
10291 if test "${ac_cv_search_exc_resume+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 ac_func_search_save_LIBS=$LIBS
10295 ac_cv_search_exc_resume=no
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h. */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302
10303 /* Override any gcc2 internal prototype to avoid an error. */
10304 #ifdef __cplusplus
10305 extern "C"
10306 #endif
10307 /* We use char because int might match the return type of a gcc2
10308 builtin and then its argument prototype would still apply. */
10309 char exc_resume ();
10310 int
10311 main ()
10312 {
10313 exc_resume ();
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_search_exc_resume="none required"
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 fi
10346 rm -f conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 if test "$ac_cv_search_exc_resume" = no; then
10349 for ac_lib in exc; do
10350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10352 /* confdefs.h. */
10353 _ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357
10358 /* Override any gcc2 internal prototype to avoid an error. */
10359 #ifdef __cplusplus
10360 extern "C"
10361 #endif
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364 char exc_resume ();
10365 int
10366 main ()
10367 {
10368 exc_resume ();
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_search_exc_resume="-l$ac_lib"
10396 break
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 fi
10402 rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 done
10405 fi
10406 LIBS=$ac_func_search_save_LIBS
10407 fi
10408 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
10409 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
10410 if test "$ac_cv_search_exc_resume" != no; then
10411 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
10412
10413 fi
10414
10415 GNAT_LIBEXC="$LIBS"
10416 LIBS="$save_LIBS"
10417
10418
10419 # Some systems put ldexp and frexp in libm instead of libc; assume
10420 # they're both in the same place. jcf-dump needs them.
10421 save_LIBS="$LIBS"
10422 LIBS=
10423 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
10424 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
10425 if test "${ac_cv_search_ldexp+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 ac_func_search_save_LIBS=$LIBS
10429 ac_cv_search_ldexp=no
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436
10437 /* Override any gcc2 internal prototype to avoid an error. */
10438 #ifdef __cplusplus
10439 extern "C"
10440 #endif
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10443 char ldexp ();
10444 int
10445 main ()
10446 {
10447 ldexp ();
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_c_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 ac_cv_search_ldexp="none required"
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 fi
10480 rm -f conftest.err conftest.$ac_objext \
10481 conftest$ac_exeext conftest.$ac_ext
10482 if test "$ac_cv_search_ldexp" = no; then
10483 for ac_lib in m; do
10484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10485 cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h. */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491
10492 /* Override any gcc2 internal prototype to avoid an error. */
10493 #ifdef __cplusplus
10494 extern "C"
10495 #endif
10496 /* We use char because int might match the return type of a gcc2
10497 builtin and then its argument prototype would still apply. */
10498 char ldexp ();
10499 int
10500 main ()
10501 {
10502 ldexp ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509 (eval $ac_link) 2>conftest.er1
10510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag"
10517 || test ! -s conftest.err'
10518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; } &&
10523 { ac_try='test -s conftest$ac_exeext'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 ac_cv_search_ldexp="-l$ac_lib"
10530 break
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 fi
10536 rm -f conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 done
10539 fi
10540 LIBS=$ac_func_search_save_LIBS
10541 fi
10542 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
10543 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
10544 if test "$ac_cv_search_ldexp" != no; then
10545 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10546
10547 fi
10548
10549 LDEXP_LIB="$LIBS"
10550 LIBS="$save_LIBS"
10551
10552
10553 # Use <inttypes.h> only if it exists,
10554 # doesn't clash with <sys/types.h>, and declares intmax_t.
10555 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10556 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10557 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566 #include <sys/types.h>
10567 #include <inttypes.h>
10568 int
10569 main ()
10570 {
10571 intmax_t i = -1;
10572 ;
10573 return 0;
10574 }
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578 (eval $ac_compile) 2>conftest.er1
10579 ac_status=$?
10580 grep -v '^ *+' conftest.er1 >conftest.err
10581 rm -f conftest.er1
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag"
10586 || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest.$ac_objext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 gcc_cv_header_inttypes_h=yes
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 gcc_cv_header_inttypes_h=no
10604 fi
10605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10606 fi
10607
10608 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10609 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10610 if test $gcc_cv_header_inttypes_h = yes; then
10611
10612 cat >>confdefs.h <<\_ACEOF
10613 #define HAVE_INTTYPES_H 1
10614 _ACEOF
10615
10616 fi
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10654 sysconf strsignal getrusage nl_langinfo \
10655 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10656 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
10657 do
10658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10659 echo "$as_me:$LINENO: checking for $ac_func" >&5
10660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10661 if eval "test \"\${$as_ac_var+set}\" = set"; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10672 #define $ac_func innocuous_$ac_func
10673
10674 /* System header to define __stub macros and hopefully few prototypes,
10675 which can conflict with char $ac_func (); below.
10676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10677 <limits.h> exists even on freestanding compilers. */
10678
10679 #ifdef __STDC__
10680 # include <limits.h>
10681 #else
10682 # include <assert.h>
10683 #endif
10684
10685 #undef $ac_func
10686
10687 /* Override any gcc2 internal prototype to avoid an error. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 {
10691 #endif
10692 /* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10694 char $ac_func ();
10695 /* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10699 choke me
10700 #else
10701 char (*f) () = $ac_func;
10702 #endif
10703 #ifdef __cplusplus
10704 }
10705 #endif
10706
10707 int
10708 main ()
10709 {
10710 return f != $ac_func;
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10717 (eval $ac_link) 2>conftest.er1
10718 ac_status=$?
10719 grep -v '^ *+' conftest.er1 >conftest.err
10720 rm -f conftest.er1
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -z "$ac_c_werror_flag"
10725 || test ! -s conftest.err'
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 eval "$as_ac_var=yes"
10738 else
10739 echo "$as_me: failed program was:" >&5
10740 sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 eval "$as_ac_var=no"
10743 fi
10744 rm -f conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 fi
10747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10752 _ACEOF
10753
10754 fi
10755 done
10756
10757
10758 if test x$ac_cv_func_mbstowcs = xyes; then
10759 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10760 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10761 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764 if test "$cross_compiling" = yes; then
10765 gcc_cv_func_mbstowcs_works=yes
10766 else
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 #include <stdlib.h>
10774 int main()
10775 {
10776 mbstowcs(0, "", 0);
10777 return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 gcc_cv_func_mbstowcs_works=yes
10792 else
10793 echo "$as_me: program exited with status $ac_status" >&5
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 ( exit $ac_status )
10798 gcc_cv_func_mbstowcs_works=no
10799 fi
10800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10801 fi
10802 fi
10803 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10804 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10805 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10806
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_WORKING_MBSTOWCS 1
10809 _ACEOF
10810
10811 fi
10812 fi
10813
10814 echo "$as_me:$LINENO: checking for ssize_t" >&5
10815 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10816 if test "${ac_cv_type_ssize_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 $ac_includes_default
10826 int
10827 main ()
10828 {
10829 if ((ssize_t *) 0)
10830 return 0;
10831 if (sizeof (ssize_t))
10832 return 0;
10833 ;
10834 return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10839 (eval $ac_compile) 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } &&
10846 { ac_try='test -z "$ac_c_werror_flag"
10847 || test ! -s conftest.err'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest.$ac_objext'
10854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855 (eval $ac_try) 2>&5
10856 ac_status=$?
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); }; }; then
10859 ac_cv_type_ssize_t=yes
10860 else
10861 echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864 ac_cv_type_ssize_t=no
10865 fi
10866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10867 fi
10868 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10869 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10870 if test $ac_cv_type_ssize_t = yes; then
10871 :
10872 else
10873
10874 cat >>confdefs.h <<_ACEOF
10875 #define ssize_t int
10876 _ACEOF
10877
10878 fi
10879
10880 echo "$as_me:$LINENO: checking for caddr_t" >&5
10881 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10882 if test "${ac_cv_type_caddr_t+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10892 int
10893 main ()
10894 {
10895 if ((caddr_t *) 0)
10896 return 0;
10897 if (sizeof (caddr_t))
10898 return 0;
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 rm -f conftest.$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest.$ac_objext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10922 ac_status=$?
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_type_caddr_t=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ac_cv_type_caddr_t=no
10931 fi
10932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10933 fi
10934 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10935 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10936 if test $ac_cv_type_caddr_t = yes; then
10937 :
10938 else
10939
10940 cat >>confdefs.h <<_ACEOF
10941 #define caddr_t char *
10942 _ACEOF
10943
10944 fi
10945
10946
10947
10948 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10949 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10950 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953 cat >conftest.$ac_ext <<_ACEOF
10954 /* confdefs.h. */
10955 _ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 #include <sys/mman.h>
10960 _ACEOF
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } >/dev/null; then
10969 if test -s conftest.err; then
10970 ac_cpp_err=$ac_c_preproc_warn_flag
10971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10972 else
10973 ac_cpp_err=
10974 fi
10975 else
10976 ac_cpp_err=yes
10977 fi
10978 if test -z "$ac_cpp_err"; then
10979 ac_cv_header_sys_mman_h=yes
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984 ac_cv_header_sys_mman_h=no
10985 fi
10986 rm -f conftest.err conftest.$ac_ext
10987 fi
10988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10989 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10990 if test $ac_cv_header_sys_mman_h = yes; then
10991 gcc_header_sys_mman_h=yes
10992 else
10993 gcc_header_sys_mman_h=no
10994 fi
10995
10996 echo "$as_me:$LINENO: checking for mmap" >&5
10997 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10998 if test "${ac_cv_func_mmap+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h. */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
11008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11009 #define mmap innocuous_mmap
11010
11011 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char mmap (); below.
11013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11014 <limits.h> exists even on freestanding compilers. */
11015
11016 #ifdef __STDC__
11017 # include <limits.h>
11018 #else
11019 # include <assert.h>
11020 #endif
11021
11022 #undef mmap
11023
11024 /* Override any gcc2 internal prototype to avoid an error. */
11025 #ifdef __cplusplus
11026 extern "C"
11027 {
11028 #endif
11029 /* We use char because int might match the return type of a gcc2
11030 builtin and then its argument prototype would still apply. */
11031 char mmap ();
11032 /* The GNU C library defines this for functions which it implements
11033 to always fail with ENOSYS. Some functions are actually named
11034 something starting with __ and the normal name is an alias. */
11035 #if defined (__stub_mmap) || defined (__stub___mmap)
11036 choke me
11037 #else
11038 char (*f) () = mmap;
11039 #endif
11040 #ifdef __cplusplus
11041 }
11042 #endif
11043
11044 int
11045 main ()
11046 {
11047 return f != mmap;
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11055 ac_status=$?
11056 grep -v '^ *+' conftest.er1 >conftest.err
11057 rm -f conftest.er1
11058 cat conftest.err >&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_func_mmap=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 ac_cv_func_mmap=no
11080 fi
11081 rm -f conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
11085 echo "${ECHO_T}$ac_cv_func_mmap" >&6
11086 if test $ac_cv_func_mmap = yes; then
11087 gcc_func_mmap=yes
11088 else
11089 gcc_func_mmap=no
11090 fi
11091
11092 if test "$gcc_header_sys_mman_h" != yes \
11093 || test "$gcc_func_mmap" != yes; then
11094 gcc_cv_func_mmap_file=no
11095 gcc_cv_func_mmap_dev_zero=no
11096 gcc_cv_func_mmap_anon=no
11097 else
11098 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
11099 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
11100 if test "${gcc_cv_func_mmap_file+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 else
11103 # Add a system to this blacklist if
11104 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11105 # memory area containing the same data that you'd get if you applied
11106 # read() to the same fd. The only system known to have a problem here
11107 # is VMS, where text files have record structure.
11108 case "$host_os" in
11109 vms* | ultrix*)
11110 gcc_cv_func_mmap_file=no ;;
11111 *)
11112 gcc_cv_func_mmap_file=yes;;
11113 esac
11114 fi
11115 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
11116 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
11117 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
11118 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
11119 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 # Add a system to this blacklist if it has mmap() but /dev/zero
11123 # does not exist, or if mmapping /dev/zero does not give anonymous
11124 # zeroed pages with both the following properties:
11125 # 1. If you map N consecutive pages in with one call, and then
11126 # unmap any subset of those pages, the pages that were not
11127 # explicitly unmapped remain accessible.
11128 # 2. If you map two adjacent blocks of memory and then unmap them
11129 # both at once, they must both go away.
11130 # Systems known to be in this category are Windows (all variants),
11131 # VMS, and Darwin.
11132 case "$host_os" in
11133 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11134 gcc_cv_func_mmap_dev_zero=no ;;
11135 *)
11136 gcc_cv_func_mmap_dev_zero=yes;;
11137 esac
11138 fi
11139 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
11140 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
11141
11142 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11143 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
11144 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
11145 if test "${gcc_cv_decl_map_anon+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 else
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 #include <sys/types.h>
11155 #include <sys/mman.h>
11156 #include <unistd.h>
11157
11158 #ifndef MAP_ANONYMOUS
11159 #define MAP_ANONYMOUS MAP_ANON
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165 int n = MAP_ANONYMOUS;
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 gcc_cv_decl_map_anon=yes
11193 else
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 gcc_cv_decl_map_anon=no
11198 fi
11199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200 fi
11201 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
11202 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
11203
11204 if test $gcc_cv_decl_map_anon = no; then
11205 gcc_cv_func_mmap_anon=no
11206 else
11207 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11208 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
11209 if test "${gcc_cv_func_mmap_anon+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11213 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11214 # doesn't give anonymous zeroed pages with the same properties listed
11215 # above for use of /dev/zero.
11216 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11217 case "$host_os" in
11218 vms* | cygwin* | pe | mingw* | sco* | udk* )
11219 gcc_cv_func_mmap_anon=no ;;
11220 *)
11221 gcc_cv_func_mmap_anon=yes;;
11222 esac
11223 fi
11224 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
11225 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
11226 fi
11227 fi
11228
11229 if test $gcc_cv_func_mmap_file = yes; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_MMAP_FILE 1
11233 _ACEOF
11234
11235 fi
11236 if test $gcc_cv_func_mmap_dev_zero = yes; then
11237
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_MMAP_DEV_ZERO 1
11240 _ACEOF
11241
11242 fi
11243 if test $gcc_cv_func_mmap_anon = yes; then
11244
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_MMAP_ANON 1
11247 _ACEOF
11248
11249 fi
11250
11251
11252 case "${host}" in
11253 *-*-*vms*)
11254 # Under VMS, vfork works very differently than on Unix. The standard test
11255 # won't work, and it isn't easily adaptable. It makes more sense to
11256 # just force it.
11257 ac_cv_func_vfork_works=yes
11258 ;;
11259 esac
11260 echo "$as_me:$LINENO: checking for pid_t" >&5
11261 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11262 if test "${ac_cv_type_pid_t+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h. */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 $ac_includes_default
11272 int
11273 main ()
11274 {
11275 if ((pid_t *) 0)
11276 return 0;
11277 if (sizeof (pid_t))
11278 return 0;
11279 ;
11280 return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285 (eval $ac_compile) 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_c_werror_flag"
11293 || test ! -s conftest.err'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; } &&
11299 { ac_try='test -s conftest.$ac_objext'
11300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301 (eval $ac_try) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_cv_type_pid_t=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310 ac_cv_type_pid_t=no
11311 fi
11312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11313 fi
11314 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11315 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11316 if test $ac_cv_type_pid_t = yes; then
11317 :
11318 else
11319
11320 cat >>confdefs.h <<_ACEOF
11321 #define pid_t int
11322 _ACEOF
11323
11324 fi
11325
11326
11327
11328 for ac_header in unistd.h vfork.h
11329 do
11330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11331 echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11343 _ACEOF
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 else
11356 ac_cpp_err=
11357 fi
11358 else
11359 ac_cpp_err=yes
11360 fi
11361 if test -z "$ac_cpp_err"; then
11362 eval "$as_ac_Header=yes"
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 eval "$as_ac_Header=no"
11368 fi
11369 rm -f conftest.err conftest.$ac_ext
11370 fi
11371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11374 cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11376 _ACEOF
11377
11378 fi
11379 done
11380
11381
11382
11383 for ac_func in fork vfork
11384 do
11385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 echo "$as_me:$LINENO: checking for $ac_func" >&5
11387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_var+set}\" = set"; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391 cat >conftest.$ac_ext <<_ACEOF
11392 /* confdefs.h. */
11393 _ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11399 #define $ac_func innocuous_$ac_func
11400
11401 /* System header to define __stub macros and hopefully few prototypes,
11402 which can conflict with char $ac_func (); below.
11403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11404 <limits.h> exists even on freestanding compilers. */
11405
11406 #ifdef __STDC__
11407 # include <limits.h>
11408 #else
11409 # include <assert.h>
11410 #endif
11411
11412 #undef $ac_func
11413
11414 /* Override any gcc2 internal prototype to avoid an error. */
11415 #ifdef __cplusplus
11416 extern "C"
11417 {
11418 #endif
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11421 char $ac_func ();
11422 /* The GNU C library defines this for functions which it implements
11423 to always fail with ENOSYS. Some functions are actually named
11424 something starting with __ and the normal name is an alias. */
11425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11426 choke me
11427 #else
11428 char (*f) () = $ac_func;
11429 #endif
11430 #ifdef __cplusplus
11431 }
11432 #endif
11433
11434 int
11435 main ()
11436 {
11437 return f != $ac_func;
11438 ;
11439 return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -z "$ac_c_werror_flag"
11452 || test ! -s conftest.err'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11464 eval "$as_ac_var=yes"
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469 eval "$as_ac_var=no"
11470 fi
11471 rm -f conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 fi
11474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11479 _ACEOF
11480
11481 fi
11482 done
11483
11484 if test "x$ac_cv_func_fork" = xyes; then
11485 echo "$as_me:$LINENO: checking for working fork" >&5
11486 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11487 if test "${ac_cv_func_fork_works+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 else
11490 if test "$cross_compiling" = yes; then
11491 ac_cv_func_fork_works=cross
11492 else
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* By Ruediger Kuhlmann. */
11495 #include <sys/types.h>
11496 #if HAVE_UNISTD_H
11497 # include <unistd.h>
11498 #endif
11499 /* Some systems only have a dummy stub for fork() */
11500 int main ()
11501 {
11502 if (fork() < 0)
11503 exit (1);
11504 exit (0);
11505 }
11506 _ACEOF
11507 rm -f conftest$ac_exeext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11509 (eval $ac_link) 2>&5
11510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_func_fork_works=yes
11519 else
11520 echo "$as_me: program exited with status $ac_status" >&5
11521 echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 ( exit $ac_status )
11525 ac_cv_func_fork_works=no
11526 fi
11527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11528 fi
11529 fi
11530 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11531 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11532
11533 else
11534 ac_cv_func_fork_works=$ac_cv_func_fork
11535 fi
11536 if test "x$ac_cv_func_fork_works" = xcross; then
11537 case $host in
11538 *-*-amigaos* | *-*-msdosdjgpp*)
11539 # Override, as these systems have only a dummy fork() stub
11540 ac_cv_func_fork_works=no
11541 ;;
11542 *)
11543 ac_cv_func_fork_works=yes
11544 ;;
11545 esac
11546 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11547 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11548 fi
11549 ac_cv_func_vfork_works=$ac_cv_func_vfork
11550 if test "x$ac_cv_func_vfork" = xyes; then
11551 echo "$as_me:$LINENO: checking for working vfork" >&5
11552 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11553 if test "${ac_cv_func_vfork_works+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556 if test "$cross_compiling" = yes; then
11557 ac_cv_func_vfork_works=cross
11558 else
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h. */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 /* Thanks to Paul Eggert for this test. */
11566 #include <stdio.h>
11567 #include <stdlib.h>
11568 #include <sys/types.h>
11569 #include <sys/stat.h>
11570 #include <sys/wait.h>
11571 #if HAVE_UNISTD_H
11572 # include <unistd.h>
11573 #endif
11574 #if HAVE_VFORK_H
11575 # include <vfork.h>
11576 #endif
11577 /* On some sparc systems, changes by the child to local and incoming
11578 argument registers are propagated back to the parent. The compiler
11579 is told about this with #include <vfork.h>, but some compilers
11580 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11581 static variable whose address is put into a register that is
11582 clobbered by the vfork. */
11583 static void
11584 #ifdef __cplusplus
11585 sparc_address_test (int arg)
11586 # else
11587 sparc_address_test (arg) int arg;
11588 #endif
11589 {
11590 static pid_t child;
11591 if (!child) {
11592 child = vfork ();
11593 if (child < 0) {
11594 perror ("vfork");
11595 _exit(2);
11596 }
11597 if (!child) {
11598 arg = getpid();
11599 write(-1, "", 0);
11600 _exit (arg);
11601 }
11602 }
11603 }
11604
11605 int
11606 main ()
11607 {
11608 pid_t parent = getpid ();
11609 pid_t child;
11610
11611 sparc_address_test (0);
11612
11613 child = vfork ();
11614
11615 if (child == 0) {
11616 /* Here is another test for sparc vfork register problems. This
11617 test uses lots of local variables, at least as many local
11618 variables as main has allocated so far including compiler
11619 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11620 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11621 reuse the register of parent for one of the local variables,
11622 since it will think that parent can't possibly be used any more
11623 in this routine. Assigning to the local variable will thus
11624 munge parent in the parent process. */
11625 pid_t
11626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11628 /* Convince the compiler that p..p7 are live; otherwise, it might
11629 use the same hardware register for all 8 local variables. */
11630 if (p != p1 || p != p2 || p != p3 || p != p4
11631 || p != p5 || p != p6 || p != p7)
11632 _exit(1);
11633
11634 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11635 from child file descriptors. If the child closes a descriptor
11636 before it execs or exits, this munges the parent's descriptor
11637 as well. Test for this by closing stdout in the child. */
11638 _exit(close(fileno(stdout)) != 0);
11639 } else {
11640 int status;
11641 struct stat st;
11642
11643 while (wait(&status) != child)
11644 ;
11645 exit(
11646 /* Was there some problem with vforking? */
11647 child < 0
11648
11649 /* Did the child fail? (This shouldn't happen.) */
11650 || status
11651
11652 /* Did the vfork/compiler bug occur? */
11653 || parent != getpid()
11654
11655 /* Did the file descriptor bug occur? */
11656 || fstat(fileno(stdout), &st) != 0
11657 );
11658 }
11659 }
11660 _ACEOF
11661 rm -f conftest$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_func_vfork_works=yes
11673 else
11674 echo "$as_me: program exited with status $ac_status" >&5
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ( exit $ac_status )
11679 ac_cv_func_vfork_works=no
11680 fi
11681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11682 fi
11683 fi
11684 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11685 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11686
11687 fi;
11688 if test "x$ac_cv_func_fork_works" = xcross; then
11689 ac_cv_func_vfork_works=$ac_cv_func_vfork
11690 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11691 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11692 fi
11693
11694 if test "x$ac_cv_func_vfork_works" = xyes; then
11695
11696 cat >>confdefs.h <<\_ACEOF
11697 #define HAVE_WORKING_VFORK 1
11698 _ACEOF
11699
11700 else
11701
11702 cat >>confdefs.h <<\_ACEOF
11703 #define vfork fork
11704 _ACEOF
11705
11706 fi
11707 if test "x$ac_cv_func_fork_works" = xyes; then
11708
11709 cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_WORKING_FORK 1
11711 _ACEOF
11712
11713 fi
11714
11715
11716
11717 if test "X$prefix" = "XNONE"; then
11718 acl_final_prefix="$ac_default_prefix"
11719 else
11720 acl_final_prefix="$prefix"
11721 fi
11722 if test "X$exec_prefix" = "XNONE"; then
11723 acl_final_exec_prefix='${prefix}'
11724 else
11725 acl_final_exec_prefix="$exec_prefix"
11726 fi
11727 acl_save_prefix="$prefix"
11728 prefix="$acl_final_prefix"
11729 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11730 prefix="$acl_save_prefix"
11731
11732
11733 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11734 if test "${with_gnu_ld+set}" = set; then
11735 withval="$with_gnu_ld"
11736 test "$withval" = no || with_gnu_ld=yes
11737 else
11738 with_gnu_ld=no
11739 fi;
11740 # Prepare PATH_SEPARATOR.
11741 # The user is always right.
11742 if test "${PATH_SEPARATOR+set}" != set; then
11743 echo "#! /bin/sh" >conf$$.sh
11744 echo "exit 0" >>conf$$.sh
11745 chmod +x conf$$.sh
11746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11747 PATH_SEPARATOR=';'
11748 else
11749 PATH_SEPARATOR=:
11750 fi
11751 rm -f conf$$.sh
11752 fi
11753 ac_prog=ld
11754 if test "$GCC" = yes; then
11755 # Check if gcc -print-prog-name=ld gives a path.
11756 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11757 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11758 case $host in
11759 *-*-mingw*)
11760 # gcc leaves a trailing carriage return which upsets mingw
11761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11762 *)
11763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11764 esac
11765 case $ac_prog in
11766 # Accept absolute paths.
11767 [\\/]* | [A-Za-z]:[\\/]*)
11768 re_direlt='/[^/][^/]*/\.\./'
11769 # Canonicalize the path of ld
11770 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11771 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11772 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11773 done
11774 test -z "$LD" && LD="$ac_prog"
11775 ;;
11776 "")
11777 # If it fails, then pretend we aren't using GCC.
11778 ac_prog=ld
11779 ;;
11780 *)
11781 # If it is relative, then search for the first ld in PATH.
11782 with_gnu_ld=unknown
11783 ;;
11784 esac
11785 elif test "$with_gnu_ld" = yes; then
11786 echo "$as_me:$LINENO: checking for GNU ld" >&5
11787 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11788 else
11789 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11790 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11791 fi
11792 if test "${acl_cv_path_LD+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 if test -z "$LD"; then
11796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11797 for ac_dir in $PATH; do
11798 test -z "$ac_dir" && ac_dir=.
11799 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11800 acl_cv_path_LD="$ac_dir/$ac_prog"
11801 # Check to see if the program is GNU ld. I'd rather use --version,
11802 # but apparently some GNU ld's only accept -v.
11803 # Break only if it was the GNU/non-GNU ld that we prefer.
11804 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11805 test "$with_gnu_ld" != no && break
11806 else
11807 test "$with_gnu_ld" != yes && break
11808 fi
11809 fi
11810 done
11811 IFS="$ac_save_ifs"
11812 else
11813 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11814 fi
11815 fi
11816
11817 LD="$acl_cv_path_LD"
11818 if test -n "$LD"; then
11819 echo "$as_me:$LINENO: result: $LD" >&5
11820 echo "${ECHO_T}$LD" >&6
11821 else
11822 echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11824 fi
11825 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11826 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11827 { (exit 1); exit 1; }; }
11828 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11829 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11830 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11834 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11835 acl_cv_prog_gnu_ld=yes
11836 else
11837 acl_cv_prog_gnu_ld=no
11838 fi
11839 fi
11840 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11841 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11842 with_gnu_ld=$acl_cv_prog_gnu_ld
11843
11844
11845
11846 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11847 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11848 if test "${acl_cv_rpath+set}" = set; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851
11852 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11853 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11854 . ./conftest.sh
11855 rm -f ./conftest.sh
11856 acl_cv_rpath=done
11857
11858 fi
11859 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11860 echo "${ECHO_T}$acl_cv_rpath" >&6
11861 wl="$acl_cv_wl"
11862 libext="$acl_cv_libext"
11863 shlibext="$acl_cv_shlibext"
11864 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11865 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11866 hardcode_direct="$acl_cv_hardcode_direct"
11867 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11868 # Check whether --enable-rpath or --disable-rpath was given.
11869 if test "${enable_rpath+set}" = set; then
11870 enableval="$enable_rpath"
11871 :
11872 else
11873 enable_rpath=yes
11874 fi;
11875
11876
11877
11878
11879
11880
11881
11882 use_additional=yes
11883
11884 acl_save_prefix="$prefix"
11885 prefix="$acl_final_prefix"
11886 acl_save_exec_prefix="$exec_prefix"
11887 exec_prefix="$acl_final_exec_prefix"
11888
11889 eval additional_includedir=\"$includedir\"
11890 eval additional_libdir=\"$libdir\"
11891
11892 exec_prefix="$acl_save_exec_prefix"
11893 prefix="$acl_save_prefix"
11894
11895
11896 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11897 if test "${with_libiconv_prefix+set}" = set; then
11898 withval="$with_libiconv_prefix"
11899
11900 if test "X$withval" = "Xno"; then
11901 use_additional=no
11902 else
11903 if test "X$withval" = "X"; then
11904
11905 acl_save_prefix="$prefix"
11906 prefix="$acl_final_prefix"
11907 acl_save_exec_prefix="$exec_prefix"
11908 exec_prefix="$acl_final_exec_prefix"
11909
11910 eval additional_includedir=\"$includedir\"
11911 eval additional_libdir=\"$libdir\"
11912
11913 exec_prefix="$acl_save_exec_prefix"
11914 prefix="$acl_save_prefix"
11915
11916 else
11917 additional_includedir="$withval/include"
11918 additional_libdir="$withval/lib"
11919 fi
11920 fi
11921
11922 fi;
11923 LIBICONV=
11924 LTLIBICONV=
11925 INCICONV=
11926 rpathdirs=
11927 ltrpathdirs=
11928 names_already_handled=
11929 names_next_round='iconv '
11930 while test -n "$names_next_round"; do
11931 names_this_round="$names_next_round"
11932 names_next_round=
11933 for name in $names_this_round; do
11934 already_handled=
11935 for n in $names_already_handled; do
11936 if test "$n" = "$name"; then
11937 already_handled=yes
11938 break
11939 fi
11940 done
11941 if test -z "$already_handled"; then
11942 names_already_handled="$names_already_handled $name"
11943 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11944 eval value=\"\$HAVE_LIB$uppername\"
11945 if test -n "$value"; then
11946 if test "$value" = yes; then
11947 eval value=\"\$LIB$uppername\"
11948 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11949 eval value=\"\$LTLIB$uppername\"
11950 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11951 else
11952 :
11953 fi
11954 else
11955 found_dir=
11956 found_la=
11957 found_so=
11958 found_a=
11959 if test $use_additional = yes; then
11960 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11961 found_dir="$additional_libdir"
11962 found_so="$additional_libdir/lib$name.$shlibext"
11963 if test -f "$additional_libdir/lib$name.la"; then
11964 found_la="$additional_libdir/lib$name.la"
11965 fi
11966 else
11967 if test -f "$additional_libdir/lib$name.$libext"; then
11968 found_dir="$additional_libdir"
11969 found_a="$additional_libdir/lib$name.$libext"
11970 if test -f "$additional_libdir/lib$name.la"; then
11971 found_la="$additional_libdir/lib$name.la"
11972 fi
11973 fi
11974 fi
11975 fi
11976 if test "X$found_dir" = "X"; then
11977 for x in $LDFLAGS $LTLIBICONV; do
11978
11979 acl_save_prefix="$prefix"
11980 prefix="$acl_final_prefix"
11981 acl_save_exec_prefix="$exec_prefix"
11982 exec_prefix="$acl_final_exec_prefix"
11983 eval x=\"$x\"
11984 exec_prefix="$acl_save_exec_prefix"
11985 prefix="$acl_save_prefix"
11986
11987 case "$x" in
11988 -L*)
11989 dir=`echo "X$x" | sed -e 's/^X-L//'`
11990 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11991 found_dir="$dir"
11992 found_so="$dir/lib$name.$shlibext"
11993 if test -f "$dir/lib$name.la"; then
11994 found_la="$dir/lib$name.la"
11995 fi
11996 else
11997 if test -f "$dir/lib$name.$libext"; then
11998 found_dir="$dir"
11999 found_a="$dir/lib$name.$libext"
12000 if test -f "$dir/lib$name.la"; then
12001 found_la="$dir/lib$name.la"
12002 fi
12003 fi
12004 fi
12005 ;;
12006 esac
12007 if test "X$found_dir" != "X"; then
12008 break
12009 fi
12010 done
12011 fi
12012 if test "X$found_dir" != "X"; then
12013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12014 if test "X$found_so" != "X"; then
12015 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12017 else
12018 haveit=
12019 for x in $ltrpathdirs; do
12020 if test "X$x" = "X$found_dir"; then
12021 haveit=yes
12022 break
12023 fi
12024 done
12025 if test -z "$haveit"; then
12026 ltrpathdirs="$ltrpathdirs $found_dir"
12027 fi
12028 if test "$hardcode_direct" = yes; then
12029 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12030 else
12031 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12033 haveit=
12034 for x in $rpathdirs; do
12035 if test "X$x" = "X$found_dir"; then
12036 haveit=yes
12037 break
12038 fi
12039 done
12040 if test -z "$haveit"; then
12041 rpathdirs="$rpathdirs $found_dir"
12042 fi
12043 else
12044 haveit=
12045 for x in $LDFLAGS $LIBICONV; do
12046
12047 acl_save_prefix="$prefix"
12048 prefix="$acl_final_prefix"
12049 acl_save_exec_prefix="$exec_prefix"
12050 exec_prefix="$acl_final_exec_prefix"
12051 eval x=\"$x\"
12052 exec_prefix="$acl_save_exec_prefix"
12053 prefix="$acl_save_prefix"
12054
12055 if test "X$x" = "X-L$found_dir"; then
12056 haveit=yes
12057 break
12058 fi
12059 done
12060 if test -z "$haveit"; then
12061 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12062 fi
12063 if test "$hardcode_minus_L" != no; then
12064 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12065 else
12066 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12067 fi
12068 fi
12069 fi
12070 fi
12071 else
12072 if test "X$found_a" != "X"; then
12073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12074 else
12075 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12076 fi
12077 fi
12078 additional_includedir=
12079 case "$found_dir" in
12080 */lib | */lib/)
12081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12082 additional_includedir="$basedir/include"
12083 ;;
12084 esac
12085 if test "X$additional_includedir" != "X"; then
12086 if test "X$additional_includedir" != "X/usr/include"; then
12087 haveit=
12088 if test "X$additional_includedir" = "X/usr/local/include"; then
12089 if test -n "$GCC"; then
12090 case $host_os in
12091 linux*) haveit=yes;;
12092 esac
12093 fi
12094 fi
12095 if test -z "$haveit"; then
12096 for x in $CPPFLAGS $INCICONV; do
12097
12098 acl_save_prefix="$prefix"
12099 prefix="$acl_final_prefix"
12100 acl_save_exec_prefix="$exec_prefix"
12101 exec_prefix="$acl_final_exec_prefix"
12102 eval x=\"$x\"
12103 exec_prefix="$acl_save_exec_prefix"
12104 prefix="$acl_save_prefix"
12105
12106 if test "X$x" = "X-I$additional_includedir"; then
12107 haveit=yes
12108 break
12109 fi
12110 done
12111 if test -z "$haveit"; then
12112 if test -d "$additional_includedir"; then
12113 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12114 fi
12115 fi
12116 fi
12117 fi
12118 fi
12119 if test -n "$found_la"; then
12120 save_libdir="$libdir"
12121 case "$found_la" in
12122 */* | *\\*) . "$found_la" ;;
12123 *) . "./$found_la" ;;
12124 esac
12125 libdir="$save_libdir"
12126 for dep in $dependency_libs; do
12127 case "$dep" in
12128 -L*)
12129 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12130 if test "X$additional_libdir" != "X/usr/lib"; then
12131 haveit=
12132 if test "X$additional_libdir" = "X/usr/local/lib"; then
12133 if test -n "$GCC"; then
12134 case $host_os in
12135 linux*) haveit=yes;;
12136 esac
12137 fi
12138 fi
12139 if test -z "$haveit"; then
12140 haveit=
12141 for x in $LDFLAGS $LIBICONV; do
12142
12143 acl_save_prefix="$prefix"
12144 prefix="$acl_final_prefix"
12145 acl_save_exec_prefix="$exec_prefix"
12146 exec_prefix="$acl_final_exec_prefix"
12147 eval x=\"$x\"
12148 exec_prefix="$acl_save_exec_prefix"
12149 prefix="$acl_save_prefix"
12150
12151 if test "X$x" = "X-L$additional_libdir"; then
12152 haveit=yes
12153 break
12154 fi
12155 done
12156 if test -z "$haveit"; then
12157 if test -d "$additional_libdir"; then
12158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12159 fi
12160 fi
12161 haveit=
12162 for x in $LDFLAGS $LTLIBICONV; do
12163
12164 acl_save_prefix="$prefix"
12165 prefix="$acl_final_prefix"
12166 acl_save_exec_prefix="$exec_prefix"
12167 exec_prefix="$acl_final_exec_prefix"
12168 eval x=\"$x\"
12169 exec_prefix="$acl_save_exec_prefix"
12170 prefix="$acl_save_prefix"
12171
12172 if test "X$x" = "X-L$additional_libdir"; then
12173 haveit=yes
12174 break
12175 fi
12176 done
12177 if test -z "$haveit"; then
12178 if test -d "$additional_libdir"; then
12179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12180 fi
12181 fi
12182 fi
12183 fi
12184 ;;
12185 -R*)
12186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12187 if test "$enable_rpath" != no; then
12188 haveit=
12189 for x in $rpathdirs; do
12190 if test "X$x" = "X$dir"; then
12191 haveit=yes
12192 break
12193 fi
12194 done
12195 if test -z "$haveit"; then
12196 rpathdirs="$rpathdirs $dir"
12197 fi
12198 haveit=
12199 for x in $ltrpathdirs; do
12200 if test "X$x" = "X$dir"; then
12201 haveit=yes
12202 break
12203 fi
12204 done
12205 if test -z "$haveit"; then
12206 ltrpathdirs="$ltrpathdirs $dir"
12207 fi
12208 fi
12209 ;;
12210 -l*)
12211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12212 ;;
12213 *.la)
12214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12215 ;;
12216 *)
12217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12219 ;;
12220 esac
12221 done
12222 fi
12223 else
12224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12226 fi
12227 fi
12228 fi
12229 done
12230 done
12231 if test "X$rpathdirs" != "X"; then
12232 if test -n "$hardcode_libdir_separator"; then
12233 alldirs=
12234 for found_dir in $rpathdirs; do
12235 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12236 done
12237 acl_save_libdir="$libdir"
12238 libdir="$alldirs"
12239 eval flag=\"$hardcode_libdir_flag_spec\"
12240 libdir="$acl_save_libdir"
12241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12242 else
12243 for found_dir in $rpathdirs; do
12244 acl_save_libdir="$libdir"
12245 libdir="$found_dir"
12246 eval flag=\"$hardcode_libdir_flag_spec\"
12247 libdir="$acl_save_libdir"
12248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12249 done
12250 fi
12251 fi
12252 if test "X$ltrpathdirs" != "X"; then
12253 for found_dir in $ltrpathdirs; do
12254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12255 done
12256 fi
12257
12258
12259
12260
12261
12262
12263
12264 am_save_CPPFLAGS="$CPPFLAGS"
12265
12266 for element in $INCICONV; do
12267 haveit=
12268 for x in $CPPFLAGS; do
12269
12270 acl_save_prefix="$prefix"
12271 prefix="$acl_final_prefix"
12272 acl_save_exec_prefix="$exec_prefix"
12273 exec_prefix="$acl_final_exec_prefix"
12274 eval x=\"$x\"
12275 exec_prefix="$acl_save_exec_prefix"
12276 prefix="$acl_save_prefix"
12277
12278 if test "X$x" = "X$element"; then
12279 haveit=yes
12280 break
12281 fi
12282 done
12283 if test -z "$haveit"; then
12284 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12285 fi
12286 done
12287
12288
12289 echo "$as_me:$LINENO: checking for iconv" >&5
12290 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12291 if test "${am_cv_func_iconv+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294
12295 am_cv_func_iconv="no, consider installing GNU libiconv"
12296 am_cv_lib_iconv=no
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h. */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h. */
12303 #include <stdlib.h>
12304 #include <iconv.h>
12305 int
12306 main ()
12307 {
12308 iconv_t cd = iconv_open("","");
12309 iconv(cd,NULL,NULL,NULL,NULL);
12310 iconv_close(cd);
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12317 (eval $ac_link) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 am_cv_func_iconv=yes
12338 else
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 fi
12343 rm -f conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
12345 if test "$am_cv_func_iconv" != yes; then
12346 am_save_LIBS="$LIBS"
12347 LIBS="$LIBS $LIBICONV"
12348 cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <stdlib.h>
12355 #include <iconv.h>
12356 int
12357 main ()
12358 {
12359 iconv_t cd = iconv_open("","");
12360 iconv(cd,NULL,NULL,NULL,NULL);
12361 iconv_close(cd);
12362 ;
12363 return 0;
12364 }
12365 _ACEOF
12366 rm -f conftest.$ac_objext conftest$ac_exeext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368 (eval $ac_link) 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12379 ac_status=$?
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest$ac_exeext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 am_cv_lib_iconv=yes
12389 am_cv_func_iconv=yes
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 fi
12395 rm -f conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS="$am_save_LIBS"
12398 fi
12399
12400 fi
12401 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12402 echo "${ECHO_T}$am_cv_func_iconv" >&6
12403 if test "$am_cv_func_iconv" = yes; then
12404
12405 cat >>confdefs.h <<\_ACEOF
12406 #define HAVE_ICONV 1
12407 _ACEOF
12408
12409 fi
12410 if test "$am_cv_lib_iconv" = yes; then
12411 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12412 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12413 echo "$as_me:$LINENO: result: $LIBICONV" >&5
12414 echo "${ECHO_T}$LIBICONV" >&6
12415 else
12416 CPPFLAGS="$am_save_CPPFLAGS"
12417 LIBICONV=
12418 LTLIBICONV=
12419 fi
12420
12421
12422
12423 if test "$am_cv_func_iconv" = yes; then
12424 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12425 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12426 if test "${am_cv_proto_iconv+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436
12437 #include <stdlib.h>
12438 #include <iconv.h>
12439 extern
12440 #ifdef __cplusplus
12441 "C"
12442 #endif
12443 #if defined(__STDC__) || defined(__cplusplus)
12444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12445 #else
12446 size_t iconv();
12447 #endif
12448
12449 int
12450 main ()
12451 {
12452
12453 ;
12454 return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_c_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 am_cv_proto_iconv_arg1=""
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484 am_cv_proto_iconv_arg1="const"
12485 fi
12486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12487 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);"
12488 fi
12489
12490 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12491 echo "$as_me:$LINENO: result: ${ac_t:-
12492 }$am_cv_proto_iconv" >&5
12493 echo "${ECHO_T}${ac_t:-
12494 }$am_cv_proto_iconv" >&6
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define ICONV_CONST $am_cv_proto_iconv_arg1
12498 _ACEOF
12499
12500 fi
12501
12502 # Until we have in-tree GNU iconv:
12503 LIBICONV_DEP=
12504
12505
12506
12507 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12508 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12509 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #include <locale.h>
12519 int
12520 main ()
12521 {
12522 return LC_MESSAGES
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>conftest.er1
12530 ac_status=$?
12531 grep -v '^ *+' conftest.er1 >conftest.err
12532 rm -f conftest.er1
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag"
12537 || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest$ac_exeext'
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 am_cv_val_LC_MESSAGES=yes
12550 else
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 am_cv_val_LC_MESSAGES=no
12555 fi
12556 rm -f conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558 fi
12559 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12560 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12561 if test $am_cv_val_LC_MESSAGES = yes; then
12562
12563 cat >>confdefs.h <<\_ACEOF
12564 #define HAVE_LC_MESSAGES 1
12565 _ACEOF
12566
12567 fi
12568
12569
12570
12571 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12572 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12573 if test "${am_cv_langinfo_codeset+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <langinfo.h>
12583 int
12584 main ()
12585 {
12586 char* cs = nl_langinfo(CODESET);
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext conftest$ac_exeext
12592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12593 (eval $ac_link) 2>conftest.er1
12594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -z "$ac_c_werror_flag"
12601 || test ! -s conftest.err'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } &&
12607 { ac_try='test -s conftest$ac_exeext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 am_cv_langinfo_codeset=yes
12614 else
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12617
12618 am_cv_langinfo_codeset=no
12619 fi
12620 rm -f conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622
12623 fi
12624 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12625 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12626 if test $am_cv_langinfo_codeset = yes; then
12627
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_LANGINFO_CODESET 1
12630 _ACEOF
12631
12632 fi
12633
12634
12635 # We will need to find libiberty.h and ansidecl.h
12636 saved_CFLAGS="$CFLAGS"
12637 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12678 strsignal strstr strverscmp \
12679 errno snprintf vsnprintf vasprintf malloc realloc calloc \
12680 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
12681 do
12682 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12683 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12684 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12685 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694 #undef $ac_tr_decl
12695 #define $ac_tr_decl 1
12696
12697 #include "ansidecl.h"
12698 #include "system.h"
12699
12700 int
12701 main ()
12702 {
12703 #ifndef $ac_func
12704 char *(*pfn) = (char *(*)) $ac_func ;
12705 #endif
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 eval "gcc_cv_have_decl_$ac_func=yes"
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737 eval "gcc_cv_have_decl_$ac_func=no"
12738 fi
12739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12740 fi
12741
12742 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12743 echo "$as_me:$LINENO: result: yes" >&5
12744 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12745 #define $ac_tr_decl 1
12746 _ACEOF
12747
12748 else
12749 echo "$as_me:$LINENO: result: no" >&5
12750 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12751 #define $ac_tr_decl 0
12752 _ACEOF
12753
12754 fi
12755
12756 done
12757
12758
12759
12760
12761
12762 for ac_func in getrlimit setrlimit getrusage
12763 do
12764 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12765 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12766 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12767 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #undef $ac_tr_decl
12777 #define $ac_tr_decl 1
12778
12779 #include "ansidecl.h"
12780 #include "system.h"
12781 #ifdef HAVE_SYS_RESOURCE_H
12782 #include <sys/resource.h>
12783 #endif
12784
12785
12786 int
12787 main ()
12788 {
12789 #ifndef $ac_func
12790 char *(*pfn) = (char *(*)) $ac_func ;
12791 #endif
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12798 (eval $ac_compile) 2>conftest.er1
12799 ac_status=$?
12800 grep -v '^ *+' conftest.er1 >conftest.err
12801 rm -f conftest.er1
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } &&
12805 { ac_try='test -z "$ac_c_werror_flag"
12806 || test ! -s conftest.err'
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); }; } &&
12812 { ac_try='test -s conftest.$ac_objext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 eval "gcc_cv_have_decl_$ac_func=yes"
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823 eval "gcc_cv_have_decl_$ac_func=no"
12824 fi
12825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12826 fi
12827
12828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12829 echo "$as_me:$LINENO: result: yes" >&5
12830 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12831 #define $ac_tr_decl 1
12832 _ACEOF
12833
12834 else
12835 echo "$as_me:$LINENO: result: no" >&5
12836 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12837 #define $ac_tr_decl 0
12838 _ACEOF
12839
12840 fi
12841
12842 done
12843
12844
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851
12852 #include "ansidecl.h"
12853 #include "system.h"
12854 #ifdef HAVE_SYS_RESOURCE_H
12855 #include <sys/resource.h>
12856 #endif
12857
12858 int
12859 main ()
12860 {
12861 rlim_t l = 0;
12862 ;
12863 return 0;
12864 }
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868 (eval $ac_compile) 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 :
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893
12894 cat >>confdefs.h <<\_ACEOF
12895 #define rlim_t long
12896 _ACEOF
12897
12898 fi
12899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12900
12901 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12902 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12903 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12904 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12905
12906 for ac_func in ldgetname
12907 do
12908 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12909 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12910 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12911 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h. */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #undef $ac_tr_decl
12921 #define $ac_tr_decl 1
12922
12923 #include "ansidecl.h"
12924 #include "system.h"
12925 #ifdef HAVE_LDFCN_H
12926 #undef FREAD
12927 #undef FWRITE
12928 #include <ldfcn.h>
12929 #endif
12930
12931
12932 int
12933 main ()
12934 {
12935 #ifndef $ac_func
12936 char *(*pfn) = (char *(*)) $ac_func ;
12937 #endif
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 eval "gcc_cv_have_decl_$ac_func=yes"
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 eval "gcc_cv_have_decl_$ac_func=no"
12970 fi
12971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12972 fi
12973
12974 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12975 echo "$as_me:$LINENO: result: yes" >&5
12976 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12977 #define $ac_tr_decl 1
12978 _ACEOF
12979
12980 else
12981 echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12983 #define $ac_tr_decl 0
12984 _ACEOF
12985
12986 fi
12987
12988 done
12989
12990
12991
12992 for ac_func in times
12993 do
12994 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12995 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12996 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12997 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 else
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #undef $ac_tr_decl
13007 #define $ac_tr_decl 1
13008
13009 #include "ansidecl.h"
13010 #include "system.h"
13011 #ifdef HAVE_SYS_TIMES_H
13012 #include <sys/times.h>
13013 #endif
13014
13015
13016 int
13017 main ()
13018 {
13019 #ifndef $ac_func
13020 char *(*pfn) = (char *(*)) $ac_func ;
13021 #endif
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 eval "gcc_cv_have_decl_$ac_func=yes"
13049 else
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 eval "gcc_cv_have_decl_$ac_func=no"
13054 fi
13055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 fi
13057
13058 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13059 echo "$as_me:$LINENO: result: yes" >&5
13060 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13061 #define $ac_tr_decl 1
13062 _ACEOF
13063
13064 else
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13067 #define $ac_tr_decl 0
13068 _ACEOF
13069
13070 fi
13071
13072 done
13073
13074
13075
13076 for ac_func in sigaltstack
13077 do
13078 ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
13079 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
13080 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
13081 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 #undef $ac_tr_decl
13091 #define $ac_tr_decl 1
13092
13093 #include "ansidecl.h"
13094 #include "system.h"
13095 #include <signal.h>
13096
13097
13098 int
13099 main ()
13100 {
13101 #ifndef $ac_func
13102 char *(*pfn) = (char *(*)) $ac_func ;
13103 #endif
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest.$ac_objext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 eval "gcc_cv_have_decl_$ac_func=yes"
13131 else
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 eval "gcc_cv_have_decl_$ac_func=no"
13136 fi
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13138 fi
13139
13140 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
13141 echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
13143 #define $ac_tr_decl 1
13144 _ACEOF
13145
13146 else
13147 echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
13149 #define $ac_tr_decl 0
13150 _ACEOF
13151
13152 fi
13153
13154 done
13155
13156
13157 # More time-related stuff.
13158 echo "$as_me:$LINENO: checking for struct tms" >&5
13159 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
13160 if test "${ac_cv_struct_tms+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163
13164 cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h. */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170
13171 #include "ansidecl.h"
13172 #include "system.h"
13173 #ifdef HAVE_SYS_TIMES_H
13174 #include <sys/times.h>
13175 #endif
13176
13177 int
13178 main ()
13179 {
13180 struct tms tms;
13181 ;
13182 return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag"
13195 || test ! -s conftest.err'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_struct_tms=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 ac_cv_struct_tms=no
13213 fi
13214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 fi
13216 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
13217 echo "${ECHO_T}$ac_cv_struct_tms" >&6
13218 if test $ac_cv_struct_tms = yes; then
13219
13220 cat >>confdefs.h <<\_ACEOF
13221 #define HAVE_STRUCT_TMS 1
13222 _ACEOF
13223
13224 fi
13225
13226 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
13227 # revisit after autoconf 2.50.
13228 echo "$as_me:$LINENO: checking for clock_t" >&5
13229 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
13230 if test "${gcc_cv_type_clock_t+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240
13241 #include "ansidecl.h"
13242 #include "system.h"
13243
13244 int
13245 main ()
13246 {
13247 clock_t x;
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 gcc_cv_type_clock_t=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 gcc_cv_type_clock_t=no
13280 fi
13281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13282 fi
13283 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
13284 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
13285 if test $gcc_cv_type_clock_t = yes; then
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_CLOCK_T 1
13289 _ACEOF
13290
13291 fi
13292
13293 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
13294 CFLAGS="$saved_CFLAGS"
13295
13296 # Check whether --enable-initfini-array or --disable-initfini-array was given.
13297 if test "${enable_initfini_array+set}" = set; then
13298 enableval="$enable_initfini_array"
13299
13300 else
13301
13302 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
13303 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
13304 if test "${gcc_cv_initfini_array+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307 if test "$cross_compiling" = yes; then
13308 gcc_cv_initfini_array=no
13309 else
13310 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h. */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316
13317 static int x = -1;
13318 int main (void) { return x; }
13319 int foo (void) { x = 0; }
13320 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
13321 _ACEOF
13322 rm -f conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 gcc_cv_initfini_array=yes
13334 else
13335 echo "$as_me: program exited with status $ac_status" >&5
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339 ( exit $ac_status )
13340 gcc_cv_initfini_array=no
13341 fi
13342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13343 fi
13344 fi
13345 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
13346 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
13347 enable_initfini_array=$gcc_cv_initfini_array
13348
13349 fi;
13350 if test $enable_initfini_array = yes; then
13351
13352 cat >>confdefs.h <<\_ACEOF
13353 #define HAVE_INITFINI_ARRAY 1
13354 _ACEOF
13355
13356 fi
13357
13358 # mkdir takes a single argument on some systems.
13359 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
13360 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
13361 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370
13371 #include <sys/types.h>
13372 #ifdef HAVE_SYS_STAT_H
13373 # include <sys/stat.h>
13374 #endif
13375 #ifdef HAVE_UNISTD_H
13376 # include <unistd.h>
13377 #endif
13378 #ifdef HAVE_DIRECT_H
13379 # include <direct.h>
13380 #endif
13381 int
13382 main ()
13383 {
13384 mkdir ("foo", 0);
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>conftest.er1
13392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
13398 { ac_try='test -z "$ac_c_werror_flag"
13399 || test ! -s conftest.err'
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); }; } &&
13405 { ac_try='test -s conftest.$ac_objext'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; }; then
13411 gcc_cv_mkdir_takes_one_arg=no
13412 else
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 gcc_cv_mkdir_takes_one_arg=yes
13417 fi
13418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13419 fi
13420 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13421 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13422 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13423
13424 cat >>confdefs.h <<\_ACEOF
13425 #define MKDIR_TAKES_ONE_ARG 1
13426 _ACEOF
13427
13428 fi
13429
13430
13431 # File extensions
13432 manext='.1'
13433 objext='.o'
13434
13435
13436
13437 # With Setjmp/Longjmp based exception handling.
13438 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13439 if test "${enable_sjlj_exceptions+set}" = set; then
13440 enableval="$enable_sjlj_exceptions"
13441 case $target in
13442 *-*-hpux10*)
13443 if test $enableval != yes; then
13444 { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13445 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13446 enableval=yes
13447 fi
13448 ;;
13449 esac
13450 force_sjlj_exceptions=yes
13451 else
13452 case $target in
13453 *-*-hpux10*)
13454 force_sjlj_exceptions=yes
13455 enableval=yes
13456 ;;
13457 *)
13458 force_sjlj_exceptions=no
13459 ;;
13460 esac
13461 fi;
13462 if test $force_sjlj_exceptions = yes; then
13463 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13464
13465 cat >>confdefs.h <<_ACEOF
13466 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13467 _ACEOF
13468
13469 fi
13470
13471 # For platforms with the unwind ABI which includes an unwind library,
13472 # libunwind, we can choose to use the system libunwind.
13473 # config.gcc also contains tests of with_system_libunwind.
13474
13475
13476 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13477 if test "${with_system_libunwind+set}" = set; then
13478 withval="$with_system_libunwind"
13479
13480 fi;
13481 # If system-libunwind was not specifically set, pick a default setting.
13482 if test x$with_system_libunwind = x; then
13483 case ${target} in
13484 ia64-*-hpux*) with_system_libunwind=yes ;;
13485 *) with_system_libunwind=no ;;
13486 esac
13487 fi
13488 # Based on system-libunwind and target, do we have ipinfo?
13489 if test x$with_system_libunwind = xyes; then
13490 case ${target} in
13491 ia64-*-*) have_unwind_getipinfo=no ;;
13492 *) have_unwind_getipinfo=yes ;;
13493 esac
13494 else
13495 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13496
13497 case ${target} in
13498 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13499 *) have_unwind_getipinfo=yes ;;
13500 esac
13501
13502 fi
13503
13504 if test x$have_unwind_getipinfo = xyes; then
13505
13506 cat >>confdefs.h <<\_ACEOF
13507 #define HAVE_GETIPINFO 1
13508 _ACEOF
13509
13510 fi
13511
13512
13513 # --------------------------------------------------------
13514 # Build, host, and target specific configuration fragments
13515 # --------------------------------------------------------
13516
13517 # Collect build-machine-specific information.
13518 . ${srcdir}/config.build
13519
13520 # Collect host-machine-specific information.
13521 . ${srcdir}/config.host
13522
13523 target_gtfiles=
13524
13525 # Collect target-machine-specific information.
13526 . ${srcdir}/config.gcc
13527
13528 extra_objs="${host_extra_objs} ${extra_objs}"
13529 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13530
13531 # Default the target-machine variables that were not explicitly set.
13532 if test x"$tm_file" = x
13533 then tm_file=$cpu_type/$cpu_type.h; fi
13534
13535 if test x"$extra_headers" = x
13536 then extra_headers=; fi
13537
13538 if test x$md_file = x
13539 then md_file=$cpu_type/$cpu_type.md; fi
13540
13541 if test x$out_file = x
13542 then out_file=$cpu_type/$cpu_type.c; fi
13543
13544 if test x"$tmake_file" = x
13545 then tmake_file=$cpu_type/t-$cpu_type
13546 fi
13547
13548 if test x"$dwarf2" = xyes
13549 then tm_file="$tm_file tm-dwarf2.h"
13550 fi
13551
13552 # Say what files are being used for the output code and MD file.
13553 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13554 echo "Using \`$srcdir/config/$md_file' as machine description file."
13555
13556 # If any of the xm_file variables contain nonexistent files, warn
13557 # about them and drop them.
13558
13559 bx=
13560 for x in $build_xm_file; do
13561 if test -f $srcdir/config/$x
13562 then bx="$bx $x"
13563 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13564 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13565 fi
13566 done
13567 build_xm_file="$bx"
13568
13569 hx=
13570 for x in $host_xm_file; do
13571 if test -f $srcdir/config/$x
13572 then hx="$hx $x"
13573 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13574 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13575 fi
13576 done
13577 host_xm_file="$hx"
13578
13579 tx=
13580 for x in $xm_file; do
13581 if test -f $srcdir/config/$x
13582 then tx="$tx $x"
13583 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13584 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13585 fi
13586 done
13587 xm_file="$tx"
13588
13589 count=a
13590 for f in $tm_file; do
13591 count=${count}x
13592 done
13593 if test $count = ax; then
13594 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13595 else
13596 echo "Using the following target machine macro files:"
13597 for f in $tm_file; do
13598 echo " $srcdir/config/$f"
13599 done
13600 fi
13601
13602 if test x$need_64bit_hwint = xyes; then
13603
13604 cat >>confdefs.h <<\_ACEOF
13605 #define NEED_64BIT_HOST_WIDE_INT 1
13606 _ACEOF
13607
13608 fi
13609
13610 if test x$use_long_long_for_widest_fast_int = xyes; then
13611
13612 cat >>confdefs.h <<\_ACEOF
13613 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13614 _ACEOF
13615
13616 fi
13617
13618 count=a
13619 for f in $host_xm_file; do
13620 count=${count}x
13621 done
13622 if test $count = a; then
13623 :
13624 elif test $count = ax; then
13625 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13626 else
13627 echo "Using the following host machine macro files:"
13628 for f in $host_xm_file; do
13629 echo " $srcdir/config/$f"
13630 done
13631 fi
13632 echo "Using ${out_host_hook_obj} for host machine hooks."
13633
13634 if test "$host_xm_file" != "$build_xm_file"; then
13635 count=a
13636 for f in $build_xm_file; do
13637 count=${count}x
13638 done
13639 if test $count = a; then
13640 :
13641 elif test $count = ax; then
13642 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13643 else
13644 echo "Using the following build machine macro files:"
13645 for f in $build_xm_file; do
13646 echo " $srcdir/config/$f"
13647 done
13648 fi
13649 fi
13650
13651 case ${host} in
13652 powerpc*-*-darwin*)
13653 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13654 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13655 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659
13660 #include <sys/cdefs.h>
13661 #include <sys/signal.h>
13662 #include <ucontext.h>
13663 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13664
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 gcc_cv_mcontext_underscores=no
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 gcc_cv_mcontext_underscores=yes
13694 fi
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 fi
13697 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13698 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13699 if test $gcc_cv_mcontext_underscores = yes; then
13700
13701 cat >>confdefs.h <<\_ACEOF
13702 #define HAS_MCONTEXT_T_UNDERSCORES
13703 _ACEOF
13704
13705 fi
13706 ;;
13707 esac
13708
13709 # ---------
13710 # Threading
13711 # ---------
13712
13713 # Check if a valid thread package
13714 case ${enable_threads} in
13715 "" | no)
13716 # No threads
13717 target_thread_file='single'
13718 ;;
13719 yes)
13720 # default
13721 target_thread_file='single'
13722 ;;
13723 aix | dce | gnat | irix | posix | posix95 | rtems | \
13724 single | solaris | vxworks | win32 | mipssde)
13725 target_thread_file=${enable_threads}
13726 ;;
13727 *)
13728 echo "${enable_threads} is an unknown thread package" 1>&2
13729 exit 1
13730 ;;
13731 esac
13732
13733 if test x${thread_file} = x; then
13734 # No thread file set by target-specific clauses in config.gcc,
13735 # so use file chosen by default logic above
13736 thread_file=${target_thread_file}
13737 fi
13738
13739 # Make gthr-default.h if we have a thread file.
13740 gthread_flags=
13741 if test $thread_file != single; then
13742 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13743 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13744 rm -f gthr-default.h-t
13745 else
13746 mv -f gthr-default.h-t gthr-default.h
13747 fi
13748 gthread_flags=-DHAVE_GTHR_DEFAULT
13749 fi
13750
13751
13752 # --------
13753 # UNSORTED
13754 # --------
13755
13756 use_cxa_atexit=no
13757 if test x$enable___cxa_atexit = xyes || \
13758 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13759 if test x$host = x$target; then
13760 case $host in
13761 # mingw32 doesn't have __cxa_atexit but uses atexit registration
13762 # keyed to flag_use_cxa_atexit
13763 *-*-mingw32*)
13764 use_cxa_atexit=yes
13765 ;;
13766 *)
13767 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13768 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13769 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13780 #define __cxa_atexit innocuous___cxa_atexit
13781
13782 /* System header to define __stub macros and hopefully few prototypes,
13783 which can conflict with char __cxa_atexit (); below.
13784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13785 <limits.h> exists even on freestanding compilers. */
13786
13787 #ifdef __STDC__
13788 # include <limits.h>
13789 #else
13790 # include <assert.h>
13791 #endif
13792
13793 #undef __cxa_atexit
13794
13795 /* Override any gcc2 internal prototype to avoid an error. */
13796 #ifdef __cplusplus
13797 extern "C"
13798 {
13799 #endif
13800 /* We use char because int might match the return type of a gcc2
13801 builtin and then its argument prototype would still apply. */
13802 char __cxa_atexit ();
13803 /* The GNU C library defines this for functions which it implements
13804 to always fail with ENOSYS. Some functions are actually named
13805 something starting with __ and the normal name is an alias. */
13806 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13807 choke me
13808 #else
13809 char (*f) () = __cxa_atexit;
13810 #endif
13811 #ifdef __cplusplus
13812 }
13813 #endif
13814
13815 int
13816 main ()
13817 {
13818 return f != __cxa_atexit;
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 rm -f conftest.$ac_objext conftest$ac_exeext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825 (eval $ac_link) 2>conftest.er1
13826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try='test -z "$ac_c_werror_flag"
13833 || test ! -s conftest.err'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest$ac_exeext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_func___cxa_atexit=yes
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_cv_func___cxa_atexit=no
13851 fi
13852 rm -f conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 fi
13855 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13856 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13857 if test $ac_cv_func___cxa_atexit = yes; then
13858 use_cxa_atexit=yes
13859 else
13860 echo "__cxa_atexit can't be enabled on this target"
13861 fi
13862
13863 ;;
13864 esac
13865 else
13866 # We can't check for __cxa_atexit when building a cross, so assume
13867 # it is available
13868 use_cxa_atexit=yes
13869 fi
13870 if test x$use_cxa_atexit = xyes; then
13871
13872 cat >>confdefs.h <<\_ACEOF
13873 #define DEFAULT_USE_CXA_ATEXIT 2
13874 _ACEOF
13875
13876 fi
13877 fi
13878
13879 # Look for a file containing extra machine modes.
13880 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13881 extra_modes_file='$(srcdir)'/config/${extra_modes}
13882
13883
13884 cat >>confdefs.h <<_ACEOF
13885 #define EXTRA_MODES_FILE "config/$extra_modes"
13886 _ACEOF
13887
13888 fi
13889
13890 # Convert extra_options into a form suitable for Makefile use.
13891 extra_opt_files=
13892 for f in $extra_options; do
13893 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13894 done
13895
13896
13897 # auto-host.h is the file containing items generated by autoconf and is
13898 # the first file included by config.h.
13899 # If host=build, it is correct to have bconfig include auto-host.h
13900 # as well. If host!=build, we are in error and need to do more
13901 # work to find out the build config parameters.
13902 if test x$host = x$build
13903 then
13904 build_auto=auto-host.h
13905 else
13906 # We create a subdir, then run autoconf in the subdir.
13907 # To prevent recursion we set host and build for the new
13908 # invocation of configure to the build for this invocation
13909 # of configure.
13910 tempdir=build.$$
13911 rm -rf $tempdir
13912 mkdir $tempdir
13913 cd $tempdir
13914 case ${srcdir} in
13915 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13916 *) realsrcdir=../${srcdir};;
13917 esac
13918 saved_CFLAGS="${CFLAGS}"
13919 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13920 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13921 ${realsrcdir}/configure \
13922 --enable-languages=${enable_languages-all} \
13923 --target=$target_alias --host=$build_alias --build=$build_alias
13924 CFLAGS="${saved_CFLAGS}"
13925
13926 # We just finished tests for the build machine, so rename
13927 # the file auto-build.h in the gcc directory.
13928 mv auto-host.h ../auto-build.h
13929 cd ..
13930 rm -rf $tempdir
13931 build_auto=auto-build.h
13932 fi
13933
13934
13935 tm_file="${tm_file} defaults.h"
13936 tm_p_file="${tm_p_file} tm-preds.h"
13937 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13938 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13939 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13940 # put this back in temporarily.
13941 xm_file="auto-host.h ansidecl.h ${xm_file}"
13942
13943 # --------
13944 # UNSORTED
13945 # --------
13946
13947 # Compile in configure arguments.
13948 if test -f configargs.h ; then
13949 # Being re-configured.
13950 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13951 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13952 else
13953 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13954 fi
13955
13956 # Double all backslashes and backslash all quotes to turn
13957 # gcc_config_arguments into a C string.
13958 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13959 $gcc_config_arguments
13960 EOF
13961 gcc_config_arguments_str=`cat conftest.out`
13962 rm -f conftest.out
13963
13964 cat > configargs.h <<EOF
13965 /* Generated automatically. */
13966 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13967 static const char thread_model[] = "$thread_file";
13968
13969 static const struct {
13970 const char *name, *value;
13971 } configure_default_options[] = $configure_default_options;
13972 EOF
13973
13974 gcc_BASEVER=`cat $srcdir/BASE-VER`
13975 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13976 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13977 if test -f $srcdir/REVISION ; then
13978 gcc_REVISION=`cat $srcdir/REVISION`
13979 else
13980 gcc_REVISION=""
13981 fi
13982 cat > plugin-version.h <<EOF
13983 #include "configargs.h"
13984
13985 static char basever[] = "$gcc_BASEVER";
13986 static char datestamp[] = "$gcc_DATESTAMP";
13987 static char devphase[] = "$gcc_DEVPHASE";
13988 static char revision[] = "$gcc_REVISION";
13989
13990 /* FIXME plugins: We should make the version information more precise.
13991 One way to do is to add a checksum. */
13992
13993 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13994 devphase, revision,
13995 configuration_arguments};
13996 EOF
13997
13998 # Internationalization
13999 # If we haven't got the data from the intl directory,
14000 # assume NLS is disabled.
14001 USE_NLS=no
14002 LIBINTL=
14003 LIBINTL_DEP=
14004 INCINTL=
14005 XGETTEXT=
14006 GMSGFMT=
14007 POSUB=
14008
14009 if test -f ../intl/config.intl; then
14010 . ../intl/config.intl
14011 fi
14012 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14013 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14014 if test x"$USE_NLS" != xyes; then
14015 echo "$as_me:$LINENO: result: no" >&5
14016 echo "${ECHO_T}no" >&6
14017 else
14018 echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6
14020
14021 cat >>confdefs.h <<\_ACEOF
14022 #define ENABLE_NLS 1
14023 _ACEOF
14024
14025
14026 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
14027 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
14028 # Look for .po and .gmo files in the source directory.
14029 CATALOGS=
14030 XLINGUAS=
14031 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14032 # If there aren't any .gmo files the shell will give us the
14033 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14034 # weeded out.
14035 case "$cat" in *\**)
14036 continue;;
14037 esac
14038 # The quadruple backslash is collapsed to a double backslash
14039 # by the backticks, then collapsed again by the double quotes,
14040 # leaving us with one backslash in the sed expression (right
14041 # before the dot that mustn't act as a wildcard).
14042 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14043 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14044 # The user is allowed to set LINGUAS to a list of languages to
14045 # install catalogs for. If it's empty that means "all of them."
14046 if test "x$LINGUAS" = x; then
14047 CATALOGS="$CATALOGS $cat"
14048 XLINGUAS="$XLINGUAS $lang"
14049 else
14050 case "$LINGUAS" in *$lang*)
14051 CATALOGS="$CATALOGS $cat"
14052 XLINGUAS="$XLINGUAS $lang"
14053 ;;
14054 esac
14055 fi
14056 done
14057 LINGUAS="$XLINGUAS"
14058 echo "$as_me:$LINENO: result: $LINGUAS" >&5
14059 echo "${ECHO_T}$LINGUAS" >&6
14060
14061
14062 DATADIRNAME=share
14063
14064 INSTOBJEXT=.mo
14065
14066 GENCAT=gencat
14067
14068 CATOBJEXT=.gmo
14069
14070 fi
14071
14072 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
14073 # -liconv on the link line twice.
14074 case "$LIBINTL" in *$LIBICONV*)
14075 LIBICONV= ;;
14076 esac
14077
14078 # Check whether --enable-secureplt or --disable-secureplt was given.
14079 if test "${enable_secureplt+set}" = set; then
14080 enableval="$enable_secureplt"
14081
14082 fi;
14083
14084 # Check whether --enable-cld or --disable-cld was given.
14085 if test "${enable_cld+set}" = set; then
14086 enableval="$enable_cld"
14087
14088 else
14089 enable_cld=no
14090 fi;
14091
14092 # Windows32 Registry support for specifying GCC installation paths.
14093 # Check whether --enable-win32-registry or --disable-win32-registry was given.
14094 if test "${enable_win32_registry+set}" = set; then
14095 enableval="$enable_win32_registry"
14096
14097 fi;
14098
14099 case $host_os in
14100 win32 | pe | cygwin* | mingw32* | uwin*)
14101 if test "x$enable_win32_registry" != xno; then
14102 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
14103 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
14104 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
14105 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 else
14107 ac_func_search_save_LIBS=$LIBS
14108 ac_cv_search_RegOpenKeyExA=no
14109 cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h. */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115
14116 /* Override any gcc2 internal prototype to avoid an error. */
14117 #ifdef __cplusplus
14118 extern "C"
14119 #endif
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char RegOpenKeyExA ();
14123 int
14124 main ()
14125 {
14126 RegOpenKeyExA ();
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 rm -f conftest.$ac_objext conftest$ac_exeext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14133 (eval $ac_link) 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } &&
14140 { ac_try='test -z "$ac_c_werror_flag"
14141 || test ! -s conftest.err'
14142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143 (eval $ac_try) 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_search_RegOpenKeyExA="none required"
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 fi
14159 rm -f conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 if test "$ac_cv_search_RegOpenKeyExA" = no; then
14162 for ac_lib in advapi32; do
14163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170
14171 /* Override any gcc2 internal prototype to avoid an error. */
14172 #ifdef __cplusplus
14173 extern "C"
14174 #endif
14175 /* We use char because int might match the return type of a gcc2
14176 builtin and then its argument prototype would still apply. */
14177 char RegOpenKeyExA ();
14178 int
14179 main ()
14180 {
14181 RegOpenKeyExA ();
14182 ;
14183 return 0;
14184 }
14185 _ACEOF
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14188 (eval $ac_link) 2>conftest.er1
14189 ac_status=$?
14190 grep -v '^ *+' conftest.er1 >conftest.err
14191 rm -f conftest.er1
14192 cat conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -z "$ac_c_werror_flag"
14196 || test ! -s conftest.err'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; } &&
14202 { ac_try='test -s conftest$ac_exeext'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; }; then
14208 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
14209 break
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 fi
14215 rm -f conftest.err conftest.$ac_objext \
14216 conftest$ac_exeext conftest.$ac_ext
14217 done
14218 fi
14219 LIBS=$ac_func_search_save_LIBS
14220 fi
14221 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
14222 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
14223 if test "$ac_cv_search_RegOpenKeyExA" != no; then
14224 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
14225
14226 else
14227 enable_win32_registry=no
14228 fi
14229
14230 fi
14231
14232 if test "x$enable_win32_registry" != xno; then
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define ENABLE_WIN32_REGISTRY 1
14236 _ACEOF
14237
14238
14239 if test "x$enable_win32_registry" != xyes \
14240 && test "x$enable_win32_registry" != x; then
14241
14242 cat >>confdefs.h <<_ACEOF
14243 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
14244 _ACEOF
14245
14246 fi
14247 fi
14248 ;;
14249 esac
14250
14251 # Get an absolute path to the GCC top-level source directory
14252 holddir=`${PWDCMD-pwd}`
14253 cd $srcdir
14254 topdir=`${PWDCMD-pwd}`
14255 cd $holddir
14256
14257 # Conditionalize the makefile for this host machine.
14258 xmake_file=
14259 for f in ${host_xmake_file}
14260 do
14261 if test -f ${srcdir}/config/$f
14262 then
14263 xmake_file="${xmake_file} \$(srcdir)/config/$f"
14264 fi
14265 done
14266
14267 # Conditionalize the makefile for this target machine.
14268 tmake_file_=
14269 for f in ${tmake_file}
14270 do
14271 if test -f ${srcdir}/config/$f
14272 then
14273 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
14274 fi
14275 done
14276 tmake_file="${tmake_file_}"
14277
14278 out_object_file=`basename $out_file .c`.o
14279
14280 tm_file_list="options.h"
14281 tm_include_list="options.h"
14282 for f in $tm_file; do
14283 case $f in
14284 ./* )
14285 f=`echo $f | sed 's/^..//'`
14286 tm_file_list="${tm_file_list} $f"
14287 tm_include_list="${tm_include_list} $f"
14288 ;;
14289 defaults.h )
14290 tm_file_list="${tm_file_list} \$(srcdir)/$f"
14291 tm_include_list="${tm_include_list} $f"
14292 ;;
14293 * )
14294 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
14295 tm_include_list="${tm_include_list} config/$f"
14296 ;;
14297 esac
14298 done
14299
14300 tm_p_file_list=
14301 tm_p_include_list=
14302 for f in $tm_p_file; do
14303 case $f in
14304 tm-preds.h )
14305 tm_p_file_list="${tm_p_file_list} $f"
14306 tm_p_include_list="${tm_p_include_list} $f"
14307 ;;
14308 * )
14309 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14310 tm_p_include_list="${tm_p_include_list} config/$f"
14311 esac
14312 done
14313
14314 xm_file_list=
14315 xm_include_list=
14316 for f in $xm_file; do
14317 case $f in
14318 ansidecl.h )
14319 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14320 xm_include_list="${xm_include_list} $f"
14321 ;;
14322 auto-host.h )
14323 xm_file_list="${xm_file_list} $f"
14324 xm_include_list="${xm_include_list} $f"
14325 ;;
14326 * )
14327 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14328 xm_include_list="${xm_include_list} config/$f"
14329 ;;
14330 esac
14331 done
14332
14333 host_xm_file_list=
14334 host_xm_include_list=
14335 for f in $host_xm_file; do
14336 case $f in
14337 ansidecl.h )
14338 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14339 host_xm_include_list="${host_xm_include_list} $f"
14340 ;;
14341 auto-host.h )
14342 host_xm_file_list="${host_xm_file_list} $f"
14343 host_xm_include_list="${host_xm_include_list} $f"
14344 ;;
14345 * )
14346 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14347 host_xm_include_list="${host_xm_include_list} config/$f"
14348 ;;
14349 esac
14350 done
14351
14352 build_xm_file_list=
14353 for f in $build_xm_file; do
14354 case $f in
14355 ansidecl.h )
14356 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14357 build_xm_include_list="${build_xm_include_list} $f"
14358 ;;
14359 auto-build.h | auto-host.h )
14360 build_xm_file_list="${build_xm_file_list} $f"
14361 build_xm_include_list="${build_xm_include_list} $f"
14362 ;;
14363 * )
14364 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14365 build_xm_include_list="${build_xm_include_list} config/$f"
14366 ;;
14367 esac
14368 done
14369
14370 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14371 # cross-compiler which does not use the native headers and libraries.
14372 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14373 CROSS=
14374 ALL=all.internal
14375 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14376
14377 if test "x$with_build_sysroot" != x; then
14378 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14379 else
14380 # This value is used, even on a native system, because
14381 # CROSS_SYSTEM_HEADER_DIR is just
14382 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14383 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14384 fi
14385
14386 if test x$host != x$target
14387 then
14388 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14389 ALL=all.cross
14390 SYSTEM_HEADER_DIR=$build_system_header_dir
14391 case "$host","$target" in
14392 # Darwin crosses can use the host system's libraries and headers,
14393 # because of the fat library support. Of course, it must be the
14394 # same version of Darwin on both sides. Allow the user to
14395 # just say --target=foo-darwin without a version number to mean
14396 # "the version on this system".
14397 *-*-darwin*,*-*-darwin*)
14398 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14399 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14400 if test $hostos = $targetos -o $targetos = darwin ; then
14401 CROSS=
14402 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14403 with_headers=yes
14404 fi
14405 ;;
14406
14407 i?86-*-*,x86_64-*-* \
14408 | powerpc*-*-*,powerpc64*-*-*)
14409 CROSS="$CROSS -DNATIVE_CROSS" ;;
14410 esac
14411 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14412 SYSTEM_HEADER_DIR=$build_system_header_dir
14413 fi
14414
14415 # If this is a cross-compiler that does not
14416 # have its own set of headers then define
14417 # inhibit_libc
14418
14419 # If this is using newlib, without having the headers available now,
14420 # then define inhibit_libc in LIBGCC2_CFLAGS.
14421 # This prevents libgcc2 from containing any code which requires libc
14422 # support.
14423 : ${inhibit_libc=false}
14424 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14425 test x$with_newlib = xyes ; } &&
14426 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14427 inhibit_libc=true
14428 fi
14429
14430
14431 # When building gcc with a cross-compiler, we need to adjust things so
14432 # that the generator programs are still built with the native compiler.
14433 # Also, we cannot run fixincludes.
14434
14435 # These are the normal (build=host) settings:
14436 CC_FOR_BUILD='$(CC)'
14437 BUILD_CFLAGS='$(ALL_CFLAGS)'
14438 BUILD_LDFLAGS='$(LDFLAGS)'
14439 STMP_FIXINC=stmp-fixinc
14440
14441 # And these apply if build != host, or we are generating coverage data
14442 if test x$build != x$host || test "x$coverage_flags" != x
14443 then
14444 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14445 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14446 fi
14447
14448 # Expand extra_headers to include complete path.
14449 # This substitutes for lots of t-* files.
14450 extra_headers_list=
14451 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14452 for file in ${extra_headers} ; do
14453 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14454 done
14455
14456 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14457 if test x"$use_gcc_tgmath" = xyes
14458 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14459 fi
14460
14461 # Define collect2 in Makefile.
14462 case $host_can_use_collect2 in
14463 no) collect2= ;;
14464 *) collect2='collect2$(exeext)' ;;
14465 esac
14466
14467
14468 # Add a definition of USE_COLLECT2 if system wants one.
14469 case $use_collect2 in
14470 no) use_collect2= ;;
14471 "") ;;
14472 *)
14473 host_xm_defines="${host_xm_defines} USE_COLLECT2"
14474 xm_defines="${xm_defines} USE_COLLECT2"
14475 case $host_can_use_collect2 in
14476 no)
14477 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14478 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14479 { (exit 1); exit 1; }; }
14480 ;;
14481 esac
14482 ;;
14483 esac
14484
14485 # ---------------------------
14486 # Assembler & linker features
14487 # ---------------------------
14488
14489 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14490 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14491 # However when ld-new is first executed from the build tree, libtool will
14492 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14493 # to the build tree. While doing this we need to use the previous-stage
14494 # linker, or we have an infinite loop. The presence of a shell script as
14495 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14496 # the gcc/collect-ld script. So we need to know how libtool works, or
14497 # exec-tool will fail.
14498
14499
14500 case `pwd` in
14501 *\ * | *\ *)
14502 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14503 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14504 esac
14505
14506
14507
14508 macro_version='2.2.6'
14509 macro_revision='1.3012'
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523 ltmain="$ac_aux_dir/ltmain.sh"
14524
14525 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14526 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14527 if test "${lt_cv_path_SED+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530 # Loop through the user's path and test for sed and gsed.
14531 # Then use that list of sed's as ones to test for truncation.
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14534 do
14535 IFS=$as_save_IFS
14536 test -z "$as_dir" && as_dir=.
14537 for lt_ac_prog in sed gsed; do
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14540 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14541 fi
14542 done
14543 done
14544 done
14545 IFS=$as_save_IFS
14546 lt_ac_max=0
14547 lt_ac_count=0
14548 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14549 # along with /bin/sed that truncates output.
14550 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14551 test ! -f $lt_ac_sed && continue
14552 cat /dev/null > conftest.in
14553 lt_ac_count=0
14554 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14555 # Check for GNU sed and select it if it is found.
14556 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14557 lt_cv_path_SED=$lt_ac_sed
14558 break
14559 fi
14560 while true; do
14561 cat conftest.in conftest.in >conftest.tmp
14562 mv conftest.tmp conftest.in
14563 cp conftest.in conftest.nl
14564 echo >>conftest.nl
14565 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14566 cmp -s conftest.out conftest.nl || break
14567 # 10000 chars as input seems more than enough
14568 test $lt_ac_count -gt 10 && break
14569 lt_ac_count=`expr $lt_ac_count + 1`
14570 if test $lt_ac_count -gt $lt_ac_max; then
14571 lt_ac_max=$lt_ac_count
14572 lt_cv_path_SED=$lt_ac_sed
14573 fi
14574 done
14575 done
14576
14577 fi
14578
14579 SED=$lt_cv_path_SED
14580
14581 echo "$as_me:$LINENO: result: $SED" >&5
14582 echo "${ECHO_T}$SED" >&6
14583
14584 test -z "$SED" && SED=sed
14585 Xsed="$SED -e 1s/^X//"
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597 echo "$as_me:$LINENO: checking for fgrep" >&5
14598 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14599 if test "${ac_cv_prog_fgrep+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14603 then ac_cv_prog_fgrep='grep -F'
14604 else ac_cv_prog_fgrep='fgrep'
14605 fi
14606 fi
14607 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14608 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14609 FGREP=$ac_cv_prog_fgrep
14610
14611
14612 test -z "$GREP" && GREP=grep
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14633 if test "${with_gnu_ld+set}" = set; then
14634 withval="$with_gnu_ld"
14635 test "$withval" = no || with_gnu_ld=yes
14636 else
14637 with_gnu_ld=no
14638 fi;
14639 ac_prog=ld
14640 if test "$GCC" = yes; then
14641 # Check if gcc -print-prog-name=ld gives a path.
14642 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14644 case $host in
14645 *-*-mingw*)
14646 # gcc leaves a trailing carriage return which upsets mingw
14647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14648 *)
14649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14650 esac
14651 case $ac_prog in
14652 # Accept absolute paths.
14653 [\\/]* | ?:[\\/]*)
14654 re_direlt='/[^/][^/]*/\.\./'
14655 # Canonicalize the pathname of ld
14656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14659 done
14660 test -z "$LD" && LD="$ac_prog"
14661 ;;
14662 "")
14663 # If it fails, then pretend we aren't using GCC.
14664 ac_prog=ld
14665 ;;
14666 *)
14667 # If it is relative, then search for the first ld in PATH.
14668 with_gnu_ld=unknown
14669 ;;
14670 esac
14671 elif test "$with_gnu_ld" = yes; then
14672 echo "$as_me:$LINENO: checking for GNU ld" >&5
14673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14674 else
14675 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14677 fi
14678 if test "${lt_cv_path_LD+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681 if test -z "$LD"; then
14682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14683 for ac_dir in $PATH; do
14684 IFS="$lt_save_ifs"
14685 test -z "$ac_dir" && ac_dir=.
14686 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14687 lt_cv_path_LD="$ac_dir/$ac_prog"
14688 # Check to see if the program is GNU ld. I'd rather use --version,
14689 # but apparently some variants of GNU ld only accept -v.
14690 # Break only if it was the GNU/non-GNU ld that we prefer.
14691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14692 *GNU* | *'with BFD'*)
14693 test "$with_gnu_ld" != no && break
14694 ;;
14695 *)
14696 test "$with_gnu_ld" != yes && break
14697 ;;
14698 esac
14699 fi
14700 done
14701 IFS="$lt_save_ifs"
14702 else
14703 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14704 fi
14705 fi
14706
14707 LD="$lt_cv_path_LD"
14708 if test -n "$LD"; then
14709 echo "$as_me:$LINENO: result: $LD" >&5
14710 echo "${ECHO_T}$LD" >&6
14711 else
14712 echo "$as_me:$LINENO: result: no" >&5
14713 echo "${ECHO_T}no" >&6
14714 fi
14715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14717 { (exit 1); exit 1; }; }
14718 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14724 case `$LD -v 2>&1 </dev/null` in
14725 *GNU* | *'with BFD'*)
14726 lt_cv_prog_gnu_ld=yes
14727 ;;
14728 *)
14729 lt_cv_prog_gnu_ld=no
14730 ;;
14731 esac
14732 fi
14733 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14735 with_gnu_ld=$lt_cv_prog_gnu_ld
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14746 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14747 if test "${lt_cv_path_NM+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750 if test -n "$NM"; then
14751 # Let the user override the test.
14752 lt_cv_path_NM="$NM"
14753 else
14754 lt_nm_to_check="${ac_tool_prefix}nm"
14755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14756 lt_nm_to_check="$lt_nm_to_check nm"
14757 fi
14758 for lt_tmp_nm in $lt_nm_to_check; do
14759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14761 IFS="$lt_save_ifs"
14762 test -z "$ac_dir" && ac_dir=.
14763 tmp_nm="$ac_dir/$lt_tmp_nm"
14764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14765 # Check to see if the nm accepts a BSD-compat flag.
14766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14767 # nm: unknown option "B" ignored
14768 # Tru64's nm complains that /dev/null is an invalid object file
14769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14770 */dev/null* | *'Invalid file or object type'*)
14771 lt_cv_path_NM="$tmp_nm -B"
14772 break
14773 ;;
14774 *)
14775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14776 */dev/null*)
14777 lt_cv_path_NM="$tmp_nm -p"
14778 break
14779 ;;
14780 *)
14781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14782 continue # so that we can try to find one that supports BSD flags
14783 ;;
14784 esac
14785 ;;
14786 esac
14787 fi
14788 done
14789 IFS="$lt_save_ifs"
14790 done
14791 : ${lt_cv_path_NM=no}
14792 fi
14793 fi
14794 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14795 echo "${ECHO_T}$lt_cv_path_NM" >&6
14796 if test "$lt_cv_path_NM" != "no"; then
14797 NM="$lt_cv_path_NM"
14798 else
14799 # Didn't find any BSD compatible name lister, look for dumpbin.
14800 if test -n "$ac_tool_prefix"; then
14801 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14802 do
14803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14805 echo "$as_me:$LINENO: checking for $ac_word" >&5
14806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14807 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810 if test -n "$DUMPBIN"; then
14811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14812 else
14813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14814 for as_dir in $PATH
14815 do
14816 IFS=$as_save_IFS
14817 test -z "$as_dir" && as_dir=.
14818 for ac_exec_ext in '' $ac_executable_extensions; do
14819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14820 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14822 break 2
14823 fi
14824 done
14825 done
14826
14827 fi
14828 fi
14829 DUMPBIN=$ac_cv_prog_DUMPBIN
14830 if test -n "$DUMPBIN"; then
14831 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14832 echo "${ECHO_T}$DUMPBIN" >&6
14833 else
14834 echo "$as_me:$LINENO: result: no" >&5
14835 echo "${ECHO_T}no" >&6
14836 fi
14837
14838 test -n "$DUMPBIN" && break
14839 done
14840 fi
14841 if test -z "$DUMPBIN"; then
14842 ac_ct_DUMPBIN=$DUMPBIN
14843 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14844 do
14845 # Extract the first word of "$ac_prog", so it can be a program name with args.
14846 set dummy $ac_prog; ac_word=$2
14847 echo "$as_me:$LINENO: checking for $ac_word" >&5
14848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14849 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 if test -n "$ac_ct_DUMPBIN"; then
14853 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14854 else
14855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856 for as_dir in $PATH
14857 do
14858 IFS=$as_save_IFS
14859 test -z "$as_dir" && as_dir=.
14860 for ac_exec_ext in '' $ac_executable_extensions; do
14861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14862 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14864 break 2
14865 fi
14866 done
14867 done
14868
14869 fi
14870 fi
14871 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14872 if test -n "$ac_ct_DUMPBIN"; then
14873 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14874 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14875 else
14876 echo "$as_me:$LINENO: result: no" >&5
14877 echo "${ECHO_T}no" >&6
14878 fi
14879
14880 test -n "$ac_ct_DUMPBIN" && break
14881 done
14882 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14883
14884 DUMPBIN=$ac_ct_DUMPBIN
14885 fi
14886
14887
14888 if test "$DUMPBIN" != ":"; then
14889 NM="$DUMPBIN"
14890 fi
14891 fi
14892 test -z "$NM" && NM=nm
14893
14894
14895
14896
14897
14898
14899 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14900 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14901 if test "${lt_cv_nm_interface+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904 lt_cv_nm_interface="BSD nm"
14905 echo "int some_variable = 0;" > conftest.$ac_ext
14906 (eval echo "\"\$as_me:14906: $ac_compile\"" >&5)
14907 (eval "$ac_compile" 2>conftest.err)
14908 cat conftest.err >&5
14909 (eval echo "\"\$as_me:14909: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14910 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14911 cat conftest.err >&5
14912 (eval echo "\"\$as_me:14912: output\"" >&5)
14913 cat conftest.out >&5
14914 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14915 lt_cv_nm_interface="MS dumpbin"
14916 fi
14917 rm -f conftest*
14918 fi
14919 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14920 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14921
14922 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14923 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14924 LN_S=$as_ln_s
14925 if test "$LN_S" = "ln -s"; then
14926 echo "$as_me:$LINENO: result: yes" >&5
14927 echo "${ECHO_T}yes" >&6
14928 else
14929 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14930 echo "${ECHO_T}no, using $LN_S" >&6
14931 fi
14932
14933 # find the maximum length of command line arguments
14934 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14935 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14936 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939 i=0
14940 teststring="ABCD"
14941
14942 case $build_os in
14943 msdosdjgpp*)
14944 # On DJGPP, this test can blow up pretty badly due to problems in libc
14945 # (any single argument exceeding 2000 bytes causes a buffer overrun
14946 # during glob expansion). Even if it were fixed, the result of this
14947 # check would be larger than it should be.
14948 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14949 ;;
14950
14951 gnu*)
14952 # Under GNU Hurd, this test is not required because there is
14953 # no limit to the length of command line arguments.
14954 # Libtool will interpret -1 as no limit whatsoever
14955 lt_cv_sys_max_cmd_len=-1;
14956 ;;
14957
14958 cygwin* | mingw* | cegcc*)
14959 # On Win9x/ME, this test blows up -- it succeeds, but takes
14960 # about 5 minutes as the teststring grows exponentially.
14961 # Worse, since 9x/ME are not pre-emptively multitasking,
14962 # you end up with a "frozen" computer, even though with patience
14963 # the test eventually succeeds (with a max line length of 256k).
14964 # Instead, let's just punt: use the minimum linelength reported by
14965 # all of the supported platforms: 8192 (on NT/2K/XP).
14966 lt_cv_sys_max_cmd_len=8192;
14967 ;;
14968
14969 amigaos*)
14970 # On AmigaOS with pdksh, this test takes hours, literally.
14971 # So we just punt and use a minimum line length of 8192.
14972 lt_cv_sys_max_cmd_len=8192;
14973 ;;
14974
14975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14976 # This has been around since 386BSD, at least. Likely further.
14977 if test -x /sbin/sysctl; then
14978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14979 elif test -x /usr/sbin/sysctl; then
14980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14981 else
14982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14983 fi
14984 # And add a safety zone
14985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14987 ;;
14988
14989 interix*)
14990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14991 lt_cv_sys_max_cmd_len=196608
14992 ;;
14993
14994 osf*)
14995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14997 # nice to cause kernel panics so lets avoid the loop below.
14998 # First set a reasonable default.
14999 lt_cv_sys_max_cmd_len=16384
15000 #
15001 if test -x /sbin/sysconfig; then
15002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15004 esac
15005 fi
15006 ;;
15007 sco3.2v5*)
15008 lt_cv_sys_max_cmd_len=102400
15009 ;;
15010 sysv5* | sco5v6* | sysv4.2uw2*)
15011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15012 if test -n "$kargmax"; then
15013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15014 else
15015 lt_cv_sys_max_cmd_len=32768
15016 fi
15017 ;;
15018 *)
15019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15020 if test -n "$lt_cv_sys_max_cmd_len"; then
15021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15023 else
15024 # Make teststring a little bigger before we do anything with it.
15025 # a 1K string should be a reasonable start.
15026 for i in 1 2 3 4 5 6 7 8 ; do
15027 teststring=$teststring$teststring
15028 done
15029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15030 # If test is not a shell built-in, we'll probably end up computing a
15031 # maximum length that is only half of the actual maximum length, but
15032 # we can't tell.
15033 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
15034 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
15035 test $i != 17 # 1/2 MB should be enough
15036 do
15037 i=`expr $i + 1`
15038 teststring=$teststring$teststring
15039 done
15040 # Only check the string length outside the loop.
15041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15042 teststring=
15043 # Add a significant safety factor because C++ compilers can tack on
15044 # massive amounts of additional arguments before passing them to the
15045 # linker. It appears as though 1/2 is a usable value.
15046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15047 fi
15048 ;;
15049 esac
15050
15051 fi
15052
15053 if test -n $lt_cv_sys_max_cmd_len ; then
15054 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
15055 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
15056 else
15057 echo "$as_me:$LINENO: result: none" >&5
15058 echo "${ECHO_T}none" >&6
15059 fi
15060 max_cmd_len=$lt_cv_sys_max_cmd_len
15061
15062
15063
15064
15065
15066
15067 : ${CP="cp -f"}
15068 : ${MV="mv -f"}
15069 : ${RM="rm -f"}
15070
15071 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
15072 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
15073 # Try some XSI features
15074 xsi_shell=no
15075 ( _lt_dummy="a/b/c"
15076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
15077 = c,a/b,, \
15078 && eval 'test $(( 1 + 1 )) -eq 2 \
15079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
15080 && xsi_shell=yes
15081 echo "$as_me:$LINENO: result: $xsi_shell" >&5
15082 echo "${ECHO_T}$xsi_shell" >&6
15083
15084
15085 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
15086 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
15087 lt_shell_append=no
15088 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
15089 >/dev/null 2>&1 \
15090 && lt_shell_append=yes
15091 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
15092 echo "${ECHO_T}$lt_shell_append" >&6
15093
15094
15095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15096 lt_unset=unset
15097 else
15098 lt_unset=false
15099 fi
15100
15101
15102
15103
15104
15105 # test EBCDIC or ASCII
15106 case `echo X|tr X '\101'` in
15107 A) # ASCII based system
15108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15109 lt_SP2NL='tr \040 \012'
15110 lt_NL2SP='tr \015\012 \040\040'
15111 ;;
15112 *) # EBCDIC based system
15113 lt_SP2NL='tr \100 \n'
15114 lt_NL2SP='tr \r\n \100\100'
15115 ;;
15116 esac
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
15127 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
15128 if test "${lt_cv_ld_reload_flag+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131 lt_cv_ld_reload_flag='-r'
15132 fi
15133 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
15134 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
15135 reload_flag=$lt_cv_ld_reload_flag
15136 case $reload_flag in
15137 "" | " "*) ;;
15138 *) reload_flag=" $reload_flag" ;;
15139 esac
15140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
15141 case $host_os in
15142 darwin*)
15143 if test "$GCC" = yes; then
15144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
15145 else
15146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
15147 fi
15148 ;;
15149 esac
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159 if test -n "$ac_tool_prefix"; then
15160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
15162 echo "$as_me:$LINENO: checking for $ac_word" >&5
15163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15164 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 if test -n "$OBJDUMP"; then
15168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15169 else
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15172 do
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15180 fi
15181 done
15182 done
15183
15184 fi
15185 fi
15186 OBJDUMP=$ac_cv_prog_OBJDUMP
15187 if test -n "$OBJDUMP"; then
15188 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
15189 echo "${ECHO_T}$OBJDUMP" >&6
15190 else
15191 echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15193 fi
15194
15195 fi
15196 if test -z "$ac_cv_prog_OBJDUMP"; then
15197 ac_ct_OBJDUMP=$OBJDUMP
15198 # Extract the first word of "objdump", so it can be a program name with args.
15199 set dummy objdump; ac_word=$2
15200 echo "$as_me:$LINENO: checking for $ac_word" >&5
15201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15202 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205 if test -n "$ac_ct_OBJDUMP"; then
15206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15207 else
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15210 do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
15216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 break 2
15218 fi
15219 done
15220 done
15221
15222 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
15223 fi
15224 fi
15225 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15226 if test -n "$ac_ct_OBJDUMP"; then
15227 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
15228 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
15229 else
15230 echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6
15232 fi
15233
15234 OBJDUMP=$ac_ct_OBJDUMP
15235 else
15236 OBJDUMP="$ac_cv_prog_OBJDUMP"
15237 fi
15238
15239 test -z "$OBJDUMP" && OBJDUMP=objdump
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
15250 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
15251 if test "${lt_cv_deplibs_check_method+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254 lt_cv_file_magic_cmd='$MAGIC_CMD'
15255 lt_cv_file_magic_test_file=
15256 lt_cv_deplibs_check_method='unknown'
15257 # Need to set the preceding variable on all platforms that support
15258 # interlibrary dependencies.
15259 # 'none' -- dependencies not supported.
15260 # `unknown' -- same as none, but documents that we really don't know.
15261 # 'pass_all' -- all dependencies passed with no checks.
15262 # 'test_compile' -- check by making test program.
15263 # 'file_magic [[regex]]' -- check by looking for files in library path
15264 # which responds to the $file_magic_cmd with a given extended regex.
15265 # If you have `file' or equivalent on your system and you're not sure
15266 # whether `pass_all' will *always* work, you probably want this one.
15267
15268 case $host_os in
15269 aix[4-9]*)
15270 lt_cv_deplibs_check_method=pass_all
15271 ;;
15272
15273 beos*)
15274 lt_cv_deplibs_check_method=pass_all
15275 ;;
15276
15277 bsdi[45]*)
15278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15279 lt_cv_file_magic_cmd='/usr/bin/file -L'
15280 lt_cv_file_magic_test_file=/shlib/libc.so
15281 ;;
15282
15283 cygwin*)
15284 # func_win32_libid is a shell function defined in ltmain.sh
15285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15286 lt_cv_file_magic_cmd='func_win32_libid'
15287 ;;
15288
15289 mingw* | pw32*)
15290 # Base MSYS/MinGW do not provide the 'file' command needed by
15291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
15292 # unless we find 'file', for example because we are cross-compiling.
15293 if ( file / ) >/dev/null 2>&1; then
15294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15295 lt_cv_file_magic_cmd='func_win32_libid'
15296 else
15297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15298 lt_cv_file_magic_cmd='$OBJDUMP -f'
15299 fi
15300 ;;
15301
15302 cegcc)
15303 # use the weaker test based on 'objdump'. See mingw*.
15304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15305 lt_cv_file_magic_cmd='$OBJDUMP -f'
15306 ;;
15307
15308 darwin* | rhapsody*)
15309 lt_cv_deplibs_check_method=pass_all
15310 ;;
15311
15312 freebsd* | dragonfly*)
15313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15314 case $host_cpu in
15315 i*86 )
15316 # Not sure whether the presence of OpenBSD here was a mistake.
15317 # Let's accept both of them until this is cleared up.
15318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15319 lt_cv_file_magic_cmd=/usr/bin/file
15320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15321 ;;
15322 esac
15323 else
15324 lt_cv_deplibs_check_method=pass_all
15325 fi
15326 ;;
15327
15328 gnu*)
15329 lt_cv_deplibs_check_method=pass_all
15330 ;;
15331
15332 hpux10.20* | hpux11*)
15333 lt_cv_file_magic_cmd=/usr/bin/file
15334 case $host_cpu in
15335 ia64*)
15336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15338 ;;
15339 hppa*64*)
15340 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]'
15341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15342 ;;
15343 *)
15344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
15346 ;;
15347 esac
15348 ;;
15349
15350 interix[3-9]*)
15351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15353 ;;
15354
15355 irix5* | irix6* | nonstopux*)
15356 case $LD in
15357 *-32|*"-32 ") libmagic=32-bit;;
15358 *-n32|*"-n32 ") libmagic=N32;;
15359 *-64|*"-64 ") libmagic=64-bit;;
15360 *) libmagic=never-match;;
15361 esac
15362 lt_cv_deplibs_check_method=pass_all
15363 ;;
15364
15365 # This must be Linux ELF.
15366 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15367 lt_cv_deplibs_check_method=pass_all
15368 ;;
15369
15370 netbsd*)
15371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15373 else
15374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15375 fi
15376 ;;
15377
15378 newos6*)
15379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15380 lt_cv_file_magic_cmd=/usr/bin/file
15381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
15382 ;;
15383
15384 *nto* | *qnx*)
15385 lt_cv_deplibs_check_method=pass_all
15386 ;;
15387
15388 openbsd*)
15389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15391 else
15392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15393 fi
15394 ;;
15395
15396 osf3* | osf4* | osf5*)
15397 lt_cv_deplibs_check_method=pass_all
15398 ;;
15399
15400 rdos*)
15401 lt_cv_deplibs_check_method=pass_all
15402 ;;
15403
15404 solaris*)
15405 lt_cv_deplibs_check_method=pass_all
15406 ;;
15407
15408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15409 lt_cv_deplibs_check_method=pass_all
15410 ;;
15411
15412 sysv4 | sysv4.3*)
15413 case $host_vendor in
15414 motorola)
15415 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]'
15416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15417 ;;
15418 ncr)
15419 lt_cv_deplibs_check_method=pass_all
15420 ;;
15421 sequent)
15422 lt_cv_file_magic_cmd='/bin/file'
15423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15424 ;;
15425 sni)
15426 lt_cv_file_magic_cmd='/bin/file'
15427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15428 lt_cv_file_magic_test_file=/lib/libc.so
15429 ;;
15430 siemens)
15431 lt_cv_deplibs_check_method=pass_all
15432 ;;
15433 pc)
15434 lt_cv_deplibs_check_method=pass_all
15435 ;;
15436 esac
15437 ;;
15438
15439 tpf*)
15440 lt_cv_deplibs_check_method=pass_all
15441 ;;
15442 esac
15443
15444 fi
15445 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15446 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15447 file_magic_cmd=$lt_cv_file_magic_cmd
15448 deplibs_check_method=$lt_cv_deplibs_check_method
15449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462 if test -n "$ac_tool_prefix"; then
15463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15464 set dummy ${ac_tool_prefix}ar; ac_word=$2
15465 echo "$as_me:$LINENO: checking for $ac_word" >&5
15466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15467 if test "${ac_cv_prog_AR+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 if test -n "$AR"; then
15471 ac_cv_prog_AR="$AR" # Let the user override the test.
15472 else
15473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15474 for as_dir in $PATH
15475 do
15476 IFS=$as_save_IFS
15477 test -z "$as_dir" && as_dir=.
15478 for ac_exec_ext in '' $ac_executable_extensions; do
15479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15480 ac_cv_prog_AR="${ac_tool_prefix}ar"
15481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15482 break 2
15483 fi
15484 done
15485 done
15486
15487 fi
15488 fi
15489 AR=$ac_cv_prog_AR
15490 if test -n "$AR"; then
15491 echo "$as_me:$LINENO: result: $AR" >&5
15492 echo "${ECHO_T}$AR" >&6
15493 else
15494 echo "$as_me:$LINENO: result: no" >&5
15495 echo "${ECHO_T}no" >&6
15496 fi
15497
15498 fi
15499 if test -z "$ac_cv_prog_AR"; then
15500 ac_ct_AR=$AR
15501 # Extract the first word of "ar", so it can be a program name with args.
15502 set dummy ar; ac_word=$2
15503 echo "$as_me:$LINENO: checking for $ac_word" >&5
15504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508 if test -n "$ac_ct_AR"; then
15509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15510 else
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $PATH
15513 do
15514 IFS=$as_save_IFS
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_prog_ac_ct_AR="ar"
15519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15520 break 2
15521 fi
15522 done
15523 done
15524
15525 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15526 fi
15527 fi
15528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15529 if test -n "$ac_ct_AR"; then
15530 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15531 echo "${ECHO_T}$ac_ct_AR" >&6
15532 else
15533 echo "$as_me:$LINENO: result: no" >&5
15534 echo "${ECHO_T}no" >&6
15535 fi
15536
15537 AR=$ac_ct_AR
15538 else
15539 AR="$ac_cv_prog_AR"
15540 fi
15541
15542 test -z "$AR" && AR=ar
15543 test -z "$AR_FLAGS" && AR_FLAGS=cru
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555 if test -n "$ac_tool_prefix"; then
15556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15557 set dummy ${ac_tool_prefix}strip; ac_word=$2
15558 echo "$as_me:$LINENO: checking for $ac_word" >&5
15559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15560 if test "${ac_cv_prog_STRIP+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 if test -n "$STRIP"; then
15564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15565 else
15566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567 for as_dir in $PATH
15568 do
15569 IFS=$as_save_IFS
15570 test -z "$as_dir" && as_dir=.
15571 for ac_exec_ext in '' $ac_executable_extensions; do
15572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15575 break 2
15576 fi
15577 done
15578 done
15579
15580 fi
15581 fi
15582 STRIP=$ac_cv_prog_STRIP
15583 if test -n "$STRIP"; then
15584 echo "$as_me:$LINENO: result: $STRIP" >&5
15585 echo "${ECHO_T}$STRIP" >&6
15586 else
15587 echo "$as_me:$LINENO: result: no" >&5
15588 echo "${ECHO_T}no" >&6
15589 fi
15590
15591 fi
15592 if test -z "$ac_cv_prog_STRIP"; then
15593 ac_ct_STRIP=$STRIP
15594 # Extract the first word of "strip", so it can be a program name with args.
15595 set dummy strip; ac_word=$2
15596 echo "$as_me:$LINENO: checking for $ac_word" >&5
15597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 if test -n "$ac_ct_STRIP"; then
15602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15603 else
15604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15605 for as_dir in $PATH
15606 do
15607 IFS=$as_save_IFS
15608 test -z "$as_dir" && as_dir=.
15609 for ac_exec_ext in '' $ac_executable_extensions; do
15610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15611 ac_cv_prog_ac_ct_STRIP="strip"
15612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15613 break 2
15614 fi
15615 done
15616 done
15617
15618 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15619 fi
15620 fi
15621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15622 if test -n "$ac_ct_STRIP"; then
15623 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15624 echo "${ECHO_T}$ac_ct_STRIP" >&6
15625 else
15626 echo "$as_me:$LINENO: result: no" >&5
15627 echo "${ECHO_T}no" >&6
15628 fi
15629
15630 STRIP=$ac_ct_STRIP
15631 else
15632 STRIP="$ac_cv_prog_STRIP"
15633 fi
15634
15635 test -z "$STRIP" && STRIP=:
15636
15637
15638
15639
15640
15641
15642 if test -n "$ac_tool_prefix"; then
15643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15645 echo "$as_me:$LINENO: checking for $ac_word" >&5
15646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15647 if test "${ac_cv_prog_RANLIB+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650 if test -n "$RANLIB"; then
15651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15652 else
15653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15654 for as_dir in $PATH
15655 do
15656 IFS=$as_save_IFS
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15662 break 2
15663 fi
15664 done
15665 done
15666
15667 fi
15668 fi
15669 RANLIB=$ac_cv_prog_RANLIB
15670 if test -n "$RANLIB"; then
15671 echo "$as_me:$LINENO: result: $RANLIB" >&5
15672 echo "${ECHO_T}$RANLIB" >&6
15673 else
15674 echo "$as_me:$LINENO: result: no" >&5
15675 echo "${ECHO_T}no" >&6
15676 fi
15677
15678 fi
15679 if test -z "$ac_cv_prog_RANLIB"; then
15680 ac_ct_RANLIB=$RANLIB
15681 # Extract the first word of "ranlib", so it can be a program name with args.
15682 set dummy ranlib; ac_word=$2
15683 echo "$as_me:$LINENO: checking for $ac_word" >&5
15684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688 if test -n "$ac_ct_RANLIB"; then
15689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15690 else
15691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15692 for as_dir in $PATH
15693 do
15694 IFS=$as_save_IFS
15695 test -z "$as_dir" && as_dir=.
15696 for ac_exec_ext in '' $ac_executable_extensions; do
15697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15698 ac_cv_prog_ac_ct_RANLIB="ranlib"
15699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15700 break 2
15701 fi
15702 done
15703 done
15704
15705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15706 fi
15707 fi
15708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15709 if test -n "$ac_ct_RANLIB"; then
15710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15712 else
15713 echo "$as_me:$LINENO: result: no" >&5
15714 echo "${ECHO_T}no" >&6
15715 fi
15716
15717 RANLIB=$ac_ct_RANLIB
15718 else
15719 RANLIB="$ac_cv_prog_RANLIB"
15720 fi
15721
15722 test -z "$RANLIB" && RANLIB=:
15723
15724
15725
15726
15727
15728
15729 # Determine commands to create old-style static archives.
15730 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15731 old_postinstall_cmds='chmod 644 $oldlib'
15732 old_postuninstall_cmds=
15733
15734 if test -n "$RANLIB"; then
15735 case $host_os in
15736 openbsd*)
15737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15738 ;;
15739 *)
15740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15741 ;;
15742 esac
15743 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15744 fi
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779 # If no C compiler was specified, use CC.
15780 LTCC=${LTCC-"$CC"}
15781
15782 # If no C compiler flags were specified, use CFLAGS.
15783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15784
15785 # Allow CC to be a program name with arguments.
15786 compiler=$CC
15787
15788
15789 # Check for command to grab the raw symbol name followed by C symbol from nm.
15790 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15791 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15792 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795
15796 # These are sane defaults that work on at least a few old systems.
15797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15798
15799 # Character class describing NM global symbol codes.
15800 symcode='[BCDEGRST]'
15801
15802 # Regexp to match symbols that can be accessed directly from C.
15803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15804
15805 # Define system-specific variables.
15806 case $host_os in
15807 aix*)
15808 symcode='[BCDT]'
15809 ;;
15810 cygwin* | mingw* | pw32* | cegcc*)
15811 symcode='[ABCDGISTW]'
15812 ;;
15813 hpux*)
15814 if test "$host_cpu" = ia64; then
15815 symcode='[ABCDEGRST]'
15816 fi
15817 ;;
15818 irix* | nonstopux*)
15819 symcode='[BCDEGRST]'
15820 ;;
15821 osf*)
15822 symcode='[BCDEGQRST]'
15823 ;;
15824 solaris*)
15825 symcode='[BDRT]'
15826 ;;
15827 sco3.2v5*)
15828 symcode='[DT]'
15829 ;;
15830 sysv4.2uw2*)
15831 symcode='[DT]'
15832 ;;
15833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15834 symcode='[ABDT]'
15835 ;;
15836 sysv4)
15837 symcode='[DFNSTU]'
15838 ;;
15839 esac
15840
15841 # If we're using GNU nm, then use its standard symbol codes.
15842 case `$NM -V 2>&1` in
15843 *GNU* | *'with BFD'*)
15844 symcode='[ABCDGIRSTW]' ;;
15845 esac
15846
15847 # Transform an extracted symbol line into a proper C declaration.
15848 # Some systems (esp. on ia64) link data and code symbols differently,
15849 # so use this general approach.
15850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15851
15852 # Transform an extracted symbol line into symbol name and symbol address
15853 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15854 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
15855
15856 # Handle CRLF in mingw tool chain
15857 opt_cr=
15858 case $build_os in
15859 mingw*)
15860 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15861 ;;
15862 esac
15863
15864 # Try without a prefix underscore, then with it.
15865 for ac_symprfx in "" "_"; do
15866
15867 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15868 symxfrm="\\1 $ac_symprfx\\2 \\2"
15869
15870 # Write the raw and C identifiers.
15871 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15872 # Fake it for dumpbin and say T for any non-static function
15873 # and D for any global variable.
15874 # Also find C++ and __fastcall symbols from MSVC++,
15875 # which start with @ or ?.
15876 lt_cv_sys_global_symbol_pipe="$AWK '"\
15877 " {last_section=section; section=\$ 3};"\
15878 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15879 " \$ 0!~/External *\|/{next};"\
15880 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15881 " {if(hide[section]) next};"\
15882 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15883 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15884 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15885 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15886 " ' prfx=^$ac_symprfx"
15887 else
15888 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15889 fi
15890
15891 # Check to see that the pipe works correctly.
15892 pipe_works=no
15893
15894 rm -f conftest*
15895 cat > conftest.$ac_ext <<_LT_EOF
15896 #ifdef __cplusplus
15897 extern "C" {
15898 #endif
15899 char nm_test_var;
15900 void nm_test_func(void);
15901 void nm_test_func(void){}
15902 #ifdef __cplusplus
15903 }
15904 #endif
15905 int main(){nm_test_var='a';nm_test_func();return(0);}
15906 _LT_EOF
15907
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; then
15913 # Now try to grab the symbols.
15914 nlist=conftest.nm
15915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15917 ac_status=$?
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } && test -s "$nlist"; then
15920 # Try sorting and uniquifying the output.
15921 if sort "$nlist" | uniq > "$nlist"T; then
15922 mv -f "$nlist"T "$nlist"
15923 else
15924 rm -f "$nlist"T
15925 fi
15926
15927 # Make sure that we snagged all the symbols we need.
15928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15930 cat <<_LT_EOF > conftest.$ac_ext
15931 #ifdef __cplusplus
15932 extern "C" {
15933 #endif
15934
15935 _LT_EOF
15936 # Now generate the symbol file.
15937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15938
15939 cat <<_LT_EOF >> conftest.$ac_ext
15940
15941 /* The mapping between symbol names and symbols. */
15942 const struct {
15943 const char *name;
15944 void *address;
15945 }
15946 lt__PROGRAM__LTX_preloaded_symbols[] =
15947 {
15948 { "@PROGRAM@", (void *) 0 },
15949 _LT_EOF
15950 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15951 cat <<\_LT_EOF >> conftest.$ac_ext
15952 {0, (void *) 0}
15953 };
15954
15955 /* This works around a problem in FreeBSD linker */
15956 #ifdef FREEBSD_WORKAROUND
15957 static const void *lt_preloaded_setup() {
15958 return lt__PROGRAM__LTX_preloaded_symbols;
15959 }
15960 #endif
15961
15962 #ifdef __cplusplus
15963 }
15964 #endif
15965 _LT_EOF
15966 # Now try linking the two files.
15967 mv conftest.$ac_objext conftstm.$ac_objext
15968 lt_save_LIBS="$LIBS"
15969 lt_save_CFLAGS="$CFLAGS"
15970 LIBS="conftstm.$ac_objext"
15971 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15974 ac_status=$?
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && test -s conftest${ac_exeext}; then
15977 pipe_works=yes
15978 fi
15979 LIBS="$lt_save_LIBS"
15980 CFLAGS="$lt_save_CFLAGS"
15981 else
15982 echo "cannot find nm_test_func in $nlist" >&5
15983 fi
15984 else
15985 echo "cannot find nm_test_var in $nlist" >&5
15986 fi
15987 else
15988 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15989 fi
15990 else
15991 echo "$progname: failed program was:" >&5
15992 cat conftest.$ac_ext >&5
15993 fi
15994 rm -rf conftest* conftst*
15995
15996 # Do not use the global_symbol_pipe unless it works.
15997 if test "$pipe_works" = yes; then
15998 break
15999 else
16000 lt_cv_sys_global_symbol_pipe=
16001 fi
16002 done
16003
16004 fi
16005
16006 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16007 lt_cv_sys_global_symbol_to_cdecl=
16008 fi
16009 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16010 echo "$as_me:$LINENO: result: failed" >&5
16011 echo "${ECHO_T}failed" >&6
16012 else
16013 echo "$as_me:$LINENO: result: ok" >&5
16014 echo "${ECHO_T}ok" >&6
16015 fi
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
16039 if test "${enable_libtool_lock+set}" = set; then
16040 enableval="$enable_libtool_lock"
16041
16042 fi;
16043 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16044
16045 # Some flags need to be propagated to the compiler or linker for good
16046 # libtool support.
16047 case $host in
16048 ia64-*-hpux*)
16049 # Find out which ABI we are using.
16050 echo 'int i;' > conftest.$ac_ext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16052 (eval $ac_compile) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; then
16056 case `/usr/bin/file conftest.$ac_objext` in
16057 *ELF-32*)
16058 HPUX_IA64_MODE="32"
16059 ;;
16060 *ELF-64*)
16061 HPUX_IA64_MODE="64"
16062 ;;
16063 esac
16064 fi
16065 rm -rf conftest*
16066 ;;
16067 *-*-irix6*)
16068 # Find out which ABI we are using.
16069 echo '#line 16069 "configure"' > conftest.$ac_ext
16070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16071 (eval $ac_compile) 2>&5
16072 ac_status=$?
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; then
16075 if test "$lt_cv_prog_gnu_ld" = yes; then
16076 case `/usr/bin/file conftest.$ac_objext` in
16077 *32-bit*)
16078 LD="${LD-ld} -melf32bsmip"
16079 ;;
16080 *N32*)
16081 LD="${LD-ld} -melf32bmipn32"
16082 ;;
16083 *64-bit*)
16084 LD="${LD-ld} -melf64bmip"
16085 ;;
16086 esac
16087 else
16088 case `/usr/bin/file conftest.$ac_objext` in
16089 *32-bit*)
16090 LD="${LD-ld} -32"
16091 ;;
16092 *N32*)
16093 LD="${LD-ld} -n32"
16094 ;;
16095 *64-bit*)
16096 LD="${LD-ld} -64"
16097 ;;
16098 esac
16099 fi
16100 fi
16101 rm -rf conftest*
16102 ;;
16103
16104 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
16105 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
16106 # Find out which ABI we are using.
16107 echo 'int i;' > conftest.$ac_ext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109 (eval $ac_compile) 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; then
16113 case `/usr/bin/file conftest.o` in
16114 *32-bit*)
16115 case $host in
16116 x86_64-*kfreebsd*-gnu)
16117 LD="${LD-ld} -m elf_i386_fbsd"
16118 ;;
16119 x86_64-*linux*)
16120 LD="${LD-ld} -m elf_i386"
16121 ;;
16122 ppc64-*linux*|powerpc64-*linux*)
16123 LD="${LD-ld} -m elf32ppclinux"
16124 ;;
16125 s390x-*linux*)
16126 LD="${LD-ld} -m elf_s390"
16127 ;;
16128 sparc64-*linux*)
16129 LD="${LD-ld} -m elf32_sparc"
16130 ;;
16131 esac
16132 ;;
16133 *64-bit*)
16134 case $host in
16135 x86_64-*kfreebsd*-gnu)
16136 LD="${LD-ld} -m elf_x86_64_fbsd"
16137 ;;
16138 x86_64-*linux*)
16139 LD="${LD-ld} -m elf_x86_64"
16140 ;;
16141 ppc*-*linux*|powerpc*-*linux*)
16142 LD="${LD-ld} -m elf64ppc"
16143 ;;
16144 s390*-*linux*|s390*-*tpf*)
16145 LD="${LD-ld} -m elf64_s390"
16146 ;;
16147 sparc*-*linux*)
16148 LD="${LD-ld} -m elf64_sparc"
16149 ;;
16150 esac
16151 ;;
16152 esac
16153 fi
16154 rm -rf conftest*
16155 ;;
16156
16157 *-*-sco3.2v5*)
16158 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16159 SAVE_CFLAGS="$CFLAGS"
16160 CFLAGS="$CFLAGS -belf"
16161 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
16162 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
16163 if test "${lt_cv_cc_needs_belf+set}" = set; then
16164 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166 ac_ext=c
16167 ac_cpp='$CPP $CPPFLAGS'
16168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16171
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178
16179 int
16180 main ()
16181 {
16182
16183 ;
16184 return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16190 ac_status=$?
16191 grep -v '^ *+' conftest.er1 >conftest.err
16192 rm -f conftest.er1
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try='test -s conftest$ac_exeext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 lt_cv_cc_needs_belf=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 lt_cv_cc_needs_belf=no
16215 fi
16216 rm -f conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16218 ac_ext=c
16219 ac_cpp='$CPP $CPPFLAGS'
16220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16223
16224 fi
16225 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
16226 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
16227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16229 CFLAGS="$SAVE_CFLAGS"
16230 fi
16231 ;;
16232 sparc*-*solaris*)
16233 # Find out which ABI we are using.
16234 echo 'int i;' > conftest.$ac_ext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; then
16240 case `/usr/bin/file conftest.o` in
16241 *64-bit*)
16242 case $lt_cv_prog_gnu_ld in
16243 yes*) LD="${LD-ld} -m elf64_sparc" ;;
16244 *)
16245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16246 LD="${LD-ld} -64"
16247 fi
16248 ;;
16249 esac
16250 ;;
16251 esac
16252 fi
16253 rm -rf conftest*
16254 ;;
16255 esac
16256
16257 need_locks="$enable_libtool_lock"
16258
16259
16260 case $host_os in
16261 rhapsody* | darwin*)
16262 if test -n "$ac_tool_prefix"; then
16263 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
16264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
16265 echo "$as_me:$LINENO: checking for $ac_word" >&5
16266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270 if test -n "$DSYMUTIL"; then
16271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
16272 else
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274 for as_dir in $PATH
16275 do
16276 IFS=$as_save_IFS
16277 test -z "$as_dir" && as_dir=.
16278 for ac_exec_ext in '' $ac_executable_extensions; do
16279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
16281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16282 break 2
16283 fi
16284 done
16285 done
16286
16287 fi
16288 fi
16289 DSYMUTIL=$ac_cv_prog_DSYMUTIL
16290 if test -n "$DSYMUTIL"; then
16291 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
16292 echo "${ECHO_T}$DSYMUTIL" >&6
16293 else
16294 echo "$as_me:$LINENO: result: no" >&5
16295 echo "${ECHO_T}no" >&6
16296 fi
16297
16298 fi
16299 if test -z "$ac_cv_prog_DSYMUTIL"; then
16300 ac_ct_DSYMUTIL=$DSYMUTIL
16301 # Extract the first word of "dsymutil", so it can be a program name with args.
16302 set dummy dsymutil; ac_word=$2
16303 echo "$as_me:$LINENO: checking for $ac_word" >&5
16304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16305 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 else
16308 if test -n "$ac_ct_DSYMUTIL"; then
16309 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
16310 else
16311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16312 for as_dir in $PATH
16313 do
16314 IFS=$as_save_IFS
16315 test -z "$as_dir" && as_dir=.
16316 for ac_exec_ext in '' $ac_executable_extensions; do
16317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16318 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
16319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16320 break 2
16321 fi
16322 done
16323 done
16324
16325 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
16326 fi
16327 fi
16328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
16329 if test -n "$ac_ct_DSYMUTIL"; then
16330 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
16331 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
16332 else
16333 echo "$as_me:$LINENO: result: no" >&5
16334 echo "${ECHO_T}no" >&6
16335 fi
16336
16337 DSYMUTIL=$ac_ct_DSYMUTIL
16338 else
16339 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
16340 fi
16341
16342 if test -n "$ac_tool_prefix"; then
16343 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
16344 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
16345 echo "$as_me:$LINENO: checking for $ac_word" >&5
16346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16347 if test "${ac_cv_prog_NMEDIT+set}" = set; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350 if test -n "$NMEDIT"; then
16351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
16352 else
16353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16354 for as_dir in $PATH
16355 do
16356 IFS=$as_save_IFS
16357 test -z "$as_dir" && as_dir=.
16358 for ac_exec_ext in '' $ac_executable_extensions; do
16359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
16361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16362 break 2
16363 fi
16364 done
16365 done
16366
16367 fi
16368 fi
16369 NMEDIT=$ac_cv_prog_NMEDIT
16370 if test -n "$NMEDIT"; then
16371 echo "$as_me:$LINENO: result: $NMEDIT" >&5
16372 echo "${ECHO_T}$NMEDIT" >&6
16373 else
16374 echo "$as_me:$LINENO: result: no" >&5
16375 echo "${ECHO_T}no" >&6
16376 fi
16377
16378 fi
16379 if test -z "$ac_cv_prog_NMEDIT"; then
16380 ac_ct_NMEDIT=$NMEDIT
16381 # Extract the first word of "nmedit", so it can be a program name with args.
16382 set dummy nmedit; ac_word=$2
16383 echo "$as_me:$LINENO: checking for $ac_word" >&5
16384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388 if test -n "$ac_ct_NMEDIT"; then
16389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
16390 else
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16393 do
16394 IFS=$as_save_IFS
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
16399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16400 break 2
16401 fi
16402 done
16403 done
16404
16405 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
16406 fi
16407 fi
16408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
16409 if test -n "$ac_ct_NMEDIT"; then
16410 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
16411 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
16412 else
16413 echo "$as_me:$LINENO: result: no" >&5
16414 echo "${ECHO_T}no" >&6
16415 fi
16416
16417 NMEDIT=$ac_ct_NMEDIT
16418 else
16419 NMEDIT="$ac_cv_prog_NMEDIT"
16420 fi
16421
16422 if test -n "$ac_tool_prefix"; then
16423 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
16424 set dummy ${ac_tool_prefix}lipo; ac_word=$2
16425 echo "$as_me:$LINENO: checking for $ac_word" >&5
16426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16427 if test "${ac_cv_prog_LIPO+set}" = set; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430 if test -n "$LIPO"; then
16431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
16432 else
16433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16434 for as_dir in $PATH
16435 do
16436 IFS=$as_save_IFS
16437 test -z "$as_dir" && as_dir=.
16438 for ac_exec_ext in '' $ac_executable_extensions; do
16439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
16441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16442 break 2
16443 fi
16444 done
16445 done
16446
16447 fi
16448 fi
16449 LIPO=$ac_cv_prog_LIPO
16450 if test -n "$LIPO"; then
16451 echo "$as_me:$LINENO: result: $LIPO" >&5
16452 echo "${ECHO_T}$LIPO" >&6
16453 else
16454 echo "$as_me:$LINENO: result: no" >&5
16455 echo "${ECHO_T}no" >&6
16456 fi
16457
16458 fi
16459 if test -z "$ac_cv_prog_LIPO"; then
16460 ac_ct_LIPO=$LIPO
16461 # Extract the first word of "lipo", so it can be a program name with args.
16462 set dummy lipo; ac_word=$2
16463 echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16465 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 if test -n "$ac_ct_LIPO"; then
16469 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
16470 else
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16473 do
16474 IFS=$as_save_IFS
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16478 ac_cv_prog_ac_ct_LIPO="lipo"
16479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16480 break 2
16481 fi
16482 done
16483 done
16484
16485 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
16486 fi
16487 fi
16488 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
16489 if test -n "$ac_ct_LIPO"; then
16490 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
16491 echo "${ECHO_T}$ac_ct_LIPO" >&6
16492 else
16493 echo "$as_me:$LINENO: result: no" >&5
16494 echo "${ECHO_T}no" >&6
16495 fi
16496
16497 LIPO=$ac_ct_LIPO
16498 else
16499 LIPO="$ac_cv_prog_LIPO"
16500 fi
16501
16502 if test -n "$ac_tool_prefix"; then
16503 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16504 set dummy ${ac_tool_prefix}otool; ac_word=$2
16505 echo "$as_me:$LINENO: checking for $ac_word" >&5
16506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16507 if test "${ac_cv_prog_OTOOL+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510 if test -n "$OTOOL"; then
16511 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16512 else
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516 IFS=$as_save_IFS
16517 test -z "$as_dir" && as_dir=.
16518 for ac_exec_ext in '' $ac_executable_extensions; do
16519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16520 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16522 break 2
16523 fi
16524 done
16525 done
16526
16527 fi
16528 fi
16529 OTOOL=$ac_cv_prog_OTOOL
16530 if test -n "$OTOOL"; then
16531 echo "$as_me:$LINENO: result: $OTOOL" >&5
16532 echo "${ECHO_T}$OTOOL" >&6
16533 else
16534 echo "$as_me:$LINENO: result: no" >&5
16535 echo "${ECHO_T}no" >&6
16536 fi
16537
16538 fi
16539 if test -z "$ac_cv_prog_OTOOL"; then
16540 ac_ct_OTOOL=$OTOOL
16541 # Extract the first word of "otool", so it can be a program name with args.
16542 set dummy otool; ac_word=$2
16543 echo "$as_me:$LINENO: checking for $ac_word" >&5
16544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16545 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 if test -n "$ac_ct_OTOOL"; then
16549 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16550 else
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16553 do
16554 IFS=$as_save_IFS
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_ac_ct_OTOOL="otool"
16559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16560 break 2
16561 fi
16562 done
16563 done
16564
16565 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
16566 fi
16567 fi
16568 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16569 if test -n "$ac_ct_OTOOL"; then
16570 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
16571 echo "${ECHO_T}$ac_ct_OTOOL" >&6
16572 else
16573 echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6
16575 fi
16576
16577 OTOOL=$ac_ct_OTOOL
16578 else
16579 OTOOL="$ac_cv_prog_OTOOL"
16580 fi
16581
16582 if test -n "$ac_tool_prefix"; then
16583 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16584 set dummy ${ac_tool_prefix}otool64; ac_word=$2
16585 echo "$as_me:$LINENO: checking for $ac_word" >&5
16586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16587 if test "${ac_cv_prog_OTOOL64+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 else
16590 if test -n "$OTOOL64"; then
16591 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16592 else
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16595 do
16596 IFS=$as_save_IFS
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16602 break 2
16603 fi
16604 done
16605 done
16606
16607 fi
16608 fi
16609 OTOOL64=$ac_cv_prog_OTOOL64
16610 if test -n "$OTOOL64"; then
16611 echo "$as_me:$LINENO: result: $OTOOL64" >&5
16612 echo "${ECHO_T}$OTOOL64" >&6
16613 else
16614 echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6
16616 fi
16617
16618 fi
16619 if test -z "$ac_cv_prog_OTOOL64"; then
16620 ac_ct_OTOOL64=$OTOOL64
16621 # Extract the first word of "otool64", so it can be a program name with args.
16622 set dummy otool64; ac_word=$2
16623 echo "$as_me:$LINENO: checking for $ac_word" >&5
16624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16625 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628 if test -n "$ac_ct_OTOOL64"; then
16629 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16630 else
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16633 do
16634 IFS=$as_save_IFS
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16638 ac_cv_prog_ac_ct_OTOOL64="otool64"
16639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16640 break 2
16641 fi
16642 done
16643 done
16644
16645 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
16646 fi
16647 fi
16648 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16649 if test -n "$ac_ct_OTOOL64"; then
16650 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
16651 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
16652 else
16653 echo "$as_me:$LINENO: result: no" >&5
16654 echo "${ECHO_T}no" >&6
16655 fi
16656
16657 OTOOL64=$ac_ct_OTOOL64
16658 else
16659 OTOOL64="$ac_cv_prog_OTOOL64"
16660 fi
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
16689 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
16690 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 lt_cv_apple_cc_single_mod=no
16694 if test -z "${LT_MULTI_MODULE}"; then
16695 # By default we will add the -single_module flag. You can override
16696 # by either setting the environment variable LT_MULTI_MODULE
16697 # non-empty at configure time, or by adding -multi_module to the
16698 # link flags.
16699 rm -rf libconftest.dylib*
16700 echo "int foo(void){return 1;}" > conftest.c
16701 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16702 -dynamiclib -Wl,-single_module conftest.c" >&5
16703 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16704 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16705 _lt_result=$?
16706 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16707 lt_cv_apple_cc_single_mod=yes
16708 else
16709 cat conftest.err >&5
16710 fi
16711 rm -rf libconftest.dylib*
16712 rm -f conftest.*
16713 fi
16714 fi
16715 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
16716 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
16717 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
16718 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
16719 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722 lt_cv_ld_exported_symbols_list=no
16723 save_LDFLAGS=$LDFLAGS
16724 echo "_main" > conftest.sym
16725 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16726 cat >conftest.$ac_ext <<_ACEOF
16727 /* confdefs.h. */
16728 _ACEOF
16729 cat confdefs.h >>conftest.$ac_ext
16730 cat >>conftest.$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732
16733 int
16734 main ()
16735 {
16736
16737 ;
16738 return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16743 (eval $ac_link) 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag"
16751 || test ! -s conftest.err'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16754 ac_status=$?
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest$ac_exeext'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 lt_cv_ld_exported_symbols_list=yes
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768 lt_cv_ld_exported_symbols_list=no
16769 fi
16770 rm -f conftest.err conftest.$ac_objext \
16771 conftest$ac_exeext conftest.$ac_ext
16772 LDFLAGS="$save_LDFLAGS"
16773
16774 fi
16775 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
16776 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
16777 case $host_os in
16778 rhapsody* | darwin1.[012])
16779 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16780 darwin1.*)
16781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16782 darwin*) # darwin 5.x on
16783 # if running on 10.5 or later, the deployment target defaults
16784 # to the OS version, if on x86, and 10.4, the deployment
16785 # target defaults to 10.4. Don't you love it?
16786 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16787 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16788 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16789 10.[012]*)
16790 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16791 10.*)
16792 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
16793 esac
16794 ;;
16795 esac
16796 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16797 _lt_dar_single_mod='$single_module'
16798 fi
16799 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16800 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16801 else
16802 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16803 fi
16804 if test "$DSYMUTIL" != ":"; then
16805 _lt_dsymutil='~$DSYMUTIL $lib || :'
16806 else
16807 _lt_dsymutil=
16808 fi
16809 ;;
16810 esac
16811
16812
16813 for ac_header in dlfcn.h
16814 do
16815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16816 echo "$as_me:$LINENO: checking for $ac_header" >&5
16817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 else
16821 cat >conftest.$ac_ext <<_ACEOF
16822 /* confdefs.h. */
16823 _ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16827 #include <$ac_header>
16828 _ACEOF
16829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16831 ac_status=$?
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } >/dev/null; then
16837 if test -s conftest.err; then
16838 ac_cpp_err=$ac_c_preproc_warn_flag
16839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16840 else
16841 ac_cpp_err=
16842 fi
16843 else
16844 ac_cpp_err=yes
16845 fi
16846 if test -z "$ac_cpp_err"; then
16847 eval "$as_ac_Header=yes"
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 eval "$as_ac_Header=no"
16853 fi
16854 rm -f conftest.err conftest.$ac_ext
16855 fi
16856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16861 _ACEOF
16862
16863 fi
16864 done
16865
16866
16867
16868 ac_ext=cc
16869 ac_cpp='$CXXCPP $CPPFLAGS'
16870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16873 if test -n "$ac_tool_prefix"; then
16874 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16875 do
16876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16878 echo "$as_me:$LINENO: checking for $ac_word" >&5
16879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16880 if test "${ac_cv_prog_CXX+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 else
16883 if test -n "$CXX"; then
16884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
16885 else
16886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16887 for as_dir in $PATH
16888 do
16889 IFS=$as_save_IFS
16890 test -z "$as_dir" && as_dir=.
16891 for ac_exec_ext in '' $ac_executable_extensions; do
16892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16895 break 2
16896 fi
16897 done
16898 done
16899
16900 fi
16901 fi
16902 CXX=$ac_cv_prog_CXX
16903 if test -n "$CXX"; then
16904 echo "$as_me:$LINENO: result: $CXX" >&5
16905 echo "${ECHO_T}$CXX" >&6
16906 else
16907 echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6
16909 fi
16910
16911 test -n "$CXX" && break
16912 done
16913 fi
16914 if test -z "$CXX"; then
16915 ac_ct_CXX=$CXX
16916 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
16917 do
16918 # Extract the first word of "$ac_prog", so it can be a program name with args.
16919 set dummy $ac_prog; ac_word=$2
16920 echo "$as_me:$LINENO: checking for $ac_word" >&5
16921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16922 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 else
16925 if test -n "$ac_ct_CXX"; then
16926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16927 else
16928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 for as_dir in $PATH
16930 do
16931 IFS=$as_save_IFS
16932 test -z "$as_dir" && as_dir=.
16933 for ac_exec_ext in '' $ac_executable_extensions; do
16934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16935 ac_cv_prog_ac_ct_CXX="$ac_prog"
16936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16937 break 2
16938 fi
16939 done
16940 done
16941
16942 fi
16943 fi
16944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16945 if test -n "$ac_ct_CXX"; then
16946 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16947 echo "${ECHO_T}$ac_ct_CXX" >&6
16948 else
16949 echo "$as_me:$LINENO: result: no" >&5
16950 echo "${ECHO_T}no" >&6
16951 fi
16952
16953 test -n "$ac_ct_CXX" && break
16954 done
16955 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
16956
16957 CXX=$ac_ct_CXX
16958 fi
16959
16960
16961 # Provide some information about the compiler.
16962 echo "$as_me:$LINENO:" \
16963 "checking for C++ compiler version" >&5
16964 ac_compiler=`set X $ac_compile; echo $2`
16965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16966 (eval $ac_compiler --version </dev/null >&5) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }
16970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16971 (eval $ac_compiler -v </dev/null >&5) 2>&5
16972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }
16975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16976 (eval $ac_compiler -V </dev/null >&5) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }
16980
16981 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16982 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
16983 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986 cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h. */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992
16993 int
16994 main ()
16995 {
16996 #ifndef __GNUC__
16997 choke me
16998 #endif
16999
17000 ;
17001 return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006 (eval $ac_compile) 2>conftest.er1
17007 ac_status=$?
17008 grep -v '^ *+' conftest.er1 >conftest.err
17009 rm -f conftest.er1
17010 cat conftest.err >&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); } &&
17013 { ac_try='test -z "$ac_cxx_werror_flag"
17014 || test ! -s conftest.err'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17017 ac_status=$?
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; } &&
17020 { ac_try='test -s conftest.$ac_objext'
17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022 (eval $ac_try) 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
17026 ac_compiler_gnu=yes
17027 else
17028 echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 ac_compiler_gnu=no
17032 fi
17033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17035
17036 fi
17037 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
17039 GXX=`test $ac_compiler_gnu = yes && echo yes`
17040 ac_test_CXXFLAGS=${CXXFLAGS+set}
17041 ac_save_CXXFLAGS=$CXXFLAGS
17042 CXXFLAGS="-g"
17043 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17044 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
17045 if test "${ac_cv_prog_cxx_g+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h. */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17054
17055 int
17056 main ()
17057 {
17058
17059 ;
17060 return 0;
17061 }
17062 _ACEOF
17063 rm -f conftest.$ac_objext
17064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17065 (eval $ac_compile) 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_cxx_werror_flag"
17073 || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_prog_cxx_g=yes
17086 else
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17089
17090 ac_cv_prog_cxx_g=no
17091 fi
17092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17093 fi
17094 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17095 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
17096 if test "$ac_test_CXXFLAGS" = set; then
17097 CXXFLAGS=$ac_save_CXXFLAGS
17098 elif test $ac_cv_prog_cxx_g = yes; then
17099 if test "$GXX" = yes; then
17100 CXXFLAGS="-g -O2"
17101 else
17102 CXXFLAGS="-g"
17103 fi
17104 else
17105 if test "$GXX" = yes; then
17106 CXXFLAGS="-O2"
17107 else
17108 CXXFLAGS=
17109 fi
17110 fi
17111 for ac_declaration in \
17112 '' \
17113 'extern "C" void std::exit (int) throw (); using std::exit;' \
17114 'extern "C" void std::exit (int); using std::exit;' \
17115 'extern "C" void exit (int) throw ();' \
17116 'extern "C" void exit (int);' \
17117 'void exit (int);'
17118 do
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 $ac_declaration
17126 #include <stdlib.h>
17127 int
17128 main ()
17129 {
17130 exit (42);
17131 ;
17132 return 0;
17133 }
17134 _ACEOF
17135 rm -f conftest.$ac_objext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17137 (eval $ac_compile) 2>conftest.er1
17138 ac_status=$?
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_cxx_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17148 ac_status=$?
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest.$ac_objext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 :
17158 else
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 continue
17163 fi
17164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_declaration
17172 int
17173 main ()
17174 {
17175 exit (42);
17176 ;
17177 return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_cxx_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 break
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 fi
17208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 done
17210 rm -f conftest*
17211 if test -n "$ac_declaration"; then
17212 echo '#ifdef __cplusplus' >>confdefs.h
17213 echo $ac_declaration >>confdefs.h
17214 echo '#endif' >>confdefs.h
17215 fi
17216
17217 ac_ext=c
17218 ac_cpp='$CPP $CPPFLAGS'
17219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17222
17223 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17224 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17225 (test "X$CXX" != "Xg++"))) ; then
17226 ac_ext=cc
17227 ac_cpp='$CXXCPP $CPPFLAGS'
17228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17231 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17232 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17233 if test -z "$CXXCPP"; then
17234 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237 # Double quotes because CXXCPP needs to be expanded
17238 for CXXCPP in "$CXX -E" "/lib/cpp"
17239 do
17240 ac_preproc_ok=false
17241 for ac_cxx_preproc_warn_flag in '' yes
17242 do
17243 # Use a header file that comes with gcc, so configuring glibc
17244 # with a fresh cross-compiler works.
17245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17246 # <limits.h> exists even on freestanding compilers.
17247 # On the NeXT, cc -E runs the code through the compiler's parser,
17248 # not just through cpp. "Syntax error" is here to catch this case.
17249 cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h. */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #ifdef __STDC__
17256 # include <limits.h>
17257 #else
17258 # include <assert.h>
17259 #endif
17260 Syntax error
17261 _ACEOF
17262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17264 ac_status=$?
17265 grep -v '^ *+' conftest.er1 >conftest.err
17266 rm -f conftest.er1
17267 cat conftest.err >&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); } >/dev/null; then
17270 if test -s conftest.err; then
17271 ac_cpp_err=$ac_cxx_preproc_warn_flag
17272 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17273 else
17274 ac_cpp_err=
17275 fi
17276 else
17277 ac_cpp_err=yes
17278 fi
17279 if test -z "$ac_cpp_err"; then
17280 :
17281 else
17282 echo "$as_me: failed program was:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17284
17285 # Broken: fails on valid input.
17286 continue
17287 fi
17288 rm -f conftest.err conftest.$ac_ext
17289
17290 # OK, works on sane cases. Now check whether non-existent headers
17291 # can be detected and how.
17292 cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h. */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <ac_nonexistent.h>
17299 _ACEOF
17300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17302 ac_status=$?
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } >/dev/null; then
17308 if test -s conftest.err; then
17309 ac_cpp_err=$ac_cxx_preproc_warn_flag
17310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17311 else
17312 ac_cpp_err=
17313 fi
17314 else
17315 ac_cpp_err=yes
17316 fi
17317 if test -z "$ac_cpp_err"; then
17318 # Broken: success on invalid input.
17319 continue
17320 else
17321 echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 # Passes both tests.
17325 ac_preproc_ok=:
17326 break
17327 fi
17328 rm -f conftest.err conftest.$ac_ext
17329
17330 done
17331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17332 rm -f conftest.err conftest.$ac_ext
17333 if $ac_preproc_ok; then
17334 break
17335 fi
17336
17337 done
17338 ac_cv_prog_CXXCPP=$CXXCPP
17339
17340 fi
17341 CXXCPP=$ac_cv_prog_CXXCPP
17342 else
17343 ac_cv_prog_CXXCPP=$CXXCPP
17344 fi
17345 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17346 echo "${ECHO_T}$CXXCPP" >&6
17347 ac_preproc_ok=false
17348 for ac_cxx_preproc_warn_flag in '' yes
17349 do
17350 # Use a header file that comes with gcc, so configuring glibc
17351 # with a fresh cross-compiler works.
17352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 # <limits.h> exists even on freestanding compilers.
17354 # On the NeXT, cc -E runs the code through the compiler's parser,
17355 # not just through cpp. "Syntax error" is here to catch this case.
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 #ifdef __STDC__
17363 # include <limits.h>
17364 #else
17365 # include <assert.h>
17366 #endif
17367 Syntax error
17368 _ACEOF
17369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17371 ac_status=$?
17372 grep -v '^ *+' conftest.er1 >conftest.err
17373 rm -f conftest.er1
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } >/dev/null; then
17377 if test -s conftest.err; then
17378 ac_cpp_err=$ac_cxx_preproc_warn_flag
17379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17380 else
17381 ac_cpp_err=
17382 fi
17383 else
17384 ac_cpp_err=yes
17385 fi
17386 if test -z "$ac_cpp_err"; then
17387 :
17388 else
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 # Broken: fails on valid input.
17393 continue
17394 fi
17395 rm -f conftest.err conftest.$ac_ext
17396
17397 # OK, works on sane cases. Now check whether non-existent headers
17398 # can be detected and how.
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 #include <ac_nonexistent.h>
17406 _ACEOF
17407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } >/dev/null; then
17415 if test -s conftest.err; then
17416 ac_cpp_err=$ac_cxx_preproc_warn_flag
17417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17418 else
17419 ac_cpp_err=
17420 fi
17421 else
17422 ac_cpp_err=yes
17423 fi
17424 if test -z "$ac_cpp_err"; then
17425 # Broken: success on invalid input.
17426 continue
17427 else
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 # Passes both tests.
17432 ac_preproc_ok=:
17433 break
17434 fi
17435 rm -f conftest.err conftest.$ac_ext
17436
17437 done
17438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17439 rm -f conftest.err conftest.$ac_ext
17440 if $ac_preproc_ok; then
17441 :
17442 else
17443 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17444 echo "$as_me: error: in \`$ac_pwd':" >&2;}
17445 _lt_caught_CXX_error=yes; }
17446 fi
17447
17448 ac_ext=c
17449 ac_cpp='$CPP $CPPFLAGS'
17450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17453
17454 else
17455 _lt_caught_CXX_error=yes
17456 fi
17457
17458
17459
17460
17461
17462 # Set options
17463
17464
17465
17466 enable_dlopen=no
17467
17468
17469 enable_win32_dll=no
17470
17471
17472 # Check whether --enable-shared or --disable-shared was given.
17473 if test "${enable_shared+set}" = set; then
17474 enableval="$enable_shared"
17475 p=${PACKAGE-default}
17476 case $enableval in
17477 yes) enable_shared=yes ;;
17478 no) enable_shared=no ;;
17479 *)
17480 enable_shared=no
17481 # Look at the argument we got. We use all the common list separators.
17482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17483 for pkg in $enableval; do
17484 IFS="$lt_save_ifs"
17485 if test "X$pkg" = "X$p"; then
17486 enable_shared=yes
17487 fi
17488 done
17489 IFS="$lt_save_ifs"
17490 ;;
17491 esac
17492 else
17493 enable_shared=yes
17494 fi;
17495
17496
17497
17498
17499
17500
17501
17502
17503 # Check whether --enable-static or --disable-static was given.
17504 if test "${enable_static+set}" = set; then
17505 enableval="$enable_static"
17506 p=${PACKAGE-default}
17507 case $enableval in
17508 yes) enable_static=yes ;;
17509 no) enable_static=no ;;
17510 *)
17511 enable_static=no
17512 # Look at the argument we got. We use all the common list separators.
17513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17514 for pkg in $enableval; do
17515 IFS="$lt_save_ifs"
17516 if test "X$pkg" = "X$p"; then
17517 enable_static=yes
17518 fi
17519 done
17520 IFS="$lt_save_ifs"
17521 ;;
17522 esac
17523 else
17524 enable_static=yes
17525 fi;
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535 # Check whether --with-pic or --without-pic was given.
17536 if test "${with_pic+set}" = set; then
17537 withval="$with_pic"
17538 pic_mode="$withval"
17539 else
17540 pic_mode=default
17541 fi;
17542
17543 test -z "$pic_mode" && pic_mode=default
17544
17545
17546
17547
17548
17549
17550
17551 # Check whether --enable-fast-install or --disable-fast-install was given.
17552 if test "${enable_fast_install+set}" = set; then
17553 enableval="$enable_fast_install"
17554 p=${PACKAGE-default}
17555 case $enableval in
17556 yes) enable_fast_install=yes ;;
17557 no) enable_fast_install=no ;;
17558 *)
17559 enable_fast_install=no
17560 # Look at the argument we got. We use all the common list separators.
17561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17562 for pkg in $enableval; do
17563 IFS="$lt_save_ifs"
17564 if test "X$pkg" = "X$p"; then
17565 enable_fast_install=yes
17566 fi
17567 done
17568 IFS="$lt_save_ifs"
17569 ;;
17570 esac
17571 else
17572 enable_fast_install=yes
17573 fi;
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584 # This can be used to rebuild libtool when needed
17585 LIBTOOL_DEPS="$ltmain"
17586
17587 # Always use our own libtool.
17588 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614 test -z "$LN_S" && LN_S="ln -s"
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629 if test -n "${ZSH_VERSION+set}" ; then
17630 setopt NO_GLOB_SUBST
17631 fi
17632
17633 echo "$as_me:$LINENO: checking for objdir" >&5
17634 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
17635 if test "${lt_cv_objdir+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637 else
17638 rm -f .libs 2>/dev/null
17639 mkdir .libs 2>/dev/null
17640 if test -d .libs; then
17641 lt_cv_objdir=.libs
17642 else
17643 # MS-DOS does not allow filenames that begin with a dot.
17644 lt_cv_objdir=_libs
17645 fi
17646 rmdir .libs 2>/dev/null
17647 fi
17648 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
17649 echo "${ECHO_T}$lt_cv_objdir" >&6
17650 objdir=$lt_cv_objdir
17651
17652
17653
17654
17655
17656 cat >>confdefs.h <<_ACEOF
17657 #define LT_OBJDIR "$lt_cv_objdir/"
17658 _ACEOF
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676 case $host_os in
17677 aix3*)
17678 # AIX sometimes has problems with the GCC collect2 program. For some
17679 # reason, if we set the COLLECT_NAMES environment variable, the problems
17680 # vanish in a puff of smoke.
17681 if test "X${COLLECT_NAMES+set}" != Xset; then
17682 COLLECT_NAMES=
17683 export COLLECT_NAMES
17684 fi
17685 ;;
17686 esac
17687
17688 # Sed substitution that helps us do robust quoting. It backslashifies
17689 # metacharacters that are still active within double-quoted strings.
17690 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
17691
17692 # Same as above, but do not quote variable references.
17693 double_quote_subst='s/\(["`\\]\)/\\\1/g'
17694
17695 # Sed substitution to delay expansion of an escaped shell variable in a
17696 # double_quote_subst'ed string.
17697 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
17698
17699 # Sed substitution to delay expansion of an escaped single quote.
17700 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
17701
17702 # Sed substitution to avoid accidental globbing in evaled expressions
17703 no_glob_subst='s/\*/\\\*/g'
17704
17705 # Global variables:
17706 ofile=libtool
17707 can_build_shared=yes
17708
17709 # All known linkers require a `.a' archive for static linking (except MSVC,
17710 # which needs '.lib').
17711 libext=a
17712
17713 with_gnu_ld="$lt_cv_prog_gnu_ld"
17714
17715 old_CC="$CC"
17716 old_CFLAGS="$CFLAGS"
17717
17718 # Set sane defaults for various variables
17719 test -z "$CC" && CC=cc
17720 test -z "$LTCC" && LTCC=$CC
17721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17722 test -z "$LD" && LD=ld
17723 test -z "$ac_objext" && ac_objext=o
17724
17725 for cc_temp in $compiler""; do
17726 case $cc_temp in
17727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17729 \-*) ;;
17730 *) break;;
17731 esac
17732 done
17733 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17734
17735
17736 # Only perform the check for file, if the check method requires it
17737 test -z "$MAGIC_CMD" && MAGIC_CMD=file
17738 case $deplibs_check_method in
17739 file_magic*)
17740 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17741 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
17742 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
17743 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746 case $MAGIC_CMD in
17747 [\\/*] | ?:[\\/]*)
17748 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17749 ;;
17750 *)
17751 lt_save_MAGIC_CMD="$MAGIC_CMD"
17752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17753 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17754 for ac_dir in $ac_dummy; do
17755 IFS="$lt_save_ifs"
17756 test -z "$ac_dir" && ac_dir=.
17757 if test -f $ac_dir/${ac_tool_prefix}file; then
17758 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17759 if test -n "$file_magic_test_file"; then
17760 case $deplibs_check_method in
17761 "file_magic "*)
17762 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17765 $EGREP "$file_magic_regex" > /dev/null; then
17766 :
17767 else
17768 cat <<_LT_EOF 1>&2
17769
17770 *** Warning: the command libtool uses to detect shared libraries,
17771 *** $file_magic_cmd, produces output that libtool cannot recognize.
17772 *** The result is that libtool may fail to recognize shared libraries
17773 *** as such. This will affect the creation of libtool libraries that
17774 *** depend on shared libraries, but programs linked with such libtool
17775 *** libraries will work regardless of this problem. Nevertheless, you
17776 *** may want to report the problem to your system manager and/or to
17777 *** bug-libtool@gnu.org
17778
17779 _LT_EOF
17780 fi ;;
17781 esac
17782 fi
17783 break
17784 fi
17785 done
17786 IFS="$lt_save_ifs"
17787 MAGIC_CMD="$lt_save_MAGIC_CMD"
17788 ;;
17789 esac
17790 fi
17791
17792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17793 if test -n "$MAGIC_CMD"; then
17794 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17795 echo "${ECHO_T}$MAGIC_CMD" >&6
17796 else
17797 echo "$as_me:$LINENO: result: no" >&5
17798 echo "${ECHO_T}no" >&6
17799 fi
17800
17801
17802
17803
17804
17805 if test -z "$lt_cv_path_MAGIC_CMD"; then
17806 if test -n "$ac_tool_prefix"; then
17807 echo "$as_me:$LINENO: checking for file" >&5
17808 echo $ECHO_N "checking for file... $ECHO_C" >&6
17809 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812 case $MAGIC_CMD in
17813 [\\/*] | ?:[\\/]*)
17814 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17815 ;;
17816 *)
17817 lt_save_MAGIC_CMD="$MAGIC_CMD"
17818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17819 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17820 for ac_dir in $ac_dummy; do
17821 IFS="$lt_save_ifs"
17822 test -z "$ac_dir" && ac_dir=.
17823 if test -f $ac_dir/file; then
17824 lt_cv_path_MAGIC_CMD="$ac_dir/file"
17825 if test -n "$file_magic_test_file"; then
17826 case $deplibs_check_method in
17827 "file_magic "*)
17828 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17829 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17830 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17831 $EGREP "$file_magic_regex" > /dev/null; then
17832 :
17833 else
17834 cat <<_LT_EOF 1>&2
17835
17836 *** Warning: the command libtool uses to detect shared libraries,
17837 *** $file_magic_cmd, produces output that libtool cannot recognize.
17838 *** The result is that libtool may fail to recognize shared libraries
17839 *** as such. This will affect the creation of libtool libraries that
17840 *** depend on shared libraries, but programs linked with such libtool
17841 *** libraries will work regardless of this problem. Nevertheless, you
17842 *** may want to report the problem to your system manager and/or to
17843 *** bug-libtool@gnu.org
17844
17845 _LT_EOF
17846 fi ;;
17847 esac
17848 fi
17849 break
17850 fi
17851 done
17852 IFS="$lt_save_ifs"
17853 MAGIC_CMD="$lt_save_MAGIC_CMD"
17854 ;;
17855 esac
17856 fi
17857
17858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17859 if test -n "$MAGIC_CMD"; then
17860 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17861 echo "${ECHO_T}$MAGIC_CMD" >&6
17862 else
17863 echo "$as_me:$LINENO: result: no" >&5
17864 echo "${ECHO_T}no" >&6
17865 fi
17866
17867
17868 else
17869 MAGIC_CMD=:
17870 fi
17871 fi
17872
17873 fi
17874 ;;
17875 esac
17876
17877 # Use C for the default configuration in the libtool script
17878
17879 lt_save_CC="$CC"
17880 ac_ext=c
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
17886
17887 # Source file extension for C test sources.
17888 ac_ext=c
17889
17890 # Object file extension for compiled C test sources.
17891 objext=o
17892 objext=$objext
17893
17894 # Code to be used in simple compile tests
17895 lt_simple_compile_test_code="int some_variable = 0;"
17896
17897 # Code to be used in simple link tests
17898 lt_simple_link_test_code='int main(){return(0);}'
17899
17900
17901
17902
17903
17904
17905
17906 # If no C compiler was specified, use CC.
17907 LTCC=${LTCC-"$CC"}
17908
17909 # If no C compiler flags were specified, use CFLAGS.
17910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17911
17912 # Allow CC to be a program name with arguments.
17913 compiler=$CC
17914
17915 # Save the default compiler, since it gets overwritten when the other
17916 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17917 compiler_DEFAULT=$CC
17918
17919 # save warnings/boilerplate of simple test code
17920 ac_outfile=conftest.$ac_objext
17921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17923 _lt_compiler_boilerplate=`cat conftest.err`
17924 $RM conftest*
17925
17926 ac_outfile=conftest.$ac_objext
17927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17929 _lt_linker_boilerplate=`cat conftest.err`
17930 $RM -r conftest*
17931
17932
17933 ## CAVEAT EMPTOR:
17934 ## There is no encapsulation within the following macros, do not change
17935 ## the running order or otherwise move them around unless you know exactly
17936 ## what you are doing...
17937 if test -n "$compiler"; then
17938
17939 lt_prog_compiler_no_builtin_flag=
17940
17941 if test "$GCC" = yes; then
17942 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17943
17944 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17945 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17946 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 else
17949 lt_cv_prog_compiler_rtti_exceptions=no
17950 ac_outfile=conftest.$ac_objext
17951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17952 lt_compiler_flag="-fno-rtti -fno-exceptions"
17953 # Insert the option either (1) after the last *FLAGS variable, or
17954 # (2) before a word containing "conftest.", or (3) at the end.
17955 # Note that $ac_compile itself does not contain backslashes and begins
17956 # with a dollar sign (not a hyphen), so the echo should work correctly.
17957 # The option is referenced via a variable to avoid confusing sed.
17958 lt_compile=`echo "$ac_compile" | $SED \
17959 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17960 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17961 -e 's:$: $lt_compiler_flag:'`
17962 (eval echo "\"\$as_me:17962: $lt_compile\"" >&5)
17963 (eval "$lt_compile" 2>conftest.err)
17964 ac_status=$?
17965 cat conftest.err >&5
17966 echo "$as_me:17966: \$? = $ac_status" >&5
17967 if (exit $ac_status) && test -s "$ac_outfile"; then
17968 # The compiler can only warn and ignore the option if not recognized
17969 # So say no if there are warnings other than the usual output.
17970 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17972 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17973 lt_cv_prog_compiler_rtti_exceptions=yes
17974 fi
17975 fi
17976 $RM conftest*
17977
17978 fi
17979 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17980 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17981
17982 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17983 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17984 else
17985 :
17986 fi
17987
17988 fi
17989
17990
17991
17992
17993
17994
17995 lt_prog_compiler_wl=
17996 lt_prog_compiler_pic=
17997 lt_prog_compiler_static=
17998
17999 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18001
18002 if test "$GCC" = yes; then
18003 lt_prog_compiler_wl='-Wl,'
18004 lt_prog_compiler_static='-static'
18005
18006 case $host_os in
18007 aix*)
18008 # All AIX code is PIC.
18009 if test "$host_cpu" = ia64; then
18010 # AIX 5 now supports IA64 processor
18011 lt_prog_compiler_static='-Bstatic'
18012 fi
18013 ;;
18014
18015 amigaos*)
18016 case $host_cpu in
18017 powerpc)
18018 # see comment about AmigaOS4 .so support
18019 lt_prog_compiler_pic='-fPIC'
18020 ;;
18021 m68k)
18022 # FIXME: we need at least 68020 code to build shared libraries, but
18023 # adding the `-m68020' flag to GCC prevents building anything better,
18024 # like `-m68040'.
18025 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18026 ;;
18027 esac
18028 ;;
18029
18030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18031 # PIC is the default for these OSes.
18032 ;;
18033
18034 mingw* | cygwin* | pw32* | os2* | cegcc*)
18035 # This hack is so that the source file can tell whether it is being
18036 # built for inclusion in a dll (and should export symbols for example).
18037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18038 # (--disable-auto-import) libraries
18039 lt_prog_compiler_pic='-DDLL_EXPORT'
18040 ;;
18041
18042 darwin* | rhapsody*)
18043 # PIC is the default on this platform
18044 # Common symbols not allowed in MH_DYLIB files
18045 lt_prog_compiler_pic='-fno-common'
18046 ;;
18047
18048 hpux*)
18049 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18050 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18051 # sets the default TLS model and affects inlining.
18052 case $host_cpu in
18053 hppa*64*)
18054 # +Z the default
18055 ;;
18056 *)
18057 lt_prog_compiler_pic='-fPIC'
18058 ;;
18059 esac
18060 ;;
18061
18062 interix[3-9]*)
18063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18064 # Instead, we relocate shared libraries at runtime.
18065 ;;
18066
18067 msdosdjgpp*)
18068 # Just because we use GCC doesn't mean we suddenly get shared libraries
18069 # on systems that don't support them.
18070 lt_prog_compiler_can_build_shared=no
18071 enable_shared=no
18072 ;;
18073
18074 *nto* | *qnx*)
18075 # QNX uses GNU C++, but need to define -shared option too, otherwise
18076 # it will coredump.
18077 lt_prog_compiler_pic='-fPIC -shared'
18078 ;;
18079
18080 sysv4*MP*)
18081 if test -d /usr/nec; then
18082 lt_prog_compiler_pic=-Kconform_pic
18083 fi
18084 ;;
18085
18086 *)
18087 lt_prog_compiler_pic='-fPIC'
18088 ;;
18089 esac
18090 else
18091 # PORTME Check for flag to pass linker flags through the system compiler.
18092 case $host_os in
18093 aix*)
18094 lt_prog_compiler_wl='-Wl,'
18095 if test "$host_cpu" = ia64; then
18096 # AIX 5 now supports IA64 processor
18097 lt_prog_compiler_static='-Bstatic'
18098 else
18099 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18100 fi
18101 ;;
18102
18103 mingw* | cygwin* | pw32* | os2* | cegcc*)
18104 # This hack is so that the source file can tell whether it is being
18105 # built for inclusion in a dll (and should export symbols for example).
18106 lt_prog_compiler_pic='-DDLL_EXPORT'
18107 ;;
18108
18109 hpux9* | hpux10* | hpux11*)
18110 lt_prog_compiler_wl='-Wl,'
18111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18112 # not for PA HP-UX.
18113 case $host_cpu in
18114 hppa*64*|ia64*)
18115 # +Z the default
18116 ;;
18117 *)
18118 lt_prog_compiler_pic='+Z'
18119 ;;
18120 esac
18121 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18122 lt_prog_compiler_static='${wl}-a ${wl}archive'
18123 ;;
18124
18125 irix5* | irix6* | nonstopux*)
18126 lt_prog_compiler_wl='-Wl,'
18127 # PIC (with -KPIC) is the default.
18128 lt_prog_compiler_static='-non_shared'
18129 ;;
18130
18131 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18132 case $cc_basename in
18133 # old Intel for x86_64 which still supported -KPIC.
18134 ecc*)
18135 lt_prog_compiler_wl='-Wl,'
18136 lt_prog_compiler_pic='-KPIC'
18137 lt_prog_compiler_static='-static'
18138 ;;
18139 # icc used to be incompatible with GCC.
18140 # ICC 10 doesn't accept -KPIC any more.
18141 icc* | ifort*)
18142 lt_prog_compiler_wl='-Wl,'
18143 lt_prog_compiler_pic='-fPIC'
18144 lt_prog_compiler_static='-static'
18145 ;;
18146 # Lahey Fortran 8.1.
18147 lf95*)
18148 lt_prog_compiler_wl='-Wl,'
18149 lt_prog_compiler_pic='--shared'
18150 lt_prog_compiler_static='--static'
18151 ;;
18152 pgcc* | pgf77* | pgf90* | pgf95*)
18153 # Portland Group compilers (*not* the Pentium gcc compiler,
18154 # which looks to be a dead project)
18155 lt_prog_compiler_wl='-Wl,'
18156 lt_prog_compiler_pic='-fpic'
18157 lt_prog_compiler_static='-Bstatic'
18158 ;;
18159 ccc*)
18160 lt_prog_compiler_wl='-Wl,'
18161 # All Alpha code is PIC.
18162 lt_prog_compiler_static='-non_shared'
18163 ;;
18164 xl*)
18165 # IBM XL C 8.0/Fortran 10.1 on PPC
18166 lt_prog_compiler_wl='-Wl,'
18167 lt_prog_compiler_pic='-qpic'
18168 lt_prog_compiler_static='-qstaticlink'
18169 ;;
18170 *)
18171 case `$CC -V 2>&1 | sed 5q` in
18172 *Sun\ C*)
18173 # Sun C 5.9
18174 lt_prog_compiler_pic='-KPIC'
18175 lt_prog_compiler_static='-Bstatic'
18176 lt_prog_compiler_wl='-Wl,'
18177 ;;
18178 *Sun\ F*)
18179 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18180 lt_prog_compiler_pic='-KPIC'
18181 lt_prog_compiler_static='-Bstatic'
18182 lt_prog_compiler_wl=''
18183 ;;
18184 esac
18185 ;;
18186 esac
18187 ;;
18188
18189 newsos6)
18190 lt_prog_compiler_pic='-KPIC'
18191 lt_prog_compiler_static='-Bstatic'
18192 ;;
18193
18194 *nto* | *qnx*)
18195 # QNX uses GNU C++, but need to define -shared option too, otherwise
18196 # it will coredump.
18197 lt_prog_compiler_pic='-fPIC -shared'
18198 ;;
18199
18200 osf3* | osf4* | osf5*)
18201 lt_prog_compiler_wl='-Wl,'
18202 # All OSF/1 code is PIC.
18203 lt_prog_compiler_static='-non_shared'
18204 ;;
18205
18206 rdos*)
18207 lt_prog_compiler_static='-non_shared'
18208 ;;
18209
18210 solaris*)
18211 lt_prog_compiler_pic='-KPIC'
18212 lt_prog_compiler_static='-Bstatic'
18213 case $cc_basename in
18214 f77* | f90* | f95*)
18215 lt_prog_compiler_wl='-Qoption ld ';;
18216 *)
18217 lt_prog_compiler_wl='-Wl,';;
18218 esac
18219 ;;
18220
18221 sunos4*)
18222 lt_prog_compiler_wl='-Qoption ld '
18223 lt_prog_compiler_pic='-PIC'
18224 lt_prog_compiler_static='-Bstatic'
18225 ;;
18226
18227 sysv4 | sysv4.2uw2* | sysv4.3*)
18228 lt_prog_compiler_wl='-Wl,'
18229 lt_prog_compiler_pic='-KPIC'
18230 lt_prog_compiler_static='-Bstatic'
18231 ;;
18232
18233 sysv4*MP*)
18234 if test -d /usr/nec ;then
18235 lt_prog_compiler_pic='-Kconform_pic'
18236 lt_prog_compiler_static='-Bstatic'
18237 fi
18238 ;;
18239
18240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18241 lt_prog_compiler_wl='-Wl,'
18242 lt_prog_compiler_pic='-KPIC'
18243 lt_prog_compiler_static='-Bstatic'
18244 ;;
18245
18246 unicos*)
18247 lt_prog_compiler_wl='-Wl,'
18248 lt_prog_compiler_can_build_shared=no
18249 ;;
18250
18251 uts4*)
18252 lt_prog_compiler_pic='-pic'
18253 lt_prog_compiler_static='-Bstatic'
18254 ;;
18255
18256 *)
18257 lt_prog_compiler_can_build_shared=no
18258 ;;
18259 esac
18260 fi
18261
18262 case $host_os in
18263 # For platforms which do not support PIC, -DPIC is meaningless:
18264 *djgpp*)
18265 lt_prog_compiler_pic=
18266 ;;
18267 *)
18268 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
18269 ;;
18270 esac
18271 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
18272 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
18273
18274
18275
18276
18277
18278
18279 #
18280 # Check to make sure the PIC flag actually works.
18281 #
18282 if test -n "$lt_prog_compiler_pic"; then
18283 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
18284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
18285 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288 lt_cv_prog_compiler_pic_works=no
18289 ac_outfile=conftest.$ac_objext
18290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18291 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
18292 # Insert the option either (1) after the last *FLAGS variable, or
18293 # (2) before a word containing "conftest.", or (3) at the end.
18294 # Note that $ac_compile itself does not contain backslashes and begins
18295 # with a dollar sign (not a hyphen), so the echo should work correctly.
18296 # The option is referenced via a variable to avoid confusing sed.
18297 lt_compile=`echo "$ac_compile" | $SED \
18298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18300 -e 's:$: $lt_compiler_flag:'`
18301 (eval echo "\"\$as_me:18301: $lt_compile\"" >&5)
18302 (eval "$lt_compile" 2>conftest.err)
18303 ac_status=$?
18304 cat conftest.err >&5
18305 echo "$as_me:18305: \$? = $ac_status" >&5
18306 if (exit $ac_status) && test -s "$ac_outfile"; then
18307 # The compiler can only warn and ignore the option if not recognized
18308 # So say no if there are warnings other than the usual output.
18309 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18312 lt_cv_prog_compiler_pic_works=yes
18313 fi
18314 fi
18315 $RM conftest*
18316
18317 fi
18318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
18319 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
18320
18321 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
18322 case $lt_prog_compiler_pic in
18323 "" | " "*) ;;
18324 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
18325 esac
18326 else
18327 lt_prog_compiler_pic=
18328 lt_prog_compiler_can_build_shared=no
18329 fi
18330
18331 fi
18332
18333
18334
18335
18336
18337
18338 #
18339 # Check to make sure the static flag actually works.
18340 #
18341 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
18342 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18343 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18344 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 else
18347 lt_cv_prog_compiler_static_works=no
18348 save_LDFLAGS="$LDFLAGS"
18349 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18352 # The linker can only warn and ignore the option if not recognized
18353 # So say no if there are warnings
18354 if test -s conftest.err; then
18355 # Append any errors to the config.log.
18356 cat conftest.err 1>&5
18357 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18359 if diff conftest.exp conftest.er2 >/dev/null; then
18360 lt_cv_prog_compiler_static_works=yes
18361 fi
18362 else
18363 lt_cv_prog_compiler_static_works=yes
18364 fi
18365 fi
18366 $RM -r conftest*
18367 LDFLAGS="$save_LDFLAGS"
18368
18369 fi
18370 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
18371 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
18372
18373 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
18374 :
18375 else
18376 lt_prog_compiler_static=
18377 fi
18378
18379
18380
18381
18382
18383
18384
18385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18387 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390 lt_cv_prog_compiler_c_o=no
18391 $RM -r conftest 2>/dev/null
18392 mkdir conftest
18393 cd conftest
18394 mkdir out
18395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18396
18397 lt_compiler_flag="-o out/conftest2.$ac_objext"
18398 # Insert the option either (1) after the last *FLAGS variable, or
18399 # (2) before a word containing "conftest.", or (3) at the end.
18400 # Note that $ac_compile itself does not contain backslashes and begins
18401 # with a dollar sign (not a hyphen), so the echo should work correctly.
18402 lt_compile=`echo "$ac_compile" | $SED \
18403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18405 -e 's:$: $lt_compiler_flag:'`
18406 (eval echo "\"\$as_me:18406: $lt_compile\"" >&5)
18407 (eval "$lt_compile" 2>out/conftest.err)
18408 ac_status=$?
18409 cat out/conftest.err >&5
18410 echo "$as_me:18410: \$? = $ac_status" >&5
18411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18412 then
18413 # The compiler can only warn and ignore the option if not recognized
18414 # So say no if there are warnings
18415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18418 lt_cv_prog_compiler_c_o=yes
18419 fi
18420 fi
18421 chmod u+w . 2>&5
18422 $RM conftest*
18423 # SGI C++ compiler will create directory out/ii_files/ for
18424 # template instantiation
18425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18426 $RM out/* && rmdir out
18427 cd ..
18428 $RM -r conftest
18429 $RM conftest*
18430
18431 fi
18432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
18434
18435
18436
18437
18438
18439
18440 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18441 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18442 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445 lt_cv_prog_compiler_c_o=no
18446 $RM -r conftest 2>/dev/null
18447 mkdir conftest
18448 cd conftest
18449 mkdir out
18450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18451
18452 lt_compiler_flag="-o out/conftest2.$ac_objext"
18453 # Insert the option either (1) after the last *FLAGS variable, or
18454 # (2) before a word containing "conftest.", or (3) at the end.
18455 # Note that $ac_compile itself does not contain backslashes and begins
18456 # with a dollar sign (not a hyphen), so the echo should work correctly.
18457 lt_compile=`echo "$ac_compile" | $SED \
18458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18460 -e 's:$: $lt_compiler_flag:'`
18461 (eval echo "\"\$as_me:18461: $lt_compile\"" >&5)
18462 (eval "$lt_compile" 2>out/conftest.err)
18463 ac_status=$?
18464 cat out/conftest.err >&5
18465 echo "$as_me:18465: \$? = $ac_status" >&5
18466 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18467 then
18468 # The compiler can only warn and ignore the option if not recognized
18469 # So say no if there are warnings
18470 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18471 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18472 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18473 lt_cv_prog_compiler_c_o=yes
18474 fi
18475 fi
18476 chmod u+w . 2>&5
18477 $RM conftest*
18478 # SGI C++ compiler will create directory out/ii_files/ for
18479 # template instantiation
18480 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18481 $RM out/* && rmdir out
18482 cd ..
18483 $RM -r conftest
18484 $RM conftest*
18485
18486 fi
18487 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
18488 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
18489
18490
18491
18492
18493 hard_links="nottested"
18494 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
18495 # do not overwrite the value of need_locks provided by the user
18496 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18497 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18498 hard_links=yes
18499 $RM conftest*
18500 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18501 touch conftest.a
18502 ln conftest.a conftest.b 2>&5 || hard_links=no
18503 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18504 echo "$as_me:$LINENO: result: $hard_links" >&5
18505 echo "${ECHO_T}$hard_links" >&6
18506 if test "$hard_links" = no; then
18507 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18508 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18509 need_locks=warn
18510 fi
18511 else
18512 need_locks=no
18513 fi
18514
18515
18516
18517
18518
18519
18520 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18522
18523 runpath_var=
18524 allow_undefined_flag=
18525 always_export_symbols=no
18526 archive_cmds=
18527 archive_expsym_cmds=
18528 compiler_needs_object=no
18529 enable_shared_with_static_runtimes=no
18530 export_dynamic_flag_spec=
18531 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18532 hardcode_automatic=no
18533 hardcode_direct=no
18534 hardcode_direct_absolute=no
18535 hardcode_libdir_flag_spec=
18536 hardcode_libdir_flag_spec_ld=
18537 hardcode_libdir_separator=
18538 hardcode_minus_L=no
18539 hardcode_shlibpath_var=unsupported
18540 inherit_rpath=no
18541 link_all_deplibs=unknown
18542 module_cmds=
18543 module_expsym_cmds=
18544 old_archive_from_new_cmds=
18545 old_archive_from_expsyms_cmds=
18546 thread_safe_flag_spec=
18547 whole_archive_flag_spec=
18548 # include_expsyms should be a list of space-separated symbols to be *always*
18549 # included in the symbol list
18550 include_expsyms=
18551 # exclude_expsyms can be an extended regexp of symbols to exclude
18552 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18553 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18554 # as well as any symbol that contains `d'.
18555 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18556 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18557 # platforms (ab)use it in PIC code, but their linkers get confused if
18558 # the symbol is explicitly referenced. Since portable code cannot
18559 # rely on this symbol name, it's probably fine to never include it in
18560 # preloaded symbol tables.
18561 # Exclude shared library initialization/finalization symbols.
18562 extract_expsyms_cmds=
18563
18564 case $host_os in
18565 cygwin* | mingw* | pw32* | cegcc*)
18566 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18567 # When not using gcc, we currently assume that we are using
18568 # Microsoft Visual C++.
18569 if test "$GCC" != yes; then
18570 with_gnu_ld=no
18571 fi
18572 ;;
18573 interix*)
18574 # we just hope/assume this is gcc and not c89 (= MSVC++)
18575 with_gnu_ld=yes
18576 ;;
18577 openbsd*)
18578 with_gnu_ld=no
18579 ;;
18580 esac
18581
18582 ld_shlibs=yes
18583 if test "$with_gnu_ld" = yes; then
18584 # If archive_cmds runs LD, not CC, wlarc should be empty
18585 wlarc='${wl}'
18586
18587 # Set some defaults for GNU ld with shared library support. These
18588 # are reset later if shared libraries are not supported. Putting them
18589 # here allows them to be overridden if necessary.
18590 runpath_var=LD_RUN_PATH
18591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18592 export_dynamic_flag_spec='${wl}--export-dynamic'
18593 # ancient GNU ld didn't support --whole-archive et. al.
18594 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18595 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18596 else
18597 whole_archive_flag_spec=
18598 fi
18599 supports_anon_versioning=no
18600 case `$LD -v 2>&1` in
18601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18604 *\ 2.11.*) ;; # other 2.11 versions
18605 *) supports_anon_versioning=yes ;;
18606 esac
18607
18608 # See if GNU ld supports shared libraries.
18609 case $host_os in
18610 aix[3-9]*)
18611 # On AIX/PPC, the GNU linker is very broken
18612 if test "$host_cpu" != ia64; then
18613 ld_shlibs=no
18614 cat <<_LT_EOF 1>&2
18615
18616 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18617 *** to be unable to reliably create shared libraries on AIX.
18618 *** Therefore, libtool is disabling shared libraries support. If you
18619 *** really care for shared libraries, you may want to modify your PATH
18620 *** so that a non-GNU linker is found, and then restart.
18621
18622 _LT_EOF
18623 fi
18624 ;;
18625
18626 amigaos*)
18627 case $host_cpu in
18628 powerpc)
18629 # see comment about AmigaOS4 .so support
18630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18631 archive_expsym_cmds=''
18632 ;;
18633 m68k)
18634 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)'
18635 hardcode_libdir_flag_spec='-L$libdir'
18636 hardcode_minus_L=yes
18637 ;;
18638 esac
18639 ;;
18640
18641 beos*)
18642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18643 allow_undefined_flag=unsupported
18644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18645 # support --undefined. This deserves some investigation. FIXME
18646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18647 else
18648 ld_shlibs=no
18649 fi
18650 ;;
18651
18652 cygwin* | mingw* | pw32* | cegcc*)
18653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18654 # as there is no search path for DLLs.
18655 hardcode_libdir_flag_spec='-L$libdir'
18656 allow_undefined_flag=unsupported
18657 always_export_symbols=no
18658 enable_shared_with_static_runtimes=yes
18659 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18660
18661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18663 # If the export-symbols file already is a .def file (1st line
18664 # is EXPORTS), use it as is; otherwise, prepend...
18665 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18666 cp $export_symbols $output_objdir/$soname.def;
18667 else
18668 echo EXPORTS > $output_objdir/$soname.def;
18669 cat $export_symbols >> $output_objdir/$soname.def;
18670 fi~
18671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18672 else
18673 ld_shlibs=no
18674 fi
18675 ;;
18676
18677 interix[3-9]*)
18678 hardcode_direct=no
18679 hardcode_shlibpath_var=no
18680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18681 export_dynamic_flag_spec='${wl}-E'
18682 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18683 # Instead, shared libraries are loaded at an image base (0x10000000 by
18684 # default) and relocated if they conflict, which is a slow very memory
18685 # consuming and fragmenting process. To avoid this, we pick a random,
18686 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18687 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18689 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'
18690 ;;
18691
18692 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18693 tmp_diet=no
18694 if test "$host_os" = linux-dietlibc; then
18695 case $cc_basename in
18696 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18697 esac
18698 fi
18699 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18700 && test "$tmp_diet" = no
18701 then
18702 tmp_addflag=
18703 tmp_sharedflag='-shared'
18704 case $cc_basename,$host_cpu in
18705 pgcc*) # Portland Group C compiler
18706 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'
18707 tmp_addflag=' $pic_flag'
18708 ;;
18709 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18710 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'
18711 tmp_addflag=' $pic_flag -Mnomain' ;;
18712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18713 tmp_addflag=' -i_dynamic' ;;
18714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18715 tmp_addflag=' -i_dynamic -nofor_main' ;;
18716 ifc* | ifort*) # Intel Fortran compiler
18717 tmp_addflag=' -nofor_main' ;;
18718 lf95*) # Lahey Fortran 8.1
18719 whole_archive_flag_spec=
18720 tmp_sharedflag='--shared' ;;
18721 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18722 tmp_sharedflag='-qmkshrobj'
18723 tmp_addflag= ;;
18724 esac
18725 case `$CC -V 2>&1 | sed 5q` in
18726 *Sun\ C*) # Sun C 5.9
18727 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'
18728 compiler_needs_object=yes
18729 tmp_sharedflag='-G' ;;
18730 *Sun\ F*) # Sun Fortran 8.3
18731 tmp_sharedflag='-G' ;;
18732 esac
18733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18734
18735 if test "x$supports_anon_versioning" = xyes; then
18736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18738 echo "local: *; };" >> $output_objdir/$libname.ver~
18739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18740 fi
18741
18742 case $cc_basename in
18743 xlf*)
18744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18745 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18746 hardcode_libdir_flag_spec=
18747 hardcode_libdir_flag_spec_ld='-rpath $libdir'
18748 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18749 if test "x$supports_anon_versioning" = xyes; then
18750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18752 echo "local: *; };" >> $output_objdir/$libname.ver~
18753 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18754 fi
18755 ;;
18756 esac
18757 else
18758 ld_shlibs=no
18759 fi
18760 ;;
18761
18762 netbsd*)
18763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18764 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18765 wlarc=
18766 else
18767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18769 fi
18770 ;;
18771
18772 solaris*)
18773 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18774 ld_shlibs=no
18775 cat <<_LT_EOF 1>&2
18776
18777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18778 *** create shared libraries on Solaris systems. Therefore, libtool
18779 *** is disabling shared libraries support. We urge you to upgrade GNU
18780 *** binutils to release 2.9.1 or newer. Another option is to modify
18781 *** your PATH or compiler configuration so that the native linker is
18782 *** used, and then restart.
18783
18784 _LT_EOF
18785 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18788 else
18789 ld_shlibs=no
18790 fi
18791 ;;
18792
18793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18794 case `$LD -v 2>&1` in
18795 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18796 ld_shlibs=no
18797 cat <<_LT_EOF 1>&2
18798
18799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18800 *** reliably create shared libraries on SCO systems. Therefore, libtool
18801 *** is disabling shared libraries support. We urge you to upgrade GNU
18802 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18803 *** your PATH or compiler configuration so that the native linker is
18804 *** used, and then restart.
18805
18806 _LT_EOF
18807 ;;
18808 *)
18809 # For security reasons, it is highly recommended that you always
18810 # use absolute paths for naming shared libraries, and exclude the
18811 # DT_RUNPATH tag from executables and libraries. But doing so
18812 # requires that you compile everything twice, which is a pain.
18813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18817 else
18818 ld_shlibs=no
18819 fi
18820 ;;
18821 esac
18822 ;;
18823
18824 sunos4*)
18825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18826 wlarc=
18827 hardcode_direct=yes
18828 hardcode_shlibpath_var=no
18829 ;;
18830
18831 *)
18832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18835 else
18836 ld_shlibs=no
18837 fi
18838 ;;
18839 esac
18840
18841 if test "$ld_shlibs" = no; then
18842 runpath_var=
18843 hardcode_libdir_flag_spec=
18844 export_dynamic_flag_spec=
18845 whole_archive_flag_spec=
18846 fi
18847 else
18848 # PORTME fill in a description of your system's linker (not GNU ld)
18849 case $host_os in
18850 aix3*)
18851 allow_undefined_flag=unsupported
18852 always_export_symbols=yes
18853 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'
18854 # Note: this linker hardcodes the directories in LIBPATH if there
18855 # are no directories specified by -L.
18856 hardcode_minus_L=yes
18857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18858 # Neither direct hardcoding nor static linking is supported with a
18859 # broken collect2.
18860 hardcode_direct=unsupported
18861 fi
18862 ;;
18863
18864 aix[4-9]*)
18865 if test "$host_cpu" = ia64; then
18866 # On IA64, the linker does run time linking by default, so we don't
18867 # have to do anything special.
18868 aix_use_runtimelinking=no
18869 exp_sym_flag='-Bexport'
18870 no_entry_flag=""
18871 else
18872 # If we're using GNU nm, then we don't want the "-C" option.
18873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18874 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18875 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'
18876 else
18877 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'
18878 fi
18879 aix_use_runtimelinking=no
18880
18881 # Test if we are trying to use run time linking or normal
18882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18883 # need to do runtime linking.
18884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18885 for ld_flag in $LDFLAGS; do
18886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18887 aix_use_runtimelinking=yes
18888 break
18889 fi
18890 done
18891 ;;
18892 esac
18893
18894 exp_sym_flag='-bexport'
18895 no_entry_flag='-bnoentry'
18896 fi
18897
18898 # When large executables or shared objects are built, AIX ld can
18899 # have problems creating the table of contents. If linking a library
18900 # or program results in "error TOC overflow" add -mminimal-toc to
18901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18903
18904 archive_cmds=''
18905 hardcode_direct=yes
18906 hardcode_direct_absolute=yes
18907 hardcode_libdir_separator=':'
18908 link_all_deplibs=yes
18909 file_list_spec='${wl}-f,'
18910
18911 if test "$GCC" = yes; then
18912 case $host_os in aix4.[012]|aix4.[012].*)
18913 # We only want to do this on AIX 4.2 and lower, the check
18914 # below for broken collect2 doesn't work under 4.3+
18915 collect2name=`${CC} -print-prog-name=collect2`
18916 if test -f "$collect2name" &&
18917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18918 then
18919 # We have reworked collect2
18920 :
18921 else
18922 # We have old collect2
18923 hardcode_direct=unsupported
18924 # It fails to find uninstalled libraries when the uninstalled
18925 # path is not listed in the libpath. Setting hardcode_minus_L
18926 # to unsupported forces relinking
18927 hardcode_minus_L=yes
18928 hardcode_libdir_flag_spec='-L$libdir'
18929 hardcode_libdir_separator=
18930 fi
18931 ;;
18932 esac
18933 shared_flag='-shared'
18934 if test "$aix_use_runtimelinking" = yes; then
18935 shared_flag="$shared_flag "'${wl}-G'
18936 fi
18937 else
18938 # not using gcc
18939 if test "$host_cpu" = ia64; then
18940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18941 # chokes on -Wl,-G. The following line is correct:
18942 shared_flag='-G'
18943 else
18944 if test "$aix_use_runtimelinking" = yes; then
18945 shared_flag='${wl}-G'
18946 else
18947 shared_flag='${wl}-bM:SRE'
18948 fi
18949 fi
18950 fi
18951
18952 export_dynamic_flag_spec='${wl}-bexpall'
18953 # It seems that -bexpall does not export symbols beginning with
18954 # underscore (_), so it is better to generate a list of symbols to export.
18955 always_export_symbols=yes
18956 if test "$aix_use_runtimelinking" = yes; then
18957 # Warning - without using the other runtime loading flags (-brtl),
18958 # -berok will link without error, but may produce a broken library.
18959 allow_undefined_flag='-berok'
18960 # Determine the default libpath from the value encoded in an
18961 # empty executable.
18962 cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h. */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968
18969 int
18970 main ()
18971 {
18972
18973 ;
18974 return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_c_werror_flag"
18987 || test ! -s conftest.err'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest$ac_exeext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999
19000 lt_aix_libpath_sed='
19001 /Import File Strings/,/^$/ {
19002 /^0/ {
19003 s/^0 *\(.*\)$/\1/
19004 p
19005 }
19006 }'
19007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19008 # Check for a 64-bit object if we didn't find anything.
19009 if test -z "$aix_libpath"; then
19010 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19011 fi
19012 else
19013 echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 fi
19017 rm -f conftest.err conftest.$ac_objext \
19018 conftest$ac_exeext conftest.$ac_ext
19019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19020
19021 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19022 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"
19023 else
19024 if test "$host_cpu" = ia64; then
19025 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19026 allow_undefined_flag="-z nodefs"
19027 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"
19028 else
19029 # Determine the default libpath from the value encoded in an
19030 # empty executable.
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h. */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037
19038 int
19039 main ()
19040 {
19041
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048 (eval $ac_link) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068
19069 lt_aix_libpath_sed='
19070 /Import File Strings/,/^$/ {
19071 /^0/ {
19072 s/^0 *\(.*\)$/\1/
19073 p
19074 }
19075 }'
19076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19077 # Check for a 64-bit object if we didn't find anything.
19078 if test -z "$aix_libpath"; then
19079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19080 fi
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085 fi
19086 rm -f conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19089
19090 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19091 # Warning - without using the other run time loading flags,
19092 # -berok will link without error, but may produce a broken library.
19093 no_undefined_flag=' ${wl}-bernotok'
19094 allow_undefined_flag=' ${wl}-berok'
19095 # Exported symbols can be pulled into shared objects from archives
19096 whole_archive_flag_spec='$convenience'
19097 archive_cmds_need_lc=yes
19098 # This is similar to how AIX traditionally builds its shared libraries.
19099 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'
19100 fi
19101 fi
19102 ;;
19103
19104 amigaos*)
19105 case $host_cpu in
19106 powerpc)
19107 # see comment about AmigaOS4 .so support
19108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19109 archive_expsym_cmds=''
19110 ;;
19111 m68k)
19112 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)'
19113 hardcode_libdir_flag_spec='-L$libdir'
19114 hardcode_minus_L=yes
19115 ;;
19116 esac
19117 ;;
19118
19119 bsdi[45]*)
19120 export_dynamic_flag_spec=-rdynamic
19121 ;;
19122
19123 cygwin* | mingw* | pw32* | cegcc*)
19124 # When not using gcc, we currently assume that we are using
19125 # Microsoft Visual C++.
19126 # hardcode_libdir_flag_spec is actually meaningless, as there is
19127 # no search path for DLLs.
19128 hardcode_libdir_flag_spec=' '
19129 allow_undefined_flag=unsupported
19130 # Tell ltmain to make .lib files, not .a files.
19131 libext=lib
19132 # Tell ltmain to make .dll files, not .so files.
19133 shrext_cmds=".dll"
19134 # FIXME: Setting linknames here is a bad hack.
19135 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
19136 # The linker will automatically build a .lib file if we build a DLL.
19137 old_archive_from_new_cmds='true'
19138 # FIXME: Should let the user specify the lib program.
19139 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
19140 fix_srcfile_path='`cygpath -w "$srcfile"`'
19141 enable_shared_with_static_runtimes=yes
19142 ;;
19143
19144 darwin* | rhapsody*)
19145
19146
19147 archive_cmds_need_lc=no
19148 hardcode_direct=no
19149 hardcode_automatic=yes
19150 hardcode_shlibpath_var=unsupported
19151 whole_archive_flag_spec=''
19152 link_all_deplibs=yes
19153 allow_undefined_flag="$_lt_dar_allow_undefined"
19154 case $cc_basename in
19155 ifort*) _lt_dar_can_shared=yes ;;
19156 *) _lt_dar_can_shared=$GCC ;;
19157 esac
19158 if test "$_lt_dar_can_shared" = "yes"; then
19159 output_verbose_link_cmd=echo
19160 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19161 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19162 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19163 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19164
19165 else
19166 ld_shlibs=no
19167 fi
19168
19169 ;;
19170
19171 dgux*)
19172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19173 hardcode_libdir_flag_spec='-L$libdir'
19174 hardcode_shlibpath_var=no
19175 ;;
19176
19177 freebsd1*)
19178 ld_shlibs=no
19179 ;;
19180
19181 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19182 # support. Future versions do this automatically, but an explicit c++rt0.o
19183 # does not break anything, and helps significantly (at the cost of a little
19184 # extra space).
19185 freebsd2.2*)
19186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19187 hardcode_libdir_flag_spec='-R$libdir'
19188 hardcode_direct=yes
19189 hardcode_shlibpath_var=no
19190 ;;
19191
19192 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19193 freebsd2*)
19194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19195 hardcode_direct=yes
19196 hardcode_minus_L=yes
19197 hardcode_shlibpath_var=no
19198 ;;
19199
19200 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19201 freebsd* | dragonfly*)
19202 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19203 hardcode_libdir_flag_spec='-R$libdir'
19204 hardcode_direct=yes
19205 hardcode_shlibpath_var=no
19206 ;;
19207
19208 hpux9*)
19209 if test "$GCC" = yes; then
19210 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'
19211 else
19212 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'
19213 fi
19214 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19215 hardcode_libdir_separator=:
19216 hardcode_direct=yes
19217
19218 # hardcode_minus_L: Not really in the search PATH,
19219 # but as the default location of the library.
19220 hardcode_minus_L=yes
19221 export_dynamic_flag_spec='${wl}-E'
19222 ;;
19223
19224 hpux10*)
19225 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19226 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19227 else
19228 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19229 fi
19230 if test "$with_gnu_ld" = no; then
19231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19232 hardcode_libdir_flag_spec_ld='+b $libdir'
19233 hardcode_libdir_separator=:
19234 hardcode_direct=yes
19235 hardcode_direct_absolute=yes
19236 export_dynamic_flag_spec='${wl}-E'
19237 # hardcode_minus_L: Not really in the search PATH,
19238 # but as the default location of the library.
19239 hardcode_minus_L=yes
19240 fi
19241 ;;
19242
19243 hpux11*)
19244 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19245 case $host_cpu in
19246 hppa*64*)
19247 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19248 ;;
19249 ia64*)
19250 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19251 ;;
19252 *)
19253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19254 ;;
19255 esac
19256 else
19257 case $host_cpu in
19258 hppa*64*)
19259 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19260 ;;
19261 ia64*)
19262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19263 ;;
19264 *)
19265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19266 ;;
19267 esac
19268 fi
19269 if test "$with_gnu_ld" = no; then
19270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19271 hardcode_libdir_separator=:
19272
19273 case $host_cpu in
19274 hppa*64*|ia64*)
19275 hardcode_direct=no
19276 hardcode_shlibpath_var=no
19277 ;;
19278 *)
19279 hardcode_direct=yes
19280 hardcode_direct_absolute=yes
19281 export_dynamic_flag_spec='${wl}-E'
19282
19283 # hardcode_minus_L: Not really in the search PATH,
19284 # but as the default location of the library.
19285 hardcode_minus_L=yes
19286 ;;
19287 esac
19288 fi
19289 ;;
19290
19291 irix5* | irix6* | nonstopux*)
19292 if test "$GCC" = yes; then
19293 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'
19294 # Try to use the -exported_symbol ld option, if it does not
19295 # work, assume that -exports_file does not work either and
19296 # implicitly export all symbols.
19297 save_LDFLAGS="$LDFLAGS"
19298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19299 cat >conftest.$ac_ext <<_ACEOF
19300 int foo(void) {}
19301 _ACEOF
19302 rm -f conftest.$ac_objext conftest$ac_exeext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19304 (eval $ac_link) 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag"
19312 || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest$ac_exeext'
19319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320 (eval $ac_try) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 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'
19325
19326 else
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 fi
19331 rm -f conftest.err conftest.$ac_objext \
19332 conftest$ac_exeext conftest.$ac_ext
19333 LDFLAGS="$save_LDFLAGS"
19334 else
19335 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'
19336 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'
19337 fi
19338 archive_cmds_need_lc='no'
19339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19340 hardcode_libdir_separator=:
19341 inherit_rpath=yes
19342 link_all_deplibs=yes
19343 ;;
19344
19345 netbsd*)
19346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19348 else
19349 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19350 fi
19351 hardcode_libdir_flag_spec='-R$libdir'
19352 hardcode_direct=yes
19353 hardcode_shlibpath_var=no
19354 ;;
19355
19356 newsos6)
19357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19358 hardcode_direct=yes
19359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19360 hardcode_libdir_separator=:
19361 hardcode_shlibpath_var=no
19362 ;;
19363
19364 *nto* | *qnx*)
19365 ;;
19366
19367 openbsd*)
19368 if test -f /usr/libexec/ld.so; then
19369 hardcode_direct=yes
19370 hardcode_shlibpath_var=no
19371 hardcode_direct_absolute=yes
19372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19376 export_dynamic_flag_spec='${wl}-E'
19377 else
19378 case $host_os in
19379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19381 hardcode_libdir_flag_spec='-R$libdir'
19382 ;;
19383 *)
19384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19385 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19386 ;;
19387 esac
19388 fi
19389 else
19390 ld_shlibs=no
19391 fi
19392 ;;
19393
19394 os2*)
19395 hardcode_libdir_flag_spec='-L$libdir'
19396 hardcode_minus_L=yes
19397 allow_undefined_flag=unsupported
19398 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'
19399 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19400 ;;
19401
19402 osf3*)
19403 if test "$GCC" = yes; then
19404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19405 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'
19406 else
19407 allow_undefined_flag=' -expect_unresolved \*'
19408 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'
19409 fi
19410 archive_cmds_need_lc='no'
19411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19412 hardcode_libdir_separator=:
19413 ;;
19414
19415 osf4* | osf5*) # as osf3* with the addition of -msym flag
19416 if test "$GCC" = yes; then
19417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19418 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'
19419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19420 else
19421 allow_undefined_flag=' -expect_unresolved \*'
19422 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'
19423 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~
19424 $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'
19425
19426 # Both c and cxx compiler support -rpath directly
19427 hardcode_libdir_flag_spec='-rpath $libdir'
19428 fi
19429 archive_cmds_need_lc='no'
19430 hardcode_libdir_separator=:
19431 ;;
19432
19433 solaris*)
19434 no_undefined_flag=' -z defs'
19435 if test "$GCC" = yes; then
19436 wlarc='${wl}'
19437 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19439 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19440 else
19441 case `$CC -V 2>&1` in
19442 *"Compilers 5.0"*)
19443 wlarc=''
19444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19447 ;;
19448 *)
19449 wlarc='${wl}'
19450 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19452 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19453 ;;
19454 esac
19455 fi
19456 hardcode_libdir_flag_spec='-R$libdir'
19457 hardcode_shlibpath_var=no
19458 case $host_os in
19459 solaris2.[0-5] | solaris2.[0-5].*) ;;
19460 *)
19461 # The compiler driver will combine and reorder linker options,
19462 # but understands `-z linker_flag'. GCC discards it without `$wl',
19463 # but is careful enough not to reorder.
19464 # Supported since Solaris 2.6 (maybe 2.5.1?)
19465 if test "$GCC" = yes; then
19466 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19467 else
19468 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19469 fi
19470 ;;
19471 esac
19472 link_all_deplibs=yes
19473 ;;
19474
19475 sunos4*)
19476 if test "x$host_vendor" = xsequent; then
19477 # Use $CC to link under sequent, because it throws in some extra .o
19478 # files that make .init and .fini sections work.
19479 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19480 else
19481 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19482 fi
19483 hardcode_libdir_flag_spec='-L$libdir'
19484 hardcode_direct=yes
19485 hardcode_minus_L=yes
19486 hardcode_shlibpath_var=no
19487 ;;
19488
19489 sysv4)
19490 case $host_vendor in
19491 sni)
19492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19493 hardcode_direct=yes # is this really true???
19494 ;;
19495 siemens)
19496 ## LD is ld it makes a PLAMLIB
19497 ## CC just makes a GrossModule.
19498 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19499 reload_cmds='$CC -r -o $output$reload_objs'
19500 hardcode_direct=no
19501 ;;
19502 motorola)
19503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19505 ;;
19506 esac
19507 runpath_var='LD_RUN_PATH'
19508 hardcode_shlibpath_var=no
19509 ;;
19510
19511 sysv4.3*)
19512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19513 hardcode_shlibpath_var=no
19514 export_dynamic_flag_spec='-Bexport'
19515 ;;
19516
19517 sysv4*MP*)
19518 if test -d /usr/nec; then
19519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19520 hardcode_shlibpath_var=no
19521 runpath_var=LD_RUN_PATH
19522 hardcode_runpath_var=yes
19523 ld_shlibs=yes
19524 fi
19525 ;;
19526
19527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19528 no_undefined_flag='${wl}-z,text'
19529 archive_cmds_need_lc=no
19530 hardcode_shlibpath_var=no
19531 runpath_var='LD_RUN_PATH'
19532
19533 if test "$GCC" = yes; then
19534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 else
19537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19539 fi
19540 ;;
19541
19542 sysv5* | sco3.2v5* | sco5v6*)
19543 # Note: We can NOT use -z defs as we might desire, because we do not
19544 # link with -lc, and that would cause any symbols used from libc to
19545 # always be unresolved, which means just about no library would
19546 # ever link correctly. If we're not using GNU ld we use -z text
19547 # though, which does catch some bad symbols but isn't as heavy-handed
19548 # as -z defs.
19549 no_undefined_flag='${wl}-z,text'
19550 allow_undefined_flag='${wl}-z,nodefs'
19551 archive_cmds_need_lc=no
19552 hardcode_shlibpath_var=no
19553 hardcode_libdir_flag_spec='${wl}-R,$libdir'
19554 hardcode_libdir_separator=':'
19555 link_all_deplibs=yes
19556 export_dynamic_flag_spec='${wl}-Bexport'
19557 runpath_var='LD_RUN_PATH'
19558
19559 if test "$GCC" = yes; then
19560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 else
19563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19565 fi
19566 ;;
19567
19568 uts4*)
19569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19570 hardcode_libdir_flag_spec='-L$libdir'
19571 hardcode_shlibpath_var=no
19572 ;;
19573
19574 *)
19575 ld_shlibs=no
19576 ;;
19577 esac
19578
19579 if test x$host_vendor = xsni; then
19580 case $host in
19581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19582 export_dynamic_flag_spec='${wl}-Blargedynsym'
19583 ;;
19584 esac
19585 fi
19586 fi
19587
19588 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
19589 echo "${ECHO_T}$ld_shlibs" >&6
19590 test "$ld_shlibs" = no && can_build_shared=no
19591
19592 with_gnu_ld=$with_gnu_ld
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608 #
19609 # Do we need to explicitly link libc?
19610 #
19611 case "x$archive_cmds_need_lc" in
19612 x|xyes)
19613 # Assume -lc should be added
19614 archive_cmds_need_lc=yes
19615
19616 if test "$enable_shared" = yes && test "$GCC" = yes; then
19617 case $archive_cmds in
19618 *'~'*)
19619 # FIXME: we may have to deal with multi-command sequences.
19620 ;;
19621 '$CC '*)
19622 # Test whether the compiler implicitly links with -lc since on some
19623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19624 # to ld, don't add -lc before -lgcc.
19625 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19626 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19627 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630 $RM conftest*
19631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19632
19633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19634 (eval $ac_compile) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } 2>conftest.err; then
19638 soname=conftest
19639 lib=conftest
19640 libobjs=conftest.$ac_objext
19641 deplibs=
19642 wl=$lt_prog_compiler_wl
19643 pic_flag=$lt_prog_compiler_pic
19644 compiler_flags=-v
19645 linker_flags=-v
19646 verstring=
19647 output_objdir=.
19648 libname=conftest
19649 lt_save_allow_undefined_flag=$allow_undefined_flag
19650 allow_undefined_flag=
19651 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
19652 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }
19656 then
19657 lt_cv_archive_cmds_need_lc=no
19658 else
19659 lt_cv_archive_cmds_need_lc=yes
19660 fi
19661 allow_undefined_flag=$lt_save_allow_undefined_flag
19662 else
19663 cat conftest.err 1>&5
19664 fi
19665 $RM conftest*
19666
19667 fi
19668 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
19669 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
19670 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19671 ;;
19672 esac
19673 fi
19674 ;;
19675 esac
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19834 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19835
19836 if test "$GCC" = yes; then
19837 case $host_os in
19838 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
19839 *) lt_awk_arg="/^libraries:/" ;;
19840 esac
19841 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19842 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
19843 # if the path contains ";" then we assume it to be the separator
19844 # otherwise default to the standard path separator (i.e. ":") - it is
19845 # assumed that no part of a normal pathname contains ";" but that should
19846 # okay in the real world where ";" in dirpaths is itself problematic.
19847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
19848 else
19849 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19850 fi
19851 # Ok, now we have the path, separated by spaces, we can step through it
19852 # and add multilib dir if necessary.
19853 lt_tmp_lt_search_path_spec=
19854 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19855 for lt_sys_path in $lt_search_path_spec; do
19856 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
19857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
19858 else
19859 test -d "$lt_sys_path" && \
19860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19861 fi
19862 done
19863 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
19864 BEGIN {RS=" "; FS="/|\n";} {
19865 lt_foo="";
19866 lt_count=0;
19867 for (lt_i = NF; lt_i > 0; lt_i--) {
19868 if ($lt_i != "" && $lt_i != ".") {
19869 if ($lt_i == "..") {
19870 lt_count++;
19871 } else {
19872 if (lt_count == 0) {
19873 lt_foo="/" $lt_i lt_foo;
19874 } else {
19875 lt_count--;
19876 }
19877 }
19878 }
19879 }
19880 if (lt_foo != "") { lt_freq[lt_foo]++; }
19881 if (lt_freq[lt_foo] == 1) { print lt_foo; }
19882 }'`
19883 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
19884 else
19885 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19886 fi
19887 library_names_spec=
19888 libname_spec='lib$name'
19889 soname_spec=
19890 shrext_cmds=".so"
19891 postinstall_cmds=
19892 postuninstall_cmds=
19893 finish_cmds=
19894 finish_eval=
19895 shlibpath_var=
19896 shlibpath_overrides_runpath=unknown
19897 version_type=none
19898 dynamic_linker="$host_os ld.so"
19899 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19900 need_lib_prefix=unknown
19901 hardcode_into_libs=no
19902
19903 # when you set need_version to no, make sure it does not cause -set_version
19904 # flags to be left without arguments
19905 need_version=unknown
19906
19907 case $host_os in
19908 aix3*)
19909 version_type=linux
19910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19911 shlibpath_var=LIBPATH
19912
19913 # AIX 3 has no versioning support, so we append a major version to the name.
19914 soname_spec='${libname}${release}${shared_ext}$major'
19915 ;;
19916
19917 aix[4-9]*)
19918 version_type=linux
19919 need_lib_prefix=no
19920 need_version=no
19921 hardcode_into_libs=yes
19922 if test "$host_cpu" = ia64; then
19923 # AIX 5 supports IA64
19924 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19925 shlibpath_var=LD_LIBRARY_PATH
19926 else
19927 # With GCC up to 2.95.x, collect2 would create an import file
19928 # for dependence libraries. The import file would start with
19929 # the line `#! .'. This would cause the generated library to
19930 # depend on `.', always an invalid library. This was fixed in
19931 # development snapshots of GCC prior to 3.0.
19932 case $host_os in
19933 aix4 | aix4.[01] | aix4.[01].*)
19934 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19935 echo ' yes '
19936 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19937 :
19938 else
19939 can_build_shared=no
19940 fi
19941 ;;
19942 esac
19943 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19944 # soname into executable. Probably we can add versioning support to
19945 # collect2, so additional links can be useful in future.
19946 if test "$aix_use_runtimelinking" = yes; then
19947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19948 # instead of lib<name>.a to let people know that these are not
19949 # typical AIX shared libraries.
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 else
19952 # We preserve .a as extension for shared libraries through AIX4.2
19953 # and later when we are not doing run time linking.
19954 library_names_spec='${libname}${release}.a $libname.a'
19955 soname_spec='${libname}${release}${shared_ext}$major'
19956 fi
19957 shlibpath_var=LIBPATH
19958 fi
19959 ;;
19960
19961 amigaos*)
19962 case $host_cpu in
19963 powerpc)
19964 # Since July 2007 AmigaOS4 officially supports .so libraries.
19965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19967 ;;
19968 m68k)
19969 library_names_spec='$libname.ixlibrary $libname.a'
19970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19971 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'
19972 ;;
19973 esac
19974 ;;
19975
19976 beos*)
19977 library_names_spec='${libname}${shared_ext}'
19978 dynamic_linker="$host_os ld.so"
19979 shlibpath_var=LIBRARY_PATH
19980 ;;
19981
19982 bsdi[45]*)
19983 version_type=linux
19984 need_version=no
19985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19986 soname_spec='${libname}${release}${shared_ext}$major'
19987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19988 shlibpath_var=LD_LIBRARY_PATH
19989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19991 # the default ld.so.conf also contains /usr/contrib/lib and
19992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19993 # libtool to hard-code these into programs
19994 ;;
19995
19996 cygwin* | mingw* | pw32* | cegcc*)
19997 version_type=windows
19998 shrext_cmds=".dll"
19999 need_version=no
20000 need_lib_prefix=no
20001
20002 case $GCC,$host_os in
20003 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20004 library_names_spec='$libname.dll.a'
20005 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20006 postinstall_cmds='base_file=`basename \${file}`~
20007 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20008 dldir=$destdir/`dirname \$dlpath`~
20009 test -d \$dldir || mkdir -p \$dldir~
20010 $install_prog $dir/$dlname \$dldir/$dlname~
20011 chmod a+x \$dldir/$dlname~
20012 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20013 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20014 fi'
20015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20016 dlpath=$dir/\$dldll~
20017 $RM \$dlpath'
20018 shlibpath_overrides_runpath=yes
20019
20020 case $host_os in
20021 cygwin*)
20022 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20023 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20024 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20025 ;;
20026 mingw* | cegcc*)
20027 # MinGW DLLs use traditional 'lib' prefix
20028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20029 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20030 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20031 # It is most probably a Windows format PATH printed by
20032 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20033 # path with ; separators, and with drive letters. We can handle the
20034 # drive letters (cygwin fileutils understands them), so leave them,
20035 # especially as we might pass files found there to a mingw objdump,
20036 # which wouldn't understand a cygwinified path. Ahh.
20037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20038 else
20039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20040 fi
20041 ;;
20042 pw32*)
20043 # pw32 DLLs use 'pw' prefix rather than 'lib'
20044 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20045 ;;
20046 esac
20047 ;;
20048
20049 *)
20050 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20051 ;;
20052 esac
20053 dynamic_linker='Win32 ld.exe'
20054 # FIXME: first we should search . and the directory the executable is in
20055 shlibpath_var=PATH
20056 ;;
20057
20058 darwin* | rhapsody*)
20059 dynamic_linker="$host_os dyld"
20060 version_type=darwin
20061 need_lib_prefix=no
20062 need_version=no
20063 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20064 soname_spec='${libname}${release}${major}$shared_ext'
20065 shlibpath_overrides_runpath=yes
20066 shlibpath_var=DYLD_LIBRARY_PATH
20067 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20068
20069 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
20070 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20071 ;;
20072
20073 dgux*)
20074 version_type=linux
20075 need_lib_prefix=no
20076 need_version=no
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 shlibpath_var=LD_LIBRARY_PATH
20080 ;;
20081
20082 freebsd1*)
20083 dynamic_linker=no
20084 ;;
20085
20086 freebsd* | dragonfly*)
20087 # DragonFly does not have aout. When/if they implement a new
20088 # versioning mechanism, adjust this.
20089 if test -x /usr/bin/objformat; then
20090 objformat=`/usr/bin/objformat`
20091 else
20092 case $host_os in
20093 freebsd[123]*) objformat=aout ;;
20094 *) objformat=elf ;;
20095 esac
20096 fi
20097 version_type=freebsd-$objformat
20098 case $version_type in
20099 freebsd-elf*)
20100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20101 need_version=no
20102 need_lib_prefix=no
20103 ;;
20104 freebsd-*)
20105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20106 need_version=yes
20107 ;;
20108 esac
20109 shlibpath_var=LD_LIBRARY_PATH
20110 case $host_os in
20111 freebsd2*)
20112 shlibpath_overrides_runpath=yes
20113 ;;
20114 freebsd3.[01]* | freebsdelf3.[01]*)
20115 shlibpath_overrides_runpath=yes
20116 hardcode_into_libs=yes
20117 ;;
20118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20120 shlibpath_overrides_runpath=no
20121 hardcode_into_libs=yes
20122 ;;
20123 *) # from 4.6 on, and DragonFly
20124 shlibpath_overrides_runpath=yes
20125 hardcode_into_libs=yes
20126 ;;
20127 esac
20128 ;;
20129
20130 gnu*)
20131 version_type=linux
20132 need_lib_prefix=no
20133 need_version=no
20134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20135 soname_spec='${libname}${release}${shared_ext}$major'
20136 shlibpath_var=LD_LIBRARY_PATH
20137 hardcode_into_libs=yes
20138 ;;
20139
20140 hpux9* | hpux10* | hpux11*)
20141 # Give a soname corresponding to the major version so that dld.sl refuses to
20142 # link against other versions.
20143 version_type=sunos
20144 need_lib_prefix=no
20145 need_version=no
20146 case $host_cpu in
20147 ia64*)
20148 shrext_cmds='.so'
20149 hardcode_into_libs=yes
20150 dynamic_linker="$host_os dld.so"
20151 shlibpath_var=LD_LIBRARY_PATH
20152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 if test "X$HPUX_IA64_MODE" = X32; then
20156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20157 else
20158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20159 fi
20160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161 ;;
20162 hppa*64*)
20163 shrext_cmds='.sl'
20164 hardcode_into_libs=yes
20165 dynamic_linker="$host_os dld.sl"
20166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 soname_spec='${libname}${release}${shared_ext}$major'
20170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20172 ;;
20173 *)
20174 shrext_cmds='.sl'
20175 dynamic_linker="$host_os dld.sl"
20176 shlibpath_var=SHLIB_PATH
20177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 ;;
20181 esac
20182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20183 postinstall_cmds='chmod 555 $lib'
20184 ;;
20185
20186 interix[3-9]*)
20187 version_type=linux
20188 need_lib_prefix=no
20189 need_version=no
20190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20191 soname_spec='${libname}${release}${shared_ext}$major'
20192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20193 shlibpath_var=LD_LIBRARY_PATH
20194 shlibpath_overrides_runpath=no
20195 hardcode_into_libs=yes
20196 ;;
20197
20198 irix5* | irix6* | nonstopux*)
20199 case $host_os in
20200 nonstopux*) version_type=nonstopux ;;
20201 *)
20202 if test "$lt_cv_prog_gnu_ld" = yes; then
20203 version_type=linux
20204 else
20205 version_type=irix
20206 fi ;;
20207 esac
20208 need_lib_prefix=no
20209 need_version=no
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20212 case $host_os in
20213 irix5* | nonstopux*)
20214 libsuff= shlibsuff=
20215 ;;
20216 *)
20217 case $LD in # libtool.m4 will add one of these switches to LD
20218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20219 libsuff= shlibsuff= libmagic=32-bit;;
20220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20221 libsuff=32 shlibsuff=N32 libmagic=N32;;
20222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20223 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20224 *) libsuff= shlibsuff= libmagic=never-match;;
20225 esac
20226 ;;
20227 esac
20228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20229 shlibpath_overrides_runpath=no
20230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20232 hardcode_into_libs=yes
20233 ;;
20234
20235 # No shared lib support for Linux oldld, aout, or coff.
20236 linux*oldld* | linux*aout* | linux*coff*)
20237 dynamic_linker=no
20238 ;;
20239
20240 # This must be Linux ELF.
20241 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20242 version_type=linux
20243 need_lib_prefix=no
20244 need_version=no
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20248 shlibpath_var=LD_LIBRARY_PATH
20249 shlibpath_overrides_runpath=no
20250
20251 # Some binutils ld are patched to set DT_RUNPATH
20252 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255 lt_cv_shlibpath_overrides_runpath=no
20256 save_LDFLAGS=$LDFLAGS
20257 save_libdir=$libdir
20258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
20259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266
20267 int
20268 main ()
20269 {
20270
20271 ;
20272 return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20277 (eval $ac_link) 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } &&
20284 { ac_try='test -z "$ac_c_werror_flag"
20285 || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
20298 lt_cv_shlibpath_overrides_runpath=yes
20299 fi
20300
20301 else
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 fi
20306 rm -f conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308 LDFLAGS=$save_LDFLAGS
20309 libdir=$save_libdir
20310
20311 fi
20312
20313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20314
20315 # This implies no fast_install, which is unacceptable.
20316 # Some rework will be needed to allow for fast_install
20317 # before this can be enabled.
20318 hardcode_into_libs=yes
20319
20320 # Append ld.so.conf contents to the search path
20321 if test -f /etc/ld.so.conf; then
20322 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20323 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20324 fi
20325
20326 # We used to test for /lib/ld.so.1 and disable shared libraries on
20327 # powerpc, because MkLinux only supported shared libraries with the
20328 # GNU dynamic linker. Since this was broken with cross compilers,
20329 # most powerpc-linux boxes support dynamic linking these days and
20330 # people can always --disable-shared, the test was removed, and we
20331 # assume the GNU/Linux dynamic linker is in use.
20332 dynamic_linker='GNU/Linux ld.so'
20333 ;;
20334
20335 netbsd*)
20336 version_type=sunos
20337 need_lib_prefix=no
20338 need_version=no
20339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20342 dynamic_linker='NetBSD (a.out) ld.so'
20343 else
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 dynamic_linker='NetBSD ld.elf_so'
20347 fi
20348 shlibpath_var=LD_LIBRARY_PATH
20349 shlibpath_overrides_runpath=yes
20350 hardcode_into_libs=yes
20351 ;;
20352
20353 newsos6)
20354 version_type=linux
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=yes
20358 ;;
20359
20360 *nto* | *qnx*)
20361 version_type=qnx
20362 need_lib_prefix=no
20363 need_version=no
20364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20365 soname_spec='${libname}${release}${shared_ext}$major'
20366 shlibpath_var=LD_LIBRARY_PATH
20367 shlibpath_overrides_runpath=no
20368 hardcode_into_libs=yes
20369 dynamic_linker='ldqnx.so'
20370 ;;
20371
20372 openbsd*)
20373 version_type=sunos
20374 sys_lib_dlsearch_path_spec="/usr/lib"
20375 need_lib_prefix=no
20376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20377 case $host_os in
20378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20379 *) need_version=no ;;
20380 esac
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20383 shlibpath_var=LD_LIBRARY_PATH
20384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20385 case $host_os in
20386 openbsd2.[89] | openbsd2.[89].*)
20387 shlibpath_overrides_runpath=no
20388 ;;
20389 *)
20390 shlibpath_overrides_runpath=yes
20391 ;;
20392 esac
20393 else
20394 shlibpath_overrides_runpath=yes
20395 fi
20396 ;;
20397
20398 os2*)
20399 libname_spec='$name'
20400 shrext_cmds=".dll"
20401 need_lib_prefix=no
20402 library_names_spec='$libname${shared_ext} $libname.a'
20403 dynamic_linker='OS/2 ld.exe'
20404 shlibpath_var=LIBPATH
20405 ;;
20406
20407 osf3* | osf4* | osf5*)
20408 version_type=osf
20409 need_lib_prefix=no
20410 need_version=no
20411 soname_spec='${libname}${release}${shared_ext}$major'
20412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413 shlibpath_var=LD_LIBRARY_PATH
20414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20416 ;;
20417
20418 rdos*)
20419 dynamic_linker=no
20420 ;;
20421
20422 solaris*)
20423 version_type=linux
20424 need_lib_prefix=no
20425 need_version=no
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 shlibpath_overrides_runpath=yes
20430 hardcode_into_libs=yes
20431 # ldd complains unless libraries are executable
20432 postinstall_cmds='chmod +x $lib'
20433 ;;
20434
20435 sunos4*)
20436 version_type=sunos
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=yes
20441 if test "$with_gnu_ld" = yes; then
20442 need_lib_prefix=no
20443 fi
20444 need_version=yes
20445 ;;
20446
20447 sysv4 | sysv4.3*)
20448 version_type=linux
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 case $host_vendor in
20453 sni)
20454 shlibpath_overrides_runpath=no
20455 need_lib_prefix=no
20456 runpath_var=LD_RUN_PATH
20457 ;;
20458 siemens)
20459 need_lib_prefix=no
20460 ;;
20461 motorola)
20462 need_lib_prefix=no
20463 need_version=no
20464 shlibpath_overrides_runpath=no
20465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20466 ;;
20467 esac
20468 ;;
20469
20470 sysv4*MP*)
20471 if test -d /usr/nec ;then
20472 version_type=linux
20473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20474 soname_spec='$libname${shared_ext}.$major'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 fi
20477 ;;
20478
20479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20480 version_type=freebsd-elf
20481 need_lib_prefix=no
20482 need_version=no
20483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20484 soname_spec='${libname}${release}${shared_ext}$major'
20485 shlibpath_var=LD_LIBRARY_PATH
20486 shlibpath_overrides_runpath=yes
20487 hardcode_into_libs=yes
20488 if test "$with_gnu_ld" = yes; then
20489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20490 else
20491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20492 case $host_os in
20493 sco3.2v5*)
20494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20495 ;;
20496 esac
20497 fi
20498 sys_lib_dlsearch_path_spec='/usr/lib'
20499 ;;
20500
20501 tpf*)
20502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20503 version_type=linux
20504 need_lib_prefix=no
20505 need_version=no
20506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 shlibpath_overrides_runpath=no
20509 hardcode_into_libs=yes
20510 ;;
20511
20512 uts4*)
20513 version_type=linux
20514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 ;;
20518
20519 *)
20520 dynamic_linker=no
20521 ;;
20522 esac
20523 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20524 echo "${ECHO_T}$dynamic_linker" >&6
20525 test "$dynamic_linker" = no && can_build_shared=no
20526
20527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20528 if test "$GCC" = yes; then
20529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20530 fi
20531
20532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20533 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20534 fi
20535 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20536 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20537 fi
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20626 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20627 hardcode_action=
20628 if test -n "$hardcode_libdir_flag_spec" ||
20629 test -n "$runpath_var" ||
20630 test "X$hardcode_automatic" = "Xyes" ; then
20631
20632 # We can hardcode non-existent directories.
20633 if test "$hardcode_direct" != no &&
20634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20635 # have to relink, otherwise we might link with an installed library
20636 # when we should be linking with a yet-to-be-installed one
20637 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
20638 test "$hardcode_minus_L" != no; then
20639 # Linking always hardcodes the temporary library directory.
20640 hardcode_action=relink
20641 else
20642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20643 hardcode_action=immediate
20644 fi
20645 else
20646 # We cannot hardcode anything, or else we can only hardcode existing
20647 # directories.
20648 hardcode_action=unsupported
20649 fi
20650 echo "$as_me:$LINENO: result: $hardcode_action" >&5
20651 echo "${ECHO_T}$hardcode_action" >&6
20652
20653 if test "$hardcode_action" = relink ||
20654 test "$inherit_rpath" = yes; then
20655 # Fast installation is not supported
20656 enable_fast_install=no
20657 elif test "$shlibpath_overrides_runpath" = yes ||
20658 test "$enable_shared" = no; then
20659 # Fast installation is not necessary
20660 enable_fast_install=needless
20661 fi
20662
20663
20664
20665
20666
20667
20668 if test "x$enable_dlopen" != xyes; then
20669 enable_dlopen=unknown
20670 enable_dlopen_self=unknown
20671 enable_dlopen_self_static=unknown
20672 else
20673 lt_cv_dlopen=no
20674 lt_cv_dlopen_libs=
20675
20676 case $host_os in
20677 beos*)
20678 lt_cv_dlopen="load_add_on"
20679 lt_cv_dlopen_libs=
20680 lt_cv_dlopen_self=yes
20681 ;;
20682
20683 mingw* | pw32* | cegcc*)
20684 lt_cv_dlopen="LoadLibrary"
20685 lt_cv_dlopen_libs=
20686 ;;
20687
20688 cygwin*)
20689 lt_cv_dlopen="dlopen"
20690 lt_cv_dlopen_libs=
20691 ;;
20692
20693 darwin*)
20694 # if libdl is installed we need to link against it
20695 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20696 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20697 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700 ac_check_lib_save_LIBS=$LIBS
20701 LIBS="-ldl $LIBS"
20702 cat >conftest.$ac_ext <<_ACEOF
20703 /* confdefs.h. */
20704 _ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708
20709 /* Override any gcc2 internal prototype to avoid an error. */
20710 #ifdef __cplusplus
20711 extern "C"
20712 #endif
20713 /* We use char because int might match the return type of a gcc2
20714 builtin and then its argument prototype would still apply. */
20715 char dlopen ();
20716 int
20717 main ()
20718 {
20719 dlopen ();
20720 ;
20721 return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20726 (eval $ac_link) 2>conftest.er1
20727 ac_status=$?
20728 grep -v '^ *+' conftest.er1 >conftest.err
20729 rm -f conftest.er1
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } &&
20733 { ac_try='test -z "$ac_c_werror_flag"
20734 || test ! -s conftest.err'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest$ac_exeext'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_cv_lib_dl_dlopen=yes
20747 else
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_cv_lib_dl_dlopen=no
20752 fi
20753 rm -f conftest.err conftest.$ac_objext \
20754 conftest$ac_exeext conftest.$ac_ext
20755 LIBS=$ac_check_lib_save_LIBS
20756 fi
20757 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20758 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20759 if test $ac_cv_lib_dl_dlopen = yes; then
20760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20761 else
20762
20763 lt_cv_dlopen="dyld"
20764 lt_cv_dlopen_libs=
20765 lt_cv_dlopen_self=yes
20766
20767 fi
20768
20769 ;;
20770
20771 *)
20772 echo "$as_me:$LINENO: checking for shl_load" >&5
20773 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20774 if test "${ac_cv_func_shl_load+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20785 #define shl_load innocuous_shl_load
20786
20787 /* System header to define __stub macros and hopefully few prototypes,
20788 which can conflict with char shl_load (); below.
20789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20790 <limits.h> exists even on freestanding compilers. */
20791
20792 #ifdef __STDC__
20793 # include <limits.h>
20794 #else
20795 # include <assert.h>
20796 #endif
20797
20798 #undef shl_load
20799
20800 /* Override any gcc2 internal prototype to avoid an error. */
20801 #ifdef __cplusplus
20802 extern "C"
20803 {
20804 #endif
20805 /* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20807 char shl_load ();
20808 /* The GNU C library defines this for functions which it implements
20809 to always fail with ENOSYS. Some functions are actually named
20810 something starting with __ and the normal name is an alias. */
20811 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20812 choke me
20813 #else
20814 char (*f) () = shl_load;
20815 #endif
20816 #ifdef __cplusplus
20817 }
20818 #endif
20819
20820 int
20821 main ()
20822 {
20823 return f != shl_load;
20824 ;
20825 return 0;
20826 }
20827 _ACEOF
20828 rm -f conftest.$ac_objext conftest$ac_exeext
20829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20830 (eval $ac_link) 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
20837 { ac_try='test -z "$ac_c_werror_flag"
20838 || test ! -s conftest.err'
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest$ac_exeext'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_func_shl_load=yes
20851 else
20852 echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_cv_func_shl_load=no
20856 fi
20857 rm -f conftest.err conftest.$ac_objext \
20858 conftest$ac_exeext conftest.$ac_ext
20859 fi
20860 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20861 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20862 if test $ac_cv_func_shl_load = yes; then
20863 lt_cv_dlopen="shl_load"
20864 else
20865 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20866 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20867 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 else
20870 ac_check_lib_save_LIBS=$LIBS
20871 LIBS="-ldld $LIBS"
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878
20879 /* Override any gcc2 internal prototype to avoid an error. */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 /* We use char because int might match the return type of a gcc2
20884 builtin and then its argument prototype would still apply. */
20885 char shl_load ();
20886 int
20887 main ()
20888 {
20889 shl_load ();
20890 ;
20891 return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest.$ac_objext conftest$ac_exeext
20895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20896 (eval $ac_link) 2>conftest.er1
20897 ac_status=$?
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
20903 { ac_try='test -z "$ac_c_werror_flag"
20904 || test ! -s conftest.err'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20907 ac_status=$?
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } &&
20910 { ac_try='test -s conftest$ac_exeext'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
20916 ac_cv_lib_dld_shl_load=yes
20917 else
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 ac_cv_lib_dld_shl_load=no
20922 fi
20923 rm -f conftest.err conftest.$ac_objext \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20926 fi
20927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20928 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20929 if test $ac_cv_lib_dld_shl_load = yes; then
20930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
20931 else
20932 echo "$as_me:$LINENO: checking for dlopen" >&5
20933 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20934 if test "${ac_cv_func_dlopen+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936 else
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h. */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20945 #define dlopen innocuous_dlopen
20946
20947 /* System header to define __stub macros and hopefully few prototypes,
20948 which can conflict with char dlopen (); below.
20949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20950 <limits.h> exists even on freestanding compilers. */
20951
20952 #ifdef __STDC__
20953 # include <limits.h>
20954 #else
20955 # include <assert.h>
20956 #endif
20957
20958 #undef dlopen
20959
20960 /* Override any gcc2 internal prototype to avoid an error. */
20961 #ifdef __cplusplus
20962 extern "C"
20963 {
20964 #endif
20965 /* We use char because int might match the return type of a gcc2
20966 builtin and then its argument prototype would still apply. */
20967 char dlopen ();
20968 /* The GNU C library defines this for functions which it implements
20969 to always fail with ENOSYS. Some functions are actually named
20970 something starting with __ and the normal name is an alias. */
20971 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20972 choke me
20973 #else
20974 char (*f) () = dlopen;
20975 #endif
20976 #ifdef __cplusplus
20977 }
20978 #endif
20979
20980 int
20981 main ()
20982 {
20983 return f != dlopen;
20984 ;
20985 return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20990 (eval $ac_link) 2>conftest.er1
20991 ac_status=$?
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
20997 { ac_try='test -z "$ac_c_werror_flag"
20998 || test ! -s conftest.err'
20999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; } &&
21004 { ac_try='test -s conftest$ac_exeext'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_cv_func_dlopen=yes
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015 ac_cv_func_dlopen=no
21016 fi
21017 rm -f conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21019 fi
21020 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21021 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21022 if test $ac_cv_func_dlopen = yes; then
21023 lt_cv_dlopen="dlopen"
21024 else
21025 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21026 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21027 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 else
21030 ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-ldl $LIBS"
21032 cat >conftest.$ac_ext <<_ACEOF
21033 /* confdefs.h. */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038
21039 /* Override any gcc2 internal prototype to avoid an error. */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 /* We use char because int might match the return type of a gcc2
21044 builtin and then its argument prototype would still apply. */
21045 char dlopen ();
21046 int
21047 main ()
21048 {
21049 dlopen ();
21050 ;
21051 return 0;
21052 }
21053 _ACEOF
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21056 (eval $ac_link) 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } &&
21063 { ac_try='test -z "$ac_c_werror_flag"
21064 || test ! -s conftest.err'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest$ac_exeext'
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_cv_lib_dl_dlopen=yes
21077 else
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081 ac_cv_lib_dl_dlopen=no
21082 fi
21083 rm -f conftest.err conftest.$ac_objext \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21086 fi
21087 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21088 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21089 if test $ac_cv_lib_dl_dlopen = yes; then
21090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21091 else
21092 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21093 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21094 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097 ac_check_lib_save_LIBS=$LIBS
21098 LIBS="-lsvld $LIBS"
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h. */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21105
21106 /* Override any gcc2 internal prototype to avoid an error. */
21107 #ifdef __cplusplus
21108 extern "C"
21109 #endif
21110 /* We use char because int might match the return type of a gcc2
21111 builtin and then its argument prototype would still apply. */
21112 char dlopen ();
21113 int
21114 main ()
21115 {
21116 dlopen ();
21117 ;
21118 return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest.$ac_objext conftest$ac_exeext
21122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21123 (eval $ac_link) 2>conftest.er1
21124 ac_status=$?
21125 grep -v '^ *+' conftest.er1 >conftest.err
21126 rm -f conftest.er1
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 { ac_try='test -z "$ac_c_werror_flag"
21131 || test ! -s conftest.err'
21132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; } &&
21137 { ac_try='test -s conftest$ac_exeext'
21138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21139 (eval $ac_try) 2>&5
21140 ac_status=$?
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 ac_cv_lib_svld_dlopen=yes
21144 else
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148 ac_cv_lib_svld_dlopen=no
21149 fi
21150 rm -f conftest.err conftest.$ac_objext \
21151 conftest$ac_exeext conftest.$ac_ext
21152 LIBS=$ac_check_lib_save_LIBS
21153 fi
21154 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21155 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21156 if test $ac_cv_lib_svld_dlopen = yes; then
21157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21158 else
21159 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21160 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21161 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21162 echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164 ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-ldld $LIBS"
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172
21173 /* Override any gcc2 internal prototype to avoid an error. */
21174 #ifdef __cplusplus
21175 extern "C"
21176 #endif
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21179 char dld_link ();
21180 int
21181 main ()
21182 {
21183 dld_link ();
21184 ;
21185 return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21190 (eval $ac_link) 2>conftest.er1
21191 ac_status=$?
21192 grep -v '^ *+' conftest.er1 >conftest.err
21193 rm -f conftest.er1
21194 cat conftest.err >&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } &&
21197 { ac_try='test -z "$ac_c_werror_flag"
21198 || test ! -s conftest.err'
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; } &&
21204 { ac_try='test -s conftest$ac_exeext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_lib_dld_dld_link=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_cv_lib_dld_dld_link=no
21216 fi
21217 rm -f conftest.err conftest.$ac_objext \
21218 conftest$ac_exeext conftest.$ac_ext
21219 LIBS=$ac_check_lib_save_LIBS
21220 fi
21221 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21222 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21223 if test $ac_cv_lib_dld_dld_link = yes; then
21224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
21225 fi
21226
21227
21228 fi
21229
21230
21231 fi
21232
21233
21234 fi
21235
21236
21237 fi
21238
21239
21240 fi
21241
21242 ;;
21243 esac
21244
21245 if test "x$lt_cv_dlopen" != xno; then
21246 enable_dlopen=yes
21247 else
21248 enable_dlopen=no
21249 fi
21250
21251 case $lt_cv_dlopen in
21252 dlopen)
21253 save_CPPFLAGS="$CPPFLAGS"
21254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21255
21256 save_LDFLAGS="$LDFLAGS"
21257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21258
21259 save_LIBS="$LIBS"
21260 LIBS="$lt_cv_dlopen_libs $LIBS"
21261
21262 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21263 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21264 if test "${lt_cv_dlopen_self+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 if test "$cross_compiling" = yes; then :
21268 lt_cv_dlopen_self=cross
21269 else
21270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21271 lt_status=$lt_dlunknown
21272 cat > conftest.$ac_ext <<_LT_EOF
21273 #line 21273 "configure"
21274 #include "confdefs.h"
21275
21276 #if HAVE_DLFCN_H
21277 #include <dlfcn.h>
21278 #endif
21279
21280 #include <stdio.h>
21281
21282 #ifdef RTLD_GLOBAL
21283 # define LT_DLGLOBAL RTLD_GLOBAL
21284 #else
21285 # ifdef DL_GLOBAL
21286 # define LT_DLGLOBAL DL_GLOBAL
21287 # else
21288 # define LT_DLGLOBAL 0
21289 # endif
21290 #endif
21291
21292 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21293 find out it does not work in some platform. */
21294 #ifndef LT_DLLAZY_OR_NOW
21295 # ifdef RTLD_LAZY
21296 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21297 # else
21298 # ifdef DL_LAZY
21299 # define LT_DLLAZY_OR_NOW DL_LAZY
21300 # else
21301 # ifdef RTLD_NOW
21302 # define LT_DLLAZY_OR_NOW RTLD_NOW
21303 # else
21304 # ifdef DL_NOW
21305 # define LT_DLLAZY_OR_NOW DL_NOW
21306 # else
21307 # define LT_DLLAZY_OR_NOW 0
21308 # endif
21309 # endif
21310 # endif
21311 # endif
21312 #endif
21313
21314 void fnord() { int i=42;}
21315 int main ()
21316 {
21317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21318 int status = $lt_dlunknown;
21319
21320 if (self)
21321 {
21322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21323 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21324 /* dlclose (self); */
21325 }
21326 else
21327 puts (dlerror ());
21328
21329 return status;
21330 }
21331 _LT_EOF
21332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21333 (eval $ac_link) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21337 (./conftest; exit; ) >&5 2>/dev/null
21338 lt_status=$?
21339 case x$lt_status in
21340 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21341 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21342 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
21343 esac
21344 else :
21345 # compilation failed
21346 lt_cv_dlopen_self=no
21347 fi
21348 fi
21349 rm -fr conftest*
21350
21351
21352 fi
21353 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21354 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21355
21356 if test "x$lt_cv_dlopen_self" = xyes; then
21357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
21358 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21359 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21360 if test "${lt_cv_dlopen_self_static+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 else
21363 if test "$cross_compiling" = yes; then :
21364 lt_cv_dlopen_self_static=cross
21365 else
21366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21367 lt_status=$lt_dlunknown
21368 cat > conftest.$ac_ext <<_LT_EOF
21369 #line 21369 "configure"
21370 #include "confdefs.h"
21371
21372 #if HAVE_DLFCN_H
21373 #include <dlfcn.h>
21374 #endif
21375
21376 #include <stdio.h>
21377
21378 #ifdef RTLD_GLOBAL
21379 # define LT_DLGLOBAL RTLD_GLOBAL
21380 #else
21381 # ifdef DL_GLOBAL
21382 # define LT_DLGLOBAL DL_GLOBAL
21383 # else
21384 # define LT_DLGLOBAL 0
21385 # endif
21386 #endif
21387
21388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21389 find out it does not work in some platform. */
21390 #ifndef LT_DLLAZY_OR_NOW
21391 # ifdef RTLD_LAZY
21392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21393 # else
21394 # ifdef DL_LAZY
21395 # define LT_DLLAZY_OR_NOW DL_LAZY
21396 # else
21397 # ifdef RTLD_NOW
21398 # define LT_DLLAZY_OR_NOW RTLD_NOW
21399 # else
21400 # ifdef DL_NOW
21401 # define LT_DLLAZY_OR_NOW DL_NOW
21402 # else
21403 # define LT_DLLAZY_OR_NOW 0
21404 # endif
21405 # endif
21406 # endif
21407 # endif
21408 #endif
21409
21410 void fnord() { int i=42;}
21411 int main ()
21412 {
21413 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21414 int status = $lt_dlunknown;
21415
21416 if (self)
21417 {
21418 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21419 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21420 /* dlclose (self); */
21421 }
21422 else
21423 puts (dlerror ());
21424
21425 return status;
21426 }
21427 _LT_EOF
21428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21429 (eval $ac_link) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21433 (./conftest; exit; ) >&5 2>/dev/null
21434 lt_status=$?
21435 case x$lt_status in
21436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
21439 esac
21440 else :
21441 # compilation failed
21442 lt_cv_dlopen_self_static=no
21443 fi
21444 fi
21445 rm -fr conftest*
21446
21447
21448 fi
21449 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21450 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21451 fi
21452
21453 CPPFLAGS="$save_CPPFLAGS"
21454 LDFLAGS="$save_LDFLAGS"
21455 LIBS="$save_LIBS"
21456 ;;
21457 esac
21458
21459 case $lt_cv_dlopen_self in
21460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21461 *) enable_dlopen_self=unknown ;;
21462 esac
21463
21464 case $lt_cv_dlopen_self_static in
21465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21466 *) enable_dlopen_self_static=unknown ;;
21467 esac
21468 fi
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486 striplib=
21487 old_striplib=
21488 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21489 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21490 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
21491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21493 echo "$as_me:$LINENO: result: yes" >&5
21494 echo "${ECHO_T}yes" >&6
21495 else
21496 # FIXME - insert some real tests, host_os isn't really good enough
21497 case $host_os in
21498 darwin*)
21499 if test -n "$STRIP" ; then
21500 striplib="$STRIP -x"
21501 old_striplib="$STRIP -S"
21502 echo "$as_me:$LINENO: result: yes" >&5
21503 echo "${ECHO_T}yes" >&6
21504 else
21505 echo "$as_me:$LINENO: result: no" >&5
21506 echo "${ECHO_T}no" >&6
21507 fi
21508 ;;
21509 *)
21510 echo "$as_me:$LINENO: result: no" >&5
21511 echo "${ECHO_T}no" >&6
21512 ;;
21513 esac
21514 fi
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527 # Report which library types will actually be built
21528 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21529 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
21530 echo "$as_me:$LINENO: result: $can_build_shared" >&5
21531 echo "${ECHO_T}$can_build_shared" >&6
21532
21533 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21534 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
21535 test "$can_build_shared" = "no" && enable_shared=no
21536
21537 # On AIX, shared libraries and static libraries use the same namespace, and
21538 # are all built from PIC.
21539 case $host_os in
21540 aix3*)
21541 test "$enable_shared" = yes && enable_static=no
21542 if test -n "$RANLIB"; then
21543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21544 postinstall_cmds='$RANLIB $lib'
21545 fi
21546 ;;
21547
21548 aix[4-9]*)
21549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21550 test "$enable_shared" = yes && enable_static=no
21551 fi
21552 ;;
21553 esac
21554 echo "$as_me:$LINENO: result: $enable_shared" >&5
21555 echo "${ECHO_T}$enable_shared" >&6
21556
21557 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21558 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
21559 # Make sure either enable_shared or enable_static is yes.
21560 test "$enable_shared" = yes || enable_static=yes
21561 echo "$as_me:$LINENO: result: $enable_static" >&5
21562 echo "${ECHO_T}$enable_static" >&6
21563
21564
21565
21566
21567 fi
21568 ac_ext=c
21569 ac_cpp='$CPP $CPPFLAGS'
21570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574 CC="$lt_save_CC"
21575
21576
21577 ac_ext=cc
21578 ac_cpp='$CXXCPP $CPPFLAGS'
21579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21582
21583 archive_cmds_need_lc_CXX=no
21584 allow_undefined_flag_CXX=
21585 always_export_symbols_CXX=no
21586 archive_expsym_cmds_CXX=
21587 compiler_needs_object_CXX=no
21588 export_dynamic_flag_spec_CXX=
21589 hardcode_direct_CXX=no
21590 hardcode_direct_absolute_CXX=no
21591 hardcode_libdir_flag_spec_CXX=
21592 hardcode_libdir_flag_spec_ld_CXX=
21593 hardcode_libdir_separator_CXX=
21594 hardcode_minus_L_CXX=no
21595 hardcode_shlibpath_var_CXX=unsupported
21596 hardcode_automatic_CXX=no
21597 inherit_rpath_CXX=no
21598 module_cmds_CXX=
21599 module_expsym_cmds_CXX=
21600 link_all_deplibs_CXX=unknown
21601 old_archive_cmds_CXX=$old_archive_cmds
21602 no_undefined_flag_CXX=
21603 whole_archive_flag_spec_CXX=
21604 enable_shared_with_static_runtimes_CXX=no
21605
21606 # Source file extension for C++ test sources.
21607 ac_ext=cpp
21608
21609 # Object file extension for compiled C++ test sources.
21610 objext=o
21611 objext_CXX=$objext
21612
21613 # No sense in running all these tests if we already determined that
21614 # the CXX compiler isn't working. Some variables (like enable_shared)
21615 # are currently assumed to apply to all compilers on this platform,
21616 # and will be corrupted by setting them based on a non-working compiler.
21617 if test "$_lt_caught_CXX_error" != yes; then
21618 # Code to be used in simple compile tests
21619 lt_simple_compile_test_code="int some_variable = 0;"
21620
21621 # Code to be used in simple link tests
21622 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
21623
21624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21625
21626
21627
21628
21629
21630
21631 # If no C compiler was specified, use CC.
21632 LTCC=${LTCC-"$CC"}
21633
21634 # If no C compiler flags were specified, use CFLAGS.
21635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21636
21637 # Allow CC to be a program name with arguments.
21638 compiler=$CC
21639
21640
21641 # save warnings/boilerplate of simple test code
21642 ac_outfile=conftest.$ac_objext
21643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21645 _lt_compiler_boilerplate=`cat conftest.err`
21646 $RM conftest*
21647
21648 ac_outfile=conftest.$ac_objext
21649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21651 _lt_linker_boilerplate=`cat conftest.err`
21652 $RM -r conftest*
21653
21654
21655 # Allow CC to be a program name with arguments.
21656 lt_save_CC=$CC
21657 lt_save_LD=$LD
21658 lt_save_GCC=$GCC
21659 GCC=$GXX
21660 lt_save_with_gnu_ld=$with_gnu_ld
21661 lt_save_path_LD=$lt_cv_path_LD
21662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21663 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21664 else
21665 $as_unset lt_cv_prog_gnu_ld
21666 fi
21667 if test -n "${lt_cv_path_LDCXX+set}"; then
21668 lt_cv_path_LD=$lt_cv_path_LDCXX
21669 else
21670 $as_unset lt_cv_path_LD
21671 fi
21672 test -z "${LDCXX+set}" || LD=$LDCXX
21673 CC=${CXX-"c++"}
21674 compiler=$CC
21675 compiler_CXX=$CC
21676 for cc_temp in $compiler""; do
21677 case $cc_temp in
21678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21680 \-*) ;;
21681 *) break;;
21682 esac
21683 done
21684 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21685
21686
21687 if test -n "$compiler"; then
21688 # We don't want -fno-exception when compiling C++ code, so set the
21689 # no_builtin_flag separately
21690 if test "$GXX" = yes; then
21691 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
21692 else
21693 lt_prog_compiler_no_builtin_flag_CXX=
21694 fi
21695
21696 if test "$GXX" = yes; then
21697 # Set up default GNU C++ configuration
21698
21699
21700
21701 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21702 if test "${with_gnu_ld+set}" = set; then
21703 withval="$with_gnu_ld"
21704 test "$withval" = no || with_gnu_ld=yes
21705 else
21706 with_gnu_ld=no
21707 fi;
21708 ac_prog=ld
21709 if test "$GCC" = yes; then
21710 # Check if gcc -print-prog-name=ld gives a path.
21711 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
21712 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
21713 case $host in
21714 *-*-mingw*)
21715 # gcc leaves a trailing carriage return which upsets mingw
21716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21717 *)
21718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21719 esac
21720 case $ac_prog in
21721 # Accept absolute paths.
21722 [\\/]* | ?:[\\/]*)
21723 re_direlt='/[^/][^/]*/\.\./'
21724 # Canonicalize the pathname of ld
21725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
21726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
21727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
21728 done
21729 test -z "$LD" && LD="$ac_prog"
21730 ;;
21731 "")
21732 # If it fails, then pretend we aren't using GCC.
21733 ac_prog=ld
21734 ;;
21735 *)
21736 # If it is relative, then search for the first ld in PATH.
21737 with_gnu_ld=unknown
21738 ;;
21739 esac
21740 elif test "$with_gnu_ld" = yes; then
21741 echo "$as_me:$LINENO: checking for GNU ld" >&5
21742 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21743 else
21744 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21745 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21746 fi
21747 if test "${lt_cv_path_LD+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 if test -z "$LD"; then
21751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
21752 for ac_dir in $PATH; do
21753 IFS="$lt_save_ifs"
21754 test -z "$ac_dir" && ac_dir=.
21755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21756 lt_cv_path_LD="$ac_dir/$ac_prog"
21757 # Check to see if the program is GNU ld. I'd rather use --version,
21758 # but apparently some variants of GNU ld only accept -v.
21759 # Break only if it was the GNU/non-GNU ld that we prefer.
21760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
21761 *GNU* | *'with BFD'*)
21762 test "$with_gnu_ld" != no && break
21763 ;;
21764 *)
21765 test "$with_gnu_ld" != yes && break
21766 ;;
21767 esac
21768 fi
21769 done
21770 IFS="$lt_save_ifs"
21771 else
21772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
21773 fi
21774 fi
21775
21776 LD="$lt_cv_path_LD"
21777 if test -n "$LD"; then
21778 echo "$as_me:$LINENO: result: $LD" >&5
21779 echo "${ECHO_T}$LD" >&6
21780 else
21781 echo "$as_me:$LINENO: result: no" >&5
21782 echo "${ECHO_T}no" >&6
21783 fi
21784 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21785 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21786 { (exit 1); exit 1; }; }
21787 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21788 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21789 if test "${lt_cv_prog_gnu_ld+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
21793 case `$LD -v 2>&1 </dev/null` in
21794 *GNU* | *'with BFD'*)
21795 lt_cv_prog_gnu_ld=yes
21796 ;;
21797 *)
21798 lt_cv_prog_gnu_ld=no
21799 ;;
21800 esac
21801 fi
21802 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
21803 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
21804 with_gnu_ld=$lt_cv_prog_gnu_ld
21805
21806
21807
21808
21809
21810
21811
21812 # Check if GNU C++ uses GNU ld as the underlying linker, since the
21813 # archiving commands below assume that GNU ld is being used.
21814 if test "$with_gnu_ld" = yes; then
21815 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21816 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21817
21818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21820
21821 # If archive_cmds runs LD, not CC, wlarc should be empty
21822 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21823 # investigate it a little bit more. (MM)
21824 wlarc='${wl}'
21825
21826 # ancient GNU ld didn't support --whole-archive et. al.
21827 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
21828 $GREP 'no-whole-archive' > /dev/null; then
21829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21830 else
21831 whole_archive_flag_spec_CXX=
21832 fi
21833 else
21834 with_gnu_ld=no
21835 wlarc=
21836
21837 # A generic and very simple default shared library creation
21838 # command for GNU C++ for the case where it uses the native
21839 # linker, instead of GNU ld. If possible, this setting should
21840 # overridden to take advantage of the native linker features on
21841 # the platform it is being used on.
21842 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21843 fi
21844
21845 # Commands to make compiler produce verbose output that lists
21846 # what "hidden" libraries, object files and flags are used when
21847 # linking a shared library.
21848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
21849
21850 else
21851 GXX=no
21852 with_gnu_ld=no
21853 wlarc=
21854 fi
21855
21856 # PORTME: fill in a description of your system's C++ link characteristics
21857 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21858 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21859 ld_shlibs_CXX=yes
21860 case $host_os in
21861 aix3*)
21862 # FIXME: insert proper C++ library support
21863 ld_shlibs_CXX=no
21864 ;;
21865 aix[4-9]*)
21866 if test "$host_cpu" = ia64; then
21867 # On IA64, the linker does run time linking by default, so we don't
21868 # have to do anything special.
21869 aix_use_runtimelinking=no
21870 exp_sym_flag='-Bexport'
21871 no_entry_flag=""
21872 else
21873 aix_use_runtimelinking=no
21874
21875 # Test if we are trying to use run time linking or normal
21876 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21877 # need to do runtime linking.
21878 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21879 for ld_flag in $LDFLAGS; do
21880 case $ld_flag in
21881 *-brtl*)
21882 aix_use_runtimelinking=yes
21883 break
21884 ;;
21885 esac
21886 done
21887 ;;
21888 esac
21889
21890 exp_sym_flag='-bexport'
21891 no_entry_flag='-bnoentry'
21892 fi
21893
21894 # When large executables or shared objects are built, AIX ld can
21895 # have problems creating the table of contents. If linking a library
21896 # or program results in "error TOC overflow" add -mminimal-toc to
21897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21899
21900 archive_cmds_CXX=''
21901 hardcode_direct_CXX=yes
21902 hardcode_direct_absolute_CXX=yes
21903 hardcode_libdir_separator_CXX=':'
21904 link_all_deplibs_CXX=yes
21905 file_list_spec_CXX='${wl}-f,'
21906
21907 if test "$GXX" = yes; then
21908 case $host_os in aix4.[012]|aix4.[012].*)
21909 # We only want to do this on AIX 4.2 and lower, the check
21910 # below for broken collect2 doesn't work under 4.3+
21911 collect2name=`${CC} -print-prog-name=collect2`
21912 if test -f "$collect2name" &&
21913 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21914 then
21915 # We have reworked collect2
21916 :
21917 else
21918 # We have old collect2
21919 hardcode_direct_CXX=unsupported
21920 # It fails to find uninstalled libraries when the uninstalled
21921 # path is not listed in the libpath. Setting hardcode_minus_L
21922 # to unsupported forces relinking
21923 hardcode_minus_L_CXX=yes
21924 hardcode_libdir_flag_spec_CXX='-L$libdir'
21925 hardcode_libdir_separator_CXX=
21926 fi
21927 esac
21928 shared_flag='-shared'
21929 if test "$aix_use_runtimelinking" = yes; then
21930 shared_flag="$shared_flag "'${wl}-G'
21931 fi
21932 else
21933 # not using gcc
21934 if test "$host_cpu" = ia64; then
21935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21936 # chokes on -Wl,-G. The following line is correct:
21937 shared_flag='-G'
21938 else
21939 if test "$aix_use_runtimelinking" = yes; then
21940 shared_flag='${wl}-G'
21941 else
21942 shared_flag='${wl}-bM:SRE'
21943 fi
21944 fi
21945 fi
21946
21947 export_dynamic_flag_spec_CXX='${wl}-bexpall'
21948 # It seems that -bexpall does not export symbols beginning with
21949 # underscore (_), so it is better to generate a list of symbols to
21950 # export.
21951 always_export_symbols_CXX=yes
21952 if test "$aix_use_runtimelinking" = yes; then
21953 # Warning - without using the other runtime loading flags (-brtl),
21954 # -berok will link without error, but may produce a broken library.
21955 allow_undefined_flag_CXX='-berok'
21956 # Determine the default libpath from the value encoded in an empty
21957 # executable.
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h. */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h. */
21964
21965 int
21966 main ()
21967 {
21968
21969 ;
21970 return 0;
21971 }
21972 _ACEOF
21973 rm -f conftest.$ac_objext conftest$ac_exeext
21974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21975 (eval $ac_link) 2>conftest.er1
21976 ac_status=$?
21977 grep -v '^ *+' conftest.er1 >conftest.err
21978 rm -f conftest.er1
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); } &&
21982 { ac_try='test -z "$ac_cxx_werror_flag"
21983 || test ! -s conftest.err'
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; } &&
21989 { ac_try='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995
21996 lt_aix_libpath_sed='
21997 /Import File Strings/,/^$/ {
21998 /^0/ {
21999 s/^0 *\(.*\)$/\1/
22000 p
22001 }
22002 }'
22003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22004 # Check for a 64-bit object if we didn't find anything.
22005 if test -z "$aix_libpath"; then
22006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22007 fi
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012 fi
22013 rm -f conftest.err conftest.$ac_objext \
22014 conftest$ac_exeext conftest.$ac_ext
22015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22016
22017 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22018
22019 archive_expsym_cmds_CXX='$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"
22020 else
22021 if test "$host_cpu" = ia64; then
22022 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22023 allow_undefined_flag_CXX="-z nodefs"
22024 archive_expsym_cmds_CXX="\$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"
22025 else
22026 # Determine the default libpath from the value encoded in an
22027 # empty executable.
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034
22035 int
22036 main ()
22037 {
22038
22039 ;
22040 return 0;
22041 }
22042 _ACEOF
22043 rm -f conftest.$ac_objext conftest$ac_exeext
22044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22045 (eval $ac_link) 2>conftest.er1
22046 ac_status=$?
22047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
22052 { ac_try='test -z "$ac_cxx_werror_flag"
22053 || test ! -s conftest.err'
22054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22055 (eval $ac_try) 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; } &&
22059 { ac_try='test -s conftest$ac_exeext'
22060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; }; then
22065
22066 lt_aix_libpath_sed='
22067 /Import File Strings/,/^$/ {
22068 /^0/ {
22069 s/^0 *\(.*\)$/\1/
22070 p
22071 }
22072 }'
22073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22074 # Check for a 64-bit object if we didn't find anything.
22075 if test -z "$aix_libpath"; then
22076 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22077 fi
22078 else
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 fi
22083 rm -f conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22086
22087 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22088 # Warning - without using the other run time loading flags,
22089 # -berok will link without error, but may produce a broken library.
22090 no_undefined_flag_CXX=' ${wl}-bernotok'
22091 allow_undefined_flag_CXX=' ${wl}-berok'
22092 # Exported symbols can be pulled into shared objects from archives
22093 whole_archive_flag_spec_CXX='$convenience'
22094 archive_cmds_need_lc_CXX=yes
22095 # This is similar to how AIX traditionally builds its shared
22096 # libraries.
22097 archive_expsym_cmds_CXX="\$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'
22098 fi
22099 fi
22100 ;;
22101
22102 beos*)
22103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22104 allow_undefined_flag_CXX=unsupported
22105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22106 # support --undefined. This deserves some investigation. FIXME
22107 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22108 else
22109 ld_shlibs_CXX=no
22110 fi
22111 ;;
22112
22113 chorus*)
22114 case $cc_basename in
22115 *)
22116 # FIXME: insert proper C++ library support
22117 ld_shlibs_CXX=no
22118 ;;
22119 esac
22120 ;;
22121
22122 cygwin* | mingw* | pw32* | cegcc*)
22123 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22124 # as there is no search path for DLLs.
22125 hardcode_libdir_flag_spec_CXX='-L$libdir'
22126 allow_undefined_flag_CXX=unsupported
22127 always_export_symbols_CXX=no
22128 enable_shared_with_static_runtimes_CXX=yes
22129
22130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22131 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22132 # If the export-symbols file already is a .def file (1st line
22133 # is EXPORTS), use it as is; otherwise, prepend...
22134 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22135 cp $export_symbols $output_objdir/$soname.def;
22136 else
22137 echo EXPORTS > $output_objdir/$soname.def;
22138 cat $export_symbols >> $output_objdir/$soname.def;
22139 fi~
22140 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22141 else
22142 ld_shlibs_CXX=no
22143 fi
22144 ;;
22145 darwin* | rhapsody*)
22146
22147
22148 archive_cmds_need_lc_CXX=no
22149 hardcode_direct_CXX=no
22150 hardcode_automatic_CXX=yes
22151 hardcode_shlibpath_var_CXX=unsupported
22152 whole_archive_flag_spec_CXX=''
22153 link_all_deplibs_CXX=yes
22154 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
22155 case $cc_basename in
22156 ifort*) _lt_dar_can_shared=yes ;;
22157 *) _lt_dar_can_shared=$GCC ;;
22158 esac
22159 if test "$_lt_dar_can_shared" = "yes"; then
22160 output_verbose_link_cmd=echo
22161 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22162 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22163 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22164 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22165 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
22166 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
22167 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
22168 fi
22169
22170 else
22171 ld_shlibs_CXX=no
22172 fi
22173
22174 ;;
22175
22176 dgux*)
22177 case $cc_basename in
22178 ec++*)
22179 # FIXME: insert proper C++ library support
22180 ld_shlibs_CXX=no
22181 ;;
22182 ghcx*)
22183 # Green Hills C++ Compiler
22184 # FIXME: insert proper C++ library support
22185 ld_shlibs_CXX=no
22186 ;;
22187 *)
22188 # FIXME: insert proper C++ library support
22189 ld_shlibs_CXX=no
22190 ;;
22191 esac
22192 ;;
22193
22194 freebsd[12]*)
22195 # C++ shared libraries reported to be fairly broken before
22196 # switch to ELF
22197 ld_shlibs_CXX=no
22198 ;;
22199
22200 freebsd-elf*)
22201 archive_cmds_need_lc_CXX=no
22202 ;;
22203
22204 freebsd* | dragonfly*)
22205 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22206 # conventions
22207 ld_shlibs_CXX=yes
22208 ;;
22209
22210 gnu*)
22211 ;;
22212
22213 hpux9*)
22214 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22215 hardcode_libdir_separator_CXX=:
22216 export_dynamic_flag_spec_CXX='${wl}-E'
22217 hardcode_direct_CXX=yes
22218 hardcode_minus_L_CXX=yes # Not in the search PATH,
22219 # but as the default
22220 # location of the library.
22221
22222 case $cc_basename in
22223 CC*)
22224 # FIXME: insert proper C++ library support
22225 ld_shlibs_CXX=no
22226 ;;
22227 aCC*)
22228 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22229 # Commands to make compiler produce verbose output that lists
22230 # what "hidden" libraries, object files and flags are used when
22231 # linking a shared library.
22232 #
22233 # There doesn't appear to be a way to prevent this compiler from
22234 # explicitly linking system object files so we need to strip them
22235 # from the output so that they don't get included in the library
22236 # dependencies.
22237 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
22238 ;;
22239 *)
22240 if test "$GXX" = yes; then
22241 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22242 else
22243 # FIXME: insert proper C++ library support
22244 ld_shlibs_CXX=no
22245 fi
22246 ;;
22247 esac
22248 ;;
22249
22250 hpux10*|hpux11*)
22251 if test $with_gnu_ld = no; then
22252 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22253 hardcode_libdir_separator_CXX=:
22254
22255 case $host_cpu in
22256 hppa*64*|ia64*)
22257 ;;
22258 *)
22259 export_dynamic_flag_spec_CXX='${wl}-E'
22260 ;;
22261 esac
22262 fi
22263 case $host_cpu in
22264 hppa*64*|ia64*)
22265 hardcode_direct_CXX=no
22266 hardcode_shlibpath_var_CXX=no
22267 ;;
22268 *)
22269 hardcode_direct_CXX=yes
22270 hardcode_direct_absolute_CXX=yes
22271 hardcode_minus_L_CXX=yes # Not in the search PATH,
22272 # but as the default
22273 # location of the library.
22274 ;;
22275 esac
22276
22277 case $cc_basename in
22278 CC*)
22279 # FIXME: insert proper C++ library support
22280 ld_shlibs_CXX=no
22281 ;;
22282 aCC*)
22283 case $host_cpu in
22284 hppa*64*)
22285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22286 ;;
22287 ia64*)
22288 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22289 ;;
22290 *)
22291 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22292 ;;
22293 esac
22294 # Commands to make compiler produce verbose output that lists
22295 # what "hidden" libraries, object files and flags are used when
22296 # linking a shared library.
22297 #
22298 # There doesn't appear to be a way to prevent this compiler from
22299 # explicitly linking system object files so we need to strip them
22300 # from the output so that they don't get included in the library
22301 # dependencies.
22302 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
22303 ;;
22304 *)
22305 if test "$GXX" = yes; then
22306 if test $with_gnu_ld = no; then
22307 case $host_cpu in
22308 hppa*64*)
22309 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22310 ;;
22311 ia64*)
22312 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22313 ;;
22314 *)
22315 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22316 ;;
22317 esac
22318 fi
22319 else
22320 # FIXME: insert proper C++ library support
22321 ld_shlibs_CXX=no
22322 fi
22323 ;;
22324 esac
22325 ;;
22326
22327 interix[3-9]*)
22328 hardcode_direct_CXX=no
22329 hardcode_shlibpath_var_CXX=no
22330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22331 export_dynamic_flag_spec_CXX='${wl}-E'
22332 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22333 # Instead, shared libraries are loaded at an image base (0x10000000 by
22334 # default) and relocated if they conflict, which is a slow very memory
22335 # consuming and fragmenting process. To avoid this, we pick a random,
22336 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22337 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22338 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22339 archive_expsym_cmds_CXX='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'
22340 ;;
22341 irix5* | irix6*)
22342 case $cc_basename in
22343 CC*)
22344 # SGI C++
22345 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22346
22347 # Archives containing C++ object files must be created using
22348 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22349 # necessary to make sure instantiated templates are included
22350 # in the archive.
22351 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22352 ;;
22353 *)
22354 if test "$GXX" = yes; then
22355 if test "$with_gnu_ld" = no; then
22356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
22357 else
22358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
22359 fi
22360 fi
22361 link_all_deplibs_CXX=yes
22362 ;;
22363 esac
22364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22365 hardcode_libdir_separator_CXX=:
22366 inherit_rpath_CXX=yes
22367 ;;
22368
22369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
22370 case $cc_basename in
22371 KCC*)
22372 # Kuck and Associates, Inc. (KAI) C++ Compiler
22373
22374 # KCC will only create a shared library if the output file
22375 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22376 # to its proper name (with version) after linking.
22377 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22378 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
22379 # Commands to make compiler produce verbose output that lists
22380 # what "hidden" libraries, object files and flags are used when
22381 # linking a shared library.
22382 #
22383 # There doesn't appear to be a way to prevent this compiler from
22384 # explicitly linking system object files so we need to strip them
22385 # from the output so that they don't get included in the library
22386 # dependencies.
22387 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
22388
22389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22390 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22391
22392 # Archives containing C++ object files must be created using
22393 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22394 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22395 ;;
22396 icpc* | ecpc* )
22397 # Intel C++
22398 with_gnu_ld=yes
22399 # version 8.0 and above of icpc choke on multiply defined symbols
22400 # if we add $predep_objects and $postdep_objects, however 7.1 and
22401 # earlier do not add the objects themselves.
22402 case `$CC -V 2>&1` in
22403 *"Version 7."*)
22404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22405 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22406 ;;
22407 *) # Version 8.0 or newer
22408 tmp_idyn=
22409 case $host_cpu in
22410 ia64*) tmp_idyn=' -i_dynamic';;
22411 esac
22412 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22413 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22414 ;;
22415 esac
22416 archive_cmds_need_lc_CXX=no
22417 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22419 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22420 ;;
22421 pgCC* | pgcpp*)
22422 # Portland Group C++ compiler
22423 case `$CC -V` in
22424 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
22425 prelink_cmds_CXX='tpldir=Template.dir~
22426 rm -rf $tpldir~
22427 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22428 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
22429 old_archive_cmds_CXX='tpldir=Template.dir~
22430 rm -rf $tpldir~
22431 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22432 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
22433 $RANLIB $oldlib'
22434 archive_cmds_CXX='tpldir=Template.dir~
22435 rm -rf $tpldir~
22436 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22437 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22438 archive_expsym_cmds_CXX='tpldir=Template.dir~
22439 rm -rf $tpldir~
22440 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22441 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22442 ;;
22443 *) # Version 6 will use weak symbols
22444 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22445 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
22446 ;;
22447 esac
22448
22449 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22451 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22452 ;;
22453 cxx*)
22454 # Compaq C++
22455 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22456 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
22457
22458 runpath_var=LD_RUN_PATH
22459 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22460 hardcode_libdir_separator_CXX=:
22461
22462 # Commands to make compiler produce verbose output that lists
22463 # what "hidden" libraries, object files and flags are used when
22464 # linking a shared library.
22465 #
22466 # There doesn't appear to be a way to prevent this compiler from
22467 # explicitly linking system object files so we need to strip them
22468 # from the output so that they don't get included in the library
22469 # dependencies.
22470 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
22471 ;;
22472 xl*)
22473 # IBM XL 8.0 on PPC, with GNU ld
22474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22475 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22476 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22477 if test "x$supports_anon_versioning" = xyes; then
22478 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
22479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22480 echo "local: *; };" >> $output_objdir/$libname.ver~
22481 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22482 fi
22483 ;;
22484 *)
22485 case `$CC -V 2>&1 | sed 5q` in
22486 *Sun\ C*)
22487 # Sun C++ 5.9
22488 no_undefined_flag_CXX=' -zdefs'
22489 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22490 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
22491 hardcode_libdir_flag_spec_CXX='-R$libdir'
22492 whole_archive_flag_spec_CXX='${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'
22493 compiler_needs_object_CXX=yes
22494
22495 # Not sure whether something based on
22496 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22497 # would be better.
22498 output_verbose_link_cmd='echo'
22499
22500 # Archives containing C++ object files must be created using
22501 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22502 # necessary to make sure instantiated templates are included
22503 # in the archive.
22504 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22505 ;;
22506 esac
22507 ;;
22508 esac
22509 ;;
22510
22511 lynxos*)
22512 # FIXME: insert proper C++ library support
22513 ld_shlibs_CXX=no
22514 ;;
22515
22516 m88k*)
22517 # FIXME: insert proper C++ library support
22518 ld_shlibs_CXX=no
22519 ;;
22520
22521 mvs*)
22522 case $cc_basename in
22523 cxx*)
22524 # FIXME: insert proper C++ library support
22525 ld_shlibs_CXX=no
22526 ;;
22527 *)
22528 # FIXME: insert proper C++ library support
22529 ld_shlibs_CXX=no
22530 ;;
22531 esac
22532 ;;
22533
22534 netbsd*)
22535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22536 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22537 wlarc=
22538 hardcode_libdir_flag_spec_CXX='-R$libdir'
22539 hardcode_direct_CXX=yes
22540 hardcode_shlibpath_var_CXX=no
22541 fi
22542 # Workaround some broken pre-1.5 toolchains
22543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22544 ;;
22545
22546 *nto* | *qnx*)
22547 ld_shlibs_CXX=yes
22548 ;;
22549
22550 openbsd2*)
22551 # C++ shared libraries are fairly broken
22552 ld_shlibs_CXX=no
22553 ;;
22554
22555 openbsd*)
22556 if test -f /usr/libexec/ld.so; then
22557 hardcode_direct_CXX=yes
22558 hardcode_shlibpath_var_CXX=no
22559 hardcode_direct_absolute_CXX=yes
22560 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22561 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22563 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
22564 export_dynamic_flag_spec_CXX='${wl}-E'
22565 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22566 fi
22567 output_verbose_link_cmd=echo
22568 else
22569 ld_shlibs_CXX=no
22570 fi
22571 ;;
22572
22573 osf3* | osf4* | osf5*)
22574 case $cc_basename in
22575 KCC*)
22576 # Kuck and Associates, Inc. (KAI) C++ Compiler
22577
22578 # KCC will only create a shared library if the output file
22579 # ends with ".so" (or ".sl" for HP-UX), so rename the library
22580 # to its proper name (with version) after linking.
22581 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22582
22583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22584 hardcode_libdir_separator_CXX=:
22585
22586 # Archives containing C++ object files must be created using
22587 # the KAI C++ compiler.
22588 case $host in
22589 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
22590 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
22591 esac
22592 ;;
22593 RCC*)
22594 # Rational C++ 2.4.1
22595 # FIXME: insert proper C++ library support
22596 ld_shlibs_CXX=no
22597 ;;
22598 cxx*)
22599 case $host in
22600 osf3*)
22601 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22602 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22604 ;;
22605 *)
22606 allow_undefined_flag_CXX=' -expect_unresolved \*'
22607 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22608 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22609 echo "-hidden">> $lib.exp~
22610 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
22611 $RM $lib.exp'
22612 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22613 ;;
22614 esac
22615
22616 hardcode_libdir_separator_CXX=:
22617
22618 # Commands to make compiler produce verbose output that lists
22619 # what "hidden" libraries, object files and flags are used when
22620 # linking a shared library.
22621 #
22622 # There doesn't appear to be a way to prevent this compiler from
22623 # explicitly linking system object files so we need to strip them
22624 # from the output so that they don't get included in the library
22625 # dependencies.
22626 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
22627 ;;
22628 *)
22629 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22630 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22631 case $host in
22632 osf3*)
22633 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
22634 ;;
22635 *)
22636 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22637 ;;
22638 esac
22639
22640 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22641 hardcode_libdir_separator_CXX=:
22642
22643 # Commands to make compiler produce verbose output that lists
22644 # what "hidden" libraries, object files and flags are used when
22645 # linking a shared library.
22646 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22647
22648 else
22649 # FIXME: insert proper C++ library support
22650 ld_shlibs_CXX=no
22651 fi
22652 ;;
22653 esac
22654 ;;
22655
22656 psos*)
22657 # FIXME: insert proper C++ library support
22658 ld_shlibs_CXX=no
22659 ;;
22660
22661 sunos4*)
22662 case $cc_basename in
22663 CC*)
22664 # Sun C++ 4.x
22665 # FIXME: insert proper C++ library support
22666 ld_shlibs_CXX=no
22667 ;;
22668 lcc*)
22669 # Lucid
22670 # FIXME: insert proper C++ library support
22671 ld_shlibs_CXX=no
22672 ;;
22673 *)
22674 # FIXME: insert proper C++ library support
22675 ld_shlibs_CXX=no
22676 ;;
22677 esac
22678 ;;
22679
22680 solaris*)
22681 case $cc_basename in
22682 CC*)
22683 # Sun C++ 4.2, 5.x and Centerline C++
22684 archive_cmds_need_lc_CXX=yes
22685 no_undefined_flag_CXX=' -zdefs'
22686 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22687 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22688 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22689
22690 hardcode_libdir_flag_spec_CXX='-R$libdir'
22691 hardcode_shlibpath_var_CXX=no
22692 case $host_os in
22693 solaris2.[0-5] | solaris2.[0-5].*) ;;
22694 *)
22695 # The compiler driver will combine and reorder linker options,
22696 # but understands `-z linker_flag'.
22697 # Supported since Solaris 2.6 (maybe 2.5.1?)
22698 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
22699 ;;
22700 esac
22701 link_all_deplibs_CXX=yes
22702
22703 output_verbose_link_cmd='echo'
22704
22705 # Archives containing C++ object files must be created using
22706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
22707 # necessary to make sure instantiated templates are included
22708 # in the archive.
22709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
22710 ;;
22711 gcx*)
22712 # Green Hills C++ Compiler
22713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22714
22715 # The C++ compiler must be used to create the archive.
22716 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22717 ;;
22718 *)
22719 # GNU C++ compiler with Solaris linker
22720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22721 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
22722 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22723 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22724 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22725 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22726
22727 # Commands to make compiler produce verbose output that lists
22728 # what "hidden" libraries, object files and flags are used when
22729 # linking a shared library.
22730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22731 else
22732 # g++ 2.7 appears to require `-G' NOT `-shared' on this
22733 # platform.
22734 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22735 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22736 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22737
22738 # Commands to make compiler produce verbose output that lists
22739 # what "hidden" libraries, object files and flags are used when
22740 # linking a shared library.
22741 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22742 fi
22743
22744 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
22745 case $host_os in
22746 solaris2.[0-5] | solaris2.[0-5].*) ;;
22747 *)
22748 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22749 ;;
22750 esac
22751 fi
22752 ;;
22753 esac
22754 ;;
22755
22756 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22757 no_undefined_flag_CXX='${wl}-z,text'
22758 archive_cmds_need_lc_CXX=no
22759 hardcode_shlibpath_var_CXX=no
22760 runpath_var='LD_RUN_PATH'
22761
22762 case $cc_basename in
22763 CC*)
22764 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22765 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22766 ;;
22767 *)
22768 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770 ;;
22771 esac
22772 ;;
22773
22774 sysv5* | sco3.2v5* | sco5v6*)
22775 # Note: We can NOT use -z defs as we might desire, because we do not
22776 # link with -lc, and that would cause any symbols used from libc to
22777 # always be unresolved, which means just about no library would
22778 # ever link correctly. If we're not using GNU ld we use -z text
22779 # though, which does catch some bad symbols but isn't as heavy-handed
22780 # as -z defs.
22781 no_undefined_flag_CXX='${wl}-z,text'
22782 allow_undefined_flag_CXX='${wl}-z,nodefs'
22783 archive_cmds_need_lc_CXX=no
22784 hardcode_shlibpath_var_CXX=no
22785 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
22786 hardcode_libdir_separator_CXX=':'
22787 link_all_deplibs_CXX=yes
22788 export_dynamic_flag_spec_CXX='${wl}-Bexport'
22789 runpath_var='LD_RUN_PATH'
22790
22791 case $cc_basename in
22792 CC*)
22793 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22795 ;;
22796 *)
22797 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22799 ;;
22800 esac
22801 ;;
22802
22803 tandem*)
22804 case $cc_basename in
22805 NCC*)
22806 # NonStop-UX NCC 3.20
22807 # FIXME: insert proper C++ library support
22808 ld_shlibs_CXX=no
22809 ;;
22810 *)
22811 # FIXME: insert proper C++ library support
22812 ld_shlibs_CXX=no
22813 ;;
22814 esac
22815 ;;
22816
22817 vxworks*)
22818 # FIXME: insert proper C++ library support
22819 ld_shlibs_CXX=no
22820 ;;
22821
22822 *)
22823 # FIXME: insert proper C++ library support
22824 ld_shlibs_CXX=no
22825 ;;
22826 esac
22827
22828 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22829 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22830 test "$ld_shlibs_CXX" = no && can_build_shared=no
22831
22832 GCC_CXX="$GXX"
22833 LD_CXX="$LD"
22834
22835 ## CAVEAT EMPTOR:
22836 ## There is no encapsulation within the following macros, do not change
22837 ## the running order or otherwise move them around unless you know exactly
22838 ## what you are doing...
22839 # Dependencies to place before and after the object being linked:
22840 predep_objects_CXX=
22841 postdep_objects_CXX=
22842 predeps_CXX=
22843 postdeps_CXX=
22844 compiler_lib_search_path_CXX=
22845
22846 cat > conftest.$ac_ext <<_LT_EOF
22847 class Foo
22848 {
22849 public:
22850 Foo (void) { a = 0; }
22851 private:
22852 int a;
22853 };
22854 _LT_EOF
22855
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857 (eval $ac_compile) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; then
22861 # Parse the compiler output and extract the necessary
22862 # objects, libraries and library flags.
22863
22864 # Sentinel used to keep track of whether or not we are before
22865 # the conftest object file.
22866 pre_test_object_deps_done=no
22867
22868 for p in `eval "$output_verbose_link_cmd"`; do
22869 case $p in
22870
22871 -L* | -R* | -l*)
22872 # Some compilers place space between "-{L,R}" and the path.
22873 # Remove the space.
22874 if test $p = "-L" ||
22875 test $p = "-R"; then
22876 prev=$p
22877 continue
22878 else
22879 prev=
22880 fi
22881
22882 if test "$pre_test_object_deps_done" = no; then
22883 case $p in
22884 -L* | -R*)
22885 # Internal compiler library paths should come after those
22886 # provided the user. The postdeps already come after the
22887 # user supplied libs so there is no need to process them.
22888 if test -z "$compiler_lib_search_path_CXX"; then
22889 compiler_lib_search_path_CXX="${prev}${p}"
22890 else
22891 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
22892 fi
22893 ;;
22894 # The "-l" case would never come before the object being
22895 # linked, so don't bother handling this case.
22896 esac
22897 else
22898 if test -z "$postdeps_CXX"; then
22899 postdeps_CXX="${prev}${p}"
22900 else
22901 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
22902 fi
22903 fi
22904 ;;
22905
22906 *.$objext)
22907 # This assumes that the test object file only shows up
22908 # once in the compiler output.
22909 if test "$p" = "conftest.$objext"; then
22910 pre_test_object_deps_done=yes
22911 continue
22912 fi
22913
22914 if test "$pre_test_object_deps_done" = no; then
22915 if test -z "$predep_objects_CXX"; then
22916 predep_objects_CXX="$p"
22917 else
22918 predep_objects_CXX="$predep_objects_CXX $p"
22919 fi
22920 else
22921 if test -z "$postdep_objects_CXX"; then
22922 postdep_objects_CXX="$p"
22923 else
22924 postdep_objects_CXX="$postdep_objects_CXX $p"
22925 fi
22926 fi
22927 ;;
22928
22929 *) ;; # Ignore the rest.
22930
22931 esac
22932 done
22933
22934 # Clean up.
22935 rm -f a.out a.exe
22936 else
22937 echo "libtool.m4: error: problem compiling CXX test program"
22938 fi
22939
22940 $RM -f confest.$objext
22941
22942 # PORTME: override above test on systems where it is broken
22943 case $host_os in
22944 interix[3-9]*)
22945 # Interix 3.5 installs completely hosed .la files for C++, so rather than
22946 # hack all around it, let's just trust "g++" to DTRT.
22947 predep_objects_CXX=
22948 postdep_objects_CXX=
22949 postdeps_CXX=
22950 ;;
22951
22952 linux*)
22953 case `$CC -V 2>&1 | sed 5q` in
22954 *Sun\ C*)
22955 # Sun C++ 5.9
22956
22957 # The more standards-conforming stlport4 library is
22958 # incompatible with the Cstd library. Avoid specifying
22959 # it if it's in CXXFLAGS. Ignore libCrun as
22960 # -library=stlport4 depends on it.
22961 case " $CXX $CXXFLAGS " in
22962 *" -library=stlport4 "*)
22963 solaris_use_stlport4=yes
22964 ;;
22965 esac
22966
22967 if test "$solaris_use_stlport4" != yes; then
22968 postdeps_CXX='-library=Cstd -library=Crun'
22969 fi
22970 ;;
22971 esac
22972 ;;
22973
22974 solaris*)
22975 case $cc_basename in
22976 CC*)
22977 # The more standards-conforming stlport4 library is
22978 # incompatible with the Cstd library. Avoid specifying
22979 # it if it's in CXXFLAGS. Ignore libCrun as
22980 # -library=stlport4 depends on it.
22981 case " $CXX $CXXFLAGS " in
22982 *" -library=stlport4 "*)
22983 solaris_use_stlport4=yes
22984 ;;
22985 esac
22986
22987 # Adding this requires a known-good setup of shared libraries for
22988 # Sun compiler versions before 5.6, else PIC objects from an old
22989 # archive will be linked into the output, leading to subtle bugs.
22990 if test "$solaris_use_stlport4" != yes; then
22991 postdeps_CXX='-library=Cstd -library=Crun'
22992 fi
22993 ;;
22994 esac
22995 ;;
22996 esac
22997
22998
22999 case " $postdeps_CXX " in
23000 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
23001 esac
23002 compiler_lib_search_dirs_CXX=
23003 if test -n "${compiler_lib_search_path_CXX}"; then
23004 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23005 fi
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037 lt_prog_compiler_wl_CXX=
23038 lt_prog_compiler_pic_CXX=
23039 lt_prog_compiler_static_CXX=
23040
23041 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23043
23044 # C++ specific cases for pic, static, wl, etc.
23045 if test "$GXX" = yes; then
23046 lt_prog_compiler_wl_CXX='-Wl,'
23047 lt_prog_compiler_static_CXX='-static'
23048
23049 case $host_os in
23050 aix*)
23051 # All AIX code is PIC.
23052 if test "$host_cpu" = ia64; then
23053 # AIX 5 now supports IA64 processor
23054 lt_prog_compiler_static_CXX='-Bstatic'
23055 fi
23056 ;;
23057
23058 amigaos*)
23059 case $host_cpu in
23060 powerpc)
23061 # see comment about AmigaOS4 .so support
23062 lt_prog_compiler_pic_CXX='-fPIC'
23063 ;;
23064 m68k)
23065 # FIXME: we need at least 68020 code to build shared libraries, but
23066 # adding the `-m68020' flag to GCC prevents building anything better,
23067 # like `-m68040'.
23068 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23069 ;;
23070 esac
23071 ;;
23072
23073 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23074 # PIC is the default for these OSes.
23075 ;;
23076 mingw* | cygwin* | os2* | pw32* | cegcc*)
23077 # This hack is so that the source file can tell whether it is being
23078 # built for inclusion in a dll (and should export symbols for example).
23079 # Although the cygwin gcc ignores -fPIC, still need this for old-style
23080 # (--disable-auto-import) libraries
23081 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23082 ;;
23083 darwin* | rhapsody*)
23084 # PIC is the default on this platform
23085 # Common symbols not allowed in MH_DYLIB files
23086 lt_prog_compiler_pic_CXX='-fno-common'
23087 ;;
23088 *djgpp*)
23089 # DJGPP does not support shared libraries at all
23090 lt_prog_compiler_pic_CXX=
23091 ;;
23092 interix[3-9]*)
23093 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23094 # Instead, we relocate shared libraries at runtime.
23095 ;;
23096 sysv4*MP*)
23097 if test -d /usr/nec; then
23098 lt_prog_compiler_pic_CXX=-Kconform_pic
23099 fi
23100 ;;
23101 hpux*)
23102 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23103 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
23104 # sets the default TLS model and affects inlining.
23105 case $host_cpu in
23106 hppa*64*)
23107 ;;
23108 *)
23109 lt_prog_compiler_pic_CXX='-fPIC'
23110 ;;
23111 esac
23112 ;;
23113 *qnx* | *nto*)
23114 # QNX uses GNU C++, but need to define -shared option too, otherwise
23115 # it will coredump.
23116 lt_prog_compiler_pic_CXX='-fPIC -shared'
23117 ;;
23118 *)
23119 lt_prog_compiler_pic_CXX='-fPIC'
23120 ;;
23121 esac
23122 else
23123 case $host_os in
23124 aix[4-9]*)
23125 # All AIX code is PIC.
23126 if test "$host_cpu" = ia64; then
23127 # AIX 5 now supports IA64 processor
23128 lt_prog_compiler_static_CXX='-Bstatic'
23129 else
23130 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23131 fi
23132 ;;
23133 chorus*)
23134 case $cc_basename in
23135 cxch68*)
23136 # Green Hills C++ Compiler
23137 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
23138 ;;
23139 esac
23140 ;;
23141 dgux*)
23142 case $cc_basename in
23143 ec++*)
23144 lt_prog_compiler_pic_CXX='-KPIC'
23145 ;;
23146 ghcx*)
23147 # Green Hills C++ Compiler
23148 lt_prog_compiler_pic_CXX='-pic'
23149 ;;
23150 *)
23151 ;;
23152 esac
23153 ;;
23154 freebsd* | dragonfly*)
23155 # FreeBSD uses GNU C++
23156 ;;
23157 hpux9* | hpux10* | hpux11*)
23158 case $cc_basename in
23159 CC*)
23160 lt_prog_compiler_wl_CXX='-Wl,'
23161 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23162 if test "$host_cpu" != ia64; then
23163 lt_prog_compiler_pic_CXX='+Z'
23164 fi
23165 ;;
23166 aCC*)
23167 lt_prog_compiler_wl_CXX='-Wl,'
23168 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
23169 case $host_cpu in
23170 hppa*64*|ia64*)
23171 # +Z the default
23172 ;;
23173 *)
23174 lt_prog_compiler_pic_CXX='+Z'
23175 ;;
23176 esac
23177 ;;
23178 *)
23179 ;;
23180 esac
23181 ;;
23182 interix*)
23183 # This is c89, which is MS Visual C++ (no shared libs)
23184 # Anyone wants to do a port?
23185 ;;
23186 irix5* | irix6* | nonstopux*)
23187 case $cc_basename in
23188 CC*)
23189 lt_prog_compiler_wl_CXX='-Wl,'
23190 lt_prog_compiler_static_CXX='-non_shared'
23191 # CC pic flag -KPIC is the default.
23192 ;;
23193 *)
23194 ;;
23195 esac
23196 ;;
23197 linux* | k*bsd*-gnu | kopensolaris*-gnu)
23198 case $cc_basename in
23199 KCC*)
23200 # KAI C++ Compiler
23201 lt_prog_compiler_wl_CXX='--backend -Wl,'
23202 lt_prog_compiler_pic_CXX='-fPIC'
23203 ;;
23204 ecpc* )
23205 # old Intel C++ for x86_64 which still supported -KPIC.
23206 lt_prog_compiler_wl_CXX='-Wl,'
23207 lt_prog_compiler_pic_CXX='-KPIC'
23208 lt_prog_compiler_static_CXX='-static'
23209 ;;
23210 icpc* )
23211 # Intel C++, used to be incompatible with GCC.
23212 # ICC 10 doesn't accept -KPIC any more.
23213 lt_prog_compiler_wl_CXX='-Wl,'
23214 lt_prog_compiler_pic_CXX='-fPIC'
23215 lt_prog_compiler_static_CXX='-static'
23216 ;;
23217 pgCC* | pgcpp*)
23218 # Portland Group C++ compiler
23219 lt_prog_compiler_wl_CXX='-Wl,'
23220 lt_prog_compiler_pic_CXX='-fpic'
23221 lt_prog_compiler_static_CXX='-Bstatic'
23222 ;;
23223 cxx*)
23224 # Compaq C++
23225 # Make sure the PIC flag is empty. It appears that all Alpha
23226 # Linux and Compaq Tru64 Unix objects are PIC.
23227 lt_prog_compiler_pic_CXX=
23228 lt_prog_compiler_static_CXX='-non_shared'
23229 ;;
23230 xlc* | xlC*)
23231 # IBM XL 8.0 on PPC
23232 lt_prog_compiler_wl_CXX='-Wl,'
23233 lt_prog_compiler_pic_CXX='-qpic'
23234 lt_prog_compiler_static_CXX='-qstaticlink'
23235 ;;
23236 *)
23237 case `$CC -V 2>&1 | sed 5q` in
23238 *Sun\ C*)
23239 # Sun C++ 5.9
23240 lt_prog_compiler_pic_CXX='-KPIC'
23241 lt_prog_compiler_static_CXX='-Bstatic'
23242 lt_prog_compiler_wl_CXX='-Qoption ld '
23243 ;;
23244 esac
23245 ;;
23246 esac
23247 ;;
23248 lynxos*)
23249 ;;
23250 m88k*)
23251 ;;
23252 mvs*)
23253 case $cc_basename in
23254 cxx*)
23255 lt_prog_compiler_pic_CXX='-W c,exportall'
23256 ;;
23257 *)
23258 ;;
23259 esac
23260 ;;
23261 netbsd*)
23262 ;;
23263 *qnx* | *nto*)
23264 # QNX uses GNU C++, but need to define -shared option too, otherwise
23265 # it will coredump.
23266 lt_prog_compiler_pic_CXX='-fPIC -shared'
23267 ;;
23268 osf3* | osf4* | osf5*)
23269 case $cc_basename in
23270 KCC*)
23271 lt_prog_compiler_wl_CXX='--backend -Wl,'
23272 ;;
23273 RCC*)
23274 # Rational C++ 2.4.1
23275 lt_prog_compiler_pic_CXX='-pic'
23276 ;;
23277 cxx*)
23278 # Digital/Compaq C++
23279 lt_prog_compiler_wl_CXX='-Wl,'
23280 # Make sure the PIC flag is empty. It appears that all Alpha
23281 # Linux and Compaq Tru64 Unix objects are PIC.
23282 lt_prog_compiler_pic_CXX=
23283 lt_prog_compiler_static_CXX='-non_shared'
23284 ;;
23285 *)
23286 ;;
23287 esac
23288 ;;
23289 psos*)
23290 ;;
23291 solaris*)
23292 case $cc_basename in
23293 CC*)
23294 # Sun C++ 4.2, 5.x and Centerline C++
23295 lt_prog_compiler_pic_CXX='-KPIC'
23296 lt_prog_compiler_static_CXX='-Bstatic'
23297 lt_prog_compiler_wl_CXX='-Qoption ld '
23298 ;;
23299 gcx*)
23300 # Green Hills C++ Compiler
23301 lt_prog_compiler_pic_CXX='-PIC'
23302 ;;
23303 *)
23304 ;;
23305 esac
23306 ;;
23307 sunos4*)
23308 case $cc_basename in
23309 CC*)
23310 # Sun C++ 4.x
23311 lt_prog_compiler_pic_CXX='-pic'
23312 lt_prog_compiler_static_CXX='-Bstatic'
23313 ;;
23314 lcc*)
23315 # Lucid
23316 lt_prog_compiler_pic_CXX='-pic'
23317 ;;
23318 *)
23319 ;;
23320 esac
23321 ;;
23322 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23323 case $cc_basename in
23324 CC*)
23325 lt_prog_compiler_wl_CXX='-Wl,'
23326 lt_prog_compiler_pic_CXX='-KPIC'
23327 lt_prog_compiler_static_CXX='-Bstatic'
23328 ;;
23329 esac
23330 ;;
23331 tandem*)
23332 case $cc_basename in
23333 NCC*)
23334 # NonStop-UX NCC 3.20
23335 lt_prog_compiler_pic_CXX='-KPIC'
23336 ;;
23337 *)
23338 ;;
23339 esac
23340 ;;
23341 vxworks*)
23342 ;;
23343 *)
23344 lt_prog_compiler_can_build_shared_CXX=no
23345 ;;
23346 esac
23347 fi
23348
23349 case $host_os in
23350 # For platforms which do not support PIC, -DPIC is meaningless:
23351 *djgpp*)
23352 lt_prog_compiler_pic_CXX=
23353 ;;
23354 *)
23355 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23356 ;;
23357 esac
23358 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
23359 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
23360
23361
23362
23363 #
23364 # Check to make sure the PIC flag actually works.
23365 #
23366 if test -n "$lt_prog_compiler_pic_CXX"; then
23367 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23368 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
23369 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372 lt_cv_prog_compiler_pic_works_CXX=no
23373 ac_outfile=conftest.$ac_objext
23374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23376 # Insert the option either (1) after the last *FLAGS variable, or
23377 # (2) before a word containing "conftest.", or (3) at the end.
23378 # Note that $ac_compile itself does not contain backslashes and begins
23379 # with a dollar sign (not a hyphen), so the echo should work correctly.
23380 # The option is referenced via a variable to avoid confusing sed.
23381 lt_compile=`echo "$ac_compile" | $SED \
23382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23384 -e 's:$: $lt_compiler_flag:'`
23385 (eval echo "\"\$as_me:23385: $lt_compile\"" >&5)
23386 (eval "$lt_compile" 2>conftest.err)
23387 ac_status=$?
23388 cat conftest.err >&5
23389 echo "$as_me:23389: \$? = $ac_status" >&5
23390 if (exit $ac_status) && test -s "$ac_outfile"; then
23391 # The compiler can only warn and ignore the option if not recognized
23392 # So say no if there are warnings other than the usual output.
23393 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23396 lt_cv_prog_compiler_pic_works_CXX=yes
23397 fi
23398 fi
23399 $RM conftest*
23400
23401 fi
23402 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
23403 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
23404
23405 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
23406 case $lt_prog_compiler_pic_CXX in
23407 "" | " "*) ;;
23408 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23409 esac
23410 else
23411 lt_prog_compiler_pic_CXX=
23412 lt_prog_compiler_can_build_shared_CXX=no
23413 fi
23414
23415 fi
23416
23417
23418
23419 #
23420 # Check to make sure the static flag actually works.
23421 #
23422 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
23423 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23424 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23425 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23427 else
23428 lt_cv_prog_compiler_static_works_CXX=no
23429 save_LDFLAGS="$LDFLAGS"
23430 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23431 echo "$lt_simple_link_test_code" > conftest.$ac_ext
23432 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23433 # The linker can only warn and ignore the option if not recognized
23434 # So say no if there are warnings
23435 if test -s conftest.err; then
23436 # Append any errors to the config.log.
23437 cat conftest.err 1>&5
23438 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23440 if diff conftest.exp conftest.er2 >/dev/null; then
23441 lt_cv_prog_compiler_static_works_CXX=yes
23442 fi
23443 else
23444 lt_cv_prog_compiler_static_works_CXX=yes
23445 fi
23446 fi
23447 $RM -r conftest*
23448 LDFLAGS="$save_LDFLAGS"
23449
23450 fi
23451 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
23452 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
23453
23454 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
23455 :
23456 else
23457 lt_prog_compiler_static_CXX=
23458 fi
23459
23460
23461
23462
23463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468 lt_cv_prog_compiler_c_o_CXX=no
23469 $RM -r conftest 2>/dev/null
23470 mkdir conftest
23471 cd conftest
23472 mkdir out
23473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23474
23475 lt_compiler_flag="-o out/conftest2.$ac_objext"
23476 # Insert the option either (1) after the last *FLAGS variable, or
23477 # (2) before a word containing "conftest.", or (3) at the end.
23478 # Note that $ac_compile itself does not contain backslashes and begins
23479 # with a dollar sign (not a hyphen), so the echo should work correctly.
23480 lt_compile=`echo "$ac_compile" | $SED \
23481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23483 -e 's:$: $lt_compiler_flag:'`
23484 (eval echo "\"\$as_me:23484: $lt_compile\"" >&5)
23485 (eval "$lt_compile" 2>out/conftest.err)
23486 ac_status=$?
23487 cat out/conftest.err >&5
23488 echo "$as_me:23488: \$? = $ac_status" >&5
23489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23490 then
23491 # The compiler can only warn and ignore the option if not recognized
23492 # So say no if there are warnings
23493 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23496 lt_cv_prog_compiler_c_o_CXX=yes
23497 fi
23498 fi
23499 chmod u+w . 2>&5
23500 $RM conftest*
23501 # SGI C++ compiler will create directory out/ii_files/ for
23502 # template instantiation
23503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23504 $RM out/* && rmdir out
23505 cd ..
23506 $RM -r conftest
23507 $RM conftest*
23508
23509 fi
23510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23511 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
23512
23513
23514
23515 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23516 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23517 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520 lt_cv_prog_compiler_c_o_CXX=no
23521 $RM -r conftest 2>/dev/null
23522 mkdir conftest
23523 cd conftest
23524 mkdir out
23525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23526
23527 lt_compiler_flag="-o out/conftest2.$ac_objext"
23528 # Insert the option either (1) after the last *FLAGS variable, or
23529 # (2) before a word containing "conftest.", or (3) at the end.
23530 # Note that $ac_compile itself does not contain backslashes and begins
23531 # with a dollar sign (not a hyphen), so the echo should work correctly.
23532 lt_compile=`echo "$ac_compile" | $SED \
23533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23535 -e 's:$: $lt_compiler_flag:'`
23536 (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
23537 (eval "$lt_compile" 2>out/conftest.err)
23538 ac_status=$?
23539 cat out/conftest.err >&5
23540 echo "$as_me:23540: \$? = $ac_status" >&5
23541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23542 then
23543 # The compiler can only warn and ignore the option if not recognized
23544 # So say no if there are warnings
23545 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23548 lt_cv_prog_compiler_c_o_CXX=yes
23549 fi
23550 fi
23551 chmod u+w . 2>&5
23552 $RM conftest*
23553 # SGI C++ compiler will create directory out/ii_files/ for
23554 # template instantiation
23555 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23556 $RM out/* && rmdir out
23557 cd ..
23558 $RM -r conftest
23559 $RM conftest*
23560
23561 fi
23562 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
23564
23565
23566
23567
23568 hard_links="nottested"
23569 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23570 # do not overwrite the value of need_locks provided by the user
23571 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23573 hard_links=yes
23574 $RM conftest*
23575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23576 touch conftest.a
23577 ln conftest.a conftest.b 2>&5 || hard_links=no
23578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23579 echo "$as_me:$LINENO: result: $hard_links" >&5
23580 echo "${ECHO_T}$hard_links" >&6
23581 if test "$hard_links" = no; then
23582 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23583 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23584 need_locks=warn
23585 fi
23586 else
23587 need_locks=no
23588 fi
23589
23590
23591
23592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23594
23595 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23596 case $host_os in
23597 aix[4-9]*)
23598 # If we're using GNU nm, then we don't want the "-C" option.
23599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23600 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
23601 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23602 else
23603 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
23604 fi
23605 ;;
23606 pw32*)
23607 export_symbols_cmds_CXX="$ltdll_cmds"
23608 ;;
23609 cygwin* | mingw* | cegcc*)
23610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
23611 ;;
23612 *)
23613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23614 ;;
23615 esac
23616 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23617
23618 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
23619 echo "${ECHO_T}$ld_shlibs_CXX" >&6
23620 test "$ld_shlibs_CXX" = no && can_build_shared=no
23621
23622 with_gnu_ld_CXX=$with_gnu_ld
23623
23624
23625
23626
23627
23628
23629 #
23630 # Do we need to explicitly link libc?
23631 #
23632 case "x$archive_cmds_need_lc_CXX" in
23633 x|xyes)
23634 # Assume -lc should be added
23635 archive_cmds_need_lc_CXX=yes
23636
23637 if test "$enable_shared" = yes && test "$GCC" = yes; then
23638 case $archive_cmds_CXX in
23639 *'~'*)
23640 # FIXME: we may have to deal with multi-command sequences.
23641 ;;
23642 '$CC '*)
23643 # Test whether the compiler implicitly links with -lc since on some
23644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23645 # to ld, don't add -lc before -lgcc.
23646 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23648 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
23649 echo $ECHO_N "(cached) $ECHO_C" >&6
23650 else
23651 $RM conftest*
23652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23653
23654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23655 (eval $ac_compile) 2>&5
23656 ac_status=$?
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } 2>conftest.err; then
23659 soname=conftest
23660 lib=conftest
23661 libobjs=conftest.$ac_objext
23662 deplibs=
23663 wl=$lt_prog_compiler_wl_CXX
23664 pic_flag=$lt_prog_compiler_pic_CXX
23665 compiler_flags=-v
23666 linker_flags=-v
23667 verstring=
23668 output_objdir=.
23669 libname=conftest
23670 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23671 allow_undefined_flag_CXX=
23672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
23673 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23674 ac_status=$?
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }
23677 then
23678 lt_cv_archive_cmds_need_lc_CXX=no
23679 else
23680 lt_cv_archive_cmds_need_lc_CXX=yes
23681 fi
23682 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23683 else
23684 cat conftest.err 1>&5
23685 fi
23686 $RM conftest*
23687
23688 fi
23689 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
23690 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
23691 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
23692 ;;
23693 esac
23694 fi
23695 ;;
23696 esac
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23762 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23763
23764 library_names_spec=
23765 libname_spec='lib$name'
23766 soname_spec=
23767 shrext_cmds=".so"
23768 postinstall_cmds=
23769 postuninstall_cmds=
23770 finish_cmds=
23771 finish_eval=
23772 shlibpath_var=
23773 shlibpath_overrides_runpath=unknown
23774 version_type=none
23775 dynamic_linker="$host_os ld.so"
23776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23777 need_lib_prefix=unknown
23778 hardcode_into_libs=no
23779
23780 # when you set need_version to no, make sure it does not cause -set_version
23781 # flags to be left without arguments
23782 need_version=unknown
23783
23784 case $host_os in
23785 aix3*)
23786 version_type=linux
23787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23788 shlibpath_var=LIBPATH
23789
23790 # AIX 3 has no versioning support, so we append a major version to the name.
23791 soname_spec='${libname}${release}${shared_ext}$major'
23792 ;;
23793
23794 aix[4-9]*)
23795 version_type=linux
23796 need_lib_prefix=no
23797 need_version=no
23798 hardcode_into_libs=yes
23799 if test "$host_cpu" = ia64; then
23800 # AIX 5 supports IA64
23801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23802 shlibpath_var=LD_LIBRARY_PATH
23803 else
23804 # With GCC up to 2.95.x, collect2 would create an import file
23805 # for dependence libraries. The import file would start with
23806 # the line `#! .'. This would cause the generated library to
23807 # depend on `.', always an invalid library. This was fixed in
23808 # development snapshots of GCC prior to 3.0.
23809 case $host_os in
23810 aix4 | aix4.[01] | aix4.[01].*)
23811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23812 echo ' yes '
23813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23814 :
23815 else
23816 can_build_shared=no
23817 fi
23818 ;;
23819 esac
23820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23821 # soname into executable. Probably we can add versioning support to
23822 # collect2, so additional links can be useful in future.
23823 if test "$aix_use_runtimelinking" = yes; then
23824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23825 # instead of lib<name>.a to let people know that these are not
23826 # typical AIX shared libraries.
23827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23828 else
23829 # We preserve .a as extension for shared libraries through AIX4.2
23830 # and later when we are not doing run time linking.
23831 library_names_spec='${libname}${release}.a $libname.a'
23832 soname_spec='${libname}${release}${shared_ext}$major'
23833 fi
23834 shlibpath_var=LIBPATH
23835 fi
23836 ;;
23837
23838 amigaos*)
23839 case $host_cpu in
23840 powerpc)
23841 # Since July 2007 AmigaOS4 officially supports .so libraries.
23842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23844 ;;
23845 m68k)
23846 library_names_spec='$libname.ixlibrary $libname.a'
23847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23848 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'
23849 ;;
23850 esac
23851 ;;
23852
23853 beos*)
23854 library_names_spec='${libname}${shared_ext}'
23855 dynamic_linker="$host_os ld.so"
23856 shlibpath_var=LIBRARY_PATH
23857 ;;
23858
23859 bsdi[45]*)
23860 version_type=linux
23861 need_version=no
23862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23863 soname_spec='${libname}${release}${shared_ext}$major'
23864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23865 shlibpath_var=LD_LIBRARY_PATH
23866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23868 # the default ld.so.conf also contains /usr/contrib/lib and
23869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23870 # libtool to hard-code these into programs
23871 ;;
23872
23873 cygwin* | mingw* | pw32* | cegcc*)
23874 version_type=windows
23875 shrext_cmds=".dll"
23876 need_version=no
23877 need_lib_prefix=no
23878
23879 case $GCC,$host_os in
23880 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23881 library_names_spec='$libname.dll.a'
23882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23883 postinstall_cmds='base_file=`basename \${file}`~
23884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23885 dldir=$destdir/`dirname \$dlpath`~
23886 test -d \$dldir || mkdir -p \$dldir~
23887 $install_prog $dir/$dlname \$dldir/$dlname~
23888 chmod a+x \$dldir/$dlname~
23889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23891 fi'
23892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23893 dlpath=$dir/\$dldll~
23894 $RM \$dlpath'
23895 shlibpath_overrides_runpath=yes
23896
23897 case $host_os in
23898 cygwin*)
23899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23901 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23902 ;;
23903 mingw* | cegcc*)
23904 # MinGW DLLs use traditional 'lib' prefix
23905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23906 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23908 # It is most probably a Windows format PATH printed by
23909 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23910 # path with ; separators, and with drive letters. We can handle the
23911 # drive letters (cygwin fileutils understands them), so leave them,
23912 # especially as we might pass files found there to a mingw objdump,
23913 # which wouldn't understand a cygwinified path. Ahh.
23914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23915 else
23916 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23917 fi
23918 ;;
23919 pw32*)
23920 # pw32 DLLs use 'pw' prefix rather than 'lib'
23921 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23922 ;;
23923 esac
23924 ;;
23925
23926 *)
23927 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23928 ;;
23929 esac
23930 dynamic_linker='Win32 ld.exe'
23931 # FIXME: first we should search . and the directory the executable is in
23932 shlibpath_var=PATH
23933 ;;
23934
23935 darwin* | rhapsody*)
23936 dynamic_linker="$host_os dyld"
23937 version_type=darwin
23938 need_lib_prefix=no
23939 need_version=no
23940 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23941 soname_spec='${libname}${release}${major}$shared_ext'
23942 shlibpath_overrides_runpath=yes
23943 shlibpath_var=DYLD_LIBRARY_PATH
23944 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23945
23946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23947 ;;
23948
23949 dgux*)
23950 version_type=linux
23951 need_lib_prefix=no
23952 need_version=no
23953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23954 soname_spec='${libname}${release}${shared_ext}$major'
23955 shlibpath_var=LD_LIBRARY_PATH
23956 ;;
23957
23958 freebsd1*)
23959 dynamic_linker=no
23960 ;;
23961
23962 freebsd* | dragonfly*)
23963 # DragonFly does not have aout. When/if they implement a new
23964 # versioning mechanism, adjust this.
23965 if test -x /usr/bin/objformat; then
23966 objformat=`/usr/bin/objformat`
23967 else
23968 case $host_os in
23969 freebsd[123]*) objformat=aout ;;
23970 *) objformat=elf ;;
23971 esac
23972 fi
23973 version_type=freebsd-$objformat
23974 case $version_type in
23975 freebsd-elf*)
23976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23977 need_version=no
23978 need_lib_prefix=no
23979 ;;
23980 freebsd-*)
23981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23982 need_version=yes
23983 ;;
23984 esac
23985 shlibpath_var=LD_LIBRARY_PATH
23986 case $host_os in
23987 freebsd2*)
23988 shlibpath_overrides_runpath=yes
23989 ;;
23990 freebsd3.[01]* | freebsdelf3.[01]*)
23991 shlibpath_overrides_runpath=yes
23992 hardcode_into_libs=yes
23993 ;;
23994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23996 shlibpath_overrides_runpath=no
23997 hardcode_into_libs=yes
23998 ;;
23999 *) # from 4.6 on, and DragonFly
24000 shlibpath_overrides_runpath=yes
24001 hardcode_into_libs=yes
24002 ;;
24003 esac
24004 ;;
24005
24006 gnu*)
24007 version_type=linux
24008 need_lib_prefix=no
24009 need_version=no
24010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24011 soname_spec='${libname}${release}${shared_ext}$major'
24012 shlibpath_var=LD_LIBRARY_PATH
24013 hardcode_into_libs=yes
24014 ;;
24015
24016 hpux9* | hpux10* | hpux11*)
24017 # Give a soname corresponding to the major version so that dld.sl refuses to
24018 # link against other versions.
24019 version_type=sunos
24020 need_lib_prefix=no
24021 need_version=no
24022 case $host_cpu in
24023 ia64*)
24024 shrext_cmds='.so'
24025 hardcode_into_libs=yes
24026 dynamic_linker="$host_os dld.so"
24027 shlibpath_var=LD_LIBRARY_PATH
24028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24030 soname_spec='${libname}${release}${shared_ext}$major'
24031 if test "X$HPUX_IA64_MODE" = X32; then
24032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24033 else
24034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24035 fi
24036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24037 ;;
24038 hppa*64*)
24039 shrext_cmds='.sl'
24040 hardcode_into_libs=yes
24041 dynamic_linker="$host_os dld.sl"
24042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24045 soname_spec='${libname}${release}${shared_ext}$major'
24046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24048 ;;
24049 *)
24050 shrext_cmds='.sl'
24051 dynamic_linker="$host_os dld.sl"
24052 shlibpath_var=SHLIB_PATH
24053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24055 soname_spec='${libname}${release}${shared_ext}$major'
24056 ;;
24057 esac
24058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24059 postinstall_cmds='chmod 555 $lib'
24060 ;;
24061
24062 interix[3-9]*)
24063 version_type=linux
24064 need_lib_prefix=no
24065 need_version=no
24066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24067 soname_spec='${libname}${release}${shared_ext}$major'
24068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24069 shlibpath_var=LD_LIBRARY_PATH
24070 shlibpath_overrides_runpath=no
24071 hardcode_into_libs=yes
24072 ;;
24073
24074 irix5* | irix6* | nonstopux*)
24075 case $host_os in
24076 nonstopux*) version_type=nonstopux ;;
24077 *)
24078 if test "$lt_cv_prog_gnu_ld" = yes; then
24079 version_type=linux
24080 else
24081 version_type=irix
24082 fi ;;
24083 esac
24084 need_lib_prefix=no
24085 need_version=no
24086 soname_spec='${libname}${release}${shared_ext}$major'
24087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24088 case $host_os in
24089 irix5* | nonstopux*)
24090 libsuff= shlibsuff=
24091 ;;
24092 *)
24093 case $LD in # libtool.m4 will add one of these switches to LD
24094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24095 libsuff= shlibsuff= libmagic=32-bit;;
24096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24097 libsuff=32 shlibsuff=N32 libmagic=N32;;
24098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24100 *) libsuff= shlibsuff= libmagic=never-match;;
24101 esac
24102 ;;
24103 esac
24104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24105 shlibpath_overrides_runpath=no
24106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24108 hardcode_into_libs=yes
24109 ;;
24110
24111 # No shared lib support for Linux oldld, aout, or coff.
24112 linux*oldld* | linux*aout* | linux*coff*)
24113 dynamic_linker=no
24114 ;;
24115
24116 # This must be Linux ELF.
24117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
24118 version_type=linux
24119 need_lib_prefix=no
24120 need_version=no
24121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24122 soname_spec='${libname}${release}${shared_ext}$major'
24123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24124 shlibpath_var=LD_LIBRARY_PATH
24125 shlibpath_overrides_runpath=no
24126
24127 # Some binutils ld are patched to set DT_RUNPATH
24128 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
24129 echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131 lt_cv_shlibpath_overrides_runpath=no
24132 save_LDFLAGS=$LDFLAGS
24133 save_libdir=$libdir
24134 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
24135 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
24136 cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h. */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h. */
24142
24143 int
24144 main ()
24145 {
24146
24147 ;
24148 return 0;
24149 }
24150 _ACEOF
24151 rm -f conftest.$ac_objext conftest$ac_exeext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24153 (eval $ac_link) 2>conftest.er1
24154 ac_status=$?
24155 grep -v '^ *+' conftest.er1 >conftest.err
24156 rm -f conftest.er1
24157 cat conftest.err >&5
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } &&
24160 { ac_try='test -z "$ac_cxx_werror_flag"
24161 || test ! -s conftest.err'
24162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163 (eval $ac_try) 2>&5
24164 ac_status=$?
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); }; } &&
24167 { ac_try='test -s conftest$ac_exeext'
24168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; }; then
24173 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
24174 lt_cv_shlibpath_overrides_runpath=yes
24175 fi
24176
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 fi
24182 rm -f conftest.err conftest.$ac_objext \
24183 conftest$ac_exeext conftest.$ac_ext
24184 LDFLAGS=$save_LDFLAGS
24185 libdir=$save_libdir
24186
24187 fi
24188
24189 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24190
24191 # This implies no fast_install, which is unacceptable.
24192 # Some rework will be needed to allow for fast_install
24193 # before this can be enabled.
24194 hardcode_into_libs=yes
24195
24196 # Append ld.so.conf contents to the search path
24197 if test -f /etc/ld.so.conf; then
24198 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24200 fi
24201
24202 # We used to test for /lib/ld.so.1 and disable shared libraries on
24203 # powerpc, because MkLinux only supported shared libraries with the
24204 # GNU dynamic linker. Since this was broken with cross compilers,
24205 # most powerpc-linux boxes support dynamic linking these days and
24206 # people can always --disable-shared, the test was removed, and we
24207 # assume the GNU/Linux dynamic linker is in use.
24208 dynamic_linker='GNU/Linux ld.so'
24209 ;;
24210
24211 netbsd*)
24212 version_type=sunos
24213 need_lib_prefix=no
24214 need_version=no
24215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24218 dynamic_linker='NetBSD (a.out) ld.so'
24219 else
24220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24221 soname_spec='${libname}${release}${shared_ext}$major'
24222 dynamic_linker='NetBSD ld.elf_so'
24223 fi
24224 shlibpath_var=LD_LIBRARY_PATH
24225 shlibpath_overrides_runpath=yes
24226 hardcode_into_libs=yes
24227 ;;
24228
24229 newsos6)
24230 version_type=linux
24231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24232 shlibpath_var=LD_LIBRARY_PATH
24233 shlibpath_overrides_runpath=yes
24234 ;;
24235
24236 *nto* | *qnx*)
24237 version_type=qnx
24238 need_lib_prefix=no
24239 need_version=no
24240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24241 soname_spec='${libname}${release}${shared_ext}$major'
24242 shlibpath_var=LD_LIBRARY_PATH
24243 shlibpath_overrides_runpath=no
24244 hardcode_into_libs=yes
24245 dynamic_linker='ldqnx.so'
24246 ;;
24247
24248 openbsd*)
24249 version_type=sunos
24250 sys_lib_dlsearch_path_spec="/usr/lib"
24251 need_lib_prefix=no
24252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24253 case $host_os in
24254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24255 *) need_version=no ;;
24256 esac
24257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24259 shlibpath_var=LD_LIBRARY_PATH
24260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24261 case $host_os in
24262 openbsd2.[89] | openbsd2.[89].*)
24263 shlibpath_overrides_runpath=no
24264 ;;
24265 *)
24266 shlibpath_overrides_runpath=yes
24267 ;;
24268 esac
24269 else
24270 shlibpath_overrides_runpath=yes
24271 fi
24272 ;;
24273
24274 os2*)
24275 libname_spec='$name'
24276 shrext_cmds=".dll"
24277 need_lib_prefix=no
24278 library_names_spec='$libname${shared_ext} $libname.a'
24279 dynamic_linker='OS/2 ld.exe'
24280 shlibpath_var=LIBPATH
24281 ;;
24282
24283 osf3* | osf4* | osf5*)
24284 version_type=osf
24285 need_lib_prefix=no
24286 need_version=no
24287 soname_spec='${libname}${release}${shared_ext}$major'
24288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24289 shlibpath_var=LD_LIBRARY_PATH
24290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24292 ;;
24293
24294 rdos*)
24295 dynamic_linker=no
24296 ;;
24297
24298 solaris*)
24299 version_type=linux
24300 need_lib_prefix=no
24301 need_version=no
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 soname_spec='${libname}${release}${shared_ext}$major'
24304 shlibpath_var=LD_LIBRARY_PATH
24305 shlibpath_overrides_runpath=yes
24306 hardcode_into_libs=yes
24307 # ldd complains unless libraries are executable
24308 postinstall_cmds='chmod +x $lib'
24309 ;;
24310
24311 sunos4*)
24312 version_type=sunos
24313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24315 shlibpath_var=LD_LIBRARY_PATH
24316 shlibpath_overrides_runpath=yes
24317 if test "$with_gnu_ld" = yes; then
24318 need_lib_prefix=no
24319 fi
24320 need_version=yes
24321 ;;
24322
24323 sysv4 | sysv4.3*)
24324 version_type=linux
24325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24326 soname_spec='${libname}${release}${shared_ext}$major'
24327 shlibpath_var=LD_LIBRARY_PATH
24328 case $host_vendor in
24329 sni)
24330 shlibpath_overrides_runpath=no
24331 need_lib_prefix=no
24332 runpath_var=LD_RUN_PATH
24333 ;;
24334 siemens)
24335 need_lib_prefix=no
24336 ;;
24337 motorola)
24338 need_lib_prefix=no
24339 need_version=no
24340 shlibpath_overrides_runpath=no
24341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24342 ;;
24343 esac
24344 ;;
24345
24346 sysv4*MP*)
24347 if test -d /usr/nec ;then
24348 version_type=linux
24349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24350 soname_spec='$libname${shared_ext}.$major'
24351 shlibpath_var=LD_LIBRARY_PATH
24352 fi
24353 ;;
24354
24355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24356 version_type=freebsd-elf
24357 need_lib_prefix=no
24358 need_version=no
24359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24360 soname_spec='${libname}${release}${shared_ext}$major'
24361 shlibpath_var=LD_LIBRARY_PATH
24362 shlibpath_overrides_runpath=yes
24363 hardcode_into_libs=yes
24364 if test "$with_gnu_ld" = yes; then
24365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24366 else
24367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24368 case $host_os in
24369 sco3.2v5*)
24370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24371 ;;
24372 esac
24373 fi
24374 sys_lib_dlsearch_path_spec='/usr/lib'
24375 ;;
24376
24377 tpf*)
24378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
24379 version_type=linux
24380 need_lib_prefix=no
24381 need_version=no
24382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24383 shlibpath_var=LD_LIBRARY_PATH
24384 shlibpath_overrides_runpath=no
24385 hardcode_into_libs=yes
24386 ;;
24387
24388 uts4*)
24389 version_type=linux
24390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24391 soname_spec='${libname}${release}${shared_ext}$major'
24392 shlibpath_var=LD_LIBRARY_PATH
24393 ;;
24394
24395 *)
24396 dynamic_linker=no
24397 ;;
24398 esac
24399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24400 echo "${ECHO_T}$dynamic_linker" >&6
24401 test "$dynamic_linker" = no && can_build_shared=no
24402
24403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24404 if test "$GCC" = yes; then
24405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24406 fi
24407
24408 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
24409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
24410 fi
24411 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
24412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
24413 fi
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24452 hardcode_action_CXX=
24453 if test -n "$hardcode_libdir_flag_spec_CXX" ||
24454 test -n "$runpath_var_CXX" ||
24455 test "X$hardcode_automatic_CXX" = "Xyes" ; then
24456
24457 # We can hardcode non-existent directories.
24458 if test "$hardcode_direct_CXX" != no &&
24459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24460 # have to relink, otherwise we might link with an installed library
24461 # when we should be linking with a yet-to-be-installed one
24462 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24463 test "$hardcode_minus_L_CXX" != no; then
24464 # Linking always hardcodes the temporary library directory.
24465 hardcode_action_CXX=relink
24466 else
24467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24468 hardcode_action_CXX=immediate
24469 fi
24470 else
24471 # We cannot hardcode anything, or else we can only hardcode existing
24472 # directories.
24473 hardcode_action_CXX=unsupported
24474 fi
24475 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
24476 echo "${ECHO_T}$hardcode_action_CXX" >&6
24477
24478 if test "$hardcode_action_CXX" = relink ||
24479 test "$inherit_rpath_CXX" = yes; then
24480 # Fast installation is not supported
24481 enable_fast_install=no
24482 elif test "$shlibpath_overrides_runpath" = yes ||
24483 test "$enable_shared" = no; then
24484 # Fast installation is not necessary
24485 enable_fast_install=needless
24486 fi
24487
24488
24489
24490
24491
24492
24493
24494 fi # test -n "$compiler"
24495
24496 CC=$lt_save_CC
24497 LDCXX=$LD
24498 LD=$lt_save_LD
24499 GCC=$lt_save_GCC
24500 with_gnu_ld=$lt_save_with_gnu_ld
24501 lt_cv_path_LDCXX=$lt_cv_path_LD
24502 lt_cv_path_LD=$lt_save_path_LD
24503 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24504 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24505 fi # test "$_lt_caught_CXX_error" != yes
24506
24507 ac_ext=c
24508 ac_cpp='$CPP $CPPFLAGS'
24509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528 # Only expand once:
24529
24530
24531
24532
24533
24534 # Identify the assembler which will work hand-in-glove with the newly
24535 # built GCC, so that we can examine its features. This is the assembler
24536 # which will be driven by the driver program.
24537 #
24538 # If build != host, and we aren't building gas in-tree, we identify a
24539 # build->target assembler and hope that it will have the same features
24540 # as the host->target assembler we'll be using.
24541 gcc_cv_gas_major_version=
24542 gcc_cv_gas_minor_version=
24543 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
24544
24545 if test "${gcc_cv_as+set}" = set; then
24546 :
24547 else
24548
24549 if test -x "$DEFAULT_ASSEMBLER"; then
24550 gcc_cv_as="$DEFAULT_ASSEMBLER"
24551 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
24552 && test -f ../gas/Makefile \
24553 && test x$build = x$host; then
24554 gcc_cv_as=../gas/as-new$build_exeext
24555 elif test -x as$build_exeext; then
24556 # Build using assembler in the current directory.
24557 gcc_cv_as=./as$build_exeext
24558 elif test -x $AS_FOR_TARGET; then
24559 gcc_cv_as="$AS_FOR_TARGET"
24560 else
24561 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
24562 set dummy $AS_FOR_TARGET; ac_word=$2
24563 echo "$as_me:$LINENO: checking for $ac_word" >&5
24564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24565 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
24566 echo $ECHO_N "(cached) $ECHO_C" >&6
24567 else
24568 case $gcc_cv_as in
24569 [\\/]* | ?:[\\/]*)
24570 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
24571 ;;
24572 *)
24573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24574 for as_dir in $PATH
24575 do
24576 IFS=$as_save_IFS
24577 test -z "$as_dir" && as_dir=.
24578 for ac_exec_ext in '' $ac_executable_extensions; do
24579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24580 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
24581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24582 break 2
24583 fi
24584 done
24585 done
24586
24587 ;;
24588 esac
24589 fi
24590 gcc_cv_as=$ac_cv_path_gcc_cv_as
24591
24592 if test -n "$gcc_cv_as"; then
24593 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
24594 echo "${ECHO_T}$gcc_cv_as" >&6
24595 else
24596 echo "$as_me:$LINENO: result: no" >&5
24597 echo "${ECHO_T}no" >&6
24598 fi
24599
24600 fi
24601 fi
24602
24603
24604 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
24605
24606 case "$ORIGINAL_AS_FOR_TARGET" in
24607 ./as | ./as$build_exeext) ;;
24608 *) ac_config_files="$ac_config_files as:exec-tool.in"
24609 ;;
24610 esac
24611
24612 echo "$as_me:$LINENO: checking what assembler to use" >&5
24613 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
24614 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
24615 # Single tree build which includes gas. We want to prefer it
24616 # over whatever linker top-level may have detected, since
24617 # we'll use what we're building after installation anyway.
24618 echo "$as_me:$LINENO: result: newly built gas" >&5
24619 echo "${ECHO_T}newly built gas" >&6
24620 in_tree_gas=yes
24621 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24622 for f in $gcc_cv_as_bfd_srcdir/configure \
24623 $gcc_cv_as_gas_srcdir/configure \
24624 $gcc_cv_as_gas_srcdir/configure.in \
24625 $gcc_cv_as_gas_srcdir/Makefile.in ; do
24626 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
24627 if test x$gcc_cv_gas_version != x; then
24628 break
24629 fi
24630 done
24631 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
24632 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
24633 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
24634 case $gcc_cv_gas_patch_version in
24635 "") gcc_cv_gas_patch_version="0" ;;
24636 esac
24637 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
24638 + $gcc_cv_gas_minor_version \) \* 1000 \
24639 + $gcc_cv_gas_patch_version`
24640
24641 in_tree_gas_is_elf=no
24642 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
24643 || (grep 'obj_format = multi' ../gas/Makefile \
24644 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
24645 then
24646 in_tree_gas_is_elf=yes
24647 fi
24648 else
24649 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
24650 echo "${ECHO_T}$gcc_cv_as" >&6
24651 in_tree_gas=no
24652 fi
24653
24654 # Identify the linker which will work hand-in-glove with the newly
24655 # built GCC, so that we can examine its features. This is the linker
24656 # which will be driven by the driver program.
24657 #
24658 # If build != host, and we aren't building gas in-tree, we identify a
24659 # build->target linker and hope that it will have the same features
24660 # as the host->target linker we'll be using.
24661 gcc_cv_gld_major_version=
24662 gcc_cv_gld_minor_version=
24663 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
24664 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
24665
24666 if test "${gcc_cv_ld+set}" = set; then
24667 :
24668 else
24669
24670 if test -x "$DEFAULT_LINKER"; then
24671 gcc_cv_ld="$DEFAULT_LINKER"
24672 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
24673 && test -f ../ld/Makefile \
24674 && test x$build = x$host; then
24675 gcc_cv_ld=../ld/ld-new$build_exeext
24676 elif test -x collect-ld$build_exeext; then
24677 # Build using linker in the current directory.
24678 gcc_cv_ld=./collect-ld$build_exeext
24679 elif test -x $LD_FOR_TARGET; then
24680 gcc_cv_ld="$LD_FOR_TARGET"
24681 else
24682 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
24683 set dummy $LD_FOR_TARGET; ac_word=$2
24684 echo "$as_me:$LINENO: checking for $ac_word" >&5
24685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24686 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
24687 echo $ECHO_N "(cached) $ECHO_C" >&6
24688 else
24689 case $gcc_cv_ld in
24690 [\\/]* | ?:[\\/]*)
24691 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
24692 ;;
24693 *)
24694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24695 for as_dir in $PATH
24696 do
24697 IFS=$as_save_IFS
24698 test -z "$as_dir" && as_dir=.
24699 for ac_exec_ext in '' $ac_executable_extensions; do
24700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24701 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
24702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24703 break 2
24704 fi
24705 done
24706 done
24707
24708 ;;
24709 esac
24710 fi
24711 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
24712
24713 if test -n "$gcc_cv_ld"; then
24714 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
24715 echo "${ECHO_T}$gcc_cv_ld" >&6
24716 else
24717 echo "$as_me:$LINENO: result: no" >&5
24718 echo "${ECHO_T}no" >&6
24719 fi
24720
24721 fi
24722 fi
24723
24724
24725 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
24726
24727 case "$ORIGINAL_LD_FOR_TARGET" in
24728 ./collect-ld | ./collect-ld$build_exeext) ;;
24729 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
24730 ;;
24731 esac
24732
24733 echo "$as_me:$LINENO: checking what linker to use" >&5
24734 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
24735 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
24736 # Single tree build which includes ld. We want to prefer it
24737 # over whatever linker top-level may have detected, since
24738 # we'll use what we're building after installation anyway.
24739 echo "$as_me:$LINENO: result: newly built ld" >&5
24740 echo "${ECHO_T}newly built ld" >&6
24741 in_tree_ld=yes
24742 in_tree_ld_is_elf=no
24743 if (grep 'EMUL = .*elf' ../ld/Makefile \
24744 || grep 'EMUL = .*linux' ../ld/Makefile \
24745 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
24746 in_tree_ld_is_elf=yes
24747 fi
24748 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
24749 do
24750 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
24751 if test x$gcc_cv_gld_version != x; then
24752 break
24753 fi
24754 done
24755 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
24756 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
24757 else
24758 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
24759 echo "${ECHO_T}$gcc_cv_ld" >&6
24760 in_tree_ld=no
24761 fi
24762
24763 # Figure out what nm we will be using.
24764 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
24765 if test "${gcc_cv_nm+set}" = set; then
24766 :
24767 else
24768
24769 if test -f $gcc_cv_binutils_srcdir/configure.in \
24770 && test -f ../binutils/Makefile \
24771 && test x$build = x$host; then
24772 gcc_cv_nm=../binutils/nm-new$build_exeext
24773 elif test -x nm$build_exeext; then
24774 gcc_cv_nm=./nm$build_exeext
24775 elif test -x $NM_FOR_TARGET; then
24776 gcc_cv_nm="$NM_FOR_TARGET"
24777 else
24778 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
24779 set dummy $NM_FOR_TARGET; ac_word=$2
24780 echo "$as_me:$LINENO: checking for $ac_word" >&5
24781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24782 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
24783 echo $ECHO_N "(cached) $ECHO_C" >&6
24784 else
24785 case $gcc_cv_nm in
24786 [\\/]* | ?:[\\/]*)
24787 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
24788 ;;
24789 *)
24790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24791 for as_dir in $PATH
24792 do
24793 IFS=$as_save_IFS
24794 test -z "$as_dir" && as_dir=.
24795 for ac_exec_ext in '' $ac_executable_extensions; do
24796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24797 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
24798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24799 break 2
24800 fi
24801 done
24802 done
24803
24804 ;;
24805 esac
24806 fi
24807 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
24808
24809 if test -n "$gcc_cv_nm"; then
24810 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
24811 echo "${ECHO_T}$gcc_cv_nm" >&6
24812 else
24813 echo "$as_me:$LINENO: result: no" >&5
24814 echo "${ECHO_T}no" >&6
24815 fi
24816
24817 fi
24818 fi
24819
24820
24821 echo "$as_me:$LINENO: checking what nm to use" >&5
24822 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
24823 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
24824 # Single tree build which includes binutils.
24825 echo "$as_me:$LINENO: result: newly built nm" >&5
24826 echo "${ECHO_T}newly built nm" >&6
24827 in_tree_nm=yes
24828 else
24829 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
24830 echo "${ECHO_T}$gcc_cv_nm" >&6
24831 in_tree_nm=no
24832 fi
24833
24834 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
24835
24836 case "$ORIGINAL_NM_FOR_TARGET" in
24837 ./nm | ./nm$build_exeext) ;;
24838 *) ac_config_files="$ac_config_files nm:exec-tool.in"
24839 ;;
24840 esac
24841
24842
24843 # Figure out what objdump we will be using.
24844 if test "${gcc_cv_objdump+set}" = set; then
24845 :
24846 else
24847
24848 if test -f $gcc_cv_binutils_srcdir/configure.in \
24849 && test -f ../binutils/Makefile \
24850 && test x$build = x$host; then
24851 # Single tree build which includes binutils.
24852 gcc_cv_objdump=../binutils/objdump$build_exeext
24853 elif test -x objdump$build_exeext; then
24854 gcc_cv_objdump=./objdump$build_exeext
24855 elif test -x $OBJDUMP_FOR_TARGET; then
24856 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
24857 else
24858 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
24859 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
24860 echo "$as_me:$LINENO: checking for $ac_word" >&5
24861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24862 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
24863 echo $ECHO_N "(cached) $ECHO_C" >&6
24864 else
24865 case $gcc_cv_objdump in
24866 [\\/]* | ?:[\\/]*)
24867 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
24868 ;;
24869 *)
24870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24871 for as_dir in $PATH
24872 do
24873 IFS=$as_save_IFS
24874 test -z "$as_dir" && as_dir=.
24875 for ac_exec_ext in '' $ac_executable_extensions; do
24876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24877 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
24878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24879 break 2
24880 fi
24881 done
24882 done
24883
24884 ;;
24885 esac
24886 fi
24887 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
24888
24889 if test -n "$gcc_cv_objdump"; then
24890 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
24891 echo "${ECHO_T}$gcc_cv_objdump" >&6
24892 else
24893 echo "$as_me:$LINENO: result: no" >&5
24894 echo "${ECHO_T}no" >&6
24895 fi
24896
24897 fi
24898 fi
24899
24900
24901 echo "$as_me:$LINENO: checking what objdump to use" >&5
24902 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
24903 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
24904 # Single tree build which includes binutils.
24905 echo "$as_me:$LINENO: result: newly built objdump" >&5
24906 echo "${ECHO_T}newly built objdump" >&6
24907 elif test x$gcc_cv_objdump = x; then
24908 echo "$as_me:$LINENO: result: not found" >&5
24909 echo "${ECHO_T}not found" >&6
24910 else
24911 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
24912 echo "${ECHO_T}$gcc_cv_objdump" >&6
24913 fi
24914
24915 # Figure out what readelf we will be using.
24916 if test "${gcc_cv_readelf+set}" = set; then
24917 :
24918 else
24919
24920 if test -f $gcc_cv_binutils_srcdir/configure.in \
24921 && test -f ../binutils/Makefile \
24922 && test x$build = x$host; then
24923 # Single tree build which includes binutils.
24924 gcc_cv_readelf=../binutils/readelf$build_exeext
24925 elif test -x readelf$build_exeext; then
24926 gcc_cv_readelf=./readelf$build_exeext
24927 else
24928 # Extract the first word of "readelf", so it can be a program name with args.
24929 set dummy readelf; ac_word=$2
24930 echo "$as_me:$LINENO: checking for $ac_word" >&5
24931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24932 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then
24933 echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935 case $gcc_cv_readelf in
24936 [\\/]* | ?:[\\/]*)
24937 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
24938 ;;
24939 *)
24940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24941 for as_dir in $PATH
24942 do
24943 IFS=$as_save_IFS
24944 test -z "$as_dir" && as_dir=.
24945 for ac_exec_ext in '' $ac_executable_extensions; do
24946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24947 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
24948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24949 break 2
24950 fi
24951 done
24952 done
24953
24954 ;;
24955 esac
24956 fi
24957 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
24958
24959 if test -n "$gcc_cv_readelf"; then
24960 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
24961 echo "${ECHO_T}$gcc_cv_readelf" >&6
24962 else
24963 echo "$as_me:$LINENO: result: no" >&5
24964 echo "${ECHO_T}no" >&6
24965 fi
24966
24967 fi
24968 fi
24969
24970
24971 echo "$as_me:$LINENO: checking what readelf to use" >&5
24972 echo $ECHO_N "checking what readelf to use... $ECHO_C" >&6
24973 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
24974 # Single tree build which includes binutils.
24975 echo "$as_me:$LINENO: result: newly built readelf" >&5
24976 echo "${ECHO_T}newly built readelf" >&6
24977 elif test x$gcc_cv_readelf = x; then
24978 echo "$as_me:$LINENO: result: not found" >&5
24979 echo "${ECHO_T}not found" >&6
24980 else
24981 echo "$as_me:$LINENO: result: $gcc_cv_readelf" >&5
24982 echo "${ECHO_T}$gcc_cv_readelf" >&6
24983 fi
24984
24985 # Figure out what assembler alignment features are present.
24986 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
24987 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
24988 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
24989 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 else
24991 gcc_cv_as_balign_and_p2align=no
24992 if test $in_tree_gas = yes; then
24993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
24994 then gcc_cv_as_balign_and_p2align=yes
24995 fi
24996 elif test x$gcc_cv_as != x; then
24997 echo '.balign 4
24998 .p2align 2' > conftest.s
24999 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; }
25005 then
25006 gcc_cv_as_balign_and_p2align=yes
25007 else
25008 echo "configure: failed program was" >&5
25009 cat conftest.s >&5
25010 fi
25011 rm -f conftest.o conftest.s
25012 fi
25013 fi
25014 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
25015 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
25016 if test $gcc_cv_as_balign_and_p2align = yes; then
25017
25018 cat >>confdefs.h <<\_ACEOF
25019 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
25020 _ACEOF
25021
25022 fi
25023
25024 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
25025 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
25026 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029 gcc_cv_as_max_skip_p2align=no
25030 if test $in_tree_gas = yes; then
25031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
25032 then gcc_cv_as_max_skip_p2align=yes
25033 fi
25034 elif test x$gcc_cv_as != x; then
25035 echo '.p2align 4,,7' > conftest.s
25036 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25038 (eval $ac_try) 2>&5
25039 ac_status=$?
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); }; }
25042 then
25043 gcc_cv_as_max_skip_p2align=yes
25044 else
25045 echo "configure: failed program was" >&5
25046 cat conftest.s >&5
25047 fi
25048 rm -f conftest.o conftest.s
25049 fi
25050 fi
25051 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
25052 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
25053 if test $gcc_cv_as_max_skip_p2align = yes; then
25054
25055 cat >>confdefs.h <<\_ACEOF
25056 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
25057 _ACEOF
25058
25059 fi
25060
25061 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
25062 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
25063 if test "${gcc_cv_as_literal16+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066 gcc_cv_as_literal16=no
25067 if test $in_tree_gas = yes; then
25068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
25069 then gcc_cv_as_literal16=yes
25070 fi
25071 elif test x$gcc_cv_as != x; then
25072 echo '.literal16' > conftest.s
25073 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }
25079 then
25080 gcc_cv_as_literal16=yes
25081 else
25082 echo "configure: failed program was" >&5
25083 cat conftest.s >&5
25084 fi
25085 rm -f conftest.o conftest.s
25086 fi
25087 fi
25088 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
25089 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
25090 if test $gcc_cv_as_literal16 = yes; then
25091
25092 cat >>confdefs.h <<\_ACEOF
25093 #define HAVE_GAS_LITERAL16 1
25094 _ACEOF
25095
25096 fi
25097
25098 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
25099 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
25100 if test "${gcc_cv_as_subsection_m1+set}" = set; then
25101 echo $ECHO_N "(cached) $ECHO_C" >&6
25102 else
25103 gcc_cv_as_subsection_m1=no
25104 if test $in_tree_gas = yes; then
25105 if test $in_tree_gas_is_elf = yes \
25106 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
25107 then gcc_cv_as_subsection_m1=yes
25108 fi
25109 elif test x$gcc_cv_as != x; then
25110 echo 'conftest_label1: .word 0
25111 .subsection -1
25112 conftest_label2: .word 0
25113 .previous' > conftest.s
25114 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; }
25120 then
25121 if test x$gcc_cv_nm != x; then
25122 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
25123 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
25124 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
25125 then :
25126 else gcc_cv_as_subsection_m1=yes
25127 fi
25128 rm -f conftest.nm1 conftest.nm2
25129 fi
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25133 fi
25134 rm -f conftest.o conftest.s
25135 fi
25136 fi
25137 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
25138 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
25139 if test $gcc_cv_as_subsection_m1 = yes; then
25140
25141 cat >>confdefs.h <<\_ACEOF
25142 #define HAVE_GAS_SUBSECTION_ORDERING 1
25143 _ACEOF
25144
25145 fi
25146
25147 echo "$as_me:$LINENO: checking assembler for .weak" >&5
25148 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
25149 if test "${gcc_cv_as_weak+set}" = set; then
25150 echo $ECHO_N "(cached) $ECHO_C" >&6
25151 else
25152 gcc_cv_as_weak=no
25153 if test $in_tree_gas = yes; then
25154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
25155 then gcc_cv_as_weak=yes
25156 fi
25157 elif test x$gcc_cv_as != x; then
25158 echo ' .weak foobar' > conftest.s
25159 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; }
25165 then
25166 gcc_cv_as_weak=yes
25167 else
25168 echo "configure: failed program was" >&5
25169 cat conftest.s >&5
25170 fi
25171 rm -f conftest.o conftest.s
25172 fi
25173 fi
25174 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
25175 echo "${ECHO_T}$gcc_cv_as_weak" >&6
25176 if test $gcc_cv_as_weak = yes; then
25177
25178 cat >>confdefs.h <<\_ACEOF
25179 #define HAVE_GAS_WEAK 1
25180 _ACEOF
25181
25182 fi
25183
25184 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
25185 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
25186 if test "${gcc_cv_as_weakref+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189 gcc_cv_as_weakref=no
25190 if test $in_tree_gas = yes; then
25191 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25192 then gcc_cv_as_weakref=yes
25193 fi
25194 elif test x$gcc_cv_as != x; then
25195 echo ' .weakref foobar, barfnot' > conftest.s
25196 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }
25202 then
25203 gcc_cv_as_weakref=yes
25204 else
25205 echo "configure: failed program was" >&5
25206 cat conftest.s >&5
25207 fi
25208 rm -f conftest.o conftest.s
25209 fi
25210 fi
25211 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
25212 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
25213 if test $gcc_cv_as_weakref = yes; then
25214
25215 cat >>confdefs.h <<\_ACEOF
25216 #define HAVE_GAS_WEAKREF 1
25217 _ACEOF
25218
25219 fi
25220
25221 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
25222 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
25223 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25225 else
25226 gcc_cv_as_nsubspa_comdat=no
25227 if test $in_tree_gas = yes; then
25228 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25229 then gcc_cv_as_nsubspa_comdat=yes
25230 fi
25231 elif test x$gcc_cv_as != x; then
25232 echo ' .SPACE $TEXT$
25233 .NSUBSPA $CODE$,COMDAT' > conftest.s
25234 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }
25240 then
25241 gcc_cv_as_nsubspa_comdat=yes
25242 else
25243 echo "configure: failed program was" >&5
25244 cat conftest.s >&5
25245 fi
25246 rm -f conftest.o conftest.s
25247 fi
25248 fi
25249 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
25250 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
25251 if test $gcc_cv_as_nsubspa_comdat = yes; then
25252
25253 cat >>confdefs.h <<\_ACEOF
25254 #define HAVE_GAS_NSUBSPA_COMDAT 1
25255 _ACEOF
25256
25257 fi
25258
25259 # .hidden needs to be supported in both the assembler and the linker,
25260 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
25261 # This is irritatingly difficult to feature test for; we have to check the
25262 # date string after the version number. If we've got an in-tree
25263 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
25264 # to be safe.
25265 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
25266 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
25267 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
25268 if test "${gcc_cv_as_hidden+set}" = set; then
25269 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271 gcc_cv_as_hidden=no
25272 if test $in_tree_gas = yes; then
25273 if test $in_tree_gas_is_elf = yes \
25274 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
25275 then gcc_cv_as_hidden=yes
25276 fi
25277 elif test x$gcc_cv_as != x; then
25278 echo ' .hidden foobar
25279 foobar:' > conftest.s
25280 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25283 ac_status=$?
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; }
25286 then
25287 gcc_cv_as_hidden=yes
25288 else
25289 echo "configure: failed program was" >&5
25290 cat conftest.s >&5
25291 fi
25292 rm -f conftest.o conftest.s
25293 fi
25294 fi
25295 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
25296 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
25297
25298
25299 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
25300 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
25301 if test "${gcc_cv_ld_hidden+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25303 else
25304 if test $in_tree_ld = yes ; then
25305 gcc_cv_ld_hidden=no
25306 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 \
25307 && test $in_tree_ld_is_elf = yes; then
25308 gcc_cv_ld_hidden=yes
25309 fi
25310 else
25311 gcc_cv_ld_hidden=yes
25312 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
25313 if echo "$ld_ver" | grep GNU > /dev/null; then
25314 ld_vers=`echo $ld_ver | sed -n \
25315 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25316 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'`
25317 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
25318 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25319 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
25320 if test 0"$ld_date" -lt 20020404; then
25321 if test -n "$ld_date"; then
25322 # If there was date string, but was earlier than 2002-04-04, fail
25323 gcc_cv_ld_hidden=no
25324 elif test -z "$ld_vers"; then
25325 # If there was no date string nor ld version number, something is wrong
25326 gcc_cv_ld_hidden=no
25327 else
25328 test -z "$ld_vers_patch" && ld_vers_patch=0
25329 if test "$ld_vers_major" -lt 2; then
25330 gcc_cv_ld_hidden=no
25331 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
25332 gcc_cv_ld_hidden="no"
25333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
25334 gcc_cv_ld_hidden=no
25335 fi
25336 fi
25337 fi
25338 else
25339 case "${target}" in
25340 hppa64*-*-hpux* | ia64*-*-hpux*)
25341 gcc_cv_ld_hidden=yes
25342 ;;
25343 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
25344 gcc_cv_ld_hidden=yes
25345 ;;
25346 *)
25347 gcc_cv_ld_hidden=no
25348 ;;
25349 esac
25350 fi
25351 fi
25352 fi
25353 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
25354 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
25355 libgcc_visibility=no
25356
25357
25358 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
25359 libgcc_visibility=yes
25360
25361 cat >>confdefs.h <<\_ACEOF
25362 #define HAVE_GAS_HIDDEN 1
25363 _ACEOF
25364
25365 fi
25366
25367 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
25368 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
25369 gcc_cv_ld_ro_rw_mix=unknown
25370 if test $in_tree_ld = yes ; then
25371 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 \
25372 && test $in_tree_ld_is_elf = yes; then
25373 gcc_cv_ld_ro_rw_mix=read-write
25374 fi
25375 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25376 echo '.section myfoosect, "a"' > conftest1.s
25377 echo '.section myfoosect, "aw"' > conftest2.s
25378 echo '.byte 1' >> conftest2.s
25379 echo '.section myfoosect, "a"' > conftest3.s
25380 echo '.byte 0' >> conftest3.s
25381 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
25382 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
25383 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
25384 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
25385 conftest2.o conftest3.o > /dev/null 2>&1; then
25386 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
25387 | sed -e '/myfoosect/!d' -e N`
25388 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
25389 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
25390 gcc_cv_ld_ro_rw_mix=read-only
25391 else
25392 gcc_cv_ld_ro_rw_mix=read-write
25393 fi
25394 fi
25395 fi
25396 rm -f conftest.* conftest[123].*
25397 fi
25398 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
25399
25400 cat >>confdefs.h <<\_ACEOF
25401 #define HAVE_LD_RO_RW_SECTION_MIXING 1
25402 _ACEOF
25403
25404 fi
25405 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
25406 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
25407
25408 # Check if we have .[us]leb128, and support symbol arithmetic with it.
25409 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
25410 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
25411 if test "${gcc_cv_as_leb128+set}" = set; then
25412 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 else
25414 gcc_cv_as_leb128=no
25415 if test $in_tree_gas = yes; then
25416 if test $in_tree_gas_is_elf = yes \
25417 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25418 then gcc_cv_as_leb128=yes
25419 fi
25420 elif test x$gcc_cv_as != x; then
25421 echo ' .data
25422 .uleb128 L2 - L1
25423 L1:
25424 .uleb128 1280
25425 .sleb128 -1010
25426 L2:' > conftest.s
25427 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }
25433 then
25434 # GAS versions before 2.11 do not support uleb128,
25435 # despite appearing to.
25436 # ??? There exists an elf-specific test that will crash
25437 # the assembler. Perhaps it's better to figure out whether
25438 # arbitrary sections are supported and try the test.
25439 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
25440 if echo "$as_ver" | grep GNU > /dev/null; then
25441 as_vers=`echo $as_ver | sed -n \
25442 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25443 as_major=`expr "$as_vers" : '\([0-9]*\)'`
25444 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
25445 if test $as_major -eq 2 && test $as_minor -lt 11
25446 then :
25447 else gcc_cv_as_leb128=yes
25448 fi
25449 fi
25450 else
25451 echo "configure: failed program was" >&5
25452 cat conftest.s >&5
25453 fi
25454 rm -f conftest.o conftest.s
25455 fi
25456 fi
25457 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
25458 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
25459 if test $gcc_cv_as_leb128 = yes; then
25460
25461 cat >>confdefs.h <<\_ACEOF
25462 #define HAVE_AS_LEB128 1
25463 _ACEOF
25464
25465 fi
25466
25467 # Check if we have assembler support for unwind directives.
25468 echo "$as_me:$LINENO: checking assembler for cfi directives" >&5
25469 echo $ECHO_N "checking assembler for cfi directives... $ECHO_C" >&6
25470 if test "${gcc_cv_as_cfi_directive+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473 gcc_cv_as_cfi_directive=no
25474 if test x$gcc_cv_as != x; then
25475 echo ' .text
25476 .cfi_startproc
25477 .cfi_offset 0, 0
25478 .cfi_same_value 1
25479 .cfi_def_cfa 1, 2
25480 .cfi_escape 1, 2, 3, 4, 5
25481 .cfi_endproc' > conftest.s
25482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25484 (eval $ac_try) 2>&5
25485 ac_status=$?
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); }; }
25488 then
25489 case "$target" in
25490 *-*-solaris*)
25491 # If the linker used on Solaris (like Sun ld) isn't capable of merging
25492 # read-only and read-write sections, we need to make sure that the
25493 # assembler used emits read-write .eh_frame sections.
25494 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
25495 if test "x$gcc_cv_objdump" != x; then
25496 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
25497 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
25498 gcc_cv_as_cfi_directive=no
25499 else
25500 gcc_cv_as_cfi_directive=yes
25501 fi
25502 else
25503 # no objdump, err on the side of caution
25504 gcc_cv_as_cfi_directive=no
25505 fi
25506 else
25507 gcc_cv_as_cfi_directive=yes
25508 fi
25509 ;;
25510 *-*-*)
25511 gcc_cv_as_cfi_directive=yes
25512 ;;
25513 esac
25514 else
25515 echo "configure: failed program was" >&5
25516 cat conftest.s >&5
25517 fi
25518 rm -f conftest.o conftest.s
25519 fi
25520 fi
25521 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_directive" >&5
25522 echo "${ECHO_T}$gcc_cv_as_cfi_directive" >&6
25523
25524 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
25525 echo "$as_me:$LINENO: checking assembler for working cfi advance" >&5
25526 echo $ECHO_N "checking assembler for working cfi advance... $ECHO_C" >&6
25527 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then
25528 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 else
25530 gcc_cv_as_cfi_advance_working=no
25531 if test x$gcc_cv_as != x; then
25532 echo ' .text
25533 .cfi_startproc
25534 .cfi_adjust_cfa_offset 64
25535 .skip 512, 0
25536 .cfi_adjust_cfa_offset 128
25537 .cfi_endproc' > conftest.s
25538 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540 (eval $ac_try) 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; }
25544 then
25545
25546 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
25547 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
25548 gcc_cv_as_cfi_advance_working=yes
25549 fi
25550
25551 else
25552 echo "configure: failed program was" >&5
25553 cat conftest.s >&5
25554 fi
25555 rm -f conftest.o conftest.s
25556 fi
25557 fi
25558 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_advance_working" >&5
25559 echo "${ECHO_T}$gcc_cv_as_cfi_advance_working" >&6
25560
25561 else
25562 # no readelf, err on the side of caution
25563 gcc_cv_as_cfi_advance_working=no
25564 fi
25565
25566 cat >>confdefs.h <<_ACEOF
25567 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
25568 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
25569 _ACEOF
25570
25571
25572 echo "$as_me:$LINENO: checking assembler for cfi personality directive" >&5
25573 echo $ECHO_N "checking assembler for cfi personality directive... $ECHO_C" >&6
25574 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577 gcc_cv_as_cfi_personality_directive=no
25578 if test x$gcc_cv_as != x; then
25579 echo ' .text
25580 .cfi_startproc
25581 .cfi_personality 0, symbol
25582 .cfi_endproc' > conftest.s
25583 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }
25589 then
25590 gcc_cv_as_cfi_personality_directive=yes
25591 else
25592 echo "configure: failed program was" >&5
25593 cat conftest.s >&5
25594 fi
25595 rm -f conftest.o conftest.s
25596 fi
25597 fi
25598 echo "$as_me:$LINENO: result: $gcc_cv_as_cfi_personality_directive" >&5
25599 echo "${ECHO_T}$gcc_cv_as_cfi_personality_directive" >&6
25600
25601
25602 cat >>confdefs.h <<_ACEOF
25603 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
25604 then echo 1; else echo 0; fi`
25605 _ACEOF
25606
25607
25608 # GAS versions up to and including 2.11.0 may mis-optimize
25609 # .eh_frame data.
25610 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
25611 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
25612 if test "${gcc_cv_as_eh_frame+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615 gcc_cv_as_eh_frame=no
25616 if test $in_tree_gas = yes; then
25617 if test $in_tree_gas_is_elf = yes \
25618 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25619 then gcc_cv_as_eh_frame=yes
25620 fi
25621 elif test x$gcc_cv_as != x; then
25622 echo ' .text
25623 .LFB1:
25624 .4byte 0
25625 .L1:
25626 .4byte 0
25627 .LFE1:
25628 .section .eh_frame,"aw",@progbits
25629 __FRAME_BEGIN__:
25630 .4byte .LECIE1-.LSCIE1
25631 .LSCIE1:
25632 .4byte 0x0
25633 .byte 0x1
25634 .ascii "z\0"
25635 .byte 0x1
25636 .byte 0x78
25637 .byte 0x1a
25638 .byte 0x0
25639 .byte 0x4
25640 .4byte 1
25641 .p2align 1
25642 .LECIE1:
25643 .LSFDE1:
25644 .4byte .LEFDE1-.LASFDE1
25645 .LASFDE1:
25646 .4byte .LASFDE1-__FRAME_BEGIN__
25647 .4byte .LFB1
25648 .4byte .LFE1-.LFB1
25649 .byte 0x4
25650 .4byte .LFE1-.LFB1
25651 .byte 0x4
25652 .4byte .L1-.LFB1
25653 .LEFDE1:' > conftest.s
25654 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }
25660 then
25661 cat > conftest.lit <<EOF
25662 0000 10000000 00000000 017a0001 781a0004 .........z..x...
25663 0010 01000000 12000000 18000000 00000000 ................
25664 0020 08000000 04080000 0044 .........D
25665 EOF
25666 cat > conftest.big <<EOF
25667 0000 00000010 00000000 017a0001 781a0004 .........z..x...
25668 0010 00000001 00000012 00000018 00000000 ................
25669 0020 00000008 04000000 0844 .........D
25670 EOF
25671 # If the assembler didn't choke, and we can objdump,
25672 # and we got the correct data, then succeed.
25673 # The text in the here-document typically retains its unix-style line
25674 # endings, while the output of objdump will use host line endings.
25675 # Therefore, use diff -b for the comparisons.
25676 if test x$gcc_cv_objdump != x \
25677 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
25678 | tail -3 > conftest.got \
25679 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
25680 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
25681 then
25682 gcc_cv_as_eh_frame=yes
25683 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; }; then
25689 gcc_cv_as_eh_frame=buggy
25690 else
25691 # Uh oh, what do we do now?
25692 gcc_cv_as_eh_frame=no
25693 fi
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25697 fi
25698 rm -f conftest.o conftest.s
25699 fi
25700 fi
25701 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
25702 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
25703
25704
25705 if test $gcc_cv_as_eh_frame = buggy; then
25706
25707 cat >>confdefs.h <<\_ACEOF
25708 #define USE_AS_TRADITIONAL_FORMAT 1
25709 _ACEOF
25710
25711 fi
25712
25713 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
25714 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
25715 if test "${gcc_cv_as_shf_merge+set}" = set; then
25716 echo $ECHO_N "(cached) $ECHO_C" >&6
25717 else
25718 gcc_cv_as_shf_merge=no
25719 if test $in_tree_gas = yes; then
25720 if test $in_tree_gas_is_elf = yes \
25721 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25722 then gcc_cv_as_shf_merge=yes
25723 fi
25724 elif test x$gcc_cv_as != x; then
25725 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25726 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }
25732 then
25733 gcc_cv_as_shf_merge=yes
25734 else
25735 echo "configure: failed program was" >&5
25736 cat conftest.s >&5
25737 fi
25738 rm -f conftest.o conftest.s
25739 fi
25740 fi
25741 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
25742 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
25743
25744 if test $gcc_cv_as_shf_merge = no; then
25745 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
25746 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
25747 if test "${gcc_cv_as_shf_merge+set}" = set; then
25748 echo $ECHO_N "(cached) $ECHO_C" >&6
25749 else
25750 gcc_cv_as_shf_merge=no
25751 if test $in_tree_gas = yes; then
25752 if test $in_tree_gas_is_elf = yes \
25753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25754 then gcc_cv_as_shf_merge=yes
25755 fi
25756 elif test x$gcc_cv_as != x; then
25757 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25758 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }
25764 then
25765 gcc_cv_as_shf_merge=yes
25766 else
25767 echo "configure: failed program was" >&5
25768 cat conftest.s >&5
25769 fi
25770 rm -f conftest.o conftest.s
25771 fi
25772 fi
25773 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
25774 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
25775
25776 fi
25777
25778 cat >>confdefs.h <<_ACEOF
25779 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25780 _ACEOF
25781
25782
25783 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
25784 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
25785 if test "${gcc_cv_as_comdat_group+set}" = set; then
25786 echo $ECHO_N "(cached) $ECHO_C" >&6
25787 else
25788 gcc_cv_as_comdat_group=no
25789 if test $in_tree_gas = yes; then
25790 if test $in_tree_gas_is_elf = yes \
25791 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25792 then gcc_cv_as_comdat_group=yes
25793 fi
25794 elif test x$gcc_cv_as != x; then
25795 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25796 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798 (eval $ac_try) 2>&5
25799 ac_status=$?
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; }
25802 then
25803 gcc_cv_as_comdat_group=yes
25804 else
25805 echo "configure: failed program was" >&5
25806 cat conftest.s >&5
25807 fi
25808 rm -f conftest.o conftest.s
25809 fi
25810 fi
25811 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
25812 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
25813
25814 if test $gcc_cv_as_comdat_group = yes; then
25815 gcc_cv_as_comdat_group_percent=no
25816 else
25817 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
25818 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
25819 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
25820 echo $ECHO_N "(cached) $ECHO_C" >&6
25821 else
25822 gcc_cv_as_comdat_group_percent=no
25823 if test $in_tree_gas = yes; then
25824 if test $in_tree_gas_is_elf = yes \
25825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25826 then gcc_cv_as_comdat_group_percent=yes
25827 fi
25828 elif test x$gcc_cv_as != x; then
25829 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25830 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; }
25836 then
25837 gcc_cv_as_comdat_group_percent=yes
25838 else
25839 echo "configure: failed program was" >&5
25840 cat conftest.s >&5
25841 fi
25842 rm -f conftest.o conftest.s
25843 fi
25844 fi
25845 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
25846 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
25847
25848 fi
25849 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
25850 comdat_group=yes
25851 if test 0"$ld_date" -lt 20050308; then
25852 if test -n "$ld_date"; then
25853 # If there was date string, but was earlier than 2005-03-08, fail
25854 comdat_group=no
25855 elif test "$ld_vers_major" -lt 2; then
25856 comdat_group=no
25857 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25858 comdat_group=no
25859 fi
25860 fi
25861 else
25862 # assume linkers other than GNU ld don't support COMDAT group
25863 comdat_group=no
25864 fi
25865 if test $comdat_group = no; then
25866 gcc_cv_as_comdat_group=no
25867 gcc_cv_as_comdat_group_percent=no
25868 fi
25869
25870 cat >>confdefs.h <<_ACEOF
25871 #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`
25872 _ACEOF
25873
25874
25875 echo "$as_me:$LINENO: checking assembler for line table discriminator support" >&5
25876 echo $ECHO_N "checking assembler for line table discriminator support... $ECHO_C" >&6
25877 if test "${gcc_cv_as_discriminator+set}" = set; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25879 else
25880 gcc_cv_as_discriminator=no
25881 if test $in_tree_gas = yes; then
25882 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
25883 then gcc_cv_as_discriminator=yes
25884 fi
25885 elif test x$gcc_cv_as != x; then
25886 echo ' .text
25887 .file 1 "conf.c"
25888 .loc 1 1 0 discriminator 1' > conftest.s
25889 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }
25895 then
25896 gcc_cv_as_discriminator=yes
25897 else
25898 echo "configure: failed program was" >&5
25899 cat conftest.s >&5
25900 fi
25901 rm -f conftest.o conftest.s
25902 fi
25903 fi
25904 echo "$as_me:$LINENO: result: $gcc_cv_as_discriminator" >&5
25905 echo "${ECHO_T}$gcc_cv_as_discriminator" >&6
25906 if test $gcc_cv_as_discriminator = yes; then
25907
25908 cat >>confdefs.h <<\_ACEOF
25909 #define HAVE_GAS_DISCRIMINATOR 1
25910 _ACEOF
25911
25912 fi
25913
25914 # Thread-local storage - the check is heavily parameterized.
25915 conftest_s=
25916 tls_first_major=
25917 tls_first_minor=
25918 tls_as_opt=
25919 case "$target" in
25920 alpha*-*-*)
25921 conftest_s='
25922 .section ".tdata","awT",@progbits
25923 foo: .long 25
25924 .text
25925 ldq $27,__tls_get_addr($29) !literal!1
25926 lda $16,foo($29) !tlsgd!1
25927 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25928 ldq $27,__tls_get_addr($29) !literal!2
25929 lda $16,foo($29) !tlsldm!2
25930 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25931 ldq $1,foo($29) !gotdtprel
25932 ldah $2,foo($29) !dtprelhi
25933 lda $3,foo($2) !dtprello
25934 lda $4,foo($29) !dtprel
25935 ldq $1,foo($29) !gottprel
25936 ldah $2,foo($29) !tprelhi
25937 lda $3,foo($2) !tprello
25938 lda $4,foo($29) !tprel'
25939 tls_first_major=2
25940 tls_first_minor=13
25941 tls_as_opt=--fatal-warnings
25942 ;;
25943 cris-*-*|crisv32-*-*)
25944 conftest_s='
25945 .section ".tdata","awT",@progbits
25946 x: .long 25
25947 .text
25948 move.d x:IE,$r10
25949 nop'
25950 tls_first_major=2
25951 tls_first_minor=20
25952 tls_as_opt=--fatal-warnings
25953 ;;
25954 frv*-*-*)
25955 conftest_s='
25956 .section ".tdata","awT",@progbits
25957 x: .long 25
25958 .text
25959 call #gettlsoff(x)'
25960 tls_first_major=2
25961 tls_first_minor=14
25962 ;;
25963 hppa*-*-linux*)
25964 conftest_s='
25965 t1: .reg %r20
25966 t2: .reg %r21
25967 gp: .reg %r19
25968 .section ".tdata","awT",@progbits
25969 foo: .long 25
25970 .text
25971 .align 4
25972 addil LT%foo-$tls_gdidx$,gp
25973 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25974 b __tls_get_addr
25975 nop
25976 addil LT%foo-$tls_ldidx$,gp
25977 b __tls_get_addr
25978 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25979 addil LR%foo-$tls_dtpoff$,%ret0
25980 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25981 mfctl %cr27,%t1
25982 addil LT%foo-$tls_ieoff$,gp
25983 ldw RT%foo-$tls_ieoff$(%r1),%t2
25984 add %t1,%t2,%t3
25985 mfctl %cr27,%t1
25986 addil LR%foo-$tls_leoff$,%t1
25987 ldo RR%foo-$tls_leoff$(%r1),%t2'
25988 tls_first_major=2
25989 tls_first_minor=15
25990 tls_as_opt=--fatal-warnings
25991 ;;
25992 arm*-*-*)
25993 conftest_s='
25994 .section ".tdata","awT",%progbits
25995 foo: .long 25
25996 .text
25997 .word foo(gottpoff)
25998 .word foo(tpoff)
25999 .word foo(tlsgd)
26000 .word foo(tlsldm)
26001 .word foo(tlsldo)'
26002 tls_first_major=2
26003 tls_first_minor=17
26004 ;;
26005 i[34567]86-*-*)
26006 conftest_s='
26007 .section ".tdata","awT",@progbits
26008 foo: .long 25
26009 .text
26010 movl %gs:0, %eax
26011 leal foo@TLSGD(,%ebx,1), %eax
26012 leal foo@TLSLDM(%ebx), %eax
26013 leal foo@DTPOFF(%eax), %edx
26014 movl foo@GOTTPOFF(%ebx), %eax
26015 subl foo@GOTTPOFF(%ebx), %eax
26016 addl foo@GOTNTPOFF(%ebx), %eax
26017 movl foo@INDNTPOFF, %eax
26018 movl $foo@TPOFF, %eax
26019 subl $foo@TPOFF, %eax
26020 leal foo@NTPOFF(%ecx), %eax'
26021 tls_first_major=2
26022 tls_first_minor=14
26023 tls_as_opt=--fatal-warnings
26024 ;;
26025 x86_64-*-*)
26026 conftest_s='
26027 .section ".tdata","awT",@progbits
26028 foo: .long 25
26029 .text
26030 movq %fs:0, %rax
26031 leaq foo@TLSGD(%rip), %rdi
26032 leaq foo@TLSLD(%rip), %rdi
26033 leaq foo@DTPOFF(%rax), %rdx
26034 movq foo@GOTTPOFF(%rip), %rax
26035 movq $foo@TPOFF, %rax'
26036 tls_first_major=2
26037 tls_first_minor=14
26038 tls_as_opt=--fatal-warnings
26039 ;;
26040 ia64-*-*)
26041 conftest_s='
26042 .section ".tdata","awT",@progbits
26043 foo: data8 25
26044 .text
26045 addl r16 = @ltoff(@dtpmod(foo#)), gp
26046 addl r17 = @ltoff(@dtprel(foo#)), gp
26047 addl r18 = @ltoff(@tprel(foo#)), gp
26048 addl r19 = @dtprel(foo#), gp
26049 adds r21 = @dtprel(foo#), r13
26050 movl r23 = @dtprel(foo#)
26051 addl r20 = @tprel(foo#), gp
26052 adds r22 = @tprel(foo#), r13
26053 movl r24 = @tprel(foo#)'
26054 tls_first_major=2
26055 tls_first_minor=13
26056 tls_as_opt=--fatal-warnings
26057 ;;
26058 mips*-*-*)
26059 conftest_s='
26060 .section .tdata,"awT",@progbits
26061 x:
26062 .word 2
26063 .text
26064 addiu $4, $28, %tlsgd(x)
26065 addiu $4, $28, %tlsldm(x)
26066 lui $4, %dtprel_hi(x)
26067 addiu $4, $4, %dtprel_lo(x)
26068 lw $4, %gottprel(x)($28)
26069 lui $4, %tprel_hi(x)
26070 addiu $4, $4, %tprel_lo(x)'
26071 tls_first_major=2
26072 tls_first_minor=16
26073 tls_as_opt='-32 --fatal-warnings'
26074 ;;
26075 m68k-*-*)
26076 conftest_s='
26077 .section .tdata,"awT",@progbits
26078 x:
26079 .word 2
26080 .text
26081 foo:
26082 move.l x@TLSGD(%a5),%a0
26083 move.l x@TLSLDM(%a5),%a0
26084 move.l x@TLSLDO(%a5),%a0
26085 move.l x@TLSIE(%a5),%a0
26086 move.l x@TLSLE(%a5),%a0'
26087 tls_first_major=2
26088 tls_first_minor=19
26089 tls_as_opt='--fatal-warnings'
26090 ;;
26091 powerpc-*-*)
26092 conftest_s='
26093 .section ".tdata","awT",@progbits
26094 .align 2
26095 ld0: .space 4
26096 ld1: .space 4
26097 x1: .space 4
26098 x2: .space 4
26099 x3: .space 4
26100 .text
26101 addi 3,31,ld0@got@tlsgd
26102 bl __tls_get_addr
26103 addi 3,31,x1@got@tlsld
26104 bl __tls_get_addr
26105 addi 9,3,x1@dtprel
26106 addis 9,3,x2@dtprel@ha
26107 addi 9,9,x2@dtprel@l
26108 lwz 9,x3@got@tprel(31)
26109 add 9,9,x@tls
26110 addi 9,2,x1@tprel
26111 addis 9,2,x2@tprel@ha
26112 addi 9,9,x2@tprel@l'
26113 tls_first_major=2
26114 tls_first_minor=14
26115 tls_as_opt="-a32 --fatal-warnings"
26116 ;;
26117 powerpc64-*-*)
26118 conftest_s='
26119 .section ".tdata","awT",@progbits
26120 .align 3
26121 ld0: .space 8
26122 ld1: .space 8
26123 x1: .space 8
26124 x2: .space 8
26125 x3: .space 8
26126 .text
26127 addi 3,2,ld0@got@tlsgd
26128 bl .__tls_get_addr
26129 nop
26130 addi 3,2,ld1@toc
26131 bl .__tls_get_addr
26132 nop
26133 addi 3,2,x1@got@tlsld
26134 bl .__tls_get_addr
26135 nop
26136 addi 9,3,x1@dtprel
26137 bl .__tls_get_addr
26138 nop
26139 addis 9,3,x2@dtprel@ha
26140 addi 9,9,x2@dtprel@l
26141 bl .__tls_get_addr
26142 nop
26143 ld 9,x3@got@dtprel(2)
26144 add 9,9,3
26145 bl .__tls_get_addr
26146 nop'
26147 tls_first_major=2
26148 tls_first_minor=14
26149 tls_as_opt="-a64 --fatal-warnings"
26150 ;;
26151 s390-*-*)
26152 conftest_s='
26153 .section ".tdata","awT",@progbits
26154 foo: .long 25
26155 .text
26156 .long foo@TLSGD
26157 .long foo@TLSLDM
26158 .long foo@DTPOFF
26159 .long foo@NTPOFF
26160 .long foo@GOTNTPOFF
26161 .long foo@INDNTPOFF
26162 l %r1,foo@GOTNTPOFF(%r12)
26163 l %r1,0(%r1):tls_load:foo
26164 bas %r14,0(%r1,%r13):tls_gdcall:foo
26165 bas %r14,0(%r1,%r13):tls_ldcall:foo'
26166 tls_first_major=2
26167 tls_first_minor=14
26168 tls_as_opt="-m31 --fatal-warnings"
26169 ;;
26170 s390x-*-*)
26171 conftest_s='
26172 .section ".tdata","awT",@progbits
26173 foo: .long 25
26174 .text
26175 .quad foo@TLSGD
26176 .quad foo@TLSLDM
26177 .quad foo@DTPOFF
26178 .quad foo@NTPOFF
26179 .quad foo@GOTNTPOFF
26180 lg %r1,foo@GOTNTPOFF(%r12)
26181 larl %r1,foo@INDNTPOFF
26182 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
26183 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
26184 tls_first_major=2
26185 tls_first_minor=14
26186 tls_as_opt="-m64 -Aesame --fatal-warnings"
26187 ;;
26188 sh-*-* | sh[34]-*-*)
26189 conftest_s='
26190 .section ".tdata","awT",@progbits
26191 foo: .long 25
26192 .text
26193 .long foo@TLSGD
26194 .long foo@TLSLDM
26195 .long foo@DTPOFF
26196 .long foo@GOTTPOFF
26197 .long foo@TPOFF'
26198 tls_first_major=2
26199 tls_first_minor=13
26200 tls_as_opt=--fatal-warnings
26201 ;;
26202 sparc*-*-*)
26203 case "$target" in
26204 sparc*-sun-solaris2.[56789]*)
26205 # TLS was introduced in the Solaris 9 4/04 release but
26206 # we do not enable it by default on Solaris 9 either.
26207 if test "x$enable_tls" = xyes ; then
26208 on_solaris=yes
26209 else
26210 enable_tls=no;
26211 fi
26212 ;;
26213 sparc*-sun-solaris2.*)
26214 on_solaris=yes
26215 ;;
26216 *)
26217 on_solaris=no
26218 ;;
26219 esac
26220 if test x$on_solaris = xyes && test x$gas_flag = xno; then
26221 conftest_s='
26222 .section ".tdata",#alloc,#write,#tls
26223 foo: .long 25
26224 .text
26225 sethi %tgd_hi22(foo), %o0
26226 add %o0, %tgd_lo10(foo), %o1
26227 add %l7, %o1, %o0, %tgd_add(foo)
26228 call __tls_get_addr, %tgd_call(foo)
26229 sethi %tldm_hi22(foo), %l1
26230 add %l1, %tldm_lo10(foo), %l2
26231 add %l7, %l2, %o0, %tldm_add(foo)
26232 call __tls_get_addr, %tldm_call(foo)
26233 sethi %tldo_hix22(foo), %l3
26234 xor %l3, %tldo_lox10(foo), %l4
26235 add %o0, %l4, %l5, %tldo_add(foo)
26236 sethi %tie_hi22(foo), %o3
26237 add %o3, %tie_lo10(foo), %o3
26238 ld [%l7 + %o3], %o2, %tie_ld(foo)
26239 add %g7, %o2, %o4, %tie_add(foo)
26240 sethi %tle_hix22(foo), %l1
26241 xor %l1, %tle_lox10(foo), %o5
26242 ld [%g7 + %o5], %o1'
26243 tls_first_major=0
26244 tls_first_minor=0
26245 else
26246 conftest_s='
26247 .section ".tdata","awT",@progbits
26248 foo: .long 25
26249 .text
26250 sethi %tgd_hi22(foo), %o0
26251 add %o0, %tgd_lo10(foo), %o1
26252 add %l7, %o1, %o0, %tgd_add(foo)
26253 call __tls_get_addr, %tgd_call(foo)
26254 sethi %tldm_hi22(foo), %l1
26255 add %l1, %tldm_lo10(foo), %l2
26256 add %l7, %l2, %o0, %tldm_add(foo)
26257 call __tls_get_addr, %tldm_call(foo)
26258 sethi %tldo_hix22(foo), %l3
26259 xor %l3, %tldo_lox10(foo), %l4
26260 add %o0, %l4, %l5, %tldo_add(foo)
26261 sethi %tie_hi22(foo), %o3
26262 add %o3, %tie_lo10(foo), %o3
26263 ld [%l7 + %o3], %o2, %tie_ld(foo)
26264 add %g7, %o2, %o4, %tie_add(foo)
26265 sethi %tle_hix22(foo), %l1
26266 xor %l1, %tle_lox10(foo), %o5
26267 ld [%g7 + %o5], %o1'
26268 tls_first_major=2
26269 tls_first_minor=14
26270 tls_as_opt="-32 --fatal-warnings"
26271 fi
26272 ;;
26273 xtensa*-*-*)
26274 conftest_s='
26275 .section ".tdata","awT",@progbits
26276 foo: .long 25
26277 .text
26278 movi a8, foo@TLSFUNC
26279 movi a10, foo@TLSARG
26280 callx8.tls a8, foo@TLSCALL'
26281 tls_first_major=2
26282 tls_first_minor=19
26283 ;;
26284 esac
26285 set_have_as_tls=no
26286 if test "x$enable_tls" = xno ; then
26287 : # TLS explicitly disabled.
26288 elif test "x$enable_tls" = xyes ; then
26289 set_have_as_tls=yes # TLS explicitly enabled.
26290 elif test -z "$tls_first_major"; then
26291 : # If we don't have a check, assume no support.
26292 else
26293 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
26294 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
26295 if test "${gcc_cv_as_tls+set}" = set; then
26296 echo $ECHO_N "(cached) $ECHO_C" >&6
26297 else
26298 gcc_cv_as_tls=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
26301 then gcc_cv_as_tls=yes
26302 fi
26303 elif test x$gcc_cv_as != x; then
26304 echo "$conftest_s" > conftest.s
26305 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
26306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26307 (eval $ac_try) 2>&5
26308 ac_status=$?
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; }
26311 then
26312 gcc_cv_as_tls=yes
26313 else
26314 echo "configure: failed program was" >&5
26315 cat conftest.s >&5
26316 fi
26317 rm -f conftest.o conftest.s
26318 fi
26319 fi
26320 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
26321 echo "${ECHO_T}$gcc_cv_as_tls" >&6
26322 if test $gcc_cv_as_tls = yes; then
26323 set_have_as_tls=yes
26324 fi
26325 fi
26326 if test $set_have_as_tls = yes ; then
26327
26328 cat >>confdefs.h <<\_ACEOF
26329 #define HAVE_AS_TLS 1
26330 _ACEOF
26331
26332 fi
26333
26334 # Target-specific assembler checks.
26335
26336 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
26337 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
26338 gcc_cv_ld_static_dynamic=no
26339 if test $in_tree_ld = yes ; then
26340 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
26341 gcc_cv_ld_static_dynamic=yes
26342 fi
26343 elif test x$gcc_cv_ld != x; then
26344 # Check if linker supports -Bstatic/-Bdynamic option
26345 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
26346 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
26347 gcc_cv_ld_static_dynamic=yes
26348 fi
26349 fi
26350 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
26351
26352 cat >>confdefs.h <<\_ACEOF
26353 #define HAVE_LD_STATIC_DYNAMIC 1
26354 _ACEOF
26355
26356 fi
26357 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
26358 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
26359
26360 if test x"$demangler_in_ld" = xyes; then
26361 echo "$as_me:$LINENO: checking linker --demangle support" >&5
26362 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
26363 gcc_cv_ld_demangle=no
26364 if test $in_tree_ld = yes; then
26365 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 \
26366 gcc_cv_ld_demangle=yes
26367 fi
26368 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26369 # Check if the GNU linker supports --demangle option
26370 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
26371 gcc_cv_ld_demangle=yes
26372 fi
26373 fi
26374 if test x"$gcc_cv_ld_demangle" = xyes; then
26375
26376 cat >>confdefs.h <<\_ACEOF
26377 #define HAVE_LD_DEMANGLE 1
26378 _ACEOF
26379
26380 fi
26381 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
26382 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
26383 fi
26384
26385 case "$target" in
26386 # All TARGET_ABI_OSF targets.
26387 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
26388 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
26389 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
26390 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26393 gcc_cv_as_alpha_explicit_relocs=no
26394 if test $in_tree_gas = yes; then
26395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
26396 then gcc_cv_as_alpha_explicit_relocs=yes
26397 fi
26398 elif test x$gcc_cv_as != x; then
26399 echo ' .set nomacro
26400 .text
26401 extbl $3, $2, $3 !lituse_bytoff!1
26402 ldq $2, a($29) !literal!1
26403 ldq $4, b($29) !literal!2
26404 ldq_u $3, 0($2) !lituse_base!1
26405 ldq $27, f($29) !literal!5
26406 jsr $26, ($27), f !lituse_jsr!5
26407 ldah $29, 0($26) !gpdisp!3
26408 lda $0, c($29) !gprel
26409 ldah $1, d($29) !gprelhigh
26410 lda $1, d($1) !gprellow
26411 lda $29, 0($29) !gpdisp!3' > conftest.s
26412 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }
26418 then
26419 gcc_cv_as_alpha_explicit_relocs=yes
26420 else
26421 echo "configure: failed program was" >&5
26422 cat conftest.s >&5
26423 fi
26424 rm -f conftest.o conftest.s
26425 fi
26426 fi
26427 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26428 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
26429 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26430
26431 cat >>confdefs.h <<\_ACEOF
26432 #define HAVE_AS_EXPLICIT_RELOCS 1
26433 _ACEOF
26434
26435 fi
26436 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
26437 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
26438 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
26439 echo $ECHO_N "(cached) $ECHO_C" >&6
26440 else
26441 gcc_cv_as_alpha_jsrdirect_relocs=no
26442 if test $in_tree_gas = yes; then
26443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
26444 then gcc_cv_as_alpha_jsrdirect_relocs=yes
26445 fi
26446 elif test x$gcc_cv_as != x; then
26447 echo ' .set nomacro
26448 .text
26449 ldq $27, a($29) !literal!1
26450 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26451 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }
26457 then
26458 gcc_cv_as_alpha_jsrdirect_relocs=yes
26459 else
26460 echo "configure: failed program was" >&5
26461 cat conftest.s >&5
26462 fi
26463 rm -f conftest.o conftest.s
26464 fi
26465 fi
26466 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26467 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
26468 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26469
26470 cat >>confdefs.h <<\_ACEOF
26471 #define HAVE_AS_JSRDIRECT_RELOCS 1
26472 _ACEOF
26473
26474 fi
26475 ;;
26476
26477 cris-*-*)
26478 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
26479 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
26480 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483 gcc_cv_as_cris_no_mul_bug=no
26484 if test $in_tree_gas = yes; then
26485 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26486 then gcc_cv_as_cris_no_mul_bug=yes
26487 fi
26488 elif test x$gcc_cv_as != x; then
26489 echo '.text' > conftest.s
26490 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; }
26496 then
26497 gcc_cv_as_cris_no_mul_bug=yes
26498 else
26499 echo "configure: failed program was" >&5
26500 cat conftest.s >&5
26501 fi
26502 rm -f conftest.o conftest.s
26503 fi
26504 fi
26505 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
26506 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
26507 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26508
26509 cat >>confdefs.h <<\_ACEOF
26510 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
26511 _ACEOF
26512
26513 fi
26514 ;;
26515
26516 sparc*-*-*)
26517 echo "$as_me:$LINENO: checking assembler for .register" >&5
26518 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
26519 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
26520 echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522 gcc_cv_as_sparc_register_op=no
26523 if test x$gcc_cv_as != x; then
26524 echo '.register %g2, #scratch' > conftest.s
26525 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530 (exit $ac_status); }; }
26531 then
26532 gcc_cv_as_sparc_register_op=yes
26533 else
26534 echo "configure: failed program was" >&5
26535 cat conftest.s >&5
26536 fi
26537 rm -f conftest.o conftest.s
26538 fi
26539 fi
26540 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
26541 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
26542 if test $gcc_cv_as_sparc_register_op = yes; then
26543
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_AS_REGISTER_PSEUDO_OP 1
26546 _ACEOF
26547
26548 fi
26549
26550 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
26551 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
26552 if test "${gcc_cv_as_sparc_relax+set}" = set; then
26553 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 else
26555 gcc_cv_as_sparc_relax=no
26556 if test x$gcc_cv_as != x; then
26557 echo '.text' > conftest.s
26558 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; }
26564 then
26565 gcc_cv_as_sparc_relax=yes
26566 else
26567 echo "configure: failed program was" >&5
26568 cat conftest.s >&5
26569 fi
26570 rm -f conftest.o conftest.s
26571 fi
26572 fi
26573 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
26574 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
26575 if test $gcc_cv_as_sparc_relax = yes; then
26576
26577 cat >>confdefs.h <<\_ACEOF
26578 #define HAVE_AS_RELAX_OPTION 1
26579 _ACEOF
26580
26581 fi
26582
26583 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
26584 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
26585 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
26586 echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588 gcc_cv_as_sparc_ua_pcrel=no
26589 if test x$gcc_cv_as != x; then
26590 echo '.text
26591 foo:
26592 nop
26593 .data
26594 .align 4
26595 .byte 0
26596 .uaword %r_disp32(foo)' > conftest.s
26597 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; }
26603 then
26604 if test x$gcc_cv_ld != x \
26605 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26606 gcc_cv_as_sparc_ua_pcrel=yes
26607 fi
26608 rm -f conftest
26609 else
26610 echo "configure: failed program was" >&5
26611 cat conftest.s >&5
26612 fi
26613 rm -f conftest.o conftest.s
26614 fi
26615 fi
26616 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26617 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
26618 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26619
26620 cat >>confdefs.h <<\_ACEOF
26621 #define HAVE_AS_SPARC_UA_PCREL 1
26622 _ACEOF
26623
26624
26625 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26626 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
26627 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 else
26630 gcc_cv_as_sparc_ua_pcrel_hidden=no
26631 if test x$gcc_cv_as != x; then
26632 echo '.data
26633 .align 4
26634 .byte 0x31
26635 .uaword %r_disp32(foo)
26636 .byte 0x32, 0x33, 0x34
26637 .global foo
26638 .hidden foo
26639 foo:
26640 .skip 4' > conftest.s
26641 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }
26647 then
26648 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26649 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26650 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26651 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26652 if $gcc_cv_objdump -R conftest 2> /dev/null \
26653 | grep 'DISP32' > /dev/null 2>&1; then
26654 :
26655 else
26656 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26657 fi
26658 fi
26659 rm -f conftest
26660 else
26661 echo "configure: failed program was" >&5
26662 cat conftest.s >&5
26663 fi
26664 rm -f conftest.o conftest.s
26665 fi
26666 fi
26667 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26668 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
26669 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26670
26671 cat >>confdefs.h <<\_ACEOF
26672 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
26673 _ACEOF
26674
26675 fi
26676
26677 fi # unaligned pcrel relocs
26678
26679 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
26680 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
26681 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
26682 echo $ECHO_N "(cached) $ECHO_C" >&6
26683 else
26684 gcc_cv_as_sparc_offsetable_lo10=no
26685 if test x$gcc_cv_as != x; then
26686 echo '.text
26687 or %g1, %lo(ab) + 12, %g1
26688 or %g1, %lo(ab + 12), %g1' > conftest.s
26689 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
26690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }
26695 then
26696 if test x$gcc_cv_objdump != x \
26697 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26698 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26699 gcc_cv_as_sparc_offsetable_lo10=yes
26700 fi
26701 else
26702 echo "configure: failed program was" >&5
26703 cat conftest.s >&5
26704 fi
26705 rm -f conftest.o conftest.s
26706 fi
26707 fi
26708 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26709 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
26710 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26711
26712 cat >>confdefs.h <<\_ACEOF
26713 #define HAVE_AS_OFFSETABLE_LO10 1
26714 _ACEOF
26715
26716 fi
26717 ;;
26718
26719 i[34567]86-*-* | x86_64-*-*)
26720 case $target_os in
26721 cygwin* | pe | mingw32*)
26722 # Recent binutils allows the three-operand form of ".comm" on PE. This
26723 # definition is used unconditionally to initialise the default state of
26724 # the target option variable that governs usage of the feature.
26725 echo "$as_me:$LINENO: checking assembler for .comm with alignment" >&5
26726 echo $ECHO_N "checking assembler for .comm with alignment... $ECHO_C" >&6
26727 if test "${gcc_cv_as_comm_has_align+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730 gcc_cv_as_comm_has_align=no
26731 if test $in_tree_gas = yes; then
26732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26733 then gcc_cv_as_comm_has_align=yes
26734 fi
26735 elif test x$gcc_cv_as != x; then
26736 echo '.comm foo,1,32' > conftest.s
26737 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }
26743 then
26744 gcc_cv_as_comm_has_align=yes
26745 else
26746 echo "configure: failed program was" >&5
26747 cat conftest.s >&5
26748 fi
26749 rm -f conftest.o conftest.s
26750 fi
26751 fi
26752 echo "$as_me:$LINENO: result: $gcc_cv_as_comm_has_align" >&5
26753 echo "${ECHO_T}$gcc_cv_as_comm_has_align" >&6
26754
26755
26756 cat >>confdefs.h <<_ACEOF
26757 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26758 _ACEOF
26759
26760 # Used for DWARF 2 in PE
26761 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
26762 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
26763 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26765 else
26766 gcc_cv_as_ix86_pe_secrel32=no
26767 if test $in_tree_gas = yes; then
26768 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26769 then gcc_cv_as_ix86_pe_secrel32=yes
26770 fi
26771 elif test x$gcc_cv_as != x; then
26772 echo '.text
26773 foo: nop
26774 .data
26775 .secrel32 foo' > conftest.s
26776 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778 (eval $ac_try) 2>&5
26779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }
26782 then
26783 if test x$gcc_cv_ld != x \
26784 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
26785 gcc_cv_as_ix86_pe_secrel32=yes
26786 fi
26787 rm -f conftest
26788 else
26789 echo "configure: failed program was" >&5
26790 cat conftest.s >&5
26791 fi
26792 rm -f conftest.o conftest.s
26793 fi
26794 fi
26795 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26796 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
26797 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26798
26799 cat >>confdefs.h <<\_ACEOF
26800 #define HAVE_GAS_PE_SECREL32_RELOC 1
26801 _ACEOF
26802
26803 fi
26804 ;;
26805 esac
26806
26807 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
26808 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
26809 if test "${gcc_cv_as_ix86_filds+set}" = set; then
26810 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812 gcc_cv_as_ix86_filds=no
26813 if test x$gcc_cv_as != x; then
26814 echo 'filds mem; fists mem' > conftest.s
26815 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }
26821 then
26822 gcc_cv_as_ix86_filds=yes
26823 else
26824 echo "configure: failed program was" >&5
26825 cat conftest.s >&5
26826 fi
26827 rm -f conftest.o conftest.s
26828 fi
26829 fi
26830 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds" >&5
26831 echo "${ECHO_T}$gcc_cv_as_ix86_filds" >&6
26832 if test $gcc_cv_as_ix86_filds = yes; then
26833
26834 cat >>confdefs.h <<\_ACEOF
26835 #define HAVE_AS_IX86_FILDS 1
26836 _ACEOF
26837
26838 fi
26839
26840 echo "$as_me:$LINENO: checking assembler for fildq and fistpq mnemonics" >&5
26841 echo $ECHO_N "checking assembler for fildq and fistpq mnemonics... $ECHO_C" >&6
26842 if test "${gcc_cv_as_ix86_fildq+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844 else
26845 gcc_cv_as_ix86_fildq=no
26846 if test x$gcc_cv_as != x; then
26847 echo 'fildq mem; fistpq mem' > conftest.s
26848 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26850 (eval $ac_try) 2>&5
26851 ac_status=$?
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); }; }
26854 then
26855 gcc_cv_as_ix86_fildq=yes
26856 else
26857 echo "configure: failed program was" >&5
26858 cat conftest.s >&5
26859 fi
26860 rm -f conftest.o conftest.s
26861 fi
26862 fi
26863 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_fildq" >&5
26864 echo "${ECHO_T}$gcc_cv_as_ix86_fildq" >&6
26865 if test $gcc_cv_as_ix86_fildq = yes; then
26866
26867 cat >>confdefs.h <<\_ACEOF
26868 #define HAVE_AS_IX86_FILDQ 1
26869 _ACEOF
26870
26871 fi
26872
26873 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
26874 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
26875 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26877 else
26878 gcc_cv_as_ix86_cmov_sun_syntax=no
26879 if test x$gcc_cv_as != x; then
26880 echo 'cmovl.l %edx, %eax' > conftest.s
26881 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26883 (eval $ac_try) 2>&5
26884 ac_status=$?
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); }; }
26887 then
26888 gcc_cv_as_ix86_cmov_sun_syntax=yes
26889 else
26890 echo "configure: failed program was" >&5
26891 cat conftest.s >&5
26892 fi
26893 rm -f conftest.o conftest.s
26894 fi
26895 fi
26896 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26897 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
26898 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26899
26900 cat >>confdefs.h <<\_ACEOF
26901 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
26902 _ACEOF
26903
26904 fi
26905
26906 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
26907 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
26908 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26910 else
26911 gcc_cv_as_ix86_ffreep=no
26912 if test x$gcc_cv_as != x; then
26913 echo 'ffreep %st(1)' > conftest.s
26914 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; }
26920 then
26921 gcc_cv_as_ix86_ffreep=yes
26922 else
26923 echo "configure: failed program was" >&5
26924 cat conftest.s >&5
26925 fi
26926 rm -f conftest.o conftest.s
26927 fi
26928 fi
26929 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
26930 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
26931 if test $gcc_cv_as_ix86_ffreep = yes; then
26932
26933 cat >>confdefs.h <<\_ACEOF
26934 #define HAVE_AS_IX86_FFREEP 1
26935 _ACEOF
26936
26937 fi
26938
26939 echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
26940 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
26941 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943 else
26944 gcc_cv_as_ix86_sahf=no
26945 if test x$gcc_cv_as != x; then
26946 echo 'sahf' > conftest.s
26947 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }
26953 then
26954 gcc_cv_as_ix86_sahf=yes
26955 else
26956 echo "configure: failed program was" >&5
26957 cat conftest.s >&5
26958 fi
26959 rm -f conftest.o conftest.s
26960 fi
26961 fi
26962 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
26963 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
26964 if test $gcc_cv_as_ix86_sahf = yes; then
26965
26966 cat >>confdefs.h <<\_ACEOF
26967 #define HAVE_AS_IX86_SAHF 1
26968 _ACEOF
26969
26970 fi
26971
26972 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
26973 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
26974 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26976 else
26977 gcc_cv_as_ix86_diff_sect_delta=no
26978 if test x$gcc_cv_as != x; then
26979 echo '.section .rodata
26980 .L1:
26981 .long .L2-.L1
26982 .long .L3-.L1
26983 .text
26984 .L3: nop
26985 .L2: nop' > conftest.s
26986 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
26987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988 (eval $ac_try) 2>&5
26989 ac_status=$?
26990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991 (exit $ac_status); }; }
26992 then
26993 gcc_cv_as_ix86_diff_sect_delta=yes
26994 else
26995 echo "configure: failed program was" >&5
26996 cat conftest.s >&5
26997 fi
26998 rm -f conftest.o conftest.s
26999 fi
27000 fi
27001 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27002 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
27003 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27004
27005 cat >>confdefs.h <<\_ACEOF
27006 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
27007 _ACEOF
27008
27009 fi
27010
27011 # This one is used unconditionally by i386.[ch]; it is to be defined
27012 # to 1 if the feature is present, 0 otherwise.
27013 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
27014 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
27015 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 else
27018 gcc_cv_as_ix86_gotoff_in_data=no
27019 if test $in_tree_gas = yes; then
27020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27021 then gcc_cv_as_ix86_gotoff_in_data=yes
27022 fi
27023 elif test x$gcc_cv_as != x; then
27024 echo ' .text
27025 .L0:
27026 nop
27027 .data
27028 .long .L0@GOTOFF' > conftest.s
27029 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }
27035 then
27036 gcc_cv_as_ix86_gotoff_in_data=yes
27037 else
27038 echo "configure: failed program was" >&5
27039 cat conftest.s >&5
27040 fi
27041 rm -f conftest.o conftest.s
27042 fi
27043 fi
27044 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27045 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
27046
27047
27048 cat >>confdefs.h <<_ACEOF
27049 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27050 _ACEOF
27051
27052 ;;
27053
27054 ia64*-*-*)
27055 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
27056 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
27057 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
27058 echo $ECHO_N "(cached) $ECHO_C" >&6
27059 else
27060 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27061 if test $in_tree_gas = yes; then
27062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27063 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27064 fi
27065 elif test x$gcc_cv_as != x; then
27066 echo ' .text
27067 addl r15 = @ltoffx(x#), gp
27068 ;;
27069 ld8.mov r16 = [r15], x#' > conftest.s
27070 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072 (eval $ac_try) 2>&5
27073 ac_status=$?
27074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075 (exit $ac_status); }; }
27076 then
27077 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27078 else
27079 echo "configure: failed program was" >&5
27080 cat conftest.s >&5
27081 fi
27082 rm -f conftest.o conftest.s
27083 fi
27084 fi
27085 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27086 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
27087 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27088
27089 cat >>confdefs.h <<\_ACEOF
27090 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
27091 _ACEOF
27092
27093 fi
27094
27095 ;;
27096
27097 powerpc*-*-*)
27098 case $target in
27099 *-*-aix*) conftest_s=' .machine "pwr5"
27100 .csect .text[PR]
27101 mfcr 3,128';;
27102 *-*-darwin*)
27103 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
27104 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
27105 if test "${gcc_cv_as_machine_directive+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108 gcc_cv_as_machine_directive=no
27109 if test x$gcc_cv_as != x; then
27110 echo ' .machine ppc7400' > conftest.s
27111 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); }; }
27117 then
27118 gcc_cv_as_machine_directive=yes
27119 else
27120 echo "configure: failed program was" >&5
27121 cat conftest.s >&5
27122 fi
27123 rm -f conftest.o conftest.s
27124 fi
27125 fi
27126 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
27127 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
27128
27129 if test x$gcc_cv_as_machine_directive != xyes; then
27130 echo "*** This target requires an assembler supporting \".machine\"" >&2
27131 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27132 test x$build = x$target && exit 1
27133 fi
27134 conftest_s=' .text
27135 mfcr r3,128';;
27136 *) conftest_s=' .machine power4
27137 .text
27138 mfcr 3,128';;
27139 esac
27140
27141 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
27142 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
27143 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
27144 echo $ECHO_N "(cached) $ECHO_C" >&6
27145 else
27146 gcc_cv_as_powerpc_mfcrf=no
27147 if test $in_tree_gas = yes; then
27148 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27149 then gcc_cv_as_powerpc_mfcrf=yes
27150 fi
27151 elif test x$gcc_cv_as != x; then
27152 echo "$conftest_s" > conftest.s
27153 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }
27159 then
27160 gcc_cv_as_powerpc_mfcrf=yes
27161 else
27162 echo "configure: failed program was" >&5
27163 cat conftest.s >&5
27164 fi
27165 rm -f conftest.o conftest.s
27166 fi
27167 fi
27168 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
27169 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
27170 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27171
27172 cat >>confdefs.h <<\_ACEOF
27173 #define HAVE_AS_MFCRF 1
27174 _ACEOF
27175
27176 fi
27177
27178 case $target in
27179 *-*-aix*) conftest_s=' .machine "pwr5"
27180 .csect .text[PR]
27181 popcntb 3,3';;
27182 *) conftest_s=' .machine power5
27183 .text
27184 popcntb 3,3';;
27185 esac
27186
27187 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
27188 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
27189 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
27190 echo $ECHO_N "(cached) $ECHO_C" >&6
27191 else
27192 gcc_cv_as_powerpc_popcntb=no
27193 if test $in_tree_gas = yes; then
27194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27195 then gcc_cv_as_powerpc_popcntb=yes
27196 fi
27197 elif test x$gcc_cv_as != x; then
27198 echo "$conftest_s" > conftest.s
27199 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }
27205 then
27206 gcc_cv_as_powerpc_popcntb=yes
27207 else
27208 echo "configure: failed program was" >&5
27209 cat conftest.s >&5
27210 fi
27211 rm -f conftest.o conftest.s
27212 fi
27213 fi
27214 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
27215 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
27216 if test $gcc_cv_as_powerpc_popcntb = yes; then
27217
27218 cat >>confdefs.h <<\_ACEOF
27219 #define HAVE_AS_POPCNTB 1
27220 _ACEOF
27221
27222 fi
27223
27224 case $target in
27225 *-*-aix*) conftest_s=' .machine "pwr5x"
27226 .csect .text[PR]
27227 frin 1,1';;
27228 *) conftest_s=' .machine power5
27229 .text
27230 frin 1,1';;
27231 esac
27232
27233 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
27234 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
27235 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 else
27238 gcc_cv_as_powerpc_fprnd=no
27239 if test $in_tree_gas = yes; then
27240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27241 then gcc_cv_as_powerpc_fprnd=yes
27242 fi
27243 elif test x$gcc_cv_as != x; then
27244 echo "$conftest_s" > conftest.s
27245 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }
27251 then
27252 gcc_cv_as_powerpc_fprnd=yes
27253 else
27254 echo "configure: failed program was" >&5
27255 cat conftest.s >&5
27256 fi
27257 rm -f conftest.o conftest.s
27258 fi
27259 fi
27260 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
27261 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
27262 if test $gcc_cv_as_powerpc_fprnd = yes; then
27263
27264 cat >>confdefs.h <<\_ACEOF
27265 #define HAVE_AS_FPRND 1
27266 _ACEOF
27267
27268 fi
27269
27270 case $target in
27271 *-*-aix*) conftest_s=' .machine "pwr6"
27272 .csect .text[PR]
27273 mffgpr 1,3';;
27274 *) conftest_s=' .machine power6
27275 .text
27276 mffgpr 1,3';;
27277 esac
27278
27279 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
27280 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
27281 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27283 else
27284 gcc_cv_as_powerpc_mfpgpr=no
27285 if test $in_tree_gas = yes; then
27286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27287 then gcc_cv_as_powerpc_mfpgpr=yes
27288 fi
27289 elif test x$gcc_cv_as != x; then
27290 echo "$conftest_s" > conftest.s
27291 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }
27297 then
27298 gcc_cv_as_powerpc_mfpgpr=yes
27299 else
27300 echo "configure: failed program was" >&5
27301 cat conftest.s >&5
27302 fi
27303 rm -f conftest.o conftest.s
27304 fi
27305 fi
27306 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
27307 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
27308 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
27309
27310 cat >>confdefs.h <<\_ACEOF
27311 #define HAVE_AS_MFPGPR 1
27312 _ACEOF
27313
27314 fi
27315
27316 case $target in
27317 *-*-aix*) conftest_s=' .csect .text[PR]
27318 LCF..0:
27319 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27320 *-*-darwin*)
27321 conftest_s=' .text
27322 LCF0:
27323 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27324 *) conftest_s=' .text
27325 .LCF0:
27326 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27327 esac
27328
27329 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
27330 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
27331 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
27332 echo $ECHO_N "(cached) $ECHO_C" >&6
27333 else
27334 gcc_cv_as_powerpc_rel16=no
27335 if test $in_tree_gas = yes; then
27336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27337 then gcc_cv_as_powerpc_rel16=yes
27338 fi
27339 elif test x$gcc_cv_as != x; then
27340 echo "$conftest_s" > conftest.s
27341 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; }
27347 then
27348 gcc_cv_as_powerpc_rel16=yes
27349 else
27350 echo "configure: failed program was" >&5
27351 cat conftest.s >&5
27352 fi
27353 rm -f conftest.o conftest.s
27354 fi
27355 fi
27356 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
27357 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
27358 if test $gcc_cv_as_powerpc_rel16 = yes; then
27359
27360 cat >>confdefs.h <<\_ACEOF
27361 #define HAVE_AS_REL16 1
27362 _ACEOF
27363
27364 fi
27365
27366 case $target in
27367 *-*-aix*) conftest_s=' .machine "pwr6"
27368 .csect .text[PR]
27369 cmpb 3,4,5';;
27370 *) conftest_s=' .machine power6
27371 .text
27372 cmpb 3,4,5';;
27373 esac
27374
27375 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
27376 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
27377 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
27378 echo $ECHO_N "(cached) $ECHO_C" >&6
27379 else
27380 gcc_cv_as_powerpc_cmpb=no
27381 if test $in_tree_gas = yes; then
27382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27383 then gcc_cv_as_powerpc_cmpb=yes
27384 fi
27385 elif test x$gcc_cv_as != x; then
27386 echo "$conftest_s" > conftest.s
27387 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }
27393 then
27394 gcc_cv_as_powerpc_cmpb=yes
27395 else
27396 echo "configure: failed program was" >&5
27397 cat conftest.s >&5
27398 fi
27399 rm -f conftest.o conftest.s
27400 fi
27401 fi
27402 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
27403 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
27404 if test $gcc_cv_as_powerpc_cmpb = yes; then
27405
27406 cat >>confdefs.h <<\_ACEOF
27407 #define HAVE_AS_CMPB 1
27408 _ACEOF
27409
27410 fi
27411
27412 case $target in
27413 *-*-aix*) conftest_s=' .machine "pwr6"
27414 .csect .text[PR]
27415 dadd 1,2,3';;
27416 *) conftest_s=' .machine power6
27417 .text
27418 dadd 1,2,3';;
27419 esac
27420
27421 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
27422 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
27423 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426 gcc_cv_as_powerpc_dfp=no
27427 if test $in_tree_gas = yes; then
27428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27429 then gcc_cv_as_powerpc_dfp=yes
27430 fi
27431 elif test x$gcc_cv_as != x; then
27432 echo "$conftest_s" > conftest.s
27433 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27436 ac_status=$?
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }
27439 then
27440 gcc_cv_as_powerpc_dfp=yes
27441 else
27442 echo "configure: failed program was" >&5
27443 cat conftest.s >&5
27444 fi
27445 rm -f conftest.o conftest.s
27446 fi
27447 fi
27448 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
27449 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
27450 if test $gcc_cv_as_powerpc_dfp = yes; then
27451
27452 cat >>confdefs.h <<\_ACEOF
27453 #define HAVE_AS_DFP 1
27454 _ACEOF
27455
27456 fi
27457
27458 case $target in
27459 *-*-aix*) conftest_s=' .machine "pwr7"
27460 .csect .text[PR]
27461 lxvd2x 1,2,3';;
27462 *) conftest_s=' .machine power7
27463 .text
27464 lxvd2x 1,2,3';;
27465 esac
27466
27467 echo "$as_me:$LINENO: checking assembler for vector-scalar support" >&5
27468 echo $ECHO_N "checking assembler for vector-scalar support... $ECHO_C" >&6
27469 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472 gcc_cv_as_powerpc_vsx=no
27473 if test $in_tree_gas = yes; then
27474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27475 then gcc_cv_as_powerpc_vsx=yes
27476 fi
27477 elif test x$gcc_cv_as != x; then
27478 echo "$conftest_s" > conftest.s
27479 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }
27485 then
27486 gcc_cv_as_powerpc_vsx=yes
27487 else
27488 echo "configure: failed program was" >&5
27489 cat conftest.s >&5
27490 fi
27491 rm -f conftest.o conftest.s
27492 fi
27493 fi
27494 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_vsx" >&5
27495 echo "${ECHO_T}$gcc_cv_as_powerpc_vsx" >&6
27496 if test $gcc_cv_as_powerpc_vsx = yes; then
27497
27498 cat >>confdefs.h <<\_ACEOF
27499 #define HAVE_AS_VSX 1
27500 _ACEOF
27501
27502 fi
27503
27504 case $target in
27505 *-*-aix*) conftest_s=' .machine "pwr7"
27506 .csect .text[PR]
27507 popcntd 3,3';;
27508 *) conftest_s=' .machine power7
27509 .text
27510 popcntd 3,3';;
27511 esac
27512
27513 echo "$as_me:$LINENO: checking assembler for popcntd support" >&5
27514 echo $ECHO_N "checking assembler for popcntd support... $ECHO_C" >&6
27515 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then
27516 echo $ECHO_N "(cached) $ECHO_C" >&6
27517 else
27518 gcc_cv_as_powerpc_popcntd=no
27519 if test $in_tree_gas = yes; then
27520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27521 then gcc_cv_as_powerpc_popcntd=yes
27522 fi
27523 elif test x$gcc_cv_as != x; then
27524 echo "$conftest_s" > conftest.s
27525 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527 (eval $ac_try) 2>&5
27528 ac_status=$?
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); }; }
27531 then
27532 gcc_cv_as_powerpc_popcntd=yes
27533 else
27534 echo "configure: failed program was" >&5
27535 cat conftest.s >&5
27536 fi
27537 rm -f conftest.o conftest.s
27538 fi
27539 fi
27540 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntd" >&5
27541 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntd" >&6
27542 if test $gcc_cv_as_powerpc_popcntd = yes; then
27543
27544 cat >>confdefs.h <<\_ACEOF
27545 #define HAVE_AS_POPCNTD 1
27546 _ACEOF
27547
27548 fi
27549
27550 case $target in
27551 *-*-aix*) conftest_s=' .csect .text[PR]
27552 lwsync';;
27553 *) conftest_s=' .text
27554 lwsync';;
27555 esac
27556
27557 echo "$as_me:$LINENO: checking assembler for lwsync support" >&5
27558 echo $ECHO_N "checking assembler for lwsync support... $ECHO_C" >&6
27559 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then
27560 echo $ECHO_N "(cached) $ECHO_C" >&6
27561 else
27562 gcc_cv_as_powerpc_lwsync=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27565 then gcc_cv_as_powerpc_lwsync=yes
27566 fi
27567 elif test x$gcc_cv_as != x; then
27568 echo "$conftest_s" > conftest.s
27569 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }
27575 then
27576 gcc_cv_as_powerpc_lwsync=yes
27577 else
27578 echo "configure: failed program was" >&5
27579 cat conftest.s >&5
27580 fi
27581 rm -f conftest.o conftest.s
27582 fi
27583 fi
27584 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_lwsync" >&5
27585 echo "${ECHO_T}$gcc_cv_as_powerpc_lwsync" >&6
27586 if test $gcc_cv_as_powerpc_lwsync = yes; then
27587
27588 cat >>confdefs.h <<\_ACEOF
27589 #define HAVE_AS_LWSYNC 1
27590 _ACEOF
27591
27592 fi
27593
27594 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
27595 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
27596 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598 else
27599 gcc_cv_as_powerpc_gnu_attribute=no
27600 if test $in_tree_gas = yes; then
27601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27602 then gcc_cv_as_powerpc_gnu_attribute=yes
27603 fi
27604 elif test x$gcc_cv_as != x; then
27605 echo '.gnu_attribute 4,1' > conftest.s
27606 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27608 (eval $ac_try) 2>&5
27609 ac_status=$?
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); }; }
27612 then
27613 gcc_cv_as_powerpc_gnu_attribute=yes
27614 else
27615 echo "configure: failed program was" >&5
27616 cat conftest.s >&5
27617 fi
27618 rm -f conftest.o conftest.s
27619 fi
27620 fi
27621 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27622 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
27623 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27624
27625 cat >>confdefs.h <<\_ACEOF
27626 #define HAVE_AS_GNU_ATTRIBUTE 1
27627 _ACEOF
27628
27629 fi
27630
27631 echo "$as_me:$LINENO: checking assembler for tls marker support" >&5
27632 echo $ECHO_N "checking assembler for tls marker support... $ECHO_C" >&6
27633 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27635 else
27636 gcc_cv_as_powerpc_tls_markers=no
27637 if test $in_tree_gas = yes; then
27638 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27639 then gcc_cv_as_powerpc_tls_markers=yes
27640 fi
27641 elif test x$gcc_cv_as != x; then
27642 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27643 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648 (exit $ac_status); }; }
27649 then
27650 gcc_cv_as_powerpc_tls_markers=yes
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27654 fi
27655 rm -f conftest.o conftest.s
27656 fi
27657 fi
27658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_tls_markers" >&5
27659 echo "${ECHO_T}$gcc_cv_as_powerpc_tls_markers" >&6
27660 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27661
27662 cat >>confdefs.h <<\_ACEOF
27663 #define HAVE_AS_TLS_MARKERS 1
27664 _ACEOF
27665
27666 fi
27667 ;;
27668
27669 mips*-*-*)
27670 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
27671 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
27672 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675 gcc_cv_as_mips_explicit_relocs=no
27676 if test $in_tree_gas = yes; then
27677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27678 then gcc_cv_as_mips_explicit_relocs=yes
27679 fi
27680 elif test x$gcc_cv_as != x; then
27681 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }
27688 then
27689 gcc_cv_as_mips_explicit_relocs=yes
27690 else
27691 echo "configure: failed program was" >&5
27692 cat conftest.s >&5
27693 fi
27694 rm -f conftest.o conftest.s
27695 fi
27696 fi
27697 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
27698 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
27699 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27700 if test x$target_cpu_default = x
27701 then target_cpu_default=MASK_EXPLICIT_RELOCS
27702 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27703 fi
27704 fi
27705 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
27706 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
27707 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
27708 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 else
27710 gcc_cv_as_mips_no_shared=no
27711 if test $in_tree_gas = yes; then
27712 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27713 then gcc_cv_as_mips_no_shared=yes
27714 fi
27715 elif test x$gcc_cv_as != x; then
27716 echo 'nop' > conftest.s
27717 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }
27723 then
27724 gcc_cv_as_mips_no_shared=yes
27725 else
27726 echo "configure: failed program was" >&5
27727 cat conftest.s >&5
27728 fi
27729 rm -f conftest.o conftest.s
27730 fi
27731 fi
27732 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
27733 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
27734 if test $gcc_cv_as_mips_no_shared = yes; then
27735
27736 cat >>confdefs.h <<\_ACEOF
27737 #define HAVE_AS_NO_SHARED 1
27738 _ACEOF
27739
27740 fi
27741
27742 echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
27743 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
27744 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746 else
27747 gcc_cv_as_mips_gnu_attribute=no
27748 if test $in_tree_gas = yes; then
27749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27750 then gcc_cv_as_mips_gnu_attribute=yes
27751 fi
27752 elif test x$gcc_cv_as != x; then
27753 echo '.gnu_attribute 4,1' > conftest.s
27754 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; }
27760 then
27761 gcc_cv_as_mips_gnu_attribute=yes
27762 else
27763 echo "configure: failed program was" >&5
27764 cat conftest.s >&5
27765 fi
27766 rm -f conftest.o conftest.s
27767 fi
27768 fi
27769 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
27770 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
27771 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27772
27773 cat >>confdefs.h <<\_ACEOF
27774 #define HAVE_AS_GNU_ATTRIBUTE 1
27775 _ACEOF
27776
27777 fi
27778
27779 echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
27780 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
27781 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
27782 echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784 gcc_cv_as_mips_dtprelword=no
27785 if test $in_tree_gas = yes; then
27786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27787 then gcc_cv_as_mips_dtprelword=yes
27788 fi
27789 elif test x$gcc_cv_as != x; then
27790 echo '.section .tdata,"awT",@progbits
27791 x:
27792 .word 2
27793 .text
27794 .dtprelword x+0x8000' > conftest.s
27795 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }
27801 then
27802 gcc_cv_as_mips_dtprelword=yes
27803 else
27804 echo "configure: failed program was" >&5
27805 cat conftest.s >&5
27806 fi
27807 rm -f conftest.o conftest.s
27808 fi
27809 fi
27810 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
27811 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
27812 if test $gcc_cv_as_mips_dtprelword = yes; then
27813
27814 cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_AS_DTPRELWORD 1
27816 _ACEOF
27817
27818 fi
27819 ;;
27820 esac
27821
27822 # Mips and HP-UX need the GNU assembler.
27823 # Linux on IA64 might be able to use the Intel assembler.
27824
27825 case "$target" in
27826 mips*-*-* | *-*-hpux* )
27827 if test x$gas_flag = xyes \
27828 || test x"$host" != x"$build" \
27829 || test ! -x "$gcc_cv_as" \
27830 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27831 :
27832 else
27833 echo "*** This configuration requires the GNU assembler" >&2
27834 exit 1
27835 fi
27836 ;;
27837 esac
27838
27839 # ??? Not all targets support dwarf2 debug_line, even within a version
27840 # of gas. Moreover, we need to emit a valid instruction to trigger any
27841 # info to the output file. So, as supported targets are added to gas 2.11,
27842 # add some instruction here to (also) show we expect this might work.
27843 # ??? Once 2.11 is released, probably need to add first known working
27844 # version to the per-target configury.
27845 case "$target" in
27846 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
27847 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
27848 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
27849 | spu-*-* | fido*-*-* | m32c-*-*)
27850 insn="nop"
27851 ;;
27852 ia64*-*-* | s390*-*-*)
27853 insn="nop 0"
27854 ;;
27855 mmix-*-*)
27856 insn="swym 0"
27857 ;;
27858 esac
27859 if test x"$insn" != x; then
27860 conftest_s="\
27861 .file 1 \"conftest.s\"
27862 .loc 1 3 0
27863 $insn"
27864 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
27865 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
27866 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27868 else
27869 gcc_cv_as_dwarf2_debug_line=no
27870 if test $in_tree_gas = yes; then
27871 if test $in_tree_gas_is_elf = yes \
27872 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27873 then gcc_cv_as_dwarf2_debug_line=yes
27874 fi
27875 elif test x$gcc_cv_as != x; then
27876 echo "$conftest_s" > conftest.s
27877 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; }
27883 then
27884 if test x$gcc_cv_objdump != x \
27885 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27886 | grep debug_line > /dev/null 2>&1; then
27887 gcc_cv_as_dwarf2_debug_line=yes
27888 fi
27889 else
27890 echo "configure: failed program was" >&5
27891 cat conftest.s >&5
27892 fi
27893 rm -f conftest.o conftest.s
27894 fi
27895 fi
27896 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
27897 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
27898
27899
27900 # The .debug_line file table must be in the exact order that
27901 # we specified the files, since these indices are also used
27902 # by DW_AT_decl_file. Approximate this test by testing if
27903 # the assembler bitches if the same index is assigned twice.
27904 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
27905 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
27906 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
27907 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 else
27909 gcc_cv_as_dwarf2_file_buggy=no
27910 if test x$gcc_cv_as != x; then
27911 echo ' .file 1 "foo.s"
27912 .file 1 "bar.s"' > conftest.s
27913 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
27914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27916 ac_status=$?
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); }; }
27919 then
27920 gcc_cv_as_dwarf2_file_buggy=yes
27921 else
27922 echo "configure: failed program was" >&5
27923 cat conftest.s >&5
27924 fi
27925 rm -f conftest.o conftest.s
27926 fi
27927 fi
27928 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27929 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
27930
27931
27932 if test $gcc_cv_as_dwarf2_debug_line = yes \
27933 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27934
27935 cat >>confdefs.h <<\_ACEOF
27936 #define HAVE_AS_DWARF2_DEBUG_LINE 1
27937 _ACEOF
27938
27939 fi
27940
27941 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
27942 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
27943 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
27944 echo $ECHO_N "(cached) $ECHO_C" >&6
27945 else
27946 gcc_cv_as_gdwarf2_flag=no
27947 if test $in_tree_gas = yes; then
27948 if test $in_tree_gas_is_elf = yes \
27949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27950 then gcc_cv_as_gdwarf2_flag=yes
27951 fi
27952 elif test x$gcc_cv_as != x; then
27953 echo "$insn" > conftest.s
27954 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
27955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27956 (eval $ac_try) 2>&5
27957 ac_status=$?
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); }; }
27960 then
27961 gcc_cv_as_gdwarf2_flag=yes
27962 else
27963 echo "configure: failed program was" >&5
27964 cat conftest.s >&5
27965 fi
27966 rm -f conftest.o conftest.s
27967 fi
27968 fi
27969 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
27970 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
27971 if test $gcc_cv_as_gdwarf2_flag = yes; then
27972
27973 cat >>confdefs.h <<\_ACEOF
27974 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
27975 _ACEOF
27976
27977 fi
27978
27979 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
27980 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
27981 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27983 else
27984 gcc_cv_as_gstabs_flag=no
27985 if test $in_tree_gas = yes; then
27986 if test $in_tree_gas_is_elf = yes \
27987 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27988 then gcc_cv_as_gstabs_flag=yes
27989 fi
27990 elif test x$gcc_cv_as != x; then
27991 echo "$insn" > conftest.s
27992 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }
27998 then
27999 # The native Solaris 9/Intel assembler doesn't understand --gstabs
28000 # and warns about it, but still exits successfully. So check for
28001 # this.
28002 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }
28008 then :
28009 else gcc_cv_as_gstabs_flag=yes
28010 fi
28011 else
28012 echo "configure: failed program was" >&5
28013 cat conftest.s >&5
28014 fi
28015 rm -f conftest.o conftest.s
28016 fi
28017 fi
28018 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
28019 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
28020 if test $gcc_cv_as_gstabs_flag = yes; then
28021
28022 cat >>confdefs.h <<\_ACEOF
28023 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
28024 _ACEOF
28025
28026 fi
28027
28028 echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
28029 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
28030 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033 gcc_cv_as_debug_prefix_map_flag=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28036 then gcc_cv_as_debug_prefix_map_flag=yes
28037 fi
28038 elif test x$gcc_cv_as != x; then
28039 echo "$insn" > conftest.s
28040 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28042 (eval $ac_try) 2>&5
28043 ac_status=$?
28044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28045 (exit $ac_status); }; }
28046 then
28047 gcc_cv_as_debug_prefix_map_flag=yes
28048 else
28049 echo "configure: failed program was" >&5
28050 cat conftest.s >&5
28051 fi
28052 rm -f conftest.o conftest.s
28053 fi
28054 fi
28055 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28056 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
28057 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28058
28059 cat >>confdefs.h <<\_ACEOF
28060 #define HAVE_AS_DEBUG_PREFIX_MAP 1
28061 _ACEOF
28062
28063 fi
28064 fi
28065
28066 echo "$as_me:$LINENO: checking assembler for .lcomm with alignment" >&5
28067 echo $ECHO_N "checking assembler for .lcomm with alignment... $ECHO_C" >&6
28068 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then
28069 echo $ECHO_N "(cached) $ECHO_C" >&6
28070 else
28071 gcc_cv_as_lcomm_with_alignment=no
28072 if test x$gcc_cv_as != x; then
28073 echo '.lcomm bar,4,16' > conftest.s
28074 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
28075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28076 (eval $ac_try) 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }
28080 then
28081 gcc_cv_as_lcomm_with_alignment=yes
28082 else
28083 echo "configure: failed program was" >&5
28084 cat conftest.s >&5
28085 fi
28086 rm -f conftest.o conftest.s
28087 fi
28088 fi
28089 echo "$as_me:$LINENO: result: $gcc_cv_as_lcomm_with_alignment" >&5
28090 echo "${ECHO_T}$gcc_cv_as_lcomm_with_alignment" >&6
28091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28092
28093 cat >>confdefs.h <<\_ACEOF
28094 #define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1
28095 _ACEOF
28096
28097 fi
28098
28099 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
28100 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
28101 if test "${gcc_cv_as_line_zero+set}" = set; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28104 gcc_cv_as_line_zero=no
28105 if test $in_tree_gas = yes; then
28106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28107 then gcc_cv_as_line_zero=yes
28108 fi
28109 elif test "x$gcc_cv_as" != x; then
28110 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28111 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28113 (eval $ac_try) 2>&5
28114 ac_status=$?
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); }; } &&
28117 test "x`cat conftest.out`" = x
28118 then
28119 gcc_cv_as_line_zero=yes
28120 else
28121 echo "configure: failed program was" >&5
28122 cat conftest.s >&5
28123 echo "configure: error output was" >&5
28124 cat conftest.out >&5
28125 fi
28126 rm -f conftest.o conftest.s conftest.out
28127 fi
28128 fi
28129 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
28130 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
28131 if test "x$gcc_cv_as_line_zero" = xyes; then
28132
28133 cat >>confdefs.h <<\_ACEOF
28134 #define HAVE_AS_LINE_ZERO 1
28135 _ACEOF
28136
28137 fi
28138
28139 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
28140 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
28141 gcc_cv_ld_eh_frame_hdr=no
28142 if test $in_tree_ld = yes ; then
28143 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 \
28144 && test $in_tree_ld_is_elf = yes; then
28145 gcc_cv_ld_eh_frame_hdr=yes
28146 fi
28147 elif test x$gcc_cv_ld != x; then
28148 # Check if linker supports --eh-frame-hdr option
28149 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
28150 gcc_cv_ld_eh_frame_hdr=yes
28151 fi
28152 fi
28153
28154 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28155
28156 cat >>confdefs.h <<\_ACEOF
28157 #define HAVE_LD_EH_FRAME_HDR 1
28158 _ACEOF
28159
28160 fi
28161 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
28162 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
28163
28164 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
28165 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
28166 gcc_cv_ld_pie=no
28167 if test $in_tree_ld = yes ; then
28168 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 \
28169 && test $in_tree_ld_is_elf = yes; then
28170 gcc_cv_ld_pie=yes
28171 fi
28172 elif test x$gcc_cv_ld != x; then
28173 # Check if linker supports -pie option
28174 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28175 gcc_cv_ld_pie=yes
28176 fi
28177 fi
28178 if test x"$gcc_cv_ld_pie" = xyes; then
28179
28180 cat >>confdefs.h <<\_ACEOF
28181 #define HAVE_LD_PIE 1
28182 _ACEOF
28183
28184 fi
28185 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
28186 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
28187
28188 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
28189 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
28190 gcc_cv_ld_eh_gc_sections=no
28191 if test $in_tree_ld = yes ; then
28192 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 \
28193 && test $in_tree_ld_is_elf = yes; then
28194 gcc_cv_ld_eh_gc_sections=yes
28195 fi
28196 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28197 cat > conftest.s <<EOF
28198 .section .text
28199 .globl _start
28200 .type _start, @function
28201 _start:
28202 .long foo
28203 .size _start, .-_start
28204 .section .text.foo,"ax",@progbits
28205 .type foo, @function
28206 foo:
28207 .long 0
28208 .size foo, .-foo
28209 .section .gcc_except_table.foo,"a",@progbits
28210 .L0:
28211 .long 0
28212 .section .eh_frame,"a",@progbits
28213 .long .L0
28214 EOF
28215 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28216 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28217 | grep "gc-sections option ignored" > /dev/null; then
28218 gcc_cv_ld_eh_gc_sections=no
28219 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
28220 gcc_cv_ld_eh_gc_sections=yes
28221 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28222 if test x$gcc_cv_as_comdat_group != xyes; then
28223 gcc_cv_ld_eh_gc_sections=no
28224 cat > conftest.s <<EOF
28225 .section .text
28226 .globl _start
28227 .type _start, @function
28228 _start:
28229 .long foo
28230 .size _start, .-_start
28231 .section .gnu.linkonce.t.foo,"ax",@progbits
28232 .type foo, @function
28233 foo:
28234 .long 0
28235 .size foo, .-foo
28236 .section .gcc_except_table.foo,"a",@progbits
28237 .L0:
28238 .long 0
28239 .section .eh_frame,"a",@progbits
28240 .long .L0
28241 EOF
28242 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28243 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28244 | grep "gc-sections option ignored" > /dev/null; then
28245 gcc_cv_ld_eh_gc_sections=no
28246 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
28247 gcc_cv_ld_eh_gc_sections=yes
28248 fi
28249 fi
28250 fi
28251 fi
28252 fi
28253 rm -f conftest.s conftest.o conftest
28254 fi
28255 case "$target" in
28256 hppa*-*-linux*)
28257 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28258 gcc_cv_ld_eh_gc_sections=no
28259 ;;
28260 esac
28261 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28262
28263 cat >>confdefs.h <<\_ACEOF
28264 #define HAVE_LD_EH_GC_SECTIONS 1
28265 _ACEOF
28266
28267 fi
28268 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
28269 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
28270
28271 # --------
28272 # UNSORTED
28273 # --------
28274
28275 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
28276 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
28277 if test "${gcc_cv_ld_as_needed+set}" = set; then
28278 echo $ECHO_N "(cached) $ECHO_C" >&6
28279 else
28280 gcc_cv_ld_as_needed=no
28281 if test $in_tree_ld = yes ; then
28282 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 \
28283 && test $in_tree_ld_is_elf = yes; then
28284 gcc_cv_ld_as_needed=yes
28285 fi
28286 elif test x$gcc_cv_ld != x; then
28287 # Check if linker supports --as-needed and --no-as-needed options
28288 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28289 gcc_cv_ld_as_needed=yes
28290 fi
28291 fi
28292
28293 fi
28294 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
28295 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
28296 if test x"$gcc_cv_ld_as_needed" = xyes; then
28297
28298 cat >>confdefs.h <<\_ACEOF
28299 #define HAVE_LD_AS_NEEDED 1
28300 _ACEOF
28301
28302 fi
28303
28304 case "$target:$tm_file" in
28305 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28306 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
28307 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
28308 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311 gcc_cv_ld_no_dot_syms=no
28312 if test $in_tree_ld = yes ; then
28313 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
28314 gcc_cv_ld_no_dot_syms=yes
28315 fi
28316 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28317 cat > conftest1.s <<EOF
28318 .text
28319 bl .foo
28320 EOF
28321 cat > conftest2.s <<EOF
28322 .section ".opd","aw"
28323 .align 3
28324 .globl foo
28325 .type foo,@function
28326 foo:
28327 .quad .LEfoo,.TOC.@tocbase,0
28328 .text
28329 .LEfoo:
28330 blr
28331 .size foo,.-.LEfoo
28332 EOF
28333 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28334 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28335 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28336 gcc_cv_ld_no_dot_syms=yes
28337 fi
28338 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28339 fi
28340
28341 fi
28342 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
28343 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
28344 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28345
28346 cat >>confdefs.h <<\_ACEOF
28347 #define HAVE_LD_NO_DOT_SYMS 1
28348 _ACEOF
28349
28350 fi
28351 ;;
28352 esac
28353
28354 echo "$as_me:$LINENO: checking linker --build-id support" >&5
28355 echo $ECHO_N "checking linker --build-id support... $ECHO_C" >&6
28356 if test "${gcc_cv_ld_buildid+set}" = set; then
28357 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 else
28359 gcc_cv_ld_buildid=no
28360 if test $in_tree_ld = yes ; then
28361 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28362 "$gcc_cv_gld_minor_version" -ge 18 -o \
28363 "$gcc_cv_gld_major_version" -gt 2 \
28364 && test $in_tree_ld_is_elf = yes; then
28365 gcc_cv_ld_buildid=yes
28366 fi
28367 elif test x$gcc_cv_ld != x; then
28368 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28369 gcc_cv_ld_buildid=yes
28370 fi
28371 fi
28372 fi
28373 echo "$as_me:$LINENO: result: $gcc_cv_ld_buildid" >&5
28374 echo "${ECHO_T}$gcc_cv_ld_buildid" >&6
28375 if test x"$gcc_cv_ld_buildid" = xyes; then
28376
28377 cat >>confdefs.h <<\_ACEOF
28378 #define HAVE_LD_BUILDID 1
28379 _ACEOF
28380
28381 fi
28382
28383 # Check whether --enable-linker-build-id or --disable-linker-build-id was given.
28384 if test "${enable_linker_build_id+set}" = set; then
28385 enableval="$enable_linker_build_id"
28386
28387 else
28388 enable_linker_build_id=no
28389 fi;
28390
28391 if test x"$enable_linker_build_id" = xyes; then
28392 if test x"$gcc_cv_ld_buildid" = xyes; then
28393
28394 cat >>confdefs.h <<\_ACEOF
28395 #define ENABLE_LD_BUILDID 1
28396 _ACEOF
28397
28398 else
28399 { echo "$as_me:$LINENO: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28400 echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28401 fi
28402 fi
28403
28404 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
28405 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
28406 if test "${gcc_cv_ld_sysroot+set}" = set; then
28407 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 else
28409 gcc_cv_ld_sysroot=no
28410 if test $in_tree_ld = yes ; then
28411 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
28412 gcc_cv_ld_sysroot=yes
28413 fi
28414 elif test x$gcc_cv_ld != x; then
28415 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28416 gcc_cv_ld_sysroot=yes
28417 fi
28418 fi
28419 fi
28420 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
28421 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
28422 if test x"$gcc_cv_ld_sysroot" = xyes; then
28423
28424 cat >>confdefs.h <<\_ACEOF
28425 #define HAVE_LD_SYSROOT 1
28426 _ACEOF
28427
28428 fi
28429
28430 if test x$with_sysroot = x && test x$host = x$target \
28431 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28432 && test "$prefix" != "NONE"; then
28433
28434 cat >>confdefs.h <<_ACEOF
28435 #define PREFIX_INCLUDE_DIR "$prefix/include"
28436 _ACEOF
28437
28438 fi
28439
28440 # Test for stack protector support in target C library.
28441 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
28442 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
28443 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
28444 echo $ECHO_N "(cached) $ECHO_C" >&6
28445 else
28446 gcc_cv_libc_provides_ssp=no
28447 case "$target" in
28448 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28449 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
28450 if test "x$with_sysroot" = x; then
28451 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
28452 elif test "x$with_build_sysroot" != "x"; then
28453 glibc_header_dir="${with_build_sysroot}/usr/include"
28454 elif test "x$with_sysroot" = xyes; then
28455 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
28456 else
28457 glibc_header_dir="${with_sysroot}/usr/include"
28458 fi
28459 else
28460 glibc_header_dir=/usr/include
28461 fi
28462 # glibc 2.4 and later provides __stack_chk_fail and
28463 # either __stack_chk_guard, or TLS access to stack guard canary.
28464 if test -f $glibc_header_dir/features.h \
28465 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28466 $glibc_header_dir/features.h > /dev/null; then
28467 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
28468 $glibc_header_dir/features.h > /dev/null; then
28469 gcc_cv_libc_provides_ssp=yes
28470 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
28471 $glibc_header_dir/features.h > /dev/null \
28472 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
28473 $glibc_header_dir/features.h > /dev/null; then
28474 gcc_cv_libc_provides_ssp=yes
28475 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28476 $glibc_header_dir/features.h > /dev/null && \
28477 test -f $glibc_header_dir/bits/uClibc_config.h && \
28478 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28479 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
28480 gcc_cv_libc_provides_ssp=yes
28481 fi
28482 fi
28483 ;;
28484 *-*-gnu*)
28485 # Avoid complicated tests (see
28486 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28487 # simply assert that glibc does provide this, which is true for all
28488 # realistically usable GNU/Hurd configurations.
28489 gcc_cv_libc_provides_ssp=yes;;
28490 *-*-darwin*)
28491 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
28492 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
28493 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
28494 echo $ECHO_N "(cached) $ECHO_C" >&6
28495 else
28496 cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h. */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28502 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
28503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28504 #define __stack_chk_fail innocuous___stack_chk_fail
28505
28506 /* System header to define __stub macros and hopefully few prototypes,
28507 which can conflict with char __stack_chk_fail (); below.
28508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28509 <limits.h> exists even on freestanding compilers. */
28510
28511 #ifdef __STDC__
28512 # include <limits.h>
28513 #else
28514 # include <assert.h>
28515 #endif
28516
28517 #undef __stack_chk_fail
28518
28519 /* Override any gcc2 internal prototype to avoid an error. */
28520 #ifdef __cplusplus
28521 extern "C"
28522 {
28523 #endif
28524 /* We use char because int might match the return type of a gcc2
28525 builtin and then its argument prototype would still apply. */
28526 char __stack_chk_fail ();
28527 /* The GNU C library defines this for functions which it implements
28528 to always fail with ENOSYS. Some functions are actually named
28529 something starting with __ and the normal name is an alias. */
28530 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
28531 choke me
28532 #else
28533 char (*f) () = __stack_chk_fail;
28534 #endif
28535 #ifdef __cplusplus
28536 }
28537 #endif
28538
28539 int
28540 main ()
28541 {
28542 return f != __stack_chk_fail;
28543 ;
28544 return 0;
28545 }
28546 _ACEOF
28547 rm -f conftest.$ac_objext conftest$ac_exeext
28548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28549 (eval $ac_link) 2>conftest.er1
28550 ac_status=$?
28551 grep -v '^ *+' conftest.er1 >conftest.err
28552 rm -f conftest.er1
28553 cat conftest.err >&5
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
28556 { ac_try='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28560 ac_status=$?
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try='test -s conftest$ac_exeext'
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28566 ac_status=$?
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28569 ac_cv_func___stack_chk_fail=yes
28570 else
28571 echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28573
28574 ac_cv_func___stack_chk_fail=no
28575 fi
28576 rm -f conftest.err conftest.$ac_objext \
28577 conftest$ac_exeext conftest.$ac_ext
28578 fi
28579 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
28580 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
28581 if test $ac_cv_func___stack_chk_fail = yes; then
28582 gcc_cv_libc_provides_ssp=yes
28583 else
28584 echo "no __stack_chk_fail on this target"
28585 fi
28586
28587 ;;
28588 *) gcc_cv_libc_provides_ssp=no ;;
28589 esac
28590 fi
28591 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
28592 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
28593
28594 if test x$gcc_cv_libc_provides_ssp = xyes; then
28595
28596 cat >>confdefs.h <<\_ACEOF
28597 #define TARGET_LIBC_PROVIDES_SSP 1
28598 _ACEOF
28599
28600 fi
28601
28602 # Check if TFmode long double should be used by default or not.
28603 # Some glibc targets used DFmode long double, but with glibc 2.4
28604 # and later they can use TFmode.
28605 case "$target" in
28606 powerpc*-*-linux* | \
28607 powerpc*-*-gnu* | \
28608 sparc*-*-linux* | \
28609 s390*-*-linux* | \
28610 alpha*-*-linux*)
28611
28612 # Check whether --with-long-double-128 or --without-long-double-128 was given.
28613 if test "${with_long_double_128+set}" = set; then
28614 withval="$with_long_double_128"
28615 gcc_cv_target_ldbl128="$with_long_double_128"
28616 else
28617 gcc_cv_target_ldbl128=no
28618 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
28619 if test "x$with_sysroot" = x; then
28620 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
28621 elif test "x$with_build_sysroot" != "x"; then
28622 glibc_header_dir="${with_build_sysroot}/usr/include"
28623 elif test "x$with_sysroot" = xyes; then
28624 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
28625 else
28626 glibc_header_dir="${with_sysroot}/usr/include"
28627 fi
28628 else
28629 glibc_header_dir=/usr/include
28630 fi
28631 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28632 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28633 && gcc_cv_target_ldbl128=yes
28634
28635 fi;
28636 ;;
28637 esac
28638 if test x$gcc_cv_target_ldbl128 = xyes; then
28639
28640 cat >>confdefs.h <<\_ACEOF
28641 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
28642 _ACEOF
28643
28644 fi
28645
28646 # Find out what GC implementation we want, or may, use.
28647
28648 # Check whether --with-gc or --without-gc was given.
28649 if test "${with_gc+set}" = set; then
28650 withval="$with_gc"
28651 case "$withval" in
28652 page)
28653 GGC=ggc-$withval
28654 ;;
28655 zone)
28656 GGC=ggc-$withval
28657
28658 cat >>confdefs.h <<\_ACEOF
28659 #define GGC_ZONE 1
28660 _ACEOF
28661
28662 ;;
28663 *)
28664 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
28665 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
28666 { (exit 1); exit 1; }; }
28667 ;;
28668 esac
28669 else
28670 GGC=ggc-page
28671 fi;
28672
28673 echo "Using $GGC for garbage collection."
28674
28675 # Libraries to use on the host. This will normally be set by the top
28676 # level Makefile. Here we simply capture the value for our Makefile.
28677 if test -z "${HOST_LIBS+set}"; then
28678 HOST_LIBS=
28679 fi
28680
28681
28682 # Use the system's zlib library.
28683 zlibdir=-L../zlib
28684 zlibinc="-I\$(srcdir)/../zlib"
28685
28686 # Check whether --with-system-zlib or --without-system-zlib was given.
28687 if test "${with_system_zlib+set}" = set; then
28688 withval="$with_system_zlib"
28689 zlibdir=
28690 zlibinc=
28691
28692 fi;
28693
28694
28695
28696
28697 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
28698 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
28699 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
28700 if test "${enable_maintainer_mode+set}" = set; then
28701 enableval="$enable_maintainer_mode"
28702 maintainer_mode=$enableval
28703 else
28704 maintainer_mode=no
28705 fi;
28706
28707 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
28708 echo "${ECHO_T}$maintainer_mode" >&6
28709
28710 if test "$maintainer_mode" = "yes"; then
28711 MAINT=''
28712 else
28713 MAINT='#'
28714 fi
28715
28716 # --------------
28717 # Language hooks
28718 # --------------
28719
28720 # Make empty files to contain the specs and options for each language.
28721 # Then add #include lines to for a compiler that has specs and/or options.
28722
28723 subdirs=
28724 lang_opt_files=
28725 lang_specs_files=
28726 lang_tree_files=
28727 # These (without "all_") are set in each config-lang.in.
28728 # `language' must be a single word so is spelled singularly.
28729 all_languages=
28730 all_compilers=
28731 all_outputs='Makefile gccbug'
28732 # List of language makefile fragments.
28733 all_lang_makefrags=
28734 # List of language subdirectory makefiles. Deprecated.
28735 all_lang_makefiles=
28736 # Additional files for gengtype
28737 all_gtfiles="$target_gtfiles"
28738
28739 # These are the languages that are set in --enable-languages,
28740 # and are available in the GCC tree.
28741 all_selected_languages=
28742
28743 # Add the language fragments.
28744 # Languages are added via two mechanisms. Some information must be
28745 # recorded in makefile variables, these are defined in config-lang.in.
28746 # We accumulate them and plug them into the main Makefile.
28747 # The other mechanism is a set of hooks for each of the main targets
28748 # like `clean', `install', etc.
28749
28750 language_hooks="Make-hooks"
28751
28752 for lang in ${srcdir}/*/config-lang.in
28753 do
28754 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28755
28756 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28757 if test "x$lang_alias" = x
28758 then
28759 echo "$lang doesn't set \$language." 1>&2
28760 exit 1
28761 fi
28762 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28763 subdirs="$subdirs $subdir"
28764
28765 # $gcc_subdir is where the gcc integration files are to be found
28766 # for a language, both for internal compiler purposes (compiler
28767 # sources implementing front-end to GCC tree converters), and for
28768 # build infrastructure purposes (Make-lang.in, etc.)
28769 #
28770 # This will be <subdir> (relative to $srcdir) if a line like
28771 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28772 # is found in <langdir>/config-lang.in, and will remain <langdir>
28773 # otherwise.
28774 #
28775 # Except for the language alias (fetched above), the regular
28776 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28777 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28778 # only this and the language alias.
28779
28780 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28781 if [ "$gcc_subdir" = "" ]; then
28782 gcc_subdir="$subdir"
28783 fi
28784
28785 case ",$enable_languages," in
28786 *,$lang_alias,*)
28787 all_selected_languages="$all_selected_languages $lang_alias"
28788 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28789 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28790 fi
28791 ;;
28792 esac
28793
28794 language=
28795 boot_language=
28796 compilers=
28797 outputs=
28798 gtfiles=
28799 subdir_requires=
28800 . ${srcdir}/$gcc_subdir/config-lang.in
28801 if test "x$language" = x
28802 then
28803 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28804 exit 1
28805 fi
28806
28807 ok=:
28808 case ",$enable_languages," in
28809 *,$lang_alias,*) ;;
28810 *)
28811 for i in $subdir_requires; do
28812 test -f "${srcdir}/$i/config-lang.in" && continue
28813 ok=false
28814 break
28815 done
28816 ;;
28817 esac
28818 $ok || continue
28819
28820 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28821 if test -f $srcdir/$gcc_subdir/lang.opt; then
28822 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28823 fi
28824 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28825 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28826 fi
28827 if test -f ${srcdir}/$gcc_subdir/Makefile.in
28828 then all_lang_makefiles="$gcc_subdir/Makefile"
28829 fi
28830 all_languages="$all_languages $language"
28831 all_compilers="$all_compilers $compilers"
28832 all_outputs="$all_outputs $outputs"
28833 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28834 done
28835
28836 # Pick up gtfiles for c
28837 gtfiles=
28838 . ${srcdir}/c-config-lang.in
28839 all_gtfiles="$all_gtfiles [c] $gtfiles"
28840
28841 check_languages=
28842 for language in $all_selected_languages
28843 do
28844 check_languages="$check_languages check-$language"
28845 done
28846
28847 # We link each language in with a set of hooks, reached indirectly via
28848 # lang.${target}. Only do so for selected languages.
28849
28850 rm -f Make-hooks
28851 touch Make-hooks
28852 target_list="all.cross start.encap rest.encap tags \
28853 install-common install-man install-info install-pdf dvi pdf \
28854 html uninstall info man srcextra srcman srcinfo \
28855 mostlyclean clean distclean maintainer-clean"
28856
28857 for t in $target_list
28858 do
28859 x=
28860 for lang in $all_selected_languages
28861 do
28862 x="$x $lang.$t"
28863 done
28864 echo "lang.$t: $x" >> Make-hooks
28865 done
28866
28867 # --------
28868 # UNSORTED
28869 # --------
28870
28871 # Create .gdbinit.
28872
28873 echo "dir ." > .gdbinit
28874 echo "dir ${srcdir}" >> .gdbinit
28875 if test x$gdb_needs_out_file_path = xyes
28876 then
28877 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28878 fi
28879 if test "x$subdirs" != x; then
28880 for s in $subdirs
28881 do
28882 echo "dir ${srcdir}/$s" >> .gdbinit
28883 done
28884 fi
28885 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28886
28887 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28888
28889
28890
28891 # Find a directory in which to install a shared libgcc.
28892
28893 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
28894 if test "${enable_version_specific_runtime_libs+set}" = set; then
28895 enableval="$enable_version_specific_runtime_libs"
28896
28897 fi;
28898
28899
28900 # Check whether --with-slibdir or --without-slibdir was given.
28901 if test "${with_slibdir+set}" = set; then
28902 withval="$with_slibdir"
28903 slibdir="$with_slibdir"
28904 else
28905 if test "${enable_version_specific_runtime_libs+set}" = set; then
28906 slibdir='$(libsubdir)'
28907 elif test "$host" != "$target"; then
28908 slibdir='$(build_tooldir)/lib'
28909 else
28910 slibdir='$(libdir)'
28911 fi
28912 fi;
28913
28914
28915
28916 # Check whether --with-datarootdir or --without-datarootdir was given.
28917 if test "${with_datarootdir+set}" = set; then
28918 withval="$with_datarootdir"
28919 datarootdir="\${prefix}/$with_datarootdir"
28920 else
28921 datarootdir='$(prefix)/share'
28922 fi;
28923
28924
28925
28926 # Check whether --with-docdir or --without-docdir was given.
28927 if test "${with_docdir+set}" = set; then
28928 withval="$with_docdir"
28929 docdir="\${prefix}/$with_docdir"
28930 else
28931 docdir='$(datarootdir)'
28932 fi;
28933
28934
28935
28936 # Check whether --with-htmldir or --without-htmldir was given.
28937 if test "${with_htmldir+set}" = set; then
28938 withval="$with_htmldir"
28939 htmldir="\${prefix}/$with_htmldir"
28940 else
28941 htmldir='$(docdir)'
28942 fi;
28943
28944
28945 # Substitute configuration variables
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007 # Echo link setup.
29008 if test x${build} = x${host} ; then
29009 if test x${host} = x${target} ; then
29010 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29011 else
29012 echo "Links are now set up to build a cross-compiler" 1>&2
29013 echo " from ${host} to ${target}." 1>&2
29014 fi
29015 else
29016 if test x${host} = x${target} ; then
29017 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29018 echo " for ${target}." 1>&2
29019 else
29020 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29021 echo " from ${host} to ${target}." 1>&2
29022 fi
29023 fi
29024
29025
29026
29027
29028 case "${GMPLIBS}" in
29029 *-lmpc*)
29030 cat >>confdefs.h <<\_ACEOF
29031 #define HAVE_mpc 1
29032 _ACEOF
29033 ;;
29034 esac
29035
29036
29037
29038
29039
29040
29041 if test "x${CLOOGLIBS}" != "x" ; then
29042
29043 cat >>confdefs.h <<\_ACEOF
29044 #define HAVE_cloog 1
29045 _ACEOF
29046
29047 fi
29048
29049 # Check for plugin support
29050 # Check whether --enable-plugin or --disable-plugin was given.
29051 if test "${enable_plugin+set}" = set; then
29052 enableval="$enable_plugin"
29053 enable_plugin=$enableval
29054 else
29055 enable_plugin=yes; default_plugin=yes
29056 fi;
29057
29058 pluginlibs=
29059 if test x"$enable_plugin" = x"yes"; then
29060 # Check that the host supports -rdynamic and -ldl
29061 have_rdynamic=no
29062 have_dl=no
29063 saved_LDFLAGS="$LDFLAGS"
29064 saved_LIBS="$LIBS"
29065 LIBS=
29066
29067 # Check -rdynamic
29068 LDFLAGS="$LDFLAGS -rdynamic"
29069 echo "$as_me:$LINENO: checking for -rdynamic" >&5
29070 echo $ECHO_N "checking for -rdynamic... $ECHO_C" >&6
29071 cat >conftest.$ac_ext <<_ACEOF
29072 /* confdefs.h. */
29073 _ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h. */
29077
29078 int
29079 main ()
29080 {
29081 return 0;
29082 ;
29083 return 0;
29084 }
29085 _ACEOF
29086 rm -f conftest.$ac_objext conftest$ac_exeext
29087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29088 (eval $ac_link) 2>conftest.er1
29089 ac_status=$?
29090 grep -v '^ *+' conftest.er1 >conftest.err
29091 rm -f conftest.er1
29092 cat conftest.err >&5
29093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094 (exit $ac_status); } &&
29095 { ac_try='test -z "$ac_c_werror_flag"
29096 || test ! -s conftest.err'
29097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098 (eval $ac_try) 2>&5
29099 ac_status=$?
29100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101 (exit $ac_status); }; } &&
29102 { ac_try='test -s conftest$ac_exeext'
29103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104 (eval $ac_try) 2>&5
29105 ac_status=$?
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 echo "$as_me:$LINENO: result: yes" >&5
29109 echo "${ECHO_T}yes" >&6; have_rdynamic=yes
29110 else
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114 echo "$as_me:$LINENO: result: no" >&5
29115 echo "${ECHO_T}no" >&6
29116 fi
29117 rm -f conftest.err conftest.$ac_objext \
29118 conftest$ac_exeext conftest.$ac_ext
29119 if test x"$have_rdynamic" = x"yes" ; then
29120 pluginlibs="-rdynamic"
29121 fi
29122
29123 # Check -ldl
29124 LDFLAGS="$LDFLAGS -ldl"
29125 echo "$as_me:$LINENO: checking for -ldl" >&5
29126 echo $ECHO_N "checking for -ldl... $ECHO_C" >&6
29127 cat >conftest.$ac_ext <<_ACEOF
29128 /* confdefs.h. */
29129 _ACEOF
29130 cat confdefs.h >>conftest.$ac_ext
29131 cat >>conftest.$ac_ext <<_ACEOF
29132 /* end confdefs.h. */
29133 #include <dlfcn.h>
29134 int
29135 main ()
29136 {
29137 volatile int f = 0; if (f) dlopen ("dummy", 0);
29138 ;
29139 return 0;
29140 }
29141 _ACEOF
29142 rm -f conftest.$ac_objext conftest$ac_exeext
29143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29144 (eval $ac_link) 2>conftest.er1
29145 ac_status=$?
29146 grep -v '^ *+' conftest.er1 >conftest.err
29147 rm -f conftest.er1
29148 cat conftest.err >&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } &&
29151 { ac_try='test -z "$ac_c_werror_flag"
29152 || test ! -s conftest.err'
29153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29154 (eval $ac_try) 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; } &&
29158 { ac_try='test -s conftest$ac_exeext'
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
29164 echo "$as_me:$LINENO: result: yes" >&5
29165 echo "${ECHO_T}yes" >&6; have_dl=yes
29166 else
29167 echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 echo "$as_me:$LINENO: result: no" >&5
29171 echo "${ECHO_T}no" >&6
29172 fi
29173 rm -f conftest.err conftest.$ac_objext \
29174 conftest$ac_exeext conftest.$ac_ext
29175 if test x"$have_dl" = x"yes"; then
29176 pluginlibs="$pluginlibs -ldl"
29177 fi
29178
29179 # Check that we can build shared objects with -fPIC -shared
29180 LDFLAGS="$LDFLAGS -fPIC -shared"
29181 echo "$as_me:$LINENO: checking for -fPIC -shared" >&5
29182 echo $ECHO_N "checking for -fPIC -shared... $ECHO_C" >&6
29183 cat >conftest.$ac_ext <<_ACEOF
29184 /* confdefs.h. */
29185 _ACEOF
29186 cat confdefs.h >>conftest.$ac_ext
29187 cat >>conftest.$ac_ext <<_ACEOF
29188 /* end confdefs.h. */
29189 extern int X;
29190 int
29191 main ()
29192 {
29193 return X == 0;
29194 ;
29195 return 0;
29196 }
29197 _ACEOF
29198 rm -f conftest.$ac_objext conftest$ac_exeext
29199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29200 (eval $ac_link) 2>conftest.er1
29201 ac_status=$?
29202 grep -v '^ *+' conftest.er1 >conftest.err
29203 rm -f conftest.er1
29204 cat conftest.err >&5
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
29207 { ac_try='test -z "$ac_c_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest$ac_exeext'
29215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
29220 echo "$as_me:$LINENO: result: yes" >&5
29221 echo "${ECHO_T}yes" >&6; have_pic_shared=yes
29222 else
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226 echo "$as_me:$LINENO: result: no" >&5
29227 echo "${ECHO_T}no" >&6; have_pic_shared=no
29228 fi
29229 rm -f conftest.err conftest.$ac_objext \
29230 conftest$ac_exeext conftest.$ac_ext
29231 if test x"$have_pic_shared" != x"yes"; then
29232 pluginlibs=
29233 enable_plugin=no
29234 fi
29235
29236 # If plugin support had been requested but not available, fail.
29237 if test x"$enable_plugin" = x"no" ; then
29238 if test x"$default_plugin" != x"yes"; then
29239 { { echo "$as_me:$LINENO: error:
29240 Building GCC with plugin support requires a host that supports
29241 -fPIC, -shared, -ldl and -rdynamic." >&5
29242 echo "$as_me: error:
29243 Building GCC with plugin support requires a host that supports
29244 -fPIC, -shared, -ldl and -rdynamic." >&2;}
29245 { (exit 1); exit 1; }; }
29246 fi
29247 fi
29248
29249 LDFLAGS="$saved_LDFLAGS"
29250 LIBS="$saved_LIBS"
29251 fi
29252
29253
29254
29255 if test x"$enable_plugin" = x"yes"; then
29256
29257 cat >>confdefs.h <<\_ACEOF
29258 #define ENABLE_PLUGIN 1
29259 _ACEOF
29260
29261 fi
29262
29263 # Configure the subdirectories
29264 # AC_CONFIG_SUBDIRS($subdirs)
29265
29266 # Create the Makefile
29267 # and configure language subdirectories
29268 ac_config_files="$ac_config_files $all_outputs"
29269
29270
29271 ac_config_commands="$ac_config_commands default"
29272
29273 cat >confcache <<\_ACEOF
29274 # This file is a shell script that caches the results of configure
29275 # tests run on this system so they can be shared between configure
29276 # scripts and configure runs, see configure's option --config-cache.
29277 # It is not useful on other systems. If it contains results you don't
29278 # want to keep, you may remove or edit it.
29279 #
29280 # config.status only pays attention to the cache file if you give it
29281 # the --recheck option to rerun configure.
29282 #
29283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29285 # following values.
29286
29287 _ACEOF
29288
29289 # The following way of writing the cache mishandles newlines in values,
29290 # but we know of no workaround that is simple, portable, and efficient.
29291 # So, don't put newlines in cache variables' values.
29292 # Ultrix sh set writes to stderr and can't be redirected directly,
29293 # and sets the high bit in the cache file unless we assign to the vars.
29294 {
29295 (set) 2>&1 |
29296 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29297 *ac_space=\ *)
29298 # `set' does not quote correctly, so add quotes (double-quote
29299 # substitution turns \\\\ into \\, and sed turns \\ into \).
29300 sed -n \
29301 "s/'/'\\\\''/g;
29302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29303 ;;
29304 *)
29305 # `set' quotes correctly as required by POSIX, so do not add quotes.
29306 sed -n \
29307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29308 ;;
29309 esac;
29310 } |
29311 sed '
29312 t clear
29313 : clear
29314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29315 t end
29316 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29317 : end' >>confcache
29318 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29319 if test -w $cache_file; then
29320 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29321 cat confcache >$cache_file
29322 else
29323 echo "not updating unwritable cache $cache_file"
29324 fi
29325 fi
29326 rm -f confcache
29327
29328 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29329 # Let make expand exec_prefix.
29330 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29331
29332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29334 # trailing colons and then remove the whole line if VPATH becomes empty
29335 # (actually we leave an empty line to preserve line numbers).
29336 if test "x$srcdir" = x.; then
29337 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29338 s/:*\$(srcdir):*/:/;
29339 s/:*\${srcdir}:*/:/;
29340 s/:*@srcdir@:*/:/;
29341 s/^\([^=]*=[ ]*\):*/\1/;
29342 s/:*$//;
29343 s/^[^=]*=[ ]*$//;
29344 }'
29345 fi
29346
29347 DEFS=-DHAVE_CONFIG_H
29348
29349 ac_libobjs=
29350 ac_ltlibobjs=
29351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29352 # 1. Remove the extension, and $U if already installed.
29353 ac_i=`echo "$ac_i" |
29354 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29355 # 2. Add them.
29356 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29357 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29358 done
29359 LIBOBJS=$ac_libobjs
29360
29361 LTLIBOBJS=$ac_ltlibobjs
29362
29363
29364
29365 : ${CONFIG_STATUS=./config.status}
29366 ac_clean_files_save=$ac_clean_files
29367 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29368 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29369 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29370 cat >$CONFIG_STATUS <<_ACEOF
29371 #! $SHELL
29372 # Generated by $as_me.
29373 # Run this file to recreate the current configuration.
29374 # Compiler output produced by configure, useful for debugging
29375 # configure, is in config.log if it exists.
29376
29377 debug=false
29378 ac_cs_recheck=false
29379 ac_cs_silent=false
29380 SHELL=\${CONFIG_SHELL-$SHELL}
29381 _ACEOF
29382
29383 cat >>$CONFIG_STATUS <<\_ACEOF
29384 ## --------------------- ##
29385 ## M4sh Initialization. ##
29386 ## --------------------- ##
29387
29388 # Be Bourne compatible
29389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29390 emulate sh
29391 NULLCMD=:
29392 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29393 # is contrary to our usage. Disable this feature.
29394 alias -g '${1+"$@"}'='"$@"'
29395 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29396 set -o posix
29397 fi
29398 DUALCASE=1; export DUALCASE # for MKS sh
29399
29400 # Support unset when possible.
29401 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29402 as_unset=unset
29403 else
29404 as_unset=false
29405 fi
29406
29407
29408 # Work around bugs in pre-3.0 UWIN ksh.
29409 $as_unset ENV MAIL MAILPATH
29410 PS1='$ '
29411 PS2='> '
29412 PS4='+ '
29413
29414 # NLS nuisances.
29415 for as_var in \
29416 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29417 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29418 LC_TELEPHONE LC_TIME
29419 do
29420 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29421 eval $as_var=C; export $as_var
29422 else
29423 $as_unset $as_var
29424 fi
29425 done
29426
29427 # Required to use basename.
29428 if expr a : '\(a\)' >/dev/null 2>&1; then
29429 as_expr=expr
29430 else
29431 as_expr=false
29432 fi
29433
29434 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29435 as_basename=basename
29436 else
29437 as_basename=false
29438 fi
29439
29440
29441 # Name of the executable.
29442 as_me=`$as_basename "$0" ||
29443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29444 X"$0" : 'X\(//\)$' \| \
29445 X"$0" : 'X\(/\)$' \| \
29446 . : '\(.\)' 2>/dev/null ||
29447 echo X/"$0" |
29448 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29449 /^X\/\(\/\/\)$/{ s//\1/; q; }
29450 /^X\/\(\/\).*/{ s//\1/; q; }
29451 s/.*/./; q'`
29452
29453
29454 # PATH needs CR, and LINENO needs CR and PATH.
29455 # Avoid depending upon Character Ranges.
29456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29459 as_cr_digits='0123456789'
29460 as_cr_alnum=$as_cr_Letters$as_cr_digits
29461
29462 # The user is always right.
29463 if test "${PATH_SEPARATOR+set}" != set; then
29464 echo "#! /bin/sh" >conf$$.sh
29465 echo "exit 0" >>conf$$.sh
29466 chmod +x conf$$.sh
29467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29468 PATH_SEPARATOR=';'
29469 else
29470 PATH_SEPARATOR=:
29471 fi
29472 rm -f conf$$.sh
29473 fi
29474
29475
29476 as_lineno_1=$LINENO
29477 as_lineno_2=$LINENO
29478 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29479 test "x$as_lineno_1" != "x$as_lineno_2" &&
29480 test "x$as_lineno_3" = "x$as_lineno_2" || {
29481 # Find who we are. Look in the path if we contain no path at all
29482 # relative or not.
29483 case $0 in
29484 *[\\/]* ) as_myself=$0 ;;
29485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29486 for as_dir in $PATH
29487 do
29488 IFS=$as_save_IFS
29489 test -z "$as_dir" && as_dir=.
29490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29491 done
29492
29493 ;;
29494 esac
29495 # We did not find ourselves, most probably we were run as `sh COMMAND'
29496 # in which case we are not to be found in the path.
29497 if test "x$as_myself" = x; then
29498 as_myself=$0
29499 fi
29500 if test ! -f "$as_myself"; then
29501 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29502 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29503 { (exit 1); exit 1; }; }
29504 fi
29505 case $CONFIG_SHELL in
29506 '')
29507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29508 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29509 do
29510 IFS=$as_save_IFS
29511 test -z "$as_dir" && as_dir=.
29512 for as_base in sh bash ksh sh5; do
29513 case $as_dir in
29514 /*)
29515 if ("$as_dir/$as_base" -c '
29516 as_lineno_1=$LINENO
29517 as_lineno_2=$LINENO
29518 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29519 test "x$as_lineno_1" != "x$as_lineno_2" &&
29520 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29521 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29522 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29523 CONFIG_SHELL=$as_dir/$as_base
29524 export CONFIG_SHELL
29525 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29526 fi;;
29527 esac
29528 done
29529 done
29530 ;;
29531 esac
29532
29533 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29534 # uniformly replaced by the line number. The first 'sed' inserts a
29535 # line-number line before each line; the second 'sed' does the real
29536 # work. The second script uses 'N' to pair each line-number line
29537 # with the numbered line, and appends trailing '-' during
29538 # substitution so that $LINENO is not a special case at line end.
29539 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29540 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29541 sed '=' <$as_myself |
29542 sed '
29543 N
29544 s,$,-,
29545 : loop
29546 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29547 t loop
29548 s,-$,,
29549 s,^['$as_cr_digits']*\n,,
29550 ' >$as_me.lineno &&
29551 chmod +x $as_me.lineno ||
29552 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29553 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29554 { (exit 1); exit 1; }; }
29555
29556 # Don't try to exec as it changes $[0], causing all sort of problems
29557 # (the dirname of $[0] is not the place where we might find the
29558 # original and so on. Autoconf is especially sensible to this).
29559 . ./$as_me.lineno
29560 # Exit status is that of the last command.
29561 exit
29562 }
29563
29564
29565 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29566 *c*,-n*) ECHO_N= ECHO_C='
29567 ' ECHO_T=' ' ;;
29568 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29569 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29570 esac
29571
29572 if expr a : '\(a\)' >/dev/null 2>&1; then
29573 as_expr=expr
29574 else
29575 as_expr=false
29576 fi
29577
29578 rm -f conf$$ conf$$.exe conf$$.file
29579 echo >conf$$.file
29580 if ln -s conf$$.file conf$$ 2>/dev/null; then
29581 # We could just check for DJGPP; but this test a) works b) is more generic
29582 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29583 if test -f conf$$.exe; then
29584 # Don't use ln at all; we don't have any links
29585 as_ln_s='cp -p'
29586 else
29587 as_ln_s='ln -s'
29588 fi
29589 elif ln conf$$.file conf$$ 2>/dev/null; then
29590 as_ln_s=ln
29591 else
29592 as_ln_s='cp -p'
29593 fi
29594 rm -f conf$$ conf$$.exe conf$$.file
29595
29596 if mkdir -p . 2>/dev/null; then
29597 as_mkdir_p=:
29598 else
29599 test -d ./-p && rmdir ./-p
29600 as_mkdir_p=false
29601 fi
29602
29603 as_executable_p="test -f"
29604
29605 # Sed expression to map a string onto a valid CPP name.
29606 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29607
29608 # Sed expression to map a string onto a valid variable name.
29609 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29610
29611
29612 # IFS
29613 # We need space, tab and new line, in precisely that order.
29614 as_nl='
29615 '
29616 IFS=" $as_nl"
29617
29618 # CDPATH.
29619 $as_unset CDPATH
29620
29621 exec 6>&1
29622
29623 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29624 # report actual input values of CONFIG_FILES etc. instead of their
29625 # values after options handling. Logging --version etc. is OK.
29626 exec 5>>config.log
29627 {
29628 echo
29629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29630 ## Running $as_me. ##
29631 _ASBOX
29632 } >&5
29633 cat >&5 <<_CSEOF
29634
29635 This file was extended by $as_me, which was
29636 generated by GNU Autoconf 2.59. Invocation command line was
29637
29638 CONFIG_FILES = $CONFIG_FILES
29639 CONFIG_HEADERS = $CONFIG_HEADERS
29640 CONFIG_LINKS = $CONFIG_LINKS
29641 CONFIG_COMMANDS = $CONFIG_COMMANDS
29642 $ $0 $@
29643
29644 _CSEOF
29645 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29646 echo >&5
29647 _ACEOF
29648
29649 # Files that config.status was made for.
29650 if test -n "$ac_config_files"; then
29651 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29652 fi
29653
29654 if test -n "$ac_config_headers"; then
29655 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29656 fi
29657
29658 if test -n "$ac_config_links"; then
29659 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29660 fi
29661
29662 if test -n "$ac_config_commands"; then
29663 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29664 fi
29665
29666 cat >>$CONFIG_STATUS <<\_ACEOF
29667
29668 ac_cs_usage="\
29669 \`$as_me' instantiates files from templates according to the
29670 current configuration.
29671
29672 Usage: $0 [OPTIONS] [FILE]...
29673
29674 -h, --help print this help, then exit
29675 -V, --version print version number, then exit
29676 -q, --quiet do not print progress messages
29677 -d, --debug don't remove temporary files
29678 --recheck update $as_me by reconfiguring in the same conditions
29679 --file=FILE[:TEMPLATE]
29680 instantiate the configuration file FILE
29681 --header=FILE[:TEMPLATE]
29682 instantiate the configuration header FILE
29683
29684 Configuration files:
29685 $config_files
29686
29687 Configuration headers:
29688 $config_headers
29689
29690 Configuration commands:
29691 $config_commands
29692
29693 Report bugs to <bug-autoconf@gnu.org>."
29694 _ACEOF
29695
29696 cat >>$CONFIG_STATUS <<_ACEOF
29697 ac_cs_version="\\
29698 config.status
29699 configured by $0, generated by GNU Autoconf 2.59,
29700 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29701
29702 Copyright (C) 2003 Free Software Foundation, Inc.
29703 This config.status script is free software; the Free Software Foundation
29704 gives unlimited permission to copy, distribute and modify it."
29705 srcdir=$srcdir
29706 _ACEOF
29707
29708 cat >>$CONFIG_STATUS <<\_ACEOF
29709 # If no file are specified by the user, then we need to provide default
29710 # value. By we need to know if files were specified by the user.
29711 ac_need_defaults=:
29712 while test $# != 0
29713 do
29714 case $1 in
29715 --*=*)
29716 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29717 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29718 ac_shift=:
29719 ;;
29720 -*)
29721 ac_option=$1
29722 ac_optarg=$2
29723 ac_shift=shift
29724 ;;
29725 *) # This is not an option, so the user has probably given explicit
29726 # arguments.
29727 ac_option=$1
29728 ac_need_defaults=false;;
29729 esac
29730
29731 case $ac_option in
29732 # Handling of the options.
29733 _ACEOF
29734 cat >>$CONFIG_STATUS <<\_ACEOF
29735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29736 ac_cs_recheck=: ;;
29737 --version | --vers* | -V )
29738 echo "$ac_cs_version"; exit 0 ;;
29739 --he | --h)
29740 # Conflict between --help and --header
29741 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29742 Try \`$0 --help' for more information." >&5
29743 echo "$as_me: error: ambiguous option: $1
29744 Try \`$0 --help' for more information." >&2;}
29745 { (exit 1); exit 1; }; };;
29746 --help | --hel | -h )
29747 echo "$ac_cs_usage"; exit 0 ;;
29748 --debug | --d* | -d )
29749 debug=: ;;
29750 --file | --fil | --fi | --f )
29751 $ac_shift
29752 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29753 ac_need_defaults=false;;
29754 --header | --heade | --head | --hea )
29755 $ac_shift
29756 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29757 ac_need_defaults=false;;
29758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29759 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29760 ac_cs_silent=: ;;
29761
29762 # This is an error.
29763 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29764 Try \`$0 --help' for more information." >&5
29765 echo "$as_me: error: unrecognized option: $1
29766 Try \`$0 --help' for more information." >&2;}
29767 { (exit 1); exit 1; }; } ;;
29768
29769 *) ac_config_targets="$ac_config_targets $1" ;;
29770
29771 esac
29772 shift
29773 done
29774
29775 ac_configure_extra_args=
29776
29777 if $ac_cs_silent; then
29778 exec 6>/dev/null
29779 ac_configure_extra_args="$ac_configure_extra_args --silent"
29780 fi
29781
29782 _ACEOF
29783 cat >>$CONFIG_STATUS <<_ACEOF
29784 if \$ac_cs_recheck; then
29785 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29786 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29787 fi
29788
29789 _ACEOF
29790
29791 cat >>$CONFIG_STATUS <<_ACEOF
29792 #
29793 # INIT-COMMANDS section.
29794 #
29795
29796 subdirs='$subdirs'
29797
29798 _ACEOF
29799
29800
29801
29802 cat >>$CONFIG_STATUS <<\_ACEOF
29803 for ac_config_target in $ac_config_targets
29804 do
29805 case "$ac_config_target" in
29806 # Handling of arguments.
29807 "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29808 "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29809 "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29810 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29811 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29812 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29815 { (exit 1); exit 1; }; };;
29816 esac
29817 done
29818
29819 # If the user did not use the arguments to specify the items to instantiate,
29820 # then the envvar interface is used. Set only those that are not.
29821 # We use the long form for the default assignment because of an extremely
29822 # bizarre bug on SunOS 4.1.3.
29823 if $ac_need_defaults; then
29824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29827 fi
29828
29829 # Have a temporary directory for convenience. Make it in the build tree
29830 # simply because there is no reason to put it here, and in addition,
29831 # creating and moving files from /tmp can sometimes cause problems.
29832 # Create a temporary directory, and hook for its removal unless debugging.
29833 $debug ||
29834 {
29835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29836 trap '{ (exit 1); exit 1; }' 1 2 13 15
29837 }
29838
29839 # Create a (secure) tmp directory for tmp files.
29840
29841 {
29842 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29843 test -n "$tmp" && test -d "$tmp"
29844 } ||
29845 {
29846 tmp=./confstat$$-$RANDOM
29847 (umask 077 && mkdir $tmp)
29848 } ||
29849 {
29850 echo "$me: cannot create a temporary directory in ." >&2
29851 { (exit 1); exit 1; }
29852 }
29853
29854 _ACEOF
29855
29856 cat >>$CONFIG_STATUS <<_ACEOF
29857
29858 #
29859 # CONFIG_FILES section.
29860 #
29861
29862 # No need to generate the scripts if there are no CONFIG_FILES.
29863 # This happens for instance when ./config.status config.h
29864 if test -n "\$CONFIG_FILES"; then
29865 # Protect against being on the right side of a sed subst in config.status.
29866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29868 s,@SHELL@,$SHELL,;t t
29869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29875 s,@exec_prefix@,$exec_prefix,;t t
29876 s,@prefix@,$prefix,;t t
29877 s,@program_transform_name@,$program_transform_name,;t t
29878 s,@bindir@,$bindir,;t t
29879 s,@sbindir@,$sbindir,;t t
29880 s,@libexecdir@,$libexecdir,;t t
29881 s,@datadir@,$datadir,;t t
29882 s,@sysconfdir@,$sysconfdir,;t t
29883 s,@sharedstatedir@,$sharedstatedir,;t t
29884 s,@localstatedir@,$localstatedir,;t t
29885 s,@libdir@,$libdir,;t t
29886 s,@includedir@,$includedir,;t t
29887 s,@oldincludedir@,$oldincludedir,;t t
29888 s,@infodir@,$infodir,;t t
29889 s,@mandir@,$mandir,;t t
29890 s,@build_alias@,$build_alias,;t t
29891 s,@host_alias@,$host_alias,;t t
29892 s,@target_alias@,$target_alias,;t t
29893 s,@DEFS@,$DEFS,;t t
29894 s,@ECHO_C@,$ECHO_C,;t t
29895 s,@ECHO_N@,$ECHO_N,;t t
29896 s,@ECHO_T@,$ECHO_T,;t t
29897 s,@LIBS@,$LIBS,;t t
29898 s,@build@,$build,;t t
29899 s,@build_cpu@,$build_cpu,;t t
29900 s,@build_vendor@,$build_vendor,;t t
29901 s,@build_os@,$build_os,;t t
29902 s,@host@,$host,;t t
29903 s,@host_cpu@,$host_cpu,;t t
29904 s,@host_vendor@,$host_vendor,;t t
29905 s,@host_os@,$host_os,;t t
29906 s,@target@,$target,;t t
29907 s,@target_cpu@,$target_cpu,;t t
29908 s,@target_vendor@,$target_vendor,;t t
29909 s,@target_os@,$target_os,;t t
29910 s,@target_noncanonical@,$target_noncanonical,;t t
29911 s,@build_libsubdir@,$build_libsubdir,;t t
29912 s,@build_subdir@,$build_subdir,;t t
29913 s,@host_subdir@,$host_subdir,;t t
29914 s,@target_subdir@,$target_subdir,;t t
29915 s,@GENINSRC@,$GENINSRC,;t t
29916 s,@CC@,$CC,;t t
29917 s,@CFLAGS@,$CFLAGS,;t t
29918 s,@LDFLAGS@,$LDFLAGS,;t t
29919 s,@CPPFLAGS@,$CPPFLAGS,;t t
29920 s,@ac_ct_CC@,$ac_ct_CC,;t t
29921 s,@EXEEXT@,$EXEEXT,;t t
29922 s,@OBJEXT@,$OBJEXT,;t t
29923 s,@CXX@,$CXX,;t t
29924 s,@CXXFLAGS@,$CXXFLAGS,;t t
29925 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29926 s,@GNATBIND@,$GNATBIND,;t t
29927 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
29928 s,@GNATMAKE@,$GNATMAKE,;t t
29929 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
29930 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
29931 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
29932 s,@CPP@,$CPP,;t t
29933 s,@EGREP@,$EGREP,;t t
29934 s,@loose_warn@,$loose_warn,;t t
29935 s,@c_loose_warn@,$c_loose_warn,;t t
29936 s,@strict_warn@,$strict_warn,;t t
29937 s,@c_strict_warn@,$c_strict_warn,;t t
29938 s,@warn_cflags@,$warn_cflags,;t t
29939 s,@warn_cxxflags@,$warn_cxxflags,;t t
29940 s,@nocommon_flag@,$nocommon_flag,;t t
29941 s,@TREEBROWSER@,$TREEBROWSER,;t t
29942 s,@valgrind_path@,$valgrind_path,;t t
29943 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
29944 s,@valgrind_command@,$valgrind_command,;t t
29945 s,@coverage_flags@,$coverage_flags,;t t
29946 s,@ENABLE_BUILD_WITH_CXX@,$ENABLE_BUILD_WITH_CXX,;t t
29947 s,@enable_multilib@,$enable_multilib,;t t
29948 s,@enable_decimal_float@,$enable_decimal_float,;t t
29949 s,@enable_fixed_point@,$enable_fixed_point,;t t
29950 s,@enable_shared@,$enable_shared,;t t
29951 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29952 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29953 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
29954 s,@onestep@,$onestep,;t t
29955 s,@PKGVERSION@,$PKGVERSION,;t t
29956 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
29957 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
29958 s,@datarootdir@,$datarootdir,;t t
29959 s,@docdir@,$docdir,;t t
29960 s,@htmldir@,$htmldir,;t t
29961 s,@SET_MAKE@,$SET_MAKE,;t t
29962 s,@AWK@,$AWK,;t t
29963 s,@LN_S@,$LN_S,;t t
29964 s,@LN@,$LN,;t t
29965 s,@RANLIB@,$RANLIB,;t t
29966 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29967 s,@ranlib_flags@,$ranlib_flags,;t t
29968 s,@INSTALL@,$INSTALL,;t t
29969 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29970 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29971 s,@make_compare_target@,$make_compare_target,;t t
29972 s,@have_mktemp_command@,$have_mktemp_command,;t t
29973 s,@MAKEINFO@,$MAKEINFO,;t t
29974 s,@BUILD_INFO@,$BUILD_INFO,;t t
29975 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
29976 s,@FLEX@,$FLEX,;t t
29977 s,@BISON@,$BISON,;t t
29978 s,@NM@,$NM,;t t
29979 s,@AR@,$AR,;t t
29980 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
29981 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
29982 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
29983 s,@LIBICONV@,$LIBICONV,;t t
29984 s,@LTLIBICONV@,$LTLIBICONV,;t t
29985 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
29986 s,@manext@,$manext,;t t
29987 s,@objext@,$objext,;t t
29988 s,@gthread_flags@,$gthread_flags,;t t
29989 s,@extra_modes_file@,$extra_modes_file,;t t
29990 s,@extra_opt_files@,$extra_opt_files,;t t
29991 s,@USE_NLS@,$USE_NLS,;t t
29992 s,@LIBINTL@,$LIBINTL,;t t
29993 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29994 s,@INCINTL@,$INCINTL,;t t
29995 s,@XGETTEXT@,$XGETTEXT,;t t
29996 s,@GMSGFMT@,$GMSGFMT,;t t
29997 s,@POSUB@,$POSUB,;t t
29998 s,@CATALOGS@,$CATALOGS,;t t
29999 s,@DATADIRNAME@,$DATADIRNAME,;t t
30000 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30001 s,@GENCAT@,$GENCAT,;t t
30002 s,@CATOBJEXT@,$CATOBJEXT,;t t
30003 s,@CROSS@,$CROSS,;t t
30004 s,@ALL@,$ALL,;t t
30005 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
30006 s,@inhibit_libc@,$inhibit_libc,;t t
30007 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
30008 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
30009 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
30010 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
30011 s,@collect2@,$collect2,;t t
30012 s,@LIBTOOL@,$LIBTOOL,;t t
30013 s,@SED@,$SED,;t t
30014 s,@FGREP@,$FGREP,;t t
30015 s,@GREP@,$GREP,;t t
30016 s,@LD@,$LD,;t t
30017 s,@DUMPBIN@,$DUMPBIN,;t t
30018 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
30019 s,@OBJDUMP@,$OBJDUMP,;t t
30020 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
30021 s,@ac_ct_AR@,$ac_ct_AR,;t t
30022 s,@STRIP@,$STRIP,;t t
30023 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30024 s,@lt_ECHO@,$lt_ECHO,;t t
30025 s,@DSYMUTIL@,$DSYMUTIL,;t t
30026 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
30027 s,@NMEDIT@,$NMEDIT,;t t
30028 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
30029 s,@LIPO@,$LIPO,;t t
30030 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
30031 s,@OTOOL@,$OTOOL,;t t
30032 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
30033 s,@OTOOL64@,$OTOOL64,;t t
30034 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
30035 s,@CXXCPP@,$CXXCPP,;t t
30036 s,@objdir@,$objdir,;t t
30037 s,@enable_fast_install@,$enable_fast_install,;t t
30038 s,@gcc_cv_as@,$gcc_cv_as,;t t
30039 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
30040 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
30041 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
30042 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
30043 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
30044 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
30045 s,@gcc_cv_readelf@,$gcc_cv_readelf,;t t
30046 s,@libgcc_visibility@,$libgcc_visibility,;t t
30047 s,@GGC@,$GGC,;t t
30048 s,@HOST_LIBS@,$HOST_LIBS,;t t
30049 s,@zlibdir@,$zlibdir,;t t
30050 s,@zlibinc@,$zlibinc,;t t
30051 s,@MAINT@,$MAINT,;t t
30052 s,@gcc_tooldir@,$gcc_tooldir,;t t
30053 s,@dollar@,$dollar,;t t
30054 s,@slibdir@,$slibdir,;t t
30055 s,@subdirs@,$subdirs,;t t
30056 s,@srcdir@,$srcdir,;t t
30057 s,@all_compilers@,$all_compilers,;t t
30058 s,@all_gtfiles@,$all_gtfiles,;t t
30059 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
30060 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
30061 s,@all_languages@,$all_languages,;t t
30062 s,@all_selected_languages@,$all_selected_languages,;t t
30063 s,@build_exeext@,$build_exeext,;t t
30064 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
30065 s,@build_xm_file_list@,$build_xm_file_list,;t t
30066 s,@build_xm_include_list@,$build_xm_include_list,;t t
30067 s,@build_xm_defines@,$build_xm_defines,;t t
30068 s,@build_file_translate@,$build_file_translate,;t t
30069 s,@check_languages@,$check_languages,;t t
30070 s,@cpp_install_dir@,$cpp_install_dir,;t t
30071 s,@xmake_file@,$xmake_file,;t t
30072 s,@tmake_file@,$tmake_file,;t t
30073 s,@TM_ENDIAN_CONFIG@,$TM_ENDIAN_CONFIG,;t t
30074 s,@TM_MULTILIB_CONFIG@,$TM_MULTILIB_CONFIG,;t t
30075 s,@TM_MULTILIB_EXCEPTIONS_CONFIG@,$TM_MULTILIB_EXCEPTIONS_CONFIG,;t t
30076 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
30077 s,@extra_headers_list@,$extra_headers_list,;t t
30078 s,@extra_objs@,$extra_objs,;t t
30079 s,@extra_parts@,$extra_parts,;t t
30080 s,@extra_passes@,$extra_passes,;t t
30081 s,@extra_programs@,$extra_programs,;t t
30082 s,@float_h_file@,$float_h_file,;t t
30083 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
30084 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
30085 s,@host_exeext@,$host_exeext,;t t
30086 s,@host_xm_file_list@,$host_xm_file_list,;t t
30087 s,@host_xm_include_list@,$host_xm_include_list,;t t
30088 s,@host_xm_defines@,$host_xm_defines,;t t
30089 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
30090 s,@install@,$install,;t t
30091 s,@lang_opt_files@,$lang_opt_files,;t t
30092 s,@lang_specs_files@,$lang_specs_files,;t t
30093 s,@lang_tree_files@,$lang_tree_files,;t t
30094 s,@local_prefix@,$local_prefix,;t t
30095 s,@md_file@,$md_file,;t t
30096 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
30097 s,@out_file@,$out_file,;t t
30098 s,@out_object_file@,$out_object_file,;t t
30099 s,@thread_file@,$thread_file,;t t
30100 s,@tm_file_list@,$tm_file_list,;t t
30101 s,@tm_include_list@,$tm_include_list,;t t
30102 s,@tm_defines@,$tm_defines,;t t
30103 s,@tm_p_file_list@,$tm_p_file_list,;t t
30104 s,@tm_p_include_list@,$tm_p_include_list,;t t
30105 s,@xm_file_list@,$xm_file_list,;t t
30106 s,@xm_include_list@,$xm_include_list,;t t
30107 s,@xm_defines@,$xm_defines,;t t
30108 s,@use_gcc_stdint@,$use_gcc_stdint,;t t
30109 s,@c_target_objs@,$c_target_objs,;t t
30110 s,@cxx_target_objs@,$cxx_target_objs,;t t
30111 s,@fortran_target_objs@,$fortran_target_objs,;t t
30112 s,@target_cpu_default@,$target_cpu_default,;t t
30113 s,@GMPLIBS@,$GMPLIBS,;t t
30114 s,@GMPINC@,$GMPINC,;t t
30115 s,@PPLLIBS@,$PPLLIBS,;t t
30116 s,@PPLINC@,$PPLINC,;t t
30117 s,@CLOOGLIBS@,$CLOOGLIBS,;t t
30118 s,@CLOOGINC@,$CLOOGINC,;t t
30119 s,@pluginlibs@,$pluginlibs,;t t
30120 s,@enable_plugin@,$enable_plugin,;t t
30121 s,@LIBOBJS@,$LIBOBJS,;t t
30122 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30123 /@language_hooks@/r $language_hooks
30124 s,@language_hooks@,,;t t
30125 CEOF
30126
30127 _ACEOF
30128
30129 cat >>$CONFIG_STATUS <<\_ACEOF
30130 # Split the substitutions into bite-sized pieces for seds with
30131 # small command number limits, like on Digital OSF/1 and HP-UX.
30132 ac_max_sed_lines=48
30133 ac_sed_frag=1 # Number of current file.
30134 ac_beg=1 # First line for current file.
30135 ac_end=$ac_max_sed_lines # Line after last line for current file.
30136 ac_more_lines=:
30137 ac_sed_cmds=
30138 while $ac_more_lines; do
30139 if test $ac_beg -gt 1; then
30140 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30141 else
30142 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30143 fi
30144 if test ! -s $tmp/subs.frag; then
30145 ac_more_lines=false
30146 else
30147 # The purpose of the label and of the branching condition is to
30148 # speed up the sed processing (if there are no `@' at all, there
30149 # is no need to browse any of the substitutions).
30150 # These are the two extra sed commands mentioned above.
30151 (echo ':t
30152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30153 if test -z "$ac_sed_cmds"; then
30154 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30155 else
30156 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30157 fi
30158 ac_sed_frag=`expr $ac_sed_frag + 1`
30159 ac_beg=$ac_end
30160 ac_end=`expr $ac_end + $ac_max_sed_lines`
30161 fi
30162 done
30163 if test -z "$ac_sed_cmds"; then
30164 ac_sed_cmds=cat
30165 fi
30166 fi # test -n "$CONFIG_FILES"
30167
30168 _ACEOF
30169 cat >>$CONFIG_STATUS <<\_ACEOF
30170 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30172 case $ac_file in
30173 - | *:- | *:-:* ) # input from stdin
30174 cat >$tmp/stdin
30175 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30177 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30179 * ) ac_file_in=$ac_file.in ;;
30180 esac
30181
30182 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30183 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30185 X"$ac_file" : 'X\(//\)[^/]' \| \
30186 X"$ac_file" : 'X\(//\)$' \| \
30187 X"$ac_file" : 'X\(/\)' \| \
30188 . : '\(.\)' 2>/dev/null ||
30189 echo X"$ac_file" |
30190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30192 /^X\(\/\/\)$/{ s//\1/; q; }
30193 /^X\(\/\).*/{ s//\1/; q; }
30194 s/.*/./; q'`
30195 { if $as_mkdir_p; then
30196 mkdir -p "$ac_dir"
30197 else
30198 as_dir="$ac_dir"
30199 as_dirs=
30200 while test ! -d "$as_dir"; do
30201 as_dirs="$as_dir $as_dirs"
30202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30204 X"$as_dir" : 'X\(//\)[^/]' \| \
30205 X"$as_dir" : 'X\(//\)$' \| \
30206 X"$as_dir" : 'X\(/\)' \| \
30207 . : '\(.\)' 2>/dev/null ||
30208 echo X"$as_dir" |
30209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30211 /^X\(\/\/\)$/{ s//\1/; q; }
30212 /^X\(\/\).*/{ s//\1/; q; }
30213 s/.*/./; q'`
30214 done
30215 test ! -n "$as_dirs" || mkdir $as_dirs
30216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30217 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30218 { (exit 1); exit 1; }; }; }
30219
30220 ac_builddir=.
30221
30222 if test "$ac_dir" != .; then
30223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30224 # A "../" for each directory in $ac_dir_suffix.
30225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30226 else
30227 ac_dir_suffix= ac_top_builddir=
30228 fi
30229
30230 case $srcdir in
30231 .) # No --srcdir option. We are building in place.
30232 ac_srcdir=.
30233 if test -z "$ac_top_builddir"; then
30234 ac_top_srcdir=.
30235 else
30236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30237 fi ;;
30238 [\\/]* | ?:[\\/]* ) # Absolute path.
30239 ac_srcdir=$srcdir$ac_dir_suffix;
30240 ac_top_srcdir=$srcdir ;;
30241 *) # Relative path.
30242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30244 esac
30245
30246 # Do not use `cd foo && pwd` to compute absolute paths, because
30247 # the directories may not exist.
30248 case `pwd` in
30249 .) ac_abs_builddir="$ac_dir";;
30250 *)
30251 case "$ac_dir" in
30252 .) ac_abs_builddir=`pwd`;;
30253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30255 esac;;
30256 esac
30257 case $ac_abs_builddir in
30258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30259 *)
30260 case ${ac_top_builddir}. in
30261 .) ac_abs_top_builddir=$ac_abs_builddir;;
30262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30264 esac;;
30265 esac
30266 case $ac_abs_builddir in
30267 .) ac_abs_srcdir=$ac_srcdir;;
30268 *)
30269 case $ac_srcdir in
30270 .) ac_abs_srcdir=$ac_abs_builddir;;
30271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30273 esac;;
30274 esac
30275 case $ac_abs_builddir in
30276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30277 *)
30278 case $ac_top_srcdir in
30279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30282 esac;;
30283 esac
30284
30285
30286
30287 if test x"$ac_file" != x-; then
30288 { echo "$as_me:$LINENO: creating $ac_file" >&5
30289 echo "$as_me: creating $ac_file" >&6;}
30290 rm -f "$ac_file"
30291 fi
30292 # Let's still pretend it is `configure' which instantiates (i.e., don't
30293 # use $as_me), people would be surprised to read:
30294 # /* config.h. Generated by config.status. */
30295 if test x"$ac_file" = x-; then
30296 configure_input=
30297 else
30298 configure_input="$ac_file. "
30299 fi
30300 configure_input=$configure_input"Generated from `echo $ac_file_in |
30301 sed 's,.*/,,'` by configure."
30302
30303 # First look for the input files in the build tree, otherwise in the
30304 # src tree.
30305 ac_file_inputs=`IFS=:
30306 for f in $ac_file_in; do
30307 case $f in
30308 -) echo $tmp/stdin ;;
30309 [\\/$]*)
30310 # Absolute (can't be DOS-style, as IFS=:)
30311 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30312 echo "$as_me: error: cannot find input file: $f" >&2;}
30313 { (exit 1); exit 1; }; }
30314 echo "$f";;
30315 *) # Relative
30316 if test -f "$f"; then
30317 # Build tree
30318 echo "$f"
30319 elif test -f "$srcdir/$f"; then
30320 # Source tree
30321 echo "$srcdir/$f"
30322 else
30323 # /dev/null tree
30324 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30325 echo "$as_me: error: cannot find input file: $f" >&2;}
30326 { (exit 1); exit 1; }; }
30327 fi;;
30328 esac
30329 done` || { (exit 1); exit 1; }
30330 _ACEOF
30331 cat >>$CONFIG_STATUS <<_ACEOF
30332 sed "$ac_vpsub
30333 $extrasub
30334 _ACEOF
30335 cat >>$CONFIG_STATUS <<\_ACEOF
30336 :t
30337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30338 s,@configure_input@,$configure_input,;t t
30339 s,@srcdir@,$ac_srcdir,;t t
30340 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30341 s,@top_srcdir@,$ac_top_srcdir,;t t
30342 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30343 s,@builddir@,$ac_builddir,;t t
30344 s,@abs_builddir@,$ac_abs_builddir,;t t
30345 s,@top_builddir@,$ac_top_builddir,;t t
30346 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30347 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30348 rm -f $tmp/stdin
30349 if test x"$ac_file" != x-; then
30350 mv $tmp/out $ac_file
30351 else
30352 cat $tmp/out
30353 rm -f $tmp/out
30354 fi
30355
30356 # Run the commands associated with the file.
30357 case $ac_file in
30358 as ) chmod +x as ;;
30359 collect-ld ) chmod +x collect-ld ;;
30360 nm ) chmod +x nm ;;
30361 esac
30362 done
30363 _ACEOF
30364 cat >>$CONFIG_STATUS <<\_ACEOF
30365
30366 #
30367 # CONFIG_HEADER section.
30368 #
30369
30370 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30371 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30372 #
30373 # ac_d sets the value in "#define NAME VALUE" lines.
30374 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30375 ac_dB='[ ].*$,\1#\2'
30376 ac_dC=' '
30377 ac_dD=',;t'
30378 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30379 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30380 ac_uB='$,\1#\2define\3'
30381 ac_uC=' '
30382 ac_uD=',;t'
30383
30384 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30385 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30386 case $ac_file in
30387 - | *:- | *:-:* ) # input from stdin
30388 cat >$tmp/stdin
30389 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30390 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30391 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30392 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30393 * ) ac_file_in=$ac_file.in ;;
30394 esac
30395
30396 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30397 echo "$as_me: creating $ac_file" >&6;}
30398
30399 # First look for the input files in the build tree, otherwise in the
30400 # src tree.
30401 ac_file_inputs=`IFS=:
30402 for f in $ac_file_in; do
30403 case $f in
30404 -) echo $tmp/stdin ;;
30405 [\\/$]*)
30406 # Absolute (can't be DOS-style, as IFS=:)
30407 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30408 echo "$as_me: error: cannot find input file: $f" >&2;}
30409 { (exit 1); exit 1; }; }
30410 # Do quote $f, to prevent DOS paths from being IFS'd.
30411 echo "$f";;
30412 *) # Relative
30413 if test -f "$f"; then
30414 # Build tree
30415 echo "$f"
30416 elif test -f "$srcdir/$f"; then
30417 # Source tree
30418 echo "$srcdir/$f"
30419 else
30420 # /dev/null tree
30421 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30422 echo "$as_me: error: cannot find input file: $f" >&2;}
30423 { (exit 1); exit 1; }; }
30424 fi;;
30425 esac
30426 done` || { (exit 1); exit 1; }
30427 # Remove the trailing spaces.
30428 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30429
30430 _ACEOF
30431
30432 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30433 # `conftest.undefs', that substitutes the proper values into
30434 # config.h.in to produce config.h. The first handles `#define'
30435 # templates, and the second `#undef' templates.
30436 # And first: Protect against being on the right side of a sed subst in
30437 # config.status. Protect against being in an unquoted here document
30438 # in config.status.
30439 rm -f conftest.defines conftest.undefs
30440 # Using a here document instead of a string reduces the quoting nightmare.
30441 # Putting comments in sed scripts is not portable.
30442 #
30443 # `end' is used to avoid that the second main sed command (meant for
30444 # 0-ary CPP macros) applies to n-ary macro definitions.
30445 # See the Autoconf documentation for `clear'.
30446 cat >confdef2sed.sed <<\_ACEOF
30447 s/[\\&,]/\\&/g
30448 s,[\\$`],\\&,g
30449 t clear
30450 : clear
30451 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30452 t end
30453 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30454 : end
30455 _ACEOF
30456 # If some macros were called several times there might be several times
30457 # the same #defines, which is useless. Nevertheless, we may not want to
30458 # sort them, since we want the *last* AC-DEFINE to be honored.
30459 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30460 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30461 rm -f confdef2sed.sed
30462
30463 # This sed command replaces #undef with comments. This is necessary, for
30464 # example, in the case of _POSIX_SOURCE, which is predefined and required
30465 # on some systems where configure will not decide to define it.
30466 cat >>conftest.undefs <<\_ACEOF
30467 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30468 _ACEOF
30469
30470 # Break up conftest.defines because some shells have a limit on the size
30471 # of here documents, and old seds have small limits too (100 cmds).
30472 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30473 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30474 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30475 echo ' :' >>$CONFIG_STATUS
30476 rm -f conftest.tail
30477 while grep . conftest.defines >/dev/null
30478 do
30479 # Write a limited-size here document to $tmp/defines.sed.
30480 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30481 # Speed up: don't consider the non `#define' lines.
30482 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30483 # Work around the forget-to-reset-the-flag bug.
30484 echo 't clr' >>$CONFIG_STATUS
30485 echo ': clr' >>$CONFIG_STATUS
30486 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30487 echo 'CEOF
30488 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30489 rm -f $tmp/in
30490 mv $tmp/out $tmp/in
30491 ' >>$CONFIG_STATUS
30492 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30493 rm -f conftest.defines
30494 mv conftest.tail conftest.defines
30495 done
30496 rm -f conftest.defines
30497 echo ' fi # grep' >>$CONFIG_STATUS
30498 echo >>$CONFIG_STATUS
30499
30500 # Break up conftest.undefs because some shells have a limit on the size
30501 # of here documents, and old seds have small limits too (100 cmds).
30502 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30503 rm -f conftest.tail
30504 while grep . conftest.undefs >/dev/null
30505 do
30506 # Write a limited-size here document to $tmp/undefs.sed.
30507 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30508 # Speed up: don't consider the non `#undef'
30509 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30510 # Work around the forget-to-reset-the-flag bug.
30511 echo 't clr' >>$CONFIG_STATUS
30512 echo ': clr' >>$CONFIG_STATUS
30513 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30514 echo 'CEOF
30515 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30516 rm -f $tmp/in
30517 mv $tmp/out $tmp/in
30518 ' >>$CONFIG_STATUS
30519 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30520 rm -f conftest.undefs
30521 mv conftest.tail conftest.undefs
30522 done
30523 rm -f conftest.undefs
30524
30525 cat >>$CONFIG_STATUS <<\_ACEOF
30526 # Let's still pretend it is `configure' which instantiates (i.e., don't
30527 # use $as_me), people would be surprised to read:
30528 # /* config.h. Generated by config.status. */
30529 if test x"$ac_file" = x-; then
30530 echo "/* Generated by configure. */" >$tmp/config.h
30531 else
30532 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30533 fi
30534 cat $tmp/in >>$tmp/config.h
30535 rm -f $tmp/in
30536 if test x"$ac_file" != x-; then
30537 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30538 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30539 echo "$as_me: $ac_file is unchanged" >&6;}
30540 else
30541 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30543 X"$ac_file" : 'X\(//\)[^/]' \| \
30544 X"$ac_file" : 'X\(//\)$' \| \
30545 X"$ac_file" : 'X\(/\)' \| \
30546 . : '\(.\)' 2>/dev/null ||
30547 echo X"$ac_file" |
30548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30550 /^X\(\/\/\)$/{ s//\1/; q; }
30551 /^X\(\/\).*/{ s//\1/; q; }
30552 s/.*/./; q'`
30553 { if $as_mkdir_p; then
30554 mkdir -p "$ac_dir"
30555 else
30556 as_dir="$ac_dir"
30557 as_dirs=
30558 while test ! -d "$as_dir"; do
30559 as_dirs="$as_dir $as_dirs"
30560 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30562 X"$as_dir" : 'X\(//\)[^/]' \| \
30563 X"$as_dir" : 'X\(//\)$' \| \
30564 X"$as_dir" : 'X\(/\)' \| \
30565 . : '\(.\)' 2>/dev/null ||
30566 echo X"$as_dir" |
30567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30569 /^X\(\/\/\)$/{ s//\1/; q; }
30570 /^X\(\/\).*/{ s//\1/; q; }
30571 s/.*/./; q'`
30572 done
30573 test ! -n "$as_dirs" || mkdir $as_dirs
30574 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30576 { (exit 1); exit 1; }; }; }
30577
30578 rm -f $ac_file
30579 mv $tmp/config.h $ac_file
30580 fi
30581 else
30582 cat $tmp/config.h
30583 rm -f $tmp/config.h
30584 fi
30585 done
30586 _ACEOF
30587 cat >>$CONFIG_STATUS <<\_ACEOF
30588
30589 #
30590 # CONFIG_COMMANDS section.
30591 #
30592 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30593 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30594 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30595 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30596 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597 X"$ac_dest" : 'X\(//\)[^/]' \| \
30598 X"$ac_dest" : 'X\(//\)$' \| \
30599 X"$ac_dest" : 'X\(/\)' \| \
30600 . : '\(.\)' 2>/dev/null ||
30601 echo X"$ac_dest" |
30602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30604 /^X\(\/\/\)$/{ s//\1/; q; }
30605 /^X\(\/\).*/{ s//\1/; q; }
30606 s/.*/./; q'`
30607 { if $as_mkdir_p; then
30608 mkdir -p "$ac_dir"
30609 else
30610 as_dir="$ac_dir"
30611 as_dirs=
30612 while test ! -d "$as_dir"; do
30613 as_dirs="$as_dir $as_dirs"
30614 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30615 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30616 X"$as_dir" : 'X\(//\)[^/]' \| \
30617 X"$as_dir" : 'X\(//\)$' \| \
30618 X"$as_dir" : 'X\(/\)' \| \
30619 . : '\(.\)' 2>/dev/null ||
30620 echo X"$as_dir" |
30621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30623 /^X\(\/\/\)$/{ s//\1/; q; }
30624 /^X\(\/\).*/{ s//\1/; q; }
30625 s/.*/./; q'`
30626 done
30627 test ! -n "$as_dirs" || mkdir $as_dirs
30628 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30629 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30630 { (exit 1); exit 1; }; }; }
30631
30632 ac_builddir=.
30633
30634 if test "$ac_dir" != .; then
30635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30636 # A "../" for each directory in $ac_dir_suffix.
30637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30638 else
30639 ac_dir_suffix= ac_top_builddir=
30640 fi
30641
30642 case $srcdir in
30643 .) # No --srcdir option. We are building in place.
30644 ac_srcdir=.
30645 if test -z "$ac_top_builddir"; then
30646 ac_top_srcdir=.
30647 else
30648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30649 fi ;;
30650 [\\/]* | ?:[\\/]* ) # Absolute path.
30651 ac_srcdir=$srcdir$ac_dir_suffix;
30652 ac_top_srcdir=$srcdir ;;
30653 *) # Relative path.
30654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30655 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30656 esac
30657
30658 # Do not use `cd foo && pwd` to compute absolute paths, because
30659 # the directories may not exist.
30660 case `pwd` in
30661 .) ac_abs_builddir="$ac_dir";;
30662 *)
30663 case "$ac_dir" in
30664 .) ac_abs_builddir=`pwd`;;
30665 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30666 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30667 esac;;
30668 esac
30669 case $ac_abs_builddir in
30670 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30671 *)
30672 case ${ac_top_builddir}. in
30673 .) ac_abs_top_builddir=$ac_abs_builddir;;
30674 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30675 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30676 esac;;
30677 esac
30678 case $ac_abs_builddir in
30679 .) ac_abs_srcdir=$ac_srcdir;;
30680 *)
30681 case $ac_srcdir in
30682 .) ac_abs_srcdir=$ac_abs_builddir;;
30683 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30684 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30685 esac;;
30686 esac
30687 case $ac_abs_builddir in
30688 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30689 *)
30690 case $ac_top_srcdir in
30691 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30692 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30693 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30694 esac;;
30695 esac
30696
30697
30698 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30699 echo "$as_me: executing $ac_dest commands" >&6;}
30700 case $ac_dest in
30701 default )
30702 case ${CONFIG_HEADERS} in
30703 *auto-host.h:config.in*)
30704 echo > cstamp-h ;;
30705 esac
30706 # Make sure all the subdirs exist.
30707 for d in $subdirs doc build
30708 do
30709 test -d $d || mkdir $d
30710 done
30711 ;;
30712 esac
30713 done
30714 _ACEOF
30715
30716 cat >>$CONFIG_STATUS <<\_ACEOF
30717
30718 { (exit 0); exit 0; }
30719 _ACEOF
30720 chmod +x $CONFIG_STATUS
30721 ac_clean_files=$ac_clean_files_save
30722
30723
30724 # configure is writing to config.log, and then calls config.status.
30725 # config.status does its own redirection, appending to config.log.
30726 # Unfortunately, on DOS this fails, as config.log is still kept open
30727 # by configure, so config.status won't be able to write to it; its
30728 # output is simply discarded. So we exec the FD to /dev/null,
30729 # effectively closing config.log, so it can be properly (re)opened and
30730 # appended to by config.status. When coming back to configure, we
30731 # need to make the FD available again.
30732 if test "$no_create" != yes; then
30733 ac_cs_success=:
30734 ac_config_status_args=
30735 test "$silent" = yes &&
30736 ac_config_status_args="$ac_config_status_args --quiet"
30737 exec 5>/dev/null
30738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30739 exec 5>>config.log
30740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30741 # would make configure fail if this is the last instruction.
30742 $ac_cs_success || { (exit 1); exit 1; }
30743 fi
30744