OSDN Git Service

2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.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 NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn cxx_compat_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922 ac_env_GMPLIBS_set=${GMPLIBS+set}
923 ac_env_GMPLIBS_value=$GMPLIBS
924 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
925 ac_cv_env_GMPLIBS_value=$GMPLIBS
926 ac_env_GMPINC_set=${GMPINC+set}
927 ac_env_GMPINC_value=$GMPINC
928 ac_cv_env_GMPINC_set=${GMPINC+set}
929 ac_cv_env_GMPINC_value=$GMPINC
930
931 #
932 # Report the --help message.
933 #
934 if test "$ac_init_help" = "long"; then
935   # Omit some internal or obsolete options to make the list less imposing.
936   # This message is too long to be a string in the A/UX 3.1 sh.
937   cat <<_ACEOF
938 \`configure' configures this package to adapt to many kinds of systems.
939
940 Usage: $0 [OPTION]... [VAR=VALUE]...
941
942 To assign environment variables (e.g., CC, CFLAGS...), specify them as
943 VAR=VALUE.  See below for descriptions of some of the useful variables.
944
945 Defaults for the options are specified in brackets.
946
947 Configuration:
948   -h, --help              display this help and exit
949       --help=short        display options specific to this package
950       --help=recursive    display the short help of all the included packages
951   -V, --version           display version information and exit
952   -q, --quiet, --silent   do not print \`checking...' messages
953       --cache-file=FILE   cache test results in FILE [disabled]
954   -C, --config-cache      alias for \`--cache-file=config.cache'
955   -n, --no-create         do not create output files
956       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
957
958 _ACEOF
959
960   cat <<_ACEOF
961 Installation directories:
962   --prefix=PREFIX         install architecture-independent files in PREFIX
963                           [$ac_default_prefix]
964   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
965                           [PREFIX]
966
967 By default, \`make install' will install all the files in
968 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
969 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
970 for instance \`--prefix=\$HOME'.
971
972 For better control, use the options below.
973
974 Fine tuning of the installation directories:
975   --bindir=DIR           user executables [EPREFIX/bin]
976   --sbindir=DIR          system admin executables [EPREFIX/sbin]
977   --libexecdir=DIR       program executables [EPREFIX/libexec]
978   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
979   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
980   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
981   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
982   --libdir=DIR           object code libraries [EPREFIX/lib]
983   --includedir=DIR       C header files [PREFIX/include]
984   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
985   --infodir=DIR          info documentation [PREFIX/info]
986   --mandir=DIR           man documentation [PREFIX/man]
987 _ACEOF
988
989   cat <<\_ACEOF
990
991 Program names:
992   --program-prefix=PREFIX            prepend PREFIX to installed program names
993   --program-suffix=SUFFIX            append SUFFIX to installed program names
994   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
995
996 System types:
997   --build=BUILD     configure for building on BUILD [guessed]
998   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
999   --target=TARGET   configure for building compilers for TARGET [HOST]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004
1005   cat <<\_ACEOF
1006
1007 Optional Features:
1008   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1009   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1010   --enable-generated-files-in-srcdir
1011                           put copies of generated files in source dir
1012                           intended for creating source tarballs for users
1013                           without texinfo bison or flex.
1014   --enable-werror-always  enable -Werror despite compiler version
1015   --enable-checking=LIST
1016                           enable expensive run-time checks.  With LIST,
1017                           enable only specific categories of checks.
1018                           Categories are: yes,no,all,none,release.
1019                           Flags are: assert,df,fold,gc,gcac,misc,
1020                           rtlflag,rtl,runtime,tree,valgrind,types.
1021   --enable-coverage=LEVEL
1022                           enable compiler's code coverage collection.
1023                           Use to measure compiler performance and locate
1024                           unused parts of the compiler. With LEVEL, specify
1025                           optimization. Values are opt, noopt,
1026                           default is noopt
1027   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1028   --enable-multilib       enable library support for multiple ABIs
1029   --enable-__cxa_atexit   enable __cxa_atexit for C++
1030   --enable-decimal-float={no,yes,bid,dpd}
1031                         enable decimal float extension to C.  Selecting 'bid'
1032                         or 'dpd' choses which decimal floating point format
1033                         to use
1034   --enable-fixed-point    enable fixed-point arithmetic extension to C
1035   --enable-threads        enable thread usage for target GCC
1036   --enable-threads=LIB    use LIB thread package for target GCC
1037   --enable-tls            enable or disable generation of tls code
1038                           overriding the assembler check for tls support
1039   --enable-objc-gc        enable the use of Boehm's garbage collector with
1040                           the GNU Objective-C runtime
1041   --disable-shared        don't provide a shared libgcc
1042   --enable-intermodule    build the compiler in one step
1043   --enable-languages=LIST specify which front-ends to build
1044   --disable-rpath         do not hardcode runtime library paths
1045   --enable-initfini-array       use .init_array/.fini_array sections
1046   --enable-sjlj-exceptions
1047                           arrange to use setjmp/longjmp exception handling
1048   --enable-secureplt      enable -msecure-plt by default for PowerPC
1049   --disable-win32-registry
1050                           disable lookup of installation paths in the
1051                           Registry on Windows hosts
1052   --enable-win32-registry enable registry lookup (default)
1053   --enable-win32-registry=KEY
1054                           use KEY instead of GCC version as the last portion
1055                           of the registry key
1056   --enable-shared[=PKGS]
1057                           build shared libraries [default=yes]
1058   --enable-static[=PKGS]
1059                           build static libraries [default=yes]
1060   --enable-fast-install[=PKGS]
1061                           optimize for fast installation [default=yes]
1062   --disable-libtool-lock  avoid locking (might break parallel builds)
1063   --enable-maintainer-mode
1064                           enable make rules and dependencies not useful
1065                           (and sometimes confusing) to the casual installer
1066   --enable-version-specific-runtime-libs
1067                           specify that runtime libraries should be
1068                           installed in a compiler-specific directory
1069
1070 Optional Packages:
1071   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1072   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1073   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1074   --with-local-prefix=DIR specifies directory to put local include
1075   --with-gxx-include-dir=DIR
1076                           specifies directory to put g++ header files
1077   --with-cpp-install-dir=DIR
1078                           install the user visible C preprocessor in DIR
1079                           (relative to PREFIX) as well as PREFIX/bin
1080   --with-gnu-ld           arrange to work with GNU ld.
1081   --with-ld               arrange to use the specified ld (full pathname)
1082   --with-demangler-in-ld  try to use demangler in GNU ld.
1083   --with-gnu-as           arrange to work with GNU as
1084   --with-as               arrange to use the specified as (full pathname)
1085   --with-stabs            arrange to use stabs instead of host debug format
1086   --with-dwarf2           force the default debug format to be DWARF 2
1087   --with-build-sysroot=sysroot
1088                           use sysroot as the system root during the build
1089   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1090   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1091   --with-bugurl=URL       Direct users to URL to report a bug
1092   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1093   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1094   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1095   --with-system-libunwind use installed libunwind
1096   --with-pic              try to use only PIC/non-PIC objects [default=use
1097                           both]
1098   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1099   --with-long-double-128  Use 128-bit long double by default.
1100   --with-gc={page,zone}   choose the garbage collection mechanism to use
1101                           with the compiler
1102   --with-system-zlib      use installed libz
1103   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1104   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1105   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1106   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1107
1108 Some influential environment variables:
1109   CC          C compiler command
1110   CFLAGS      C compiler flags
1111   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112               nonstandard directory <lib dir>
1113   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114               headers in a nonstandard directory <include dir>
1115   CPP         C preprocessor
1116   GMPLIBS     How to link GMP
1117   GMPINC      How to find GMP include files
1118
1119 Use these variables to override the choices made by `configure' or to help
1120 it to find libraries and programs with nonstandard names/locations.
1121
1122 _ACEOF
1123 fi
1124
1125 if test "$ac_init_help" = "recursive"; then
1126   # If there are subdirs, report their specific --help.
1127   ac_popdir=`pwd`
1128   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129     test -d $ac_dir || continue
1130     ac_builddir=.
1131
1132 if test "$ac_dir" != .; then
1133   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134   # A "../" for each directory in $ac_dir_suffix.
1135   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136 else
1137   ac_dir_suffix= ac_top_builddir=
1138 fi
1139
1140 case $srcdir in
1141   .)  # No --srcdir option.  We are building in place.
1142     ac_srcdir=.
1143     if test -z "$ac_top_builddir"; then
1144        ac_top_srcdir=.
1145     else
1146        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147     fi ;;
1148   [\\/]* | ?:[\\/]* )  # Absolute path.
1149     ac_srcdir=$srcdir$ac_dir_suffix;
1150     ac_top_srcdir=$srcdir ;;
1151   *) # Relative path.
1152     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 esac
1155
1156 # Do not use `cd foo && pwd` to compute absolute paths, because
1157 # the directories may not exist.
1158 case `pwd` in
1159 .) ac_abs_builddir="$ac_dir";;
1160 *)
1161   case "$ac_dir" in
1162   .) ac_abs_builddir=`pwd`;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1169 *)
1170   case ${ac_top_builddir}. in
1171   .) ac_abs_top_builddir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_srcdir=$ac_srcdir;;
1178 *)
1179   case $ac_srcdir in
1180   .) ac_abs_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183   esac;;
1184 esac
1185 case $ac_abs_builddir in
1186 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1187 *)
1188   case $ac_top_srcdir in
1189   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192   esac;;
1193 esac
1194
1195     cd $ac_dir
1196     # Check for guested configure; otherwise get Cygnus style configure.
1197     if test -f $ac_srcdir/configure.gnu; then
1198       echo
1199       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1200     elif test -f $ac_srcdir/configure; then
1201       echo
1202       $SHELL $ac_srcdir/configure  --help=recursive
1203     elif test -f $ac_srcdir/configure.ac ||
1204            test -f $ac_srcdir/configure.in; then
1205       echo
1206       $ac_configure --help
1207     else
1208       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1209     fi
1210     cd $ac_popdir
1211   done
1212 fi
1213
1214 test -n "$ac_init_help" && exit 0
1215 if $ac_init_version; then
1216   cat <<\_ACEOF
1217
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1221 _ACEOF
1222   exit 0
1223 fi
1224 exec 5>config.log
1225 cat >&5 <<_ACEOF
1226 This file contains any messages produced by compilers while
1227 running configure, to aid debugging if configure makes a mistake.
1228
1229 It was created by $as_me, which was
1230 generated by GNU Autoconf 2.59.  Invocation command line was
1231
1232   $ $0 $@
1233
1234 _ACEOF
1235 {
1236 cat <<_ASUNAME
1237 ## --------- ##
1238 ## Platform. ##
1239 ## --------- ##
1240
1241 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1242 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1243 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1244 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1245 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1246
1247 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1248 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1249
1250 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1251 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1252 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1253 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1254 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1255 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1256 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1257
1258 _ASUNAME
1259
1260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1261 for as_dir in $PATH
1262 do
1263   IFS=$as_save_IFS
1264   test -z "$as_dir" && as_dir=.
1265   echo "PATH: $as_dir"
1266 done
1267
1268 } >&5
1269
1270 cat >&5 <<_ACEOF
1271
1272
1273 ## ----------- ##
1274 ## Core tests. ##
1275 ## ----------- ##
1276
1277 _ACEOF
1278
1279
1280 # Keep a trace of the command line.
1281 # Strip out --no-create and --no-recursion so they do not pile up.
1282 # Strip out --silent because we don't want to record it for future runs.
1283 # Also quote any args containing shell meta-characters.
1284 # Make two passes to allow for proper duplicate-argument suppression.
1285 ac_configure_args=
1286 ac_configure_args0=
1287 ac_configure_args1=
1288 ac_sep=
1289 ac_must_keep_next=false
1290 for ac_pass in 1 2
1291 do
1292   for ac_arg
1293   do
1294     case $ac_arg in
1295     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1296     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297     | -silent | --silent | --silen | --sile | --sil)
1298       continue ;;
1299     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1301     esac
1302     case $ac_pass in
1303     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1304     2)
1305       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1306       if test $ac_must_keep_next = true; then
1307         ac_must_keep_next=false # Got value, back to normal.
1308       else
1309         case $ac_arg in
1310           *=* | --config-cache | -C | -disable-* | --disable-* \
1311           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1312           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1313           | -with-* | --with-* | -without-* | --without-* | --x)
1314             case "$ac_configure_args0 " in
1315               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1316             esac
1317             ;;
1318           -* ) ac_must_keep_next=true ;;
1319         esac
1320       fi
1321       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1322       # Get rid of the leading space.
1323       ac_sep=" "
1324       ;;
1325     esac
1326   done
1327 done
1328 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1329 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1330
1331 # When interrupted or exit'd, cleanup temporary files, and complete
1332 # config.log.  We remove comments because anyway the quotes in there
1333 # would cause problems or look ugly.
1334 # WARNING: Be sure not to use single quotes in there, as some shells,
1335 # such as our DU 5.0 friend, will then `close' the trap.
1336 trap 'exit_status=$?
1337   # Save into config.log some information that might help in debugging.
1338   {
1339     echo
1340
1341     cat <<\_ASBOX
1342 ## ---------------- ##
1343 ## Cache variables. ##
1344 ## ---------------- ##
1345 _ASBOX
1346     echo
1347     # The following way of writing the cache mishandles newlines in values,
1348 {
1349   (set) 2>&1 |
1350     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1351     *ac_space=\ *)
1352       sed -n \
1353         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1354           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1355       ;;
1356     *)
1357       sed -n \
1358         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359       ;;
1360     esac;
1361 }
1362     echo
1363
1364     cat <<\_ASBOX
1365 ## ----------------- ##
1366 ## Output variables. ##
1367 ## ----------------- ##
1368 _ASBOX
1369     echo
1370     for ac_var in $ac_subst_vars
1371     do
1372       eval ac_val=$`echo $ac_var`
1373       echo "$ac_var='"'"'$ac_val'"'"'"
1374     done | sort
1375     echo
1376
1377     if test -n "$ac_subst_files"; then
1378       cat <<\_ASBOX
1379 ## ------------- ##
1380 ## Output files. ##
1381 ## ------------- ##
1382 _ASBOX
1383       echo
1384       for ac_var in $ac_subst_files
1385       do
1386         eval ac_val=$`echo $ac_var`
1387         echo "$ac_var='"'"'$ac_val'"'"'"
1388       done | sort
1389       echo
1390     fi
1391
1392     if test -s confdefs.h; then
1393       cat <<\_ASBOX
1394 ## ----------- ##
1395 ## confdefs.h. ##
1396 ## ----------- ##
1397 _ASBOX
1398       echo
1399       sed "/^$/d" confdefs.h | sort
1400       echo
1401     fi
1402     test "$ac_signal" != 0 &&
1403       echo "$as_me: caught signal $ac_signal"
1404     echo "$as_me: exit $exit_status"
1405   } >&5
1406   rm -f core *.core &&
1407   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1408     exit $exit_status
1409      ' 0
1410 for ac_signal in 1 2 13 15; do
1411   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1412 done
1413 ac_signal=0
1414
1415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1416 rm -rf conftest* confdefs.h
1417 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1418 echo >confdefs.h
1419
1420 # Predefined preprocessor variables.
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_NAME "$PACKAGE_NAME"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_STRING "$PACKAGE_STRING"
1439 _ACEOF
1440
1441
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1444 _ACEOF
1445
1446
1447 # Let the site file select an alternate cache file if it wants to.
1448 # Prefer explicitly selected file to automatically selected ones.
1449 if test -z "$CONFIG_SITE"; then
1450   if test "x$prefix" != xNONE; then
1451     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1452   else
1453     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1454   fi
1455 fi
1456 for ac_site_file in $CONFIG_SITE; do
1457   if test -r "$ac_site_file"; then
1458     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1459 echo "$as_me: loading site script $ac_site_file" >&6;}
1460     sed 's/^/| /' "$ac_site_file" >&5
1461     . "$ac_site_file"
1462   fi
1463 done
1464
1465 if test -r "$cache_file"; then
1466   # Some versions of bash will fail to source /dev/null (special
1467   # files actually), so we avoid doing that.
1468   if test -f "$cache_file"; then
1469     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1470 echo "$as_me: loading cache $cache_file" >&6;}
1471     case $cache_file in
1472       [\\/]* | ?:[\\/]* ) . $cache_file;;
1473       *)                      . ./$cache_file;;
1474     esac
1475   fi
1476 else
1477   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1478 echo "$as_me: creating cache $cache_file" >&6;}
1479   >$cache_file
1480 fi
1481
1482 # Check that the precious variables saved in the cache have kept the same
1483 # value.
1484 ac_cache_corrupted=false
1485 for ac_var in `(set) 2>&1 |
1486                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1487   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1488   eval ac_new_set=\$ac_env_${ac_var}_set
1489   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1490   eval ac_new_val="\$ac_env_${ac_var}_value"
1491   case $ac_old_set,$ac_new_set in
1492     set,)
1493       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1495       ac_cache_corrupted=: ;;
1496     ,set)
1497       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1499       ac_cache_corrupted=: ;;
1500     ,);;
1501     *)
1502       if test "x$ac_old_val" != "x$ac_new_val"; then
1503         # differences in whitespace do not lead to failure.
1504         ac_old_val_w=`echo x $ac_old_val`
1505         ac_new_val_w=`echo x $ac_new_val`
1506         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1507           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509           ac_cache_corrupted=:
1510         else
1511           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1512 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1513           eval $ac_var=\$ac_old_val
1514         fi
1515         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1516 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1517         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1518 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1519       fi;;
1520   esac
1521   # Pass precious variables to config.status.
1522   if test "$ac_new_set" = set; then
1523     case $ac_new_val in
1524     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1526     *) ac_arg=$ac_var=$ac_new_val ;;
1527     esac
1528     case " $ac_configure_args " in
1529       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1530       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1531     esac
1532   fi
1533 done
1534 if $ac_cache_corrupted; then
1535   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1538 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539    { (exit 1); exit 1; }; }
1540 fi
1541
1542 ac_ext=c
1543 ac_cpp='$CPP $CPPFLAGS'
1544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1568
1569
1570 gcc_version=`cat $srcdir/BASE-VER`
1571
1572 # Determine the host, build, and target systems
1573 ac_aux_dir=
1574 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1575   if test -f $ac_dir/install-sh; then
1576     ac_aux_dir=$ac_dir
1577     ac_install_sh="$ac_aux_dir/install-sh -c"
1578     break
1579   elif test -f $ac_dir/install.sh; then
1580     ac_aux_dir=$ac_dir
1581     ac_install_sh="$ac_aux_dir/install.sh -c"
1582     break
1583   elif test -f $ac_dir/shtool; then
1584     ac_aux_dir=$ac_dir
1585     ac_install_sh="$ac_aux_dir/shtool install -c"
1586     break
1587   fi
1588 done
1589 if test -z "$ac_aux_dir"; then
1590   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1591 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1592    { (exit 1); exit 1; }; }
1593 fi
1594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1597
1598 # Make sure we can run config.sub.
1599 $ac_config_sub sun4 >/dev/null 2>&1 ||
1600   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1601 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 echo "$as_me:$LINENO: checking build system type" >&5
1605 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1606 if test "${ac_cv_build+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   ac_cv_build_alias=$build_alias
1610 test -z "$ac_cv_build_alias" &&
1611   ac_cv_build_alias=`$ac_config_guess`
1612 test -z "$ac_cv_build_alias" &&
1613   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1614 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1615    { (exit 1); exit 1; }; }
1616 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1617   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1623 echo "${ECHO_T}$ac_cv_build" >&6
1624 build=$ac_cv_build
1625 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 echo "$as_me:$LINENO: checking host system type" >&5
1631 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1632 if test "${ac_cv_host+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_host_alias=$host_alias
1636 test -z "$ac_cv_host_alias" &&
1637   ac_cv_host_alias=$ac_cv_build_alias
1638 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1639   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1640 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1641    { (exit 1); exit 1; }; }
1642
1643 fi
1644 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1645 echo "${ECHO_T}$ac_cv_host" >&6
1646 host=$ac_cv_host
1647 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652 echo "$as_me:$LINENO: checking target system type" >&5
1653 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1654 if test "${ac_cv_target+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   ac_cv_target_alias=$target_alias
1658 test "x$ac_cv_target_alias" = "x" &&
1659   ac_cv_target_alias=$ac_cv_host_alias
1660 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1661   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1662 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1663    { (exit 1); exit 1; }; }
1664
1665 fi
1666 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1667 echo "${ECHO_T}$ac_cv_target" >&6
1668 target=$ac_cv_target
1669 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1670 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1671 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672
1673
1674 # The aliases save the names the user supplied, while $host etc.
1675 # will get canonicalized.
1676 test -n "$target_alias" &&
1677   test "$program_prefix$program_suffix$program_transform_name" = \
1678     NONENONEs,x,x, &&
1679   program_prefix=${target_alias}-
1680
1681 # Determine the noncanonical target name, for directory use.
1682  case ${build_alias} in
1683   "") build_noncanonical=${build} ;;
1684   *) build_noncanonical=${build_alias} ;;
1685 esac
1686
1687  case ${host_alias} in
1688   "") host_noncanonical=${build_noncanonical} ;;
1689   *) host_noncanonical=${host_alias} ;;
1690 esac
1691
1692  case ${target_alias} in
1693   "") target_noncanonical=${host_noncanonical} ;;
1694   *) target_noncanonical=${target_alias} ;;
1695 esac
1696
1697
1698
1699
1700 # Determine the target- and build-specific subdirectories
1701
1702 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1703 # have matching libraries, they should use host libraries: Makefile.tpl
1704 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1705 # However, they still use the build modules, because the corresponding
1706 # host modules (e.g. bison) are only built for the host when bootstrap
1707 # finishes. So:
1708 # - build_subdir is where we find build modules, and never changes.
1709 # - build_libsubdir is where we find build libraries, and can be overridden.
1710
1711 # Prefix 'build-' so this never conflicts with target_subdir.
1712 build_subdir="build-${build_noncanonical}"
1713
1714 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1715 if test "${with_build_libsubdir+set}" = set; then
1716   withval="$with_build_libsubdir"
1717   build_libsubdir="$withval"
1718 else
1719   build_libsubdir="$build_subdir"
1720 fi;
1721 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1722 if ( test $srcdir = . && test -d gcc ) \
1723    || test -d $srcdir/../host-${host_noncanonical}; then
1724   host_subdir="host-${host_noncanonical}"
1725 else
1726   host_subdir=.
1727 fi
1728 # No prefix.
1729 target_subdir=${target_noncanonical}
1730
1731
1732 # Set program_transform_name
1733 test "$program_prefix" != NONE &&
1734   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1735 # Use a double $ so make ignores it.
1736 test "$program_suffix" != NONE &&
1737   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1738 # Double any \ or $.  echo might interpret backslashes.
1739 # By default was `s,x,x', remove it if useless.
1740 cat <<\_ACEOF >conftest.sed
1741 s/[\\$]/&&/g;s/;s,x,x,$//
1742 _ACEOF
1743 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1744 rm conftest.sed
1745
1746
1747 # Check for bogus environment variables.
1748 # Test if LIBRARY_PATH contains the notation for the current directory
1749 # since this would lead to problems installing/building glibc.
1750 # LIBRARY_PATH contains the current directory if one of the following
1751 # is true:
1752 # - one of the terminals (":" and ";") is the first or last sign
1753 # - two terminals occur directly after each other
1754 # - the path contains an element with a dot in it
1755 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1756 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1757 case ${LIBRARY_PATH} in
1758   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1759     library_path_setting="contains current directory"
1760     ;;
1761   *)
1762     library_path_setting="ok"
1763     ;;
1764 esac
1765 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1766 echo "${ECHO_T}$library_path_setting" >&6
1767 if test "$library_path_setting" != "ok"; then
1768 { { echo "$as_me:$LINENO: error:
1769 *** LIBRARY_PATH shouldn't contain the current directory when
1770 *** building gcc. Please change the environment variable
1771 *** and run configure again." >&5
1772 echo "$as_me: error:
1773 *** LIBRARY_PATH shouldn't contain the current directory when
1774 *** building gcc. Please change the environment variable
1775 *** and run configure again." >&2;}
1776    { (exit 1); exit 1; }; }
1777 fi
1778
1779 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1780 # since this would lead to problems installing/building glibc.
1781 # GCC_EXEC_PREFIX contains the current directory if one of the following
1782 # is true:
1783 # - one of the terminals (":" and ";") is the first or last sign
1784 # - two terminals occur directly after each other
1785 # - the path contains an element with a dot in it
1786 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1787 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1788 case ${GCC_EXEC_PREFIX} in
1789   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1790     gcc_exec_prefix_setting="contains current directory"
1791     ;;
1792   *)
1793     gcc_exec_prefix_setting="ok"
1794     ;;
1795 esac
1796 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1797 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1798 if test "$gcc_exec_prefix_setting" != "ok"; then
1799 { { echo "$as_me:$LINENO: error:
1800 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1801 *** building gcc. Please change the environment variable
1802 *** and run configure again." >&5
1803 echo "$as_me: error:
1804 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1805 *** building gcc. Please change the environment variable
1806 *** and run configure again." >&2;}
1807    { (exit 1); exit 1; }; }
1808 fi
1809
1810 # -----------
1811 # Directories
1812 # -----------
1813
1814 # Specify the local prefix
1815 local_prefix=
1816
1817 # Check whether --with-local-prefix or --without-local-prefix was given.
1818 if test "${with_local_prefix+set}" = set; then
1819   withval="$with_local_prefix"
1820   case "${withval}" in
1821 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1822 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1823    { (exit 1); exit 1; }; } ;;
1824 no)     ;;
1825 *)      local_prefix=$with_local_prefix ;;
1826 esac
1827 fi;
1828
1829 # Default local prefix if it is empty
1830 if test x$local_prefix = x; then
1831         local_prefix=/usr/local
1832 fi
1833
1834 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1835 # passed in by the toplevel make and thus we'd get different behavior
1836 # depending on where we built the sources.
1837 gcc_gxx_include_dir=
1838 # Specify the g++ header file directory
1839
1840 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1841 if test "${with_gxx_include_dir+set}" = set; then
1842   withval="$with_gxx_include_dir"
1843   case "${withval}" in
1844 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1845 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1846    { (exit 1); exit 1; }; } ;;
1847 no)     ;;
1848 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1849 esac
1850 fi;
1851
1852 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1853 if test x${gcc_gxx_include_dir} = x; then
1854   if test x${enable_version_specific_runtime_libs} = xyes; then
1855     gcc_gxx_include_dir='${libsubdir}/include/c++'
1856   else
1857     libstdcxx_incdir='include/c++/$(version)'
1858     if test x$host != x$target; then
1859        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1860     fi
1861     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1862   fi
1863 fi
1864
1865
1866 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1867 if test "${with_cpp_install_dir+set}" = set; then
1868   withval="$with_cpp_install_dir"
1869   if test x$withval = xyes; then
1870   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1871 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1872    { (exit 1); exit 1; }; }
1873 elif test x$withval != xno; then
1874   cpp_install_dir=$withval
1875 fi
1876 fi;
1877
1878 # We would like to our source tree to be readonly.  However when releases or
1879 # pre-releases are generated, the flex/bison generated files as well as the
1880 # various formats of manuals need to be included along with the rest of the
1881 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1882 # just that.
1883
1884 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1885 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1886     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1887 if test "${enable_generated_files_in_srcdir+set}" = set; then
1888   enableval="$enable_generated_files_in_srcdir"
1889   generated_files_in_srcdir=$enableval
1890 else
1891   generated_files_in_srcdir=no
1892 fi;
1893
1894 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1895 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1896
1897 if test "$generated_files_in_srcdir" = "yes"; then
1898   GENINSRC=''
1899 else
1900   GENINSRC='#'
1901 fi
1902
1903
1904 # -------------------
1905 # Find default linker
1906 # -------------------
1907
1908 # With GNU ld
1909
1910 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1911 if test "${with_gnu_ld+set}" = set; then
1912   withval="$with_gnu_ld"
1913   gnu_ld_flag="$with_gnu_ld"
1914 else
1915   gnu_ld_flag=no
1916 fi;
1917
1918 # With pre-defined ld
1919
1920 # Check whether --with-ld or --without-ld was given.
1921 if test "${with_ld+set}" = set; then
1922   withval="$with_ld"
1923   DEFAULT_LINKER="$with_ld"
1924 fi;
1925 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1926   if test ! -x "$DEFAULT_LINKER"; then
1927     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1928 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1929    { (exit 1); exit 1; }; }
1930   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1931     gnu_ld_flag=yes
1932   fi
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1936 _ACEOF
1937
1938 fi
1939
1940 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define HAVE_GNU_LD $gnu_ld
1944 _ACEOF
1945
1946
1947 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1948 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1949 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1950   if test x"$gnu_ld_flag" = x"no"; then
1951     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1952 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1953   else
1954     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1955 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1956   fi
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 # With demangler in GNU ld
1963
1964 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1965 if test "${with_demangler_in_ld+set}" = set; then
1966   withval="$with_demangler_in_ld"
1967   demangler_in_ld="$with_demangler_in_ld"
1968 else
1969   demangler_in_ld=no
1970 fi;
1971
1972 # ----------------------
1973 # Find default assembler
1974 # ----------------------
1975
1976 # With GNU as
1977
1978 # Check whether --with-gnu-as or --without-gnu-as was given.
1979 if test "${with_gnu_as+set}" = set; then
1980   withval="$with_gnu_as"
1981   gas_flag="$with_gnu_as"
1982 else
1983   gas_flag=no
1984 fi;
1985
1986
1987 # Check whether --with-as or --without-as was given.
1988 if test "${with_as+set}" = set; then
1989   withval="$with_as"
1990   DEFAULT_ASSEMBLER="$with_as"
1991 fi;
1992 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1993   if test ! -x "$DEFAULT_ASSEMBLER"; then
1994     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1995 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1996    { (exit 1); exit 1; }; }
1997   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1998     gas_flag=yes
1999   fi
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2003 _ACEOF
2004
2005 fi
2006
2007 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define HAVE_GNU_AS $gnu_as
2011 _ACEOF
2012
2013
2014 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2015 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2016 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2017   if test x"$gas_flag" = x"no"; then
2018     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2019 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2020   else
2021     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2022 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2023   fi
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 # ---------------
2030 # Find C compiler
2031 # ---------------
2032
2033 # If a non-executable a.out is present (e.g. created by GNU as above even if
2034 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2035 # file, even when creating an executable, so an execution test fails.
2036 # Remove possible default executable files to avoid this.
2037 #
2038 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2039 # Autoconf includes it.
2040 rm -f a.out a.exe b.out
2041
2042 # Find the native compiler
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048 if test -n "$ac_tool_prefix"; then
2049   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$CC"; then
2057   ac_cv_prog_CC="$CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072
2073 fi
2074 fi
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077   echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6
2079 else
2080   echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084 fi
2085 if test -z "$ac_cv_prog_CC"; then
2086   ac_ct_CC=$CC
2087   # Extract the first word of "gcc", so it can be a program name with args.
2088 set dummy gcc; ac_word=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$ac_ct_CC"; then
2095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104     ac_cv_prog_ac_ct_CC="gcc"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110
2111 fi
2112 fi
2113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2117 else
2118   echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2120 fi
2121
2122   CC=$ac_ct_CC
2123 else
2124   CC="$ac_cv_prog_CC"
2125 fi
2126
2127 if test -z "$CC"; then
2128   if test -n "$ac_tool_prefix"; then
2129   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_CC="${ac_tool_prefix}cc"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157   echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164 fi
2165 if test -z "$ac_cv_prog_CC"; then
2166   ac_ct_CC=$CC
2167   # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$ac_ct_CC"; then
2175   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     ac_cv_prog_ac_ct_CC="cc"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190
2191 fi
2192 fi
2193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194 if test -n "$ac_ct_CC"; then
2195   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196 echo "${ECHO_T}$ac_ct_CC" >&6
2197 else
2198   echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6
2200 fi
2201
2202   CC=$ac_ct_CC
2203 else
2204   CC="$ac_cv_prog_CC"
2205 fi
2206
2207 fi
2208 if test -z "$CC"; then
2209   # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc; ac_word=$2
2211 echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214   echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216   if test -n "$CC"; then
2217   ac_cv_prog_CC="$CC" # Let the user override the test.
2218 else
2219   ac_prog_rejected=no
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2228        ac_prog_rejected=yes
2229        continue
2230      fi
2231     ac_cv_prog_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 if test $ac_prog_rejected = yes; then
2239   # We found a bogon in the path, so make sure we never use it.
2240   set dummy $ac_cv_prog_CC
2241   shift
2242   if test $# != 0; then
2243     # We chose a different compiler from the bogus one.
2244     # However, it has the same basename, so the bogon will be chosen
2245     # first if we set CC to just the basename; use the full file name.
2246     shift
2247     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248   fi
2249 fi
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if test -z "$CC"; then
2263   if test -n "$ac_tool_prefix"; then
2264   for ac_prog in cl
2265   do
2266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2278 do
2279   IFS=$as_save_IFS
2280   test -z "$as_dir" && as_dir=.
2281   for ac_exec_ext in '' $ac_executable_extensions; do
2282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2283     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285     break 2
2286   fi
2287 done
2288 done
2289
2290 fi
2291 fi
2292 CC=$ac_cv_prog_CC
2293 if test -n "$CC"; then
2294   echo "$as_me:$LINENO: result: $CC" >&5
2295 echo "${ECHO_T}$CC" >&6
2296 else
2297   echo "$as_me:$LINENO: result: no" >&5
2298 echo "${ECHO_T}no" >&6
2299 fi
2300
2301     test -n "$CC" && break
2302   done
2303 fi
2304 if test -z "$CC"; then
2305   ac_ct_CC=$CC
2306   for ac_prog in cl
2307 do
2308   # Extract the first word of "$ac_prog", so it can be a program name with args.
2309 set dummy $ac_prog; ac_word=$2
2310 echo "$as_me:$LINENO: checking for $ac_word" >&5
2311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2313   echo $ECHO_N "(cached) $ECHO_C" >&6
2314 else
2315   if test -n "$ac_ct_CC"; then
2316   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321   IFS=$as_save_IFS
2322   test -z "$as_dir" && as_dir=.
2323   for ac_exec_ext in '' $ac_executable_extensions; do
2324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325     ac_cv_prog_ac_ct_CC="$ac_prog"
2326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327     break 2
2328   fi
2329 done
2330 done
2331
2332 fi
2333 fi
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6
2338 else
2339   echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343   test -n "$ac_ct_CC" && break
2344 done
2345
2346   CC=$ac_ct_CC
2347 fi
2348
2349 fi
2350
2351
2352 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: no acceptable C compiler found in \$PATH
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357
2358 # Provide some information about the compiler.
2359 echo "$as_me:$LINENO:" \
2360      "checking for C compiler version" >&5
2361 ac_compiler=`set X $ac_compile; echo $2`
2362 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2363   (eval $ac_compiler --version </dev/null >&5) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }
2367 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2368   (eval $ac_compiler -v </dev/null >&5) 2>&5
2369   ac_status=$?
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); }
2372 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2373   (eval $ac_compiler -V </dev/null >&5) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }
2377
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 int
2386 main ()
2387 {
2388
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2397 # of exeext.
2398 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2402   (eval $ac_link_default) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; then
2406   # Find the output, starting from the most likely.  This scheme is
2407 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2408 # resort.
2409
2410 # Be careful to initialize this variable, since it used to be cached.
2411 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2412 ac_cv_exeext=
2413 # b.out is created by i960 compilers.
2414 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2415 do
2416   test -f "$ac_file" || continue
2417   case $ac_file in
2418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2419         ;;
2420     conftest.$ac_ext )
2421         # This is the source file.
2422         ;;
2423     [ab].out )
2424         # We found the default executable, but exeext='' is most
2425         # certainly right.
2426         break;;
2427     *.* )
2428         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2429         # FIXME: I believe we export ac_cv_exeext for Libtool,
2430         # but it would be cool to find out if it's true.  Does anybody
2431         # maintain Libtool? --akim.
2432         export ac_cv_exeext
2433         break;;
2434     * )
2435         break;;
2436   esac
2437 done
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details." >&2;}
2446    { (exit 77); exit 77; }; }
2447 fi
2448
2449 ac_exeext=$ac_cv_exeext
2450 echo "$as_me:$LINENO: result: $ac_file" >&5
2451 echo "${ECHO_T}$ac_file" >&6
2452
2453 # Check the compiler produces executables we can run.  If not, either
2454 # the compiler is broken, or we cross compile.
2455 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2456 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2457 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2458 # If not cross compiling, check that we can run a simple program.
2459 if test "$cross_compiling" != yes; then
2460   if { ac_try='./$ac_file'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466     cross_compiling=no
2467   else
2468     if test "$cross_compiling" = maybe; then
2469         cross_compiling=yes
2470     else
2471         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \`config.log' for more details." >&2;}
2477    { (exit 1); exit 1; }; }
2478     fi
2479   fi
2480 fi
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2483
2484 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2485 ac_clean_files=$ac_clean_files_save
2486 # Check the compiler produces executables we can run.  If not, either
2487 # the compiler is broken, or we cross compile.
2488 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2489 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2490 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2491 echo "${ECHO_T}$cross_compiling" >&6
2492
2493 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2494 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2496   (eval $ac_link) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }; then
2500   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2501 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2502 # work properly (i.e., refer to `conftest.exe'), while it won't with
2503 # `rm'.
2504 for ac_file in conftest.exe conftest conftest.*; do
2505   test -f "$ac_file" || continue
2506   case $ac_file in
2507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2508     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2509           export ac_cv_exeext
2510           break;;
2511     * ) break;;
2512   esac
2513 done
2514 else
2515   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2518 See \`config.log' for more details." >&2;}
2519    { (exit 1); exit 1; }; }
2520 fi
2521
2522 rm -f conftest$ac_cv_exeext
2523 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2524 echo "${ECHO_T}$ac_cv_exeext" >&6
2525
2526 rm -f conftest.$ac_ext
2527 EXEEXT=$ac_cv_exeext
2528 ac_exeext=$EXEEXT
2529 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531 if test "${ac_cv_objext+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   cat >conftest.$ac_ext <<_ACEOF
2535 /* confdefs.h.  */
2536 _ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h.  */
2540
2541 int
2542 main ()
2543 {
2544
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.o conftest.obj
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; then
2555   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559        break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569 See \`config.log' for more details." >&2;}
2570    { (exit 1); exit 1; }; }
2571 fi
2572
2573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574 fi
2575 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576 echo "${ECHO_T}$ac_cv_objext" >&6
2577 OBJEXT=$ac_cv_objext
2578 ac_objext=$OBJEXT
2579 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594 #ifndef __GNUC__
2595        choke me
2596 #endif
2597
2598   ;
2599   return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604   (eval $ac_compile) 2>conftest.er1
2605   ac_status=$?
2606   grep -v '^ *+' conftest.er1 >conftest.err
2607   rm -f conftest.er1
2608   cat conftest.err >&5
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); } &&
2611          { ac_try='test -z "$ac_c_werror_flag"
2612                          || test ! -s conftest.err'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; } &&
2618          { ac_try='test -s conftest.$ac_objext'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; }; then
2624   ac_compiler_gnu=yes
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 ac_compiler_gnu=no
2630 fi
2631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633
2634 fi
2635 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637 GCC=`test $ac_compiler_gnu = yes && echo yes`
2638 ac_test_CFLAGS=${CFLAGS+set}
2639 ac_save_CFLAGS=$CFLAGS
2640 CFLAGS="-g"
2641 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643 if test "${ac_cv_prog_cc_g+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h.  */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h.  */
2652
2653 int
2654 main ()
2655 {
2656
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663   (eval $ac_compile) 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } &&
2670          { ac_try='test -z "$ac_c_werror_flag"
2671                          || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   ac_cv_prog_cc_g=yes
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 ac_cv_prog_cc_g=no
2689 fi
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694 if test "$ac_test_CFLAGS" = set; then
2695   CFLAGS=$ac_save_CFLAGS
2696 elif test $ac_cv_prog_cc_g = yes; then
2697   if test "$GCC" = yes; then
2698     CFLAGS="-g -O2"
2699   else
2700     CFLAGS="-g"
2701   fi
2702 else
2703   if test "$GCC" = yes; then
2704     CFLAGS="-O2"
2705   else
2706     CFLAGS=
2707   fi
2708 fi
2709 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   ac_cv_prog_cc_stdc=no
2715 ac_save_CC=$CC
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722 #include <stdarg.h>
2723 #include <stdio.h>
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2730      char **p;
2731      int i;
2732 {
2733   return p[i];
2734 }
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2736 {
2737   char *s;
2738   va_list v;
2739   va_start (v,p);
2740   s = g (p, va_arg (v,int));
2741   va_end (v);
2742   return s;
2743 }
2744
2745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2746    function prototypes and stuff, but not '\xHH' hex character constants.
2747    These don't provoke an error unfortunately, instead are silently treated
2748    as 'x'.  The following induces an error, until -std1 is added to get
2749    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2750    array size at least.  It's necessary to write '\x00'==0 to get something
2751    that's true only with -std1.  */
2752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753
2754 int test (int i, double x);
2755 struct s1 {int (*f) (int a);};
2756 struct s2 {int (*f) (double a);};
2757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2758 int argc;
2759 char **argv;
2760 int
2761 main ()
2762 {
2763 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX                   -qlanglvl=ansi
2771 # Ultrix and OSF/1      -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2774 # SVR4                  -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 do
2777   CC="$ac_save_CC $ac_arg"
2778   rm -f conftest.$ac_objext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780   (eval $ac_compile) 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } &&
2787          { ac_try='test -z "$ac_c_werror_flag"
2788                          || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_stdc=$ac_arg
2801 break
2802 else
2803   echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext
2808 done
2809 rm -f conftest.$ac_ext conftest.$ac_objext
2810 CC=$ac_save_CC
2811
2812 fi
2813
2814 case "x$ac_cv_prog_cc_stdc" in
2815   x|xno)
2816     echo "$as_me:$LINENO: result: none needed" >&5
2817 echo "${ECHO_T}none needed" >&6 ;;
2818   *)
2819     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821     CC="$CC $ac_cv_prog_cc_stdc" ;;
2822 esac
2823
2824 # Some people use a C++ compiler to compile C.  Since we use `exit',
2825 # in C++ we need to declare it.  In case someone uses the same compiler
2826 # for both compiling C and C++ we need to have the C++ compiler decide
2827 # the declaration of exit, since it's the most demanding environment.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #ifndef __cplusplus
2830   choke me
2831 #endif
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"
2843                          || test ! -s conftest.err'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; } &&
2849          { ac_try='test -s conftest.$ac_objext'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855   for ac_declaration in \
2856    '' \
2857    'extern "C" void std::exit (int) throw (); using std::exit;' \
2858    'extern "C" void std::exit (int); using std::exit;' \
2859    'extern "C" void exit (int) throw ();' \
2860    'extern "C" void exit (int);' \
2861    'void exit (int);'
2862 do
2863   cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h.  */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h.  */
2869 $ac_declaration
2870 #include <stdlib.h>
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_c_werror_flag"
2889                          || test ! -s conftest.err'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; } &&
2895          { ac_try='test -s conftest.$ac_objext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   :
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 continue
2907 fi
2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 $ac_declaration
2916 int
2917 main ()
2918 {
2919 exit (42);
2920   ;
2921   return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926   (eval $ac_compile) 2>conftest.er1
2927   ac_status=$?
2928   grep -v '^ *+' conftest.er1 >conftest.err
2929   rm -f conftest.er1
2930   cat conftest.err >&5
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } &&
2933          { ac_try='test -z "$ac_c_werror_flag"
2934                          || test ! -s conftest.err'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; } &&
2940          { ac_try='test -s conftest.$ac_objext'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; }; then
2946   break
2947 else
2948   echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 fi
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 done
2954 rm -f conftest*
2955 if test -n "$ac_declaration"; then
2956   echo '#ifdef __cplusplus' >>confdefs.h
2957   echo $ac_declaration      >>confdefs.h
2958   echo '#endif'             >>confdefs.h
2959 fi
2960
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 fi
2966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967 ac_ext=c
2968 ac_cpp='$CPP $CPPFLAGS'
2969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2972
2973 if test "x$CC" != xcc; then
2974   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2975 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2976 else
2977   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2978 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2979 fi
2980 set dummy $CC; ac_cc=`echo $2 |
2981                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2982 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991
2992 int
2993 main ()
2994 {
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 # Make sure it works both with $CC and with simple cc.
3001 # We do the test twice because some compilers refuse to overwrite an
3002 # existing .o file with -o, though they will create one.
3003 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3004 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } &&
3009    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3010   (eval $ac_try) 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); };
3014 then
3015   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3016   if test "x$CC" != xcc; then
3017     # Test first that cc exists at all.
3018     if { ac_try='cc -c conftest.$ac_ext >&5'
3019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020   (eval $ac_try) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; }; then
3024       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3025       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); };
3035       then
3036         # cc works too.
3037         :
3038       else
3039         # cc exists but doesn't like -o.
3040         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3041       fi
3042     fi
3043   fi
3044 else
3045   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3046 fi
3047 rm -f conftest*
3048
3049 fi
3050 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3051   echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3053 else
3054   echo "$as_me:$LINENO: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056
3057 cat >>confdefs.h <<\_ACEOF
3058 #define NO_MINUS_C_MINUS_O 1
3059 _ACEOF
3060
3061 fi
3062
3063 # expand $ac_aux_dir to an absolute path
3064 am_aux_dir=`cd $ac_aux_dir && pwd`
3065
3066 # FIXME: we rely on the cache variable name because
3067 # there is no other way.
3068 set dummy $CC
3069 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3070 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3071    # Losing compiler, so override with the script.
3072    # FIXME: It is wrong to rewrite CC.
3073    # But if we don't then we get into trouble of one sort or another.
3074    # A longer-term fix would be to have automake use am__CC in this case,
3075    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3076    CC="$am_aux_dir/compile $CC"
3077 fi
3078
3079 # autoconf is lame and doesn't give us any substitution variable for this.
3080 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3081   NO_MINUS_C_MINUS_O=yes
3082 else
3083   OUTPUT_OPTION='-o $@'
3084 fi
3085
3086
3087
3088 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3089 # optimizations to be activated explicitly by the toplevel.
3090 case "$CC" in
3091   */prev-gcc/xgcc*) ;;
3092   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3093 esac
3094
3095
3096 # -------------------------
3097 # Check C compiler features
3098 # -------------------------
3099
3100
3101 ac_ext=c
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3107 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3108 # On Suns, sometimes $CPP names a directory.
3109 if test -n "$CPP" && test -d "$CPP"; then
3110   CPP=
3111 fi
3112 if test -z "$CPP"; then
3113   if test "${ac_cv_prog_CPP+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116       # Double quotes because CPP needs to be expanded
3117     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3118     do
3119       ac_preproc_ok=false
3120 for ac_c_preproc_warn_flag in '' yes
3121 do
3122   # Use a header file that comes with gcc, so configuring glibc
3123   # with a fresh cross-compiler works.
3124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125   # <limits.h> exists even on freestanding compilers.
3126   # On the NeXT, cc -E runs the code through the compiler's parser,
3127   # not just through cpp. "Syntax error" is here to catch this case.
3128   cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134 #ifdef __STDC__
3135 # include <limits.h>
3136 #else
3137 # include <assert.h>
3138 #endif
3139                      Syntax error
3140 _ACEOF
3141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } >/dev/null; then
3149   if test -s conftest.err; then
3150     ac_cpp_err=$ac_c_preproc_warn_flag
3151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3152   else
3153     ac_cpp_err=
3154   fi
3155 else
3156   ac_cpp_err=yes
3157 fi
3158 if test -z "$ac_cpp_err"; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164   # Broken: fails on valid input.
3165 continue
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169   # OK, works on sane cases.  Now check whether non-existent headers
3170   # can be detected and how.
3171   cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177 #include <ac_nonexistent.h>
3178 _ACEOF
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } >/dev/null; then
3187   if test -s conftest.err; then
3188     ac_cpp_err=$ac_c_preproc_warn_flag
3189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190   else
3191     ac_cpp_err=
3192   fi
3193 else
3194   ac_cpp_err=yes
3195 fi
3196 if test -z "$ac_cpp_err"; then
3197   # Broken: success on invalid input.
3198 continue
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203   # Passes both tests.
3204 ac_preproc_ok=:
3205 break
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 done
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3213   break
3214 fi
3215
3216     done
3217     ac_cv_prog_CPP=$CPP
3218
3219 fi
3220   CPP=$ac_cv_prog_CPP
3221 else
3222   ac_cv_prog_CPP=$CPP
3223 fi
3224 echo "$as_me:$LINENO: result: $CPP" >&5
3225 echo "${ECHO_T}$CPP" >&6
3226 ac_preproc_ok=false
3227 for ac_c_preproc_warn_flag in '' yes
3228 do
3229   # Use a header file that comes with gcc, so configuring glibc
3230   # with a fresh cross-compiler works.
3231   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232   # <limits.h> exists even on freestanding compilers.
3233   # On the NeXT, cc -E runs the code through the compiler's parser,
3234   # not just through cpp. "Syntax error" is here to catch this case.
3235   cat >conftest.$ac_ext <<_ACEOF
3236 /* confdefs.h.  */
3237 _ACEOF
3238 cat confdefs.h >>conftest.$ac_ext
3239 cat >>conftest.$ac_ext <<_ACEOF
3240 /* end confdefs.h.  */
3241 #ifdef __STDC__
3242 # include <limits.h>
3243 #else
3244 # include <assert.h>
3245 #endif
3246                      Syntax error
3247 _ACEOF
3248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250   ac_status=$?
3251   grep -v '^ *+' conftest.er1 >conftest.err
3252   rm -f conftest.er1
3253   cat conftest.err >&5
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } >/dev/null; then
3256   if test -s conftest.err; then
3257     ac_cpp_err=$ac_c_preproc_warn_flag
3258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259   else
3260     ac_cpp_err=
3261   fi
3262 else
3263   ac_cpp_err=yes
3264 fi
3265 if test -z "$ac_cpp_err"; then
3266   :
3267 else
3268   echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271   # Broken: fails on valid input.
3272 continue
3273 fi
3274 rm -f conftest.err conftest.$ac_ext
3275
3276   # OK, works on sane cases.  Now check whether non-existent headers
3277   # can be detected and how.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <ac_nonexistent.h>
3285 _ACEOF
3286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3288   ac_status=$?
3289   grep -v '^ *+' conftest.er1 >conftest.err
3290   rm -f conftest.er1
3291   cat conftest.err >&5
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); } >/dev/null; then
3294   if test -s conftest.err; then
3295     ac_cpp_err=$ac_c_preproc_warn_flag
3296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3297   else
3298     ac_cpp_err=
3299   fi
3300 else
3301   ac_cpp_err=yes
3302 fi
3303 if test -z "$ac_cpp_err"; then
3304   # Broken: success on invalid input.
3305 continue
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310   # Passes both tests.
3311 ac_preproc_ok=:
3312 break
3313 fi
3314 rm -f conftest.err conftest.$ac_ext
3315
3316 done
3317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3318 rm -f conftest.err conftest.$ac_ext
3319 if $ac_preproc_ok; then
3320   :
3321 else
3322   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&5
3324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3325 See \`config.log' for more details." >&2;}
3326    { (exit 1); exit 1; }; }
3327 fi
3328
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334
3335
3336 echo "$as_me:$LINENO: checking for egrep" >&5
3337 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3338 if test "${ac_cv_prog_egrep+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3342     then ac_cv_prog_egrep='grep -E'
3343     else ac_cv_prog_egrep='egrep'
3344     fi
3345 fi
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3347 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3348  EGREP=$ac_cv_prog_egrep
3349
3350
3351 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3353 if test "${ac_cv_header_stdc+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include <stdlib.h>
3363 #include <stdarg.h>
3364 #include <string.h>
3365 #include <float.h>
3366
3367 int
3368 main ()
3369 {
3370
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.$ac_objext
3376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3377   (eval $ac_compile) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } &&
3384          { ac_try='test -z "$ac_c_werror_flag"
3385                          || test ! -s conftest.err'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; } &&
3391          { ac_try='test -s conftest.$ac_objext'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397   ac_cv_header_stdc=yes
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 ac_cv_header_stdc=no
3403 fi
3404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3405
3406 if test $ac_cv_header_stdc = yes; then
3407   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3408   cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h.  */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h.  */
3414 #include <string.h>
3415
3416 _ACEOF
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418   $EGREP "memchr" >/dev/null 2>&1; then
3419   :
3420 else
3421   ac_cv_header_stdc=no
3422 fi
3423 rm -f conftest*
3424
3425 fi
3426
3427 if test $ac_cv_header_stdc = yes; then
3428   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3429   cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435 #include <stdlib.h>
3436
3437 _ACEOF
3438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3439   $EGREP "free" >/dev/null 2>&1; then
3440   :
3441 else
3442   ac_cv_header_stdc=no
3443 fi
3444 rm -f conftest*
3445
3446 fi
3447
3448 if test $ac_cv_header_stdc = yes; then
3449   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3450   if test "$cross_compiling" = yes; then
3451   :
3452 else
3453   cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459 #include <ctype.h>
3460 #if ((' ' & 0x0FF) == 0x020)
3461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3463 #else
3464 # define ISLOWER(c) \
3465                    (('a' <= (c) && (c) <= 'i') \
3466                      || ('j' <= (c) && (c) <= 'r') \
3467                      || ('s' <= (c) && (c) <= 'z'))
3468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3469 #endif
3470
3471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3472 int
3473 main ()
3474 {
3475   int i;
3476   for (i = 0; i < 256; i++)
3477     if (XOR (islower (i), ISLOWER (i))
3478         || toupper (i) != TOUPPER (i))
3479       exit(2);
3480   exit (0);
3481 }
3482 _ACEOF
3483 rm -f conftest$ac_exeext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3485   (eval $ac_link) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490   (eval $ac_try) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; }; then
3494   :
3495 else
3496   echo "$as_me: program exited with status $ac_status" >&5
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 ( exit $ac_status )
3501 ac_cv_header_stdc=no
3502 fi
3503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3504 fi
3505 fi
3506 fi
3507 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3508 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3509 if test $ac_cv_header_stdc = yes; then
3510
3511 cat >>confdefs.h <<\_ACEOF
3512 #define STDC_HEADERS 1
3513 _ACEOF
3514
3515 fi
3516
3517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3528                   inttypes.h stdint.h unistd.h
3529 do
3530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3531 echo "$as_me:$LINENO: checking for $ac_header" >&5
3532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 $ac_includes_default
3543
3544 #include <$ac_header>
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548   (eval $ac_compile) 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } &&
3555          { ac_try='test -z "$ac_c_werror_flag"
3556                          || test ! -s conftest.err'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; } &&
3562          { ac_try='test -s conftest.$ac_objext'
3563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564   (eval $ac_try) 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }; }; then
3568   eval "$as_ac_Header=yes"
3569 else
3570   echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 eval "$as_ac_Header=no"
3574 fi
3575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3580   cat >>confdefs.h <<_ACEOF
3581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3582 _ACEOF
3583
3584 fi
3585
3586 done
3587
3588
3589
3590   if test "${ac_cv_header_minix_config_h+set}" = set; then
3591   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3592 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3593 if test "${ac_cv_header_minix_config_h+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 fi
3596 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3597 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3598 else
3599   # Is the header compilable?
3600 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3601 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608 $ac_includes_default
3609 #include <minix/config.h>
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613   (eval $ac_compile) 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } &&
3620          { ac_try='test -z "$ac_c_werror_flag"
3621                          || test ! -s conftest.err'
3622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623   (eval $ac_try) 2>&5
3624   ac_status=$?
3625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626   (exit $ac_status); }; } &&
3627          { ac_try='test -s conftest.$ac_objext'
3628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629   (eval $ac_try) 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); }; }; then
3633   ac_header_compiler=yes
3634 else
3635   echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3637
3638 ac_header_compiler=no
3639 fi
3640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3642 echo "${ECHO_T}$ac_header_compiler" >&6
3643
3644 # Is the header present?
3645 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3646 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h.  */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h.  */
3653 #include <minix/config.h>
3654 _ACEOF
3655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } >/dev/null; then
3663   if test -s conftest.err; then
3664     ac_cpp_err=$ac_c_preproc_warn_flag
3665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3666   else
3667     ac_cpp_err=
3668   fi
3669 else
3670   ac_cpp_err=yes
3671 fi
3672 if test -z "$ac_cpp_err"; then
3673   ac_header_preproc=yes
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678   ac_header_preproc=no
3679 fi
3680 rm -f conftest.err conftest.$ac_ext
3681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3682 echo "${ECHO_T}$ac_header_preproc" >&6
3683
3684 # So?  What about this header?
3685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3686   yes:no: )
3687     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3689     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3691     ac_header_preproc=yes
3692     ;;
3693   no:yes:* )
3694     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3696     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3697 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3698     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3701 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3706     (
3707       cat <<\_ASBOX
3708 ## ------------------------------------------ ##
3709 ## Report this to the AC_PACKAGE_NAME lists.  ##
3710 ## ------------------------------------------ ##
3711 _ASBOX
3712     ) |
3713       sed "s/^/$as_me: WARNING:     /" >&2
3714     ;;
3715 esac
3716 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3717 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3718 if test "${ac_cv_header_minix_config_h+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   ac_cv_header_minix_config_h=$ac_header_preproc
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3725
3726 fi
3727 if test $ac_cv_header_minix_config_h = yes; then
3728   MINIX=yes
3729 else
3730   MINIX=
3731 fi
3732
3733
3734   if test "$MINIX" = yes; then
3735
3736 cat >>confdefs.h <<\_ACEOF
3737 #define _POSIX_SOURCE 1
3738 _ACEOF
3739
3740
3741 cat >>confdefs.h <<\_ACEOF
3742 #define _POSIX_1_SOURCE 2
3743 _ACEOF
3744
3745
3746 cat >>confdefs.h <<\_ACEOF
3747 #define _MINIX 1
3748 _ACEOF
3749
3750   fi
3751
3752
3753
3754   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3755 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3756 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h.  */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h.  */
3765
3766 #         define __EXTENSIONS__ 1
3767           $ac_includes_default
3768 int
3769 main ()
3770 {
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 rm -f conftest.$ac_objext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778   (eval $ac_compile) 2>conftest.er1
3779   ac_status=$?
3780   grep -v '^ *+' conftest.er1 >conftest.err
3781   rm -f conftest.er1
3782   cat conftest.err >&5
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); } &&
3785          { ac_try='test -z "$ac_c_werror_flag"
3786                          || test ! -s conftest.err'
3787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788   (eval $ac_try) 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }; } &&
3792          { ac_try='test -s conftest.$ac_objext'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; }; then
3798   ac_cv_safe_to_define___extensions__=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803 ac_cv_safe_to_define___extensions__=no
3804 fi
3805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3808 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3809   test $ac_cv_safe_to_define___extensions__ = yes &&
3810     cat >>confdefs.h <<\_ACEOF
3811 #define __EXTENSIONS__ 1
3812 _ACEOF
3813
3814   cat >>confdefs.h <<\_ACEOF
3815 #define _ALL_SOURCE 1
3816 _ACEOF
3817
3818   cat >>confdefs.h <<\_ACEOF
3819 #define _GNU_SOURCE 1
3820 _ACEOF
3821
3822   cat >>confdefs.h <<\_ACEOF
3823 #define _POSIX_PTHREAD_SEMANTICS 1
3824 _ACEOF
3825
3826   cat >>confdefs.h <<\_ACEOF
3827 #define _TANDEM_SOURCE 1
3828 _ACEOF
3829
3830
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3837 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3838 # On Suns, sometimes $CPP names a directory.
3839 if test -n "$CPP" && test -d "$CPP"; then
3840   CPP=
3841 fi
3842 if test -z "$CPP"; then
3843   if test "${ac_cv_prog_CPP+set}" = set; then
3844   echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846       # Double quotes because CPP needs to be expanded
3847     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3848     do
3849       ac_preproc_ok=false
3850 for ac_c_preproc_warn_flag in '' yes
3851 do
3852   # Use a header file that comes with gcc, so configuring glibc
3853   # with a fresh cross-compiler works.
3854   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3855   # <limits.h> exists even on freestanding compilers.
3856   # On the NeXT, cc -E runs the code through the compiler's parser,
3857   # not just through cpp. "Syntax error" is here to catch this case.
3858   cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h.  */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h.  */
3864 #ifdef __STDC__
3865 # include <limits.h>
3866 #else
3867 # include <assert.h>
3868 #endif
3869                      Syntax error
3870 _ACEOF
3871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } >/dev/null; then
3879   if test -s conftest.err; then
3880     ac_cpp_err=$ac_c_preproc_warn_flag
3881     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3882   else
3883     ac_cpp_err=
3884   fi
3885 else
3886   ac_cpp_err=yes
3887 fi
3888 if test -z "$ac_cpp_err"; then
3889   :
3890 else
3891   echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894   # Broken: fails on valid input.
3895 continue
3896 fi
3897 rm -f conftest.err conftest.$ac_ext
3898
3899   # OK, works on sane cases.  Now check whether non-existent headers
3900   # can be detected and how.
3901   cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h.  */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h.  */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } >/dev/null; then
3917   if test -s conftest.err; then
3918     ac_cpp_err=$ac_c_preproc_warn_flag
3919     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3920   else
3921     ac_cpp_err=
3922   fi
3923 else
3924   ac_cpp_err=yes
3925 fi
3926 if test -z "$ac_cpp_err"; then
3927   # Broken: success on invalid input.
3928 continue
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933   # Passes both tests.
3934 ac_preproc_ok=:
3935 break
3936 fi
3937 rm -f conftest.err conftest.$ac_ext
3938
3939 done
3940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941 rm -f conftest.err conftest.$ac_ext
3942 if $ac_preproc_ok; then
3943   break
3944 fi
3945
3946     done
3947     ac_cv_prog_CPP=$CPP
3948
3949 fi
3950   CPP=$ac_cv_prog_CPP
3951 else
3952   ac_cv_prog_CPP=$CPP
3953 fi
3954 echo "$as_me:$LINENO: result: $CPP" >&5
3955 echo "${ECHO_T}$CPP" >&6
3956 ac_preproc_ok=false
3957 for ac_c_preproc_warn_flag in '' yes
3958 do
3959   # Use a header file that comes with gcc, so configuring glibc
3960   # with a fresh cross-compiler works.
3961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3962   # <limits.h> exists even on freestanding compilers.
3963   # On the NeXT, cc -E runs the code through the compiler's parser,
3964   # not just through cpp. "Syntax error" is here to catch this case.
3965   cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971 #ifdef __STDC__
3972 # include <limits.h>
3973 #else
3974 # include <assert.h>
3975 #endif
3976                      Syntax error
3977 _ACEOF
3978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3980   ac_status=$?
3981   grep -v '^ *+' conftest.er1 >conftest.err
3982   rm -f conftest.er1
3983   cat conftest.err >&5
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); } >/dev/null; then
3986   if test -s conftest.err; then
3987     ac_cpp_err=$ac_c_preproc_warn_flag
3988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3989   else
3990     ac_cpp_err=
3991   fi
3992 else
3993   ac_cpp_err=yes
3994 fi
3995 if test -z "$ac_cpp_err"; then
3996   :
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001   # Broken: fails on valid input.
4002 continue
4003 fi
4004 rm -f conftest.err conftest.$ac_ext
4005
4006   # OK, works on sane cases.  Now check whether non-existent headers
4007   # can be detected and how.
4008   cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h.  */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h.  */
4014 #include <ac_nonexistent.h>
4015 _ACEOF
4016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } >/dev/null; then
4024   if test -s conftest.err; then
4025     ac_cpp_err=$ac_c_preproc_warn_flag
4026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4027   else
4028     ac_cpp_err=
4029   fi
4030 else
4031   ac_cpp_err=yes
4032 fi
4033 if test -z "$ac_cpp_err"; then
4034   # Broken: success on invalid input.
4035 continue
4036 else
4037   echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4039
4040   # Passes both tests.
4041 ac_preproc_ok=:
4042 break
4043 fi
4044 rm -f conftest.err conftest.$ac_ext
4045
4046 done
4047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4048 rm -f conftest.err conftest.$ac_ext
4049 if $ac_preproc_ok; then
4050   :
4051 else
4052   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4053 See \`config.log' for more details." >&5
4054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4055 See \`config.log' for more details." >&2;}
4056    { (exit 1); exit 1; }; }
4057 fi
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065 echo "$as_me:$LINENO: checking for inline" >&5
4066 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4067 if test "${ac_cv_c_inline+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   ac_cv_c_inline=no
4071 for ac_kw in inline __inline__ __inline; do
4072   cat >conftest.$ac_ext <<_ACEOF
4073 /* confdefs.h.  */
4074 _ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h.  */
4078 #ifndef __cplusplus
4079 typedef int foo_t;
4080 static $ac_kw foo_t static_foo () {return 0; }
4081 $ac_kw foo_t foo () {return 0; }
4082 #endif
4083
4084 _ACEOF
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087   (eval $ac_compile) 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } &&
4094          { ac_try='test -z "$ac_c_werror_flag"
4095                          || test ! -s conftest.err'
4096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097   (eval $ac_try) 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; } &&
4101          { ac_try='test -s conftest.$ac_objext'
4102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103   (eval $ac_try) 2>&5
4104   ac_status=$?
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); }; }; then
4107   ac_cv_c_inline=$ac_kw; break
4108 else
4109   echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 fi
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 done
4115
4116 fi
4117 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4118 echo "${ECHO_T}$ac_cv_c_inline" >&6
4119
4120
4121 case $ac_cv_c_inline in
4122   inline | yes) ;;
4123   *)
4124     case $ac_cv_c_inline in
4125       no) ac_val=;;
4126       *) ac_val=$ac_cv_c_inline;;
4127     esac
4128     cat >>confdefs.h <<_ACEOF
4129 #ifndef __cplusplus
4130 #define inline $ac_val
4131 #endif
4132 _ACEOF
4133     ;;
4134 esac
4135
4136
4137 # sizeof(char) is 1 by definition.
4138 echo "$as_me:$LINENO: checking for void *" >&5
4139 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4140 if test "${ac_cv_type_void_p+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 $ac_includes_default
4150 int
4151 main ()
4152 {
4153 if ((void * *) 0)
4154   return 0;
4155 if (sizeof (void *))
4156   return 0;
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163   (eval $ac_compile) 2>conftest.er1
4164   ac_status=$?
4165   grep -v '^ *+' conftest.er1 >conftest.err
4166   rm -f conftest.er1
4167   cat conftest.err >&5
4168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169   (exit $ac_status); } &&
4170          { ac_try='test -z "$ac_c_werror_flag"
4171                          || test ! -s conftest.err'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   ac_cv_type_void_p=yes
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 ac_cv_type_void_p=no
4189 fi
4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4191 fi
4192 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4193 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4194
4195 echo "$as_me:$LINENO: checking size of void *" >&5
4196 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4197 if test "${ac_cv_sizeof_void_p+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test "$ac_cv_type_void_p" = yes; then
4201   # The cast to unsigned long works around a bug in the HP C Compiler
4202   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4203   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4204   # This bug is HP SR number 8606223364.
4205   if test "$cross_compiling" = yes; then
4206   # Depending upon the size, compute the lo and hi bounds.
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 $ac_includes_default
4214 int
4215 main ()
4216 {
4217 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4218 test_array [0] = 0
4219
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226   (eval $ac_compile) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag"
4234                          || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_lo=0 ac_mid=0
4247   while :; do
4248     cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h.  */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h.  */
4254 $ac_includes_default
4255 int
4256 main ()
4257 {
4258 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4259 test_array [0] = 0
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 rm -f conftest.$ac_objext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4267   (eval $ac_compile) 2>conftest.er1
4268   ac_status=$?
4269   grep -v '^ *+' conftest.er1 >conftest.err
4270   rm -f conftest.er1
4271   cat conftest.err >&5
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); } &&
4274          { ac_try='test -z "$ac_c_werror_flag"
4275                          || test ! -s conftest.err'
4276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277   (eval $ac_try) 2>&5
4278   ac_status=$?
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); }; } &&
4281          { ac_try='test -s conftest.$ac_objext'
4282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283   (eval $ac_try) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }; }; then
4287   ac_hi=$ac_mid; break
4288 else
4289   echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ac_lo=`expr $ac_mid + 1`
4293                     if test $ac_lo -le $ac_mid; then
4294                       ac_lo= ac_hi=
4295                       break
4296                     fi
4297                     ac_mid=`expr 2 '*' $ac_mid + 1`
4298 fi
4299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4300   done
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h.  */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h.  */
4311 $ac_includes_default
4312 int
4313 main ()
4314 {
4315 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4316 test_array [0] = 0
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324   (eval $ac_compile) 2>conftest.er1
4325   ac_status=$?
4326   grep -v '^ *+' conftest.er1 >conftest.err
4327   rm -f conftest.er1
4328   cat conftest.err >&5
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); } &&
4331          { ac_try='test -z "$ac_c_werror_flag"
4332                          || test ! -s conftest.err'
4333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334   (eval $ac_try) 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; } &&
4338          { ac_try='test -s conftest.$ac_objext'
4339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340   (eval $ac_try) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); }; }; then
4344   ac_hi=-1 ac_mid=-1
4345   while :; do
4346     cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h.  */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h.  */
4352 $ac_includes_default
4353 int
4354 main ()
4355 {
4356 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4357 test_array [0] = 0
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365   (eval $ac_compile) 2>conftest.er1
4366   ac_status=$?
4367   grep -v '^ *+' conftest.er1 >conftest.err
4368   rm -f conftest.er1
4369   cat conftest.err >&5
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); } &&
4372          { ac_try='test -z "$ac_c_werror_flag"
4373                          || test ! -s conftest.err'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; } &&
4379          { ac_try='test -s conftest.$ac_objext'
4380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381   (eval $ac_try) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   ac_lo=$ac_mid; break
4386 else
4387   echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_hi=`expr '(' $ac_mid ')' - 1`
4391                        if test $ac_mid -le $ac_hi; then
4392                          ac_lo= ac_hi=
4393                          break
4394                        fi
4395                        ac_mid=`expr 2 '*' $ac_mid`
4396 fi
4397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398   done
4399 else
4400   echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ac_lo= ac_hi=
4404 fi
4405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 # Binary search between lo and hi bounds.
4409 while test "x$ac_lo" != "x$ac_hi"; do
4410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4411   cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h.  */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h.  */
4417 $ac_includes_default
4418 int
4419 main ()
4420 {
4421 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4422 test_array [0] = 0
4423
4424   ;
4425   return 0;
4426 }
4427 _ACEOF
4428 rm -f conftest.$ac_objext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430   (eval $ac_compile) 2>conftest.er1
4431   ac_status=$?
4432   grep -v '^ *+' conftest.er1 >conftest.err
4433   rm -f conftest.er1
4434   cat conftest.err >&5
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); } &&
4437          { ac_try='test -z "$ac_c_werror_flag"
4438                          || test ! -s conftest.err'
4439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440   (eval $ac_try) 2>&5
4441   ac_status=$?
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); }; } &&
4444          { ac_try='test -s conftest.$ac_objext'
4445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446   (eval $ac_try) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; }; then
4450   ac_hi=$ac_mid
4451 else
4452   echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4454
4455 ac_lo=`expr '(' $ac_mid ')' + 1`
4456 fi
4457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4458 done
4459 case $ac_lo in
4460 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4462 See \`config.log' for more details." >&5
4463 echo "$as_me: error: cannot compute sizeof (void *), 77
4464 See \`config.log' for more details." >&2;}
4465    { (exit 1); exit 1; }; } ;;
4466 esac
4467 else
4468   if test "$cross_compiling" = yes; then
4469   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4470 See \`config.log' for more details." >&5
4471 echo "$as_me: error: cannot run test program while cross compiling
4472 See \`config.log' for more details." >&2;}
4473    { (exit 1); exit 1; }; }
4474 else
4475   cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481 $ac_includes_default
4482 long longval () { return (long) (sizeof (void *)); }
4483 unsigned long ulongval () { return (long) (sizeof (void *)); }
4484 #include <stdio.h>
4485 #include <stdlib.h>
4486 int
4487 main ()
4488 {
4489
4490   FILE *f = fopen ("conftest.val", "w");
4491   if (! f)
4492     exit (1);
4493   if (((long) (sizeof (void *))) < 0)
4494     {
4495       long i = longval ();
4496       if (i != ((long) (sizeof (void *))))
4497         exit (1);
4498       fprintf (f, "%ld\n", i);
4499     }
4500   else
4501     {
4502       unsigned long i = ulongval ();
4503       if (i != ((long) (sizeof (void *))))
4504         exit (1);
4505       fprintf (f, "%lu\n", i);
4506     }
4507   exit (ferror (f) || fclose (f) != 0);
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest$ac_exeext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515   (eval $ac_link) 2>&5
4516   ac_status=$?
4517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520   (eval $ac_try) 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   ac_cv_sizeof_void_p=`cat conftest.val`
4525 else
4526   echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 ( exit $ac_status )
4531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute sizeof (void *), 77
4534 See \`config.log' for more details." >&2;}
4535    { (exit 1); exit 1; }; }
4536 fi
4537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 fi
4540 rm -f conftest.val
4541 else
4542   ac_cv_sizeof_void_p=0
4543 fi
4544 fi
4545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4546 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4547 cat >>confdefs.h <<_ACEOF
4548 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4549 _ACEOF
4550
4551
4552 echo "$as_me:$LINENO: checking for short" >&5
4553 echo $ECHO_N "checking for short... $ECHO_C" >&6
4554 if test "${ac_cv_type_short+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h.  */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h.  */
4563 $ac_includes_default
4564 int
4565 main ()
4566 {
4567 if ((short *) 0)
4568   return 0;
4569 if (sizeof (short))
4570   return 0;
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4577   (eval $ac_compile) 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -z "$ac_c_werror_flag"
4585                          || test ! -s conftest.err'
4586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587   (eval $ac_try) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; } &&
4591          { ac_try='test -s conftest.$ac_objext'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   ac_cv_type_short=yes
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ac_cv_type_short=no
4603 fi
4604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4607 echo "${ECHO_T}$ac_cv_type_short" >&6
4608
4609 echo "$as_me:$LINENO: checking size of short" >&5
4610 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4611 if test "${ac_cv_sizeof_short+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   if test "$ac_cv_type_short" = yes; then
4615   # The cast to unsigned long works around a bug in the HP C Compiler
4616   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4617   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4618   # This bug is HP SR number 8606223364.
4619   if test "$cross_compiling" = yes; then
4620   # Depending upon the size, compute the lo and hi bounds.
4621 cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627 $ac_includes_default
4628 int
4629 main ()
4630 {
4631 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4632 test_array [0] = 0
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640   (eval $ac_compile) 2>conftest.er1
4641   ac_status=$?
4642   grep -v '^ *+' conftest.er1 >conftest.err
4643   rm -f conftest.er1
4644   cat conftest.err >&5
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } &&
4647          { ac_try='test -z "$ac_c_werror_flag"
4648                          || test ! -s conftest.err'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; } &&
4654          { ac_try='test -s conftest.$ac_objext'
4655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656   (eval $ac_try) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; }; then
4660   ac_lo=0 ac_mid=0
4661   while :; do
4662     cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 $ac_includes_default
4669 int
4670 main ()
4671 {
4672 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4673 test_array [0] = 0
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681   (eval $ac_compile) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -z "$ac_c_werror_flag"
4689                          || test ! -s conftest.err'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   ac_hi=$ac_mid; break
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_lo=`expr $ac_mid + 1`
4707                     if test $ac_lo -le $ac_mid; then
4708                       ac_lo= ac_hi=
4709                       break
4710                     fi
4711                     ac_mid=`expr 2 '*' $ac_mid + 1`
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714   done
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 $ac_includes_default
4726 int
4727 main ()
4728 {
4729 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4730 test_array [0] = 0
4731
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738   (eval $ac_compile) 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } &&
4745          { ac_try='test -z "$ac_c_werror_flag"
4746                          || test ! -s conftest.err'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; } &&
4752          { ac_try='test -s conftest.$ac_objext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   ac_hi=-1 ac_mid=-1
4759   while :; do
4760     cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h.  */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h.  */
4766 $ac_includes_default
4767 int
4768 main ()
4769 {
4770 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4771 test_array [0] = 0
4772
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779   (eval $ac_compile) 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } &&
4786          { ac_try='test -z "$ac_c_werror_flag"
4787                          || test ! -s conftest.err'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; } &&
4793          { ac_try='test -s conftest.$ac_objext'
4794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795   (eval $ac_try) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); }; }; then
4799   ac_lo=$ac_mid; break
4800 else
4801   echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4803
4804 ac_hi=`expr '(' $ac_mid ')' - 1`
4805                        if test $ac_mid -le $ac_hi; then
4806                          ac_lo= ac_hi=
4807                          break
4808                        fi
4809                        ac_mid=`expr 2 '*' $ac_mid`
4810 fi
4811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4812   done
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_lo= ac_hi=
4818 fi
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 # Binary search between lo and hi bounds.
4823 while test "x$ac_lo" != "x$ac_hi"; do
4824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4825   cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831 $ac_includes_default
4832 int
4833 main ()
4834 {
4835 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4836 test_array [0] = 0
4837
4838   ;
4839   return 0;
4840 }
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844   (eval $ac_compile) 2>conftest.er1
4845   ac_status=$?
4846   grep -v '^ *+' conftest.er1 >conftest.err
4847   rm -f conftest.er1
4848   cat conftest.err >&5
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } &&
4851          { ac_try='test -z "$ac_c_werror_flag"
4852                          || test ! -s conftest.err'
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); }; } &&
4858          { ac_try='test -s conftest.$ac_objext'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_hi=$ac_mid
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_lo=`expr '(' $ac_mid ')' + 1`
4870 fi
4871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4872 done
4873 case $ac_lo in
4874 ?*) ac_cv_sizeof_short=$ac_lo;;
4875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4876 See \`config.log' for more details." >&5
4877 echo "$as_me: error: cannot compute sizeof (short), 77
4878 See \`config.log' for more details." >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881 else
4882   if test "$cross_compiling" = yes; then
4883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4884 See \`config.log' for more details." >&5
4885 echo "$as_me: error: cannot run test program while cross compiling
4886 See \`config.log' for more details." >&2;}
4887    { (exit 1); exit 1; }; }
4888 else
4889   cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h.  */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h.  */
4895 $ac_includes_default
4896 long longval () { return (long) (sizeof (short)); }
4897 unsigned long ulongval () { return (long) (sizeof (short)); }
4898 #include <stdio.h>
4899 #include <stdlib.h>
4900 int
4901 main ()
4902 {
4903
4904   FILE *f = fopen ("conftest.val", "w");
4905   if (! f)
4906     exit (1);
4907   if (((long) (sizeof (short))) < 0)
4908     {
4909       long i = longval ();
4910       if (i != ((long) (sizeof (short))))
4911         exit (1);
4912       fprintf (f, "%ld\n", i);
4913     }
4914   else
4915     {
4916       unsigned long i = ulongval ();
4917       if (i != ((long) (sizeof (short))))
4918         exit (1);
4919       fprintf (f, "%lu\n", i);
4920     }
4921   exit (ferror (f) || fclose (f) != 0);
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest$ac_exeext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929   (eval $ac_link) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934   (eval $ac_try) 2>&5
4935   ac_status=$?
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); }; }; then
4938   ac_cv_sizeof_short=`cat conftest.val`
4939 else
4940   echo "$as_me: program exited with status $ac_status" >&5
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4943
4944 ( exit $ac_status )
4945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4946 See \`config.log' for more details." >&5
4947 echo "$as_me: error: cannot compute sizeof (short), 77
4948 See \`config.log' for more details." >&2;}
4949    { (exit 1); exit 1; }; }
4950 fi
4951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4952 fi
4953 fi
4954 rm -f conftest.val
4955 else
4956   ac_cv_sizeof_short=0
4957 fi
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4960 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4961 cat >>confdefs.h <<_ACEOF
4962 #define SIZEOF_SHORT $ac_cv_sizeof_short
4963 _ACEOF
4964
4965
4966 echo "$as_me:$LINENO: checking for int" >&5
4967 echo $ECHO_N "checking for int... $ECHO_C" >&6
4968 if test "${ac_cv_type_int+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 $ac_includes_default
4978 int
4979 main ()
4980 {
4981 if ((int *) 0)
4982   return 0;
4983 if (sizeof (int))
4984   return 0;
4985   ;
4986   return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991   (eval $ac_compile) 2>conftest.er1
4992   ac_status=$?
4993   grep -v '^ *+' conftest.er1 >conftest.err
4994   rm -f conftest.er1
4995   cat conftest.err >&5
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -z "$ac_c_werror_flag"
4999                          || test ! -s conftest.err'
5000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001   (eval $ac_try) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; } &&
5005          { ac_try='test -s conftest.$ac_objext'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; }; then
5011   ac_cv_type_int=yes
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 ac_cv_type_int=no
5017 fi
5018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5021 echo "${ECHO_T}$ac_cv_type_int" >&6
5022
5023 echo "$as_me:$LINENO: checking size of int" >&5
5024 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5025 if test "${ac_cv_sizeof_int+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   if test "$ac_cv_type_int" = yes; then
5029   # The cast to unsigned long works around a bug in the HP C Compiler
5030   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5031   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5032   # This bug is HP SR number 8606223364.
5033   if test "$cross_compiling" = yes; then
5034   # Depending upon the size, compute the lo and hi bounds.
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041 $ac_includes_default
5042 int
5043 main ()
5044 {
5045 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5046 test_array [0] = 0
5047
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } &&
5061          { ac_try='test -z "$ac_c_werror_flag"
5062                          || test ! -s conftest.err'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   ac_lo=0 ac_mid=0
5075   while :; do
5076     cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h.  */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h.  */
5082 $ac_includes_default
5083 int
5084 main ()
5085 {
5086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5087 test_array [0] = 0
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095   (eval $ac_compile) 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } &&
5102          { ac_try='test -z "$ac_c_werror_flag"
5103                          || test ! -s conftest.err'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; } &&
5109          { ac_try='test -s conftest.$ac_objext'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; }; then
5115   ac_hi=$ac_mid; break
5116 else
5117   echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5119
5120 ac_lo=`expr $ac_mid + 1`
5121                     if test $ac_lo -le $ac_mid; then
5122                       ac_lo= ac_hi=
5123                       break
5124                     fi
5125                     ac_mid=`expr 2 '*' $ac_mid + 1`
5126 fi
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128   done
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 $ac_includes_default
5140 int
5141 main ()
5142 {
5143 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5144 test_array [0] = 0
5145
5146   ;
5147   return 0;
5148 }
5149 _ACEOF
5150 rm -f conftest.$ac_objext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152   (eval $ac_compile) 2>conftest.er1
5153   ac_status=$?
5154   grep -v '^ *+' conftest.er1 >conftest.err
5155   rm -f conftest.er1
5156   cat conftest.err >&5
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); } &&
5159          { ac_try='test -z "$ac_c_werror_flag"
5160                          || test ! -s conftest.err'
5161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162   (eval $ac_try) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; } &&
5166          { ac_try='test -s conftest.$ac_objext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_hi=-1 ac_mid=-1
5173   while :; do
5174     cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 $ac_includes_default
5181 int
5182 main ()
5183 {
5184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5185 test_array [0] = 0
5186
5187   ;
5188   return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193   (eval $ac_compile) 2>conftest.er1
5194   ac_status=$?
5195   grep -v '^ *+' conftest.er1 >conftest.err
5196   rm -f conftest.er1
5197   cat conftest.err >&5
5198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199   (exit $ac_status); } &&
5200          { ac_try='test -z "$ac_c_werror_flag"
5201                          || test ! -s conftest.err'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; } &&
5207          { ac_try='test -s conftest.$ac_objext'
5208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209   (eval $ac_try) 2>&5
5210   ac_status=$?
5211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); }; }; then
5213   ac_lo=$ac_mid; break
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218 ac_hi=`expr '(' $ac_mid ')' - 1`
5219                        if test $ac_mid -le $ac_hi; then
5220                          ac_lo= ac_hi=
5221                          break
5222                        fi
5223                        ac_mid=`expr 2 '*' $ac_mid`
5224 fi
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5226   done
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231 ac_lo= ac_hi=
5232 fi
5233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5234 fi
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 # Binary search between lo and hi bounds.
5237 while test "x$ac_lo" != "x$ac_hi"; do
5238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 (int))) <= $ac_mid)];
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_hi=$ac_mid
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 ac_lo=`expr '(' $ac_mid ')' + 1`
5284 fi
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 done
5287 case $ac_lo in
5288 ?*) ac_cv_sizeof_int=$ac_lo;;
5289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5290 See \`config.log' for more details." >&5
5291 echo "$as_me: error: cannot compute sizeof (int), 77
5292 See \`config.log' for more details." >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295 else
5296   if test "$cross_compiling" = yes; then
5297   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: cannot run test program while cross compiling
5300 See \`config.log' for more details." >&2;}
5301    { (exit 1); exit 1; }; }
5302 else
5303   cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 $ac_includes_default
5310 long longval () { return (long) (sizeof (int)); }
5311 unsigned long ulongval () { return (long) (sizeof (int)); }
5312 #include <stdio.h>
5313 #include <stdlib.h>
5314 int
5315 main ()
5316 {
5317
5318   FILE *f = fopen ("conftest.val", "w");
5319   if (! f)
5320     exit (1);
5321   if (((long) (sizeof (int))) < 0)
5322     {
5323       long i = longval ();
5324       if (i != ((long) (sizeof (int))))
5325         exit (1);
5326       fprintf (f, "%ld\n", i);
5327     }
5328   else
5329     {
5330       unsigned long i = ulongval ();
5331       if (i != ((long) (sizeof (int))))
5332         exit (1);
5333       fprintf (f, "%lu\n", i);
5334     }
5335   exit (ferror (f) || fclose (f) != 0);
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341 rm -f conftest$ac_exeext
5342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343   (eval $ac_link) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348   (eval $ac_try) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); }; }; then
5352   ac_cv_sizeof_int=`cat conftest.val`
5353 else
5354   echo "$as_me: program exited with status $ac_status" >&5
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ( exit $ac_status )
5359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: cannot compute sizeof (int), 77
5362 See \`config.log' for more details." >&2;}
5363    { (exit 1); exit 1; }; }
5364 fi
5365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5366 fi
5367 fi
5368 rm -f conftest.val
5369 else
5370   ac_cv_sizeof_int=0
5371 fi
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5375 cat >>confdefs.h <<_ACEOF
5376 #define SIZEOF_INT $ac_cv_sizeof_int
5377 _ACEOF
5378
5379
5380 echo "$as_me:$LINENO: checking for long" >&5
5381 echo $ECHO_N "checking for long... $ECHO_C" >&6
5382 if test "${ac_cv_type_long+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 $ac_includes_default
5392 int
5393 main ()
5394 {
5395 if ((long *) 0)
5396   return 0;
5397 if (sizeof (long))
5398   return 0;
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405   (eval $ac_compile) 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } &&
5412          { ac_try='test -z "$ac_c_werror_flag"
5413                          || test ! -s conftest.err'
5414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415   (eval $ac_try) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }; } &&
5419          { ac_try='test -s conftest.$ac_objext'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   ac_cv_type_long=yes
5426 else
5427   echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5429
5430 ac_cv_type_long=no
5431 fi
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5435 echo "${ECHO_T}$ac_cv_type_long" >&6
5436
5437 echo "$as_me:$LINENO: checking size of long" >&5
5438 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5439 if test "${ac_cv_sizeof_long+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   if test "$ac_cv_type_long" = yes; then
5443   # The cast to unsigned long works around a bug in the HP C Compiler
5444   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5445   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5446   # This bug is HP SR number 8606223364.
5447   if test "$cross_compiling" = yes; then
5448   # Depending upon the size, compute the lo and hi bounds.
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455 $ac_includes_default
5456 int
5457 main ()
5458 {
5459 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5460 test_array [0] = 0
5461
5462   ;
5463   return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468   (eval $ac_compile) 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } &&
5475          { ac_try='test -z "$ac_c_werror_flag"
5476                          || test ! -s conftest.err'
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); }; } &&
5482          { ac_try='test -s conftest.$ac_objext'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; }; then
5488   ac_lo=0 ac_mid=0
5489   while :; do
5490     cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h.  */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h.  */
5496 $ac_includes_default
5497 int
5498 main ()
5499 {
5500 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5501 test_array [0] = 0
5502
5503   ;
5504   return 0;
5505 }
5506 _ACEOF
5507 rm -f conftest.$ac_objext
5508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5509   (eval $ac_compile) 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } &&
5516          { ac_try='test -z "$ac_c_werror_flag"
5517                          || test ! -s conftest.err'
5518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519   (eval $ac_try) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); }; } &&
5523          { ac_try='test -s conftest.$ac_objext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_hi=$ac_mid; break
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 ac_lo=`expr $ac_mid + 1`
5535                     if test $ac_lo -le $ac_mid; then
5536                       ac_lo= ac_hi=
5537                       break
5538                     fi
5539                     ac_mid=`expr 2 '*' $ac_mid + 1`
5540 fi
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542   done
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547 cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 $ac_includes_default
5554 int
5555 main ()
5556 {
5557 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5558 test_array [0] = 0
5559
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 rm -f conftest.$ac_objext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566   (eval $ac_compile) 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } &&
5573          { ac_try='test -z "$ac_c_werror_flag"
5574                          || test ! -s conftest.err'
5575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576   (eval $ac_try) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }; } &&
5580          { ac_try='test -s conftest.$ac_objext'
5581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582   (eval $ac_try) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }; }; then
5586   ac_hi=-1 ac_mid=-1
5587   while :; do
5588     cat >conftest.$ac_ext <<_ACEOF
5589 /* confdefs.h.  */
5590 _ACEOF
5591 cat confdefs.h >>conftest.$ac_ext
5592 cat >>conftest.$ac_ext <<_ACEOF
5593 /* end confdefs.h.  */
5594 $ac_includes_default
5595 int
5596 main ()
5597 {
5598 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5599 test_array [0] = 0
5600
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607   (eval $ac_compile) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -z "$ac_c_werror_flag"
5615                          || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest.$ac_objext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_lo=$ac_mid; break
5628 else
5629   echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ac_hi=`expr '(' $ac_mid ')' - 1`
5633                        if test $ac_mid -le $ac_hi; then
5634                          ac_lo= ac_hi=
5635                          break
5636                        fi
5637                        ac_mid=`expr 2 '*' $ac_mid`
5638 fi
5639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5640   done
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_lo= ac_hi=
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 fi
5649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5650 # Binary search between lo and hi bounds.
5651 while test "x$ac_lo" != "x$ac_hi"; do
5652   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5653   cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 $ac_includes_default
5660 int
5661 main ()
5662 {
5663 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5664 test_array [0] = 0
5665
5666   ;
5667   return 0;
5668 }
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>conftest.er1
5673   ac_status=$?
5674   grep -v '^ *+' conftest.er1 >conftest.err
5675   rm -f conftest.er1
5676   cat conftest.err >&5
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); } &&
5679          { ac_try='test -z "$ac_c_werror_flag"
5680                          || test ! -s conftest.err'
5681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682   (eval $ac_try) 2>&5
5683   ac_status=$?
5684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685   (exit $ac_status); }; } &&
5686          { ac_try='test -s conftest.$ac_objext'
5687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688   (eval $ac_try) 2>&5
5689   ac_status=$?
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); }; }; then
5692   ac_hi=$ac_mid
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697 ac_lo=`expr '(' $ac_mid ')' + 1`
5698 fi
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5700 done
5701 case $ac_lo in
5702 ?*) ac_cv_sizeof_long=$ac_lo;;
5703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5704 See \`config.log' for more details." >&5
5705 echo "$as_me: error: cannot compute sizeof (long), 77
5706 See \`config.log' for more details." >&2;}
5707    { (exit 1); exit 1; }; } ;;
5708 esac
5709 else
5710   if test "$cross_compiling" = yes; then
5711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5712 See \`config.log' for more details." >&5
5713 echo "$as_me: error: cannot run test program while cross compiling
5714 See \`config.log' for more details." >&2;}
5715    { (exit 1); exit 1; }; }
5716 else
5717   cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h.  */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h.  */
5723 $ac_includes_default
5724 long longval () { return (long) (sizeof (long)); }
5725 unsigned long ulongval () { return (long) (sizeof (long)); }
5726 #include <stdio.h>
5727 #include <stdlib.h>
5728 int
5729 main ()
5730 {
5731
5732   FILE *f = fopen ("conftest.val", "w");
5733   if (! f)
5734     exit (1);
5735   if (((long) (sizeof (long))) < 0)
5736     {
5737       long i = longval ();
5738       if (i != ((long) (sizeof (long))))
5739         exit (1);
5740       fprintf (f, "%ld\n", i);
5741     }
5742   else
5743     {
5744       unsigned long i = ulongval ();
5745       if (i != ((long) (sizeof (long))))
5746         exit (1);
5747       fprintf (f, "%lu\n", i);
5748     }
5749   exit (ferror (f) || fclose (f) != 0);
5750
5751   ;
5752   return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest$ac_exeext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757   (eval $ac_link) 2>&5
5758   ac_status=$?
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; }; then
5766   ac_cv_sizeof_long=`cat conftest.val`
5767 else
5768   echo "$as_me: program exited with status $ac_status" >&5
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5771
5772 ( exit $ac_status )
5773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5774 See \`config.log' for more details." >&5
5775 echo "$as_me: error: cannot compute sizeof (long), 77
5776 See \`config.log' for more details." >&2;}
5777    { (exit 1); exit 1; }; }
5778 fi
5779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5780 fi
5781 fi
5782 rm -f conftest.val
5783 else
5784   ac_cv_sizeof_long=0
5785 fi
5786 fi
5787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5788 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5789 cat >>confdefs.h <<_ACEOF
5790 #define SIZEOF_LONG $ac_cv_sizeof_long
5791 _ACEOF
5792
5793
5794 echo "$as_me:$LINENO: checking for long long" >&5
5795 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5796 if test "${ac_cv_type_long_long+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 $ac_includes_default
5806 int
5807 main ()
5808 {
5809 if ((long long *) 0)
5810   return 0;
5811 if (sizeof (long long))
5812   return 0;
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819   (eval $ac_compile) 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -z "$ac_c_werror_flag"
5827                          || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest.$ac_objext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_cv_type_long_long=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_cv_type_long_long=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5849 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5850 if test $ac_cv_type_long_long = yes; then
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_LONG_LONG 1
5854 _ACEOF
5855
5856 echo "$as_me:$LINENO: checking for long long" >&5
5857 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5858 if test "${ac_cv_type_long_long+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h.  */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h.  */
5867 $ac_includes_default
5868 int
5869 main ()
5870 {
5871 if ((long long *) 0)
5872   return 0;
5873 if (sizeof (long long))
5874   return 0;
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag"
5889                          || test ! -s conftest.err'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_type_long_long=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_cv_type_long_long=no
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5911 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5912
5913 echo "$as_me:$LINENO: checking size of long long" >&5
5914 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5915 if test "${ac_cv_sizeof_long_long+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test "$ac_cv_type_long_long" = yes; then
5919   # The cast to unsigned long works around a bug in the HP C Compiler
5920   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5921   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5922   # This bug is HP SR number 8606223364.
5923   if test "$cross_compiling" = yes; then
5924   # Depending upon the size, compute the lo and hi bounds.
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 $ac_includes_default
5932 int
5933 main ()
5934 {
5935 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5936 test_array [0] = 0
5937
5938   ;
5939   return 0;
5940 }
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944   (eval $ac_compile) 2>conftest.er1
5945   ac_status=$?
5946   grep -v '^ *+' conftest.er1 >conftest.err
5947   rm -f conftest.er1
5948   cat conftest.err >&5
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } &&
5951          { ac_try='test -z "$ac_c_werror_flag"
5952                          || test ! -s conftest.err'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; } &&
5958          { ac_try='test -s conftest.$ac_objext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964   ac_lo=0 ac_mid=0
5965   while :; do
5966     cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 $ac_includes_default
5973 int
5974 main ()
5975 {
5976 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5977 test_array [0] = 0
5978
5979   ;
5980   return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985   (eval $ac_compile) 2>conftest.er1
5986   ac_status=$?
5987   grep -v '^ *+' conftest.er1 >conftest.err
5988   rm -f conftest.er1
5989   cat conftest.err >&5
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); } &&
5992          { ac_try='test -z "$ac_c_werror_flag"
5993                          || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_hi=$ac_mid; break
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_lo=`expr $ac_mid + 1`
6011                     if test $ac_lo -le $ac_mid; then
6012                       ac_lo= ac_hi=
6013                       break
6014                     fi
6015                     ac_mid=`expr 2 '*' $ac_mid + 1`
6016 fi
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018   done
6019 else
6020   echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 $ac_includes_default
6030 int
6031 main ()
6032 {
6033 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6034 test_array [0] = 0
6035
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042   (eval $ac_compile) 2>conftest.er1
6043   ac_status=$?
6044   grep -v '^ *+' conftest.er1 >conftest.err
6045   rm -f conftest.er1
6046   cat conftest.err >&5
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); } &&
6049          { ac_try='test -z "$ac_c_werror_flag"
6050                          || test ! -s conftest.err'
6051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052   (eval $ac_try) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); }; } &&
6056          { ac_try='test -s conftest.$ac_objext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_hi=-1 ac_mid=-1
6063   while :; do
6064     cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070 $ac_includes_default
6071 int
6072 main ()
6073 {
6074 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6075 test_array [0] = 0
6076
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083   (eval $ac_compile) 2>conftest.er1
6084   ac_status=$?
6085   grep -v '^ *+' conftest.er1 >conftest.err
6086   rm -f conftest.er1
6087   cat conftest.err >&5
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); } &&
6090          { ac_try='test -z "$ac_c_werror_flag"
6091                          || test ! -s conftest.err'
6092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093   (eval $ac_try) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; } &&
6097          { ac_try='test -s conftest.$ac_objext'
6098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6099   (eval $ac_try) 2>&5
6100   ac_status=$?
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); }; }; then
6103   ac_lo=$ac_mid; break
6104 else
6105   echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 ac_hi=`expr '(' $ac_mid ')' - 1`
6109                        if test $ac_mid -le $ac_hi; then
6110                          ac_lo= ac_hi=
6111                          break
6112                        fi
6113                        ac_mid=`expr 2 '*' $ac_mid`
6114 fi
6115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6116   done
6117 else
6118   echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.$ac_ext >&5
6120
6121 ac_lo= ac_hi=
6122 fi
6123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6124 fi
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126 # Binary search between lo and hi bounds.
6127 while test "x$ac_lo" != "x$ac_hi"; do
6128   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6129   cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h.  */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h.  */
6135 $ac_includes_default
6136 int
6137 main ()
6138 {
6139 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6140 test_array [0] = 0
6141
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148   (eval $ac_compile) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"
6156                          || test ! -s conftest.err'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; } &&
6162          { ac_try='test -s conftest.$ac_objext'
6163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164   (eval $ac_try) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); }; }; then
6168   ac_hi=$ac_mid
6169 else
6170   echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_lo=`expr '(' $ac_mid ')' + 1`
6174 fi
6175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 done
6177 case $ac_lo in
6178 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6180 See \`config.log' for more details." >&5
6181 echo "$as_me: error: cannot compute sizeof (long long), 77
6182 See \`config.log' for more details." >&2;}
6183    { (exit 1); exit 1; }; } ;;
6184 esac
6185 else
6186   if test "$cross_compiling" = yes; then
6187   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6188 See \`config.log' for more details." >&5
6189 echo "$as_me: error: cannot run test program while cross compiling
6190 See \`config.log' for more details." >&2;}
6191    { (exit 1); exit 1; }; }
6192 else
6193   cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199 $ac_includes_default
6200 long longval () { return (long) (sizeof (long long)); }
6201 unsigned long ulongval () { return (long) (sizeof (long long)); }
6202 #include <stdio.h>
6203 #include <stdlib.h>
6204 int
6205 main ()
6206 {
6207
6208   FILE *f = fopen ("conftest.val", "w");
6209   if (! f)
6210     exit (1);
6211   if (((long) (sizeof (long long))) < 0)
6212     {
6213       long i = longval ();
6214       if (i != ((long) (sizeof (long long))))
6215         exit (1);
6216       fprintf (f, "%ld\n", i);
6217     }
6218   else
6219     {
6220       unsigned long i = ulongval ();
6221       if (i != ((long) (sizeof (long long))))
6222         exit (1);
6223       fprintf (f, "%lu\n", i);
6224     }
6225   exit (ferror (f) || fclose (f) != 0);
6226
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest$ac_exeext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233   (eval $ac_link) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238   (eval $ac_try) 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }; }; then
6242   ac_cv_sizeof_long_long=`cat conftest.val`
6243 else
6244   echo "$as_me: program exited with status $ac_status" >&5
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ( exit $ac_status )
6249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6250 See \`config.log' for more details." >&5
6251 echo "$as_me: error: cannot compute sizeof (long long), 77
6252 See \`config.log' for more details." >&2;}
6253    { (exit 1); exit 1; }; }
6254 fi
6255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6256 fi
6257 fi
6258 rm -f conftest.val
6259 else
6260   ac_cv_sizeof_long_long=0
6261 fi
6262 fi
6263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6264 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6265 cat >>confdefs.h <<_ACEOF
6266 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6267 _ACEOF
6268
6269
6270 fi
6271
6272 echo "$as_me:$LINENO: checking for __int64" >&5
6273 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6274 if test "${ac_cv_type___int64+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h.  */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h.  */
6283 $ac_includes_default
6284 int
6285 main ()
6286 {
6287 if ((__int64 *) 0)
6288   return 0;
6289 if (sizeof (__int64))
6290   return 0;
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297   (eval $ac_compile) 2>conftest.er1
6298   ac_status=$?
6299   grep -v '^ *+' conftest.er1 >conftest.err
6300   rm -f conftest.er1
6301   cat conftest.err >&5
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } &&
6304          { ac_try='test -z "$ac_c_werror_flag"
6305                          || test ! -s conftest.err'
6306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307   (eval $ac_try) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; } &&
6311          { ac_try='test -s conftest.$ac_objext'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317   ac_cv_type___int64=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_cv_type___int64=no
6323 fi
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6327 echo "${ECHO_T}$ac_cv_type___int64" >&6
6328 if test $ac_cv_type___int64 = yes; then
6329
6330 cat >>confdefs.h <<_ACEOF
6331 #define HAVE___INT64 1
6332 _ACEOF
6333
6334 echo "$as_me:$LINENO: checking for __int64" >&5
6335 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6336 if test "${ac_cv_type___int64+set}" = set; then
6337   echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339   cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345 $ac_includes_default
6346 int
6347 main ()
6348 {
6349 if ((__int64 *) 0)
6350   return 0;
6351 if (sizeof (__int64))
6352   return 0;
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6359   (eval $ac_compile) 2>conftest.er1
6360   ac_status=$?
6361   grep -v '^ *+' conftest.er1 >conftest.err
6362   rm -f conftest.er1
6363   cat conftest.err >&5
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } &&
6366          { ac_try='test -z "$ac_c_werror_flag"
6367                          || test ! -s conftest.err'
6368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369   (eval $ac_try) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); }; } &&
6373          { ac_try='test -s conftest.$ac_objext'
6374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }; }; then
6379   ac_cv_type___int64=yes
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6383
6384 ac_cv_type___int64=no
6385 fi
6386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6387 fi
6388 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6389 echo "${ECHO_T}$ac_cv_type___int64" >&6
6390
6391 echo "$as_me:$LINENO: checking size of __int64" >&5
6392 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6393 if test "${ac_cv_sizeof___int64+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396   if test "$ac_cv_type___int64" = yes; then
6397   # The cast to unsigned long works around a bug in the HP C Compiler
6398   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6399   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6400   # This bug is HP SR number 8606223364.
6401   if test "$cross_compiling" = yes; then
6402   # Depending upon the size, compute the lo and hi bounds.
6403 cat >conftest.$ac_ext <<_ACEOF
6404 /* confdefs.h.  */
6405 _ACEOF
6406 cat confdefs.h >>conftest.$ac_ext
6407 cat >>conftest.$ac_ext <<_ACEOF
6408 /* end confdefs.h.  */
6409 $ac_includes_default
6410 int
6411 main ()
6412 {
6413 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6414 test_array [0] = 0
6415
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_lo=0 ac_mid=0
6443   while :; do
6444     cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h.  */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h.  */
6450 $ac_includes_default
6451 int
6452 main ()
6453 {
6454 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6455 test_array [0] = 0
6456
6457   ;
6458   return 0;
6459 }
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463   (eval $ac_compile) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } &&
6470          { ac_try='test -z "$ac_c_werror_flag"
6471                          || test ! -s conftest.err'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; } &&
6477          { ac_try='test -s conftest.$ac_objext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   ac_hi=$ac_mid; break
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ac_lo=`expr $ac_mid + 1`
6489                     if test $ac_lo -le $ac_mid; then
6490                       ac_lo= ac_hi=
6491                       break
6492                     fi
6493                     ac_mid=`expr 2 '*' $ac_mid + 1`
6494 fi
6495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6496   done
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507 $ac_includes_default
6508 int
6509 main ()
6510 {
6511 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6512 test_array [0] = 0
6513
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520   (eval $ac_compile) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_hi=-1 ac_mid=-1
6541   while :; do
6542     cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h.  */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h.  */
6548 $ac_includes_default
6549 int
6550 main ()
6551 {
6552 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6553 test_array [0] = 0
6554
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561   (eval $ac_compile) 2>conftest.er1
6562   ac_status=$?
6563   grep -v '^ *+' conftest.er1 >conftest.err
6564   rm -f conftest.er1
6565   cat conftest.err >&5
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); } &&
6568          { ac_try='test -z "$ac_c_werror_flag"
6569                          || test ! -s conftest.err'
6570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571   (eval $ac_try) 2>&5
6572   ac_status=$?
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); }; } &&
6575          { ac_try='test -s conftest.$ac_objext'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   ac_lo=$ac_mid; break
6582 else
6583   echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 ac_hi=`expr '(' $ac_mid ')' - 1`
6587                        if test $ac_mid -le $ac_hi; then
6588                          ac_lo= ac_hi=
6589                          break
6590                        fi
6591                        ac_mid=`expr 2 '*' $ac_mid`
6592 fi
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6594   done
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_lo= ac_hi=
6600 fi
6601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6602 fi
6603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604 # Binary search between lo and hi bounds.
6605 while test "x$ac_lo" != "x$ac_hi"; do
6606   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6607   cat >conftest.$ac_ext <<_ACEOF
6608 /* confdefs.h.  */
6609 _ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h.  */
6613 $ac_includes_default
6614 int
6615 main ()
6616 {
6617 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6618 test_array [0] = 0
6619
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626   (eval $ac_compile) 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -z "$ac_c_werror_flag"
6634                          || test ! -s conftest.err'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; } &&
6640          { ac_try='test -s conftest.$ac_objext'
6641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); }; }; then
6646   ac_hi=$ac_mid
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_lo=`expr '(' $ac_mid ')' + 1`
6652 fi
6653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6654 done
6655 case $ac_lo in
6656 ?*) ac_cv_sizeof___int64=$ac_lo;;
6657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6658 See \`config.log' for more details." >&5
6659 echo "$as_me: error: cannot compute sizeof (__int64), 77
6660 See \`config.log' for more details." >&2;}
6661    { (exit 1); exit 1; }; } ;;
6662 esac
6663 else
6664   if test "$cross_compiling" = yes; then
6665   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6666 See \`config.log' for more details." >&5
6667 echo "$as_me: error: cannot run test program while cross compiling
6668 See \`config.log' for more details." >&2;}
6669    { (exit 1); exit 1; }; }
6670 else
6671   cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 $ac_includes_default
6678 long longval () { return (long) (sizeof (__int64)); }
6679 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6680 #include <stdio.h>
6681 #include <stdlib.h>
6682 int
6683 main ()
6684 {
6685
6686   FILE *f = fopen ("conftest.val", "w");
6687   if (! f)
6688     exit (1);
6689   if (((long) (sizeof (__int64))) < 0)
6690     {
6691       long i = longval ();
6692       if (i != ((long) (sizeof (__int64))))
6693         exit (1);
6694       fprintf (f, "%ld\n", i);
6695     }
6696   else
6697     {
6698       unsigned long i = ulongval ();
6699       if (i != ((long) (sizeof (__int64))))
6700         exit (1);
6701       fprintf (f, "%lu\n", i);
6702     }
6703   exit (ferror (f) || fclose (f) != 0);
6704
6705   ;
6706   return 0;
6707 }
6708 _ACEOF
6709 rm -f conftest$ac_exeext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711   (eval $ac_link) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; }; then
6720   ac_cv_sizeof___int64=`cat conftest.val`
6721 else
6722   echo "$as_me: program exited with status $ac_status" >&5
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726 ( exit $ac_status )
6727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6728 See \`config.log' for more details." >&5
6729 echo "$as_me: error: cannot compute sizeof (__int64), 77
6730 See \`config.log' for more details." >&2;}
6731    { (exit 1); exit 1; }; }
6732 fi
6733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6734 fi
6735 fi
6736 rm -f conftest.val
6737 else
6738   ac_cv_sizeof___int64=0
6739 fi
6740 fi
6741 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6742 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6743 cat >>confdefs.h <<_ACEOF
6744 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6745 _ACEOF
6746
6747
6748 fi
6749
6750
6751 # ---------------------
6752 # Warnings and checking
6753 # ---------------------
6754
6755 # Check $CC warning features (if it's GCC).
6756 # We want to use -pedantic, but we don't want warnings about
6757 # * 'long long'
6758 # * variadic macros
6759 # * overlong strings
6760 # So, we only use -pedantic if we can disable those warnings.
6761
6762 loose_warn=
6763 save_CFLAGS="$CFLAGS"
6764 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6765                           -Wmissing-prototypes; do
6766   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6767
6768   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6769 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6770 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6771   echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773   CFLAGS="$option"
6774     cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h.  */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h.  */
6780
6781 int
6782 main ()
6783 {
6784
6785   ;
6786   return 0;
6787 }
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791   (eval $ac_compile) 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -z "$ac_c_werror_flag"
6799                          || test ! -s conftest.err'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; } &&
6805          { ac_try='test -s conftest.$ac_objext'
6806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; }; then
6811   eval "$as_acx_Woption=yes"
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816 eval "$as_acx_Woption=no"
6817 fi
6818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6819
6820 fi
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6823   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6824   loose_warn="$loose_warn${loose_warn:+ }$option"
6825 fi
6826
6827   done
6828 CFLAGS="$save_CFLAGS"
6829
6830 cxx_compat_warn=
6831 save_CFLAGS="$CFLAGS"
6832 for option in -Wc++-compat; do
6833   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6834
6835   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6836 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6837 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6838   echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840   CFLAGS="$option"
6841     cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847
6848 int
6849 main ()
6850 {
6851
6852   ;
6853   return 0;
6854 }
6855 _ACEOF
6856 rm -f conftest.$ac_objext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6858   (eval $ac_compile) 2>conftest.er1
6859   ac_status=$?
6860   grep -v '^ *+' conftest.er1 >conftest.err
6861   rm -f conftest.er1
6862   cat conftest.err >&5
6863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864   (exit $ac_status); } &&
6865          { ac_try='test -z "$ac_c_werror_flag"
6866                          || test ! -s conftest.err'
6867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868   (eval $ac_try) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; } &&
6872          { ac_try='test -s conftest.$ac_objext'
6873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874   (eval $ac_try) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; }; then
6878   eval "$as_acx_Woption=yes"
6879 else
6880   echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 eval "$as_acx_Woption=no"
6884 fi
6885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6886
6887 fi
6888 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6889 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6890   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6891   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6892 fi
6893
6894   done
6895 CFLAGS="$save_CFLAGS"
6896
6897 strict_warn=
6898 save_CFLAGS="$CFLAGS"
6899 for option in -Wold-style-definition \
6900                           -Wmissing-format-attribute; do
6901   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6902
6903   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6904 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6905 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6906   echo $ECHO_N "(cached) $ECHO_C" >&6
6907 else
6908   CFLAGS="$option"
6909     cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915
6916 int
6917 main ()
6918 {
6919
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6926   (eval $ac_compile) 2>conftest.er1
6927   ac_status=$?
6928   grep -v '^ *+' conftest.er1 >conftest.err
6929   rm -f conftest.er1
6930   cat conftest.err >&5
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } &&
6933          { ac_try='test -z "$ac_c_werror_flag"
6934                          || test ! -s conftest.err'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; } &&
6940          { ac_try='test -s conftest.$ac_objext'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; }; then
6946   eval "$as_acx_Woption=yes"
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951 eval "$as_acx_Woption=no"
6952 fi
6953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6954
6955 fi
6956 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6957 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6958   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6959   strict_warn="$strict_warn${strict_warn:+ }$option"
6960 fi
6961
6962   done
6963 CFLAGS="$save_CFLAGS"
6964
6965 if test "$GCC" = yes; then
6966   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6967                                      -Wno-overlength-strings" >&5
6968 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6969                                      -Wno-overlength-strings... $ECHO_C" >&6
6970 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   save_CFLAGS="$CFLAGS"
6974 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6975                                      -Wno-overlength-strings"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993   (eval $ac_compile) 2>conftest.er1
6994   ac_status=$?
6995   grep -v '^ *+' conftest.er1 >conftest.err
6996   rm -f conftest.er1
6997   cat conftest.err >&5
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } &&
7000          { ac_try='test -z "$ac_c_werror_flag"
7001                          || test ! -s conftest.err'
7002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003   (eval $ac_try) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }; } &&
7007          { ac_try='test -s conftest.$ac_objext'
7008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009   (eval $ac_try) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; }; then
7013   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7019 fi
7020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7021 CFLAGS="$save_CFLAGS"
7022 fi
7023 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7024 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7025 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7026   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7027                                      -Wno-overlength-strings"
7028 fi
7029
7030
7031 fi
7032
7033
7034 # Check whether --enable-werror-always or --disable-werror-always was given.
7035 if test "${enable_werror_always+set}" = set; then
7036   enableval="$enable_werror_always"
7037
7038 else
7039   enable_werror_always=no
7040 fi;
7041 if test $enable_werror_always = yes; then
7042   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7043 fi
7044
7045
7046
7047
7048 # The above macros do nothing if the compiler is not GCC.  However, the
7049 # Makefile has more goo to add other flags, so this variabl is used to
7050 # enables warnings only for GCC.
7051 warn_cflags=
7052 if test "x$GCC" = "xyes"; then
7053   warn_cflags='$(GCC_WARN_CFLAGS)'
7054 fi
7055
7056
7057 # Enable expensive internal checks
7058 is_release=
7059 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7060   is_release=yes
7061 fi
7062
7063 # Check whether --enable-checking or --disable-checking was given.
7064 if test "${enable_checking+set}" = set; then
7065   enableval="$enable_checking"
7066   ac_checking_flags="${enableval}"
7067 else
7068
7069 # Determine the default checks.
7070 if test x$is_release = x ; then
7071   ac_checking_flags=yes
7072 else
7073   ac_checking_flags=release
7074 fi
7075 fi;
7076 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7077 for check in release $ac_checking_flags
7078 do
7079         case $check in
7080         # these set all the flags to specific states
7081         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7082                         ac_fold_checking= ; ac_gc_checking=1 ;
7083                         ac_gc_always_collect= ; ac_rtl_checking= ;
7084                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7085                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7086                         ac_types_checking=1 ;;
7087         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7088                         ac_fold_checking= ; ac_gc_checking= ;
7089                         ac_gc_always_collect= ; ac_rtl_checking= ;
7090                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7091                         ac_tree_checking= ; ac_valgrind_checking= ;
7092                         ac_types_checking= ;;
7093         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7094                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7095                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
7096                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7097                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7098                         ac_types_checking=1 ;;
7099         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7100                         ac_fold_checking= ; ac_gc_checking= ;
7101                         ac_gc_always_collect= ; ac_rtl_checking= ;
7102                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7103                         ac_tree_checking= ; ac_valgrind_checking= ;
7104                         ac_types_checking= ;;
7105         # these enable particular checks
7106         assert)         ac_assert_checking=1 ;;
7107         df)             ac_df_checking=1 ;;
7108         fold)           ac_fold_checking=1 ;;
7109         gc)             ac_gc_checking=1 ;;
7110         gcac)           ac_gc_always_collect=1 ;;
7111         misc)           ac_checking=1 ;;
7112         rtl)            ac_rtl_checking=1 ;;
7113         rtlflag)        ac_rtlflag_checking=1 ;;
7114         runtime)        ac_runtime_checking=1 ;;
7115         tree)           ac_tree_checking=1 ;;
7116         types)          ac_types_checking=1 ;;
7117         valgrind)       ac_valgrind_checking=1 ;;
7118         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7119 echo "$as_me: error: unknown check category $check" >&2;}
7120    { (exit 1); exit 1; }; } ;;
7121         esac
7122 done
7123 IFS="$ac_save_IFS"
7124
7125 nocommon_flag=""
7126 if test x$ac_checking != x ; then
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define ENABLE_CHECKING 1
7130 _ACEOF
7131
7132   nocommon_flag=-fno-common
7133 fi
7134
7135 if test x$ac_df_checking != x ; then
7136
7137 cat >>confdefs.h <<\_ACEOF
7138 #define ENABLE_DF_CHECKING 1
7139 _ACEOF
7140
7141 fi
7142 if test x$ac_assert_checking != x ; then
7143
7144 cat >>confdefs.h <<\_ACEOF
7145 #define ENABLE_ASSERT_CHECKING 1
7146 _ACEOF
7147
7148 fi
7149
7150 if test x$ac_runtime_checking != x ; then
7151
7152 cat >>confdefs.h <<\_ACEOF
7153 #define ENABLE_RUNTIME_CHECKING 1
7154 _ACEOF
7155
7156 fi
7157 if test x$ac_tree_checking != x ; then
7158
7159 cat >>confdefs.h <<\_ACEOF
7160 #define ENABLE_TREE_CHECKING 1
7161 _ACEOF
7162
7163   TREEBROWSER=tree-browser.o
7164 fi
7165 if test x$ac_types_checking != x ; then
7166
7167 cat >>confdefs.h <<\_ACEOF
7168 #define ENABLE_TYPES_CHECKING 1
7169 _ACEOF
7170
7171 fi
7172
7173 if test x$ac_rtl_checking != x ; then
7174
7175 cat >>confdefs.h <<\_ACEOF
7176 #define ENABLE_RTL_CHECKING 1
7177 _ACEOF
7178
7179 fi
7180 if test x$ac_rtlflag_checking != x ; then
7181
7182 cat >>confdefs.h <<\_ACEOF
7183 #define ENABLE_RTL_FLAG_CHECKING 1
7184 _ACEOF
7185
7186 fi
7187 if test x$ac_gc_checking != x ; then
7188
7189 cat >>confdefs.h <<\_ACEOF
7190 #define ENABLE_GC_CHECKING 1
7191 _ACEOF
7192
7193 fi
7194 if test x$ac_gc_always_collect != x ; then
7195
7196 cat >>confdefs.h <<\_ACEOF
7197 #define ENABLE_GC_ALWAYS_COLLECT 1
7198 _ACEOF
7199
7200 fi
7201 if test x$ac_fold_checking != x ; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define ENABLE_FOLD_CHECKING 1
7205 _ACEOF
7206
7207 fi
7208 valgrind_path_defines=
7209 valgrind_command=
7210
7211 if test "${ac_cv_header_valgrind_h+set}" = set; then
7212   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7213 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7214 if test "${ac_cv_header_valgrind_h+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 fi
7217 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7218 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7219 else
7220   # Is the header compilable?
7221 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7222 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 $ac_includes_default
7230 #include <valgrind.h>
7231 _ACEOF
7232 rm -f conftest.$ac_objext
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234   (eval $ac_compile) 2>conftest.er1
7235   ac_status=$?
7236   grep -v '^ *+' conftest.er1 >conftest.err
7237   rm -f conftest.er1
7238   cat conftest.err >&5
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } &&
7241          { ac_try='test -z "$ac_c_werror_flag"
7242                          || test ! -s conftest.err'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; } &&
7248          { ac_try='test -s conftest.$ac_objext'
7249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250   (eval $ac_try) 2>&5
7251   ac_status=$?
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); }; }; then
7254   ac_header_compiler=yes
7255 else
7256   echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7258
7259 ac_header_compiler=no
7260 fi
7261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7263 echo "${ECHO_T}$ac_header_compiler" >&6
7264
7265 # Is the header present?
7266 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7267 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274 #include <valgrind.h>
7275 _ACEOF
7276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7278   ac_status=$?
7279   grep -v '^ *+' conftest.er1 >conftest.err
7280   rm -f conftest.er1
7281   cat conftest.err >&5
7282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283   (exit $ac_status); } >/dev/null; then
7284   if test -s conftest.err; then
7285     ac_cpp_err=$ac_c_preproc_warn_flag
7286     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7287   else
7288     ac_cpp_err=
7289   fi
7290 else
7291   ac_cpp_err=yes
7292 fi
7293 if test -z "$ac_cpp_err"; then
7294   ac_header_preproc=yes
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299   ac_header_preproc=no
7300 fi
7301 rm -f conftest.err conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7303 echo "${ECHO_T}$ac_header_preproc" >&6
7304
7305 # So?  What about this header?
7306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7307   yes:no: )
7308     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7309 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7310     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7311 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7312     ac_header_preproc=yes
7313     ;;
7314   no:yes:* )
7315     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7316 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7317     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7318 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7319     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7320 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7321     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7322 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7323     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7324 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7325     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7326 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7327     (
7328       cat <<\_ASBOX
7329 ## ------------------------------------------ ##
7330 ## Report this to the AC_PACKAGE_NAME lists.  ##
7331 ## ------------------------------------------ ##
7332 _ASBOX
7333     ) |
7334       sed "s/^/$as_me: WARNING:     /" >&2
7335     ;;
7336 esac
7337 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7338 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7339 if test "${ac_cv_header_valgrind_h+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   ac_cv_header_valgrind_h=$ac_header_preproc
7343 fi
7344 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7345 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7346
7347 fi
7348 if test $ac_cv_header_valgrind_h = yes; then
7349   have_valgrind_h=yes
7350 else
7351   have_valgrind_h=no
7352 fi
7353
7354
7355
7356 if test x$ac_valgrind_checking != x ; then
7357   # It is certainly possible that there's valgrind but no valgrind.h.
7358   # GCC relies on making annotations so we must have both.
7359   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7360 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7361   cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h.  */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h.  */
7367 #include <valgrind/memcheck.h>
7368 #ifndef VALGRIND_DISCARD
7369 #error VALGRIND_DISCARD not defined
7370 #endif
7371 _ACEOF
7372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7374   ac_status=$?
7375   grep -v '^ *+' conftest.er1 >conftest.err
7376   rm -f conftest.er1
7377   cat conftest.err >&5
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } >/dev/null; then
7380   if test -s conftest.err; then
7381     ac_cpp_err=$ac_c_preproc_warn_flag
7382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7383   else
7384     ac_cpp_err=
7385   fi
7386 else
7387   ac_cpp_err=yes
7388 fi
7389 if test -z "$ac_cpp_err"; then
7390   gcc_cv_header_valgrind_memcheck_h=yes
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395   gcc_cv_header_valgrind_memcheck_h=no
7396 fi
7397 rm -f conftest.err conftest.$ac_ext
7398   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7399 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7400   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7401 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7402   cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h.  */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h.  */
7408 #include <memcheck.h>
7409 #ifndef VALGRIND_DISCARD
7410 #error VALGRIND_DISCARD not defined
7411 #endif
7412 _ACEOF
7413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7414   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415   ac_status=$?
7416   grep -v '^ *+' conftest.er1 >conftest.err
7417   rm -f conftest.er1
7418   cat conftest.err >&5
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); } >/dev/null; then
7421   if test -s conftest.err; then
7422     ac_cpp_err=$ac_c_preproc_warn_flag
7423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7424   else
7425     ac_cpp_err=
7426   fi
7427 else
7428   ac_cpp_err=yes
7429 fi
7430 if test -z "$ac_cpp_err"; then
7431   gcc_cv_header_memcheck_h=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436   gcc_cv_header_memcheck_h=no
7437 fi
7438 rm -f conftest.err conftest.$ac_ext
7439   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7440 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7441
7442 # Prepare PATH_SEPARATOR.
7443 # The user is always right.
7444 if test "${PATH_SEPARATOR+set}" != set; then
7445   echo "#! /bin/sh" >conf$$.sh
7446   echo  "exit 0"   >>conf$$.sh
7447   chmod +x conf$$.sh
7448   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7449     PATH_SEPARATOR=';'
7450   else
7451     PATH_SEPARATOR=:
7452   fi
7453   rm -f conf$$.sh
7454 fi
7455
7456 # Find out how to test for executable files. Don't use a zero-byte file,
7457 # as systems may use methods other than mode bits to determine executability.
7458 cat >conf$$.file <<_ASEOF
7459 #! /bin/sh
7460 exit 0
7461 _ASEOF
7462 chmod +x conf$$.file
7463 if test -x conf$$.file >/dev/null 2>&1; then
7464   ac_executable_p="test -x"
7465 else
7466   ac_executable_p="test -f"
7467 fi
7468 rm -f conf$$.file
7469
7470 # Extract the first word of "valgrind", so it can be a program name with args.
7471 set dummy valgrind; ac_word=$2
7472 echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7474 if test "${ac_cv_path_valgrind_path+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   case "$valgrind_path" in
7478   [\\/]* | ?:[\\/]*)
7479     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7480     ;;
7481   *)
7482     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7483     for ac_dir in $PATH; do
7484       IFS="$ac_save_IFS"
7485       test -z "$ac_dir" && ac_dir=.
7486       for ac_exec_ext in '' $ac_executable_extensions; do
7487         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7488           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7489             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7490             break 2
7491           fi
7492         fi
7493       done
7494     done
7495     IFS="$ac_save_IFS"
7496     ;;
7497 esac
7498 fi
7499 valgrind_path="$ac_cv_path_valgrind_path"
7500 if test -n "$valgrind_path"; then
7501   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7502 echo "${ECHO_T}$valgrind_path" >&6
7503 else
7504   echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7506 fi
7507
7508   if test "x$valgrind_path" = "x" \
7509     || (test $have_valgrind_h = no \
7510         && test $gcc_cv_header_memcheck_h = no \
7511         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7512         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7513 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7514    { (exit 1); exit 1; }; }
7515   fi
7516   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7517   valgrind_command="$valgrind_path -q"
7518
7519 cat >>confdefs.h <<\_ACEOF
7520 #define ENABLE_VALGRIND_CHECKING 1
7521 _ACEOF
7522
7523   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_VALGRIND_MEMCHECK_H 1
7527 _ACEOF
7528
7529   fi
7530   if test $gcc_cv_header_memcheck_h = yes; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_MEMCHECK_H 1
7534 _ACEOF
7535
7536   fi
7537 fi
7538
7539
7540
7541 # Enable code coverage collection
7542 # Check whether --enable-coverage or --disable-coverage was given.
7543 if test "${enable_coverage+set}" = set; then
7544   enableval="$enable_coverage"
7545   case "${enableval}" in
7546   yes|noopt)
7547     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7548     ;;
7549   opt)
7550     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7551     ;;
7552   no)
7553     # a.k.a. --disable-coverage
7554     coverage_flags=""
7555     ;;
7556   *)
7557     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7558 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7559    { (exit 1); exit 1; }; }
7560     ;;
7561 esac
7562 else
7563   coverage_flags=""
7564 fi;
7565
7566
7567 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7568 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7569   enableval="$enable_gather_detailed_mem_stats"
7570
7571 else
7572   enable_gather_detailed_mem_stats=no
7573 fi;
7574 if test x$enable_gather_detailed_mem_stats = xyes ; then
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define GATHER_STATISTICS 1
7578 _ACEOF
7579
7580 fi
7581
7582 # -------------------------------
7583 # Miscenalleous configure options
7584 # -------------------------------
7585
7586 # With stabs
7587
7588 # Check whether --with-stabs or --without-stabs was given.
7589 if test "${with_stabs+set}" = set; then
7590   withval="$with_stabs"
7591   stabs="$with_stabs"
7592 else
7593   stabs=no
7594 fi;
7595
7596 # Determine whether or not multilibs are enabled.
7597 # Check whether --enable-multilib or --disable-multilib was given.
7598 if test "${enable_multilib+set}" = set; then
7599   enableval="$enable_multilib"
7600
7601 else
7602   enable_multilib=yes
7603 fi;
7604
7605
7606 # Enable __cxa_atexit for C++.
7607 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7608 if test "${enable___cxa_atexit+set}" = set; then
7609   enableval="$enable___cxa_atexit"
7610
7611 fi;
7612
7613 # Enable C extension for decimal float if target supports it.
7614 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7615 if test "${enable_decimal_float+set}" = set; then
7616   enableval="$enable_decimal_float"
7617
7618   case $enable_decimal_float in
7619     yes | no | bid | dpd) ;;
7620     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7621 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7622 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7623 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7624    { (exit 1); exit 1; }; } ;;
7625   esac
7626
7627 else
7628
7629   case $target in
7630     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7631       enable_decimal_float=yes
7632       ;;
7633     *)
7634       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7635 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7636       enable_decimal_float=no
7637       ;;
7638   esac
7639
7640 fi;
7641
7642 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7643
7644 cat >>confdefs.h <<_ACEOF
7645 #define ENABLE_DECIMAL_FLOAT $dfp
7646 _ACEOF
7647
7648
7649 # x86's use BID format instead of DPD
7650 case x$enable_decimal_float in
7651   xyes)
7652     case $target in
7653       i?86*-*-linux* | x86_64*-*-linux*)
7654         enable_decimal_float=bid
7655         ;;
7656       *)
7657         enable_decimal_float=dpd
7658         ;;
7659     esac
7660     ;;
7661   xno)
7662     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7663     # dependency on libdecnumber.
7664     enable_decimal_float=dpd
7665     ;;
7666 esac
7667
7668
7669 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7670
7671 cat >>confdefs.h <<_ACEOF
7672 #define ENABLE_DECIMAL_BID_FORMAT $bid
7673 _ACEOF
7674
7675
7676 # Enable C extension for fixed-point arithmetic.
7677 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7678 if test "${enable_fixed_point+set}" = set; then
7679   enableval="$enable_fixed_point"
7680
7681
7682 else
7683
7684   case $target in
7685     mips*-*-*)
7686       case $host in
7687         mips*-sgi-irix*)
7688           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7689 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7690           enable_fixed_point=no
7691           ;;
7692         *)
7693           enable_fixed_point=yes
7694           ;;
7695       esac
7696       ;;
7697     *)
7698       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7699 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7700       enable_fixed_point=no
7701       ;;
7702   esac
7703
7704 fi;
7705
7706
7707 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7708
7709 cat >>confdefs.h <<_ACEOF
7710 #define ENABLE_FIXED_POINT $fixedpoint
7711 _ACEOF
7712
7713
7714 # Enable threads
7715 # Pass with no value to take the default
7716 # Pass with a value to specify a thread package
7717 # Check whether --enable-threads or --disable-threads was given.
7718 if test "${enable_threads+set}" = set; then
7719   enableval="$enable_threads"
7720
7721 else
7722   enable_threads=''
7723 fi;
7724
7725 # Check whether --enable-tls or --disable-tls was given.
7726 if test "${enable_tls+set}" = set; then
7727   enableval="$enable_tls"
7728
7729   case $enable_tls in
7730     yes | no) ;;
7731     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7732 Valid choices are 'yes' and 'no'." >&5
7733 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7734 Valid choices are 'yes' and 'no'." >&2;}
7735    { (exit 1); exit 1; }; } ;;
7736   esac
7737
7738 else
7739   enable_tls=''
7740 fi;
7741
7742 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7743 if test "${enable_objc_gc+set}" = set; then
7744   enableval="$enable_objc_gc"
7745   if test x$enable_objc_gc = xno; then
7746         objc_boehm_gc=''
7747 else
7748         objc_boehm_gc=1
7749 fi
7750 else
7751   objc_boehm_gc=''
7752 fi;
7753
7754
7755 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7756 if test "${with_dwarf2+set}" = set; then
7757   withval="$with_dwarf2"
7758   dwarf2="$with_dwarf2"
7759 else
7760   dwarf2=no
7761 fi;
7762
7763 # Check whether --enable-shared or --disable-shared was given.
7764 if test "${enable_shared+set}" = set; then
7765   enableval="$enable_shared"
7766
7767   case $enable_shared in
7768   yes | no) ;;
7769   *)
7770     enable_shared=no
7771     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7772     for pkg in $enableval; do
7773       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7774         enable_shared=yes
7775       fi
7776     done
7777     IFS="$ac_save_ifs"
7778     ;;
7779   esac
7780
7781 else
7782   enable_shared=yes
7783 fi;
7784
7785
7786
7787 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7788 if test "${with_build_sysroot+set}" = set; then
7789   withval="$with_build_sysroot"
7790
7791 fi;
7792
7793
7794 # Check whether --with-sysroot or --without-sysroot was given.
7795 if test "${with_sysroot+set}" = set; then
7796   withval="$with_sysroot"
7797
7798  case ${with_sysroot} in
7799  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7800  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7801  esac
7802
7803  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7804  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7805
7806  if test "x$prefix" = xNONE; then
7807   test_prefix=/usr/local
7808  else
7809   test_prefix=$prefix
7810  fi
7811  if test "x$exec_prefix" = xNONE; then
7812   test_exec_prefix=$test_prefix
7813  else
7814   test_exec_prefix=$exec_prefix
7815  fi
7816  case ${TARGET_SYSTEM_ROOT} in
7817  "${test_prefix}"|"${test_prefix}/"*|\
7818  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7819  '${prefix}'|'${prefix}/'*|\
7820  '${exec_prefix}'|'${exec_prefix}/'*)
7821    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7822    TARGET_SYSTEM_ROOT_DEFINE="$t"
7823    ;;
7824  esac
7825
7826 else
7827
7828  TARGET_SYSTEM_ROOT=
7829  TARGET_SYSTEM_ROOT_DEFINE=
7830  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7831
7832 fi;
7833
7834
7835
7836
7837 # Build with intermodule optimisations
7838 # Check whether --enable-intermodule or --disable-intermodule was given.
7839 if test "${enable_intermodule+set}" = set; then
7840   enableval="$enable_intermodule"
7841   case ${enable_intermodule} in
7842   yes) onestep="-onestep";;
7843   *) onestep="";;
7844 esac
7845 else
7846   onestep=""
7847 fi;
7848
7849
7850
7851
7852 # Check whether --with-pkgversion or --without-pkgversion was given.
7853 if test "${with_pkgversion+set}" = set; then
7854   withval="$with_pkgversion"
7855   case "$withval" in
7856       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7857 echo "$as_me: error: package version not specified" >&2;}
7858    { (exit 1); exit 1; }; } ;;
7859       no)  PKGVERSION= ;;
7860       *)   PKGVERSION="($withval) " ;;
7861      esac
7862 else
7863   PKGVERSION="(GCC) "
7864
7865 fi;
7866
7867
7868
7869
7870 # Check whether --with-bugurl or --without-bugurl was given.
7871 if test "${with_bugurl+set}" = set; then
7872   withval="$with_bugurl"
7873   case "$withval" in
7874       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7875 echo "$as_me: error: bug URL not specified" >&2;}
7876    { (exit 1); exit 1; }; } ;;
7877       no)  BUGURL=
7878            ;;
7879       *)   BUGURL="$withval"
7880            ;;
7881      esac
7882 else
7883   BUGURL="http://gcc.gnu.org/bugs.html"
7884
7885 fi;
7886   case ${BUGURL} in
7887   "")
7888     REPORT_BUGS_TO=
7889     REPORT_BUGS_TEXI=
7890     ;;
7891   *)
7892     REPORT_BUGS_TO="<$BUGURL>"
7893     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7894     ;;
7895   esac;
7896
7897
7898
7899
7900 # Sanity check enable_languages in case someone does not run the toplevel
7901 # configure # script.
7902 # Check whether --enable-languages or --disable-languages was given.
7903 if test "${enable_languages+set}" = set; then
7904   enableval="$enable_languages"
7905   case ,${enable_languages}, in
7906        ,,|,yes,)
7907                 # go safe -- we cannot be much sure without the toplevel
7908                 # configure's
7909                 # analysis of which target libs are present and usable
7910                 enable_languages=c
7911                 ;;
7912          *,all,*)
7913                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7914 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7915    { (exit 1); exit 1; }; }
7916                 ;;
7917         *,c,*)
7918                 ;;
7919         *)
7920                 enable_languages=c,${enable_languages}
7921                 ;;
7922 esac
7923 else
7924   enable_languages=c
7925 fi;
7926
7927 # Used by documentation targets
7928
7929
7930
7931
7932 # -------------------------
7933 # Checks for other programs
7934 # -------------------------
7935
7936 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7937 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7938 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7939 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   cat >conftest.make <<\_ACEOF
7943 all:
7944         @echo 'ac_maketemp="$(MAKE)"'
7945 _ACEOF
7946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7947 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7948 if test -n "$ac_maketemp"; then
7949   eval ac_cv_prog_make_${ac_make}_set=yes
7950 else
7951   eval ac_cv_prog_make_${ac_make}_set=no
7952 fi
7953 rm -f conftest.make
7954 fi
7955 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7956   echo "$as_me:$LINENO: result: yes" >&5
7957 echo "${ECHO_T}yes" >&6
7958   SET_MAKE=
7959 else
7960   echo "$as_me:$LINENO: result: no" >&5
7961 echo "${ECHO_T}no" >&6
7962   SET_MAKE="MAKE=${MAKE-make}"
7963 fi
7964
7965
7966 # Find some useful tools
7967 for ac_prog in gawk mawk nawk awk
7968 do
7969   # Extract the first word of "$ac_prog", so it can be a program name with args.
7970 set dummy $ac_prog; ac_word=$2
7971 echo "$as_me:$LINENO: checking for $ac_word" >&5
7972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7973 if test "${ac_cv_prog_AWK+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   if test -n "$AWK"; then
7977   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7978 else
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7981 do
7982   IFS=$as_save_IFS
7983   test -z "$as_dir" && as_dir=.
7984   for ac_exec_ext in '' $ac_executable_extensions; do
7985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7986     ac_cv_prog_AWK="$ac_prog"
7987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988     break 2
7989   fi
7990 done
7991 done
7992
7993 fi
7994 fi
7995 AWK=$ac_cv_prog_AWK
7996 if test -n "$AWK"; then
7997   echo "$as_me:$LINENO: result: $AWK" >&5
7998 echo "${ECHO_T}$AWK" >&6
7999 else
8000   echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6
8002 fi
8003
8004   test -n "$AWK" && break
8005 done
8006
8007 # We need awk to create options.c and options.h.
8008 # Bail out if it's missing.
8009 case ${AWK} in
8010   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8011 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8012    { (exit 1); exit 1; }; } ;;
8013 esac
8014
8015 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8016 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8017 if test "${gcc_cv_prog_LN_S+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   rm -f conftestdata_t
8021 echo >conftestdata_f
8022 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8023 then
8024   gcc_cv_prog_LN_S="ln -s"
8025 else
8026   if ln conftestdata_f conftestdata_t 2>/dev/null
8027   then
8028     gcc_cv_prog_LN_S=ln
8029   else
8030     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8031     then
8032       gcc_cv_prog_LN_S="cp -p"
8033     else
8034       gcc_cv_prog_LN_S=cp
8035     fi
8036   fi
8037 fi
8038 rm -f conftestdata_f conftestdata_t
8039
8040 fi
8041 LN_S="$gcc_cv_prog_LN_S"
8042 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8043   echo "$as_me:$LINENO: result: yes" >&5
8044 echo "${ECHO_T}yes" >&6
8045 else
8046   if test "$gcc_cv_prog_LN_S" = "ln"; then
8047     echo "$as_me:$LINENO: result: no, using ln" >&5
8048 echo "${ECHO_T}no, using ln" >&6
8049   else
8050     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8051 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8052   fi
8053 fi
8054
8055 echo "$as_me:$LINENO: checking whether ln works" >&5
8056 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8057 if test "${acx_cv_prog_LN+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   rm -f conftestdata_t
8061 echo >conftestdata_f
8062 if ln conftestdata_f conftestdata_t 2>/dev/null
8063 then
8064   acx_cv_prog_LN=ln
8065 else
8066   acx_cv_prog_LN=no
8067 fi
8068 rm -f conftestdata_f conftestdata_t
8069
8070 fi
8071 if test $acx_cv_prog_LN = no; then
8072   LN="$LN_S"
8073   echo "$as_me:$LINENO: result: no, using $LN" >&5
8074 echo "${ECHO_T}no, using $LN" >&6
8075 else
8076   LN="$acx_cv_prog_LN"
8077   echo "$as_me:$LINENO: result: yes" >&5
8078 echo "${ECHO_T}yes" >&6
8079 fi
8080
8081 if test -n "$ac_tool_prefix"; then
8082   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8084 echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8086 if test "${ac_cv_prog_RANLIB+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   if test -n "$RANLIB"; then
8090   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8091 else
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8094 do
8095   IFS=$as_save_IFS
8096   test -z "$as_dir" && as_dir=.
8097   for ac_exec_ext in '' $ac_executable_extensions; do
8098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101     break 2
8102   fi
8103 done
8104 done
8105
8106 fi
8107 fi
8108 RANLIB=$ac_cv_prog_RANLIB
8109 if test -n "$RANLIB"; then
8110   echo "$as_me:$LINENO: result: $RANLIB" >&5
8111 echo "${ECHO_T}$RANLIB" >&6
8112 else
8113   echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8115 fi
8116
8117 fi
8118 if test -z "$ac_cv_prog_RANLIB"; then
8119   ac_ct_RANLIB=$RANLIB
8120   # Extract the first word of "ranlib", so it can be a program name with args.
8121 set dummy ranlib; ac_word=$2
8122 echo "$as_me:$LINENO: checking for $ac_word" >&5
8123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8125   echo $ECHO_N "(cached) $ECHO_C" >&6
8126 else
8127   if test -n "$ac_ct_RANLIB"; then
8128   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8129 else
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8132 do
8133   IFS=$as_save_IFS
8134   test -z "$as_dir" && as_dir=.
8135   for ac_exec_ext in '' $ac_executable_extensions; do
8136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137     ac_cv_prog_ac_ct_RANLIB="ranlib"
8138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139     break 2
8140   fi
8141 done
8142 done
8143
8144   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8145 fi
8146 fi
8147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8148 if test -n "$ac_ct_RANLIB"; then
8149   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8150 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8151 else
8152   echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154 fi
8155
8156   RANLIB=$ac_ct_RANLIB
8157 else
8158   RANLIB="$ac_cv_prog_RANLIB"
8159 fi
8160
8161 case "${host}" in
8162 *-*-darwin*)
8163   # By default, the Darwin ranlib will not treat common symbols as
8164   # definitions when  building the archive table of contents.  Other
8165   # ranlibs do that; pass an option to the Darwin ranlib that makes
8166   # it behave similarly.
8167   ranlib_flags="-c"
8168   ;;
8169 *)
8170   ranlib_flags=""
8171 esac
8172
8173
8174 # Find a good install program.  We prefer a C program (faster),
8175 # so one script is as good as another.  But avoid the broken or
8176 # incompatible versions:
8177 # SysV /etc/install, /usr/sbin/install
8178 # SunOS /usr/etc/install
8179 # IRIX /sbin/install
8180 # AIX /bin/install
8181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8183 # ./install, which can be erroneously created by make from ./install.sh.
8184 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8185 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8186 if test -z "$INSTALL"; then
8187 if test "${ac_cv_path_install+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8191   for ac_dir in $PATH; do
8192     # Account for people who put trailing slashes in PATH elements.
8193     case "$ac_dir/" in
8194     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8195     *)
8196       # OSF1 and SCO ODT 3.0 have their own names for install.
8197       for ac_prog in ginstall scoinst install; do
8198         if test -f $ac_dir/$ac_prog; then
8199           if test $ac_prog = install &&
8200             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8201             # AIX install.  It has an incompatible calling convention.
8202             # OSF/1 installbsd also uses dspmsg, but is usable.
8203             :
8204           else
8205             ac_cv_path_install="$ac_dir/$ac_prog -c"
8206             break 2
8207           fi
8208         fi
8209       done
8210       ;;
8211     esac
8212   done
8213   IFS="$ac_save_IFS"
8214
8215 fi
8216   if test "${ac_cv_path_install+set}" = set; then
8217     INSTALL="$ac_cv_path_install"
8218   else
8219     # As a last resort, use the slow shell script.  We don't cache a
8220     # path for INSTALL within a source directory, because that will
8221     # break other packages using the cache if that directory is
8222     # removed, or if the path is relative.
8223     INSTALL="$ac_install_sh"
8224   fi
8225 fi
8226 echo "$as_me:$LINENO: result: $INSTALL" >&5
8227 echo "${ECHO_T}$INSTALL" >&6
8228
8229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8230 # It thinks the first close brace ends the variable substitution.
8231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8232
8233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8234
8235
8236 # See if cmp has --ignore-initial.
8237 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8238 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8239 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242    echo abfoo >t1
8243   echo cdfoo >t2
8244   gcc_cv_prog_cmp_skip=slowcompare
8245   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8246     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8247       :
8248     else
8249       gcc_cv_prog_cmp_skip=gnucompare
8250     fi
8251   fi
8252   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8253     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8254       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8255         :
8256       else
8257         gcc_cv_prog_cmp_skip=fastcompare
8258       fi
8259     fi
8260   fi
8261   rm t1 t2
8262
8263 fi
8264 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8265 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8266 make_compare_target=$gcc_cv_prog_cmp_skip
8267
8268
8269
8270 # See if we have the mktemp command.
8271 # Extract the first word of "mktemp", so it can be a program name with args.
8272 set dummy mktemp; ac_word=$2
8273 echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8275 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8276   echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278   if test -n "$have_mktemp_command"; then
8279   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286   for ac_exec_ext in '' $ac_executable_extensions; do
8287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_prog_have_mktemp_command="yes"
8289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293 done
8294
8295   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8296 fi
8297 fi
8298 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8299 if test -n "$have_mktemp_command"; then
8300   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8301 echo "${ECHO_T}$have_mktemp_command" >&6
8302 else
8303   echo "$as_me:$LINENO: result: no" >&5
8304 echo "${ECHO_T}no" >&6
8305 fi
8306
8307
8308 # See if makeinfo has been installed and is modern enough
8309 # that we can use it.
8310
8311   # Extract the first word of "makeinfo", so it can be a program name with args.
8312 set dummy makeinfo; ac_word=$2
8313 echo "$as_me:$LINENO: checking for $ac_word" >&5
8314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318   if test -n "$MAKEINFO"; then
8319   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326   for ac_exec_ext in '' $ac_executable_extensions; do
8327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328     ac_cv_prog_MAKEINFO="makeinfo"
8329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333 done
8334
8335 fi
8336 fi
8337 MAKEINFO=$ac_cv_prog_MAKEINFO
8338 if test -n "$MAKEINFO"; then
8339   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8340 echo "${ECHO_T}$MAKEINFO" >&6
8341 else
8342   echo "$as_me:$LINENO: result: no" >&5
8343 echo "${ECHO_T}no" >&6
8344 fi
8345
8346   if test -n "$MAKEINFO"; then
8347     # Found it, now check the version.
8348     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8349 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8350 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8354                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8355
8356                     case $ac_prog_version in
8357                       '')  gcc_cv_prog_makeinfo_modern=no;;
8358                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8359                       *)   gcc_cv_prog_makeinfo_modern=no;;
8360                     esac
8361
8362 fi
8363 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8364 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8365   else
8366     gcc_cv_prog_makeinfo_modern=no
8367   fi
8368   if test $gcc_cv_prog_makeinfo_modern = no; then
8369     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8370   fi
8371
8372 if test $gcc_cv_prog_makeinfo_modern = no; then
8373   { echo "$as_me:$LINENO: WARNING:
8374 *** Makeinfo is missing or too old.
8375 *** Info documentation will not be built." >&5
8376 echo "$as_me: WARNING:
8377 *** Makeinfo is missing or too old.
8378 *** Info documentation will not be built." >&2;}
8379   BUILD_INFO=
8380 else
8381   BUILD_INFO=info
8382 fi
8383
8384
8385 # Is pod2man recent enough to regenerate manpages?
8386 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8387 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8388 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8389   echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6
8391   GENERATED_MANPAGES=generated-manpages
8392 else
8393   echo "$as_me:$LINENO: result: no" >&5
8394 echo "${ECHO_T}no" >&6
8395   GENERATED_MANPAGES=
8396 fi
8397
8398
8399 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8400
8401 # How about lex?
8402 for ac_prog in flex
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8408 if test "${ac_cv_prog_FLEX+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   if test -n "$FLEX"; then
8412   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419   for ac_exec_ext in '' $ac_executable_extensions; do
8420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421     ac_cv_prog_FLEX="$ac_prog"
8422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426 done
8427
8428 fi
8429 fi
8430 FLEX=$ac_cv_prog_FLEX
8431 if test -n "$FLEX"; then
8432   echo "$as_me:$LINENO: result: $FLEX" >&5
8433 echo "${ECHO_T}$FLEX" >&6
8434 else
8435   echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8437 fi
8438
8439   test -n "$FLEX" && break
8440 done
8441 test -n "$FLEX" || FLEX="$MISSING flex"
8442
8443
8444 # Bison?
8445 for ac_prog in bison
8446 do
8447   # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy $ac_prog; ac_word=$2
8449 echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8451 if test "${ac_cv_prog_BISON+set}" = set; then
8452   echo $ECHO_N "(cached) $ECHO_C" >&6
8453 else
8454   if test -n "$BISON"; then
8455   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462   for ac_exec_ext in '' $ac_executable_extensions; do
8463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464     ac_cv_prog_BISON="$ac_prog"
8465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469 done
8470
8471 fi
8472 fi
8473 BISON=$ac_cv_prog_BISON
8474 if test -n "$BISON"; then
8475   echo "$as_me:$LINENO: result: $BISON" >&5
8476 echo "${ECHO_T}$BISON" >&6
8477 else
8478   echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6
8480 fi
8481
8482   test -n "$BISON" && break
8483 done
8484 test -n "$BISON" || BISON="$MISSING bison"
8485
8486
8487 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8488 # check for build == host before using them.
8489
8490 # NM
8491 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8492   && test -d ../binutils ; then
8493   NM='$(objdir)/../binutils/nm-new'
8494 else
8495   # Extract the first word of "nm", so it can be a program name with args.
8496 set dummy nm; ac_word=$2
8497 echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499 if test "${ac_cv_prog_NM+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   if test -n "$NM"; then
8503   ac_cv_prog_NM="$NM" # Let the user override the test.
8504 else
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510   for ac_exec_ext in '' $ac_executable_extensions; do
8511   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512     ac_cv_prog_NM="nm"
8513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517 done
8518
8519   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8520 fi
8521 fi
8522 NM=$ac_cv_prog_NM
8523 if test -n "$NM"; then
8524   echo "$as_me:$LINENO: result: $NM" >&5
8525 echo "${ECHO_T}$NM" >&6
8526 else
8527   echo "$as_me:$LINENO: result: no" >&5
8528 echo "${ECHO_T}no" >&6
8529 fi
8530
8531 fi
8532
8533 # AR
8534 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8535   && test -d ../binutils ; then
8536   AR='$(objdir)/../binutils/ar'
8537 else
8538   # Extract the first word of "ar", so it can be a program name with args.
8539 set dummy ar; ac_word=$2
8540 echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8542 if test "${ac_cv_prog_AR+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   if test -n "$AR"; then
8546   ac_cv_prog_AR="$AR" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8550 do
8551   IFS=$as_save_IFS
8552   test -z "$as_dir" && as_dir=.
8553   for ac_exec_ext in '' $ac_executable_extensions; do
8554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8555     ac_cv_prog_AR="ar"
8556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8557     break 2
8558   fi
8559 done
8560 done
8561
8562   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8563 fi
8564 fi
8565 AR=$ac_cv_prog_AR
8566 if test -n "$AR"; then
8567   echo "$as_me:$LINENO: result: $AR" >&5
8568 echo "${ECHO_T}$AR" >&6
8569 else
8570   echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6
8572 fi
8573
8574 fi
8575
8576
8577 # --------------------
8578 # Checks for C headers
8579 # --------------------
8580
8581 # Need to reject headers which give warnings, so that the -Werror bootstrap
8582 # works later. *sigh*  This needs to come before all header checks.
8583
8584 ac_c_preproc_warn_flag=yes
8585
8586 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8588 if test "${ac_cv_header_stdc+set}" = set; then
8589   echo $ECHO_N "(cached) $ECHO_C" >&6
8590 else
8591   cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597 #include <stdlib.h>
8598 #include <stdarg.h>
8599 #include <string.h>
8600 #include <float.h>
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8612   (eval $ac_compile) 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -z "$ac_c_werror_flag"
8620                          || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest.$ac_objext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   ac_cv_header_stdc=yes
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_cv_header_stdc=no
8638 fi
8639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8640
8641 if test $ac_cv_header_stdc = yes; then
8642   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8643   cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <string.h>
8650
8651 _ACEOF
8652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8653   $EGREP "memchr" >/dev/null 2>&1; then
8654   :
8655 else
8656   ac_cv_header_stdc=no
8657 fi
8658 rm -f conftest*
8659
8660 fi
8661
8662 if test $ac_cv_header_stdc = yes; then
8663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 #include <stdlib.h>
8671
8672 _ACEOF
8673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8674   $EGREP "free" >/dev/null 2>&1; then
8675   :
8676 else
8677   ac_cv_header_stdc=no
8678 fi
8679 rm -f conftest*
8680
8681 fi
8682
8683 if test $ac_cv_header_stdc = yes; then
8684   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8685   if test "$cross_compiling" = yes; then
8686   :
8687 else
8688   cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 #include <ctype.h>
8695 #if ((' ' & 0x0FF) == 0x020)
8696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8698 #else
8699 # define ISLOWER(c) \
8700                    (('a' <= (c) && (c) <= 'i') \
8701                      || ('j' <= (c) && (c) <= 'r') \
8702                      || ('s' <= (c) && (c) <= 'z'))
8703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8704 #endif
8705
8706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8707 int
8708 main ()
8709 {
8710   int i;
8711   for (i = 0; i < 256; i++)
8712     if (XOR (islower (i), ISLOWER (i))
8713         || toupper (i) != TOUPPER (i))
8714       exit(2);
8715   exit (0);
8716 }
8717 _ACEOF
8718 rm -f conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720   (eval $ac_link) 2>&5
8721   ac_status=$?
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   :
8730 else
8731   echo "$as_me: program exited with status $ac_status" >&5
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 ( exit $ac_status )
8736 ac_cv_header_stdc=no
8737 fi
8738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 fi
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8743 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8744 if test $ac_cv_header_stdc = yes; then
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define STDC_HEADERS 1
8748 _ACEOF
8749
8750 fi
8751
8752 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8753 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8754 if test "${ac_cv_header_time+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 #include <sys/types.h>
8764 #include <sys/time.h>
8765 #include <time.h>
8766
8767 int
8768 main ()
8769 {
8770 if ((struct tm *) 0)
8771 return 0;
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8778   (eval $ac_compile) 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -z "$ac_c_werror_flag"
8786                          || test ! -s conftest.err'
8787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788   (eval $ac_try) 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; } &&
8792          { ac_try='test -s conftest.$ac_objext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_header_time=yes
8799 else
8800   echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_header_time=no
8804 fi
8805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8808 echo "${ECHO_T}$ac_cv_header_time" >&6
8809 if test $ac_cv_header_time = yes; then
8810
8811 cat >>confdefs.h <<\_ACEOF
8812 #define TIME_WITH_SYS_TIME 1
8813 _ACEOF
8814
8815 fi
8816
8817 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8818 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8819 if test "${gcc_cv_header_string+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828 #include <string.h>
8829 #include <strings.h>
8830 int
8831 main ()
8832 {
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8840   (eval $ac_compile) 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -z "$ac_c_werror_flag"
8848                          || test ! -s conftest.err'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; } &&
8854          { ac_try='test -s conftest.$ac_objext'
8855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   gcc_cv_header_string=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 gcc_cv_header_string=no
8866 fi
8867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8868 fi
8869 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8870 echo "${ECHO_T}$gcc_cv_header_string" >&6
8871 if test $gcc_cv_header_string = yes; then
8872
8873 cat >>confdefs.h <<\_ACEOF
8874 #define STRING_WITH_STRINGS 1
8875 _ACEOF
8876
8877 fi
8878
8879 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8880 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8881 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 #include <sys/types.h>
8891 #include <sys/wait.h>
8892 #ifndef WEXITSTATUS
8893 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8894 #endif
8895 #ifndef WIFEXITED
8896 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8897 #endif
8898
8899 int
8900 main ()
8901 {
8902   int s;
8903   wait (&s);
8904   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911   (eval $ac_compile) 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } &&
8918          { ac_try='test -z "$ac_c_werror_flag"
8919                          || test ! -s conftest.err'
8920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921   (eval $ac_try) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); }; } &&
8925          { ac_try='test -s conftest.$ac_objext'
8926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927   (eval $ac_try) 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   ac_cv_header_sys_wait_h=yes
8932 else
8933   echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 ac_cv_header_sys_wait_h=no
8937 fi
8938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8941 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8942 if test $ac_cv_header_sys_wait_h = yes; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_SYS_WAIT_H 1
8946 _ACEOF
8947
8948 fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8973                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8974                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8975                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8976 do
8977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978 echo "$as_me:$LINENO: checking for $ac_header" >&5
8979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981   echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983   cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989 #include <$ac_header>
8990 _ACEOF
8991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993   ac_status=$?
8994   grep -v '^ *+' conftest.er1 >conftest.err
8995   rm -f conftest.er1
8996   cat conftest.err >&5
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); } >/dev/null; then
8999   if test -s conftest.err; then
9000     ac_cpp_err=$ac_c_preproc_warn_flag
9001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9002   else
9003     ac_cpp_err=
9004   fi
9005 else
9006   ac_cpp_err=yes
9007 fi
9008 if test -z "$ac_cpp_err"; then
9009   eval "$as_ac_Header=yes"
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014   eval "$as_ac_Header=no"
9015 fi
9016 rm -f conftest.err conftest.$ac_ext
9017 fi
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9021   cat >>confdefs.h <<_ACEOF
9022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9023 _ACEOF
9024
9025 fi
9026 done
9027
9028
9029 # Check for thread headers.
9030 echo "$as_me:$LINENO: checking for thread.h" >&5
9031 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9032 if test "${ac_cv_header_thread_h+set}" = set; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 else
9035   cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041 #include <thread.h>
9042 _ACEOF
9043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9045   ac_status=$?
9046   grep -v '^ *+' conftest.er1 >conftest.err
9047   rm -f conftest.er1
9048   cat conftest.err >&5
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); } >/dev/null; then
9051   if test -s conftest.err; then
9052     ac_cpp_err=$ac_c_preproc_warn_flag
9053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9054   else
9055     ac_cpp_err=
9056   fi
9057 else
9058   ac_cpp_err=yes
9059 fi
9060 if test -z "$ac_cpp_err"; then
9061   ac_cv_header_thread_h=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066   ac_cv_header_thread_h=no
9067 fi
9068 rm -f conftest.err conftest.$ac_ext
9069 fi
9070 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9071 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9072 if test $ac_cv_header_thread_h = yes; then
9073   have_thread_h=yes
9074 else
9075   have_thread_h=
9076 fi
9077
9078 echo "$as_me:$LINENO: checking for pthread.h" >&5
9079 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9080 if test "${ac_cv_header_pthread_h+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089 #include <pthread.h>
9090 _ACEOF
9091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9093   ac_status=$?
9094   grep -v '^ *+' conftest.er1 >conftest.err
9095   rm -f conftest.er1
9096   cat conftest.err >&5
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); } >/dev/null; then
9099   if test -s conftest.err; then
9100     ac_cpp_err=$ac_c_preproc_warn_flag
9101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9102   else
9103     ac_cpp_err=
9104   fi
9105 else
9106   ac_cpp_err=yes
9107 fi
9108 if test -z "$ac_cpp_err"; then
9109   ac_cv_header_pthread_h=yes
9110 else
9111   echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114   ac_cv_header_pthread_h=no
9115 fi
9116 rm -f conftest.err conftest.$ac_ext
9117 fi
9118 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9119 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9120 if test $ac_cv_header_pthread_h = yes; then
9121   have_pthread_h=yes
9122 else
9123   have_pthread_h=
9124 fi
9125
9126
9127 # These tests can't be done till we know if we have limits.h.
9128 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9129 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9130 if test "${gcc_cv_decl_char_bit+set}" = set; then
9131   echo $ECHO_N "(cached) $ECHO_C" >&6
9132 else
9133   cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139 #ifdef HAVE_LIMITS_H
9140 #include <limits.h>
9141 #endif
9142 #ifdef CHAR_BIT
9143 found
9144 #endif
9145 _ACEOF
9146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9147   $EGREP "found" >/dev/null 2>&1; then
9148   gcc_cv_decl_char_bit=yes
9149 else
9150   gcc_cv_decl_char_bit=no
9151 fi
9152 rm -f conftest*
9153
9154
9155 fi
9156 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9157 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9158 if test $gcc_cv_decl_char_bit = no; then
9159   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9160 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9161 if test "${gcc_cv_c_nbby+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   i=8
9165  gcc_cv_c_nbby=
9166  while test $i -lt 65; do
9167    cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173
9174 int
9175 main ()
9176 {
9177 switch(0) {
9178   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9179   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9180   ; }
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187   (eval $ac_compile) 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } &&
9194          { ac_try='test -z "$ac_c_werror_flag"
9195                          || test ! -s conftest.err'
9196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197   (eval $ac_try) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); }; } &&
9201          { ac_try='test -s conftest.$ac_objext'
9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203   (eval $ac_try) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   gcc_cv_c_nbby=$i; break
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 fi
9213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9214    i=`expr $i + 1`
9215  done
9216  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9217
9218 fi
9219 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9220 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9221 if test $gcc_cv_c_nbby = failed; then
9222   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9223 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9224    { (exit 1); exit 1; }; }
9225 else
9226
9227 cat >>confdefs.h <<_ACEOF
9228 #define CHAR_BIT $gcc_cv_c_nbby
9229 _ACEOF
9230
9231 fi
9232 fi
9233 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9234 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9235 if test "${ac_cv_c_bigendian+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   # See if sys/param.h defines the BYTE_ORDER macro.
9239 cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 #include <sys/types.h>
9246 #include <sys/param.h>
9247
9248 int
9249 main ()
9250 {
9251 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9252  bogus endian macros
9253 #endif
9254
9255   ;
9256   return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9261   (eval $ac_compile) 2>conftest.er1
9262   ac_status=$?
9263   grep -v '^ *+' conftest.er1 >conftest.err
9264   rm -f conftest.er1
9265   cat conftest.err >&5
9266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267   (exit $ac_status); } &&
9268          { ac_try='test -z "$ac_c_werror_flag"
9269                          || test ! -s conftest.err'
9270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271   (eval $ac_try) 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; } &&
9275          { ac_try='test -s conftest.$ac_objext'
9276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277   (eval $ac_try) 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   # It does; now see whether it defined to BIG_ENDIAN or not.
9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288 #include <sys/types.h>
9289 #include <sys/param.h>
9290
9291 int
9292 main ()
9293 {
9294 #if BYTE_ORDER != BIG_ENDIAN
9295  not big endian
9296 #endif
9297
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304   (eval $ac_compile) 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } &&
9311          { ac_try='test -z "$ac_c_werror_flag"
9312                          || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest.$ac_objext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_c_bigendian=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_c_bigendian=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332 else
9333   echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9335
9336 # It does not; compile a test program.
9337 if test "$cross_compiling" = yes; then
9338   # try to guess the endianness by grepping values into an object file
9339   ac_cv_c_bigendian=unknown
9340   cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h.  */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h.  */
9346 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9347 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9348 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9349 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9350 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9351 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9352 int
9353 main ()
9354 {
9355  _ascii (); _ebcdic ();
9356   ;
9357   return 0;
9358 }
9359 _ACEOF
9360 rm -f conftest.$ac_objext
9361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9362   (eval $ac_compile) 2>conftest.er1
9363   ac_status=$?
9364   grep -v '^ *+' conftest.er1 >conftest.err
9365   rm -f conftest.er1
9366   cat conftest.err >&5
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); } &&
9369          { ac_try='test -z "$ac_c_werror_flag"
9370                          || test ! -s conftest.err'
9371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372   (eval $ac_try) 2>&5
9373   ac_status=$?
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); }; } &&
9376          { ac_try='test -s conftest.$ac_objext'
9377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378   (eval $ac_try) 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9383   ac_cv_c_bigendian=yes
9384 fi
9385 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9386   if test "$ac_cv_c_bigendian" = unknown; then
9387     ac_cv_c_bigendian=no
9388   else
9389     # finding both strings is unlikely to happen, but who knows?
9390     ac_cv_c_bigendian=unknown
9391   fi
9392 fi
9393 else
9394   echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 fi
9398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9399 else
9400   cat >conftest.$ac_ext <<_ACEOF
9401 /* confdefs.h.  */
9402 _ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h.  */
9406 int
9407 main ()
9408 {
9409   /* Are we little or big endian?  From Harbison&Steele.  */
9410   union
9411   {
9412     long l;
9413     char c[sizeof (long)];
9414   } u;
9415   u.l = 1;
9416   exit (u.c[sizeof (long) - 1] == 1);
9417 }
9418 _ACEOF
9419 rm -f conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421   (eval $ac_link) 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; }; then
9430   ac_cv_c_bigendian=no
9431 else
9432   echo "$as_me: program exited with status $ac_status" >&5
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436 ( exit $ac_status )
9437 ac_cv_c_bigendian=yes
9438 fi
9439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9440 fi
9441 fi
9442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9443 fi
9444 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9445 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9446 case $ac_cv_c_bigendian in
9447   yes)
9448
9449 cat >>confdefs.h <<\_ACEOF
9450 #define WORDS_BIGENDIAN 1
9451 _ACEOF
9452  ;;
9453   no)
9454      ;;
9455   *)
9456     { { echo "$as_me:$LINENO: error: unknown endianness
9457 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9458 echo "$as_me: error: unknown endianness
9459 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9460    { (exit 1); exit 1; }; } ;;
9461 esac
9462
9463
9464 # --------
9465 # UNSORTED
9466 # --------
9467
9468
9469 # These libraries may be used by collect2.
9470 # We may need a special search path to get them linked.
9471 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9472 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9473 if test "${gcc_cv_collect2_libs+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   save_LIBS="$LIBS"
9477 for libs in '' -lld -lmld \
9478                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9479                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9480 do
9481         LIBS="$libs"
9482         cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h.  */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h.  */
9488
9489 /* Override any gcc2 internal prototype to avoid an error.  */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494    builtin and then its argument prototype would still apply.  */
9495 char ldopen ();
9496 int
9497 main ()
9498 {
9499 ldopen ();
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506   (eval $ac_link) 2>conftest.er1
9507   ac_status=$?
9508   grep -v '^ *+' conftest.er1 >conftest.err
9509   rm -f conftest.er1
9510   cat conftest.err >&5
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } &&
9513          { ac_try='test -z "$ac_c_werror_flag"
9514                          || test ! -s conftest.err'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; } &&
9520          { ac_try='test -s conftest$ac_exeext'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; }; then
9526   gcc_cv_collect2_libs="$libs"; break
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531 fi
9532 rm -f conftest.err conftest.$ac_objext \
9533       conftest$ac_exeext conftest.$ac_ext
9534 done
9535 LIBS="$save_LIBS"
9536 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9537 fi
9538 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9539 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9540 case $gcc_cv_collect2_libs in
9541         "none required")        ;;
9542         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9543 esac
9544
9545
9546 # When building Ada code on Alpha, we need exc_resume which is usually in
9547 # -lexc.  So test for it.
9548 save_LIBS="$LIBS"
9549 LIBS=
9550 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9551 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9552 if test "${ac_cv_search_exc_resume+set}" = set; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   ac_func_search_save_LIBS=$LIBS
9556 ac_cv_search_exc_resume=no
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563
9564 /* Override any gcc2 internal prototype to avoid an error.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 /* We use char because int might match the return type of a gcc2
9569    builtin and then its argument prototype would still apply.  */
9570 char exc_resume ();
9571 int
9572 main ()
9573 {
9574 exc_resume ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581   (eval $ac_link) 2>conftest.er1
9582   ac_status=$?
9583   grep -v '^ *+' conftest.er1 >conftest.err
9584   rm -f conftest.er1
9585   cat conftest.err >&5
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } &&
9588          { ac_try='test -z "$ac_c_werror_flag"
9589                          || test ! -s conftest.err'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; } &&
9595          { ac_try='test -s conftest$ac_exeext'
9596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597   (eval $ac_try) 2>&5
9598   ac_status=$?
9599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }; }; then
9601   ac_cv_search_exc_resume="none required"
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606 fi
9607 rm -f conftest.err conftest.$ac_objext \
9608       conftest$ac_exeext conftest.$ac_ext
9609 if test "$ac_cv_search_exc_resume" = no; then
9610   for ac_lib in exc; do
9611     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9612     cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any gcc2 internal prototype to avoid an error.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 /* We use char because int might match the return type of a gcc2
9624    builtin and then its argument prototype would still apply.  */
9625 char exc_resume ();
9626 int
9627 main ()
9628 {
9629 exc_resume ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636   (eval $ac_link) 2>conftest.er1
9637   ac_status=$?
9638   grep -v '^ *+' conftest.er1 >conftest.err
9639   rm -f conftest.er1
9640   cat conftest.err >&5
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); } &&
9643          { ac_try='test -z "$ac_c_werror_flag"
9644                          || test ! -s conftest.err'
9645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646   (eval $ac_try) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; } &&
9650          { ac_try='test -s conftest$ac_exeext'
9651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652   (eval $ac_try) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; }; then
9656   ac_cv_search_exc_resume="-l$ac_lib"
9657 break
9658 else
9659   echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9661
9662 fi
9663 rm -f conftest.err conftest.$ac_objext \
9664       conftest$ac_exeext conftest.$ac_ext
9665   done
9666 fi
9667 LIBS=$ac_func_search_save_LIBS
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9670 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9671 if test "$ac_cv_search_exc_resume" != no; then
9672   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9673
9674 fi
9675
9676 GNAT_LIBEXC="$LIBS"
9677 LIBS="$save_LIBS"
9678
9679
9680 # Some systems put ldexp and frexp in libm instead of libc; assume
9681 # they're both in the same place.  jcf-dump needs them.
9682 save_LIBS="$LIBS"
9683 LIBS=
9684 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9685 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9686 if test "${ac_cv_search_ldexp+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   ac_func_search_save_LIBS=$LIBS
9690 ac_cv_search_ldexp=no
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h.  */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h.  */
9697
9698 /* Override any gcc2 internal prototype to avoid an error.  */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703    builtin and then its argument prototype would still apply.  */
9704 char ldexp ();
9705 int
9706 main ()
9707 {
9708 ldexp ();
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715   (eval $ac_link) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest$ac_exeext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_search_ldexp="none required"
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 fi
9741 rm -f conftest.err conftest.$ac_objext \
9742       conftest$ac_exeext conftest.$ac_ext
9743 if test "$ac_cv_search_ldexp" = no; then
9744   for ac_lib in m; do
9745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9746     cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752
9753 /* Override any gcc2 internal prototype to avoid an error.  */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 /* We use char because int might match the return type of a gcc2
9758    builtin and then its argument prototype would still apply.  */
9759 char ldexp ();
9760 int
9761 main ()
9762 {
9763 ldexp ();
9764   ;
9765   return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9770   (eval $ac_link) 2>conftest.er1
9771   ac_status=$?
9772   grep -v '^ *+' conftest.er1 >conftest.err
9773   rm -f conftest.er1
9774   cat conftest.err >&5
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); } &&
9777          { ac_try='test -z "$ac_c_werror_flag"
9778                          || test ! -s conftest.err'
9779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780   (eval $ac_try) 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; } &&
9784          { ac_try='test -s conftest$ac_exeext'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }; then
9790   ac_cv_search_ldexp="-l$ac_lib"
9791 break
9792 else
9793   echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 fi
9797 rm -f conftest.err conftest.$ac_objext \
9798       conftest$ac_exeext conftest.$ac_ext
9799   done
9800 fi
9801 LIBS=$ac_func_search_save_LIBS
9802 fi
9803 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9804 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9805 if test "$ac_cv_search_ldexp" != no; then
9806   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9807
9808 fi
9809
9810 LDEXP_LIB="$LIBS"
9811 LIBS="$save_LIBS"
9812
9813
9814 # Use <inttypes.h> only if it exists,
9815 # doesn't clash with <sys/types.h>, and declares intmax_t.
9816 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9817 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9818 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 #include <sys/types.h>
9828 #include <inttypes.h>
9829 int
9830 main ()
9831 {
9832 intmax_t i = -1;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9839   (eval $ac_compile) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest.$ac_objext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   gcc_cv_header_inttypes_h=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 gcc_cv_header_inttypes_h=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9867 fi
9868
9869 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9870 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9871 if test $gcc_cv_header_inttypes_h = yes; then
9872
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_INTTYPES_H 1
9875 _ACEOF
9876
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9917         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9918         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9919         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
9920 do
9921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9922 echo "$as_me:$LINENO: checking for $ac_func" >&5
9923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_var+set}\" = set"; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9935 #define $ac_func innocuous_$ac_func
9936
9937 /* System header to define __stub macros and hopefully few prototypes,
9938     which can conflict with char $ac_func (); below.
9939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940     <limits.h> exists even on freestanding compilers.  */
9941
9942 #ifdef __STDC__
9943 # include <limits.h>
9944 #else
9945 # include <assert.h>
9946 #endif
9947
9948 #undef $ac_func
9949
9950 /* Override any gcc2 internal prototype to avoid an error.  */
9951 #ifdef __cplusplus
9952 extern "C"
9953 {
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956    builtin and then its argument prototype would still apply.  */
9957 char $ac_func ();
9958 /* The GNU C library defines this for functions which it implements
9959     to always fail with ENOSYS.  Some functions are actually named
9960     something starting with __ and the normal name is an alias.  */
9961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9962 choke me
9963 #else
9964 char (*f) () = $ac_func;
9965 #endif
9966 #ifdef __cplusplus
9967 }
9968 #endif
9969
9970 int
9971 main ()
9972 {
9973 return f != $ac_func;
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext conftest$ac_exeext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_c_werror_flag"
9988                          || test ! -s conftest.err'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000   eval "$as_ac_var=yes"
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005 eval "$as_ac_var=no"
10006 fi
10007 rm -f conftest.err conftest.$ac_objext \
10008       conftest$ac_exeext conftest.$ac_ext
10009 fi
10010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10012 if test `eval echo '${'$as_ac_var'}'` = yes; then
10013   cat >>confdefs.h <<_ACEOF
10014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10015 _ACEOF
10016
10017 fi
10018 done
10019
10020
10021 if test x$ac_cv_func_mbstowcs = xyes; then
10022   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10023 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10024 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027       if test "$cross_compiling" = yes; then
10028   gcc_cv_func_mbstowcs_works=yes
10029 else
10030   cat >conftest.$ac_ext <<_ACEOF
10031 /* confdefs.h.  */
10032 _ACEOF
10033 cat confdefs.h >>conftest.$ac_ext
10034 cat >>conftest.$ac_ext <<_ACEOF
10035 /* end confdefs.h.  */
10036 #include <stdlib.h>
10037 int main()
10038 {
10039   mbstowcs(0, "", 0);
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045   (eval $ac_link) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   gcc_cv_func_mbstowcs_works=yes
10055 else
10056   echo "$as_me: program exited with status $ac_status" >&5
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ( exit $ac_status )
10061 gcc_cv_func_mbstowcs_works=no
10062 fi
10063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 fi
10066 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10067 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10068   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10069
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_WORKING_MBSTOWCS 1
10072 _ACEOF
10073
10074   fi
10075 fi
10076
10077 echo "$as_me:$LINENO: checking for ssize_t" >&5
10078 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10079 if test "${ac_cv_type_ssize_t+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 $ac_includes_default
10089 int
10090 main ()
10091 {
10092 if ((ssize_t *) 0)
10093   return 0;
10094 if (sizeof (ssize_t))
10095   return 0;
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102   (eval $ac_compile) 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag"
10110                          || test ! -s conftest.err'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest.$ac_objext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_type_ssize_t=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_cv_type_ssize_t=no
10128 fi
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10132 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10133 if test $ac_cv_type_ssize_t = yes; then
10134   :
10135 else
10136
10137 cat >>confdefs.h <<_ACEOF
10138 #define ssize_t int
10139 _ACEOF
10140
10141 fi
10142
10143
10144 # Try to determine the array type of the second argument of getgroups
10145 # for the target system (int or gid_t).
10146 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10147 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10148 if test "${ac_cv_type_uid_t+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <sys/types.h>
10158
10159 _ACEOF
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161   $EGREP "uid_t" >/dev/null 2>&1; then
10162   ac_cv_type_uid_t=yes
10163 else
10164   ac_cv_type_uid_t=no
10165 fi
10166 rm -f conftest*
10167
10168 fi
10169 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10170 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10171 if test $ac_cv_type_uid_t = no; then
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define uid_t int
10175 _ACEOF
10176
10177
10178 cat >>confdefs.h <<\_ACEOF
10179 #define gid_t int
10180 _ACEOF
10181
10182 fi
10183
10184 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10185 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10186 if test "${ac_cv_type_getgroups+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   if test "$cross_compiling" = yes; then
10190   ac_cv_type_getgroups=cross
10191 else
10192   cat >conftest.$ac_ext <<_ACEOF
10193 /* confdefs.h.  */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h.  */
10198 /* Thanks to Mike Rendell for this test.  */
10199 #include <sys/types.h>
10200 #define NGID 256
10201 #undef MAX
10202 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10203
10204 int
10205 main ()
10206 {
10207   gid_t gidset[NGID];
10208   int i, n;
10209   union { gid_t gval; long lval; }  val;
10210
10211   val.lval = -1;
10212   for (i = 0; i < NGID; i++)
10213     gidset[i] = val.gval;
10214   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10215                  gidset);
10216   /* Exit non-zero if getgroups seems to require an array of ints.  This
10217      happens when gid_t is short but getgroups modifies an array of ints.  */
10218   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10219 }
10220 _ACEOF
10221 rm -f conftest$ac_exeext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10223   (eval $ac_link) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_cv_type_getgroups=gid_t
10233 else
10234   echo "$as_me: program exited with status $ac_status" >&5
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 ( exit $ac_status )
10239 ac_cv_type_getgroups=int
10240 fi
10241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10242 fi
10243 if test $ac_cv_type_getgroups = cross; then
10244         cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250 #include <unistd.h>
10251
10252 _ACEOF
10253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10254   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10255   ac_cv_type_getgroups=gid_t
10256 else
10257   ac_cv_type_getgroups=int
10258 fi
10259 rm -f conftest*
10260
10261 fi
10262 fi
10263 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10264 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10265
10266 cat >>confdefs.h <<_ACEOF
10267 #define GETGROUPS_T $ac_cv_type_getgroups
10268 _ACEOF
10269
10270
10271 if test "${target}" = "${build}"; then
10272   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10273 else
10274   case "${target}" in
10275         # This condition may need some tweaking.  It should include all
10276         # targets where the array type of the second argument of getgroups
10277         # is int and the type of gid_t is not equivalent to int.
10278         *-*-sunos* | *-*-ultrix*)
10279                 TARGET_GETGROUPS_T=int
10280                 ;;
10281         *)
10282                 TARGET_GETGROUPS_T=gid_t
10283                 ;;
10284   esac
10285 fi
10286
10287
10288
10289 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10290 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10291 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300 #include <sys/mman.h>
10301 _ACEOF
10302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } >/dev/null; then
10310   if test -s conftest.err; then
10311     ac_cpp_err=$ac_c_preproc_warn_flag
10312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10313   else
10314     ac_cpp_err=
10315   fi
10316 else
10317   ac_cpp_err=yes
10318 fi
10319 if test -z "$ac_cpp_err"; then
10320   ac_cv_header_sys_mman_h=yes
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325   ac_cv_header_sys_mman_h=no
10326 fi
10327 rm -f conftest.err conftest.$ac_ext
10328 fi
10329 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10330 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10331 if test $ac_cv_header_sys_mman_h = yes; then
10332   gcc_header_sys_mman_h=yes
10333 else
10334   gcc_header_sys_mman_h=no
10335 fi
10336
10337 echo "$as_me:$LINENO: checking for mmap" >&5
10338 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10339 if test "${ac_cv_func_mmap+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h.  */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h.  */
10348 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10350 #define mmap innocuous_mmap
10351
10352 /* System header to define __stub macros and hopefully few prototypes,
10353     which can conflict with char mmap (); below.
10354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10355     <limits.h> exists even on freestanding compilers.  */
10356
10357 #ifdef __STDC__
10358 # include <limits.h>
10359 #else
10360 # include <assert.h>
10361 #endif
10362
10363 #undef mmap
10364
10365 /* Override any gcc2 internal prototype to avoid an error.  */
10366 #ifdef __cplusplus
10367 extern "C"
10368 {
10369 #endif
10370 /* We use char because int might match the return type of a gcc2
10371    builtin and then its argument prototype would still apply.  */
10372 char mmap ();
10373 /* The GNU C library defines this for functions which it implements
10374     to always fail with ENOSYS.  Some functions are actually named
10375     something starting with __ and the normal name is an alias.  */
10376 #if defined (__stub_mmap) || defined (__stub___mmap)
10377 choke me
10378 #else
10379 char (*f) () = mmap;
10380 #endif
10381 #ifdef __cplusplus
10382 }
10383 #endif
10384
10385 int
10386 main ()
10387 {
10388 return f != mmap;
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395   (eval $ac_link) 2>conftest.er1
10396   ac_status=$?
10397   grep -v '^ *+' conftest.er1 >conftest.err
10398   rm -f conftest.er1
10399   cat conftest.err >&5
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -z "$ac_c_werror_flag"
10403                          || test ! -s conftest.err'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; } &&
10409          { ac_try='test -s conftest$ac_exeext'
10410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411   (eval $ac_try) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; }; then
10415   ac_cv_func_mmap=yes
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420 ac_cv_func_mmap=no
10421 fi
10422 rm -f conftest.err conftest.$ac_objext \
10423       conftest$ac_exeext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10426 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10427 if test $ac_cv_func_mmap = yes; then
10428   gcc_func_mmap=yes
10429 else
10430   gcc_func_mmap=no
10431 fi
10432
10433 if test "$gcc_header_sys_mman_h" != yes \
10434  || test "$gcc_func_mmap" != yes; then
10435    gcc_cv_func_mmap_file=no
10436    gcc_cv_func_mmap_dev_zero=no
10437    gcc_cv_func_mmap_anon=no
10438 else
10439    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10440 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10441 if test "${gcc_cv_func_mmap_file+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   # Add a system to this blacklist if
10445    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10446    # memory area containing the same data that you'd get if you applied
10447    # read() to the same fd.  The only system known to have a problem here
10448    # is VMS, where text files have record structure.
10449    case "$host_os" in
10450      vms* | ultrix*)
10451         gcc_cv_func_mmap_file=no ;;
10452      *)
10453         gcc_cv_func_mmap_file=yes;;
10454    esac
10455 fi
10456 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10457 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10458    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10459 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10460 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   # Add a system to this blacklist if it has mmap() but /dev/zero
10464    # does not exist, or if mmapping /dev/zero does not give anonymous
10465    # zeroed pages with both the following properties:
10466    # 1. If you map N consecutive pages in with one call, and then
10467    #    unmap any subset of those pages, the pages that were not
10468    #    explicitly unmapped remain accessible.
10469    # 2. If you map two adjacent blocks of memory and then unmap them
10470    #    both at once, they must both go away.
10471    # Systems known to be in this category are Windows (all variants),
10472    # VMS, and Darwin.
10473    case "$host_os" in
10474      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10475         gcc_cv_func_mmap_dev_zero=no ;;
10476      *)
10477         gcc_cv_func_mmap_dev_zero=yes;;
10478    esac
10479 fi
10480 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10481 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10482
10483    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10484    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10485 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10486 if test "${gcc_cv_decl_map_anon+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495 #include <sys/types.h>
10496 #include <sys/mman.h>
10497 #include <unistd.h>
10498
10499 #ifndef MAP_ANONYMOUS
10500 #define MAP_ANONYMOUS MAP_ANON
10501 #endif
10502
10503 int
10504 main ()
10505 {
10506 int n = MAP_ANONYMOUS;
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext
10512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10513   (eval $ac_compile) 2>conftest.er1
10514   ac_status=$?
10515   grep -v '^ *+' conftest.er1 >conftest.err
10516   rm -f conftest.er1
10517   cat conftest.err >&5
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } &&
10520          { ac_try='test -z "$ac_c_werror_flag"
10521                          || test ! -s conftest.err'
10522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); }; } &&
10527          { ac_try='test -s conftest.$ac_objext'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }; then
10533   gcc_cv_decl_map_anon=yes
10534 else
10535   echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10537
10538 gcc_cv_decl_map_anon=no
10539 fi
10540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10541 fi
10542 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10543 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10544
10545    if test $gcc_cv_decl_map_anon = no; then
10546      gcc_cv_func_mmap_anon=no
10547    else
10548      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10549 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10550 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10554    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10555    # doesn't give anonymous zeroed pages with the same properties listed
10556    # above for use of /dev/zero.
10557    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10558    case "$host_os" in
10559      vms* | cygwin* | pe | mingw* | sco* | udk* )
10560         gcc_cv_func_mmap_anon=no ;;
10561      *)
10562         gcc_cv_func_mmap_anon=yes;;
10563    esac
10564 fi
10565 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10566 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10567    fi
10568 fi
10569
10570 if test $gcc_cv_func_mmap_file = yes; then
10571
10572 cat >>confdefs.h <<\_ACEOF
10573 #define HAVE_MMAP_FILE 1
10574 _ACEOF
10575
10576 fi
10577 if test $gcc_cv_func_mmap_dev_zero = yes; then
10578
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_MMAP_DEV_ZERO 1
10581 _ACEOF
10582
10583 fi
10584 if test $gcc_cv_func_mmap_anon = yes; then
10585
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_MMAP_ANON 1
10588 _ACEOF
10589
10590 fi
10591
10592
10593 case "${host}" in
10594 *-*-*vms*)
10595   # Under VMS, vfork works very differently than on Unix. The standard test
10596   # won't work, and it isn't easily adaptable. It makes more sense to
10597   # just force it.
10598   ac_cv_func_vfork_works=yes
10599   ;;
10600 esac
10601 echo "$as_me:$LINENO: checking for pid_t" >&5
10602 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10603 if test "${ac_cv_type_pid_t+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606   cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612 $ac_includes_default
10613 int
10614 main ()
10615 {
10616 if ((pid_t *) 0)
10617   return 0;
10618 if (sizeof (pid_t))
10619   return 0;
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626   (eval $ac_compile) 2>conftest.er1
10627   ac_status=$?
10628   grep -v '^ *+' conftest.er1 >conftest.err
10629   rm -f conftest.er1
10630   cat conftest.err >&5
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); } &&
10633          { ac_try='test -z "$ac_c_werror_flag"
10634                          || test ! -s conftest.err'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; } &&
10640          { ac_try='test -s conftest.$ac_objext'
10641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642   (eval $ac_try) 2>&5
10643   ac_status=$?
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); }; }; then
10646   ac_cv_type_pid_t=yes
10647 else
10648   echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10650
10651 ac_cv_type_pid_t=no
10652 fi
10653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10654 fi
10655 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10656 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10657 if test $ac_cv_type_pid_t = yes; then
10658   :
10659 else
10660
10661 cat >>confdefs.h <<_ACEOF
10662 #define pid_t int
10663 _ACEOF
10664
10665 fi
10666
10667
10668
10669 for ac_header in unistd.h vfork.h
10670 do
10671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10672 echo "$as_me:$LINENO: checking for $ac_header" >&5
10673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675   echo $ECHO_N "(cached) $ECHO_C" >&6
10676 else
10677   cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 #include <$ac_header>
10684 _ACEOF
10685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } >/dev/null; then
10693   if test -s conftest.err; then
10694     ac_cpp_err=$ac_c_preproc_warn_flag
10695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10696   else
10697     ac_cpp_err=
10698   fi
10699 else
10700   ac_cpp_err=yes
10701 fi
10702 if test -z "$ac_cpp_err"; then
10703   eval "$as_ac_Header=yes"
10704 else
10705   echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708   eval "$as_ac_Header=no"
10709 fi
10710 rm -f conftest.err conftest.$ac_ext
10711 fi
10712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10715   cat >>confdefs.h <<_ACEOF
10716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10717 _ACEOF
10718
10719 fi
10720 done
10721
10722
10723
10724 for ac_func in fork vfork
10725 do
10726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10727 echo "$as_me:$LINENO: checking for $ac_func" >&5
10728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10729 if eval "test \"\${$as_ac_var+set}\" = set"; then
10730   echo $ECHO_N "(cached) $ECHO_C" >&6
10731 else
10732   cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10740 #define $ac_func innocuous_$ac_func
10741
10742 /* System header to define __stub macros and hopefully few prototypes,
10743     which can conflict with char $ac_func (); below.
10744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745     <limits.h> exists even on freestanding compilers.  */
10746
10747 #ifdef __STDC__
10748 # include <limits.h>
10749 #else
10750 # include <assert.h>
10751 #endif
10752
10753 #undef $ac_func
10754
10755 /* Override any gcc2 internal prototype to avoid an error.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 {
10759 #endif
10760 /* We use char because int might match the return type of a gcc2
10761    builtin and then its argument prototype would still apply.  */
10762 char $ac_func ();
10763 /* The GNU C library defines this for functions which it implements
10764     to always fail with ENOSYS.  Some functions are actually named
10765     something starting with __ and the normal name is an alias.  */
10766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10767 choke me
10768 #else
10769 char (*f) () = $ac_func;
10770 #endif
10771 #ifdef __cplusplus
10772 }
10773 #endif
10774
10775 int
10776 main ()
10777 {
10778 return f != $ac_func;
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785   (eval $ac_link) 2>conftest.er1
10786   ac_status=$?
10787   grep -v '^ *+' conftest.er1 >conftest.err
10788   rm -f conftest.er1
10789   cat conftest.err >&5
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); } &&
10792          { ac_try='test -z "$ac_c_werror_flag"
10793                          || test ! -s conftest.err'
10794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795   (eval $ac_try) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); }; } &&
10799          { ac_try='test -s conftest$ac_exeext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   eval "$as_ac_var=yes"
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 eval "$as_ac_var=no"
10811 fi
10812 rm -f conftest.err conftest.$ac_objext \
10813       conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818   cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10820 _ACEOF
10821
10822 fi
10823 done
10824
10825 if test "x$ac_cv_func_fork" = xyes; then
10826   echo "$as_me:$LINENO: checking for working fork" >&5
10827 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10828 if test "${ac_cv_func_fork_works+set}" = set; then
10829   echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831   if test "$cross_compiling" = yes; then
10832   ac_cv_func_fork_works=cross
10833 else
10834   cat >conftest.$ac_ext <<_ACEOF
10835 /* By Ruediger Kuhlmann. */
10836       #include <sys/types.h>
10837       #if HAVE_UNISTD_H
10838       # include <unistd.h>
10839       #endif
10840       /* Some systems only have a dummy stub for fork() */
10841       int main ()
10842       {
10843         if (fork() < 0)
10844           exit (1);
10845         exit (0);
10846       }
10847 _ACEOF
10848 rm -f conftest$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850   (eval $ac_link) 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_func_fork_works=yes
10860 else
10861   echo "$as_me: program exited with status $ac_status" >&5
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 ( exit $ac_status )
10866 ac_cv_func_fork_works=no
10867 fi
10868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10869 fi
10870 fi
10871 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10872 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10873
10874 else
10875   ac_cv_func_fork_works=$ac_cv_func_fork
10876 fi
10877 if test "x$ac_cv_func_fork_works" = xcross; then
10878   case $host in
10879     *-*-amigaos* | *-*-msdosdjgpp*)
10880       # Override, as these systems have only a dummy fork() stub
10881       ac_cv_func_fork_works=no
10882       ;;
10883     *)
10884       ac_cv_func_fork_works=yes
10885       ;;
10886   esac
10887   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10888 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10889 fi
10890 ac_cv_func_vfork_works=$ac_cv_func_vfork
10891 if test "x$ac_cv_func_vfork" = xyes; then
10892   echo "$as_me:$LINENO: checking for working vfork" >&5
10893 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10894 if test "${ac_cv_func_vfork_works+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   if test "$cross_compiling" = yes; then
10898   ac_cv_func_vfork_works=cross
10899 else
10900   cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 /* Thanks to Paul Eggert for this test.  */
10907 #include <stdio.h>
10908 #include <stdlib.h>
10909 #include <sys/types.h>
10910 #include <sys/stat.h>
10911 #include <sys/wait.h>
10912 #if HAVE_UNISTD_H
10913 # include <unistd.h>
10914 #endif
10915 #if HAVE_VFORK_H
10916 # include <vfork.h>
10917 #endif
10918 /* On some sparc systems, changes by the child to local and incoming
10919    argument registers are propagated back to the parent.  The compiler
10920    is told about this with #include <vfork.h>, but some compilers
10921    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10922    static variable whose address is put into a register that is
10923    clobbered by the vfork.  */
10924 static void
10925 #ifdef __cplusplus
10926 sparc_address_test (int arg)
10927 # else
10928 sparc_address_test (arg) int arg;
10929 #endif
10930 {
10931   static pid_t child;
10932   if (!child) {
10933     child = vfork ();
10934     if (child < 0) {
10935       perror ("vfork");
10936       _exit(2);
10937     }
10938     if (!child) {
10939       arg = getpid();
10940       write(-1, "", 0);
10941       _exit (arg);
10942     }
10943   }
10944 }
10945
10946 int
10947 main ()
10948 {
10949   pid_t parent = getpid ();
10950   pid_t child;
10951
10952   sparc_address_test (0);
10953
10954   child = vfork ();
10955
10956   if (child == 0) {
10957     /* Here is another test for sparc vfork register problems.  This
10958        test uses lots of local variables, at least as many local
10959        variables as main has allocated so far including compiler
10960        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10961        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10962        reuse the register of parent for one of the local variables,
10963        since it will think that parent can't possibly be used any more
10964        in this routine.  Assigning to the local variable will thus
10965        munge parent in the parent process.  */
10966     pid_t
10967       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10968       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10969     /* Convince the compiler that p..p7 are live; otherwise, it might
10970        use the same hardware register for all 8 local variables.  */
10971     if (p != p1 || p != p2 || p != p3 || p != p4
10972         || p != p5 || p != p6 || p != p7)
10973       _exit(1);
10974
10975     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10976        from child file descriptors.  If the child closes a descriptor
10977        before it execs or exits, this munges the parent's descriptor
10978        as well.  Test for this by closing stdout in the child.  */
10979     _exit(close(fileno(stdout)) != 0);
10980   } else {
10981     int status;
10982     struct stat st;
10983
10984     while (wait(&status) != child)
10985       ;
10986     exit(
10987          /* Was there some problem with vforking?  */
10988          child < 0
10989
10990          /* Did the child fail?  (This shouldn't happen.)  */
10991          || status
10992
10993          /* Did the vfork/compiler bug occur?  */
10994          || parent != getpid()
10995
10996          /* Did the file descriptor bug occur?  */
10997          || fstat(fileno(stdout), &st) != 0
10998          );
10999   }
11000 }
11001 _ACEOF
11002 rm -f conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004   (eval $ac_link) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009   (eval $ac_try) 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; }; then
11013   ac_cv_func_vfork_works=yes
11014 else
11015   echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ( exit $ac_status )
11020 ac_cv_func_vfork_works=no
11021 fi
11022 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11023 fi
11024 fi
11025 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11026 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11027
11028 fi;
11029 if test "x$ac_cv_func_fork_works" = xcross; then
11030   ac_cv_func_vfork_works=$ac_cv_func_vfork
11031   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11032 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11033 fi
11034
11035 if test "x$ac_cv_func_vfork_works" = xyes; then
11036
11037 cat >>confdefs.h <<\_ACEOF
11038 #define HAVE_WORKING_VFORK 1
11039 _ACEOF
11040
11041 else
11042
11043 cat >>confdefs.h <<\_ACEOF
11044 #define vfork fork
11045 _ACEOF
11046
11047 fi
11048 if test "x$ac_cv_func_fork_works" = xyes; then
11049
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_WORKING_FORK 1
11052 _ACEOF
11053
11054 fi
11055
11056
11057
11058       if test "X$prefix" = "XNONE"; then
11059     acl_final_prefix="$ac_default_prefix"
11060   else
11061     acl_final_prefix="$prefix"
11062   fi
11063   if test "X$exec_prefix" = "XNONE"; then
11064     acl_final_exec_prefix='${prefix}'
11065   else
11066     acl_final_exec_prefix="$exec_prefix"
11067   fi
11068   acl_save_prefix="$prefix"
11069   prefix="$acl_final_prefix"
11070   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11071   prefix="$acl_save_prefix"
11072
11073
11074 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11075 if test "${with_gnu_ld+set}" = set; then
11076   withval="$with_gnu_ld"
11077   test "$withval" = no || with_gnu_ld=yes
11078 else
11079   with_gnu_ld=no
11080 fi;
11081 # Prepare PATH_SEPARATOR.
11082 # The user is always right.
11083 if test "${PATH_SEPARATOR+set}" != set; then
11084   echo "#! /bin/sh" >conf$$.sh
11085   echo  "exit 0"   >>conf$$.sh
11086   chmod +x conf$$.sh
11087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11088     PATH_SEPARATOR=';'
11089   else
11090     PATH_SEPARATOR=:
11091   fi
11092   rm -f conf$$.sh
11093 fi
11094 ac_prog=ld
11095 if test "$GCC" = yes; then
11096   # Check if gcc -print-prog-name=ld gives a path.
11097   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11099   case $host in
11100   *-*-mingw*)
11101     # gcc leaves a trailing carriage return which upsets mingw
11102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11103   *)
11104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11105   esac
11106   case $ac_prog in
11107     # Accept absolute paths.
11108     [\\/]* | [A-Za-z]:[\\/]*)
11109       re_direlt='/[^/][^/]*/\.\./'
11110       # Canonicalize the path of ld
11111       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11112       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11113         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11114       done
11115       test -z "$LD" && LD="$ac_prog"
11116       ;;
11117   "")
11118     # If it fails, then pretend we aren't using GCC.
11119     ac_prog=ld
11120     ;;
11121   *)
11122     # If it is relative, then search for the first ld in PATH.
11123     with_gnu_ld=unknown
11124     ;;
11125   esac
11126 elif test "$with_gnu_ld" = yes; then
11127   echo "$as_me:$LINENO: checking for GNU ld" >&5
11128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11129 else
11130   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11132 fi
11133 if test "${acl_cv_path_LD+set}" = set; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   if test -z "$LD"; then
11137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11138   for ac_dir in $PATH; do
11139     test -z "$ac_dir" && ac_dir=.
11140     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11141       acl_cv_path_LD="$ac_dir/$ac_prog"
11142       # Check to see if the program is GNU ld.  I'd rather use --version,
11143       # but apparently some GNU ld's only accept -v.
11144       # Break only if it was the GNU/non-GNU ld that we prefer.
11145       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11146         test "$with_gnu_ld" != no && break
11147       else
11148         test "$with_gnu_ld" != yes && break
11149       fi
11150     fi
11151   done
11152   IFS="$ac_save_ifs"
11153 else
11154   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11155 fi
11156 fi
11157
11158 LD="$acl_cv_path_LD"
11159 if test -n "$LD"; then
11160   echo "$as_me:$LINENO: result: $LD" >&5
11161 echo "${ECHO_T}$LD" >&6
11162 else
11163   echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6
11165 fi
11166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11168    { (exit 1); exit 1; }; }
11169 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11171 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11172   echo $ECHO_N "(cached) $ECHO_C" >&6
11173 else
11174   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11176   acl_cv_prog_gnu_ld=yes
11177 else
11178   acl_cv_prog_gnu_ld=no
11179 fi
11180 fi
11181 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11182 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11183 with_gnu_ld=$acl_cv_prog_gnu_ld
11184
11185
11186
11187                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11188 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11189 if test "${acl_cv_rpath+set}" = set; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192
11193     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11194     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11195     . ./conftest.sh
11196     rm -f ./conftest.sh
11197     acl_cv_rpath=done
11198
11199 fi
11200 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11201 echo "${ECHO_T}$acl_cv_rpath" >&6
11202   wl="$acl_cv_wl"
11203   libext="$acl_cv_libext"
11204   shlibext="$acl_cv_shlibext"
11205   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11206   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11207   hardcode_direct="$acl_cv_hardcode_direct"
11208   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11209     # Check whether --enable-rpath or --disable-rpath was given.
11210 if test "${enable_rpath+set}" = set; then
11211   enableval="$enable_rpath"
11212   :
11213 else
11214   enable_rpath=yes
11215 fi;
11216
11217
11218
11219
11220
11221
11222
11223     use_additional=yes
11224
11225   acl_save_prefix="$prefix"
11226   prefix="$acl_final_prefix"
11227   acl_save_exec_prefix="$exec_prefix"
11228   exec_prefix="$acl_final_exec_prefix"
11229
11230     eval additional_includedir=\"$includedir\"
11231     eval additional_libdir=\"$libdir\"
11232
11233   exec_prefix="$acl_save_exec_prefix"
11234   prefix="$acl_save_prefix"
11235
11236
11237 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11238 if test "${with_libiconv_prefix+set}" = set; then
11239   withval="$with_libiconv_prefix"
11240
11241     if test "X$withval" = "Xno"; then
11242       use_additional=no
11243     else
11244       if test "X$withval" = "X"; then
11245
11246   acl_save_prefix="$prefix"
11247   prefix="$acl_final_prefix"
11248   acl_save_exec_prefix="$exec_prefix"
11249   exec_prefix="$acl_final_exec_prefix"
11250
11251           eval additional_includedir=\"$includedir\"
11252           eval additional_libdir=\"$libdir\"
11253
11254   exec_prefix="$acl_save_exec_prefix"
11255   prefix="$acl_save_prefix"
11256
11257       else
11258         additional_includedir="$withval/include"
11259         additional_libdir="$withval/lib"
11260       fi
11261     fi
11262
11263 fi;
11264       LIBICONV=
11265   LTLIBICONV=
11266   INCICONV=
11267   rpathdirs=
11268   ltrpathdirs=
11269   names_already_handled=
11270   names_next_round='iconv '
11271   while test -n "$names_next_round"; do
11272     names_this_round="$names_next_round"
11273     names_next_round=
11274     for name in $names_this_round; do
11275       already_handled=
11276       for n in $names_already_handled; do
11277         if test "$n" = "$name"; then
11278           already_handled=yes
11279           break
11280         fi
11281       done
11282       if test -z "$already_handled"; then
11283         names_already_handled="$names_already_handled $name"
11284                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11285         eval value=\"\$HAVE_LIB$uppername\"
11286         if test -n "$value"; then
11287           if test "$value" = yes; then
11288             eval value=\"\$LIB$uppername\"
11289             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11290             eval value=\"\$LTLIB$uppername\"
11291             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11292           else
11293                                     :
11294           fi
11295         else
11296                               found_dir=
11297           found_la=
11298           found_so=
11299           found_a=
11300           if test $use_additional = yes; then
11301             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11302               found_dir="$additional_libdir"
11303               found_so="$additional_libdir/lib$name.$shlibext"
11304               if test -f "$additional_libdir/lib$name.la"; then
11305                 found_la="$additional_libdir/lib$name.la"
11306               fi
11307             else
11308               if test -f "$additional_libdir/lib$name.$libext"; then
11309                 found_dir="$additional_libdir"
11310                 found_a="$additional_libdir/lib$name.$libext"
11311                 if test -f "$additional_libdir/lib$name.la"; then
11312                   found_la="$additional_libdir/lib$name.la"
11313                 fi
11314               fi
11315             fi
11316           fi
11317           if test "X$found_dir" = "X"; then
11318             for x in $LDFLAGS $LTLIBICONV; do
11319
11320   acl_save_prefix="$prefix"
11321   prefix="$acl_final_prefix"
11322   acl_save_exec_prefix="$exec_prefix"
11323   exec_prefix="$acl_final_exec_prefix"
11324   eval x=\"$x\"
11325   exec_prefix="$acl_save_exec_prefix"
11326   prefix="$acl_save_prefix"
11327
11328               case "$x" in
11329                 -L*)
11330                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11331                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11332                     found_dir="$dir"
11333                     found_so="$dir/lib$name.$shlibext"
11334                     if test -f "$dir/lib$name.la"; then
11335                       found_la="$dir/lib$name.la"
11336                     fi
11337                   else
11338                     if test -f "$dir/lib$name.$libext"; then
11339                       found_dir="$dir"
11340                       found_a="$dir/lib$name.$libext"
11341                       if test -f "$dir/lib$name.la"; then
11342                         found_la="$dir/lib$name.la"
11343                       fi
11344                     fi
11345                   fi
11346                   ;;
11347               esac
11348               if test "X$found_dir" != "X"; then
11349                 break
11350               fi
11351             done
11352           fi
11353           if test "X$found_dir" != "X"; then
11354                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11355             if test "X$found_so" != "X"; then
11356                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11357                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11358               else
11359                                                                                 haveit=
11360                 for x in $ltrpathdirs; do
11361                   if test "X$x" = "X$found_dir"; then
11362                     haveit=yes
11363                     break
11364                   fi
11365                 done
11366                 if test -z "$haveit"; then
11367                   ltrpathdirs="$ltrpathdirs $found_dir"
11368                 fi
11369                                 if test "$hardcode_direct" = yes; then
11370                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11371                 else
11372                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11373                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11374                                                             haveit=
11375                     for x in $rpathdirs; do
11376                       if test "X$x" = "X$found_dir"; then
11377                         haveit=yes
11378                         break
11379                       fi
11380                     done
11381                     if test -z "$haveit"; then
11382                       rpathdirs="$rpathdirs $found_dir"
11383                     fi
11384                   else
11385                                                                                 haveit=
11386                     for x in $LDFLAGS $LIBICONV; do
11387
11388   acl_save_prefix="$prefix"
11389   prefix="$acl_final_prefix"
11390   acl_save_exec_prefix="$exec_prefix"
11391   exec_prefix="$acl_final_exec_prefix"
11392   eval x=\"$x\"
11393   exec_prefix="$acl_save_exec_prefix"
11394   prefix="$acl_save_prefix"
11395
11396                       if test "X$x" = "X-L$found_dir"; then
11397                         haveit=yes
11398                         break
11399                       fi
11400                     done
11401                     if test -z "$haveit"; then
11402                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11403                     fi
11404                     if test "$hardcode_minus_L" != no; then
11405                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11406                     else
11407                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11408                     fi
11409                   fi
11410                 fi
11411               fi
11412             else
11413               if test "X$found_a" != "X"; then
11414                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11415               else
11416                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11417               fi
11418             fi
11419                         additional_includedir=
11420             case "$found_dir" in
11421               */lib | */lib/)
11422                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11423                 additional_includedir="$basedir/include"
11424                 ;;
11425             esac
11426             if test "X$additional_includedir" != "X"; then
11427                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11428                 haveit=
11429                 if test "X$additional_includedir" = "X/usr/local/include"; then
11430                   if test -n "$GCC"; then
11431                     case $host_os in
11432                       linux*) haveit=yes;;
11433                     esac
11434                   fi
11435                 fi
11436                 if test -z "$haveit"; then
11437                   for x in $CPPFLAGS $INCICONV; do
11438
11439   acl_save_prefix="$prefix"
11440   prefix="$acl_final_prefix"
11441   acl_save_exec_prefix="$exec_prefix"
11442   exec_prefix="$acl_final_exec_prefix"
11443   eval x=\"$x\"
11444   exec_prefix="$acl_save_exec_prefix"
11445   prefix="$acl_save_prefix"
11446
11447                     if test "X$x" = "X-I$additional_includedir"; then
11448                       haveit=yes
11449                       break
11450                     fi
11451                   done
11452                   if test -z "$haveit"; then
11453                     if test -d "$additional_includedir"; then
11454                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11455                     fi
11456                   fi
11457                 fi
11458               fi
11459             fi
11460                         if test -n "$found_la"; then
11461                                                         save_libdir="$libdir"
11462               case "$found_la" in
11463                 */* | *\\*) . "$found_la" ;;
11464                 *) . "./$found_la" ;;
11465               esac
11466               libdir="$save_libdir"
11467                             for dep in $dependency_libs; do
11468                 case "$dep" in
11469                   -L*)
11470                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11471                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11472                       haveit=
11473                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11474                         if test -n "$GCC"; then
11475                           case $host_os in
11476                             linux*) haveit=yes;;
11477                           esac
11478                         fi
11479                       fi
11480                       if test -z "$haveit"; then
11481                         haveit=
11482                         for x in $LDFLAGS $LIBICONV; do
11483
11484   acl_save_prefix="$prefix"
11485   prefix="$acl_final_prefix"
11486   acl_save_exec_prefix="$exec_prefix"
11487   exec_prefix="$acl_final_exec_prefix"
11488   eval x=\"$x\"
11489   exec_prefix="$acl_save_exec_prefix"
11490   prefix="$acl_save_prefix"
11491
11492                           if test "X$x" = "X-L$additional_libdir"; then
11493                             haveit=yes
11494                             break
11495                           fi
11496                         done
11497                         if test -z "$haveit"; then
11498                           if test -d "$additional_libdir"; then
11499                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11500                           fi
11501                         fi
11502                         haveit=
11503                         for x in $LDFLAGS $LTLIBICONV; do
11504
11505   acl_save_prefix="$prefix"
11506   prefix="$acl_final_prefix"
11507   acl_save_exec_prefix="$exec_prefix"
11508   exec_prefix="$acl_final_exec_prefix"
11509   eval x=\"$x\"
11510   exec_prefix="$acl_save_exec_prefix"
11511   prefix="$acl_save_prefix"
11512
11513                           if test "X$x" = "X-L$additional_libdir"; then
11514                             haveit=yes
11515                             break
11516                           fi
11517                         done
11518                         if test -z "$haveit"; then
11519                           if test -d "$additional_libdir"; then
11520                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11521                           fi
11522                         fi
11523                       fi
11524                     fi
11525                     ;;
11526                   -R*)
11527                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11528                     if test "$enable_rpath" != no; then
11529                                                                   haveit=
11530                       for x in $rpathdirs; do
11531                         if test "X$x" = "X$dir"; then
11532                           haveit=yes
11533                           break
11534                         fi
11535                       done
11536                       if test -z "$haveit"; then
11537                         rpathdirs="$rpathdirs $dir"
11538                       fi
11539                                                                   haveit=
11540                       for x in $ltrpathdirs; do
11541                         if test "X$x" = "X$dir"; then
11542                           haveit=yes
11543                           break
11544                         fi
11545                       done
11546                       if test -z "$haveit"; then
11547                         ltrpathdirs="$ltrpathdirs $dir"
11548                       fi
11549                     fi
11550                     ;;
11551                   -l*)
11552                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11553                     ;;
11554                   *.la)
11555                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11556                     ;;
11557                   *)
11558                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11559                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11560                     ;;
11561                 esac
11562               done
11563             fi
11564           else
11565                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11566             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11567           fi
11568         fi
11569       fi
11570     done
11571   done
11572   if test "X$rpathdirs" != "X"; then
11573     if test -n "$hardcode_libdir_separator"; then
11574                         alldirs=
11575       for found_dir in $rpathdirs; do
11576         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11577       done
11578             acl_save_libdir="$libdir"
11579       libdir="$alldirs"
11580       eval flag=\"$hardcode_libdir_flag_spec\"
11581       libdir="$acl_save_libdir"
11582       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11583     else
11584             for found_dir in $rpathdirs; do
11585         acl_save_libdir="$libdir"
11586         libdir="$found_dir"
11587         eval flag=\"$hardcode_libdir_flag_spec\"
11588         libdir="$acl_save_libdir"
11589         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11590       done
11591     fi
11592   fi
11593   if test "X$ltrpathdirs" != "X"; then
11594             for found_dir in $ltrpathdirs; do
11595       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11596     done
11597   fi
11598
11599
11600
11601
11602
11603
11604
11605           am_save_CPPFLAGS="$CPPFLAGS"
11606
11607   for element in $INCICONV; do
11608     haveit=
11609     for x in $CPPFLAGS; do
11610
11611   acl_save_prefix="$prefix"
11612   prefix="$acl_final_prefix"
11613   acl_save_exec_prefix="$exec_prefix"
11614   exec_prefix="$acl_final_exec_prefix"
11615   eval x=\"$x\"
11616   exec_prefix="$acl_save_exec_prefix"
11617   prefix="$acl_save_prefix"
11618
11619       if test "X$x" = "X$element"; then
11620         haveit=yes
11621         break
11622       fi
11623     done
11624     if test -z "$haveit"; then
11625       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11626     fi
11627   done
11628
11629
11630   echo "$as_me:$LINENO: checking for iconv" >&5
11631 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11632 if test "${am_cv_func_iconv+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635
11636     am_cv_func_iconv="no, consider installing GNU libiconv"
11637     am_cv_lib_iconv=no
11638     cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <stdlib.h>
11645 #include <iconv.h>
11646 int
11647 main ()
11648 {
11649 iconv_t cd = iconv_open("","");
11650        iconv(cd,NULL,NULL,NULL,NULL);
11651        iconv_close(cd);
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658   (eval $ac_link) 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } &&
11665          { ac_try='test -z "$ac_c_werror_flag"
11666                          || test ! -s conftest.err'
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); }; } &&
11672          { ac_try='test -s conftest$ac_exeext'
11673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674   (eval $ac_try) 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; }; then
11678   am_cv_func_iconv=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683 fi
11684 rm -f conftest.err conftest.$ac_objext \
11685       conftest$ac_exeext conftest.$ac_ext
11686     if test "$am_cv_func_iconv" != yes; then
11687       am_save_LIBS="$LIBS"
11688       LIBS="$LIBS $LIBICONV"
11689       cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 #include <stdlib.h>
11696 #include <iconv.h>
11697 int
11698 main ()
11699 {
11700 iconv_t cd = iconv_open("","");
11701          iconv(cd,NULL,NULL,NULL,NULL);
11702          iconv_close(cd);
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709   (eval $ac_link) 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } &&
11716          { ac_try='test -z "$ac_c_werror_flag"
11717                          || test ! -s conftest.err'
11718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719   (eval $ac_try) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; } &&
11723          { ac_try='test -s conftest$ac_exeext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   am_cv_lib_iconv=yes
11730         am_cv_func_iconv=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 fi
11736 rm -f conftest.err conftest.$ac_objext \
11737       conftest$ac_exeext conftest.$ac_ext
11738       LIBS="$am_save_LIBS"
11739     fi
11740
11741 fi
11742 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11743 echo "${ECHO_T}$am_cv_func_iconv" >&6
11744   if test "$am_cv_func_iconv" = yes; then
11745
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_ICONV 1
11748 _ACEOF
11749
11750   fi
11751   if test "$am_cv_lib_iconv" = yes; then
11752     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11753 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11754     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11755 echo "${ECHO_T}$LIBICONV" >&6
11756   else
11757             CPPFLAGS="$am_save_CPPFLAGS"
11758     LIBICONV=
11759     LTLIBICONV=
11760   fi
11761
11762
11763
11764   if test "$am_cv_func_iconv" = yes; then
11765     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11766 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11767     if test "${am_cv_proto_iconv+set}" = set; then
11768   echo $ECHO_N "(cached) $ECHO_C" >&6
11769 else
11770
11771       cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777
11778 #include <stdlib.h>
11779 #include <iconv.h>
11780 extern
11781 #ifdef __cplusplus
11782 "C"
11783 #endif
11784 #if defined(__STDC__) || defined(__cplusplus)
11785 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11786 #else
11787 size_t iconv();
11788 #endif
11789
11790 int
11791 main ()
11792 {
11793
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800   (eval $ac_compile) 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -z "$ac_c_werror_flag"
11808                          || test ! -s conftest.err'
11809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810   (eval $ac_try) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest.$ac_objext'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   am_cv_proto_iconv_arg1=""
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 am_cv_proto_iconv_arg1="const"
11826 fi
11827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11828       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);"
11829 fi
11830
11831     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11832     echo "$as_me:$LINENO: result: ${ac_t:-
11833          }$am_cv_proto_iconv" >&5
11834 echo "${ECHO_T}${ac_t:-
11835          }$am_cv_proto_iconv" >&6
11836
11837 cat >>confdefs.h <<_ACEOF
11838 #define ICONV_CONST $am_cv_proto_iconv_arg1
11839 _ACEOF
11840
11841   fi
11842
11843 # Until we have in-tree GNU iconv:
11844 LIBICONV_DEP=
11845
11846
11847
11848   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11849 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11850 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11851   echo $ECHO_N "(cached) $ECHO_C" >&6
11852 else
11853   cat >conftest.$ac_ext <<_ACEOF
11854 /* confdefs.h.  */
11855 _ACEOF
11856 cat confdefs.h >>conftest.$ac_ext
11857 cat >>conftest.$ac_ext <<_ACEOF
11858 /* end confdefs.h.  */
11859 #include <locale.h>
11860 int
11861 main ()
11862 {
11863 return LC_MESSAGES
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11870   (eval $ac_link) 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } &&
11877          { ac_try='test -z "$ac_c_werror_flag"
11878                          || test ! -s conftest.err'
11879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880   (eval $ac_try) 2>&5
11881   ac_status=$?
11882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883   (exit $ac_status); }; } &&
11884          { ac_try='test -s conftest$ac_exeext'
11885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886   (eval $ac_try) 2>&5
11887   ac_status=$?
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); }; }; then
11890   am_cv_val_LC_MESSAGES=yes
11891 else
11892   echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 am_cv_val_LC_MESSAGES=no
11896 fi
11897 rm -f conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 fi
11900 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11901 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11902   if test $am_cv_val_LC_MESSAGES = yes; then
11903
11904 cat >>confdefs.h <<\_ACEOF
11905 #define HAVE_LC_MESSAGES 1
11906 _ACEOF
11907
11908   fi
11909
11910
11911
11912   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11913 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11914 if test "${am_cv_langinfo_codeset+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 #include <langinfo.h>
11924 int
11925 main ()
11926 {
11927 char* cs = nl_langinfo(CODESET);
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934   (eval $ac_link) 2>conftest.er1
11935   ac_status=$?
11936   grep -v '^ *+' conftest.er1 >conftest.err
11937   rm -f conftest.er1
11938   cat conftest.err >&5
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); } &&
11941          { ac_try='test -z "$ac_c_werror_flag"
11942                          || test ! -s conftest.err'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; } &&
11948          { ac_try='test -s conftest$ac_exeext'
11949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950   (eval $ac_try) 2>&5
11951   ac_status=$?
11952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953   (exit $ac_status); }; }; then
11954   am_cv_langinfo_codeset=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 am_cv_langinfo_codeset=no
11960 fi
11961 rm -f conftest.err conftest.$ac_objext \
11962       conftest$ac_exeext conftest.$ac_ext
11963
11964 fi
11965 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11966 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11967   if test $am_cv_langinfo_codeset = yes; then
11968
11969 cat >>confdefs.h <<\_ACEOF
11970 #define HAVE_LANGINFO_CODESET 1
11971 _ACEOF
11972
11973   fi
11974
11975
11976 # We will need to find libiberty.h and ansidecl.h
11977 saved_CFLAGS="$CFLAGS"
11978 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12019         strsignal strstr strverscmp \
12020         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12021         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
12022 do
12023   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12024 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12025 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12026 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035 #undef $ac_tr_decl
12036 #define $ac_tr_decl 1
12037
12038 #include "ansidecl.h"
12039 #include "system.h"
12040
12041 int
12042 main ()
12043 {
12044 #ifndef $ac_func
12045 char *(*pfn) = (char *(*)) $ac_func ;
12046 #endif
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053   (eval $ac_compile) 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -z "$ac_c_werror_flag"
12061                          || test ! -s conftest.err'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; } &&
12067          { ac_try='test -s conftest.$ac_objext'
12068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069   (eval $ac_try) 2>&5
12070   ac_status=$?
12071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072   (exit $ac_status); }; }; then
12073   eval "gcc_cv_have_decl_$ac_func=yes"
12074 else
12075   echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 eval "gcc_cv_have_decl_$ac_func=no"
12079 fi
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 fi
12082
12083 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12084   echo "$as_me:$LINENO: result: yes" >&5
12085 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12086 #define $ac_tr_decl 1
12087 _ACEOF
12088
12089 else
12090   echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12092 #define $ac_tr_decl 0
12093 _ACEOF
12094
12095 fi
12096
12097 done
12098
12099
12100
12101
12102
12103 for ac_func in getrlimit setrlimit getrusage
12104 do
12105   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12106 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12107 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12108 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 #undef $ac_tr_decl
12118 #define $ac_tr_decl 1
12119
12120 #include "ansidecl.h"
12121 #include "system.h"
12122 #ifdef HAVE_SYS_RESOURCE_H
12123 #include <sys/resource.h>
12124 #endif
12125
12126
12127 int
12128 main ()
12129 {
12130 #ifndef $ac_func
12131 char *(*pfn) = (char *(*)) $ac_func ;
12132 #endif
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext
12138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12139   (eval $ac_compile) 2>conftest.er1
12140   ac_status=$?
12141   grep -v '^ *+' conftest.er1 >conftest.err
12142   rm -f conftest.er1
12143   cat conftest.err >&5
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -z "$ac_c_werror_flag"
12147                          || test ! -s conftest.err'
12148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149   (eval $ac_try) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); }; } &&
12153          { ac_try='test -s conftest.$ac_objext'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; }; then
12159   eval "gcc_cv_have_decl_$ac_func=yes"
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 eval "gcc_cv_have_decl_$ac_func=no"
12165 fi
12166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12167 fi
12168
12169 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12170   echo "$as_me:$LINENO: result: yes" >&5
12171 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12172 #define $ac_tr_decl 1
12173 _ACEOF
12174
12175 else
12176   echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12178 #define $ac_tr_decl 0
12179 _ACEOF
12180
12181 fi
12182
12183 done
12184
12185
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192
12193 #include "ansidecl.h"
12194 #include "system.h"
12195 #ifdef HAVE_SYS_RESOURCE_H
12196 #include <sys/resource.h>
12197 #endif
12198
12199 int
12200 main ()
12201 {
12202 rlim_t l = 0;
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209   (eval $ac_compile) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest.$ac_objext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   :
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234
12235 cat >>confdefs.h <<\_ACEOF
12236 #define rlim_t long
12237 _ACEOF
12238
12239 fi
12240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12241
12242 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12243 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12244 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12245 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12246
12247 for ac_func in ldgetname
12248 do
12249   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12250 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12251 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12252 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261 #undef $ac_tr_decl
12262 #define $ac_tr_decl 1
12263
12264 #include "ansidecl.h"
12265 #include "system.h"
12266 #ifdef HAVE_LDFCN_H
12267 #undef FREAD
12268 #undef FWRITE
12269 #include <ldfcn.h>
12270 #endif
12271
12272
12273 int
12274 main ()
12275 {
12276 #ifndef $ac_func
12277 char *(*pfn) = (char *(*)) $ac_func ;
12278 #endif
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285   (eval $ac_compile) 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -z "$ac_c_werror_flag"
12293                          || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest.$ac_objext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   eval "gcc_cv_have_decl_$ac_func=yes"
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 eval "gcc_cv_have_decl_$ac_func=no"
12311 fi
12312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313 fi
12314
12315 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12316   echo "$as_me:$LINENO: result: yes" >&5
12317 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12318 #define $ac_tr_decl 1
12319 _ACEOF
12320
12321 else
12322   echo "$as_me:$LINENO: result: no" >&5
12323 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12324 #define $ac_tr_decl 0
12325 _ACEOF
12326
12327 fi
12328
12329 done
12330
12331
12332
12333 for ac_func in times
12334 do
12335   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12336 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12337 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12338 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   cat >conftest.$ac_ext <<_ACEOF
12342 /* confdefs.h.  */
12343 _ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h.  */
12347 #undef $ac_tr_decl
12348 #define $ac_tr_decl 1
12349
12350 #include "ansidecl.h"
12351 #include "system.h"
12352 #ifdef HAVE_SYS_TIMES_H
12353 #include <sys/times.h>
12354 #endif
12355
12356
12357 int
12358 main ()
12359 {
12360 #ifndef $ac_func
12361 char *(*pfn) = (char *(*)) $ac_func ;
12362 #endif
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369   (eval $ac_compile) 2>conftest.er1
12370   ac_status=$?
12371   grep -v '^ *+' conftest.er1 >conftest.err
12372   rm -f conftest.er1
12373   cat conftest.err >&5
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } &&
12376          { ac_try='test -z "$ac_c_werror_flag"
12377                          || test ! -s conftest.err'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; } &&
12383          { ac_try='test -s conftest.$ac_objext'
12384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385   (eval $ac_try) 2>&5
12386   ac_status=$?
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); }; }; then
12389   eval "gcc_cv_have_decl_$ac_func=yes"
12390 else
12391   echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 eval "gcc_cv_have_decl_$ac_func=no"
12395 fi
12396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12397 fi
12398
12399 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12400   echo "$as_me:$LINENO: result: yes" >&5
12401 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12402 #define $ac_tr_decl 1
12403 _ACEOF
12404
12405 else
12406   echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12408 #define $ac_tr_decl 0
12409 _ACEOF
12410
12411 fi
12412
12413 done
12414
12415
12416
12417 for ac_func in sigaltstack
12418 do
12419   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12420 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12421 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12422 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 #undef $ac_tr_decl
12432 #define $ac_tr_decl 1
12433
12434 #include "ansidecl.h"
12435 #include "system.h"
12436 #include <signal.h>
12437
12438
12439 int
12440 main ()
12441 {
12442 #ifndef $ac_func
12443 char *(*pfn) = (char *(*)) $ac_func ;
12444 #endif
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451   (eval $ac_compile) 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } &&
12458          { ac_try='test -z "$ac_c_werror_flag"
12459                          || test ! -s conftest.err'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; } &&
12465          { ac_try='test -s conftest.$ac_objext'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   eval "gcc_cv_have_decl_$ac_func=yes"
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 eval "gcc_cv_have_decl_$ac_func=no"
12477 fi
12478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480
12481 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12482   echo "$as_me:$LINENO: result: yes" >&5
12483 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12484 #define $ac_tr_decl 1
12485 _ACEOF
12486
12487 else
12488   echo "$as_me:$LINENO: result: no" >&5
12489 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12490 #define $ac_tr_decl 0
12491 _ACEOF
12492
12493 fi
12494
12495 done
12496
12497
12498 # More time-related stuff.
12499 echo "$as_me:$LINENO: checking for struct tms" >&5
12500 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12501 if test "${ac_cv_struct_tms+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511
12512 #include "ansidecl.h"
12513 #include "system.h"
12514 #ifdef HAVE_SYS_TIMES_H
12515 #include <sys/times.h>
12516 #endif
12517
12518 int
12519 main ()
12520 {
12521 struct tms tms;
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext
12527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528   (eval $ac_compile) 2>conftest.er1
12529   ac_status=$?
12530   grep -v '^ *+' conftest.er1 >conftest.err
12531   rm -f conftest.er1
12532   cat conftest.err >&5
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } &&
12535          { ac_try='test -z "$ac_c_werror_flag"
12536                          || test ! -s conftest.err'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest.$ac_objext'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_cv_struct_tms=yes
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_struct_tms=no
12554 fi
12555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12556 fi
12557 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12558 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12559 if test $ac_cv_struct_tms = yes; then
12560
12561 cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_STRUCT_TMS 1
12563 _ACEOF
12564
12565 fi
12566
12567 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12568 # revisit after autoconf 2.50.
12569 echo "$as_me:$LINENO: checking for clock_t" >&5
12570 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12571 if test "${gcc_cv_type_clock_t+set}" = set; then
12572   echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581
12582 #include "ansidecl.h"
12583 #include "system.h"
12584
12585 int
12586 main ()
12587 {
12588 clock_t x;
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595   (eval $ac_compile) 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_c_werror_flag"
12603                          || test ! -s conftest.err'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest.$ac_objext'
12610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611   (eval $ac_try) 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; }; then
12615   gcc_cv_type_clock_t=yes
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 gcc_cv_type_clock_t=no
12621 fi
12622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12623 fi
12624 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12625 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12626 if test $gcc_cv_type_clock_t = yes; then
12627
12628 cat >>confdefs.h <<\_ACEOF
12629 #define HAVE_CLOCK_T 1
12630 _ACEOF
12631
12632 fi
12633
12634 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12635 CFLAGS="$saved_CFLAGS"
12636
12637 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12638 if test "${enable_initfini_array+set}" = set; then
12639   enableval="$enable_initfini_array"
12640
12641 else
12642
12643 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12644 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12645 if test "${gcc_cv_initfini_array+set}" = set; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648     if test "$cross_compiling" = yes; then
12649   gcc_cv_initfini_array=no
12650 else
12651   cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h.  */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h.  */
12657
12658 static int x = -1;
12659 int main (void) { return x; }
12660 int foo (void) { x = 0; }
12661 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12662 _ACEOF
12663 rm -f conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665   (eval $ac_link) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; }; then
12674   gcc_cv_initfini_array=yes
12675 else
12676   echo "$as_me: program exited with status $ac_status" >&5
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ( exit $ac_status )
12681 gcc_cv_initfini_array=no
12682 fi
12683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12684 fi
12685 fi
12686 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12687 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12688   enable_initfini_array=$gcc_cv_initfini_array
12689
12690 fi;
12691 if test $enable_initfini_array = yes; then
12692
12693 cat >>confdefs.h <<\_ACEOF
12694 #define HAVE_INITFINI_ARRAY 1
12695 _ACEOF
12696
12697 fi
12698
12699 # mkdir takes a single argument on some systems.
12700 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12701 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12702 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12703   echo $ECHO_N "(cached) $ECHO_C" >&6
12704 else
12705   cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711
12712 #include <sys/types.h>
12713 #ifdef HAVE_SYS_STAT_H
12714 # include <sys/stat.h>
12715 #endif
12716 #ifdef HAVE_UNISTD_H
12717 # include <unistd.h>
12718 #endif
12719 #ifdef HAVE_DIRECT_H
12720 # include <direct.h>
12721 #endif
12722 int
12723 main ()
12724 {
12725 mkdir ("foo", 0);
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732   (eval $ac_compile) 2>conftest.er1
12733   ac_status=$?
12734   grep -v '^ *+' conftest.er1 >conftest.err
12735   rm -f conftest.er1
12736   cat conftest.err >&5
12737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738   (exit $ac_status); } &&
12739          { ac_try='test -z "$ac_c_werror_flag"
12740                          || test ! -s conftest.err'
12741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742   (eval $ac_try) 2>&5
12743   ac_status=$?
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); }; } &&
12746          { ac_try='test -s conftest.$ac_objext'
12747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748   (eval $ac_try) 2>&5
12749   ac_status=$?
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); }; }; then
12752   gcc_cv_mkdir_takes_one_arg=no
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757 gcc_cv_mkdir_takes_one_arg=yes
12758 fi
12759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12760 fi
12761 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12762 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12763 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12764
12765 cat >>confdefs.h <<\_ACEOF
12766 #define MKDIR_TAKES_ONE_ARG 1
12767 _ACEOF
12768
12769 fi
12770
12771
12772 # File extensions
12773 manext='.1'
12774 objext='.o'
12775
12776
12777
12778 # With Setjmp/Longjmp based exception handling.
12779 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12780 if test "${enable_sjlj_exceptions+set}" = set; then
12781   enableval="$enable_sjlj_exceptions"
12782   case $target in
12783   *-*-hpux10*)
12784     if test $enableval != yes; then
12785       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12786 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12787       enableval=yes
12788     fi
12789     ;;
12790 esac
12791 force_sjlj_exceptions=yes
12792 else
12793   case $target in
12794   *-*-hpux10*)
12795     force_sjlj_exceptions=yes
12796     enableval=yes
12797     ;;
12798   *)
12799     force_sjlj_exceptions=no
12800     ;;
12801 esac
12802 fi;
12803 if test $force_sjlj_exceptions = yes; then
12804   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12805
12806 cat >>confdefs.h <<_ACEOF
12807 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12808 _ACEOF
12809
12810 fi
12811
12812 # For platforms with the unwind ABI which includes an unwind library,
12813 # libunwind, we can choose to use the system libunwind.
12814
12815 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12816 if test "${with_system_libunwind+set}" = set; then
12817   withval="$with_system_libunwind"
12818
12819 fi;
12820
12821 # config.gcc also contains tests of with_system_libunwind.
12822 if test x$with_system_libunwind = xyes; then
12823
12824 cat >>confdefs.h <<\_ACEOF
12825 #define HAVE_GETIPINFO 1
12826 _ACEOF
12827
12828 fi
12829
12830 # --------------------------------------------------------
12831 # Build, host, and target specific configuration fragments
12832 # --------------------------------------------------------
12833
12834 # Collect build-machine-specific information.
12835 . ${srcdir}/config.build
12836
12837 # Collect host-machine-specific information.
12838 . ${srcdir}/config.host
12839
12840 target_gtfiles=
12841
12842 # Collect target-machine-specific information.
12843 . ${srcdir}/config.gcc
12844
12845 extra_objs="${host_extra_objs} ${extra_objs}"
12846 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12847
12848 # Default the target-machine variables that were not explicitly set.
12849 if test x"$tm_file" = x
12850 then tm_file=$cpu_type/$cpu_type.h; fi
12851
12852 if test x"$extra_headers" = x
12853 then extra_headers=; fi
12854
12855 if test x$md_file = x
12856 then md_file=$cpu_type/$cpu_type.md; fi
12857
12858 if test x$out_file = x
12859 then out_file=$cpu_type/$cpu_type.c; fi
12860
12861 if test x"$tmake_file" = x
12862 then tmake_file=$cpu_type/t-$cpu_type
12863 fi
12864
12865 if test x"$dwarf2" = xyes
12866 then tm_file="$tm_file tm-dwarf2.h"
12867 fi
12868
12869 # Say what files are being used for the output code and MD file.
12870 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12871 echo "Using \`$srcdir/config/$md_file' as machine description file."
12872
12873 # If any of the xm_file variables contain nonexistent files, warn
12874 # about them and drop them.
12875
12876 bx=
12877 for x in $build_xm_file; do
12878   if    test -f $srcdir/config/$x
12879   then      bx="$bx $x"
12880   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12881 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12882   fi
12883 done
12884 build_xm_file="$bx"
12885
12886 hx=
12887 for x in $host_xm_file; do
12888   if    test -f $srcdir/config/$x
12889   then      hx="$hx $x"
12890   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12891 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12892   fi
12893 done
12894 host_xm_file="$hx"
12895
12896 tx=
12897 for x in $xm_file; do
12898   if    test -f $srcdir/config/$x
12899   then      tx="$tx $x"
12900   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12901 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12902   fi
12903 done
12904 xm_file="$tx"
12905
12906 count=a
12907 for f in $tm_file; do
12908         count=${count}x
12909 done
12910 if test $count = ax; then
12911         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12912 else
12913         echo "Using the following target machine macro files:"
12914         for f in $tm_file; do
12915                 echo "  $srcdir/config/$f"
12916         done
12917 fi
12918
12919 if test x$need_64bit_hwint = xyes; then
12920
12921 cat >>confdefs.h <<\_ACEOF
12922 #define NEED_64BIT_HOST_WIDE_INT 1
12923 _ACEOF
12924
12925 fi
12926
12927 if test x$use_long_long_for_widest_fast_int = xyes; then
12928
12929 cat >>confdefs.h <<\_ACEOF
12930 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12931 _ACEOF
12932
12933 fi
12934
12935 count=a
12936 for f in $host_xm_file; do
12937         count=${count}x
12938 done
12939 if test $count = a; then
12940         :
12941 elif test $count = ax; then
12942         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12943 else
12944         echo "Using the following host machine macro files:"
12945         for f in $host_xm_file; do
12946                 echo "  $srcdir/config/$f"
12947         done
12948 fi
12949 echo "Using ${out_host_hook_obj} for host machine hooks."
12950
12951 if test "$host_xm_file" != "$build_xm_file"; then
12952         count=a
12953         for f in $build_xm_file; do
12954                 count=${count}x
12955         done
12956         if test $count = a; then
12957                 :
12958         elif test $count = ax; then
12959                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12960         else
12961                 echo "Using the following build machine macro files:"
12962                 for f in $build_xm_file; do
12963                         echo "  $srcdir/config/$f"
12964                 done
12965         fi
12966 fi
12967
12968 case ${host} in
12969   powerpc*-*-darwin*)
12970     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12971 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12972 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12973   echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975   cat >conftest.$ac_ext <<_ACEOF
12976
12977 #include <sys/cdefs.h>
12978 #include <sys/signal.h>
12979 #include <ucontext.h>
12980 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12981
12982 _ACEOF
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985   (eval $ac_compile) 2>conftest.er1
12986   ac_status=$?
12987   grep -v '^ *+' conftest.er1 >conftest.err
12988   rm -f conftest.er1
12989   cat conftest.err >&5
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); } &&
12992          { ac_try='test -z "$ac_c_werror_flag"
12993                          || test ! -s conftest.err'
12994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995   (eval $ac_try) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; } &&
12999          { ac_try='test -s conftest.$ac_objext'
13000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001   (eval $ac_try) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); }; }; then
13005   gcc_cv_mcontext_underscores=no
13006 else
13007   echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010 gcc_cv_mcontext_underscores=yes
13011 fi
13012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13015 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13016       if test $gcc_cv_mcontext_underscores = yes; then
13017
13018 cat >>confdefs.h <<\_ACEOF
13019 #define HAS_MCONTEXT_T_UNDERSCORES
13020 _ACEOF
13021
13022       fi
13023     ;;
13024 esac
13025
13026 # ---------
13027 # Threading
13028 # ---------
13029
13030 # Check if a valid thread package
13031 case ${enable_threads} in
13032   "" | no)
13033     # No threads
13034     target_thread_file='single'
13035     ;;
13036   yes)
13037     # default
13038     target_thread_file='single'
13039     ;;
13040   aix | dce | gnat | irix | posix | posix95 | rtems | \
13041   single | solaris | vxworks | win32 | mipssde)
13042     target_thread_file=${enable_threads}
13043     ;;
13044   *)
13045     echo "${enable_threads} is an unknown thread package" 1>&2
13046     exit 1
13047     ;;
13048 esac
13049
13050 if test x${thread_file} = x; then
13051   # No thread file set by target-specific clauses in config.gcc,
13052   # so use file chosen by default logic above
13053   thread_file=${target_thread_file}
13054 fi
13055
13056 # Make gthr-default.h if we have a thread file.
13057 gthread_flags=
13058 if test $thread_file != single; then
13059   rm -f gthr-default.h
13060   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13061   gthread_flags=-DHAVE_GTHR_DEFAULT
13062 fi
13063
13064
13065 # --------
13066 # UNSORTED
13067 # --------
13068
13069 use_cxa_atexit=no
13070 if test x$enable___cxa_atexit = xyes || \
13071    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13072   if test x$host = x$target; then
13073     case $host in
13074       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13075       # keyed to flag_use_cxa_atexit
13076       *-*-mingw32*)
13077         use_cxa_atexit=yes
13078         ;;
13079       *)
13080         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13081 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13082 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13093 #define __cxa_atexit innocuous___cxa_atexit
13094
13095 /* System header to define __stub macros and hopefully few prototypes,
13096     which can conflict with char __cxa_atexit (); below.
13097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13098     <limits.h> exists even on freestanding compilers.  */
13099
13100 #ifdef __STDC__
13101 # include <limits.h>
13102 #else
13103 # include <assert.h>
13104 #endif
13105
13106 #undef __cxa_atexit
13107
13108 /* Override any gcc2 internal prototype to avoid an error.  */
13109 #ifdef __cplusplus
13110 extern "C"
13111 {
13112 #endif
13113 /* We use char because int might match the return type of a gcc2
13114    builtin and then its argument prototype would still apply.  */
13115 char __cxa_atexit ();
13116 /* The GNU C library defines this for functions which it implements
13117     to always fail with ENOSYS.  Some functions are actually named
13118     something starting with __ and the normal name is an alias.  */
13119 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13120 choke me
13121 #else
13122 char (*f) () = __cxa_atexit;
13123 #endif
13124 #ifdef __cplusplus
13125 }
13126 #endif
13127
13128 int
13129 main ()
13130 {
13131 return f != __cxa_atexit;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>conftest.er1
13139   ac_status=$?
13140   grep -v '^ *+' conftest.er1 >conftest.err
13141   rm -f conftest.er1
13142   cat conftest.err >&5
13143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144   (exit $ac_status); } &&
13145          { ac_try='test -z "$ac_c_werror_flag"
13146                          || test ! -s conftest.err'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; } &&
13152          { ac_try='test -s conftest$ac_exeext'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; }; then
13158   ac_cv_func___cxa_atexit=yes
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 ac_cv_func___cxa_atexit=no
13164 fi
13165 rm -f conftest.err conftest.$ac_objext \
13166       conftest$ac_exeext conftest.$ac_ext
13167 fi
13168 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13169 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13170 if test $ac_cv_func___cxa_atexit = yes; then
13171   use_cxa_atexit=yes
13172 else
13173   echo "__cxa_atexit can't be enabled on this target"
13174 fi
13175
13176         ;;
13177     esac
13178   else
13179     # We can't check for __cxa_atexit when building a cross, so assume
13180     # it is available
13181     use_cxa_atexit=yes
13182   fi
13183   if test x$use_cxa_atexit = xyes; then
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define DEFAULT_USE_CXA_ATEXIT 2
13187 _ACEOF
13188
13189   fi
13190 fi
13191
13192 use_getipinfo=yes
13193 if test x$with_system_libunwind = xyes; then
13194    if test x$host = x$target; then
13195      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13196 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13197 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   ac_func_search_save_LIBS=$LIBS
13201 ac_cv_search__Unwind_GetIPInfo=no
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208
13209 /* Override any gcc2 internal prototype to avoid an error.  */
13210 #ifdef __cplusplus
13211 extern "C"
13212 #endif
13213 /* We use char because int might match the return type of a gcc2
13214    builtin and then its argument prototype would still apply.  */
13215 char _Unwind_GetIPInfo ();
13216 int
13217 main ()
13218 {
13219 _Unwind_GetIPInfo ();
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226   (eval $ac_link) 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } &&
13233          { ac_try='test -z "$ac_c_werror_flag"
13234                          || test ! -s conftest.err'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; } &&
13240          { ac_try='test -s conftest$ac_exeext'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; }; then
13246   ac_cv_search__Unwind_GetIPInfo="none required"
13247 else
13248   echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 fi
13252 rm -f conftest.err conftest.$ac_objext \
13253       conftest$ac_exeext conftest.$ac_ext
13254 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13255   for ac_lib in unwind; do
13256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13257     cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263
13264 /* Override any gcc2 internal prototype to avoid an error.  */
13265 #ifdef __cplusplus
13266 extern "C"
13267 #endif
13268 /* We use char because int might match the return type of a gcc2
13269    builtin and then its argument prototype would still apply.  */
13270 char _Unwind_GetIPInfo ();
13271 int
13272 main ()
13273 {
13274 _Unwind_GetIPInfo ();
13275   ;
13276   return 0;
13277 }
13278 _ACEOF
13279 rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13281   (eval $ac_link) 2>conftest.er1
13282   ac_status=$?
13283   grep -v '^ *+' conftest.er1 >conftest.err
13284   rm -f conftest.er1
13285   cat conftest.err >&5
13286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287   (exit $ac_status); } &&
13288          { ac_try='test -z "$ac_c_werror_flag"
13289                          || test ! -s conftest.err'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest$ac_exeext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13302 break
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 fi
13308 rm -f conftest.err conftest.$ac_objext \
13309       conftest$ac_exeext conftest.$ac_ext
13310   done
13311 fi
13312 LIBS=$ac_func_search_save_LIBS
13313 fi
13314 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13315 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13316 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13317   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13318
13319 else
13320   use_getipinfo=no
13321 fi
13322
13323    fi
13324 fi
13325
13326 if test x$use_getipinfo = xyes; then
13327
13328 cat >>confdefs.h <<\_ACEOF
13329 #define HAVE_GETIPINFO 1
13330 _ACEOF
13331
13332 else
13333    echo "The system unwind library does not support _Unwind_GetIPInfo."
13334 fi
13335
13336 # Look for a file containing extra machine modes.
13337 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13338   extra_modes_file='$(srcdir)'/config/${extra_modes}
13339
13340
13341 cat >>confdefs.h <<_ACEOF
13342 #define EXTRA_MODES_FILE "config/$extra_modes"
13343 _ACEOF
13344
13345 fi
13346
13347 # Convert extra_options into a form suitable for Makefile use.
13348 extra_opt_files=
13349 for f in $extra_options; do
13350   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13351 done
13352
13353
13354 # auto-host.h is the file containing items generated by autoconf and is
13355 # the first file included by config.h.
13356 # If host=build, it is correct to have bconfig include auto-host.h
13357 # as well.  If host!=build, we are in error and need to do more
13358 # work to find out the build config parameters.
13359 if test x$host = x$build
13360 then
13361         build_auto=auto-host.h
13362 else
13363         # We create a subdir, then run autoconf in the subdir.
13364         # To prevent recursion we set host and build for the new
13365         # invocation of configure to the build for this invocation
13366         # of configure.
13367         tempdir=build.$$
13368         rm -rf $tempdir
13369         mkdir $tempdir
13370         cd $tempdir
13371         case ${srcdir} in
13372         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13373         *) realsrcdir=../${srcdir};;
13374         esac
13375         saved_CFLAGS="${CFLAGS}"
13376         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13377         ${realsrcdir}/configure \
13378                 --enable-languages=${enable_languages-all} \
13379                 --target=$target_alias --host=$build_alias --build=$build_alias
13380         CFLAGS="${saved_CFLAGS}"
13381
13382         # We just finished tests for the build machine, so rename
13383         # the file auto-build.h in the gcc directory.
13384         mv auto-host.h ../auto-build.h
13385         cd ..
13386         rm -rf $tempdir
13387         build_auto=auto-build.h
13388 fi
13389
13390
13391 tm_file="${tm_file} defaults.h"
13392 tm_p_file="${tm_p_file} tm-preds.h"
13393 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13394 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13395 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13396 # put this back in temporarily.
13397 xm_file="auto-host.h ansidecl.h ${xm_file}"
13398
13399 # --------
13400 # UNSORTED
13401 # --------
13402
13403 # Compile in configure arguments.
13404 if test -f configargs.h ; then
13405         # Being re-configured.
13406         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13407         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13408 else
13409         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13410 fi
13411
13412 # Double all backslashes and backslash all quotes to turn
13413 # gcc_config_arguments into a C string.
13414 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13415 $gcc_config_arguments
13416 EOF
13417 gcc_config_arguments_str=`cat conftest.out`
13418 rm -f conftest.out
13419
13420 cat > configargs.h <<EOF
13421 /* Generated automatically. */
13422 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13423 static const char thread_model[] = "$thread_file";
13424
13425 static const struct {
13426   const char *name, *value;
13427 } configure_default_options[] = $configure_default_options;
13428 EOF
13429
13430 # Internationalization
13431 # If we haven't got the data from the intl directory,
13432 # assume NLS is disabled.
13433 USE_NLS=no
13434 LIBINTL=
13435 LIBINTL_DEP=
13436 INCINTL=
13437 XGETTEXT=
13438 GMSGFMT=
13439 POSUB=
13440
13441 if test -f  ../intl/config.intl; then
13442   .  ../intl/config.intl
13443 fi
13444 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13445 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13446 if test x"$USE_NLS" != xyes; then
13447   echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13449 else
13450   echo "$as_me:$LINENO: result: yes" >&5
13451 echo "${ECHO_T}yes" >&6
13452
13453 cat >>confdefs.h <<\_ACEOF
13454 #define ENABLE_NLS 1
13455 _ACEOF
13456
13457
13458   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13459 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13460   # Look for .po and .gmo files in the source directory.
13461   CATALOGS=
13462   XLINGUAS=
13463   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13464     # If there aren't any .gmo files the shell will give us the
13465     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13466     # weeded out.
13467     case "$cat" in *\**)
13468       continue;;
13469     esac
13470     # The quadruple backslash is collapsed to a double backslash
13471     # by the backticks, then collapsed again by the double quotes,
13472     # leaving us with one backslash in the sed expression (right
13473     # before the dot that mustn't act as a wildcard).
13474     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13475     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13476     # The user is allowed to set LINGUAS to a list of languages to
13477     # install catalogs for.  If it's empty that means "all of them."
13478     if test "x$LINGUAS" = x; then
13479       CATALOGS="$CATALOGS $cat"
13480       XLINGUAS="$XLINGUAS $lang"
13481     else
13482       case "$LINGUAS" in *$lang*)
13483         CATALOGS="$CATALOGS $cat"
13484         XLINGUAS="$XLINGUAS $lang"
13485         ;;
13486       esac
13487     fi
13488   done
13489   LINGUAS="$XLINGUAS"
13490   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13491 echo "${ECHO_T}$LINGUAS" >&6
13492
13493
13494     DATADIRNAME=share
13495
13496   INSTOBJEXT=.mo
13497
13498   GENCAT=gencat
13499
13500   CATOBJEXT=.gmo
13501
13502 fi
13503
13504 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13505 # -liconv on the link line twice.
13506 case "$LIBINTL" in *$LIBICONV*)
13507         LIBICONV= ;;
13508 esac
13509
13510 # Check whether --enable-secureplt or --disable-secureplt was given.
13511 if test "${enable_secureplt+set}" = set; then
13512   enableval="$enable_secureplt"
13513
13514 fi;
13515
13516 # Windows32 Registry support for specifying GCC installation paths.
13517 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13518 if test "${enable_win32_registry+set}" = set; then
13519   enableval="$enable_win32_registry"
13520
13521 fi;
13522
13523 case $host_os in
13524   win32 | pe | cygwin* | mingw32* | uwin*)
13525     if test "x$enable_win32_registry" != xno; then
13526       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13527 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13528 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   ac_func_search_save_LIBS=$LIBS
13532 ac_cv_search_RegOpenKeyExA=no
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539
13540 /* Override any gcc2 internal prototype to avoid an error.  */
13541 #ifdef __cplusplus
13542 extern "C"
13543 #endif
13544 /* We use char because int might match the return type of a gcc2
13545    builtin and then its argument prototype would still apply.  */
13546 char RegOpenKeyExA ();
13547 int
13548 main ()
13549 {
13550 RegOpenKeyExA ();
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext conftest$ac_exeext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557   (eval $ac_link) 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag"
13565                          || test ! -s conftest.err'
13566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567   (eval $ac_try) 2>&5
13568   ac_status=$?
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); }; } &&
13571          { ac_try='test -s conftest$ac_exeext'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_cv_search_RegOpenKeyExA="none required"
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582 fi
13583 rm -f conftest.err conftest.$ac_objext \
13584       conftest$ac_exeext conftest.$ac_ext
13585 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13586   for ac_lib in advapi32; do
13587     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13588     cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594
13595 /* Override any gcc2 internal prototype to avoid an error.  */
13596 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 /* We use char because int might match the return type of a gcc2
13600    builtin and then its argument prototype would still apply.  */
13601 char RegOpenKeyExA ();
13602 int
13603 main ()
13604 {
13605 RegOpenKeyExA ();
13606   ;
13607   return 0;
13608 }
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13612   (eval $ac_link) 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag"
13620                          || test ! -s conftest.err'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; } &&
13626          { ac_try='test -s conftest$ac_exeext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13633 break
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638 fi
13639 rm -f conftest.err conftest.$ac_objext \
13640       conftest$ac_exeext conftest.$ac_ext
13641   done
13642 fi
13643 LIBS=$ac_func_search_save_LIBS
13644 fi
13645 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13646 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13647 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13648   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13649
13650 else
13651   enable_win32_registry=no
13652 fi
13653
13654     fi
13655
13656     if test "x$enable_win32_registry" != xno; then
13657
13658 cat >>confdefs.h <<\_ACEOF
13659 #define ENABLE_WIN32_REGISTRY 1
13660 _ACEOF
13661
13662
13663       if test "x$enable_win32_registry" != xyes \
13664          && test "x$enable_win32_registry" != x; then
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13668 _ACEOF
13669
13670       fi
13671     fi
13672   ;;
13673 esac
13674
13675 # Get an absolute path to the GCC top-level source directory
13676 holddir=`${PWDCMD-pwd}`
13677 cd $srcdir
13678 topdir=`${PWDCMD-pwd}`
13679 cd $holddir
13680
13681 # Conditionalize the makefile for this host machine.
13682 xmake_file=
13683 for f in ${host_xmake_file}
13684 do
13685         if test -f ${srcdir}/config/$f
13686         then
13687                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13688         fi
13689 done
13690
13691 # Conditionalize the makefile for this target machine.
13692 tmake_file_=
13693 for f in ${tmake_file}
13694 do
13695         if test -f ${srcdir}/config/$f
13696         then
13697                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13698         fi
13699 done
13700 tmake_file="${tmake_file_}"
13701
13702 # This is a terrible hack which will go away some day.
13703 host_cc_for_libada=${CC}
13704
13705
13706 out_object_file=`basename $out_file .c`.o
13707
13708 tm_file_list="options.h"
13709 tm_include_list="options.h"
13710 for f in $tm_file; do
13711   case $f in
13712     ./* )
13713        f=`echo $f | sed 's/^..//'`
13714        tm_file_list="${tm_file_list} $f"
13715        tm_include_list="${tm_include_list} $f"
13716        ;;
13717     defaults.h )
13718        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13719        tm_include_list="${tm_include_list} $f"
13720        ;;
13721     * )
13722        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13723        tm_include_list="${tm_include_list} config/$f"
13724        ;;
13725   esac
13726 done
13727
13728 tm_p_file_list=
13729 tm_p_include_list=
13730 for f in $tm_p_file; do
13731   case $f in
13732     tm-preds.h )
13733        tm_p_file_list="${tm_p_file_list} $f"
13734        tm_p_include_list="${tm_p_include_list} $f"
13735        ;;
13736     * )
13737        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13738        tm_p_include_list="${tm_p_include_list} config/$f"
13739   esac
13740 done
13741
13742 xm_file_list=
13743 xm_include_list=
13744 for f in $xm_file; do
13745   case $f in
13746     ansidecl.h )
13747        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13748        xm_include_list="${xm_include_list} $f"
13749        ;;
13750     auto-host.h )
13751        xm_file_list="${xm_file_list} $f"
13752        xm_include_list="${xm_include_list} $f"
13753        ;;
13754     * )
13755        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13756        xm_include_list="${xm_include_list} config/$f"
13757        ;;
13758   esac
13759 done
13760
13761 host_xm_file_list=
13762 host_xm_include_list=
13763 for f in $host_xm_file; do
13764   case $f in
13765     ansidecl.h )
13766        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13767        host_xm_include_list="${host_xm_include_list} $f"
13768        ;;
13769     auto-host.h )
13770        host_xm_file_list="${host_xm_file_list} $f"
13771        host_xm_include_list="${host_xm_include_list} $f"
13772        ;;
13773     * )
13774        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13775        host_xm_include_list="${host_xm_include_list} config/$f"
13776        ;;
13777   esac
13778 done
13779
13780 build_xm_file_list=
13781 for f in $build_xm_file; do
13782   case $f in
13783     ansidecl.h )
13784        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13785        build_xm_include_list="${build_xm_include_list} $f"
13786        ;;
13787     auto-build.h | auto-host.h )
13788        build_xm_file_list="${build_xm_file_list} $f"
13789        build_xm_include_list="${build_xm_include_list} $f"
13790        ;;
13791     * )
13792        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13793        build_xm_include_list="${build_xm_include_list} config/$f"
13794        ;;
13795   esac
13796 done
13797
13798 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13799 # cross-compiler which does not use the native headers and libraries.
13800 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13801 CROSS=
13802 ALL=all.internal
13803 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13804
13805 if test "x$with_build_sysroot" != x; then
13806   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13807 else
13808   # This value is used, even on a native system, because
13809   # CROSS_SYSTEM_HEADER_DIR is just
13810   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13811   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13812 fi
13813
13814 if test x$host != x$target
13815 then
13816         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13817         ALL=all.cross
13818         SYSTEM_HEADER_DIR=$build_system_header_dir
13819         case "$host","$target" in
13820         # Darwin crosses can use the host system's libraries and headers,
13821         # because of the fat library support.  Of course, it must be the
13822         # same version of Darwin on both sides.  Allow the user to
13823         # just say --target=foo-darwin without a version number to mean
13824         # "the version on this system".
13825             *-*-darwin*,*-*-darwin*)
13826                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13827                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13828                 if test $hostos = $targetos -o $targetos = darwin ; then
13829                     CROSS=
13830                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13831                     with_headers=yes
13832                 fi
13833                 ;;
13834
13835             i?86-*-*,x86_64-*-* \
13836             | powerpc*-*-*,powerpc64*-*-*)
13837                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13838         esac
13839 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13840         SYSTEM_HEADER_DIR=$build_system_header_dir
13841 fi
13842
13843 # If this is a cross-compiler that does not
13844 # have its own set of headers then define
13845 # inhibit_libc
13846
13847 # If this is using newlib, without having the headers available now,
13848 # then define inhibit_libc in LIBGCC2_CFLAGS.
13849 # This prevents libgcc2 from containing any code which requires libc
13850 # support.
13851 : ${inhibit_libc=false}
13852 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13853        test x$with_newlib = xyes ; } &&
13854      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13855        inhibit_libc=true
13856 fi
13857
13858
13859 # When building gcc with a cross-compiler, we need to adjust things so
13860 # that the generator programs are still built with the native compiler.
13861 # Also, we cannot run fixincludes or fix-header.
13862
13863 # These are the normal (build=host) settings:
13864 CC_FOR_BUILD='$(CC)'
13865 BUILD_CFLAGS='$(ALL_CFLAGS)'
13866 STMP_FIXINC=stmp-fixinc
13867
13868 # Possibly disable fixproto, on a per-target basis.
13869 case ${use_fixproto} in
13870   no)
13871     STMP_FIXPROTO=
13872     ;;
13873   yes)
13874     STMP_FIXPROTO=stmp-fixproto
13875     ;;
13876 esac
13877
13878
13879 # And these apply if build != host, or we are generating coverage data
13880 if test x$build != x$host || test "x$coverage_flags" != x
13881 then
13882     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13883
13884     if test "x$TARGET_SYSTEM_ROOT" = x; then
13885         if test "x$STMP_FIXPROTO" != x; then
13886           STMP_FIXPROTO=stmp-install-fixproto
13887         fi
13888     fi
13889 fi
13890
13891 # Expand extra_headers to include complete path.
13892 # This substitutes for lots of t-* files.
13893 extra_headers_list=
13894 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13895 for file in ${extra_headers} ; do
13896   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13897 done
13898
13899 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13900 if test x"$use_gcc_tgmath" = xyes
13901 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13902 fi
13903
13904 # Define collect2 in Makefile.
13905 case $host_can_use_collect2 in
13906   no) collect2= ;;
13907   *) collect2='collect2$(exeext)' ;;
13908 esac
13909
13910
13911 # Add a definition of USE_COLLECT2 if system wants one.
13912 case $use_collect2 in
13913   no) use_collect2= ;;
13914   "") ;;
13915   *)
13916     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13917     xm_defines="${xm_defines} USE_COLLECT2"
13918     case $host_can_use_collect2 in
13919       no)
13920         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13921 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13922    { (exit 1); exit 1; }; }
13923         ;;
13924     esac
13925     ;;
13926 esac
13927
13928 # ---------------------------
13929 # Assembler & linker features
13930 # ---------------------------
13931
13932 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13933 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13934 # However when ld-new is first executed from the build tree, libtool will
13935 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13936 # to the build tree.  While doing this we need to use the previous-stage
13937 # linker, or we have an infinite loop.  The presence of a shell script as
13938 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13939 # the gcc/collect-ld script.  So we need to know how libtool works, or
13940 # exec-tool will fail.
13941
13942
13943
13944
13945 macro_version='2.1a'
13946 macro_revision='1.2435'
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959 ltmain="$ac_aux_dir/ltmain.sh"
13960
13961 # Set options
13962
13963 enable_dlopen=no
13964
13965
13966 enable_win32_dll=no
13967
13968
13969 # Check whether --enable-shared or --disable-shared was given.
13970 if test "${enable_shared+set}" = set; then
13971   enableval="$enable_shared"
13972   p=${PACKAGE-default}
13973     case $enableval in
13974     yes) enable_shared=yes ;;
13975     no) enable_shared=no ;;
13976     *)
13977       enable_shared=no
13978       # Look at the argument we got.  We use all the common list separators.
13979       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13980       for pkg in $enableval; do
13981         IFS="$lt_save_ifs"
13982         if test "X$pkg" = "X$p"; then
13983           enable_shared=yes
13984         fi
13985       done
13986       IFS="$lt_save_ifs"
13987       ;;
13988     esac
13989 else
13990   enable_shared=yes
13991 fi;
13992
13993
13994
13995
13996
13997
13998
13999
14000 # Check whether --enable-static or --disable-static was given.
14001 if test "${enable_static+set}" = set; then
14002   enableval="$enable_static"
14003   p=${PACKAGE-default}
14004     case $enableval in
14005     yes) enable_static=yes ;;
14006     no) enable_static=no ;;
14007     *)
14008      enable_static=no
14009       # Look at the argument we got.  We use all the common list separators.
14010       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14011       for pkg in $enableval; do
14012         IFS="$lt_save_ifs"
14013         if test "X$pkg" = "X$p"; then
14014           enable_static=yes
14015         fi
14016       done
14017       IFS="$lt_save_ifs"
14018       ;;
14019     esac
14020 else
14021   enable_static=yes
14022 fi;
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032 # Check whether --with-pic or --without-pic was given.
14033 if test "${with_pic+set}" = set; then
14034   withval="$with_pic"
14035   pic_mode="$withval"
14036 else
14037   pic_mode=default
14038 fi;
14039
14040 test -z "$pic_mode" && pic_mode=default
14041
14042
14043
14044
14045
14046
14047
14048 # Check whether --enable-fast-install or --disable-fast-install was given.
14049 if test "${enable_fast_install+set}" = set; then
14050   enableval="$enable_fast_install"
14051   p=${PACKAGE-default}
14052     case $enableval in
14053     yes) enable_fast_install=yes ;;
14054     no) enable_fast_install=no ;;
14055     *)
14056       enable_fast_install=no
14057       # Look at the argument we got.  We use all the common list separators.
14058       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14059       for pkg in $enableval; do
14060         IFS="$lt_save_ifs"
14061         if test "X$pkg" = "X$p"; then
14062           enable_fast_install=yes
14063         fi
14064       done
14065       IFS="$lt_save_ifs"
14066       ;;
14067     esac
14068 else
14069   enable_fast_install=yes
14070 fi;
14071
14072
14073
14074
14075
14076
14077
14078
14079 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14080 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14081 if test "${lt_cv_path_SED+set}" = set; then
14082   echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084   # Loop through the user's path and test for sed and gsed.
14085 # Then use that list of sed's as ones to test for truncation.
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091   for lt_ac_prog in sed gsed; do
14092     for ac_exec_ext in '' $ac_executable_extensions; do
14093       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14094         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14095       fi
14096     done
14097   done
14098 done
14099 IFS=$as_save_IFS
14100 lt_ac_max=0
14101 lt_ac_count=0
14102 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14103 # along with /bin/sed that truncates output.
14104 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14105   test ! -f $lt_ac_sed && continue
14106   cat /dev/null > conftest.in
14107   lt_ac_count=0
14108   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14109   # Check for GNU sed and select it if it is found.
14110   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14111     lt_cv_path_SED=$lt_ac_sed
14112     break
14113   fi
14114   while true; do
14115     cat conftest.in conftest.in >conftest.tmp
14116     mv conftest.tmp conftest.in
14117     cp conftest.in conftest.nl
14118     echo >>conftest.nl
14119     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14120     cmp -s conftest.out conftest.nl || break
14121     # 10000 chars as input seems more than enough
14122     test $lt_ac_count -gt 10 && break
14123     lt_ac_count=`expr $lt_ac_count + 1`
14124     if test $lt_ac_count -gt $lt_ac_max; then
14125       lt_ac_max=$lt_ac_count
14126       lt_cv_path_SED=$lt_ac_sed
14127     fi
14128   done
14129 done
14130
14131 fi
14132
14133 SED=$lt_cv_path_SED
14134
14135 echo "$as_me:$LINENO: result: $SED" >&5
14136 echo "${ECHO_T}$SED" >&6
14137
14138 test -z "$SED" && SED=sed
14139 Xsed="$SED -e 1s/^X//"
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151 echo "$as_me:$LINENO: checking for fgrep" >&5
14152 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14153 if test "${ac_cv_prog_fgrep+set}" = set; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14157     then ac_cv_prog_fgrep='grep -F'
14158     else ac_cv_prog_fgrep='fgrep'
14159     fi
14160 fi
14161 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14162 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14163  FGREP=$ac_cv_prog_fgrep
14164
14165
14166 test -z "$GREP" && GREP=grep
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14187 if test "${with_gnu_ld+set}" = set; then
14188   withval="$with_gnu_ld"
14189   test "$withval" = no || with_gnu_ld=yes
14190 else
14191   with_gnu_ld=no
14192 fi;
14193 ac_prog=ld
14194 if test "$GCC" = yes; then
14195   # Check if gcc -print-prog-name=ld gives a path.
14196   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14197 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14198   case $host in
14199   *-*-mingw*)
14200     # gcc leaves a trailing carriage return which upsets mingw
14201     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14202   *)
14203     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14204   esac
14205   case $ac_prog in
14206     # Accept absolute paths.
14207     [\\/]* | ?:[\\/]*)
14208       re_direlt='/[^/][^/]*/\.\./'
14209       # Canonicalize the pathname of ld
14210       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14211       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14212         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14213       done
14214       test -z "$LD" && LD="$ac_prog"
14215       ;;
14216   "")
14217     # If it fails, then pretend we aren't using GCC.
14218     ac_prog=ld
14219     ;;
14220   *)
14221     # If it is relative, then search for the first ld in PATH.
14222     with_gnu_ld=unknown
14223     ;;
14224   esac
14225 elif test "$with_gnu_ld" = yes; then
14226   echo "$as_me:$LINENO: checking for GNU ld" >&5
14227 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14228 else
14229   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14230 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14231 fi
14232 if test "${lt_cv_path_LD+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   if test -z "$LD"; then
14236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237   for ac_dir in $PATH; do
14238     IFS="$lt_save_ifs"
14239     test -z "$ac_dir" && ac_dir=.
14240     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14241       lt_cv_path_LD="$ac_dir/$ac_prog"
14242       # Check to see if the program is GNU ld.  I'd rather use --version,
14243       # but apparently some variants of GNU ld only accept -v.
14244       # Break only if it was the GNU/non-GNU ld that we prefer.
14245       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14246       *GNU* | *'with BFD'*)
14247         test "$with_gnu_ld" != no && break
14248         ;;
14249       *)
14250         test "$with_gnu_ld" != yes && break
14251         ;;
14252       esac
14253     fi
14254   done
14255   IFS="$lt_save_ifs"
14256 else
14257   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14258 fi
14259 fi
14260
14261 LD="$lt_cv_path_LD"
14262 if test -n "$LD"; then
14263   echo "$as_me:$LINENO: result: $LD" >&5
14264 echo "${ECHO_T}$LD" >&6
14265 else
14266   echo "$as_me:$LINENO: result: no" >&5
14267 echo "${ECHO_T}no" >&6
14268 fi
14269 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14270 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14271    { (exit 1); exit 1; }; }
14272 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14273 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14274 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14278 case `$LD -v 2>&1 </dev/null` in
14279 *GNU* | *'with BFD'*)
14280   lt_cv_prog_gnu_ld=yes
14281   ;;
14282 *)
14283   lt_cv_prog_gnu_ld=no
14284   ;;
14285 esac
14286 fi
14287 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14288 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14289 with_gnu_ld=$lt_cv_prog_gnu_ld
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14301 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14302 if test "${lt_cv_path_NM+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305   if test -n "$NM"; then
14306   # Let the user override the test.
14307   lt_cv_path_NM="$NM"
14308 else
14309   lt_nm_to_check="${ac_tool_prefix}nm"
14310   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14311     lt_nm_to_check="$lt_nm_to_check nm"
14312   fi
14313   for lt_tmp_nm in $lt_nm_to_check; do
14314     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14315     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14316       IFS="$lt_save_ifs"
14317       test -z "$ac_dir" && ac_dir=.
14318       tmp_nm="$ac_dir/$lt_tmp_nm"
14319       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14320         # Check to see if the nm accepts a BSD-compat flag.
14321         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14322         #   nm: unknown option "B" ignored
14323         # Tru64's nm complains that /dev/null is an invalid object file
14324         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14325         */dev/null* | *'Invalid file or object type'*)
14326           lt_cv_path_NM="$tmp_nm -B"
14327           break
14328           ;;
14329         *)
14330           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14331           */dev/null*)
14332             lt_cv_path_NM="$tmp_nm -p"
14333             break
14334             ;;
14335           *)
14336             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14337             continue # so that we can try to find one that supports BSD flags
14338             ;;
14339           esac
14340           ;;
14341         esac
14342       fi
14343     done
14344     IFS="$lt_save_ifs"
14345   done
14346   : ${lt_cv_path_NM=no}
14347 fi
14348 fi
14349 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14350 echo "${ECHO_T}$lt_cv_path_NM" >&6
14351 if test "$lt_cv_path_NM" != "no"; then
14352   NM="$lt_cv_path_NM"
14353 else
14354   # Didn't find any BSD compatible name lister, look for dumpbin.
14355   if test -n "$ac_tool_prefix"; then
14356   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14357   do
14358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14360 echo "$as_me:$LINENO: checking for $ac_word" >&5
14361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14362 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14363   echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365   if test -n "$DUMPBIN"; then
14366   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14367 else
14368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14369 for as_dir in $PATH
14370 do
14371   IFS=$as_save_IFS
14372   test -z "$as_dir" && as_dir=.
14373   for ac_exec_ext in '' $ac_executable_extensions; do
14374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14375     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14377     break 2
14378   fi
14379 done
14380 done
14381
14382 fi
14383 fi
14384 DUMPBIN=$ac_cv_prog_DUMPBIN
14385 if test -n "$DUMPBIN"; then
14386   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14387 echo "${ECHO_T}$DUMPBIN" >&6
14388 else
14389   echo "$as_me:$LINENO: result: no" >&5
14390 echo "${ECHO_T}no" >&6
14391 fi
14392
14393     test -n "$DUMPBIN" && break
14394   done
14395 fi
14396 if test -z "$DUMPBIN"; then
14397   ac_ct_DUMPBIN=$DUMPBIN
14398   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14399 do
14400   # Extract the first word of "$ac_prog", so it can be a program name with args.
14401 set dummy $ac_prog; ac_word=$2
14402 echo "$as_me:$LINENO: checking for $ac_word" >&5
14403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14404 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   if test -n "$ac_ct_DUMPBIN"; then
14408   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14409 else
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14412 do
14413   IFS=$as_save_IFS
14414   test -z "$as_dir" && as_dir=.
14415   for ac_exec_ext in '' $ac_executable_extensions; do
14416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14419     break 2
14420   fi
14421 done
14422 done
14423
14424 fi
14425 fi
14426 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14427 if test -n "$ac_ct_DUMPBIN"; then
14428   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14429 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14430 else
14431   echo "$as_me:$LINENO: result: no" >&5
14432 echo "${ECHO_T}no" >&6
14433 fi
14434
14435   test -n "$ac_ct_DUMPBIN" && break
14436 done
14437 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14438
14439   DUMPBIN=$ac_ct_DUMPBIN
14440 fi
14441
14442
14443   if test "$DUMPBIN" != ":"; then
14444     NM="$DUMPBIN"
14445   fi
14446 fi
14447 test -z "$NM" && NM=nm
14448
14449
14450
14451
14452
14453
14454 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14455 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14456 if test "${lt_cv_nm_interface+set}" = set; then
14457   echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459   lt_cv_nm_interface="BSD nm"
14460   echo "int some_variable = 0;" > conftest.$ac_ext
14461   (eval echo "\"\$as_me:14461: $ac_compile\"" >&5)
14462   (eval "$ac_compile" 2>conftest.err)
14463   cat conftest.err >&5
14464   (eval echo "\"\$as_me:14464: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14465   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14466   cat conftest.err >&5
14467   (eval echo "\"\$as_me:14467: output\"" >&5)
14468   cat conftest.out >&5
14469   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14470     lt_cv_nm_interface="MS dumpbin"
14471   fi
14472   rm -f conftest*
14473 fi
14474 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14475 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14476
14477 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14478 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14479 LN_S=$as_ln_s
14480 if test "$LN_S" = "ln -s"; then
14481   echo "$as_me:$LINENO: result: yes" >&5
14482 echo "${ECHO_T}yes" >&6
14483 else
14484   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14485 echo "${ECHO_T}no, using $LN_S" >&6
14486 fi
14487
14488 # find the maximum length of command line arguments
14489 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14490 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14491 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14492   echo $ECHO_N "(cached) $ECHO_C" >&6
14493 else
14494     i=0
14495   teststring="ABCD"
14496
14497   case $build_os in
14498   msdosdjgpp*)
14499     # On DJGPP, this test can blow up pretty badly due to problems in libc
14500     # (any single argument exceeding 2000 bytes causes a buffer overrun
14501     # during glob expansion).  Even if it were fixed, the result of this
14502     # check would be larger than it should be.
14503     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14504     ;;
14505
14506   gnu*)
14507     # Under GNU Hurd, this test is not required because there is
14508     # no limit to the length of command line arguments.
14509     # Libtool will interpret -1 as no limit whatsoever
14510     lt_cv_sys_max_cmd_len=-1;
14511     ;;
14512
14513   cygwin* | mingw*)
14514     # On Win9x/ME, this test blows up -- it succeeds, but takes
14515     # about 5 minutes as the teststring grows exponentially.
14516     # Worse, since 9x/ME are not pre-emptively multitasking,
14517     # you end up with a "frozen" computer, even though with patience
14518     # the test eventually succeeds (with a max line length of 256k).
14519     # Instead, let's just punt: use the minimum linelength reported by
14520     # all of the supported platforms: 8192 (on NT/2K/XP).
14521     lt_cv_sys_max_cmd_len=8192;
14522     ;;
14523
14524   amigaos*)
14525     # On AmigaOS with pdksh, this test takes hours, literally.
14526     # So we just punt and use a minimum line length of 8192.
14527     lt_cv_sys_max_cmd_len=8192;
14528     ;;
14529
14530   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14531     # This has been around since 386BSD, at least.  Likely further.
14532     if test -x /sbin/sysctl; then
14533       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14534     elif test -x /usr/sbin/sysctl; then
14535       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14536     else
14537       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14538     fi
14539     # And add a safety zone
14540     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14541     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14542     ;;
14543
14544   interix*)
14545     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14546     lt_cv_sys_max_cmd_len=196608
14547     ;;
14548
14549   osf*)
14550     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14551     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14552     # nice to cause kernel panics so lets avoid the loop below.
14553     # First set a reasonable default.
14554     lt_cv_sys_max_cmd_len=16384
14555     #
14556     if test -x /sbin/sysconfig; then
14557       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14558         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14559       esac
14560     fi
14561     ;;
14562   sco3.2v5*)
14563     lt_cv_sys_max_cmd_len=102400
14564     ;;
14565   sysv5* | sco5v6* | sysv4.2uw2*)
14566     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14567     if test -n "$kargmax"; then
14568       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14569     else
14570       lt_cv_sys_max_cmd_len=32768
14571     fi
14572     ;;
14573   *)
14574     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14575     if test -n $lt_cv_sys_max_cmd_len; then
14576       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14577       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14578     else
14579       # Make teststring a little bigger before we do anything with it.
14580       # a 1K string should be a reasonable start.
14581       for i in 1 2 3 4 5 6 7 8 ; do
14582         teststring=$teststring$teststring
14583       done
14584       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14585       # If test is not a shell built-in, we'll probably end up computing a
14586       # maximum length that is only half of the actual maximum length, but
14587       # we can't tell.
14588       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14589                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14590               test $i != 17 # 1/2 MB should be enough
14591       do
14592         i=`expr $i + 1`
14593         teststring=$teststring$teststring
14594       done
14595       # Only check the string length outside the loop.
14596       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14597       teststring=
14598       # Add a significant safety factor because C++ compilers can tack on
14599       # massive amounts of additional arguments before passing them to the
14600       # linker.  It appears as though 1/2 is a usable value.
14601       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14602     fi
14603     ;;
14604   esac
14605
14606 fi
14607
14608 if test -n $lt_cv_sys_max_cmd_len ; then
14609   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14610 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14611 else
14612   echo "$as_me:$LINENO: result: none" >&5
14613 echo "${ECHO_T}none" >&6
14614 fi
14615 max_cmd_len=$lt_cv_sys_max_cmd_len
14616
14617
14618
14619
14620
14621
14622
14623 : ${CP="cp -f"}
14624 : ${MV="mv -f"}
14625 : ${RM="rm -f"}
14626
14627 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14628 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14629 # Try some XSI features
14630 xsi_shell=no
14631 ( _lt_dummy="a/b/c"
14632   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14633       = c,a/b,, ) >/dev/null 2>&1 \
14634   && xsi_shell=yes
14635 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14636 echo "${ECHO_T}$xsi_shell" >&6
14637
14638
14639 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14640 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14641 lt_shell_append=no
14642 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14643     >/dev/null 2>&1 \
14644   && lt_shell_append=yes
14645 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14646 echo "${ECHO_T}$lt_shell_append" >&6
14647
14648
14649 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14650   lt_unset=unset
14651 else
14652   lt_unset=false
14653 fi
14654
14655
14656
14657
14658
14659 # test EBCDIC or ASCII
14660 case `echo X|tr X '\101'` in
14661  A) # ASCII based system
14662     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14663   lt_SP2NL='tr \040 \012'
14664   lt_NL2SP='tr \015\012 \040\040'
14665   ;;
14666  *) # EBCDIC based system
14667   lt_SP2NL='tr \100 \n'
14668   lt_NL2SP='tr \r\n \100\100'
14669   ;;
14670 esac
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14681 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14682 if test "${lt_cv_ld_reload_flag+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   lt_cv_ld_reload_flag='-r'
14686 fi
14687 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14688 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14689 reload_flag=$lt_cv_ld_reload_flag
14690 case $reload_flag in
14691 "" | " "*) ;;
14692 *) reload_flag=" $reload_flag" ;;
14693 esac
14694 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14695 case $host_os in
14696   darwin*)
14697     if test "$GCC" = yes; then
14698       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14699     else
14700       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14701     fi
14702     ;;
14703 esac
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14715 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14716 if test "${lt_cv_deplibs_check_method+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   lt_cv_file_magic_cmd='$MAGIC_CMD'
14720 lt_cv_file_magic_test_file=
14721 lt_cv_deplibs_check_method='unknown'
14722 # Need to set the preceding variable on all platforms that support
14723 # interlibrary dependencies.
14724 # 'none' -- dependencies not supported.
14725 # `unknown' -- same as none, but documents that we really don't know.
14726 # 'pass_all' -- all dependencies passed with no checks.
14727 # 'test_compile' -- check by making test program.
14728 # 'file_magic [[regex]]' -- check by looking for files in library path
14729 # which responds to the $file_magic_cmd with a given extended regex.
14730 # If you have `file' or equivalent on your system and you're not sure
14731 # whether `pass_all' will *always* work, you probably want this one.
14732
14733 case $host_os in
14734 aix[4-9]*)
14735   lt_cv_deplibs_check_method=pass_all
14736   ;;
14737
14738 beos*)
14739   lt_cv_deplibs_check_method=pass_all
14740   ;;
14741
14742 bsdi[45]*)
14743   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14744   lt_cv_file_magic_cmd='/usr/bin/file -L'
14745   lt_cv_file_magic_test_file=/shlib/libc.so
14746   ;;
14747
14748 cygwin*)
14749   # func_win32_libid is a shell function defined in ltmain.sh
14750   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14751   lt_cv_file_magic_cmd='func_win32_libid'
14752   ;;
14753
14754 mingw* | pw32*)
14755   # Base MSYS/MinGW do not provide the 'file' command needed by
14756   # func_win32_libid shell function, so use a weaker test based on 'objdump',
14757   # unless we find 'file', for example because we are cross-compiling.
14758   if ( file / ) >/dev/null 2>&1; then
14759     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14760     lt_cv_file_magic_cmd='func_win32_libid'
14761   else
14762     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14763     lt_cv_file_magic_cmd='$OBJDUMP -f'
14764   fi
14765   ;;
14766
14767 darwin* | rhapsody*)
14768   lt_cv_deplibs_check_method=pass_all
14769   ;;
14770
14771 freebsd* | dragonfly*)
14772   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14773     case $host_cpu in
14774     i*86 )
14775       # Not sure whether the presence of OpenBSD here was a mistake.
14776       # Let's accept both of them until this is cleared up.
14777       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14778       lt_cv_file_magic_cmd=/usr/bin/file
14779       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14780       ;;
14781     esac
14782   else
14783     lt_cv_deplibs_check_method=pass_all
14784   fi
14785   ;;
14786
14787 gnu*)
14788   lt_cv_deplibs_check_method=pass_all
14789   ;;
14790
14791 hpux10.20* | hpux11*)
14792   lt_cv_file_magic_cmd=/usr/bin/file
14793   case $host_cpu in
14794   ia64*)
14795     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14796     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14797     ;;
14798   hppa*64*)
14799     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]'
14800     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14801     ;;
14802   *)
14803     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14804     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14805     ;;
14806   esac
14807   ;;
14808
14809 interix[3-9]*)
14810   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14811   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14812   ;;
14813
14814 irix5* | irix6* | nonstopux*)
14815   case $LD in
14816   *-32|*"-32 ") libmagic=32-bit;;
14817   *-n32|*"-n32 ") libmagic=N32;;
14818   *-64|*"-64 ") libmagic=64-bit;;
14819   *) libmagic=never-match;;
14820   esac
14821   lt_cv_deplibs_check_method=pass_all
14822   ;;
14823
14824 # This must be Linux ELF.
14825 linux* | k*bsd*-gnu)
14826   lt_cv_deplibs_check_method=pass_all
14827   ;;
14828
14829 netbsd*)
14830   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14832   else
14833     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14834   fi
14835   ;;
14836
14837 newos6*)
14838   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14839   lt_cv_file_magic_cmd=/usr/bin/file
14840   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14841   ;;
14842
14843 *nto* | *qnx*)
14844   lt_cv_deplibs_check_method=pass_all
14845   ;;
14846
14847 openbsd*)
14848   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14849     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14850   else
14851     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14852   fi
14853   ;;
14854
14855 osf3* | osf4* | osf5*)
14856   lt_cv_deplibs_check_method=pass_all
14857   ;;
14858
14859 rdos*)
14860   lt_cv_deplibs_check_method=pass_all
14861   ;;
14862
14863 solaris*)
14864   lt_cv_deplibs_check_method=pass_all
14865   ;;
14866
14867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14868   lt_cv_deplibs_check_method=pass_all
14869   ;;
14870
14871 sysv4 | sysv4.3*)
14872   case $host_vendor in
14873   motorola)
14874     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]'
14875     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14876     ;;
14877   ncr)
14878     lt_cv_deplibs_check_method=pass_all
14879     ;;
14880   sequent)
14881     lt_cv_file_magic_cmd='/bin/file'
14882     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14883     ;;
14884   sni)
14885     lt_cv_file_magic_cmd='/bin/file'
14886     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14887     lt_cv_file_magic_test_file=/lib/libc.so
14888     ;;
14889   siemens)
14890     lt_cv_deplibs_check_method=pass_all
14891     ;;
14892   pc)
14893     lt_cv_deplibs_check_method=pass_all
14894     ;;
14895   esac
14896   ;;
14897
14898 tpf*)
14899   lt_cv_deplibs_check_method=pass_all
14900   ;;
14901 esac
14902
14903 fi
14904 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14905 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14906 file_magic_cmd=$lt_cv_file_magic_cmd
14907 deplibs_check_method=$lt_cv_deplibs_check_method
14908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921 if test -n "$ac_tool_prefix"; then
14922   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14923 set dummy ${ac_tool_prefix}ar; ac_word=$2
14924 echo "$as_me:$LINENO: checking for $ac_word" >&5
14925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14926 if test "${ac_cv_prog_AR+set}" = set; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929   if test -n "$AR"; then
14930   ac_cv_prog_AR="$AR" # Let the user override the test.
14931 else
14932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14933 for as_dir in $PATH
14934 do
14935   IFS=$as_save_IFS
14936   test -z "$as_dir" && as_dir=.
14937   for ac_exec_ext in '' $ac_executable_extensions; do
14938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14939     ac_cv_prog_AR="${ac_tool_prefix}ar"
14940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14941     break 2
14942   fi
14943 done
14944 done
14945
14946 fi
14947 fi
14948 AR=$ac_cv_prog_AR
14949 if test -n "$AR"; then
14950   echo "$as_me:$LINENO: result: $AR" >&5
14951 echo "${ECHO_T}$AR" >&6
14952 else
14953   echo "$as_me:$LINENO: result: no" >&5
14954 echo "${ECHO_T}no" >&6
14955 fi
14956
14957 fi
14958 if test -z "$ac_cv_prog_AR"; then
14959   ac_ct_AR=$AR
14960   # Extract the first word of "ar", so it can be a program name with args.
14961 set dummy ar; ac_word=$2
14962 echo "$as_me:$LINENO: checking for $ac_word" >&5
14963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14964 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   if test -n "$ac_ct_AR"; then
14968   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14969 else
14970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14971 for as_dir in $PATH
14972 do
14973   IFS=$as_save_IFS
14974   test -z "$as_dir" && as_dir=.
14975   for ac_exec_ext in '' $ac_executable_extensions; do
14976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14977     ac_cv_prog_ac_ct_AR="ar"
14978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14979     break 2
14980   fi
14981 done
14982 done
14983
14984   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14985 fi
14986 fi
14987 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14988 if test -n "$ac_ct_AR"; then
14989   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14990 echo "${ECHO_T}$ac_ct_AR" >&6
14991 else
14992   echo "$as_me:$LINENO: result: no" >&5
14993 echo "${ECHO_T}no" >&6
14994 fi
14995
14996   AR=$ac_ct_AR
14997 else
14998   AR="$ac_cv_prog_AR"
14999 fi
15000
15001 test -z "$AR" && AR=ar
15002 test -z "$AR_FLAGS" && AR_FLAGS=cru
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014 if test -n "$ac_tool_prefix"; then
15015   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15016 set dummy ${ac_tool_prefix}strip; ac_word=$2
15017 echo "$as_me:$LINENO: checking for $ac_word" >&5
15018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15019 if test "${ac_cv_prog_STRIP+set}" = set; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   if test -n "$STRIP"; then
15023   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15024 else
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030   for ac_exec_ext in '' $ac_executable_extensions; do
15031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15034     break 2
15035   fi
15036 done
15037 done
15038
15039 fi
15040 fi
15041 STRIP=$ac_cv_prog_STRIP
15042 if test -n "$STRIP"; then
15043   echo "$as_me:$LINENO: result: $STRIP" >&5
15044 echo "${ECHO_T}$STRIP" >&6
15045 else
15046   echo "$as_me:$LINENO: result: no" >&5
15047 echo "${ECHO_T}no" >&6
15048 fi
15049
15050 fi
15051 if test -z "$ac_cv_prog_STRIP"; then
15052   ac_ct_STRIP=$STRIP
15053   # Extract the first word of "strip", so it can be a program name with args.
15054 set dummy strip; ac_word=$2
15055 echo "$as_me:$LINENO: checking for $ac_word" >&5
15056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15057 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   if test -n "$ac_ct_STRIP"; then
15061   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15062 else
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $PATH
15065 do
15066   IFS=$as_save_IFS
15067   test -z "$as_dir" && as_dir=.
15068   for ac_exec_ext in '' $ac_executable_extensions; do
15069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070     ac_cv_prog_ac_ct_STRIP="strip"
15071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15072     break 2
15073   fi
15074 done
15075 done
15076
15077   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15078 fi
15079 fi
15080 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15081 if test -n "$ac_ct_STRIP"; then
15082   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15083 echo "${ECHO_T}$ac_ct_STRIP" >&6
15084 else
15085   echo "$as_me:$LINENO: result: no" >&5
15086 echo "${ECHO_T}no" >&6
15087 fi
15088
15089   STRIP=$ac_ct_STRIP
15090 else
15091   STRIP="$ac_cv_prog_STRIP"
15092 fi
15093
15094 test -z "$STRIP" && STRIP=:
15095
15096
15097
15098
15099
15100
15101 if test -n "$ac_tool_prefix"; then
15102   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15104 echo "$as_me:$LINENO: checking for $ac_word" >&5
15105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15106 if test "${ac_cv_prog_RANLIB+set}" = set; then
15107   echo $ECHO_N "(cached) $ECHO_C" >&6
15108 else
15109   if test -n "$RANLIB"; then
15110   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15111 else
15112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15113 for as_dir in $PATH
15114 do
15115   IFS=$as_save_IFS
15116   test -z "$as_dir" && as_dir=.
15117   for ac_exec_ext in '' $ac_executable_extensions; do
15118   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15119     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15121     break 2
15122   fi
15123 done
15124 done
15125
15126 fi
15127 fi
15128 RANLIB=$ac_cv_prog_RANLIB
15129 if test -n "$RANLIB"; then
15130   echo "$as_me:$LINENO: result: $RANLIB" >&5
15131 echo "${ECHO_T}$RANLIB" >&6
15132 else
15133   echo "$as_me:$LINENO: result: no" >&5
15134 echo "${ECHO_T}no" >&6
15135 fi
15136
15137 fi
15138 if test -z "$ac_cv_prog_RANLIB"; then
15139   ac_ct_RANLIB=$RANLIB
15140   # Extract the first word of "ranlib", so it can be a program name with args.
15141 set dummy ranlib; ac_word=$2
15142 echo "$as_me:$LINENO: checking for $ac_word" >&5
15143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   if test -n "$ac_ct_RANLIB"; then
15148   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15152 do
15153   IFS=$as_save_IFS
15154   test -z "$as_dir" && as_dir=.
15155   for ac_exec_ext in '' $ac_executable_extensions; do
15156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157     ac_cv_prog_ac_ct_RANLIB="ranlib"
15158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15159     break 2
15160   fi
15161 done
15162 done
15163
15164   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15165 fi
15166 fi
15167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15168 if test -n "$ac_ct_RANLIB"; then
15169   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15170 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15171 else
15172   echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6
15174 fi
15175
15176   RANLIB=$ac_ct_RANLIB
15177 else
15178   RANLIB="$ac_cv_prog_RANLIB"
15179 fi
15180
15181 test -z "$RANLIB" && RANLIB=:
15182
15183
15184
15185
15186
15187
15188 # Determine commands to create old-style static archives.
15189 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15190 old_postinstall_cmds='chmod 644 $oldlib'
15191 old_postuninstall_cmds=
15192
15193 if test -n "$RANLIB"; then
15194   case $host_os in
15195   openbsd*)
15196     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15197     ;;
15198   *)
15199     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15200     ;;
15201   esac
15202   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15203 fi
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238 # If no C compiler was specified, use CC.
15239 LTCC=${LTCC-"$CC"}
15240
15241 # If no C compiler flags were specified, use CFLAGS.
15242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15243
15244 # Allow CC to be a program name with arguments.
15245 compiler=$CC
15246
15247
15248 # Check for command to grab the raw symbol name followed by C symbol from nm.
15249 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15252   echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254
15255 # These are sane defaults that work on at least a few old systems.
15256 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15257
15258 # Character class describing NM global symbol codes.
15259 symcode='[BCDEGRST]'
15260
15261 # Regexp to match symbols that can be accessed directly from C.
15262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15263
15264 # Define system-specific variables.
15265 case $host_os in
15266 aix*)
15267   symcode='[BCDT]'
15268   ;;
15269 cygwin* | mingw* | pw32*)
15270   symcode='[ABCDGISTW]'
15271   ;;
15272 hpux*)
15273   if test "$host_cpu" = ia64; then
15274     symcode='[ABCDEGRST]'
15275   fi
15276   ;;
15277 irix* | nonstopux*)
15278   symcode='[BCDEGRST]'
15279   ;;
15280 osf*)
15281   symcode='[BCDEGQRST]'
15282   ;;
15283 solaris*)
15284   symcode='[BDRT]'
15285   ;;
15286 sco3.2v5*)
15287   symcode='[DT]'
15288   ;;
15289 sysv4.2uw2*)
15290   symcode='[DT]'
15291   ;;
15292 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15293   symcode='[ABDT]'
15294   ;;
15295 sysv4)
15296   symcode='[DFNSTU]'
15297   ;;
15298 esac
15299
15300 # If we're using GNU nm, then use its standard symbol codes.
15301 case `$NM -V 2>&1` in
15302 *GNU* | *'with BFD'*)
15303   symcode='[ABCDGIRSTW]' ;;
15304 esac
15305
15306 # Transform an extracted symbol line into a proper C declaration.
15307 # Some systems (esp. on ia64) link data and code symbols differently,
15308 # so use this general approach.
15309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15310
15311 # Transform an extracted symbol line into symbol name and symbol address
15312 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15313
15314 # Handle CRLF in mingw tool chain
15315 opt_cr=
15316 case $build_os in
15317 mingw*)
15318   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15319   ;;
15320 esac
15321
15322 # Try without a prefix underscore, then with it.
15323 for ac_symprfx in "" "_"; do
15324
15325   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15326   symxfrm="\\1 $ac_symprfx\\2 \\2"
15327
15328   # Write the raw and C identifiers.
15329   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15330     # Fake it for dumpbin and say T for any non-static function
15331     # and D for any global variable.
15332     # Also find C++ and __fastcall symbols from MSVC++,
15333     # which start with @ or ?.
15334     lt_cv_sys_global_symbol_pipe="$AWK '"\
15335 "     {last_section=section; section=\$ 3};"\
15336 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15337 "     \$ 0!~/External *\|/{next};"\
15338 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15339 "     {if(hide[section]) next};"\
15340 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15341 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15342 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15343 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15344 "     ' prfx=^$ac_symprfx"
15345   else
15346     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15347   fi
15348
15349   # Check to see that the pipe works correctly.
15350   pipe_works=no
15351
15352   rm -f conftest*
15353   cat > conftest.$ac_ext <<_LT_EOF
15354 #ifdef __cplusplus
15355 extern "C" {
15356 #endif
15357 char nm_test_var;
15358 void nm_test_func(void);
15359 void nm_test_func(void){}
15360 #ifdef __cplusplus
15361 }
15362 #endif
15363 int main(){nm_test_var='a';nm_test_func();return(0);}
15364 _LT_EOF
15365
15366   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367   (eval $ac_compile) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; then
15371     # Now try to grab the symbols.
15372     nlist=conftest.nm
15373     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15374   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } && test -s "$nlist"; then
15378       # Try sorting and uniquifying the output.
15379       if sort "$nlist" | uniq > "$nlist"T; then
15380         mv -f "$nlist"T "$nlist"
15381       else
15382         rm -f "$nlist"T
15383       fi
15384
15385       # Make sure that we snagged all the symbols we need.
15386       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15387         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15388           cat <<_LT_EOF > conftest.$ac_ext
15389 #ifdef __cplusplus
15390 extern "C" {
15391 #endif
15392
15393 _LT_EOF
15394           # Now generate the symbol file.
15395           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15396
15397           cat <<_LT_EOF >> conftest.$ac_ext
15398
15399 /* The mapping between symbol names and symbols.  */
15400 const struct {
15401   const char *name;
15402   void       *address;
15403 }
15404 lt__PROGRAM__LTX_preloaded_symbols[] =
15405 {
15406   { "@PROGRAM@", (void *) 0 },
15407 _LT_EOF
15408           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15409           cat <<\_LT_EOF >> conftest.$ac_ext
15410   {0, (void *) 0}
15411 };
15412
15413 /* This works around a problem in FreeBSD linker */
15414 #ifdef FREEBSD_WORKAROUND
15415 static const void *lt_preloaded_setup() {
15416   return lt__PROGRAM__LTX_preloaded_symbols;
15417 }
15418 #endif
15419
15420 #ifdef __cplusplus
15421 }
15422 #endif
15423 _LT_EOF
15424           # Now try linking the two files.
15425           mv conftest.$ac_objext conftstm.$ac_objext
15426           lt_save_LIBS="$LIBS"
15427           lt_save_CFLAGS="$CFLAGS"
15428           LIBS="conftstm.$ac_objext"
15429           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15430           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15435             pipe_works=yes
15436           fi
15437           LIBS="$lt_save_LIBS"
15438           CFLAGS="$lt_save_CFLAGS"
15439         else
15440           echo "cannot find nm_test_func in $nlist" >&5
15441         fi
15442       else
15443         echo "cannot find nm_test_var in $nlist" >&5
15444       fi
15445     else
15446       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15447     fi
15448   else
15449     echo "$progname: failed program was:" >&5
15450     cat conftest.$ac_ext >&5
15451   fi
15452   rm -f conftest* conftst*
15453
15454   # Do not use the global_symbol_pipe unless it works.
15455   if test "$pipe_works" = yes; then
15456     break
15457   else
15458     lt_cv_sys_global_symbol_pipe=
15459   fi
15460 done
15461
15462 fi
15463
15464 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15465   lt_cv_sys_global_symbol_to_cdecl=
15466 fi
15467 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15468   echo "$as_me:$LINENO: result: failed" >&5
15469 echo "${ECHO_T}failed" >&6
15470 else
15471   echo "$as_me:$LINENO: result: ok" >&5
15472 echo "${ECHO_T}ok" >&6
15473 fi
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15492 if test "${enable_libtool_lock+set}" = set; then
15493   enableval="$enable_libtool_lock"
15494
15495 fi;
15496 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15497
15498 # Some flags need to be propagated to the compiler or linker for good
15499 # libtool support.
15500 case $host in
15501 ia64-*-hpux*)
15502   # Find out which ABI we are using.
15503   echo 'int i;' > conftest.$ac_ext
15504   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505   (eval $ac_compile) 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; then
15509     case `/usr/bin/file conftest.$ac_objext` in
15510       *ELF-32*)
15511         HPUX_IA64_MODE="32"
15512         ;;
15513       *ELF-64*)
15514         HPUX_IA64_MODE="64"
15515         ;;
15516     esac
15517   fi
15518   rm -rf conftest*
15519   ;;
15520 *-*-irix6*)
15521   # Find out which ABI we are using.
15522   echo '#line 15522 "configure"' > conftest.$ac_ext
15523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; then
15528     if test "$lt_cv_prog_gnu_ld" = yes; then
15529       case `/usr/bin/file conftest.$ac_objext` in
15530         *32-bit*)
15531           LD="${LD-ld} -melf32bsmip"
15532           ;;
15533         *N32*)
15534           LD="${LD-ld} -melf32bmipn32"
15535           ;;
15536         *64-bit*)
15537           LD="${LD-ld} -melf64bmip"
15538         ;;
15539       esac
15540     else
15541       case `/usr/bin/file conftest.$ac_objext` in
15542         *32-bit*)
15543           LD="${LD-ld} -32"
15544           ;;
15545         *N32*)
15546           LD="${LD-ld} -n32"
15547           ;;
15548         *64-bit*)
15549           LD="${LD-ld} -64"
15550           ;;
15551       esac
15552     fi
15553   fi
15554   rm -rf conftest*
15555   ;;
15556
15557 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15558 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15559   # Find out which ABI we are using.
15560   echo 'int i;' > conftest.$ac_ext
15561   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562   (eval $ac_compile) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; then
15566     case `/usr/bin/file conftest.o` in
15567       *32-bit*)
15568         case $host in
15569           x86_64-*kfreebsd*-gnu)
15570             LD="${LD-ld} -m elf_i386_fbsd"
15571             ;;
15572           x86_64-*linux*)
15573             LD="${LD-ld} -m elf_i386"
15574             ;;
15575           ppc64-*linux*|powerpc64-*linux*)
15576             LD="${LD-ld} -m elf32ppclinux"
15577             ;;
15578           s390x-*linux*)
15579             LD="${LD-ld} -m elf_s390"
15580             ;;
15581           sparc64-*linux*)
15582             LD="${LD-ld} -m elf32_sparc"
15583             ;;
15584         esac
15585         ;;
15586       *64-bit*)
15587         case $host in
15588           x86_64-*kfreebsd*-gnu)
15589             LD="${LD-ld} -m elf_x86_64_fbsd"
15590             ;;
15591           x86_64-*linux*)
15592             LD="${LD-ld} -m elf_x86_64"
15593             ;;
15594           ppc*-*linux*|powerpc*-*linux*)
15595             LD="${LD-ld} -m elf64ppc"
15596             ;;
15597           s390*-*linux*|s390*-*tpf*)
15598             LD="${LD-ld} -m elf64_s390"
15599             ;;
15600           sparc*-*linux*)
15601             LD="${LD-ld} -m elf64_sparc"
15602             ;;
15603         esac
15604         ;;
15605     esac
15606   fi
15607   rm -rf conftest*
15608   ;;
15609
15610 *-*-sco3.2v5*)
15611   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15612   SAVE_CFLAGS="$CFLAGS"
15613   CFLAGS="$CFLAGS -belf"
15614   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15615 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15616 if test "${lt_cv_cc_needs_belf+set}" = set; then
15617   echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619   ac_ext=c
15620 ac_cpp='$CPP $CPPFLAGS'
15621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15624
15625      cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631
15632 int
15633 main ()
15634 {
15635
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642   (eval $ac_link) 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag"
15650                          || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest$ac_exeext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   lt_cv_cc_needs_belf=yes
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 lt_cv_cc_needs_belf=no
15668 fi
15669 rm -f conftest.err conftest.$ac_objext \
15670       conftest$ac_exeext conftest.$ac_ext
15671      ac_ext=c
15672 ac_cpp='$CPP $CPPFLAGS'
15673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15676
15677 fi
15678 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15679 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15680   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15681     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15682     CFLAGS="$SAVE_CFLAGS"
15683   fi
15684   ;;
15685 sparc*-*solaris*)
15686   # Find out which ABI we are using.
15687   echo 'int i;' > conftest.$ac_ext
15688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689   (eval $ac_compile) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; then
15693     case `/usr/bin/file conftest.o` in
15694     *64-bit*)
15695       case $lt_cv_prog_gnu_ld in
15696       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15697       *)    LD="${LD-ld} -64" ;;
15698       esac
15699       ;;
15700     esac
15701   fi
15702   rm -rf conftest*
15703   ;;
15704 esac
15705
15706 need_locks="$enable_libtool_lock"
15707
15708
15709 for ac_header in dlfcn.h
15710 do
15711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15712 echo "$as_me:$LINENO: checking for $ac_header" >&5
15713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717   cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h.  */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h.  */
15723 #include <$ac_header>
15724 _ACEOF
15725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15726   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } >/dev/null; then
15733   if test -s conftest.err; then
15734     ac_cpp_err=$ac_c_preproc_warn_flag
15735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15736   else
15737     ac_cpp_err=
15738   fi
15739 else
15740   ac_cpp_err=yes
15741 fi
15742 if test -z "$ac_cpp_err"; then
15743   eval "$as_ac_Header=yes"
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748   eval "$as_ac_Header=no"
15749 fi
15750 rm -f conftest.err conftest.$ac_ext
15751 fi
15752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755   cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757 _ACEOF
15758
15759 fi
15760 done
15761
15762
15763
15764 # This can be used to rebuild libtool when needed
15765 LIBTOOL_DEPS="$ltmain"
15766
15767 # Always use our own libtool.
15768 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794 test -z "$LN_S" && LN_S="ln -s"
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809 if test -n "${ZSH_VERSION+set}" ; then
15810    setopt NO_GLOB_SUBST
15811 fi
15812
15813 echo "$as_me:$LINENO: checking for objdir" >&5
15814 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
15815 if test "${lt_cv_objdir+set}" = set; then
15816   echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818   rm -f .libs 2>/dev/null
15819 mkdir .libs 2>/dev/null
15820 if test -d .libs; then
15821   lt_cv_objdir=.libs
15822 else
15823   # MS-DOS does not allow filenames that begin with a dot.
15824   lt_cv_objdir=_libs
15825 fi
15826 rmdir .libs 2>/dev/null
15827 fi
15828 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
15829 echo "${ECHO_T}$lt_cv_objdir" >&6
15830 objdir=$lt_cv_objdir
15831
15832
15833
15834
15835
15836 cat >>confdefs.h <<_ACEOF
15837 #define LT_OBJDIR "$lt_cv_objdir/"
15838 _ACEOF
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856 case $host_os in
15857 aix3*)
15858   # AIX sometimes has problems with the GCC collect2 program.  For some
15859   # reason, if we set the COLLECT_NAMES environment variable, the problems
15860   # vanish in a puff of smoke.
15861   if test "X${COLLECT_NAMES+set}" != Xset; then
15862     COLLECT_NAMES=
15863     export COLLECT_NAMES
15864   fi
15865   ;;
15866 esac
15867
15868 # Sed substitution that helps us do robust quoting.  It backslashifies
15869 # metacharacters that are still active within double-quoted strings.
15870 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15871
15872 # Same as above, but do not quote variable references.
15873 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15874
15875 # Sed substitution to delay expansion of an escaped shell variable in a
15876 # double_quote_subst'ed string.
15877 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15878
15879 # Sed substitution to delay expansion of an escaped single quote.
15880 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15881
15882 # Sed substitution to avoid accidental globbing in evaled expressions
15883 no_glob_subst='s/\*/\\\*/g'
15884
15885 # Global variables:
15886 ofile=libtool
15887 can_build_shared=yes
15888
15889 # All known linkers require a `.a' archive for static linking (except MSVC,
15890 # which needs '.lib').
15891 libext=a
15892
15893 with_gnu_ld="$lt_cv_prog_gnu_ld"
15894
15895 old_CC="$CC"
15896 old_CFLAGS="$CFLAGS"
15897
15898 # Set sane defaults for various variables
15899 test -z "$CC" && CC=cc
15900 test -z "$LTCC" && LTCC=$CC
15901 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15902 test -z "$LD" && LD=ld
15903 test -z "$ac_objext" && ac_objext=o
15904
15905 for cc_temp in $compiler""; do
15906   case $cc_temp in
15907     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15908     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15909     \-*) ;;
15910     *) break;;
15911   esac
15912 done
15913 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15914
15915
15916 # Only perform the check for file, if the check method requires it
15917 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15918 case $deplibs_check_method in
15919 file_magic*)
15920   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15921     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
15922 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
15923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15924   echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926   case $MAGIC_CMD in
15927 [\\/*] |  ?:[\\/]*)
15928   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15929   ;;
15930 *)
15931   lt_save_MAGIC_CMD="$MAGIC_CMD"
15932   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15933   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15934   for ac_dir in $ac_dummy; do
15935     IFS="$lt_save_ifs"
15936     test -z "$ac_dir" && ac_dir=.
15937     if test -f $ac_dir/${ac_tool_prefix}file; then
15938       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15939       if test -n "$file_magic_test_file"; then
15940         case $deplibs_check_method in
15941         "file_magic "*)
15942           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15943           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15944           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15945             $EGREP "$file_magic_regex" > /dev/null; then
15946             :
15947           else
15948             cat <<_LT_EOF 1>&2
15949
15950 *** Warning: the command libtool uses to detect shared libraries,
15951 *** $file_magic_cmd, produces output that libtool cannot recognize.
15952 *** The result is that libtool may fail to recognize shared libraries
15953 *** as such.  This will affect the creation of libtool libraries that
15954 *** depend on shared libraries, but programs linked with such libtool
15955 *** libraries will work regardless of this problem.  Nevertheless, you
15956 *** may want to report the problem to your system manager and/or to
15957 *** bug-libtool@gnu.org
15958
15959 _LT_EOF
15960           fi ;;
15961         esac
15962       fi
15963       break
15964     fi
15965   done
15966   IFS="$lt_save_ifs"
15967   MAGIC_CMD="$lt_save_MAGIC_CMD"
15968   ;;
15969 esac
15970 fi
15971
15972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15973 if test -n "$MAGIC_CMD"; then
15974   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15975 echo "${ECHO_T}$MAGIC_CMD" >&6
15976 else
15977   echo "$as_me:$LINENO: result: no" >&5
15978 echo "${ECHO_T}no" >&6
15979 fi
15980
15981
15982
15983
15984
15985 if test -z "$lt_cv_path_MAGIC_CMD"; then
15986   if test -n "$ac_tool_prefix"; then
15987     echo "$as_me:$LINENO: checking for file" >&5
15988 echo $ECHO_N "checking for file... $ECHO_C" >&6
15989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   case $MAGIC_CMD in
15993 [\\/*] |  ?:[\\/]*)
15994   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15995   ;;
15996 *)
15997   lt_save_MAGIC_CMD="$MAGIC_CMD"
15998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15999   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16000   for ac_dir in $ac_dummy; do
16001     IFS="$lt_save_ifs"
16002     test -z "$ac_dir" && ac_dir=.
16003     if test -f $ac_dir/file; then
16004       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16005       if test -n "$file_magic_test_file"; then
16006         case $deplibs_check_method in
16007         "file_magic "*)
16008           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16009           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16010           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16011             $EGREP "$file_magic_regex" > /dev/null; then
16012             :
16013           else
16014             cat <<_LT_EOF 1>&2
16015
16016 *** Warning: the command libtool uses to detect shared libraries,
16017 *** $file_magic_cmd, produces output that libtool cannot recognize.
16018 *** The result is that libtool may fail to recognize shared libraries
16019 *** as such.  This will affect the creation of libtool libraries that
16020 *** depend on shared libraries, but programs linked with such libtool
16021 *** libraries will work regardless of this problem.  Nevertheless, you
16022 *** may want to report the problem to your system manager and/or to
16023 *** bug-libtool@gnu.org
16024
16025 _LT_EOF
16026           fi ;;
16027         esac
16028       fi
16029       break
16030     fi
16031   done
16032   IFS="$lt_save_ifs"
16033   MAGIC_CMD="$lt_save_MAGIC_CMD"
16034   ;;
16035 esac
16036 fi
16037
16038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16039 if test -n "$MAGIC_CMD"; then
16040   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16041 echo "${ECHO_T}$MAGIC_CMD" >&6
16042 else
16043   echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6
16045 fi
16046
16047
16048   else
16049     MAGIC_CMD=:
16050   fi
16051 fi
16052
16053   fi
16054   ;;
16055 esac
16056
16057 # Use C for the default configuration in the libtool script
16058
16059 lt_save_CC="$CC"
16060 ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16065
16066
16067 # Source file extension for C test sources.
16068 ac_ext=c
16069
16070 # Object file extension for compiled C test sources.
16071 objext=o
16072 objext=$objext
16073
16074 # Code to be used in simple compile tests
16075 lt_simple_compile_test_code="int some_variable = 0;"
16076
16077 # Code to be used in simple link tests
16078 lt_simple_link_test_code='int main(){return(0);}'
16079
16080
16081
16082
16083
16084
16085
16086 # If no C compiler was specified, use CC.
16087 LTCC=${LTCC-"$CC"}
16088
16089 # If no C compiler flags were specified, use CFLAGS.
16090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16091
16092 # Allow CC to be a program name with arguments.
16093 compiler=$CC
16094
16095 # Save the default compiler, since it gets overwritten when the other
16096 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16097 compiler_DEFAULT=$CC
16098
16099 # save warnings/boilerplate of simple test code
16100 ac_outfile=conftest.$ac_objext
16101 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16103 _lt_compiler_boilerplate=`cat conftest.err`
16104 $RM conftest*
16105
16106 ac_outfile=conftest.$ac_objext
16107 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16109 _lt_linker_boilerplate=`cat conftest.err`
16110 $RM conftest*
16111
16112
16113 ## CAVEAT EMPTOR:
16114 ## There is no encapsulation within the following macros, do not change
16115 ## the running order or otherwise move them around unless you know exactly
16116 ## what you are doing...
16117 if test -n "$compiler"; then
16118
16119 lt_prog_compiler_no_builtin_flag=
16120
16121 if test "$GCC" = yes; then
16122   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16123
16124   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16125 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16126 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16127   echo $ECHO_N "(cached) $ECHO_C" >&6
16128 else
16129   lt_cv_prog_compiler_rtti_exceptions=no
16130    ac_outfile=conftest.$ac_objext
16131    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16132    lt_compiler_flag="-fno-rtti -fno-exceptions"
16133    # Insert the option either (1) after the last *FLAGS variable, or
16134    # (2) before a word containing "conftest.", or (3) at the end.
16135    # Note that $ac_compile itself does not contain backslashes and begins
16136    # with a dollar sign (not a hyphen), so the echo should work correctly.
16137    # The option is referenced via a variable to avoid confusing sed.
16138    lt_compile=`echo "$ac_compile" | $SED \
16139    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16140    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16141    -e 's:$: $lt_compiler_flag:'`
16142    (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
16143    (eval "$lt_compile" 2>conftest.err)
16144    ac_status=$?
16145    cat conftest.err >&5
16146    echo "$as_me:16146: \$? = $ac_status" >&5
16147    if (exit $ac_status) && test -s "$ac_outfile"; then
16148      # The compiler can only warn and ignore the option if not recognized
16149      # So say no if there are warnings other than the usual output.
16150      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16151      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16152      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16153        lt_cv_prog_compiler_rtti_exceptions=yes
16154      fi
16155    fi
16156    $RM conftest*
16157
16158 fi
16159 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16160 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16161
16162 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16163     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16164 else
16165     :
16166 fi
16167
16168 fi
16169
16170
16171
16172
16173
16174
16175   lt_prog_compiler_wl=
16176 lt_prog_compiler_pic=
16177 lt_prog_compiler_static=
16178
16179 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16181
16182   if test "$GCC" = yes; then
16183     lt_prog_compiler_wl='-Wl,'
16184     lt_prog_compiler_static='-static'
16185
16186     case $host_os in
16187       aix*)
16188       # All AIX code is PIC.
16189       if test "$host_cpu" = ia64; then
16190         # AIX 5 now supports IA64 processor
16191         lt_prog_compiler_static='-Bstatic'
16192       fi
16193       ;;
16194
16195     amigaos*)
16196       if test "$host_cpu" = m68k; then
16197         # FIXME: we need at least 68020 code to build shared libraries, but
16198         # adding the `-m68020' flag to GCC prevents building anything better,
16199         # like `-m68040'.
16200         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16201       fi
16202       ;;
16203
16204     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16205       # PIC is the default for these OSes.
16206       ;;
16207
16208     mingw* | cygwin* | pw32* | os2*)
16209       # This hack is so that the source file can tell whether it is being
16210       # built for inclusion in a dll (and should export symbols for example).
16211       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16212       # (--disable-auto-import) libraries
16213       lt_prog_compiler_pic='-DDLL_EXPORT'
16214       ;;
16215
16216     darwin* | rhapsody*)
16217       # PIC is the default on this platform
16218       # Common symbols not allowed in MH_DYLIB files
16219       lt_prog_compiler_pic='-fno-common'
16220       ;;
16221
16222     hpux*)
16223       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16224       # not for PA HP-UX.
16225       case $host_cpu in
16226       hppa*64*|ia64*)
16227         # +Z the default
16228         ;;
16229       *)
16230         lt_prog_compiler_pic='-fPIC'
16231         ;;
16232       esac
16233       ;;
16234
16235     interix[3-9]*)
16236       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16237       # Instead, we relocate shared libraries at runtime.
16238       ;;
16239
16240     msdosdjgpp*)
16241       # Just because we use GCC doesn't mean we suddenly get shared libraries
16242       # on systems that don't support them.
16243       lt_prog_compiler_can_build_shared=no
16244       enable_shared=no
16245       ;;
16246
16247     *nto* | *qnx*)
16248       # QNX uses GNU C++, but need to define -shared option too, otherwise
16249       # it will coredump.
16250       lt_prog_compiler_pic='-fPIC -shared'
16251       ;;
16252
16253     sysv4*MP*)
16254       if test -d /usr/nec; then
16255         lt_prog_compiler_pic=-Kconform_pic
16256       fi
16257       ;;
16258
16259     *)
16260       lt_prog_compiler_pic='-fPIC'
16261       ;;
16262     esac
16263   else
16264     # PORTME Check for flag to pass linker flags through the system compiler.
16265     case $host_os in
16266     aix*)
16267       lt_prog_compiler_wl='-Wl,'
16268       if test "$host_cpu" = ia64; then
16269         # AIX 5 now supports IA64 processor
16270         lt_prog_compiler_static='-Bstatic'
16271       else
16272         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16273       fi
16274       ;;
16275     darwin*)
16276       # PIC is the default on this platform
16277       # Common symbols not allowed in MH_DYLIB files
16278       case $cc_basename in
16279       xlc*)
16280         lt_prog_compiler_pic='-qnocommon'
16281         lt_prog_compiler_wl='-Wl,'
16282         ;;
16283       esac
16284       ;;
16285
16286     mingw* | cygwin* | pw32* | os2*)
16287       # This hack is so that the source file can tell whether it is being
16288       # built for inclusion in a dll (and should export symbols for example).
16289       lt_prog_compiler_pic='-DDLL_EXPORT'
16290       ;;
16291
16292     hpux9* | hpux10* | hpux11*)
16293       lt_prog_compiler_wl='-Wl,'
16294       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16295       # not for PA HP-UX.
16296       case $host_cpu in
16297       hppa*64*|ia64*)
16298         # +Z the default
16299         ;;
16300       *)
16301         lt_prog_compiler_pic='+Z'
16302         ;;
16303       esac
16304       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16305       lt_prog_compiler_static='${wl}-a ${wl}archive'
16306       ;;
16307
16308     irix5* | irix6* | nonstopux*)
16309       lt_prog_compiler_wl='-Wl,'
16310       # PIC (with -KPIC) is the default.
16311       lt_prog_compiler_static='-non_shared'
16312       ;;
16313
16314     linux* | k*bsd*-gnu)
16315       case $cc_basename in
16316       icc* | ecc*)
16317         lt_prog_compiler_wl='-Wl,'
16318         lt_prog_compiler_pic='-KPIC'
16319         lt_prog_compiler_static='-static'
16320         ;;
16321       pgcc* | pgf77* | pgf90* | pgf95*)
16322         # Portland Group compilers (*not* the Pentium gcc compiler,
16323         # which looks to be a dead project)
16324         lt_prog_compiler_wl='-Wl,'
16325         lt_prog_compiler_pic='-fpic'
16326         lt_prog_compiler_static='-Bstatic'
16327         ;;
16328       ccc*)
16329         lt_prog_compiler_wl='-Wl,'
16330         # All Alpha code is PIC.
16331         lt_prog_compiler_static='-non_shared'
16332         ;;
16333       *)
16334         case `$CC -V 2>&1 | sed 5q` in
16335         *Sun\ C*)
16336           # Sun C 5.9
16337           lt_prog_compiler_pic='-KPIC'
16338           lt_prog_compiler_static='-Bstatic'
16339           lt_prog_compiler_wl='-Wl,'
16340           ;;
16341         *Sun\ F*)
16342           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16343           lt_prog_compiler_pic='-KPIC'
16344           lt_prog_compiler_static='-Bstatic'
16345           lt_prog_compiler_wl=''
16346           ;;
16347         esac
16348         ;;
16349       esac
16350       ;;
16351
16352     newsos6)
16353       lt_prog_compiler_pic='-KPIC'
16354       lt_prog_compiler_static='-Bstatic'
16355       ;;
16356
16357     *nto* | *qnx*)
16358       # QNX uses GNU C++, but need to define -shared option too, otherwise
16359       # it will coredump.
16360       lt_prog_compiler_pic='-fPIC -shared'
16361       ;;
16362
16363     osf3* | osf4* | osf5*)
16364       lt_prog_compiler_wl='-Wl,'
16365       # All OSF/1 code is PIC.
16366       lt_prog_compiler_static='-non_shared'
16367       ;;
16368
16369     rdos*)
16370       lt_prog_compiler_static='-non_shared'
16371       ;;
16372
16373     solaris*)
16374       lt_prog_compiler_pic='-KPIC'
16375       lt_prog_compiler_static='-Bstatic'
16376       case $cc_basename in
16377       f77* | f90* | f95*)
16378         lt_prog_compiler_wl='-Qoption ld ';;
16379       *)
16380         lt_prog_compiler_wl='-Wl,';;
16381       esac
16382       ;;
16383
16384     sunos4*)
16385       lt_prog_compiler_wl='-Qoption ld '
16386       lt_prog_compiler_pic='-PIC'
16387       lt_prog_compiler_static='-Bstatic'
16388       ;;
16389
16390     sysv4 | sysv4.2uw2* | sysv4.3*)
16391       lt_prog_compiler_wl='-Wl,'
16392       lt_prog_compiler_pic='-KPIC'
16393       lt_prog_compiler_static='-Bstatic'
16394       ;;
16395
16396     sysv4*MP*)
16397       if test -d /usr/nec ;then
16398         lt_prog_compiler_pic='-Kconform_pic'
16399         lt_prog_compiler_static='-Bstatic'
16400       fi
16401       ;;
16402
16403     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16404       lt_prog_compiler_wl='-Wl,'
16405       lt_prog_compiler_pic='-KPIC'
16406       lt_prog_compiler_static='-Bstatic'
16407       ;;
16408
16409     unicos*)
16410       lt_prog_compiler_wl='-Wl,'
16411       lt_prog_compiler_can_build_shared=no
16412       ;;
16413
16414     uts4*)
16415       lt_prog_compiler_pic='-pic'
16416       lt_prog_compiler_static='-Bstatic'
16417       ;;
16418
16419     *)
16420       lt_prog_compiler_can_build_shared=no
16421       ;;
16422     esac
16423   fi
16424
16425 case $host_os in
16426   # For platforms which do not support PIC, -DPIC is meaningless:
16427   *djgpp*)
16428     lt_prog_compiler_pic=
16429     ;;
16430   *)
16431     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16432     ;;
16433 esac
16434 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16435 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16436
16437
16438
16439
16440
16441
16442 #
16443 # Check to make sure the PIC flag actually works.
16444 #
16445 if test -n "$lt_prog_compiler_pic"; then
16446   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16448 if test "${lt_prog_compiler_pic_works+set}" = set; then
16449   echo $ECHO_N "(cached) $ECHO_C" >&6
16450 else
16451   lt_prog_compiler_pic_works=no
16452    ac_outfile=conftest.$ac_objext
16453    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16454    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16455    # Insert the option either (1) after the last *FLAGS variable, or
16456    # (2) before a word containing "conftest.", or (3) at the end.
16457    # Note that $ac_compile itself does not contain backslashes and begins
16458    # with a dollar sign (not a hyphen), so the echo should work correctly.
16459    # The option is referenced via a variable to avoid confusing sed.
16460    lt_compile=`echo "$ac_compile" | $SED \
16461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16463    -e 's:$: $lt_compiler_flag:'`
16464    (eval echo "\"\$as_me:16464: $lt_compile\"" >&5)
16465    (eval "$lt_compile" 2>conftest.err)
16466    ac_status=$?
16467    cat conftest.err >&5
16468    echo "$as_me:16468: \$? = $ac_status" >&5
16469    if (exit $ac_status) && test -s "$ac_outfile"; then
16470      # The compiler can only warn and ignore the option if not recognized
16471      # So say no if there are warnings other than the usual output.
16472      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16473      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16474      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16475        lt_prog_compiler_pic_works=yes
16476      fi
16477    fi
16478    $RM conftest*
16479
16480 fi
16481 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16482 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16483
16484 if test x"$lt_prog_compiler_pic_works" = xyes; then
16485     case $lt_prog_compiler_pic in
16486      "" | " "*) ;;
16487      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16488      esac
16489 else
16490     lt_prog_compiler_pic=
16491      lt_prog_compiler_can_build_shared=no
16492 fi
16493
16494 fi
16495
16496
16497
16498
16499
16500
16501 #
16502 # Check to make sure the static flag actually works.
16503 #
16504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16505 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16506 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16507 if test "${lt_prog_compiler_static_works+set}" = set; then
16508   echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510   lt_prog_compiler_static_works=no
16511    save_LDFLAGS="$LDFLAGS"
16512    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16513    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16514    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16515      # The linker can only warn and ignore the option if not recognized
16516      # So say no if there are warnings
16517      if test -s conftest.err; then
16518        # Append any errors to the config.log.
16519        cat conftest.err 1>&5
16520        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16521        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16522        if diff conftest.exp conftest.er2 >/dev/null; then
16523          lt_prog_compiler_static_works=yes
16524        fi
16525      else
16526        lt_prog_compiler_static_works=yes
16527      fi
16528    fi
16529    $RM conftest*
16530    LDFLAGS="$save_LDFLAGS"
16531
16532 fi
16533 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16534 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16535
16536 if test x"$lt_prog_compiler_static_works" = xyes; then
16537     :
16538 else
16539     lt_prog_compiler_static=
16540 fi
16541
16542
16543
16544
16545
16546
16547
16548   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16551   echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553   lt_cv_prog_compiler_c_o=no
16554    $RM -r conftest 2>/dev/null
16555    mkdir conftest
16556    cd conftest
16557    mkdir out
16558    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16559
16560    lt_compiler_flag="-o out/conftest2.$ac_objext"
16561    # Insert the option either (1) after the last *FLAGS variable, or
16562    # (2) before a word containing "conftest.", or (3) at the end.
16563    # Note that $ac_compile itself does not contain backslashes and begins
16564    # with a dollar sign (not a hyphen), so the echo should work correctly.
16565    lt_compile=`echo "$ac_compile" | $SED \
16566    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16567    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16568    -e 's:$: $lt_compiler_flag:'`
16569    (eval echo "\"\$as_me:16569: $lt_compile\"" >&5)
16570    (eval "$lt_compile" 2>out/conftest.err)
16571    ac_status=$?
16572    cat out/conftest.err >&5
16573    echo "$as_me:16573: \$? = $ac_status" >&5
16574    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16575    then
16576      # The compiler can only warn and ignore the option if not recognized
16577      # So say no if there are warnings
16578      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16579      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16580      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16581        lt_cv_prog_compiler_c_o=yes
16582      fi
16583    fi
16584    chmod u+w . 2>&5
16585    $RM conftest*
16586    # SGI C++ compiler will create directory out/ii_files/ for
16587    # template instantiation
16588    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16589    $RM out/* && rmdir out
16590    cd ..
16591    $RM -r conftest
16592    $RM conftest*
16593
16594 fi
16595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16597
16598
16599
16600
16601
16602
16603   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16606   echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608   lt_cv_prog_compiler_c_o=no
16609    $RM -r conftest 2>/dev/null
16610    mkdir conftest
16611    cd conftest
16612    mkdir out
16613    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16614
16615    lt_compiler_flag="-o out/conftest2.$ac_objext"
16616    # Insert the option either (1) after the last *FLAGS variable, or
16617    # (2) before a word containing "conftest.", or (3) at the end.
16618    # Note that $ac_compile itself does not contain backslashes and begins
16619    # with a dollar sign (not a hyphen), so the echo should work correctly.
16620    lt_compile=`echo "$ac_compile" | $SED \
16621    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16622    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16623    -e 's:$: $lt_compiler_flag:'`
16624    (eval echo "\"\$as_me:16624: $lt_compile\"" >&5)
16625    (eval "$lt_compile" 2>out/conftest.err)
16626    ac_status=$?
16627    cat out/conftest.err >&5
16628    echo "$as_me:16628: \$? = $ac_status" >&5
16629    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16630    then
16631      # The compiler can only warn and ignore the option if not recognized
16632      # So say no if there are warnings
16633      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16634      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16635      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16636        lt_cv_prog_compiler_c_o=yes
16637      fi
16638    fi
16639    chmod u+w . 2>&5
16640    $RM conftest*
16641    # SGI C++ compiler will create directory out/ii_files/ for
16642    # template instantiation
16643    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16644    $RM out/* && rmdir out
16645    cd ..
16646    $RM -r conftest
16647    $RM conftest*
16648
16649 fi
16650 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16652
16653
16654
16655
16656 hard_links="nottested"
16657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16658   # do not overwrite the value of need_locks provided by the user
16659   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16660 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16661   hard_links=yes
16662   $RM conftest*
16663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16664   touch conftest.a
16665   ln conftest.a conftest.b 2>&5 || hard_links=no
16666   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16667   echo "$as_me:$LINENO: result: $hard_links" >&5
16668 echo "${ECHO_T}$hard_links" >&6
16669   if test "$hard_links" = no; then
16670     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16671 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16672     need_locks=warn
16673   fi
16674 else
16675   need_locks=no
16676 fi
16677
16678
16679
16680
16681
16682
16683   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16685
16686   runpath_var=
16687   allow_undefined_flag=
16688   always_export_symbols=no
16689   archive_cmds=
16690   archive_expsym_cmds=
16691   compiler_needs_object=no
16692   enable_shared_with_static_runtimes=no
16693   export_dynamic_flag_spec=
16694   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16695   hardcode_automatic=no
16696   hardcode_direct=no
16697   hardcode_direct_absolute=no
16698   hardcode_libdir_flag_spec=
16699   hardcode_libdir_flag_spec_ld=
16700   hardcode_libdir_separator=
16701   hardcode_minus_L=no
16702   hardcode_shlibpath_var=unsupported
16703   inherit_rpath=no
16704   link_all_deplibs=unknown
16705   module_cmds=
16706   module_expsym_cmds=
16707   old_archive_from_new_cmds=
16708   old_archive_from_expsyms_cmds=
16709   thread_safe_flag_spec=
16710   whole_archive_flag_spec=
16711   # include_expsyms should be a list of space-separated symbols to be *always*
16712   # included in the symbol list
16713   include_expsyms=
16714   # exclude_expsyms can be an extended regexp of symbols to exclude
16715   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16716   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16717   # as well as any symbol that contains `d'.
16718   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16719   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16720   # platforms (ab)use it in PIC code, but their linkers get confused if
16721   # the symbol is explicitly referenced.  Since portable code cannot
16722   # rely on this symbol name, it's probably fine to never include it in
16723   # preloaded symbol tables.
16724   extract_expsyms_cmds=
16725
16726   case $host_os in
16727   cygwin* | mingw* | pw32*)
16728     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16729     # When not using gcc, we currently assume that we are using
16730     # Microsoft Visual C++.
16731     if test "$GCC" != yes; then
16732       with_gnu_ld=no
16733     fi
16734     ;;
16735   interix*)
16736     # we just hope/assume this is gcc and not c89 (= MSVC++)
16737     with_gnu_ld=yes
16738     ;;
16739   openbsd*)
16740     with_gnu_ld=no
16741     ;;
16742   esac
16743
16744   ld_shlibs=yes
16745   if test "$with_gnu_ld" = yes; then
16746     # If archive_cmds runs LD, not CC, wlarc should be empty
16747     wlarc='${wl}'
16748
16749     # Set some defaults for GNU ld with shared library support. These
16750     # are reset later if shared libraries are not supported. Putting them
16751     # here allows them to be overridden if necessary.
16752     runpath_var=LD_RUN_PATH
16753     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16754     export_dynamic_flag_spec='${wl}--export-dynamic'
16755     # ancient GNU ld didn't support --whole-archive et. al.
16756     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16757       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16758     else
16759       whole_archive_flag_spec=
16760     fi
16761     supports_anon_versioning=no
16762     case `$LD -v 2>&1` in
16763       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16764       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16765       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16766       *\ 2.11.*) ;; # other 2.11 versions
16767       *) supports_anon_versioning=yes ;;
16768     esac
16769
16770     # See if GNU ld supports shared libraries.
16771     case $host_os in
16772     aix[3-9]*)
16773       # On AIX/PPC, the GNU linker is very broken
16774       if test "$host_cpu" != ia64; then
16775         ld_shlibs=no
16776         cat <<_LT_EOF 1>&2
16777
16778 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16779 *** to be unable to reliably create shared libraries on AIX.
16780 *** Therefore, libtool is disabling shared libraries support.  If you
16781 *** really care for shared libraries, you may want to modify your PATH
16782 *** so that a non-GNU linker is found, and then restart.
16783
16784 _LT_EOF
16785       fi
16786       ;;
16787
16788     amigaos*)
16789       if test "$host_cpu" = m68k; then
16790         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)'
16791         hardcode_libdir_flag_spec='-L$libdir'
16792         hardcode_minus_L=yes
16793       fi
16794
16795       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16796       # that the semantics of dynamic libraries on AmigaOS, at least up
16797       # to version 4, is to share data among multiple programs linked
16798       # with the same dynamic library.  Since this doesn't match the
16799       # behavior of shared libraries on other platforms, we can't use
16800       # them.
16801       ld_shlibs=no
16802       ;;
16803
16804     beos*)
16805       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16806         allow_undefined_flag=unsupported
16807         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16808         # support --undefined.  This deserves some investigation.  FIXME
16809         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16810       else
16811         ld_shlibs=no
16812       fi
16813       ;;
16814
16815     cygwin* | mingw* | pw32*)
16816       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16817       # as there is no search path for DLLs.
16818       hardcode_libdir_flag_spec='-L$libdir'
16819       allow_undefined_flag=unsupported
16820       always_export_symbols=no
16821       enable_shared_with_static_runtimes=yes
16822       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16823
16824       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16825         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16826         # If the export-symbols file already is a .def file (1st line
16827         # is EXPORTS), use it as is; otherwise, prepend...
16828         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16829           cp $export_symbols $output_objdir/$soname.def;
16830         else
16831           echo EXPORTS > $output_objdir/$soname.def;
16832           cat $export_symbols >> $output_objdir/$soname.def;
16833         fi~
16834         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16835       else
16836         ld_shlibs=no
16837       fi
16838       ;;
16839
16840     interix[3-9]*)
16841       hardcode_direct=no
16842       hardcode_shlibpath_var=no
16843       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16844       export_dynamic_flag_spec='${wl}-E'
16845       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16846       # Instead, shared libraries are loaded at an image base (0x10000000 by
16847       # default) and relocated if they conflict, which is a slow very memory
16848       # consuming and fragmenting process.  To avoid this, we pick a random,
16849       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16850       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16851       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16852       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'
16853       ;;
16854
16855     gnu* | linux* | tpf* | k*bsd*-gnu)
16856       tmp_diet=no
16857       if test "$host_os" = linux-dietlibc; then
16858         case $cc_basename in
16859           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16860         esac
16861       fi
16862       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16863          && test "$tmp_diet" = no
16864       then
16865         tmp_addflag=
16866         case $cc_basename,$host_cpu in
16867         pgcc*)                          # Portland Group C compiler
16868           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'
16869           tmp_addflag=' $pic_flag'
16870           ;;
16871         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16872           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'
16873           tmp_addflag=' $pic_flag -Mnomain' ;;
16874         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16875           tmp_addflag=' -i_dynamic' ;;
16876         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16877           tmp_addflag=' -i_dynamic -nofor_main' ;;
16878         ifc* | ifort*)                  # Intel Fortran compiler
16879           tmp_addflag=' -nofor_main' ;;
16880         esac
16881         case `$CC -V 2>&1 | sed 5q` in
16882         *Sun\ C*)                       # Sun C 5.9
16883           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'
16884           compiler_needs_object=yes
16885           tmp_sharedflag='-G' ;;
16886         *Sun\ F*)                       # Sun Fortran 8.3
16887           tmp_sharedflag='-G' ;;
16888         *)
16889           tmp_sharedflag='-shared' ;;
16890         esac
16891         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16892
16893         if test "x$supports_anon_versioning" = xyes; then
16894           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16895             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16896             echo "local: *; };" >> $output_objdir/$libname.ver~
16897             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16898         fi
16899       else
16900         ld_shlibs=no
16901       fi
16902       ;;
16903
16904     netbsd*)
16905       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16906         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16907         wlarc=
16908       else
16909         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16911       fi
16912       ;;
16913
16914     solaris*)
16915       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16916         ld_shlibs=no
16917         cat <<_LT_EOF 1>&2
16918
16919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16920 *** create shared libraries on Solaris systems.  Therefore, libtool
16921 *** is disabling shared libraries support.  We urge you to upgrade GNU
16922 *** binutils to release 2.9.1 or newer.  Another option is to modify
16923 *** your PATH or compiler configuration so that the native linker is
16924 *** used, and then restart.
16925
16926 _LT_EOF
16927       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16928         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16929         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16930       else
16931         ld_shlibs=no
16932       fi
16933       ;;
16934
16935     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16936       case `$LD -v 2>&1` in
16937         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16938         ld_shlibs=no
16939         cat <<_LT_EOF 1>&2
16940
16941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16942 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16943 *** is disabling shared libraries support.  We urge you to upgrade GNU
16944 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16945 *** your PATH or compiler configuration so that the native linker is
16946 *** used, and then restart.
16947
16948 _LT_EOF
16949         ;;
16950         *)
16951           # For security reasons, it is highly recommended that you always
16952           # use absolute paths for naming shared libraries, and exclude the
16953           # DT_RUNPATH tag from executables and libraries.  But doing so
16954           # requires that you compile everything twice, which is a pain.
16955           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16956             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16957             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16959           else
16960             ld_shlibs=no
16961           fi
16962         ;;
16963       esac
16964       ;;
16965
16966     sunos4*)
16967       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16968       wlarc=
16969       hardcode_direct=yes
16970       hardcode_shlibpath_var=no
16971       ;;
16972
16973     *)
16974       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16975         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16976         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16977       else
16978         ld_shlibs=no
16979       fi
16980       ;;
16981     esac
16982
16983     if test "$ld_shlibs" = no; then
16984       runpath_var=
16985       hardcode_libdir_flag_spec=
16986       export_dynamic_flag_spec=
16987       whole_archive_flag_spec=
16988     fi
16989   else
16990     # PORTME fill in a description of your system's linker (not GNU ld)
16991     case $host_os in
16992     aix3*)
16993       allow_undefined_flag=unsupported
16994       always_export_symbols=yes
16995       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'
16996       # Note: this linker hardcodes the directories in LIBPATH if there
16997       # are no directories specified by -L.
16998       hardcode_minus_L=yes
16999       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17000         # Neither direct hardcoding nor static linking is supported with a
17001         # broken collect2.
17002         hardcode_direct=unsupported
17003       fi
17004       ;;
17005
17006     aix[4-9]*)
17007       if test "$host_cpu" = ia64; then
17008         # On IA64, the linker does run time linking by default, so we don't
17009         # have to do anything special.
17010         aix_use_runtimelinking=no
17011         exp_sym_flag='-Bexport'
17012         no_entry_flag=""
17013       else
17014         # If we're using GNU nm, then we don't want the "-C" option.
17015         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17016         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17017           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'
17018         else
17019           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'
17020         fi
17021         aix_use_runtimelinking=no
17022
17023         # Test if we are trying to use run time linking or normal
17024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17025         # need to do runtime linking.
17026         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17027           for ld_flag in $LDFLAGS; do
17028           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17029             aix_use_runtimelinking=yes
17030             break
17031           fi
17032           done
17033           ;;
17034         esac
17035
17036         exp_sym_flag='-bexport'
17037         no_entry_flag='-bnoentry'
17038       fi
17039
17040       # When large executables or shared objects are built, AIX ld can
17041       # have problems creating the table of contents.  If linking a library
17042       # or program results in "error TOC overflow" add -mminimal-toc to
17043       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17044       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17045
17046       archive_cmds=''
17047       hardcode_direct=yes
17048       hardcode_direct_absolute=yes
17049       hardcode_libdir_separator=':'
17050       link_all_deplibs=yes
17051       file_list_spec='${wl}-f,'
17052
17053       if test "$GCC" = yes; then
17054         case $host_os in aix4.[012]|aix4.[012].*)
17055         # We only want to do this on AIX 4.2 and lower, the check
17056         # below for broken collect2 doesn't work under 4.3+
17057           collect2name=`${CC} -print-prog-name=collect2`
17058           if test -f "$collect2name" &&
17059            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17060           then
17061           # We have reworked collect2
17062           :
17063           else
17064           # We have old collect2
17065           hardcode_direct=unsupported
17066           # It fails to find uninstalled libraries when the uninstalled
17067           # path is not listed in the libpath.  Setting hardcode_minus_L
17068           # to unsupported forces relinking
17069           hardcode_minus_L=yes
17070           hardcode_libdir_flag_spec='-L$libdir'
17071           hardcode_libdir_separator=
17072           fi
17073           ;;
17074         esac
17075         shared_flag='-shared'
17076         if test "$aix_use_runtimelinking" = yes; then
17077           shared_flag="$shared_flag "'${wl}-G'
17078         fi
17079       else
17080         # not using gcc
17081         if test "$host_cpu" = ia64; then
17082         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17083         # chokes on -Wl,-G. The following line is correct:
17084           shared_flag='-G'
17085         else
17086           if test "$aix_use_runtimelinking" = yes; then
17087             shared_flag='${wl}-G'
17088           else
17089             shared_flag='${wl}-bM:SRE'
17090           fi
17091         fi
17092       fi
17093
17094       # It seems that -bexpall does not export symbols beginning with
17095       # underscore (_), so it is better to generate a list of symbols to export.
17096       always_export_symbols=yes
17097       if test "$aix_use_runtimelinking" = yes; then
17098         # Warning - without using the other runtime loading flags (-brtl),
17099         # -berok will link without error, but may produce a broken library.
17100         allow_undefined_flag='-berok'
17101         # Determine the default libpath from the value encoded in an
17102         # empty executable.
17103         cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109
17110 int
17111 main ()
17112 {
17113
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120   (eval $ac_link) 2>conftest.er1
17121   ac_status=$?
17122   grep -v '^ *+' conftest.er1 >conftest.err
17123   rm -f conftest.er1
17124   cat conftest.err >&5
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); } &&
17127          { ac_try='test -z "$ac_c_werror_flag"
17128                          || test ! -s conftest.err'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; } &&
17134          { ac_try='test -s conftest$ac_exeext'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140
17141 lt_aix_libpath_sed='
17142     /Import File Strings/,/^$/ {
17143         /^0/ {
17144             s/^0  *\(.*\)$/\1/
17145             p
17146         }
17147     }'
17148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149 # Check for a 64-bit object if we didn't find anything.
17150 if test -z "$aix_libpath"; then
17151   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17152 fi
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 fi
17158 rm -f conftest.err conftest.$ac_objext \
17159       conftest$ac_exeext conftest.$ac_ext
17160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17161
17162         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17163         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"
17164       else
17165         if test "$host_cpu" = ia64; then
17166           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17167           allow_undefined_flag="-z nodefs"
17168           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"
17169         else
17170          # Determine the default libpath from the value encoded in an
17171          # empty executable.
17172          cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178
17179 int
17180 main ()
17181 {
17182
17183   ;
17184   return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17189   (eval $ac_link) 2>conftest.er1
17190   ac_status=$?
17191   grep -v '^ *+' conftest.er1 >conftest.err
17192   rm -f conftest.er1
17193   cat conftest.err >&5
17194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195   (exit $ac_status); } &&
17196          { ac_try='test -z "$ac_c_werror_flag"
17197                          || test ! -s conftest.err'
17198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199   (eval $ac_try) 2>&5
17200   ac_status=$?
17201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); }; } &&
17203          { ac_try='test -s conftest$ac_exeext'
17204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205   (eval $ac_try) 2>&5
17206   ac_status=$?
17207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208   (exit $ac_status); }; }; then
17209
17210 lt_aix_libpath_sed='
17211     /Import File Strings/,/^$/ {
17212         /^0/ {
17213             s/^0  *\(.*\)$/\1/
17214             p
17215         }
17216     }'
17217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17218 # Check for a 64-bit object if we didn't find anything.
17219 if test -z "$aix_libpath"; then
17220   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17221 fi
17222 else
17223   echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 fi
17227 rm -f conftest.err conftest.$ac_objext \
17228       conftest$ac_exeext conftest.$ac_ext
17229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17230
17231          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17232           # Warning - without using the other run time loading flags,
17233           # -berok will link without error, but may produce a broken library.
17234           no_undefined_flag=' ${wl}-bernotok'
17235           allow_undefined_flag=' ${wl}-berok'
17236           # Exported symbols can be pulled into shared objects from archives
17237           whole_archive_flag_spec='$convenience'
17238           archive_cmds_need_lc=yes
17239           # This is similar to how AIX traditionally builds its shared libraries.
17240           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'
17241         fi
17242       fi
17243       ;;
17244
17245     amigaos*)
17246       if test "$host_cpu" = m68k; then
17247         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)'
17248         hardcode_libdir_flag_spec='-L$libdir'
17249         hardcode_minus_L=yes
17250       fi
17251       # see comment about different semantics on the GNU ld section
17252       ld_shlibs=no
17253       ;;
17254
17255     bsdi[45]*)
17256       export_dynamic_flag_spec=-rdynamic
17257       ;;
17258
17259     cygwin* | mingw* | pw32*)
17260       # When not using gcc, we currently assume that we are using
17261       # Microsoft Visual C++.
17262       # hardcode_libdir_flag_spec is actually meaningless, as there is
17263       # no search path for DLLs.
17264       hardcode_libdir_flag_spec=' '
17265       allow_undefined_flag=unsupported
17266       # Tell ltmain to make .lib files, not .a files.
17267       libext=lib
17268       # Tell ltmain to make .dll files, not .so files.
17269       shrext_cmds=".dll"
17270       # FIXME: Setting linknames here is a bad hack.
17271       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17272       # The linker will automatically build a .lib file if we build a DLL.
17273       old_archive_from_new_cmds='true'
17274       # FIXME: Should let the user specify the lib program.
17275       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17276       fix_srcfile_path='`cygpath -w "$srcfile"`'
17277       enable_shared_with_static_runtimes=yes
17278       ;;
17279
17280     darwin* | rhapsody*)
17281       case $host_os in
17282       rhapsody* | darwin1.[012])
17283         allow_undefined_flag='${wl}-undefined ${wl}suppress'
17284         ;;
17285       *) # Darwin 1.3 on
17286         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17287         10.[012])
17288           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17289           ;;
17290         10.*)
17291           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17292           ;;
17293         esac
17294         ;;
17295       esac
17296       archive_cmds_need_lc=no
17297       hardcode_direct=no
17298       hardcode_automatic=yes
17299       hardcode_shlibpath_var=unsupported
17300       whole_archive_flag_spec=''
17301       link_all_deplibs=yes
17302       if test "$GCC" = yes ; then
17303         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17304   echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306   lt_cv_apple_cc_single_mod=no
17307         if test -z "${LT_MULTI_MODULE}"; then
17308           # By default we will add the -single_module flag. You can override
17309           # by either setting the environment variable LT_MULTI_MODULE
17310           # non-empty at configure time, or by adding -multi-module to the
17311           # link flags.
17312           echo "int foo(void){return 1;}" > conftest.c
17313           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17314               -dynamiclib ${wl}-single_module conftest.c
17315           if test -f libconftest.dylib; then
17316               lt_cv_apple_cc_single_mod=yes
17317               rm libconftest.dylib
17318           fi
17319           rm conftest.$ac_ext
17320         fi
17321 fi
17322
17323         output_verbose_link_cmd=echo
17324         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17325           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17326           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17327         else
17328           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17329           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17330         fi
17331         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17332         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17333       else
17334         case $cc_basename in
17335         xlc*)
17336           output_verbose_link_cmd=echo
17337           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17338           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17339           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17340           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17341           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17342           ;;
17343         *)
17344           ld_shlibs=no
17345           ;;
17346         esac
17347       fi
17348       ;;
17349
17350     dgux*)
17351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17352       hardcode_libdir_flag_spec='-L$libdir'
17353       hardcode_shlibpath_var=no
17354       ;;
17355
17356     freebsd1*)
17357       ld_shlibs=no
17358       ;;
17359
17360     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17361     # support.  Future versions do this automatically, but an explicit c++rt0.o
17362     # does not break anything, and helps significantly (at the cost of a little
17363     # extra space).
17364     freebsd2.2*)
17365       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17366       hardcode_libdir_flag_spec='-R$libdir'
17367       hardcode_direct=yes
17368       hardcode_shlibpath_var=no
17369       ;;
17370
17371     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17372     freebsd2*)
17373       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17374       hardcode_direct=yes
17375       hardcode_minus_L=yes
17376       hardcode_shlibpath_var=no
17377       ;;
17378
17379     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17380     freebsd* | dragonfly*)
17381       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17382       hardcode_libdir_flag_spec='-R$libdir'
17383       hardcode_direct=yes
17384       hardcode_shlibpath_var=no
17385       ;;
17386
17387     hpux9*)
17388       if test "$GCC" = yes; then
17389         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'
17390       else
17391         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'
17392       fi
17393       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17394       hardcode_libdir_separator=:
17395       hardcode_direct=yes
17396
17397       # hardcode_minus_L: Not really in the search PATH,
17398       # but as the default location of the library.
17399       hardcode_minus_L=yes
17400       export_dynamic_flag_spec='${wl}-E'
17401       ;;
17402
17403     hpux10*)
17404       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17405         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17406       else
17407         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17408       fi
17409       if test "$with_gnu_ld" = no; then
17410         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17411         hardcode_libdir_flag_spec_ld='+b $libdir'
17412         hardcode_libdir_separator=:
17413         hardcode_direct=yes
17414         hardcode_direct_absolute=yes
17415         export_dynamic_flag_spec='${wl}-E'
17416         # hardcode_minus_L: Not really in the search PATH,
17417         # but as the default location of the library.
17418         hardcode_minus_L=yes
17419       fi
17420       ;;
17421
17422     hpux11*)
17423       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17424         case $host_cpu in
17425         hppa*64*)
17426           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17427           ;;
17428         ia64*)
17429           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17430           ;;
17431         *)
17432           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17433           ;;
17434         esac
17435       else
17436         case $host_cpu in
17437         hppa*64*)
17438           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17439           ;;
17440         ia64*)
17441           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17442           ;;
17443         *)
17444           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17445           ;;
17446         esac
17447       fi
17448       if test "$with_gnu_ld" = no; then
17449         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17450         hardcode_libdir_separator=:
17451
17452         case $host_cpu in
17453         hppa*64*|ia64*)
17454           hardcode_direct=no
17455           hardcode_shlibpath_var=no
17456           ;;
17457         *)
17458           hardcode_direct=yes
17459           hardcode_direct_absolute=yes
17460           export_dynamic_flag_spec='${wl}-E'
17461
17462           # hardcode_minus_L: Not really in the search PATH,
17463           # but as the default location of the library.
17464           hardcode_minus_L=yes
17465           ;;
17466         esac
17467       fi
17468       ;;
17469
17470     irix5* | irix6* | nonstopux*)
17471       if test "$GCC" = yes; then
17472         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'
17473         # Try to use the -exported_symbol ld option, if it does not
17474         # work, assume that -exports_file does not work either and
17475         # implicitly export all symbols.
17476         save_LDFLAGS="$LDFLAGS"
17477         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17478         cat >conftest.$ac_ext <<_ACEOF
17479 int foo(void) {}
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_c_werror_flag"
17491                          || test ! -s conftest.err'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; } &&
17497          { ac_try='test -s conftest$ac_exeext'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; }; then
17503   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'
17504
17505 else
17506   echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 fi
17510 rm -f conftest.err conftest.$ac_objext \
17511       conftest$ac_exeext conftest.$ac_ext
17512         LDFLAGS="$save_LDFLAGS"
17513       else
17514         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'
17515         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'
17516       fi
17517       archive_cmds_need_lc='no'
17518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17519       hardcode_libdir_separator=:
17520       inherit_rpath=yes
17521       link_all_deplibs=yes
17522       ;;
17523
17524     netbsd*)
17525       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17526         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17527       else
17528         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17529       fi
17530       hardcode_libdir_flag_spec='-R$libdir'
17531       hardcode_direct=yes
17532       hardcode_shlibpath_var=no
17533       ;;
17534
17535     newsos6)
17536       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17537       hardcode_direct=yes
17538       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17539       hardcode_libdir_separator=:
17540       hardcode_shlibpath_var=no
17541       ;;
17542
17543     *nto* | *qnx*)
17544       ;;
17545
17546     openbsd*)
17547       hardcode_direct=yes
17548       hardcode_shlibpath_var=no
17549       hardcode_direct_absolute=yes
17550       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17551         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17552         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17553         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17554         export_dynamic_flag_spec='${wl}-E'
17555       else
17556         case $host_os in
17557         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17558           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17559           hardcode_libdir_flag_spec='-R$libdir'
17560           ;;
17561         *)
17562           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17563           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17564           ;;
17565         esac
17566       fi
17567       ;;
17568
17569     os2*)
17570       hardcode_libdir_flag_spec='-L$libdir'
17571       hardcode_minus_L=yes
17572       allow_undefined_flag=unsupported
17573       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'
17574       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17575       ;;
17576
17577     osf3*)
17578       if test "$GCC" = yes; then
17579         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17580         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'
17581       else
17582         allow_undefined_flag=' -expect_unresolved \*'
17583         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'
17584       fi
17585       archive_cmds_need_lc='no'
17586       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17587       hardcode_libdir_separator=:
17588       ;;
17589
17590     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17591       if test "$GCC" = yes; then
17592         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17593         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'
17594         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17595       else
17596         allow_undefined_flag=' -expect_unresolved \*'
17597         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'
17598         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~
17599         $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'
17600
17601         # Both c and cxx compiler support -rpath directly
17602         hardcode_libdir_flag_spec='-rpath $libdir'
17603       fi
17604       archive_cmds_need_lc='no'
17605       hardcode_libdir_separator=:
17606       ;;
17607
17608     solaris*)
17609       no_undefined_flag=' -z defs'
17610       if test "$GCC" = yes; then
17611         wlarc='${wl}'
17612         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17614           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17615       else
17616         case `$CC -V 2>&1` in
17617         *"Compilers 5.0"*)
17618           wlarc=''
17619           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17621           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17622           ;;
17623         *)
17624           wlarc='${wl}'
17625           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17626           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17627           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17628           ;;
17629         esac
17630       fi
17631       hardcode_libdir_flag_spec='-R$libdir'
17632       hardcode_shlibpath_var=no
17633       case $host_os in
17634       solaris2.[0-5] | solaris2.[0-5].*) ;;
17635       *)
17636         # The compiler driver will combine and reorder linker options,
17637         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17638         # but is careful enough not to reorder.
17639         # Supported since Solaris 2.6 (maybe 2.5.1?)
17640         if test "$GCC" = yes; then
17641           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17642         else
17643           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17644         fi
17645         ;;
17646       esac
17647       link_all_deplibs=yes
17648       ;;
17649
17650     sunos4*)
17651       if test "x$host_vendor" = xsequent; then
17652         # Use $CC to link under sequent, because it throws in some extra .o
17653         # files that make .init and .fini sections work.
17654         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17655       else
17656         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17657       fi
17658       hardcode_libdir_flag_spec='-L$libdir'
17659       hardcode_direct=yes
17660       hardcode_minus_L=yes
17661       hardcode_shlibpath_var=no
17662       ;;
17663
17664     sysv4)
17665       case $host_vendor in
17666         sni)
17667           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668           hardcode_direct=yes # is this really true???
17669         ;;
17670         siemens)
17671           ## LD is ld it makes a PLAMLIB
17672           ## CC just makes a GrossModule.
17673           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17674           reload_cmds='$CC -r -o $output$reload_objs'
17675           hardcode_direct=no
17676         ;;
17677         motorola)
17678           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17679           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17680         ;;
17681       esac
17682       runpath_var='LD_RUN_PATH'
17683       hardcode_shlibpath_var=no
17684       ;;
17685
17686     sysv4.3*)
17687       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17688       hardcode_shlibpath_var=no
17689       export_dynamic_flag_spec='-Bexport'
17690       ;;
17691
17692     sysv4*MP*)
17693       if test -d /usr/nec; then
17694         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17695         hardcode_shlibpath_var=no
17696         runpath_var=LD_RUN_PATH
17697         hardcode_runpath_var=yes
17698         ld_shlibs=yes
17699       fi
17700       ;;
17701
17702     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17703       no_undefined_flag='${wl}-z,text'
17704       archive_cmds_need_lc=no
17705       hardcode_shlibpath_var=no
17706       runpath_var='LD_RUN_PATH'
17707
17708       if test "$GCC" = yes; then
17709         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17710         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17711       else
17712         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17713         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17714       fi
17715       ;;
17716
17717     sysv5* | sco3.2v5* | sco5v6*)
17718       # Note: We can NOT use -z defs as we might desire, because we do not
17719       # link with -lc, and that would cause any symbols used from libc to
17720       # always be unresolved, which means just about no library would
17721       # ever link correctly.  If we're not using GNU ld we use -z text
17722       # though, which does catch some bad symbols but isn't as heavy-handed
17723       # as -z defs.
17724       no_undefined_flag='${wl}-z,text'
17725       allow_undefined_flag='${wl}-z,nodefs'
17726       archive_cmds_need_lc=no
17727       hardcode_shlibpath_var=no
17728       hardcode_libdir_flag_spec='${wl}-R,$libdir'
17729       hardcode_libdir_separator=':'
17730       link_all_deplibs=yes
17731       export_dynamic_flag_spec='${wl}-Bexport'
17732       runpath_var='LD_RUN_PATH'
17733
17734       if test "$GCC" = yes; then
17735         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17736         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17737       else
17738         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17740       fi
17741       ;;
17742
17743     uts4*)
17744       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745       hardcode_libdir_flag_spec='-L$libdir'
17746       hardcode_shlibpath_var=no
17747       ;;
17748
17749     *)
17750       ld_shlibs=no
17751       ;;
17752     esac
17753
17754     if test x$host_vendor = xsni; then
17755       case $host in
17756       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17757         export_dynamic_flag_spec='${wl}-Blargedynsym'
17758         ;;
17759       esac
17760     fi
17761   fi
17762
17763 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
17764 echo "${ECHO_T}$ld_shlibs" >&6
17765 test "$ld_shlibs" = no && can_build_shared=no
17766
17767 with_gnu_ld=$with_gnu_ld
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783 #
17784 # Do we need to explicitly link libc?
17785 #
17786 case "x$archive_cmds_need_lc" in
17787 x|xyes)
17788   # Assume -lc should be added
17789   archive_cmds_need_lc=yes
17790
17791   if test "$enable_shared" = yes && test "$GCC" = yes; then
17792     case $archive_cmds in
17793     *'~'*)
17794       # FIXME: we may have to deal with multi-command sequences.
17795       ;;
17796     '$CC '*)
17797       # Test whether the compiler implicitly links with -lc since on some
17798       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17799       # to ld, don't add -lc before -lgcc.
17800       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17801 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17802       $RM conftest*
17803       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17804
17805       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17806   (eval $ac_compile) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); } 2>conftest.err; then
17810         soname=conftest
17811         lib=conftest
17812         libobjs=conftest.$ac_objext
17813         deplibs=
17814         wl=$lt_prog_compiler_wl
17815         pic_flag=$lt_prog_compiler_pic
17816         compiler_flags=-v
17817         linker_flags=-v
17818         verstring=
17819         output_objdir=.
17820         libname=conftest
17821         lt_save_allow_undefined_flag=$allow_undefined_flag
17822         allow_undefined_flag=
17823         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17824   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }
17828         then
17829           archive_cmds_need_lc=no
17830         else
17831           archive_cmds_need_lc=yes
17832         fi
17833         allow_undefined_flag=$lt_save_allow_undefined_flag
17834       else
17835         cat conftest.err 1>&5
17836       fi
17837       $RM conftest*
17838       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
17839 echo "${ECHO_T}$archive_cmds_need_lc" >&6
17840       ;;
17841     esac
17842   fi
17843   ;;
17844 esac
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18003 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18004 withGCC=$GCC
18005 if test "$withGCC" = yes; then
18006   case $host_os in
18007     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18008     *) lt_awk_arg="/^libraries:/" ;;
18009   esac
18010   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18011   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18012     # if the path contains ";" then we assume it to be the separator
18013     # otherwise default to the standard path separator (i.e. ":") - it is
18014     # assumed that no part of a normal pathname contains ";" but that should
18015     # okay in the real world where ";" in dirpaths is itself problematic.
18016     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18017   else
18018     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18019   fi
18020   # Ok, now we have the path, separated by spaces, we can step through it
18021   # and add multilib dir if necessary.
18022   lt_tmp_lt_search_path_spec=
18023   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18024   for lt_sys_path in $lt_search_path_spec; do
18025     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18026       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18027     else
18028       test -d "$lt_sys_path" && \
18029         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18030     fi
18031   done
18032   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18033 BEGIN {RS=" "; FS="/|\n";} {
18034   lt_foo="";
18035   lt_count=0;
18036   for (lt_i = NF; lt_i > 0; lt_i--) {
18037     if ($lt_i != "" && $lt_i != ".") {
18038       if ($lt_i == "..") {
18039         lt_count++;
18040       } else {
18041         if (lt_count == 0) {
18042           lt_foo="/" $lt_i lt_foo;
18043         } else {
18044           lt_count--;
18045         }
18046       }
18047     }
18048   }
18049   if (lt_foo != "") { lt_freq[lt_foo]++; }
18050   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18051 }'`
18052   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18053 else
18054   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18055 fi
18056 library_names_spec=
18057 libname_spec='lib$name'
18058 soname_spec=
18059 shrext_cmds=".so"
18060 postinstall_cmds=
18061 postuninstall_cmds=
18062 finish_cmds=
18063 finish_eval=
18064 shlibpath_var=
18065 shlibpath_overrides_runpath=unknown
18066 version_type=none
18067 dynamic_linker="$host_os ld.so"
18068 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18069 need_lib_prefix=unknown
18070 hardcode_into_libs=no
18071
18072 # when you set need_version to no, make sure it does not cause -set_version
18073 # flags to be left without arguments
18074 need_version=unknown
18075
18076 case $host_os in
18077 aix3*)
18078   version_type=linux
18079   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18080   shlibpath_var=LIBPATH
18081
18082   # AIX 3 has no versioning support, so we append a major version to the name.
18083   soname_spec='${libname}${release}${shared_ext}$major'
18084   ;;
18085
18086 aix[4-9]*)
18087   version_type=linux
18088   need_lib_prefix=no
18089   need_version=no
18090   hardcode_into_libs=yes
18091   if test "$host_cpu" = ia64; then
18092     # AIX 5 supports IA64
18093     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18094     shlibpath_var=LD_LIBRARY_PATH
18095   else
18096     # With GCC up to 2.95.x, collect2 would create an import file
18097     # for dependence libraries.  The import file would start with
18098     # the line `#! .'.  This would cause the generated library to
18099     # depend on `.', always an invalid library.  This was fixed in
18100     # development snapshots of GCC prior to 3.0.
18101     case $host_os in
18102       aix4 | aix4.[01] | aix4.[01].*)
18103       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18104            echo ' yes '
18105            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18106         :
18107       else
18108         can_build_shared=no
18109       fi
18110       ;;
18111     esac
18112     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18113     # soname into executable. Probably we can add versioning support to
18114     # collect2, so additional links can be useful in future.
18115     if test "$aix_use_runtimelinking" = yes; then
18116       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18117       # instead of lib<name>.a to let people know that these are not
18118       # typical AIX shared libraries.
18119       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18120     else
18121       # We preserve .a as extension for shared libraries through AIX4.2
18122       # and later when we are not doing run time linking.
18123       library_names_spec='${libname}${release}.a $libname.a'
18124       soname_spec='${libname}${release}${shared_ext}$major'
18125     fi
18126     shlibpath_var=LIBPATH
18127   fi
18128   ;;
18129
18130 amigaos*)
18131   if test "$host_cpu" = m68k; then
18132     library_names_spec='$libname.ixlibrary $libname.a'
18133     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18134     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'
18135   else
18136     dynamic_linker=no
18137   fi
18138   ;;
18139
18140 beos*)
18141   library_names_spec='${libname}${shared_ext}'
18142   dynamic_linker="$host_os ld.so"
18143   shlibpath_var=LIBRARY_PATH
18144   ;;
18145
18146 bsdi[45]*)
18147   version_type=linux
18148   need_version=no
18149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150   soname_spec='${libname}${release}${shared_ext}$major'
18151   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18152   shlibpath_var=LD_LIBRARY_PATH
18153   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18154   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18155   # the default ld.so.conf also contains /usr/contrib/lib and
18156   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18157   # libtool to hard-code these into programs
18158   ;;
18159
18160 cygwin* | mingw* | pw32*)
18161   version_type=windows
18162   shrext_cmds=".dll"
18163   need_version=no
18164   need_lib_prefix=no
18165
18166   case $withGCC,$host_os in
18167   yes,cygwin* | yes,mingw* | yes,pw32*)
18168     library_names_spec='$libname.dll.a'
18169     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18170     postinstall_cmds='base_file=`basename \${file}`~
18171       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18172       dldir=$destdir/`dirname \$dlpath`~
18173       test -d \$dldir || mkdir -p \$dldir~
18174       $install_prog $dir/$dlname \$dldir/$dlname~
18175       chmod a+x \$dldir/$dlname~
18176       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18177         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18178       fi'
18179     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18180       dlpath=$dir/\$dldll~
18181        $RM \$dlpath'
18182     shlibpath_overrides_runpath=yes
18183
18184     case $host_os in
18185     cygwin*)
18186       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18187       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18188       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18189       ;;
18190     mingw*)
18191       # MinGW DLLs use traditional 'lib' prefix
18192       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18193       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18194       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18195         # It is most probably a Windows format PATH printed by
18196         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18197         # path with ; separators, and with drive letters. We can handle the
18198         # drive letters (cygwin fileutils understands them), so leave them,
18199         # especially as we might pass files found there to a mingw objdump,
18200         # which wouldn't understand a cygwinified path. Ahh.
18201         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18202       else
18203         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18204       fi
18205       ;;
18206     pw32*)
18207       # pw32 DLLs use 'pw' prefix rather than 'lib'
18208       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18209       ;;
18210     esac
18211     ;;
18212
18213   *)
18214     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18215     ;;
18216   esac
18217   dynamic_linker='Win32 ld.exe'
18218   # FIXME: first we should search . and the directory the executable is in
18219   shlibpath_var=PATH
18220   ;;
18221
18222 darwin* | rhapsody*)
18223   dynamic_linker="$host_os dyld"
18224   version_type=darwin
18225   need_lib_prefix=no
18226   need_version=no
18227   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18228   soname_spec='${libname}${release}${major}$shared_ext'
18229   shlibpath_overrides_runpath=yes
18230   shlibpath_var=DYLD_LIBRARY_PATH
18231   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18232
18233   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18234   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18235   ;;
18236
18237 dgux*)
18238   version_type=linux
18239   need_lib_prefix=no
18240   need_version=no
18241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18242   soname_spec='${libname}${release}${shared_ext}$major'
18243   shlibpath_var=LD_LIBRARY_PATH
18244   ;;
18245
18246 freebsd1*)
18247   dynamic_linker=no
18248   ;;
18249
18250 freebsd* | dragonfly*)
18251   # DragonFly does not have aout.  When/if they implement a new
18252   # versioning mechanism, adjust this.
18253   if test -x /usr/bin/objformat; then
18254     objformat=`/usr/bin/objformat`
18255   else
18256     case $host_os in
18257     freebsd[123]*) objformat=aout ;;
18258     *) objformat=elf ;;
18259     esac
18260   fi
18261   version_type=freebsd-$objformat
18262   case $version_type in
18263     freebsd-elf*)
18264       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18265       need_version=no
18266       need_lib_prefix=no
18267       ;;
18268     freebsd-*)
18269       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18270       need_version=yes
18271       ;;
18272   esac
18273   shlibpath_var=LD_LIBRARY_PATH
18274   case $host_os in
18275   freebsd2*)
18276     shlibpath_overrides_runpath=yes
18277     ;;
18278   freebsd3.[01]* | freebsdelf3.[01]*)
18279     shlibpath_overrides_runpath=yes
18280     hardcode_into_libs=yes
18281     ;;
18282   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18283   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18284     shlibpath_overrides_runpath=no
18285     hardcode_into_libs=yes
18286     ;;
18287   *) # from 4.6 on, and DragonFly
18288     shlibpath_overrides_runpath=yes
18289     hardcode_into_libs=yes
18290     ;;
18291   esac
18292   ;;
18293
18294 gnu*)
18295   version_type=linux
18296   need_lib_prefix=no
18297   need_version=no
18298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18299   soname_spec='${libname}${release}${shared_ext}$major'
18300   shlibpath_var=LD_LIBRARY_PATH
18301   hardcode_into_libs=yes
18302   ;;
18303
18304 hpux9* | hpux10* | hpux11*)
18305   # Give a soname corresponding to the major version so that dld.sl refuses to
18306   # link against other versions.
18307   version_type=sunos
18308   need_lib_prefix=no
18309   need_version=no
18310   case $host_cpu in
18311   ia64*)
18312     shrext_cmds='.so'
18313     hardcode_into_libs=yes
18314     dynamic_linker="$host_os dld.so"
18315     shlibpath_var=LD_LIBRARY_PATH
18316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318     soname_spec='${libname}${release}${shared_ext}$major'
18319     if test "X$HPUX_IA64_MODE" = X32; then
18320       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18321     else
18322       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18323     fi
18324     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18325     ;;
18326   hppa*64*)
18327     shrext_cmds='.sl'
18328     hardcode_into_libs=yes
18329     dynamic_linker="$host_os dld.sl"
18330     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18331     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18333     soname_spec='${libname}${release}${shared_ext}$major'
18334     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18335     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18336     ;;
18337   *)
18338     shrext_cmds='.sl'
18339     dynamic_linker="$host_os dld.sl"
18340     shlibpath_var=SHLIB_PATH
18341     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343     soname_spec='${libname}${release}${shared_ext}$major'
18344     ;;
18345   esac
18346   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18347   postinstall_cmds='chmod 555 $lib'
18348   ;;
18349
18350 interix[3-9]*)
18351   version_type=linux
18352   need_lib_prefix=no
18353   need_version=no
18354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18355   soname_spec='${libname}${release}${shared_ext}$major'
18356   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18357   shlibpath_var=LD_LIBRARY_PATH
18358   shlibpath_overrides_runpath=no
18359   hardcode_into_libs=yes
18360   ;;
18361
18362 irix5* | irix6* | nonstopux*)
18363   case $host_os in
18364     nonstopux*) version_type=nonstopux ;;
18365     *)
18366         if test "$lt_cv_prog_gnu_ld" = yes; then
18367                 version_type=linux
18368         else
18369                 version_type=irix
18370         fi ;;
18371   esac
18372   need_lib_prefix=no
18373   need_version=no
18374   soname_spec='${libname}${release}${shared_ext}$major'
18375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18376   case $host_os in
18377   irix5* | nonstopux*)
18378     libsuff= shlibsuff=
18379     ;;
18380   *)
18381     case $LD in # libtool.m4 will add one of these switches to LD
18382     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18383       libsuff= shlibsuff= libmagic=32-bit;;
18384     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18385       libsuff=32 shlibsuff=N32 libmagic=N32;;
18386     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18387       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18388     *) libsuff= shlibsuff= libmagic=never-match;;
18389     esac
18390     ;;
18391   esac
18392   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18393   shlibpath_overrides_runpath=no
18394   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18395   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18396   hardcode_into_libs=yes
18397   ;;
18398
18399 # No shared lib support for Linux oldld, aout, or coff.
18400 linux*oldld* | linux*aout* | linux*coff*)
18401   dynamic_linker=no
18402   ;;
18403
18404 # This must be Linux ELF.
18405 linux* | k*bsd*-gnu)
18406   version_type=linux
18407   need_lib_prefix=no
18408   need_version=no
18409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18410   soname_spec='${libname}${release}${shared_ext}$major'
18411   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18412   shlibpath_var=LD_LIBRARY_PATH
18413   shlibpath_overrides_runpath=no
18414   # Some binutils ld are patched to set DT_RUNPATH
18415   save_LDFLAGS=$LDFLAGS
18416   save_libdir=$libdir
18417   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18418        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18419   cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h.  */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h.  */
18425
18426 int
18427 main ()
18428 {
18429
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18436   (eval $ac_link) 2>conftest.er1
18437   ac_status=$?
18438   grep -v '^ *+' conftest.er1 >conftest.err
18439   rm -f conftest.er1
18440   cat conftest.err >&5
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } &&
18443          { ac_try='test -z "$ac_c_werror_flag"
18444                          || test ! -s conftest.err'
18445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446   (eval $ac_try) 2>&5
18447   ac_status=$?
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); }; } &&
18450          { ac_try='test -s conftest$ac_exeext'
18451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452   (eval $ac_try) 2>&5
18453   ac_status=$?
18454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455   (exit $ac_status); }; }; then
18456   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18457   shlibpath_overrides_runpath=yes
18458 fi
18459
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 fi
18465 rm -f conftest.err conftest.$ac_objext \
18466       conftest$ac_exeext conftest.$ac_ext
18467   LDFLAGS=$save_LDFLAGS
18468   libdir=$save_libdir
18469
18470   # This implies no fast_install, which is unacceptable.
18471   # Some rework will be needed to allow for fast_install
18472   # before this can be enabled.
18473   hardcode_into_libs=yes
18474
18475   # Append ld.so.conf contents to the search path
18476   if test -f /etc/ld.so.conf; then
18477     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18478     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18479   fi
18480
18481   # We used to test for /lib/ld.so.1 and disable shared libraries on
18482   # powerpc, because MkLinux only supported shared libraries with the
18483   # GNU dynamic linker.  Since this was broken with cross compilers,
18484   # most powerpc-linux boxes support dynamic linking these days and
18485   # people can always --disable-shared, the test was removed, and we
18486   # assume the GNU/Linux dynamic linker is in use.
18487   dynamic_linker='GNU/Linux ld.so'
18488   ;;
18489
18490 netbsd*)
18491   version_type=sunos
18492   need_lib_prefix=no
18493   need_version=no
18494   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18496     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18497     dynamic_linker='NetBSD (a.out) ld.so'
18498   else
18499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18500     soname_spec='${libname}${release}${shared_ext}$major'
18501     dynamic_linker='NetBSD ld.elf_so'
18502   fi
18503   shlibpath_var=LD_LIBRARY_PATH
18504   shlibpath_overrides_runpath=yes
18505   hardcode_into_libs=yes
18506   ;;
18507
18508 newsos6)
18509   version_type=linux
18510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18511   shlibpath_var=LD_LIBRARY_PATH
18512   shlibpath_overrides_runpath=yes
18513   ;;
18514
18515 *nto* | *qnx*)
18516   version_type=qnx
18517   need_lib_prefix=no
18518   need_version=no
18519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520   soname_spec='${libname}${release}${shared_ext}$major'
18521   shlibpath_var=LD_LIBRARY_PATH
18522   shlibpath_overrides_runpath=no
18523   hardcode_into_libs=yes
18524   dynamic_linker='ldqnx.so'
18525   ;;
18526
18527 openbsd*)
18528   version_type=sunos
18529   sys_lib_dlsearch_path_spec="/usr/lib"
18530   need_lib_prefix=no
18531   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18532   case $host_os in
18533     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18534     *)                          need_version=no  ;;
18535   esac
18536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18537   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18538   shlibpath_var=LD_LIBRARY_PATH
18539   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18540     case $host_os in
18541       openbsd2.[89] | openbsd2.[89].*)
18542         shlibpath_overrides_runpath=no
18543         ;;
18544       *)
18545         shlibpath_overrides_runpath=yes
18546         ;;
18547       esac
18548   else
18549     shlibpath_overrides_runpath=yes
18550   fi
18551   ;;
18552
18553 os2*)
18554   libname_spec='$name'
18555   shrext_cmds=".dll"
18556   need_lib_prefix=no
18557   library_names_spec='$libname${shared_ext} $libname.a'
18558   dynamic_linker='OS/2 ld.exe'
18559   shlibpath_var=LIBPATH
18560   ;;
18561
18562 osf3* | osf4* | osf5*)
18563   version_type=osf
18564   need_lib_prefix=no
18565   need_version=no
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568   shlibpath_var=LD_LIBRARY_PATH
18569   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18570   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18571   ;;
18572
18573 rdos*)
18574   dynamic_linker=no
18575   ;;
18576
18577 solaris*)
18578   version_type=linux
18579   need_lib_prefix=no
18580   need_version=no
18581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582   soname_spec='${libname}${release}${shared_ext}$major'
18583   shlibpath_var=LD_LIBRARY_PATH
18584   shlibpath_overrides_runpath=yes
18585   hardcode_into_libs=yes
18586   # ldd complains unless libraries are executable
18587   postinstall_cmds='chmod +x $lib'
18588   ;;
18589
18590 sunos4*)
18591   version_type=sunos
18592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18593   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18594   shlibpath_var=LD_LIBRARY_PATH
18595   shlibpath_overrides_runpath=yes
18596   if test "$with_gnu_ld" = yes; then
18597     need_lib_prefix=no
18598   fi
18599   need_version=yes
18600   ;;
18601
18602 sysv4 | sysv4.3*)
18603   version_type=linux
18604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605   soname_spec='${libname}${release}${shared_ext}$major'
18606   shlibpath_var=LD_LIBRARY_PATH
18607   case $host_vendor in
18608     sni)
18609       shlibpath_overrides_runpath=no
18610       need_lib_prefix=no
18611       runpath_var=LD_RUN_PATH
18612       ;;
18613     siemens)
18614       need_lib_prefix=no
18615       ;;
18616     motorola)
18617       need_lib_prefix=no
18618       need_version=no
18619       shlibpath_overrides_runpath=no
18620       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18621       ;;
18622   esac
18623   ;;
18624
18625 sysv4*MP*)
18626   if test -d /usr/nec ;then
18627     version_type=linux
18628     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18629     soname_spec='$libname${shared_ext}.$major'
18630     shlibpath_var=LD_LIBRARY_PATH
18631   fi
18632   ;;
18633
18634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18635   version_type=freebsd-elf
18636   need_lib_prefix=no
18637   need_version=no
18638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18639   soname_spec='${libname}${release}${shared_ext}$major'
18640   shlibpath_var=LD_LIBRARY_PATH
18641   shlibpath_overrides_runpath=yes
18642   hardcode_into_libs=yes
18643   if test "$with_gnu_ld" = yes; then
18644     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18645   else
18646     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18647     case $host_os in
18648       sco3.2v5*)
18649         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18650         ;;
18651     esac
18652   fi
18653   sys_lib_dlsearch_path_spec='/usr/lib'
18654   ;;
18655
18656 tpf*)
18657   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18658   version_type=linux
18659   need_lib_prefix=no
18660   need_version=no
18661   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18662   shlibpath_var=LD_LIBRARY_PATH
18663   shlibpath_overrides_runpath=no
18664   hardcode_into_libs=yes
18665   ;;
18666
18667 uts4*)
18668   version_type=linux
18669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18670   soname_spec='${libname}${release}${shared_ext}$major'
18671   shlibpath_var=LD_LIBRARY_PATH
18672   ;;
18673
18674 *)
18675   dynamic_linker=no
18676   ;;
18677 esac
18678 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18679 echo "${ECHO_T}$dynamic_linker" >&6
18680 test "$dynamic_linker" = no && can_build_shared=no
18681
18682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18683 if test "$GCC" = yes; then
18684   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18685 fi
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18774 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18775 hardcode_action=
18776 if test -n "$hardcode_libdir_flag_spec" ||
18777    test -n "$runpath_var" ||
18778    test "X$hardcode_automatic" = "Xyes" ; then
18779
18780   # We can hardcode non-existent directories.
18781   if test "$hardcode_direct" != no &&
18782      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18783      # have to relink, otherwise we might link with an installed library
18784      # when we should be linking with a yet-to-be-installed one
18785      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18786      test "$hardcode_minus_L" != no; then
18787     # Linking always hardcodes the temporary library directory.
18788     hardcode_action=relink
18789   else
18790     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18791     hardcode_action=immediate
18792   fi
18793 else
18794   # We cannot hardcode anything, or else we can only hardcode existing
18795   # directories.
18796   hardcode_action=unsupported
18797 fi
18798 echo "$as_me:$LINENO: result: $hardcode_action" >&5
18799 echo "${ECHO_T}$hardcode_action" >&6
18800
18801 if test "$hardcode_action" = relink ||
18802    test "$inherit_rpath" = yes; then
18803   # Fast installation is not supported
18804   enable_fast_install=no
18805 elif test "$shlibpath_overrides_runpath" = yes ||
18806      test "$enable_shared" = no; then
18807   # Fast installation is not necessary
18808   enable_fast_install=needless
18809 fi
18810
18811
18812
18813
18814
18815
18816   if test "x$enable_dlopen" != xyes; then
18817   enable_dlopen=unknown
18818   enable_dlopen_self=unknown
18819   enable_dlopen_self_static=unknown
18820 else
18821   lt_cv_dlopen=no
18822   lt_cv_dlopen_libs=
18823
18824   case $host_os in
18825   beos*)
18826     lt_cv_dlopen="load_add_on"
18827     lt_cv_dlopen_libs=
18828     lt_cv_dlopen_self=yes
18829     ;;
18830
18831   mingw* | pw32*)
18832     lt_cv_dlopen="LoadLibrary"
18833     lt_cv_dlopen_libs=
18834     ;;
18835
18836   cygwin*)
18837     lt_cv_dlopen="dlopen"
18838     lt_cv_dlopen_libs=
18839     ;;
18840
18841   darwin*)
18842   # if libdl is installed we need to link against it
18843     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18846   echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848   ac_check_lib_save_LIBS=$LIBS
18849 LIBS="-ldl  $LIBS"
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h.  */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h.  */
18856
18857 /* Override any gcc2 internal prototype to avoid an error.  */
18858 #ifdef __cplusplus
18859 extern "C"
18860 #endif
18861 /* We use char because int might match the return type of a gcc2
18862    builtin and then its argument prototype would still apply.  */
18863 char dlopen ();
18864 int
18865 main ()
18866 {
18867 dlopen ();
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18874   (eval $ac_link) 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } &&
18881          { ac_try='test -z "$ac_c_werror_flag"
18882                          || test ! -s conftest.err'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; } &&
18888          { ac_try='test -s conftest$ac_exeext'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; }; then
18894   ac_cv_lib_dl_dlopen=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_dl_dlopen=no
18900 fi
18901 rm -f conftest.err conftest.$ac_objext \
18902       conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18904 fi
18905 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18907 if test $ac_cv_lib_dl_dlopen = yes; then
18908   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18909 else
18910
18911     lt_cv_dlopen="dyld"
18912     lt_cv_dlopen_libs=
18913     lt_cv_dlopen_self=yes
18914
18915 fi
18916
18917     ;;
18918
18919   *)
18920     echo "$as_me:$LINENO: checking for shl_load" >&5
18921 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18922 if test "${ac_cv_func_shl_load+set}" = set; then
18923   echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925   cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18933 #define shl_load innocuous_shl_load
18934
18935 /* System header to define __stub macros and hopefully few prototypes,
18936     which can conflict with char shl_load (); below.
18937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18938     <limits.h> exists even on freestanding compilers.  */
18939
18940 #ifdef __STDC__
18941 # include <limits.h>
18942 #else
18943 # include <assert.h>
18944 #endif
18945
18946 #undef shl_load
18947
18948 /* Override any gcc2 internal prototype to avoid an error.  */
18949 #ifdef __cplusplus
18950 extern "C"
18951 {
18952 #endif
18953 /* We use char because int might match the return type of a gcc2
18954    builtin and then its argument prototype would still apply.  */
18955 char shl_load ();
18956 /* The GNU C library defines this for functions which it implements
18957     to always fail with ENOSYS.  Some functions are actually named
18958     something starting with __ and the normal name is an alias.  */
18959 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18960 choke me
18961 #else
18962 char (*f) () = shl_load;
18963 #endif
18964 #ifdef __cplusplus
18965 }
18966 #endif
18967
18968 int
18969 main ()
18970 {
18971 return f != shl_load;
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18978   (eval $ac_link) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } &&
18985          { ac_try='test -z "$ac_c_werror_flag"
18986                          || test ! -s conftest.err'
18987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988   (eval $ac_try) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; } &&
18992          { ac_try='test -s conftest$ac_exeext'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; }; then
18998   ac_cv_func_shl_load=yes
18999 else
19000   echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19002
19003 ac_cv_func_shl_load=no
19004 fi
19005 rm -f conftest.err conftest.$ac_objext \
19006       conftest$ac_exeext conftest.$ac_ext
19007 fi
19008 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19009 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19010 if test $ac_cv_func_shl_load = yes; then
19011   lt_cv_dlopen="shl_load"
19012 else
19013   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19014 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19015 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19016   echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018   ac_check_lib_save_LIBS=$LIBS
19019 LIBS="-ldld  $LIBS"
19020 cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026
19027 /* Override any gcc2 internal prototype to avoid an error.  */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 /* We use char because int might match the return type of a gcc2
19032    builtin and then its argument prototype would still apply.  */
19033 char shl_load ();
19034 int
19035 main ()
19036 {
19037 shl_load ();
19038   ;
19039   return 0;
19040 }
19041 _ACEOF
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19044   (eval $ac_link) 2>conftest.er1
19045   ac_status=$?
19046   grep -v '^ *+' conftest.er1 >conftest.err
19047   rm -f conftest.er1
19048   cat conftest.err >&5
19049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050   (exit $ac_status); } &&
19051          { ac_try='test -z "$ac_c_werror_flag"
19052                          || test ! -s conftest.err'
19053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054   (eval $ac_try) 2>&5
19055   ac_status=$?
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); }; } &&
19058          { ac_try='test -s conftest$ac_exeext'
19059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060   (eval $ac_try) 2>&5
19061   ac_status=$?
19062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; }; then
19064   ac_cv_lib_dld_shl_load=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 ac_cv_lib_dld_shl_load=no
19070 fi
19071 rm -f conftest.err conftest.$ac_objext \
19072       conftest$ac_exeext conftest.$ac_ext
19073 LIBS=$ac_check_lib_save_LIBS
19074 fi
19075 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19076 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19077 if test $ac_cv_lib_dld_shl_load = yes; then
19078   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19079 else
19080   echo "$as_me:$LINENO: checking for dlopen" >&5
19081 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19082 if test "${ac_cv_func_dlopen+set}" = set; then
19083   echo $ECHO_N "(cached) $ECHO_C" >&6
19084 else
19085   cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19093 #define dlopen innocuous_dlopen
19094
19095 /* System header to define __stub macros and hopefully few prototypes,
19096     which can conflict with char dlopen (); below.
19097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19098     <limits.h> exists even on freestanding compilers.  */
19099
19100 #ifdef __STDC__
19101 # include <limits.h>
19102 #else
19103 # include <assert.h>
19104 #endif
19105
19106 #undef dlopen
19107
19108 /* Override any gcc2 internal prototype to avoid an error.  */
19109 #ifdef __cplusplus
19110 extern "C"
19111 {
19112 #endif
19113 /* We use char because int might match the return type of a gcc2
19114    builtin and then its argument prototype would still apply.  */
19115 char dlopen ();
19116 /* The GNU C library defines this for functions which it implements
19117     to always fail with ENOSYS.  Some functions are actually named
19118     something starting with __ and the normal name is an alias.  */
19119 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19120 choke me
19121 #else
19122 char (*f) () = dlopen;
19123 #endif
19124 #ifdef __cplusplus
19125 }
19126 #endif
19127
19128 int
19129 main ()
19130 {
19131 return f != dlopen;
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19138   (eval $ac_link) 2>conftest.er1
19139   ac_status=$?
19140   grep -v '^ *+' conftest.er1 >conftest.err
19141   rm -f conftest.er1
19142   cat conftest.err >&5
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } &&
19145          { ac_try='test -z "$ac_c_werror_flag"
19146                          || test ! -s conftest.err'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; } &&
19152          { ac_try='test -s conftest$ac_exeext'
19153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154   (eval $ac_try) 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   ac_cv_func_dlopen=yes
19159 else
19160   echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_cv_func_dlopen=no
19164 fi
19165 rm -f conftest.err conftest.$ac_objext \
19166       conftest$ac_exeext conftest.$ac_ext
19167 fi
19168 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19169 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19170 if test $ac_cv_func_dlopen = yes; then
19171   lt_cv_dlopen="dlopen"
19172 else
19173   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19174 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178   ac_check_lib_save_LIBS=$LIBS
19179 LIBS="-ldl  $LIBS"
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h.  */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h.  */
19186
19187 /* Override any gcc2 internal prototype to avoid an error.  */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 /* We use char because int might match the return type of a gcc2
19192    builtin and then its argument prototype would still apply.  */
19193 char dlopen ();
19194 int
19195 main ()
19196 {
19197 dlopen ();
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext conftest$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204   (eval $ac_link) 2>conftest.er1
19205   ac_status=$?
19206   grep -v '^ *+' conftest.er1 >conftest.err
19207   rm -f conftest.er1
19208   cat conftest.err >&5
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } &&
19211          { ac_try='test -z "$ac_c_werror_flag"
19212                          || test ! -s conftest.err'
19213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214   (eval $ac_try) 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; } &&
19218          { ac_try='test -s conftest$ac_exeext'
19219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220   (eval $ac_try) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; }; then
19224   ac_cv_lib_dl_dlopen=yes
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_cv_lib_dl_dlopen=no
19230 fi
19231 rm -f conftest.err conftest.$ac_objext \
19232       conftest$ac_exeext conftest.$ac_ext
19233 LIBS=$ac_check_lib_save_LIBS
19234 fi
19235 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19237 if test $ac_cv_lib_dl_dlopen = yes; then
19238   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19239 else
19240   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19241 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19242 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19243   echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245   ac_check_lib_save_LIBS=$LIBS
19246 LIBS="-lsvld  $LIBS"
19247 cat >conftest.$ac_ext <<_ACEOF
19248 /* confdefs.h.  */
19249 _ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h.  */
19253
19254 /* Override any gcc2 internal prototype to avoid an error.  */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 /* We use char because int might match the return type of a gcc2
19259    builtin and then its argument prototype would still apply.  */
19260 char dlopen ();
19261 int
19262 main ()
19263 {
19264 dlopen ();
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19271   (eval $ac_link) 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } &&
19278          { ac_try='test -z "$ac_c_werror_flag"
19279                          || test ! -s conftest.err'
19280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19281   (eval $ac_try) 2>&5
19282   ac_status=$?
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); }; } &&
19285          { ac_try='test -s conftest$ac_exeext'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; }; then
19291   ac_cv_lib_svld_dlopen=yes
19292 else
19293   echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 ac_cv_lib_svld_dlopen=no
19297 fi
19298 rm -f conftest.err conftest.$ac_objext \
19299       conftest$ac_exeext conftest.$ac_ext
19300 LIBS=$ac_check_lib_save_LIBS
19301 fi
19302 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19303 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19304 if test $ac_cv_lib_svld_dlopen = yes; then
19305   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19306 else
19307   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19308 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   ac_check_lib_save_LIBS=$LIBS
19313 LIBS="-ldld  $LIBS"
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320
19321 /* Override any gcc2 internal prototype to avoid an error.  */
19322 #ifdef __cplusplus
19323 extern "C"
19324 #endif
19325 /* We use char because int might match the return type of a gcc2
19326    builtin and then its argument prototype would still apply.  */
19327 char dld_link ();
19328 int
19329 main ()
19330 {
19331 dld_link ();
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19338   (eval $ac_link) 2>conftest.er1
19339   ac_status=$?
19340   grep -v '^ *+' conftest.er1 >conftest.err
19341   rm -f conftest.er1
19342   cat conftest.err >&5
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); } &&
19345          { ac_try='test -z "$ac_c_werror_flag"
19346                          || test ! -s conftest.err'
19347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348   (eval $ac_try) 2>&5
19349   ac_status=$?
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); }; } &&
19352          { ac_try='test -s conftest$ac_exeext'
19353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354   (eval $ac_try) 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_lib_dld_dld_link=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 ac_cv_lib_dld_dld_link=no
19364 fi
19365 rm -f conftest.err conftest.$ac_objext \
19366       conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19368 fi
19369 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19370 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19371 if test $ac_cv_lib_dld_dld_link = yes; then
19372   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19373 fi
19374
19375
19376 fi
19377
19378
19379 fi
19380
19381
19382 fi
19383
19384
19385 fi
19386
19387
19388 fi
19389
19390     ;;
19391   esac
19392
19393   if test "x$lt_cv_dlopen" != xno; then
19394     enable_dlopen=yes
19395   else
19396     enable_dlopen=no
19397   fi
19398
19399   case $lt_cv_dlopen in
19400   dlopen)
19401     save_CPPFLAGS="$CPPFLAGS"
19402     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19403
19404     save_LDFLAGS="$LDFLAGS"
19405     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19406
19407     save_LIBS="$LIBS"
19408     LIBS="$lt_cv_dlopen_libs $LIBS"
19409
19410     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19411 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19412 if test "${lt_cv_dlopen_self+set}" = set; then
19413   echo $ECHO_N "(cached) $ECHO_C" >&6
19414 else
19415           if test "$cross_compiling" = yes; then :
19416   lt_cv_dlopen_self=cross
19417 else
19418   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19419   lt_status=$lt_dlunknown
19420   cat > conftest.$ac_ext <<_LT_EOF
19421 #line 19421 "configure"
19422 #include "confdefs.h"
19423
19424 #if HAVE_DLFCN_H
19425 #include <dlfcn.h>
19426 #endif
19427
19428 #include <stdio.h>
19429
19430 #ifdef RTLD_GLOBAL
19431 #  define LT_DLGLOBAL           RTLD_GLOBAL
19432 #else
19433 #  ifdef DL_GLOBAL
19434 #    define LT_DLGLOBAL         DL_GLOBAL
19435 #  else
19436 #    define LT_DLGLOBAL         0
19437 #  endif
19438 #endif
19439
19440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19441    find out it does not work in some platform. */
19442 #ifndef LT_DLLAZY_OR_NOW
19443 #  ifdef RTLD_LAZY
19444 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19445 #  else
19446 #    ifdef DL_LAZY
19447 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19448 #    else
19449 #      ifdef RTLD_NOW
19450 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19451 #      else
19452 #        ifdef DL_NOW
19453 #          define LT_DLLAZY_OR_NOW      DL_NOW
19454 #        else
19455 #          define LT_DLLAZY_OR_NOW      0
19456 #        endif
19457 #      endif
19458 #    endif
19459 #  endif
19460 #endif
19461
19462 #ifdef __cplusplus
19463 extern "C" void exit (int);
19464 #endif
19465
19466 void fnord() { int i=42;}
19467 int main ()
19468 {
19469   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19470   int status = $lt_dlunknown;
19471
19472   if (self)
19473     {
19474       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19475       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19476       /* dlclose (self); */
19477     }
19478   else
19479     puts (dlerror ());
19480
19481     exit (status);
19482 }
19483 _LT_EOF
19484   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19485   (eval $ac_link) 2>&5
19486   ac_status=$?
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19489     (./conftest; exit; ) >&5 2>/dev/null
19490     lt_status=$?
19491     case x$lt_status in
19492       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19493       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19494       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19495     esac
19496   else :
19497     # compilation failed
19498     lt_cv_dlopen_self=no
19499   fi
19500 fi
19501 rm -fr conftest*
19502
19503
19504 fi
19505 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19506 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19507
19508     if test "x$lt_cv_dlopen_self" = xyes; then
19509       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19510       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19511 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19512 if test "${lt_cv_dlopen_self_static+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515           if test "$cross_compiling" = yes; then :
19516   lt_cv_dlopen_self_static=cross
19517 else
19518   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19519   lt_status=$lt_dlunknown
19520   cat > conftest.$ac_ext <<_LT_EOF
19521 #line 19521 "configure"
19522 #include "confdefs.h"
19523
19524 #if HAVE_DLFCN_H
19525 #include <dlfcn.h>
19526 #endif
19527
19528 #include <stdio.h>
19529
19530 #ifdef RTLD_GLOBAL
19531 #  define LT_DLGLOBAL           RTLD_GLOBAL
19532 #else
19533 #  ifdef DL_GLOBAL
19534 #    define LT_DLGLOBAL         DL_GLOBAL
19535 #  else
19536 #    define LT_DLGLOBAL         0
19537 #  endif
19538 #endif
19539
19540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19541    find out it does not work in some platform. */
19542 #ifndef LT_DLLAZY_OR_NOW
19543 #  ifdef RTLD_LAZY
19544 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19545 #  else
19546 #    ifdef DL_LAZY
19547 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19548 #    else
19549 #      ifdef RTLD_NOW
19550 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19551 #      else
19552 #        ifdef DL_NOW
19553 #          define LT_DLLAZY_OR_NOW      DL_NOW
19554 #        else
19555 #          define LT_DLLAZY_OR_NOW      0
19556 #        endif
19557 #      endif
19558 #    endif
19559 #  endif
19560 #endif
19561
19562 #ifdef __cplusplus
19563 extern "C" void exit (int);
19564 #endif
19565
19566 void fnord() { int i=42;}
19567 int main ()
19568 {
19569   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19570   int status = $lt_dlunknown;
19571
19572   if (self)
19573     {
19574       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19575       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19576       /* dlclose (self); */
19577     }
19578   else
19579     puts (dlerror ());
19580
19581     exit (status);
19582 }
19583 _LT_EOF
19584   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585   (eval $ac_link) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19589     (./conftest; exit; ) >&5 2>/dev/null
19590     lt_status=$?
19591     case x$lt_status in
19592       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19593       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19594       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19595     esac
19596   else :
19597     # compilation failed
19598     lt_cv_dlopen_self_static=no
19599   fi
19600 fi
19601 rm -fr conftest*
19602
19603
19604 fi
19605 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19606 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19607     fi
19608
19609     CPPFLAGS="$save_CPPFLAGS"
19610     LDFLAGS="$save_LDFLAGS"
19611     LIBS="$save_LIBS"
19612     ;;
19613   esac
19614
19615   case $lt_cv_dlopen_self in
19616   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19617   *) enable_dlopen_self=unknown ;;
19618   esac
19619
19620   case $lt_cv_dlopen_self_static in
19621   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19622   *) enable_dlopen_self_static=unknown ;;
19623   esac
19624 fi
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642 striplib=
19643 old_striplib=
19644 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19645 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19647   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19648   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19649   echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6
19651 else
19652 # FIXME - insert some real tests, host_os isn't really good enough
19653   case $host_os in
19654   darwin*)
19655     if test -n "$STRIP" ; then
19656       striplib="$STRIP -x"
19657       old_striplib="$STRIP -S"
19658       echo "$as_me:$LINENO: result: yes" >&5
19659 echo "${ECHO_T}yes" >&6
19660     else
19661       echo "$as_me:$LINENO: result: no" >&5
19662 echo "${ECHO_T}no" >&6
19663     fi
19664     ;;
19665   *)
19666     echo "$as_me:$LINENO: result: no" >&5
19667 echo "${ECHO_T}no" >&6
19668     ;;
19669   esac
19670 fi
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683   # Report which library types will actually be built
19684   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19685 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19686   echo "$as_me:$LINENO: result: $can_build_shared" >&5
19687 echo "${ECHO_T}$can_build_shared" >&6
19688
19689   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19690 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19691   test "$can_build_shared" = "no" && enable_shared=no
19692
19693   # On AIX, shared libraries and static libraries use the same namespace, and
19694   # are all built from PIC.
19695   case $host_os in
19696   aix3*)
19697     test "$enable_shared" = yes && enable_static=no
19698     if test -n "$RANLIB"; then
19699       archive_cmds="$archive_cmds~\$RANLIB \$lib"
19700       postinstall_cmds='$RANLIB $lib'
19701     fi
19702     ;;
19703
19704   aix[4-9]*)
19705     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19706       test "$enable_shared" = yes && enable_static=no
19707     fi
19708     ;;
19709   esac
19710   echo "$as_me:$LINENO: result: $enable_shared" >&5
19711 echo "${ECHO_T}$enable_shared" >&6
19712
19713   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19714 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19715   # Make sure either enable_shared or enable_static is yes.
19716   test "$enable_shared" = yes || enable_static=yes
19717   echo "$as_me:$LINENO: result: $enable_static" >&5
19718 echo "${ECHO_T}$enable_static" >&6
19719
19720
19721
19722
19723 fi
19724 ac_ext=c
19725 ac_cpp='$CPP $CPPFLAGS'
19726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19729
19730 CC="$lt_save_CC"
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747 # Only expand once:
19748
19749
19750
19751
19752
19753 # Identify the assembler which will work hand-in-glove with the newly
19754 # built GCC, so that we can examine its features.  This is the assembler
19755 # which will be driven by the driver program.
19756 #
19757 # If build != host, and we aren't building gas in-tree, we identify a
19758 # build->target assembler and hope that it will have the same features
19759 # as the host->target assembler we'll be using.
19760 gcc_cv_gas_major_version=
19761 gcc_cv_gas_minor_version=
19762 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
19763
19764 if test "${gcc_cv_as+set}" = set; then
19765   :
19766 else
19767
19768 if test -x "$DEFAULT_ASSEMBLER"; then
19769         gcc_cv_as="$DEFAULT_ASSEMBLER"
19770 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
19771      && test -f ../gas/Makefile \
19772      && test x$build = x$host; then
19773         gcc_cv_as=../gas/as-new$build_exeext
19774 elif test -x as$build_exeext; then
19775         # Build using assembler in the current directory.
19776         gcc_cv_as=./as$build_exeext
19777 elif test -x $AS_FOR_TARGET; then
19778         gcc_cv_as="$AS_FOR_TARGET"
19779 else
19780         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
19781 set dummy $AS_FOR_TARGET; ac_word=$2
19782 echo "$as_me:$LINENO: checking for $ac_word" >&5
19783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19784 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   case $gcc_cv_as in
19788   [\\/]* | ?:[\\/]*)
19789   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
19790   ;;
19791   *)
19792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19793 for as_dir in $PATH
19794 do
19795   IFS=$as_save_IFS
19796   test -z "$as_dir" && as_dir=.
19797   for ac_exec_ext in '' $ac_executable_extensions; do
19798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19799     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
19800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19801     break 2
19802   fi
19803 done
19804 done
19805
19806   ;;
19807 esac
19808 fi
19809 gcc_cv_as=$ac_cv_path_gcc_cv_as
19810
19811 if test -n "$gcc_cv_as"; then
19812   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19813 echo "${ECHO_T}$gcc_cv_as" >&6
19814 else
19815   echo "$as_me:$LINENO: result: no" >&5
19816 echo "${ECHO_T}no" >&6
19817 fi
19818
19819 fi
19820 fi
19821
19822
19823 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
19824
19825 case "$ORIGINAL_AS_FOR_TARGET" in
19826   ./as | ./as$build_exeext) ;;
19827   *)           ac_config_files="$ac_config_files as:exec-tool.in"
19828  ;;
19829 esac
19830
19831 echo "$as_me:$LINENO: checking what assembler to use" >&5
19832 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
19833 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
19834   # Single tree build which includes gas.  We want to prefer it
19835   # over whatever linker top-level may have detected, since
19836   # we'll use what we're building after installation anyway.
19837   echo "$as_me:$LINENO: result: newly built gas" >&5
19838 echo "${ECHO_T}newly built gas" >&6
19839   in_tree_gas=yes
19840   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19841 for f in $gcc_cv_as_bfd_srcdir/configure \
19842          $gcc_cv_as_gas_srcdir/configure \
19843          $gcc_cv_as_gas_srcdir/configure.in \
19844          $gcc_cv_as_gas_srcdir/Makefile.in ; do
19845   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19846   if test x$gcc_cv_gas_version != x; then
19847     break
19848   fi
19849 done
19850 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
19851 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19852 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
19853 case $gcc_cv_gas_patch_version in
19854   "") gcc_cv_gas_patch_version="0" ;;
19855 esac
19856 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
19857                             + $gcc_cv_gas_minor_version \) \* 1000 \
19858                             + $gcc_cv_gas_patch_version`
19859
19860   in_tree_gas_is_elf=no
19861   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
19862      || (grep 'obj_format = multi' ../gas/Makefile \
19863          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
19864   then
19865     in_tree_gas_is_elf=yes
19866   fi
19867 else
19868   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
19869 echo "${ECHO_T}$gcc_cv_as" >&6
19870   in_tree_gas=no
19871 fi
19872
19873 # Identify the linker which will work hand-in-glove with the newly
19874 # built GCC, so that we can examine its features.  This is the linker
19875 # which will be driven by the driver program.
19876 #
19877 # If build != host, and we aren't building gas in-tree, we identify a
19878 # build->target linker and hope that it will have the same features
19879 # as the host->target linker we'll be using.
19880 gcc_cv_gld_major_version=
19881 gcc_cv_gld_minor_version=
19882 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
19883 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
19884
19885 if test "${gcc_cv_ld+set}" = set; then
19886   :
19887 else
19888
19889 if test -x "$DEFAULT_LINKER"; then
19890         gcc_cv_ld="$DEFAULT_LINKER"
19891 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
19892      && test -f ../ld/Makefile \
19893      && test x$build = x$host; then
19894         gcc_cv_ld=../ld/ld-new$build_exeext
19895 elif test -x collect-ld$build_exeext; then
19896         # Build using linker in the current directory.
19897         gcc_cv_ld=./collect-ld$build_exeext
19898 elif test -x $LD_FOR_TARGET; then
19899         gcc_cv_ld="$LD_FOR_TARGET"
19900 else
19901         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
19902 set dummy $LD_FOR_TARGET; ac_word=$2
19903 echo "$as_me:$LINENO: checking for $ac_word" >&5
19904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19905 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   case $gcc_cv_ld in
19909   [\\/]* | ?:[\\/]*)
19910   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
19911   ;;
19912   *)
19913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19914 for as_dir in $PATH
19915 do
19916   IFS=$as_save_IFS
19917   test -z "$as_dir" && as_dir=.
19918   for ac_exec_ext in '' $ac_executable_extensions; do
19919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19920     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
19921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19922     break 2
19923   fi
19924 done
19925 done
19926
19927   ;;
19928 esac
19929 fi
19930 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
19931
19932 if test -n "$gcc_cv_ld"; then
19933   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19934 echo "${ECHO_T}$gcc_cv_ld" >&6
19935 else
19936   echo "$as_me:$LINENO: result: no" >&5
19937 echo "${ECHO_T}no" >&6
19938 fi
19939
19940 fi
19941 fi
19942
19943
19944 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
19945
19946 case "$ORIGINAL_LD_FOR_TARGET" in
19947   ./collect-ld | ./collect-ld$build_exeext) ;;
19948   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
19949  ;;
19950 esac
19951
19952 echo "$as_me:$LINENO: checking what linker to use" >&5
19953 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
19954 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
19955         # Single tree build which includes ld.  We want to prefer it
19956         # over whatever linker top-level may have detected, since
19957         # we'll use what we're building after installation anyway.
19958         echo "$as_me:$LINENO: result: newly built ld" >&5
19959 echo "${ECHO_T}newly built ld" >&6
19960         in_tree_ld=yes
19961         in_tree_ld_is_elf=no
19962         if (grep 'EMUL = .*elf' ../ld/Makefile \
19963             || grep 'EMUL = .*linux' ../ld/Makefile \
19964             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
19965           in_tree_ld_is_elf=yes
19966         fi
19967         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
19968         do
19969                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
19970                 if test x$gcc_cv_gld_version != x; then
19971                         break
19972                 fi
19973         done
19974         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
19975         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
19976 else
19977         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
19978 echo "${ECHO_T}$gcc_cv_ld" >&6
19979         in_tree_ld=no
19980 fi
19981
19982 # Figure out what nm we will be using.
19983 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
19984 if test "${gcc_cv_nm+set}" = set; then
19985   :
19986 else
19987
19988 if test -f $gcc_cv_binutils_srcdir/configure.in \
19989      && test -f ../binutils/Makefile \
19990      && test x$build = x$host; then
19991         gcc_cv_nm=../binutils/nm-new$build_exeext
19992 elif test -x nm$build_exeext; then
19993         gcc_cv_nm=./nm$build_exeext
19994 elif test -x $NM_FOR_TARGET; then
19995         gcc_cv_nm="$NM_FOR_TARGET"
19996 else
19997         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
19998 set dummy $NM_FOR_TARGET; ac_word=$2
19999 echo "$as_me:$LINENO: checking for $ac_word" >&5
20000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20001 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   case $gcc_cv_nm in
20005   [\\/]* | ?:[\\/]*)
20006   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20007   ;;
20008   *)
20009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20011 do
20012   IFS=$as_save_IFS
20013   test -z "$as_dir" && as_dir=.
20014   for ac_exec_ext in '' $ac_executable_extensions; do
20015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20016     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018     break 2
20019   fi
20020 done
20021 done
20022
20023   ;;
20024 esac
20025 fi
20026 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20027
20028 if test -n "$gcc_cv_nm"; then
20029   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20030 echo "${ECHO_T}$gcc_cv_nm" >&6
20031 else
20032   echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6
20034 fi
20035
20036 fi
20037 fi
20038
20039
20040 echo "$as_me:$LINENO: checking what nm to use" >&5
20041 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20042 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20043         # Single tree build which includes binutils.
20044         echo "$as_me:$LINENO: result: newly built nm" >&5
20045 echo "${ECHO_T}newly built nm" >&6
20046         in_tree_nm=yes
20047 else
20048         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20049 echo "${ECHO_T}$gcc_cv_nm" >&6
20050         in_tree_nm=no
20051 fi
20052
20053 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20054
20055 case "$ORIGINAL_NM_FOR_TARGET" in
20056   ./nm | ./nm$build_exeext) ;;
20057   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20058  ;;
20059 esac
20060
20061
20062 # Figure out what objdump we will be using.
20063 if test "${gcc_cv_objdump+set}" = set; then
20064   :
20065 else
20066
20067 if test -f $gcc_cv_binutils_srcdir/configure.in \
20068      && test -f ../binutils/Makefile \
20069      && test x$build = x$host; then
20070         # Single tree build which includes binutils.
20071         gcc_cv_objdump=../binutils/objdump$build_exeext
20072 elif test -x objdump$build_exeext; then
20073         gcc_cv_objdump=./objdump$build_exeext
20074 elif test -x $OBJDUMP_FOR_TARGET; then
20075         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20076 else
20077         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20078 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20079 echo "$as_me:$LINENO: checking for $ac_word" >&5
20080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20081 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   case $gcc_cv_objdump in
20085   [\\/]* | ?:[\\/]*)
20086   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20087   ;;
20088   *)
20089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090 for as_dir in $PATH
20091 do
20092   IFS=$as_save_IFS
20093   test -z "$as_dir" && as_dir=.
20094   for ac_exec_ext in '' $ac_executable_extensions; do
20095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20098     break 2
20099   fi
20100 done
20101 done
20102
20103   ;;
20104 esac
20105 fi
20106 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20107
20108 if test -n "$gcc_cv_objdump"; then
20109   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20110 echo "${ECHO_T}$gcc_cv_objdump" >&6
20111 else
20112   echo "$as_me:$LINENO: result: no" >&5
20113 echo "${ECHO_T}no" >&6
20114 fi
20115
20116 fi
20117 fi
20118
20119
20120 echo "$as_me:$LINENO: checking what objdump to use" >&5
20121 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20122 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20123         # Single tree build which includes binutils.
20124         echo "$as_me:$LINENO: result: newly built objdump" >&5
20125 echo "${ECHO_T}newly built objdump" >&6
20126 elif test x$gcc_cv_objdump = x; then
20127         echo "$as_me:$LINENO: result: not found" >&5
20128 echo "${ECHO_T}not found" >&6
20129 else
20130         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20131 echo "${ECHO_T}$gcc_cv_objdump" >&6
20132 fi
20133
20134 # Figure out what assembler alignment features are present.
20135 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20136 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20137 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20138   echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140   gcc_cv_as_balign_and_p2align=no
20141     if test $in_tree_gas = yes; then
20142     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20143   then gcc_cv_as_balign_and_p2align=yes
20144 fi
20145   elif test x$gcc_cv_as != x; then
20146     echo '.balign 4
20147 .p2align 2' > conftest.s
20148     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; }
20154     then
20155         gcc_cv_as_balign_and_p2align=yes
20156     else
20157       echo "configure: failed program was" >&5
20158       cat conftest.s >&5
20159     fi
20160     rm -f conftest.o conftest.s
20161   fi
20162 fi
20163 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20164 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20165 if test $gcc_cv_as_balign_and_p2align = yes; then
20166
20167 cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20169 _ACEOF
20170
20171 fi
20172
20173 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20174 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20175 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20176   echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178   gcc_cv_as_max_skip_p2align=no
20179     if test $in_tree_gas = yes; then
20180     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20181   then gcc_cv_as_max_skip_p2align=yes
20182 fi
20183   elif test x$gcc_cv_as != x; then
20184     echo '.p2align 4,,7' > conftest.s
20185     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187   (eval $ac_try) 2>&5
20188   ac_status=$?
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); }; }
20191     then
20192         gcc_cv_as_max_skip_p2align=yes
20193     else
20194       echo "configure: failed program was" >&5
20195       cat conftest.s >&5
20196     fi
20197     rm -f conftest.o conftest.s
20198   fi
20199 fi
20200 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20201 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20202 if test $gcc_cv_as_max_skip_p2align = yes; then
20203
20204 cat >>confdefs.h <<\_ACEOF
20205 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20206 _ACEOF
20207
20208 fi
20209
20210 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20211 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20212 if test "${gcc_cv_as_literal16+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   gcc_cv_as_literal16=no
20216     if test $in_tree_gas = yes; then
20217     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20218   then gcc_cv_as_literal16=yes
20219 fi
20220   elif test x$gcc_cv_as != x; then
20221     echo '.literal16' > conftest.s
20222     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }
20228     then
20229         gcc_cv_as_literal16=yes
20230     else
20231       echo "configure: failed program was" >&5
20232       cat conftest.s >&5
20233     fi
20234     rm -f conftest.o conftest.s
20235   fi
20236 fi
20237 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20238 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20239 if test $gcc_cv_as_literal16 = yes; then
20240
20241 cat >>confdefs.h <<\_ACEOF
20242 #define HAVE_GAS_LITERAL16 1
20243 _ACEOF
20244
20245 fi
20246
20247 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20248 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20249 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   gcc_cv_as_subsection_m1=no
20253     if test $in_tree_gas = yes; then
20254     if test $in_tree_gas_is_elf = yes \
20255   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20256   then gcc_cv_as_subsection_m1=yes
20257 fi
20258   elif test x$gcc_cv_as != x; then
20259     echo 'conftest_label1: .word 0
20260 .subsection -1
20261 conftest_label2: .word 0
20262 .previous' > conftest.s
20263     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }
20269     then
20270         if test x$gcc_cv_nm != x; then
20271     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20272     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20273     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20274     then :
20275     else gcc_cv_as_subsection_m1=yes
20276     fi
20277     rm -f conftest.nm1 conftest.nm2
20278   fi
20279     else
20280       echo "configure: failed program was" >&5
20281       cat conftest.s >&5
20282     fi
20283     rm -f conftest.o conftest.s
20284   fi
20285 fi
20286 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20287 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20288 if test $gcc_cv_as_subsection_m1 = yes; then
20289
20290 cat >>confdefs.h <<\_ACEOF
20291 #define HAVE_GAS_SUBSECTION_ORDERING 1
20292 _ACEOF
20293
20294 fi
20295
20296 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20297 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20298 if test "${gcc_cv_as_weak+set}" = set; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   gcc_cv_as_weak=no
20302     if test $in_tree_gas = yes; then
20303     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20304   then gcc_cv_as_weak=yes
20305 fi
20306   elif test x$gcc_cv_as != x; then
20307     echo '      .weak foobar' > conftest.s
20308     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; }
20314     then
20315         gcc_cv_as_weak=yes
20316     else
20317       echo "configure: failed program was" >&5
20318       cat conftest.s >&5
20319     fi
20320     rm -f conftest.o conftest.s
20321   fi
20322 fi
20323 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20324 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20325 if test $gcc_cv_as_weak = yes; then
20326
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_GAS_WEAK 1
20329 _ACEOF
20330
20331 fi
20332
20333 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20334 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20335 if test "${gcc_cv_as_weakref+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   gcc_cv_as_weakref=no
20339     if test $in_tree_gas = yes; then
20340     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20341   then gcc_cv_as_weakref=yes
20342 fi
20343   elif test x$gcc_cv_as != x; then
20344     echo '      .weakref foobar, barfnot' > conftest.s
20345     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; }
20351     then
20352         gcc_cv_as_weakref=yes
20353     else
20354       echo "configure: failed program was" >&5
20355       cat conftest.s >&5
20356     fi
20357     rm -f conftest.o conftest.s
20358   fi
20359 fi
20360 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20361 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20362 if test $gcc_cv_as_weakref = yes; then
20363
20364 cat >>confdefs.h <<\_ACEOF
20365 #define HAVE_GAS_WEAKREF 1
20366 _ACEOF
20367
20368 fi
20369
20370 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20371 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20372 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375   gcc_cv_as_nsubspa_comdat=no
20376     if test $in_tree_gas = yes; then
20377     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20378   then gcc_cv_as_nsubspa_comdat=yes
20379 fi
20380   elif test x$gcc_cv_as != x; then
20381     echo '      .SPACE $TEXT$
20382         .NSUBSPA $CODE$,COMDAT' > conftest.s
20383     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; }
20389     then
20390         gcc_cv_as_nsubspa_comdat=yes
20391     else
20392       echo "configure: failed program was" >&5
20393       cat conftest.s >&5
20394     fi
20395     rm -f conftest.o conftest.s
20396   fi
20397 fi
20398 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20399 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20400 if test $gcc_cv_as_nsubspa_comdat = yes; then
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_GAS_NSUBSPA_COMDAT 1
20404 _ACEOF
20405
20406 fi
20407
20408 # .hidden needs to be supported in both the assembler and the linker,
20409 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20410 # This is irritatingly difficult to feature test for; we have to check the
20411 # date string after the version number.  If we've got an in-tree
20412 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20413 # to be safe.
20414 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20415 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20416 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20417 if test "${gcc_cv_as_hidden+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420   gcc_cv_as_hidden=no
20421     if test $in_tree_gas = yes; then
20422     if test $in_tree_gas_is_elf = yes \
20423   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20424   then gcc_cv_as_hidden=yes
20425 fi
20426   elif test x$gcc_cv_as != x; then
20427     echo '      .hidden foobar
20428 foobar:' > conftest.s
20429     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431   (eval $ac_try) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }
20435     then
20436         gcc_cv_as_hidden=yes
20437     else
20438       echo "configure: failed program was" >&5
20439       cat conftest.s >&5
20440     fi
20441     rm -f conftest.o conftest.s
20442   fi
20443 fi
20444 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20445 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20446
20447
20448 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20449 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20450 if test "${gcc_cv_ld_hidden+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   if test $in_tree_ld = yes ; then
20454   gcc_cv_ld_hidden=no
20455   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 \
20456      && test $in_tree_ld_is_elf = yes; then
20457      gcc_cv_ld_hidden=yes
20458   fi
20459 else
20460   gcc_cv_ld_hidden=yes
20461   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20462   if echo "$ld_ver" | grep GNU > /dev/null; then
20463     ld_vers=`echo $ld_ver | sed -n \
20464         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20465     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'`
20466     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20467     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20468     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20469     if test 0"$ld_date" -lt 20020404; then
20470       if test -n "$ld_date"; then
20471         # If there was date string, but was earlier than 2002-04-04, fail
20472         gcc_cv_ld_hidden=no
20473       elif test -z "$ld_vers"; then
20474         # If there was no date string nor ld version number, something is wrong
20475         gcc_cv_ld_hidden=no
20476       else
20477         test -z "$ld_vers_patch" && ld_vers_patch=0
20478         if test "$ld_vers_major" -lt 2; then
20479           gcc_cv_ld_hidden=no
20480         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20481           gcc_cv_ld_hidden="no"
20482         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20483           gcc_cv_ld_hidden=no
20484         fi
20485       fi
20486     fi
20487   else
20488     case "${target}" in
20489       hppa64*-*-hpux* | ia64*-*-hpux*)
20490         gcc_cv_ld_hidden=yes
20491         ;;
20492       *)
20493         gcc_cv_ld_hidden=no
20494         ;;
20495     esac
20496   fi
20497 fi
20498 fi
20499 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20500 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20501 libgcc_visibility=no
20502
20503
20504 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20505   libgcc_visibility=yes
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_GAS_HIDDEN 1
20509 _ACEOF
20510
20511 fi
20512
20513 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20514 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20515 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20516 if test "${gcc_cv_as_leb128+set}" = set; then
20517   echo $ECHO_N "(cached) $ECHO_C" >&6
20518 else
20519   gcc_cv_as_leb128=no
20520     if test $in_tree_gas = yes; then
20521     if test $in_tree_gas_is_elf = yes \
20522   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20523   then gcc_cv_as_leb128=yes
20524 fi
20525   elif test x$gcc_cv_as != x; then
20526     echo '      .data
20527         .uleb128 L2 - L1
20528 L1:
20529         .uleb128 1280
20530         .sleb128 -1010
20531 L2:' > conftest.s
20532     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20534   (eval $ac_try) 2>&5
20535   ac_status=$?
20536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537   (exit $ac_status); }; }
20538     then
20539         # GAS versions before 2.11 do not support uleb128,
20540   # despite appearing to.
20541   # ??? There exists an elf-specific test that will crash
20542   # the assembler.  Perhaps it's better to figure out whether
20543   # arbitrary sections are supported and try the test.
20544   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20545   if echo "$as_ver" | grep GNU > /dev/null; then
20546     as_vers=`echo $as_ver | sed -n \
20547         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20548     as_major=`expr "$as_vers" : '\([0-9]*\)'`
20549     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20550     if test $as_major -eq 2 && test $as_minor -lt 11
20551     then :
20552     else gcc_cv_as_leb128=yes
20553     fi
20554   fi
20555     else
20556       echo "configure: failed program was" >&5
20557       cat conftest.s >&5
20558     fi
20559     rm -f conftest.o conftest.s
20560   fi
20561 fi
20562 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20563 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20564 if test $gcc_cv_as_leb128 = yes; then
20565
20566 cat >>confdefs.h <<\_ACEOF
20567 #define HAVE_AS_LEB128 1
20568 _ACEOF
20569
20570 fi
20571
20572 # GAS versions up to and including 2.11.0 may mis-optimize
20573 # .eh_frame data.
20574 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20575 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20576 if test "${gcc_cv_as_eh_frame+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   gcc_cv_as_eh_frame=no
20580     if test $in_tree_gas = yes; then
20581     if test $in_tree_gas_is_elf = yes \
20582   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20583   then gcc_cv_as_eh_frame=yes
20584 fi
20585   elif test x$gcc_cv_as != x; then
20586     echo '      .text
20587 .LFB1:
20588         .4byte  0
20589 .L1:
20590         .4byte  0
20591 .LFE1:
20592         .section        .eh_frame,"aw",@progbits
20593 __FRAME_BEGIN__:
20594         .4byte  .LECIE1-.LSCIE1
20595 .LSCIE1:
20596         .4byte  0x0
20597         .byte   0x1
20598         .ascii "z\0"
20599         .byte   0x1
20600         .byte   0x78
20601         .byte   0x1a
20602         .byte   0x0
20603         .byte   0x4
20604         .4byte  1
20605         .p2align 1
20606 .LECIE1:
20607 .LSFDE1:
20608         .4byte  .LEFDE1-.LASFDE1
20609 .LASFDE1:
20610         .4byte  .LASFDE1-__FRAME_BEGIN__
20611         .4byte  .LFB1
20612         .4byte  .LFE1-.LFB1
20613         .byte   0x4
20614         .4byte  .LFE1-.LFB1
20615         .byte   0x4
20616         .4byte  .L1-.LFB1
20617 .LEFDE1:' > conftest.s
20618     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }
20624     then
20625           cat > conftest.lit <<EOF
20626  0000 10000000 00000000 017a0001 781a0004  .........z..x...
20627  0010 01000000 12000000 18000000 00000000  ................
20628  0020 08000000 04080000 0044               .........D      
20629 EOF
20630 cat > conftest.big <<EOF
20631  0000 00000010 00000000 017a0001 781a0004  .........z..x...
20632  0010 00000001 00000012 00000018 00000000  ................
20633  0020 00000008 04000000 0844               .........D      
20634 EOF
20635   # If the assembler didn't choke, and we can objdump,
20636   # and we got the correct data, then succeed.
20637   # The text in the here-document typically retains its unix-style line
20638   # endings, while the output of objdump will use host line endings.
20639   # Therefore, use diff -b for the comparisons.
20640   if test x$gcc_cv_objdump != x \
20641   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20642      | tail -3 > conftest.got \
20643   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20644     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20645   then
20646     gcc_cv_as_eh_frame=yes
20647   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649   (eval $ac_try) 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; }; then
20653     gcc_cv_as_eh_frame=buggy
20654   else
20655     # Uh oh, what do we do now?
20656     gcc_cv_as_eh_frame=no
20657   fi
20658     else
20659       echo "configure: failed program was" >&5
20660       cat conftest.s >&5
20661     fi
20662     rm -f conftest.o conftest.s
20663   fi
20664 fi
20665 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20666 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20667
20668
20669 if test $gcc_cv_as_eh_frame = buggy; then
20670
20671 cat >>confdefs.h <<\_ACEOF
20672 #define USE_AS_TRADITIONAL_FORMAT 1
20673 _ACEOF
20674
20675 fi
20676
20677 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20678 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20679 if test "${gcc_cv_as_shf_merge+set}" = set; then
20680   echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682   gcc_cv_as_shf_merge=no
20683     if test $in_tree_gas = yes; then
20684     if test $in_tree_gas_is_elf = yes \
20685   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20686   then gcc_cv_as_shf_merge=yes
20687 fi
20688   elif test x$gcc_cv_as != x; then
20689     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20690     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }
20696     then
20697         gcc_cv_as_shf_merge=yes
20698     else
20699       echo "configure: failed program was" >&5
20700       cat conftest.s >&5
20701     fi
20702     rm -f conftest.o conftest.s
20703   fi
20704 fi
20705 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20706 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20707
20708 if test $gcc_cv_as_shf_merge = no; then
20709   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20710 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20711 if test "${gcc_cv_as_shf_merge+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   gcc_cv_as_shf_merge=no
20715     if test $in_tree_gas = yes; then
20716     if test $in_tree_gas_is_elf = yes \
20717   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20718   then gcc_cv_as_shf_merge=yes
20719 fi
20720   elif test x$gcc_cv_as != x; then
20721     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20722     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724   (eval $ac_try) 2>&5
20725   ac_status=$?
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); }; }
20728     then
20729         gcc_cv_as_shf_merge=yes
20730     else
20731       echo "configure: failed program was" >&5
20732       cat conftest.s >&5
20733     fi
20734     rm -f conftest.o conftest.s
20735   fi
20736 fi
20737 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20738 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20739
20740 fi
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
20744 _ACEOF
20745
20746
20747 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20748 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20749 if test "${gcc_cv_as_comdat_group+set}" = set; then
20750   echo $ECHO_N "(cached) $ECHO_C" >&6
20751 else
20752   gcc_cv_as_comdat_group=no
20753     if test $in_tree_gas = yes; then
20754     if test $in_tree_gas_is_elf = yes \
20755   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20756   then gcc_cv_as_comdat_group=yes
20757 fi
20758   elif test x$gcc_cv_as != x; then
20759     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
20760     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762   (eval $ac_try) 2>&5
20763   ac_status=$?
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); }; }
20766     then
20767         gcc_cv_as_comdat_group=yes
20768     else
20769       echo "configure: failed program was" >&5
20770       cat conftest.s >&5
20771     fi
20772     rm -f conftest.o conftest.s
20773   fi
20774 fi
20775 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
20776 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
20777
20778 if test $gcc_cv_as_comdat_group = yes; then
20779   gcc_cv_as_comdat_group_percent=no
20780 else
20781  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
20782 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
20783 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
20784   echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786   gcc_cv_as_comdat_group_percent=no
20787     if test $in_tree_gas = yes; then
20788     if test $in_tree_gas_is_elf = yes \
20789   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
20790   then gcc_cv_as_comdat_group_percent=yes
20791 fi
20792   elif test x$gcc_cv_as != x; then
20793     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
20794     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; }
20800     then
20801         gcc_cv_as_comdat_group_percent=yes
20802     else
20803       echo "configure: failed program was" >&5
20804       cat conftest.s >&5
20805     fi
20806     rm -f conftest.o conftest.s
20807   fi
20808 fi
20809 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
20810 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
20811
20812 fi
20813 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
20814   comdat_group=yes
20815   if test 0"$ld_date" -lt 20050308; then
20816     if test -n "$ld_date"; then
20817       # If there was date string, but was earlier than 2005-03-08, fail
20818       comdat_group=no
20819     elif test "$ld_vers_major" -lt 2; then
20820       comdat_group=no
20821     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
20822       comdat_group=no
20823     fi
20824   fi
20825 else
20826   # assume linkers other than GNU ld don't support COMDAT group
20827   comdat_group=no
20828 fi
20829 if test $comdat_group = no; then
20830   gcc_cv_as_comdat_group=no
20831   gcc_cv_as_comdat_group_percent=no
20832 fi
20833
20834 cat >>confdefs.h <<_ACEOF
20835 #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`
20836 _ACEOF
20837
20838
20839 # Thread-local storage - the check is heavily parametrized.
20840 conftest_s=
20841 tls_first_major=
20842 tls_first_minor=
20843 tls_as_opt=
20844 case "$target" in
20845   alpha*-*-*)
20846     conftest_s='
20847         .section ".tdata","awT",@progbits
20848 foo:    .long   25
20849         .text
20850         ldq     $27,__tls_get_addr($29)         !literal!1
20851         lda     $16,foo($29)                    !tlsgd!1
20852         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
20853         ldq     $27,__tls_get_addr($29)         !literal!2
20854         lda     $16,foo($29)                    !tlsldm!2
20855         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
20856         ldq     $1,foo($29)                     !gotdtprel
20857         ldah    $2,foo($29)                     !dtprelhi
20858         lda     $3,foo($2)                      !dtprello
20859         lda     $4,foo($29)                     !dtprel
20860         ldq     $1,foo($29)                     !gottprel
20861         ldah    $2,foo($29)                     !tprelhi
20862         lda     $3,foo($2)                      !tprello
20863         lda     $4,foo($29)                     !tprel'
20864         tls_first_major=2
20865         tls_first_minor=13
20866         tls_as_opt=--fatal-warnings
20867         ;;
20868   frv*-*-*)
20869     conftest_s='
20870         .section ".tdata","awT",@progbits
20871 x:      .long   25
20872         .text
20873         call    #gettlsoff(x)'
20874         tls_first_major=2
20875         tls_first_minor=14
20876         ;;
20877   hppa*-*-linux*)
20878     conftest_s='
20879 t1:     .reg    %r20
20880 t2:     .reg    %r21
20881 gp:     .reg    %r19
20882         .section ".tdata","awT",@progbits
20883 foo:    .long   25
20884         .text
20885         .align  4
20886         addil LT%foo-$tls_gdidx$,gp
20887         ldo RT%foo-$tls_gdidx$(%r1),%arg0
20888         b __tls_get_addr
20889         nop
20890         addil LT%foo-$tls_ldidx$,gp
20891         b __tls_get_addr
20892         ldo RT%foo-$tls_ldidx$(%r1),%arg0
20893         addil LR%foo-$tls_dtpoff$,%ret0
20894         ldo RR%foo-$tls_dtpoff$(%r1),%t1
20895         mfctl %cr27,%t1
20896         addil LT%foo-$tls_ieoff$,gp
20897         ldw RT%foo-$tls_ieoff$(%r1),%t2
20898         add %t1,%t2,%t3
20899         mfctl %cr27,%t1
20900         addil LR%foo-$tls_leoff$,%t1
20901         ldo RR%foo-$tls_leoff$(%r1),%t2'
20902         tls_first_major=2
20903         tls_first_minor=15
20904         tls_as_opt=--fatal-warnings
20905         ;;
20906   arm*-*-*)
20907     conftest_s='
20908         .section ".tdata","awT",%progbits
20909 foo:    .long   25
20910         .text
20911 .word foo(gottpoff)
20912 .word foo(tpoff)
20913 .word foo(tlsgd)
20914 .word foo(tlsldm)
20915 .word foo(tlsldo)'
20916         tls_first_major=2
20917         tls_first_minor=17
20918         ;;
20919   i[34567]86-*-*)
20920     conftest_s='
20921         .section ".tdata","awT",@progbits
20922 foo:    .long   25
20923         .text
20924         movl    %gs:0, %eax
20925         leal    foo@TLSGD(,%ebx,1), %eax
20926         leal    foo@TLSLDM(%ebx), %eax
20927         leal    foo@DTPOFF(%eax), %edx
20928         movl    foo@GOTTPOFF(%ebx), %eax
20929         subl    foo@GOTTPOFF(%ebx), %eax
20930         addl    foo@GOTNTPOFF(%ebx), %eax
20931         movl    foo@INDNTPOFF, %eax
20932         movl    $foo@TPOFF, %eax
20933         subl    $foo@TPOFF, %eax
20934         leal    foo@NTPOFF(%ecx), %eax'
20935         tls_first_major=2
20936         tls_first_minor=14
20937         tls_as_opt=--fatal-warnings
20938         ;;
20939   x86_64-*-*)
20940     conftest_s='
20941         .section ".tdata","awT",@progbits
20942 foo:    .long   25
20943         .text
20944         movq    %fs:0, %rax
20945         leaq    foo@TLSGD(%rip), %rdi
20946         leaq    foo@TLSLD(%rip), %rdi
20947         leaq    foo@DTPOFF(%rax), %rdx
20948         movq    foo@GOTTPOFF(%rip), %rax
20949         movq    $foo@TPOFF, %rax'
20950         tls_first_major=2
20951         tls_first_minor=14
20952         tls_as_opt=--fatal-warnings
20953         ;;
20954   ia64-*-*)
20955     conftest_s='
20956         .section ".tdata","awT",@progbits
20957 foo:    data8   25
20958         .text
20959         addl    r16 = @ltoff(@dtpmod(foo#)), gp
20960         addl    r17 = @ltoff(@dtprel(foo#)), gp
20961         addl    r18 = @ltoff(@tprel(foo#)), gp
20962         addl    r19 = @dtprel(foo#), gp
20963         adds    r21 = @dtprel(foo#), r13
20964         movl    r23 = @dtprel(foo#)
20965         addl    r20 = @tprel(foo#), gp
20966         adds    r22 = @tprel(foo#), r13
20967         movl    r24 = @tprel(foo#)'
20968         tls_first_major=2
20969         tls_first_minor=13
20970         tls_as_opt=--fatal-warnings
20971         ;;
20972   mips*-*-*)
20973     conftest_s='
20974         .section .tdata,"awT",@progbits
20975 x:
20976         .word 2
20977         .text
20978         addiu $4, $28, %tlsgd(x)
20979         addiu $4, $28, %tlsldm(x)
20980         lui $4, %dtprel_hi(x)
20981         addiu $4, $4, %dtprel_lo(x)
20982         lw $4, %gottprel(x)($28)
20983         lui $4, %tprel_hi(x)
20984         addiu $4, $4, %tprel_lo(x)'
20985         tls_first_major=2
20986         tls_first_minor=16
20987         tls_as_opt='-32 --fatal-warnings'
20988         ;;
20989   powerpc-*-*)
20990     conftest_s='
20991         .section ".tdata","awT",@progbits
20992         .align 2
20993 ld0:    .space 4
20994 ld1:    .space 4
20995 x1:     .space 4
20996 x2:     .space 4
20997 x3:     .space 4
20998         .text
20999         addi 3,31,ld0@got@tlsgd
21000         bl __tls_get_addr
21001         addi 3,31,x1@got@tlsld
21002         bl __tls_get_addr
21003         addi 9,3,x1@dtprel
21004         addis 9,3,x2@dtprel@ha
21005         addi 9,9,x2@dtprel@l
21006         lwz 9,x3@got@tprel(31)
21007         add 9,9,x@tls
21008         addi 9,2,x1@tprel
21009         addis 9,2,x2@tprel@ha
21010         addi 9,9,x2@tprel@l'
21011         tls_first_major=2
21012         tls_first_minor=14
21013         tls_as_opt="-a32 --fatal-warnings"
21014         ;;
21015   powerpc64-*-*)
21016     conftest_s='
21017         .section ".tdata","awT",@progbits
21018         .align 3
21019 ld0:    .space 8
21020 ld1:    .space 8
21021 x1:     .space 8
21022 x2:     .space 8
21023 x3:     .space 8
21024         .text
21025         addi 3,2,ld0@got@tlsgd
21026         bl .__tls_get_addr
21027         nop
21028         addi 3,2,ld1@toc
21029         bl .__tls_get_addr
21030         nop
21031         addi 3,2,x1@got@tlsld
21032         bl .__tls_get_addr
21033         nop
21034         addi 9,3,x1@dtprel
21035         bl .__tls_get_addr
21036         nop
21037         addis 9,3,x2@dtprel@ha
21038         addi 9,9,x2@dtprel@l
21039         bl .__tls_get_addr
21040         nop
21041         ld 9,x3@got@dtprel(2)
21042         add 9,9,3
21043         bl .__tls_get_addr
21044         nop'
21045         tls_first_major=2
21046         tls_first_minor=14
21047         tls_as_opt="-a64 --fatal-warnings"
21048         ;;
21049   s390-*-*)
21050     conftest_s='
21051         .section ".tdata","awT",@progbits
21052 foo:    .long   25
21053         .text
21054         .long   foo@TLSGD
21055         .long   foo@TLSLDM
21056         .long   foo@DTPOFF
21057         .long   foo@NTPOFF
21058         .long   foo@GOTNTPOFF
21059         .long   foo@INDNTPOFF
21060         l       %r1,foo@GOTNTPOFF(%r12)
21061         l       %r1,0(%r1):tls_load:foo
21062         bas     %r14,0(%r1,%r13):tls_gdcall:foo
21063         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
21064         tls_first_major=2
21065         tls_first_minor=14
21066         tls_as_opt="-m31 --fatal-warnings"
21067         ;;
21068   s390x-*-*)
21069     conftest_s='
21070         .section ".tdata","awT",@progbits
21071 foo:    .long   25
21072         .text
21073         .quad   foo@TLSGD
21074         .quad   foo@TLSLDM
21075         .quad   foo@DTPOFF
21076         .quad   foo@NTPOFF
21077         .quad   foo@GOTNTPOFF
21078         lg      %r1,foo@GOTNTPOFF(%r12)
21079         larl    %r1,foo@INDNTPOFF
21080         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
21081         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21082         tls_first_major=2
21083         tls_first_minor=14
21084         tls_as_opt="-m64 -Aesame --fatal-warnings"
21085         ;;
21086   sh-*-* | sh[34]-*-*)
21087     conftest_s='
21088         .section ".tdata","awT",@progbits
21089 foo:    .long   25
21090         .text
21091         .long   foo@TLSGD
21092         .long   foo@TLSLDM
21093         .long   foo@DTPOFF
21094         .long   foo@GOTTPOFF
21095         .long   foo@TPOFF'
21096         tls_first_major=2
21097         tls_first_minor=13
21098         tls_as_opt=--fatal-warnings
21099         ;;
21100   sparc*-*-*)
21101     case "$target" in
21102       sparc*-sun-solaris2.[56789]*)
21103         # TLS was introduced in the Solaris 9 4/04 release but
21104         # we do not enable it by default on Solaris 9 either.
21105         if test "x$enable_tls" = xyes ; then
21106           on_solaris=yes
21107         else
21108           enable_tls=no;
21109         fi
21110         ;;
21111       sparc*-sun-solaris2.*)
21112         on_solaris=yes
21113         ;;
21114       *)
21115         on_solaris=no
21116         ;;
21117     esac
21118     if test x$on_solaris = xyes && test x$gas_flag = xno; then
21119       conftest_s='
21120         .section ".tdata",#alloc,#write,#tls
21121 foo:    .long   25
21122         .text
21123         sethi   %tgd_hi22(foo), %o0
21124         add     %o0, %tgd_lo10(foo), %o1
21125         add     %l7, %o1, %o0, %tgd_add(foo)
21126         call    __tls_get_addr, %tgd_call(foo)
21127         sethi   %tldm_hi22(foo), %l1
21128         add     %l1, %tldm_lo10(foo), %l2
21129         add     %l7, %l2, %o0, %tldm_add(foo)
21130         call    __tls_get_addr, %tldm_call(foo)
21131         sethi   %tldo_hix22(foo), %l3
21132         xor     %l3, %tldo_lox10(foo), %l4
21133         add     %o0, %l4, %l5, %tldo_add(foo)
21134         sethi   %tie_hi22(foo), %o3
21135         add     %o3, %tie_lo10(foo), %o3
21136         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21137         add     %g7, %o2, %o4, %tie_add(foo)
21138         sethi   %tle_hix22(foo), %l1
21139         xor     %l1, %tle_lox10(foo), %o5
21140         ld      [%g7 + %o5], %o1'
21141         tls_first_major=0
21142         tls_first_minor=0
21143     else
21144       conftest_s='
21145         .section ".tdata","awT",@progbits
21146 foo:    .long   25
21147         .text
21148         sethi   %tgd_hi22(foo), %o0
21149         add     %o0, %tgd_lo10(foo), %o1
21150         add     %l7, %o1, %o0, %tgd_add(foo)
21151         call    __tls_get_addr, %tgd_call(foo)
21152         sethi   %tldm_hi22(foo), %l1
21153         add     %l1, %tldm_lo10(foo), %l2
21154         add     %l7, %l2, %o0, %tldm_add(foo)
21155         call    __tls_get_addr, %tldm_call(foo)
21156         sethi   %tldo_hix22(foo), %l3
21157         xor     %l3, %tldo_lox10(foo), %l4
21158         add     %o0, %l4, %l5, %tldo_add(foo)
21159         sethi   %tie_hi22(foo), %o3
21160         add     %o3, %tie_lo10(foo), %o3
21161         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21162         add     %g7, %o2, %o4, %tie_add(foo)
21163         sethi   %tle_hix22(foo), %l1
21164         xor     %l1, %tle_lox10(foo), %o5
21165         ld      [%g7 + %o5], %o1'
21166         tls_first_major=2
21167         tls_first_minor=14
21168         tls_as_opt="-32 --fatal-warnings"
21169       fi
21170         ;;
21171 esac
21172 set_have_as_tls=no
21173 if test "x$enable_tls" = xno ; then
21174   : # TLS explicitly disabled.
21175 elif test "x$enable_tls" = xyes ; then
21176   set_have_as_tls=yes # TLS explicitly enabled.
21177 elif test -z "$tls_first_major"; then
21178   : # If we don't have a check, assume no support.
21179 else
21180   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21181 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21182 if test "${gcc_cv_as_tls+set}" = set; then
21183   echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185   gcc_cv_as_tls=no
21186     if test $in_tree_gas = yes; then
21187     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21188   then gcc_cv_as_tls=yes
21189 fi
21190   elif test x$gcc_cv_as != x; then
21191     echo "$conftest_s" > conftest.s
21192     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194   (eval $ac_try) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; }
21198     then
21199         gcc_cv_as_tls=yes
21200     else
21201       echo "configure: failed program was" >&5
21202       cat conftest.s >&5
21203     fi
21204     rm -f conftest.o conftest.s
21205   fi
21206 fi
21207 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21208 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21209 if test $gcc_cv_as_tls = yes; then
21210   set_have_as_tls=yes
21211 fi
21212 fi
21213 if test $set_have_as_tls = yes ; then
21214
21215 cat >>confdefs.h <<\_ACEOF
21216 #define HAVE_AS_TLS 1
21217 _ACEOF
21218
21219 fi
21220
21221 # Target-specific assembler checks.
21222
21223 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21224 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21225 gcc_cv_ld_static_dynamic=no
21226 if test $in_tree_ld = yes ; then
21227   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21228     gcc_cv_ld_static_dynamic=yes
21229   fi
21230 elif test x$gcc_cv_ld != x; then
21231         # Check if linker supports -Bstatic/-Bdynamic option
21232         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21233           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21234                 gcc_cv_ld_static_dynamic=yes
21235         fi
21236 fi
21237 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21238
21239 cat >>confdefs.h <<\_ACEOF
21240 #define HAVE_LD_STATIC_DYNAMIC 1
21241 _ACEOF
21242
21243 fi
21244 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21245 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21246
21247 if test x"$demangler_in_ld" = xyes; then
21248   echo "$as_me:$LINENO: checking linker --demangle support" >&5
21249 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21250   gcc_cv_ld_demangle=no
21251   if test $in_tree_ld = yes; then
21252     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 \
21253       gcc_cv_ld_demangle=yes
21254     fi
21255   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21256     # Check if the GNU linker supports --demangle option
21257     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21258       gcc_cv_ld_demangle=yes
21259     fi
21260   fi
21261   if test x"$gcc_cv_ld_demangle" = xyes; then
21262
21263 cat >>confdefs.h <<\_ACEOF
21264 #define HAVE_LD_DEMANGLE 1
21265 _ACEOF
21266
21267   fi
21268   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21269 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21270 fi
21271
21272 case "$target" in
21273   # All TARGET_ABI_OSF targets.
21274   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21275     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21276 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21277 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21278   echo $ECHO_N "(cached) $ECHO_C" >&6
21279 else
21280   gcc_cv_as_alpha_explicit_relocs=no
21281     if test $in_tree_gas = yes; then
21282     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21283   then gcc_cv_as_alpha_explicit_relocs=yes
21284 fi
21285   elif test x$gcc_cv_as != x; then
21286     echo '      .set nomacro
21287         .text
21288         extbl   $3, $2, $3      !lituse_bytoff!1
21289         ldq     $2, a($29)      !literal!1
21290         ldq     $4, b($29)      !literal!2
21291         ldq_u   $3, 0($2)       !lituse_base!1
21292         ldq     $27, f($29)     !literal!5
21293         jsr     $26, ($27), f   !lituse_jsr!5
21294         ldah    $29, 0($26)     !gpdisp!3
21295         lda     $0, c($29)      !gprel
21296         ldah    $1, d($29)      !gprelhigh
21297         lda     $1, d($1)       !gprellow
21298         lda     $29, 0($29)     !gpdisp!3' > conftest.s
21299     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }
21305     then
21306         gcc_cv_as_alpha_explicit_relocs=yes
21307     else
21308       echo "configure: failed program was" >&5
21309       cat conftest.s >&5
21310     fi
21311     rm -f conftest.o conftest.s
21312   fi
21313 fi
21314 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21315 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21316 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21317
21318 cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_AS_EXPLICIT_RELOCS 1
21320 _ACEOF
21321
21322 fi
21323     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21324 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21325 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   gcc_cv_as_alpha_jsrdirect_relocs=no
21329     if test $in_tree_gas = yes; then
21330     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21331   then gcc_cv_as_alpha_jsrdirect_relocs=yes
21332 fi
21333   elif test x$gcc_cv_as != x; then
21334     echo '      .set nomacro
21335         .text
21336         ldq     $27, a($29)     !literal!1
21337         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
21338     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340   (eval $ac_try) 2>&5
21341   ac_status=$?
21342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343   (exit $ac_status); }; }
21344     then
21345         gcc_cv_as_alpha_jsrdirect_relocs=yes
21346     else
21347       echo "configure: failed program was" >&5
21348       cat conftest.s >&5
21349     fi
21350     rm -f conftest.o conftest.s
21351   fi
21352 fi
21353 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21354 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21355 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21356
21357 cat >>confdefs.h <<\_ACEOF
21358 #define HAVE_AS_JSRDIRECT_RELOCS 1
21359 _ACEOF
21360
21361 fi
21362     ;;
21363
21364   cris-*-*)
21365     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21366 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21367 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   gcc_cv_as_cris_no_mul_bug=no
21371     if test $in_tree_gas = yes; then
21372     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21373   then gcc_cv_as_cris_no_mul_bug=yes
21374 fi
21375   elif test x$gcc_cv_as != x; then
21376     echo '.text' > conftest.s
21377     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; }
21383     then
21384         gcc_cv_as_cris_no_mul_bug=yes
21385     else
21386       echo "configure: failed program was" >&5
21387       cat conftest.s >&5
21388     fi
21389     rm -f conftest.o conftest.s
21390   fi
21391 fi
21392 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21393 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21394 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21395
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21398 _ACEOF
21399
21400 fi
21401     ;;
21402
21403   sparc*-*-*)
21404     echo "$as_me:$LINENO: checking assembler for .register" >&5
21405 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21406 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21407   echo $ECHO_N "(cached) $ECHO_C" >&6
21408 else
21409   gcc_cv_as_sparc_register_op=no
21410   if test x$gcc_cv_as != x; then
21411     echo '.register %g2, #scratch' > conftest.s
21412     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414   (eval $ac_try) 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); }; }
21418     then
21419         gcc_cv_as_sparc_register_op=yes
21420     else
21421       echo "configure: failed program was" >&5
21422       cat conftest.s >&5
21423     fi
21424     rm -f conftest.o conftest.s
21425   fi
21426 fi
21427 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21428 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21429 if test $gcc_cv_as_sparc_register_op = yes; then
21430
21431 cat >>confdefs.h <<\_ACEOF
21432 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21433 _ACEOF
21434
21435 fi
21436
21437     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21438 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21439 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442   gcc_cv_as_sparc_relax=no
21443   if test x$gcc_cv_as != x; then
21444     echo '.text' > conftest.s
21445     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447   (eval $ac_try) 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }
21451     then
21452         gcc_cv_as_sparc_relax=yes
21453     else
21454       echo "configure: failed program was" >&5
21455       cat conftest.s >&5
21456     fi
21457     rm -f conftest.o conftest.s
21458   fi
21459 fi
21460 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21461 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21462 if test $gcc_cv_as_sparc_relax = yes; then
21463
21464 cat >>confdefs.h <<\_ACEOF
21465 #define HAVE_AS_RELAX_OPTION 1
21466 _ACEOF
21467
21468 fi
21469
21470     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21471 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21472 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21473   echo $ECHO_N "(cached) $ECHO_C" >&6
21474 else
21475   gcc_cv_as_sparc_ua_pcrel=no
21476   if test x$gcc_cv_as != x; then
21477     echo '.text
21478 foo:
21479         nop
21480 .data
21481 .align 4
21482 .byte 0
21483 .uaword %r_disp32(foo)' > conftest.s
21484     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486   (eval $ac_try) 2>&5
21487   ac_status=$?
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); }; }
21490     then
21491         if test x$gcc_cv_ld != x \
21492        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21493          gcc_cv_as_sparc_ua_pcrel=yes
21494        fi
21495        rm -f conftest
21496     else
21497       echo "configure: failed program was" >&5
21498       cat conftest.s >&5
21499     fi
21500     rm -f conftest.o conftest.s
21501   fi
21502 fi
21503 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21504 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21505 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21506
21507 cat >>confdefs.h <<\_ACEOF
21508 #define HAVE_AS_SPARC_UA_PCREL 1
21509 _ACEOF
21510
21511
21512       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21513 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21514 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   gcc_cv_as_sparc_ua_pcrel_hidden=no
21518   if test x$gcc_cv_as != x; then
21519     echo '.data
21520 .align 4
21521 .byte 0x31
21522 .uaword %r_disp32(foo)
21523 .byte 0x32, 0x33, 0x34
21524 .global foo
21525 .hidden foo
21526 foo:
21527 .skip 4' > conftest.s
21528     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530   (eval $ac_try) 2>&5
21531   ac_status=$?
21532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533   (exit $ac_status); }; }
21534     then
21535         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21536          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21537          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21538             | grep ' 31000000 07323334' > /dev/null 2>&1; then
21539             if $gcc_cv_objdump -R conftest 2> /dev/null \
21540                | grep 'DISP32' > /dev/null 2>&1; then
21541                 :
21542             else
21543                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21544             fi
21545          fi
21546          rm -f conftest
21547     else
21548       echo "configure: failed program was" >&5
21549       cat conftest.s >&5
21550     fi
21551     rm -f conftest.o conftest.s
21552   fi
21553 fi
21554 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21555 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21556 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21557
21558 cat >>confdefs.h <<\_ACEOF
21559 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21560 _ACEOF
21561
21562 fi
21563
21564 fi # unaligned pcrel relocs
21565
21566     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21567 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21568 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571   gcc_cv_as_sparc_offsetable_lo10=no
21572   if test x$gcc_cv_as != x; then
21573     echo '.text
21574         or %g1, %lo(ab) + 12, %g1
21575         or %g1, %lo(ab + 12), %g1' > conftest.s
21576     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
21577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578   (eval $ac_try) 2>&5
21579   ac_status=$?
21580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581   (exit $ac_status); }; }
21582     then
21583         if test x$gcc_cv_objdump != x \
21584        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21585           | grep ' 82106000 82106000' > /dev/null 2>&1; then
21586          gcc_cv_as_sparc_offsetable_lo10=yes
21587        fi
21588     else
21589       echo "configure: failed program was" >&5
21590       cat conftest.s >&5
21591     fi
21592     rm -f conftest.o conftest.s
21593   fi
21594 fi
21595 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21596 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21597 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21598
21599 cat >>confdefs.h <<\_ACEOF
21600 #define HAVE_AS_OFFSETABLE_LO10 1
21601 _ACEOF
21602
21603 fi
21604     ;;
21605
21606   i[34567]86-*-* | x86_64-*-*)
21607     case $target_os in
21608       cygwin* | pe | mingw32*)
21609         # Used for DWARF 2 in PE
21610         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21611 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21612 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21613   echo $ECHO_N "(cached) $ECHO_C" >&6
21614 else
21615   gcc_cv_as_ix86_pe_secrel32=no
21616     if test $in_tree_gas = yes; then
21617     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21618   then gcc_cv_as_ix86_pe_secrel32=yes
21619 fi
21620   elif test x$gcc_cv_as != x; then
21621     echo '.text
21622 foo:    nop
21623 .data
21624         .secrel32 foo' > conftest.s
21625     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627   (eval $ac_try) 2>&5
21628   ac_status=$?
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); }; }
21631     then
21632         if test x$gcc_cv_ld != x \
21633            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21634              gcc_cv_as_ix86_pe_secrel32=yes
21635            fi
21636            rm -f conftest
21637     else
21638       echo "configure: failed program was" >&5
21639       cat conftest.s >&5
21640     fi
21641     rm -f conftest.o conftest.s
21642   fi
21643 fi
21644 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21645 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21646 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21647
21648 cat >>confdefs.h <<\_ACEOF
21649 #define HAVE_GAS_PE_SECREL32_RELOC 1
21650 _ACEOF
21651
21652 fi
21653         ;;
21654     esac
21655
21656     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21657 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21658 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   gcc_cv_as_ix86_filds_fists=no
21662     if test $in_tree_gas = yes; then
21663     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21664   then gcc_cv_as_ix86_filds_fists=yes
21665 fi
21666   elif test x$gcc_cv_as != x; then
21667     echo 'filds mem; fists mem' > conftest.s
21668     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; }
21674     then
21675         gcc_cv_as_ix86_filds_fists=yes
21676     else
21677       echo "configure: failed program was" >&5
21678       cat conftest.s >&5
21679     fi
21680     rm -f conftest.o conftest.s
21681   fi
21682 fi
21683 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21684 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21685 if test $gcc_cv_as_ix86_filds_fists = yes; then
21686
21687 cat >>confdefs.h <<\_ACEOF
21688 #define HAVE_GAS_FILDS_FISTS 1
21689 _ACEOF
21690
21691 fi
21692
21693     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21694 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21695 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21696   echo $ECHO_N "(cached) $ECHO_C" >&6
21697 else
21698   gcc_cv_as_ix86_cmov_sun_syntax=no
21699   if test x$gcc_cv_as != x; then
21700     echo 'cmovl.l %edx, %eax' > conftest.s
21701     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703   (eval $ac_try) 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; }
21707     then
21708         gcc_cv_as_ix86_cmov_sun_syntax=yes
21709     else
21710       echo "configure: failed program was" >&5
21711       cat conftest.s >&5
21712     fi
21713     rm -f conftest.o conftest.s
21714   fi
21715 fi
21716 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21717 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21718 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21719
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21722 _ACEOF
21723
21724 fi
21725
21726     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
21727 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
21728 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
21729   echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731   gcc_cv_as_ix86_ffreep=no
21732   if test x$gcc_cv_as != x; then
21733     echo 'ffreep %st(1)' > conftest.s
21734     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }
21740     then
21741         gcc_cv_as_ix86_ffreep=yes
21742     else
21743       echo "configure: failed program was" >&5
21744       cat conftest.s >&5
21745     fi
21746     rm -f conftest.o conftest.s
21747   fi
21748 fi
21749 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
21750 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
21751 if test $gcc_cv_as_ix86_ffreep = yes; then
21752
21753 cat >>confdefs.h <<\_ACEOF
21754 #define HAVE_AS_IX86_FFREEP 1
21755 _ACEOF
21756
21757 fi
21758
21759     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
21760 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
21761 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   gcc_cv_as_ix86_sahf=no
21765   if test x$gcc_cv_as != x; then
21766     echo 'sahf' > conftest.s
21767     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }
21773     then
21774         gcc_cv_as_ix86_sahf=yes
21775     else
21776       echo "configure: failed program was" >&5
21777       cat conftest.s >&5
21778     fi
21779     rm -f conftest.o conftest.s
21780   fi
21781 fi
21782 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
21783 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
21784 if test $gcc_cv_as_ix86_sahf = yes; then
21785
21786 cat >>confdefs.h <<\_ACEOF
21787 #define HAVE_AS_IX86_SAHF 1
21788 _ACEOF
21789
21790 fi
21791
21792     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
21793 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
21794 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797   gcc_cv_as_ix86_diff_sect_delta=no
21798   if test x$gcc_cv_as != x; then
21799     echo '.section .rodata
21800 .L1:
21801         .long .L2-.L1
21802         .long .L3-.L1
21803         .text
21804 .L3:    nop
21805 .L2:    nop' > conftest.s
21806     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; }
21812     then
21813         gcc_cv_as_ix86_diff_sect_delta=yes
21814     else
21815       echo "configure: failed program was" >&5
21816       cat conftest.s >&5
21817     fi
21818     rm -f conftest.o conftest.s
21819   fi
21820 fi
21821 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
21822 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
21823 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
21824
21825 cat >>confdefs.h <<\_ACEOF
21826 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
21827 _ACEOF
21828
21829 fi
21830
21831     # This one is used unconditionally by i386.[ch]; it is to be defined
21832     # to 1 if the feature is present, 0 otherwise.
21833     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
21834 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
21835 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   gcc_cv_as_ix86_gotoff_in_data=no
21839     if test $in_tree_gas = yes; then
21840     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21841   then gcc_cv_as_ix86_gotoff_in_data=yes
21842 fi
21843   elif test x$gcc_cv_as != x; then
21844     echo '      .text
21845 .L0:
21846         nop
21847         .data
21848         .long .L0@GOTOFF' > conftest.s
21849     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21851   (eval $ac_try) 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); }; }
21855     then
21856         gcc_cv_as_ix86_gotoff_in_data=yes
21857     else
21858       echo "configure: failed program was" >&5
21859       cat conftest.s >&5
21860     fi
21861     rm -f conftest.o conftest.s
21862   fi
21863 fi
21864 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
21865 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
21866
21867
21868 cat >>confdefs.h <<_ACEOF
21869 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
21870 _ACEOF
21871
21872     ;;
21873
21874   ia64*-*-*)
21875     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
21876 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
21877 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
21878   echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
21881     if test $in_tree_gas = yes; then
21882     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21883   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
21884 fi
21885   elif test x$gcc_cv_as != x; then
21886     echo '      .text
21887         addl r15 = @ltoffx(x#), gp
21888         ;;
21889         ld8.mov r16 = [r15], x#' > conftest.s
21890     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; }
21896     then
21897         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
21898     else
21899       echo "configure: failed program was" >&5
21900       cat conftest.s >&5
21901     fi
21902     rm -f conftest.o conftest.s
21903   fi
21904 fi
21905 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
21906 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
21907 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
21908
21909 cat >>confdefs.h <<\_ACEOF
21910 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
21911 _ACEOF
21912
21913 fi
21914
21915     ;;
21916
21917   powerpc*-*-*)
21918     case $target in
21919       *-*-aix*) conftest_s='    .machine "pwr5"
21920         .csect .text[PR]
21921         mfcr 3,128';;
21922       *-*-darwin*)
21923         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
21924 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
21925 if test "${gcc_cv_as_machine_directive+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   gcc_cv_as_machine_directive=no
21929   if test x$gcc_cv_as != x; then
21930     echo '      .machine ppc7400' > conftest.s
21931     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }
21937     then
21938         gcc_cv_as_machine_directive=yes
21939     else
21940       echo "configure: failed program was" >&5
21941       cat conftest.s >&5
21942     fi
21943     rm -f conftest.o conftest.s
21944   fi
21945 fi
21946 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
21947 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
21948
21949         if test x$gcc_cv_as_machine_directive != xyes; then
21950           echo "*** This target requires an assembler supporting \".machine\"" >&2
21951           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
21952           test x$build = x$target && exit 1
21953         fi
21954         conftest_s='    .text
21955         mfcr r3,128';;
21956       *) conftest_s='   .machine power4
21957         .text
21958         mfcr 3,128';;
21959     esac
21960
21961     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
21962 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
21963 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966   gcc_cv_as_powerpc_mfcrf=no
21967     if test $in_tree_gas = yes; then
21968     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
21969   then gcc_cv_as_powerpc_mfcrf=yes
21970 fi
21971   elif test x$gcc_cv_as != x; then
21972     echo "$conftest_s" > conftest.s
21973     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; }
21979     then
21980         gcc_cv_as_powerpc_mfcrf=yes
21981     else
21982       echo "configure: failed program was" >&5
21983       cat conftest.s >&5
21984     fi
21985     rm -f conftest.o conftest.s
21986   fi
21987 fi
21988 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
21989 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
21990 if test $gcc_cv_as_powerpc_mfcrf = yes; then
21991
21992 cat >>confdefs.h <<\_ACEOF
21993 #define HAVE_AS_MFCRF 1
21994 _ACEOF
21995
21996 fi
21997
21998     case $target in
21999       *-*-aix*) conftest_s='    .machine "pwr5"
22000         .csect .text[PR]
22001         popcntb 3,3';;
22002       *) conftest_s='   .machine power5
22003         .text
22004         popcntb 3,3';;
22005     esac
22006
22007     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22008 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22009 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22010   echo $ECHO_N "(cached) $ECHO_C" >&6
22011 else
22012   gcc_cv_as_powerpc_popcntb=no
22013     if test $in_tree_gas = yes; then
22014     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22015   then gcc_cv_as_powerpc_popcntb=yes
22016 fi
22017   elif test x$gcc_cv_as != x; then
22018     echo "$conftest_s" > conftest.s
22019     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021   (eval $ac_try) 2>&5
22022   ac_status=$?
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); }; }
22025     then
22026         gcc_cv_as_powerpc_popcntb=yes
22027     else
22028       echo "configure: failed program was" >&5
22029       cat conftest.s >&5
22030     fi
22031     rm -f conftest.o conftest.s
22032   fi
22033 fi
22034 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22035 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22036 if test $gcc_cv_as_powerpc_popcntb = yes; then
22037
22038 cat >>confdefs.h <<\_ACEOF
22039 #define HAVE_AS_POPCNTB 1
22040 _ACEOF
22041
22042 fi
22043
22044     case $target in
22045       *-*-aix*) conftest_s='    .machine "pwr5x"
22046         .csect .text[PR]
22047         frin 1,1';;
22048       *) conftest_s='   .machine power5
22049         .text
22050         frin 1,1';;
22051     esac
22052
22053     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22054 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22055 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22056   echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058   gcc_cv_as_powerpc_fprnd=no
22059     if test $in_tree_gas = yes; then
22060     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22061   then gcc_cv_as_powerpc_fprnd=yes
22062 fi
22063   elif test x$gcc_cv_as != x; then
22064     echo "$conftest_s" > conftest.s
22065     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067   (eval $ac_try) 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); }; }
22071     then
22072         gcc_cv_as_powerpc_fprnd=yes
22073     else
22074       echo "configure: failed program was" >&5
22075       cat conftest.s >&5
22076     fi
22077     rm -f conftest.o conftest.s
22078   fi
22079 fi
22080 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22081 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22082 if test $gcc_cv_as_powerpc_fprnd = yes; then
22083
22084 cat >>confdefs.h <<\_ACEOF
22085 #define HAVE_AS_FPRND 1
22086 _ACEOF
22087
22088 fi
22089
22090     case $target in
22091       *-*-aix*) conftest_s='    .machine "pwr6"
22092         .csect .text[PR]
22093         mffgpr 1,3';;
22094       *) conftest_s='   .machine power6
22095         .text
22096         mffgpr 1,3';;
22097     esac
22098
22099     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22100 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22101 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104   gcc_cv_as_powerpc_mfpgpr=no
22105     if test $in_tree_gas = yes; then
22106     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22107   then gcc_cv_as_powerpc_mfpgpr=yes
22108 fi
22109   elif test x$gcc_cv_as != x; then
22110     echo "$conftest_s" > conftest.s
22111     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113   (eval $ac_try) 2>&5
22114   ac_status=$?
22115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); }; }
22117     then
22118         gcc_cv_as_powerpc_mfpgpr=yes
22119     else
22120       echo "configure: failed program was" >&5
22121       cat conftest.s >&5
22122     fi
22123     rm -f conftest.o conftest.s
22124   fi
22125 fi
22126 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22127 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22128 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22129
22130 cat >>confdefs.h <<\_ACEOF
22131 #define HAVE_AS_MFPGPR 1
22132 _ACEOF
22133
22134 fi
22135
22136     case $target in
22137       *-*-aix*) conftest_s='    .csect .text[PR]
22138 LCF..0:
22139         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22140       *-*-darwin*)
22141         conftest_s='    .text
22142 LCF0:
22143         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22144       *) conftest_s='   .text
22145 .LCF0:
22146         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22147     esac
22148
22149     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22150 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22151 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   gcc_cv_as_powerpc_rel16=no
22155     if test $in_tree_gas = yes; then
22156     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22157   then gcc_cv_as_powerpc_rel16=yes
22158 fi
22159   elif test x$gcc_cv_as != x; then
22160     echo "$conftest_s" > conftest.s
22161     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; }
22167     then
22168         gcc_cv_as_powerpc_rel16=yes
22169     else
22170       echo "configure: failed program was" >&5
22171       cat conftest.s >&5
22172     fi
22173     rm -f conftest.o conftest.s
22174   fi
22175 fi
22176 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22177 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22178 if test $gcc_cv_as_powerpc_rel16 = yes; then
22179
22180 cat >>confdefs.h <<\_ACEOF
22181 #define HAVE_AS_REL16 1
22182 _ACEOF
22183
22184 fi
22185
22186     case $target in
22187       *-*-aix*) conftest_s='    .machine "pwr6"
22188         .csect .text[PR]
22189         cmpb 3,4,5';;
22190       *) conftest_s='   .machine power6
22191         .text
22192         cmpb 3,4,5';;
22193     esac
22194
22195     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22196 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22197 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   gcc_cv_as_powerpc_cmpb=no
22201     if test $in_tree_gas = yes; then
22202     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22203   then gcc_cv_as_powerpc_cmpb=yes
22204 fi
22205   elif test x$gcc_cv_as != x; then
22206     echo "$conftest_s" > conftest.s
22207     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); }; }
22213     then
22214         gcc_cv_as_powerpc_cmpb=yes
22215     else
22216       echo "configure: failed program was" >&5
22217       cat conftest.s >&5
22218     fi
22219     rm -f conftest.o conftest.s
22220   fi
22221 fi
22222 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22223 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22224 if test $gcc_cv_as_powerpc_cmpb = yes; then
22225
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_AS_CMPB 1
22228 _ACEOF
22229
22230 fi
22231
22232     case $target in
22233       *-*-aix*) conftest_s='    .machine "pwr6"
22234         .csect .text[PR]
22235         dadd 1,2,3';;
22236       *) conftest_s='   .machine power6
22237         .text
22238         dadd 1,2,3';;
22239     esac
22240
22241     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22242 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22243 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22244   echo $ECHO_N "(cached) $ECHO_C" >&6
22245 else
22246   gcc_cv_as_powerpc_dfp=no
22247     if test $in_tree_gas = yes; then
22248     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22249   then gcc_cv_as_powerpc_dfp=yes
22250 fi
22251   elif test x$gcc_cv_as != x; then
22252     echo "$conftest_s" > conftest.s
22253     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; }
22259     then
22260         gcc_cv_as_powerpc_dfp=yes
22261     else
22262       echo "configure: failed program was" >&5
22263       cat conftest.s >&5
22264     fi
22265     rm -f conftest.o conftest.s
22266   fi
22267 fi
22268 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22269 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22270 if test $gcc_cv_as_powerpc_dfp = yes; then
22271
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_AS_DFP 1
22274 _ACEOF
22275
22276 fi
22277
22278     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22279 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22280 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22281   echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283   gcc_cv_as_powerpc_gnu_attribute=no
22284     if test $in_tree_gas = yes; then
22285     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22286   then gcc_cv_as_powerpc_gnu_attribute=yes
22287 fi
22288   elif test x$gcc_cv_as != x; then
22289     echo '.gnu_attribute 4,1' > conftest.s
22290     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292   (eval $ac_try) 2>&5
22293   ac_status=$?
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); }; }
22296     then
22297         gcc_cv_as_powerpc_gnu_attribute=yes
22298     else
22299       echo "configure: failed program was" >&5
22300       cat conftest.s >&5
22301     fi
22302     rm -f conftest.o conftest.s
22303   fi
22304 fi
22305 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22306 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22307 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22308
22309 cat >>confdefs.h <<\_ACEOF
22310 #define HAVE_AS_GNU_ATTRIBUTE 1
22311 _ACEOF
22312
22313 fi
22314     ;;
22315
22316   mips*-*-*)
22317     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22318 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22319 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22320   echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322   gcc_cv_as_mips_explicit_relocs=no
22323     if test $in_tree_gas = yes; then
22324     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22325   then gcc_cv_as_mips_explicit_relocs=yes
22326 fi
22327   elif test x$gcc_cv_as != x; then
22328     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
22329     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331   (eval $ac_try) 2>&5
22332   ac_status=$?
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); }; }
22335     then
22336         gcc_cv_as_mips_explicit_relocs=yes
22337     else
22338       echo "configure: failed program was" >&5
22339       cat conftest.s >&5
22340     fi
22341     rm -f conftest.o conftest.s
22342   fi
22343 fi
22344 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22345 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22346 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22347   if test x$target_cpu_default = x
22348        then target_cpu_default=MASK_EXPLICIT_RELOCS
22349        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22350        fi
22351 fi
22352     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22353 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22354 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22355   echo $ECHO_N "(cached) $ECHO_C" >&6
22356 else
22357   gcc_cv_as_mips_no_shared=no
22358     if test $in_tree_gas = yes; then
22359     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22360   then gcc_cv_as_mips_no_shared=yes
22361 fi
22362   elif test x$gcc_cv_as != x; then
22363     echo 'nop' > conftest.s
22364     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366   (eval $ac_try) 2>&5
22367   ac_status=$?
22368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369   (exit $ac_status); }; }
22370     then
22371         gcc_cv_as_mips_no_shared=yes
22372     else
22373       echo "configure: failed program was" >&5
22374       cat conftest.s >&5
22375     fi
22376     rm -f conftest.o conftest.s
22377   fi
22378 fi
22379 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22380 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22381 if test $gcc_cv_as_mips_no_shared = yes; then
22382
22383 cat >>confdefs.h <<\_ACEOF
22384 #define HAVE_AS_NO_SHARED 1
22385 _ACEOF
22386
22387 fi
22388
22389     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22390 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22391 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   gcc_cv_as_mips_gnu_attribute=no
22395     if test $in_tree_gas = yes; then
22396     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22397   then gcc_cv_as_mips_gnu_attribute=yes
22398 fi
22399   elif test x$gcc_cv_as != x; then
22400     echo '.gnu_attribute 4,1' > conftest.s
22401     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403   (eval $ac_try) 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); }; }
22407     then
22408         gcc_cv_as_mips_gnu_attribute=yes
22409     else
22410       echo "configure: failed program was" >&5
22411       cat conftest.s >&5
22412     fi
22413     rm -f conftest.o conftest.s
22414   fi
22415 fi
22416 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22417 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22418 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22419
22420 cat >>confdefs.h <<\_ACEOF
22421 #define HAVE_AS_GNU_ATTRIBUTE 1
22422 _ACEOF
22423
22424 fi
22425
22426     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22427 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22428 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22429   echo $ECHO_N "(cached) $ECHO_C" >&6
22430 else
22431   gcc_cv_as_mips_dtprelword=no
22432     if test $in_tree_gas = yes; then
22433     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22434   then gcc_cv_as_mips_dtprelword=yes
22435 fi
22436   elif test x$gcc_cv_as != x; then
22437     echo '.section .tdata,"awT",@progbits
22438 x:
22439         .word 2
22440         .text
22441         .dtprelword x+0x8000' > conftest.s
22442     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; }
22448     then
22449         gcc_cv_as_mips_dtprelword=yes
22450     else
22451       echo "configure: failed program was" >&5
22452       cat conftest.s >&5
22453     fi
22454     rm -f conftest.o conftest.s
22455   fi
22456 fi
22457 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22458 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22459 if test $gcc_cv_as_mips_dtprelword = yes; then
22460
22461 cat >>confdefs.h <<\_ACEOF
22462 #define HAVE_AS_DTPRELWORD 1
22463 _ACEOF
22464
22465 fi
22466     ;;
22467 esac
22468
22469 # Mips and HP-UX need the GNU assembler.
22470 # Linux on IA64 might be able to use the Intel assembler.
22471
22472 case "$target" in
22473   mips*-*-* | *-*-hpux* )
22474     if test x$gas_flag = xyes \
22475        || test x"$host" != x"$build" \
22476        || test ! -x "$gcc_cv_as" \
22477        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22478       :
22479     else
22480       echo "*** This configuration requires the GNU assembler" >&2
22481       exit 1
22482     fi
22483     ;;
22484 esac
22485
22486 # ??? Not all targets support dwarf2 debug_line, even within a version
22487 # of gas.  Moreover, we need to emit a valid instruction to trigger any
22488 # info to the output file.  So, as supported targets are added to gas 2.11,
22489 # add some instruction here to (also) show we expect this might work.
22490 # ??? Once 2.11 is released, probably need to add first known working
22491 # version to the per-target configury.
22492 case "$target" in
22493   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22494   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
22495   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
22496     insn="nop"
22497     ;;
22498   ia64*-*-* | s390*-*-*)
22499     insn="nop 0"
22500     ;;
22501   mmix-*-*)
22502     insn="swym 0"
22503     ;;
22504 esac
22505 if test x"$insn" != x; then
22506  conftest_s="\
22507         .file 1 \"conftest.s\"
22508         .loc 1 3 0
22509         $insn"
22510  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22511 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22512 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22513   echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515   gcc_cv_as_dwarf2_debug_line=no
22516     if test $in_tree_gas = yes; then
22517     if test $in_tree_gas_is_elf = yes \
22518   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22519   then gcc_cv_as_dwarf2_debug_line=yes
22520 fi
22521   elif test x$gcc_cv_as != x; then
22522     echo "$conftest_s" > conftest.s
22523     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525   (eval $ac_try) 2>&5
22526   ac_status=$?
22527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528   (exit $ac_status); }; }
22529     then
22530         if test x$gcc_cv_objdump != x \
22531    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22532       | grep debug_line > /dev/null 2>&1; then
22533      gcc_cv_as_dwarf2_debug_line=yes
22534    fi
22535     else
22536       echo "configure: failed program was" >&5
22537       cat conftest.s >&5
22538     fi
22539     rm -f conftest.o conftest.s
22540   fi
22541 fi
22542 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22543 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22544
22545
22546 # The .debug_line file table must be in the exact order that
22547 # we specified the files, since these indices are also used
22548 # by DW_AT_decl_file.  Approximate this test by testing if
22549 # the assembler bitches if the same index is assigned twice.
22550  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22551 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22552 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22553   echo $ECHO_N "(cached) $ECHO_C" >&6
22554 else
22555   gcc_cv_as_dwarf2_file_buggy=no
22556   if test x$gcc_cv_as != x; then
22557     echo '      .file 1 "foo.s"
22558         .file 1 "bar.s"' > conftest.s
22559     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561   (eval $ac_try) 2>&5
22562   ac_status=$?
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); }; }
22565     then
22566         gcc_cv_as_dwarf2_file_buggy=yes
22567     else
22568       echo "configure: failed program was" >&5
22569       cat conftest.s >&5
22570     fi
22571     rm -f conftest.o conftest.s
22572   fi
22573 fi
22574 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22575 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22576
22577
22578  if test $gcc_cv_as_dwarf2_debug_line = yes \
22579  && test $gcc_cv_as_dwarf2_file_buggy = no; then
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22583 _ACEOF
22584
22585  fi
22586
22587  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22588 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22589 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   gcc_cv_as_gdwarf2_flag=no
22593     if test $in_tree_gas = yes; then
22594     if test $in_tree_gas_is_elf = yes \
22595   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22596   then gcc_cv_as_gdwarf2_flag=yes
22597 fi
22598   elif test x$gcc_cv_as != x; then
22599     echo "$insn" > conftest.s
22600     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602   (eval $ac_try) 2>&5
22603   ac_status=$?
22604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605   (exit $ac_status); }; }
22606     then
22607         gcc_cv_as_gdwarf2_flag=yes
22608     else
22609       echo "configure: failed program was" >&5
22610       cat conftest.s >&5
22611     fi
22612     rm -f conftest.o conftest.s
22613   fi
22614 fi
22615 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22616 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22617 if test $gcc_cv_as_gdwarf2_flag = yes; then
22618
22619 cat >>confdefs.h <<\_ACEOF
22620 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22621 _ACEOF
22622
22623 fi
22624
22625  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22626 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22627 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630   gcc_cv_as_gstabs_flag=no
22631     if test $in_tree_gas = yes; then
22632     if test $in_tree_gas_is_elf = yes \
22633   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22634   then gcc_cv_as_gstabs_flag=yes
22635 fi
22636   elif test x$gcc_cv_as != x; then
22637     echo "$insn" > conftest.s
22638     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }
22644     then
22645         # The native Solaris 9/Intel assembler doesn't understand --gstabs
22646    # and warns about it, but still exits successfully.  So check for
22647    # this.
22648    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650   (eval $ac_try) 2>&5
22651   ac_status=$?
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); }; }
22654    then :
22655    else gcc_cv_as_gstabs_flag=yes
22656    fi
22657     else
22658       echo "configure: failed program was" >&5
22659       cat conftest.s >&5
22660     fi
22661     rm -f conftest.o conftest.s
22662   fi
22663 fi
22664 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22665 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22666 if test $gcc_cv_as_gstabs_flag = yes; then
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22670 _ACEOF
22671
22672 fi
22673
22674  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22675 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22676 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   gcc_cv_as_debug_prefix_map_flag=no
22680     if test $in_tree_gas = yes; then
22681     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22682   then gcc_cv_as_debug_prefix_map_flag=yes
22683 fi
22684   elif test x$gcc_cv_as != x; then
22685     echo "$insn" > conftest.s
22686     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688   (eval $ac_try) 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); }; }
22692     then
22693         gcc_cv_as_debug_prefix_map_flag=yes
22694     else
22695       echo "configure: failed program was" >&5
22696       cat conftest.s >&5
22697     fi
22698     rm -f conftest.o conftest.s
22699   fi
22700 fi
22701 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22702 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22703 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22704
22705 cat >>confdefs.h <<\_ACEOF
22706 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22707 _ACEOF
22708
22709 fi
22710 fi
22711
22712 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22713 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22714 if test "${gcc_cv_as_line_zero+set}" = set; then
22715   echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717   gcc_cv_as_line_zero=no
22718   if test $in_tree_gas = yes; then
22719     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22720   then gcc_cv_as_line_zero=yes
22721 fi
22722   elif test "x$gcc_cv_as" != x; then
22723     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22724     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726   (eval $ac_try) 2>&5
22727   ac_status=$?
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); }; } &&
22730        test "x`cat conftest.out`" = x
22731     then
22732       gcc_cv_as_line_zero=yes
22733     else
22734       echo "configure: failed program was" >&5
22735       cat conftest.s >&5
22736       echo "configure: error output was" >&5
22737       cat conftest.out >&5
22738     fi
22739     rm -f conftest.o conftest.s conftest.out
22740   fi
22741 fi
22742 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
22743 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
22744 if test "x$gcc_cv_as_line_zero" = xyes; then
22745
22746 cat >>confdefs.h <<\_ACEOF
22747 #define HAVE_AS_LINE_ZERO 1
22748 _ACEOF
22749
22750 fi
22751
22752 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
22753 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
22754 gcc_cv_ld_ro_rw_mix=unknown
22755 if test $in_tree_ld = yes ; then
22756   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 \
22757      && test $in_tree_ld_is_elf = yes; then
22758     gcc_cv_ld_ro_rw_mix=read-write
22759   fi
22760 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22761   echo '.section myfoosect, "a"' > conftest1.s
22762   echo '.section myfoosect, "aw"' > conftest2.s
22763   echo '.byte 1' >> conftest2.s
22764   echo '.section myfoosect, "a"' > conftest3.s
22765   echo '.byte 0' >> conftest3.s
22766   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22767      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22768      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22769      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22770         conftest2.o conftest3.o > /dev/null 2>&1; then
22771     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22772                          | sed -e '/myfoosect/!d' -e N`
22773     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22774       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22775         gcc_cv_ld_ro_rw_mix=read-only
22776       else
22777         gcc_cv_ld_ro_rw_mix=read-write
22778       fi
22779     fi
22780   fi
22781   rm -f conftest.* conftest[123].*
22782 fi
22783 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22784
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_LD_RO_RW_SECTION_MIXING 1
22787 _ACEOF
22788
22789 fi
22790 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
22791 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
22792
22793 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
22794 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
22795 gcc_cv_ld_eh_frame_hdr=no
22796 if test $in_tree_ld = yes ; then
22797   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 \
22798      && test $in_tree_ld_is_elf = yes; then
22799     gcc_cv_ld_eh_frame_hdr=yes
22800   fi
22801 elif test x$gcc_cv_ld != x; then
22802         # Check if linker supports --eh-frame-hdr option
22803         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
22804                 gcc_cv_ld_eh_frame_hdr=yes
22805         fi
22806 fi
22807
22808 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
22809
22810 cat >>confdefs.h <<\_ACEOF
22811 #define HAVE_LD_EH_FRAME_HDR 1
22812 _ACEOF
22813
22814 fi
22815 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
22816 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
22817
22818 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
22819 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
22820 gcc_cv_ld_pie=no
22821 if test $in_tree_ld = yes ; then
22822   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 \
22823      && test $in_tree_ld_is_elf = yes; then
22824     gcc_cv_ld_pie=yes
22825   fi
22826 elif test x$gcc_cv_ld != x; then
22827         # Check if linker supports -pie option
22828         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
22829                 gcc_cv_ld_pie=yes
22830         fi
22831 fi
22832 if test x"$gcc_cv_ld_pie" = xyes; then
22833
22834 cat >>confdefs.h <<\_ACEOF
22835 #define HAVE_LD_PIE 1
22836 _ACEOF
22837
22838 fi
22839 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
22840 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
22841
22842 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
22843 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
22844 gcc_cv_ld_eh_gc_sections=no
22845 if test $in_tree_ld = yes ; then
22846   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 \
22847      && test $in_tree_ld_is_elf = yes; then
22848     gcc_cv_ld_eh_gc_sections=yes
22849   fi
22850 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22851   cat > conftest.s <<EOF
22852         .section        .text
22853 .globl _start
22854         .type _start, @function
22855 _start:
22856         .long foo
22857         .size _start, .-_start
22858         .section        .text.foo,"ax",@progbits
22859         .type foo, @function
22860 foo:
22861         .long 0
22862         .size foo, .-foo
22863         .section        .gcc_except_table.foo,"a",@progbits
22864 .L0:
22865         .long 0
22866         .section        .eh_frame,"a",@progbits
22867         .long .L0
22868 EOF
22869   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
22870     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
22871          | grep "gc-sections option ignored" > /dev/null; then
22872       gcc_cv_ld_eh_gc_sections=no
22873     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
22874       gcc_cv_ld_eh_gc_sections=yes
22875       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
22876       if test x$gcc_cv_as_comdat_group != xyes; then
22877         gcc_cv_ld_eh_gc_sections=no
22878         cat > conftest.s <<EOF
22879         .section        .text
22880 .globl _start
22881         .type _start, @function
22882 _start:
22883         .long foo
22884         .size _start, .-_start
22885         .section        .gnu.linkonce.t.foo,"ax",@progbits
22886         .type foo, @function
22887 foo:
22888         .long 0
22889         .size foo, .-foo
22890         .section        .gcc_except_table.foo,"a",@progbits
22891 .L0:
22892         .long 0
22893         .section        .eh_frame,"a",@progbits
22894         .long .L0
22895 EOF
22896         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
22897           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
22898                | grep "gc-sections option ignored" > /dev/null; then
22899             gcc_cv_ld_eh_gc_sections=no
22900           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
22901             gcc_cv_ld_eh_gc_sections=yes
22902           fi
22903         fi
22904       fi
22905     fi
22906   fi
22907   rm -f conftest.s conftest.o conftest
22908 fi
22909 case "$target" in
22910   hppa*-*-linux*)
22911     # ??? This apparently exposes a binutils bug with PC-relative relocations.
22912     gcc_cv_ld_eh_gc_sections=no
22913     ;;
22914 esac
22915 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
22916
22917 cat >>confdefs.h <<\_ACEOF
22918 #define HAVE_LD_EH_GC_SECTIONS 1
22919 _ACEOF
22920
22921 fi
22922 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
22923 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
22924
22925 # --------
22926 # UNSORTED
22927 # --------
22928
22929 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
22930 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
22931 if test "${gcc_cv_ld_as_needed+set}" = set; then
22932   echo $ECHO_N "(cached) $ECHO_C" >&6
22933 else
22934   gcc_cv_ld_as_needed=no
22935 if test $in_tree_ld = yes ; then
22936   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 \
22937      && test $in_tree_ld_is_elf = yes; then
22938     gcc_cv_ld_as_needed=yes
22939   fi
22940 elif test x$gcc_cv_ld != x; then
22941         # Check if linker supports --as-needed and --no-as-needed options
22942         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
22943                 gcc_cv_ld_as_needed=yes
22944         fi
22945 fi
22946
22947 fi
22948 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
22949 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
22950 if test x"$gcc_cv_ld_as_needed" = xyes; then
22951
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LD_AS_NEEDED 1
22954 _ACEOF
22955
22956 fi
22957
22958 case "$target:$tm_file" in
22959   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
22960     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
22961 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
22962 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
22963   echo $ECHO_N "(cached) $ECHO_C" >&6
22964 else
22965   gcc_cv_ld_no_dot_syms=no
22966     if test $in_tree_ld = yes ; then
22967       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
22968         gcc_cv_ld_no_dot_syms=yes
22969       fi
22970     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
22971       cat > conftest1.s <<EOF
22972         .text
22973         bl .foo
22974 EOF
22975       cat > conftest2.s <<EOF
22976         .section ".opd","aw"
22977         .align 3
22978         .globl foo
22979         .type foo,@function
22980 foo:
22981         .quad .LEfoo,.TOC.@tocbase,0
22982         .text
22983 .LEfoo:
22984         blr
22985         .size foo,.-.LEfoo
22986 EOF
22987       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
22988          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
22989          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
22990         gcc_cv_ld_no_dot_syms=yes
22991       fi
22992       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
22993     fi
22994
22995 fi
22996 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
22997 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
22998     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
22999
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_LD_NO_DOT_SYMS 1
23002 _ACEOF
23003
23004     fi
23005     ;;
23006 esac
23007
23008 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23009 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23010 if test "${gcc_cv_ld_sysroot+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013   gcc_cv_ld_sysroot=no
23014   if test $in_tree_ld = yes ; then
23015       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
23016         gcc_cv_ld_sysroot=yes
23017       fi
23018   elif test x$gcc_cv_ld != x; then
23019     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23020       gcc_cv_ld_sysroot=yes
23021     fi
23022   fi
23023 fi
23024 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23025 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23026 if test x"$gcc_cv_ld_sysroot" = xyes; then
23027
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_LD_SYSROOT 1
23030 _ACEOF
23031
23032 fi
23033
23034 if test x$with_sysroot = x && test x$host = x$target \
23035    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23036    && test "$prefix" != "NONE"; then
23037
23038 cat >>confdefs.h <<_ACEOF
23039 #define PREFIX_INCLUDE_DIR "$prefix/include"
23040 _ACEOF
23041
23042 fi
23043
23044 # Test for stack protector support in target C library.
23045 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23046 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23047 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23048   echo $ECHO_N "(cached) $ECHO_C" >&6
23049 else
23050   gcc_cv_libc_provides_ssp=no
23051     case "$target" in
23052        *-*-linux*)
23053       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23054         if test "x$with_sysroot" = x; then
23055           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23056         elif test "x$with_build_sysroot" != "x"; then
23057           glibc_header_dir="${with_build_sysroot}/usr/include"
23058         elif test "x$with_sysroot" = xyes; then
23059           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23060         else
23061           glibc_header_dir="${with_sysroot}/usr/include"
23062         fi
23063       else
23064         glibc_header_dir=/usr/include
23065       fi
23066       # glibc 2.4 and later provides __stack_chk_fail and
23067       # either __stack_chk_guard, or TLS access to stack guard canary.
23068       if test -f $glibc_header_dir/features.h \
23069          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
23070             $glibc_header_dir/features.h > /dev/null; then
23071         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
23072            $glibc_header_dir/features.h > /dev/null; then
23073           gcc_cv_libc_provides_ssp=yes
23074         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
23075              $glibc_header_dir/features.h > /dev/null \
23076              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
23077              $glibc_header_dir/features.h > /dev/null; then
23078           gcc_cv_libc_provides_ssp=yes
23079         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
23080              $glibc_header_dir/features.h > /dev/null && \
23081              test -f $glibc_header_dir/bits/uClibc_config.h && \
23082              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
23083              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23084           gcc_cv_libc_provides_ssp=yes
23085         fi
23086       fi
23087         ;;
23088        *-*-darwin*)
23089          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23090 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23091 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23092   echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094   cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23102 #define __stack_chk_fail innocuous___stack_chk_fail
23103
23104 /* System header to define __stub macros and hopefully few prototypes,
23105     which can conflict with char __stack_chk_fail (); below.
23106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107     <limits.h> exists even on freestanding compilers.  */
23108
23109 #ifdef __STDC__
23110 # include <limits.h>
23111 #else
23112 # include <assert.h>
23113 #endif
23114
23115 #undef __stack_chk_fail
23116
23117 /* Override any gcc2 internal prototype to avoid an error.  */
23118 #ifdef __cplusplus
23119 extern "C"
23120 {
23121 #endif
23122 /* We use char because int might match the return type of a gcc2
23123    builtin and then its argument prototype would still apply.  */
23124 char __stack_chk_fail ();
23125 /* The GNU C library defines this for functions which it implements
23126     to always fail with ENOSYS.  Some functions are actually named
23127     something starting with __ and the normal name is an alias.  */
23128 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23129 choke me
23130 #else
23131 char (*f) () = __stack_chk_fail;
23132 #endif
23133 #ifdef __cplusplus
23134 }
23135 #endif
23136
23137 int
23138 main ()
23139 {
23140 return f != __stack_chk_fail;
23141   ;
23142   return 0;
23143 }
23144 _ACEOF
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147   (eval $ac_link) 2>conftest.er1
23148   ac_status=$?
23149   grep -v '^ *+' conftest.er1 >conftest.err
23150   rm -f conftest.er1
23151   cat conftest.err >&5
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } &&
23154          { ac_try='test -z "$ac_c_werror_flag"
23155                          || test ! -s conftest.err'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; } &&
23161          { ac_try='test -s conftest$ac_exeext'
23162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163   (eval $ac_try) 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); }; }; then
23167   ac_cv_func___stack_chk_fail=yes
23168 else
23169   echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ac_cv_func___stack_chk_fail=no
23173 fi
23174 rm -f conftest.err conftest.$ac_objext \
23175       conftest$ac_exeext conftest.$ac_ext
23176 fi
23177 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23178 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23179 if test $ac_cv_func___stack_chk_fail = yes; then
23180   gcc_cv_libc_provides_ssp=yes
23181 else
23182   echo "no __stack_chk_fail on this target"
23183 fi
23184
23185         ;;
23186   *) gcc_cv_libc_provides_ssp=no ;;
23187     esac
23188 fi
23189 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23190 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23191
23192 if test x$gcc_cv_libc_provides_ssp = xyes; then
23193
23194 cat >>confdefs.h <<\_ACEOF
23195 #define TARGET_LIBC_PROVIDES_SSP 1
23196 _ACEOF
23197
23198 fi
23199
23200 # Check if TFmode long double should be used by default or not.
23201 # Some glibc targets used DFmode long double, but with glibc 2.4
23202 # and later they can use TFmode.
23203 case "$target" in
23204   powerpc*-*-linux* | \
23205   powerpc*-*-gnu* | \
23206   sparc*-*-linux* | \
23207   s390*-*-linux* | \
23208   alpha*-*-linux*)
23209
23210 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23211 if test "${with_long_double_128+set}" = set; then
23212   withval="$with_long_double_128"
23213   gcc_cv_target_ldbl128="$with_long_double_128"
23214 else
23215   gcc_cv_target_ldbl128=no
23216       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23217         if test "x$with_sysroot" = x; then
23218           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23219         elif test "x$with_build_sysroot" != "x"; then
23220           glibc_header_dir="${with_build_sysroot}/usr/include"
23221         elif test "x$with_sysroot" = xyes; then
23222           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23223         else
23224           glibc_header_dir="${with_sysroot}/usr/include"
23225         fi
23226       else
23227         glibc_header_dir=/usr/include
23228       fi
23229       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23230         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23231       && gcc_cv_target_ldbl128=yes
23232
23233 fi;
23234     ;;
23235 esac
23236 if test x$gcc_cv_target_ldbl128 = xyes; then
23237
23238 cat >>confdefs.h <<\_ACEOF
23239 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23240 _ACEOF
23241
23242 fi
23243
23244 # Find out what GC implementation we want, or may, use.
23245
23246 # Check whether --with-gc or --without-gc was given.
23247 if test "${with_gc+set}" = set; then
23248   withval="$with_gc"
23249   case "$withval" in
23250   page)
23251     GGC=ggc-$withval
23252     ;;
23253   zone)
23254     GGC=ggc-$withval
23255
23256 cat >>confdefs.h <<\_ACEOF
23257 #define GGC_ZONE 1
23258 _ACEOF
23259
23260     ;;
23261   *)
23262     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23263 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23264    { (exit 1); exit 1; }; }
23265     ;;
23266 esac
23267 else
23268   GGC=ggc-page
23269 fi;
23270
23271 echo "Using $GGC for garbage collection."
23272
23273 # Use the system's zlib library.
23274 zlibdir=-L../zlib
23275 zlibinc="-I\$(srcdir)/../zlib"
23276
23277 # Check whether --with-system-zlib or --without-system-zlib was given.
23278 if test "${with_system_zlib+set}" = set; then
23279   withval="$with_system_zlib"
23280   zlibdir=
23281 zlibinc=
23282
23283 fi;
23284
23285
23286
23287
23288 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23289 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23290     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23291 if test "${enable_maintainer_mode+set}" = set; then
23292   enableval="$enable_maintainer_mode"
23293   maintainer_mode=$enableval
23294 else
23295   maintainer_mode=no
23296 fi;
23297
23298 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23299 echo "${ECHO_T}$maintainer_mode" >&6
23300
23301 if test "$maintainer_mode" = "yes"; then
23302   MAINT=''
23303 else
23304   MAINT='#'
23305 fi
23306
23307 # --------------
23308 # Language hooks
23309 # --------------
23310
23311 # Make empty files to contain the specs and options for each language.
23312 # Then add #include lines to for a compiler that has specs and/or options.
23313
23314 subdirs=
23315 lang_opt_files=
23316 lang_specs_files=
23317 lang_tree_files=
23318 # These (without "all_") are set in each config-lang.in.
23319 # `language' must be a single word so is spelled singularly.
23320 all_languages=
23321 all_compilers=
23322 all_outputs='Makefile gccbug libada-mk'
23323 # List of language makefile fragments.
23324 all_lang_makefrags=
23325 # List of language subdirectory makefiles.  Deprecated.
23326 all_lang_makefiles=
23327 # Additional files for gengtype
23328 all_gtfiles="$target_gtfiles"
23329
23330 # These are the languages that are set in --enable-languages,
23331 # and are available in the GCC tree.
23332 all_selected_languages=
23333
23334 # Add the language fragments.
23335 # Languages are added via two mechanisms.  Some information must be
23336 # recorded in makefile variables, these are defined in config-lang.in.
23337 # We accumulate them and plug them into the main Makefile.
23338 # The other mechanism is a set of hooks for each of the main targets
23339 # like `clean', `install', etc.
23340
23341 language_hooks="Make-hooks"
23342
23343 for lang in ${srcdir}/*/config-lang.in
23344 do
23345         test "$lang" = "${srcdir}/*/config-lang.in" && continue
23346
23347         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
23348         if test "x$lang_alias" = x
23349         then
23350               echo "$lang doesn't set \$language." 1>&2
23351               exit 1
23352         fi
23353         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23354         subdirs="$subdirs $subdir"
23355         case ",$enable_languages," in
23356         *,$lang_alias,*)
23357             all_selected_languages="$all_selected_languages $lang_alias"
23358             if test -f $srcdir/$subdir/lang-specs.h; then
23359                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
23360             fi
23361             ;;
23362         esac
23363
23364         language=
23365         boot_language=
23366         compilers=
23367         outputs=
23368         gtfiles=
23369         subdir_requires=
23370         . ${srcdir}/$subdir/config-lang.in
23371         if test "x$language" = x
23372         then
23373                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
23374                 exit 1
23375         fi
23376
23377         ok=:
23378         case ",$enable_languages," in
23379                 *,$lang_alias,*) ;;
23380                 *)
23381                         for i in $subdir_requires; do
23382                                 test -f "${srcdir}/$i/config-lang.in" && continue
23383                                 ok=false
23384                                 break
23385                         done
23386                 ;;
23387         esac
23388         $ok || continue
23389
23390         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
23391         if test -f $srcdir/$subdir/lang.opt; then
23392             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
23393         fi
23394         if test -f $srcdir/$subdir/$subdir-tree.def; then
23395             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
23396         fi
23397         if test -f ${srcdir}/$subdir/Makefile.in
23398                 then all_lang_makefiles="$subdir/Makefile"
23399         fi
23400         all_languages="$all_languages $language"
23401         all_compilers="$all_compilers $compilers"
23402         all_outputs="$all_outputs $outputs"
23403         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23404 done
23405
23406 # Pick up gtfiles for c
23407 gtfiles=
23408 . ${srcdir}/c-config-lang.in
23409 all_gtfiles="$all_gtfiles [c] $gtfiles"
23410
23411 check_languages=
23412 for language in $all_selected_languages
23413 do
23414         check_languages="$check_languages check-$language"
23415 done
23416
23417 # We link each language in with a set of hooks, reached indirectly via
23418 # lang.${target}.  Only do so for selected languages.
23419
23420 rm -f Make-hooks
23421 touch Make-hooks
23422 target_list="all.cross start.encap rest.encap tags \
23423         install-common install-man install-info install-pdf dvi pdf \
23424         html uninstall info man srcextra srcman srcinfo \
23425         mostlyclean clean distclean maintainer-clean"
23426
23427 for t in $target_list
23428 do
23429         x=
23430         for lang in $all_selected_languages
23431         do
23432                 x="$x $lang.$t"
23433         done
23434         echo "lang.$t: $x" >> Make-hooks
23435 done
23436
23437 # --------
23438 # UNSORTED
23439 # --------
23440
23441 # Create .gdbinit.
23442
23443 echo "dir ." > .gdbinit
23444 echo "dir ${srcdir}" >> .gdbinit
23445 if test x$gdb_needs_out_file_path = xyes
23446 then
23447         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23448 fi
23449 if test "x$subdirs" != x; then
23450         for s in $subdirs
23451         do
23452                 echo "dir ${srcdir}/$s" >> .gdbinit
23453         done
23454 fi
23455 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23456
23457 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23458
23459
23460
23461 # Find a directory in which to install a shared libgcc.
23462
23463 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23464 if test "${enable_version_specific_runtime_libs+set}" = set; then
23465   enableval="$enable_version_specific_runtime_libs"
23466
23467 fi;
23468
23469
23470 # Check whether --with-slibdir or --without-slibdir was given.
23471 if test "${with_slibdir+set}" = set; then
23472   withval="$with_slibdir"
23473   slibdir="$with_slibdir"
23474 else
23475   if test "${enable_version_specific_runtime_libs+set}" = set; then
23476   slibdir='$(libsubdir)'
23477 elif test "$host" != "$target"; then
23478   slibdir='$(build_tooldir)/lib'
23479 else
23480   slibdir='$(libdir)'
23481 fi
23482 fi;
23483
23484
23485
23486 # Check whether --with-datarootdir or --without-datarootdir was given.
23487 if test "${with_datarootdir+set}" = set; then
23488   withval="$with_datarootdir"
23489   datarootdir="\${prefix}/$with_datarootdir"
23490 else
23491   datarootdir='$(prefix)/share'
23492 fi;
23493
23494
23495
23496 # Check whether --with-docdir or --without-docdir was given.
23497 if test "${with_docdir+set}" = set; then
23498   withval="$with_docdir"
23499   docdir="\${prefix}/$with_docdir"
23500 else
23501   docdir='$(datarootdir)'
23502 fi;
23503
23504
23505
23506 # Check whether --with-htmldir or --without-htmldir was given.
23507 if test "${with_htmldir+set}" = set; then
23508   withval="$with_htmldir"
23509   htmldir="\${prefix}/$with_htmldir"
23510 else
23511   htmldir='$(docdir)'
23512 fi;
23513
23514
23515 # Substitute configuration variables
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572 # Echo link setup.
23573 if test x${build} = x${host} ; then
23574   if test x${host} = x${target} ; then
23575     echo "Links are now set up to build a native compiler for ${target}." 1>&2
23576   else
23577     echo "Links are now set up to build a cross-compiler" 1>&2
23578     echo " from ${host} to ${target}." 1>&2
23579   fi
23580 else
23581   if test x${host} = x${target} ; then
23582     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23583     echo " for ${target}." 1>&2
23584   else
23585     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23586     echo " from ${host} to ${target}." 1>&2
23587   fi
23588 fi
23589
23590
23591
23592
23593 # Configure the subdirectories
23594 # AC_CONFIG_SUBDIRS($subdirs)
23595
23596 # Create the Makefile
23597 # and configure language subdirectories
23598           ac_config_files="$ac_config_files $all_outputs"
23599
23600
23601           ac_config_commands="$ac_config_commands default"
23602
23603 cat >confcache <<\_ACEOF
23604 # This file is a shell script that caches the results of configure
23605 # tests run on this system so they can be shared between configure
23606 # scripts and configure runs, see configure's option --config-cache.
23607 # It is not useful on other systems.  If it contains results you don't
23608 # want to keep, you may remove or edit it.
23609 #
23610 # config.status only pays attention to the cache file if you give it
23611 # the --recheck option to rerun configure.
23612 #
23613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23615 # following values.
23616
23617 _ACEOF
23618
23619 # The following way of writing the cache mishandles newlines in values,
23620 # but we know of no workaround that is simple, portable, and efficient.
23621 # So, don't put newlines in cache variables' values.
23622 # Ultrix sh set writes to stderr and can't be redirected directly,
23623 # and sets the high bit in the cache file unless we assign to the vars.
23624 {
23625   (set) 2>&1 |
23626     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23627     *ac_space=\ *)
23628       # `set' does not quote correctly, so add quotes (double-quote
23629       # substitution turns \\\\ into \\, and sed turns \\ into \).
23630       sed -n \
23631         "s/'/'\\\\''/g;
23632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23633       ;;
23634     *)
23635       # `set' quotes correctly as required by POSIX, so do not add quotes.
23636       sed -n \
23637         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23638       ;;
23639     esac;
23640 } |
23641   sed '
23642      t clear
23643      : clear
23644      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23645      t end
23646      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23647      : end' >>confcache
23648 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23649   if test -w $cache_file; then
23650     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23651     cat confcache >$cache_file
23652   else
23653     echo "not updating unwritable cache $cache_file"
23654   fi
23655 fi
23656 rm -f confcache
23657
23658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23659 # Let make expand exec_prefix.
23660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23661
23662 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23663 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23664 # trailing colons and then remove the whole line if VPATH becomes empty
23665 # (actually we leave an empty line to preserve line numbers).
23666 if test "x$srcdir" = x.; then
23667   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23668 s/:*\$(srcdir):*/:/;
23669 s/:*\${srcdir}:*/:/;
23670 s/:*@srcdir@:*/:/;
23671 s/^\([^=]*=[     ]*\):*/\1/;
23672 s/:*$//;
23673 s/^[^=]*=[       ]*$//;
23674 }'
23675 fi
23676
23677 DEFS=-DHAVE_CONFIG_H
23678
23679 ac_libobjs=
23680 ac_ltlibobjs=
23681 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23682   # 1. Remove the extension, and $U if already installed.
23683   ac_i=`echo "$ac_i" |
23684          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23685   # 2. Add them.
23686   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23687   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23688 done
23689 LIBOBJS=$ac_libobjs
23690
23691 LTLIBOBJS=$ac_ltlibobjs
23692
23693
23694
23695 : ${CONFIG_STATUS=./config.status}
23696 ac_clean_files_save=$ac_clean_files
23697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23698 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23699 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23700 cat >$CONFIG_STATUS <<_ACEOF
23701 #! $SHELL
23702 # Generated by $as_me.
23703 # Run this file to recreate the current configuration.
23704 # Compiler output produced by configure, useful for debugging
23705 # configure, is in config.log if it exists.
23706
23707 debug=false
23708 ac_cs_recheck=false
23709 ac_cs_silent=false
23710 SHELL=\${CONFIG_SHELL-$SHELL}
23711 _ACEOF
23712
23713 cat >>$CONFIG_STATUS <<\_ACEOF
23714 ## --------------------- ##
23715 ## M4sh Initialization.  ##
23716 ## --------------------- ##
23717
23718 # Be Bourne compatible
23719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23720   emulate sh
23721   NULLCMD=:
23722   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23723   # is contrary to our usage.  Disable this feature.
23724   alias -g '${1+"$@"}'='"$@"'
23725 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23726   set -o posix
23727 fi
23728 DUALCASE=1; export DUALCASE # for MKS sh
23729
23730 # Support unset when possible.
23731 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23732   as_unset=unset
23733 else
23734   as_unset=false
23735 fi
23736
23737
23738 # Work around bugs in pre-3.0 UWIN ksh.
23739 $as_unset ENV MAIL MAILPATH
23740 PS1='$ '
23741 PS2='> '
23742 PS4='+ '
23743
23744 # NLS nuisances.
23745 for as_var in \
23746   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23747   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23748   LC_TELEPHONE LC_TIME
23749 do
23750   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23751     eval $as_var=C; export $as_var
23752   else
23753     $as_unset $as_var
23754   fi
23755 done
23756
23757 # Required to use basename.
23758 if expr a : '\(a\)' >/dev/null 2>&1; then
23759   as_expr=expr
23760 else
23761   as_expr=false
23762 fi
23763
23764 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23765   as_basename=basename
23766 else
23767   as_basename=false
23768 fi
23769
23770
23771 # Name of the executable.
23772 as_me=`$as_basename "$0" ||
23773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23774          X"$0" : 'X\(//\)$' \| \
23775          X"$0" : 'X\(/\)$' \| \
23776          .     : '\(.\)' 2>/dev/null ||
23777 echo X/"$0" |
23778     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23779           /^X\/\(\/\/\)$/{ s//\1/; q; }
23780           /^X\/\(\/\).*/{ s//\1/; q; }
23781           s/.*/./; q'`
23782
23783
23784 # PATH needs CR, and LINENO needs CR and PATH.
23785 # Avoid depending upon Character Ranges.
23786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23789 as_cr_digits='0123456789'
23790 as_cr_alnum=$as_cr_Letters$as_cr_digits
23791
23792 # The user is always right.
23793 if test "${PATH_SEPARATOR+set}" != set; then
23794   echo "#! /bin/sh" >conf$$.sh
23795   echo  "exit 0"   >>conf$$.sh
23796   chmod +x conf$$.sh
23797   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23798     PATH_SEPARATOR=';'
23799   else
23800     PATH_SEPARATOR=:
23801   fi
23802   rm -f conf$$.sh
23803 fi
23804
23805
23806   as_lineno_1=$LINENO
23807   as_lineno_2=$LINENO
23808   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23809   test "x$as_lineno_1" != "x$as_lineno_2" &&
23810   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23811   # Find who we are.  Look in the path if we contain no path at all
23812   # relative or not.
23813   case $0 in
23814     *[\\/]* ) as_myself=$0 ;;
23815     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23816 for as_dir in $PATH
23817 do
23818   IFS=$as_save_IFS
23819   test -z "$as_dir" && as_dir=.
23820   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23821 done
23822
23823        ;;
23824   esac
23825   # We did not find ourselves, most probably we were run as `sh COMMAND'
23826   # in which case we are not to be found in the path.
23827   if test "x$as_myself" = x; then
23828     as_myself=$0
23829   fi
23830   if test ! -f "$as_myself"; then
23831     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23832 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23833    { (exit 1); exit 1; }; }
23834   fi
23835   case $CONFIG_SHELL in
23836   '')
23837     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23838 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23839 do
23840   IFS=$as_save_IFS
23841   test -z "$as_dir" && as_dir=.
23842   for as_base in sh bash ksh sh5; do
23843          case $as_dir in
23844          /*)
23845            if ("$as_dir/$as_base" -c '
23846   as_lineno_1=$LINENO
23847   as_lineno_2=$LINENO
23848   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23849   test "x$as_lineno_1" != "x$as_lineno_2" &&
23850   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23851              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23852              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23853              CONFIG_SHELL=$as_dir/$as_base
23854              export CONFIG_SHELL
23855              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23856            fi;;
23857          esac
23858        done
23859 done
23860 ;;
23861   esac
23862
23863   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23864   # uniformly replaced by the line number.  The first 'sed' inserts a
23865   # line-number line before each line; the second 'sed' does the real
23866   # work.  The second script uses 'N' to pair each line-number line
23867   # with the numbered line, and appends trailing '-' during
23868   # substitution so that $LINENO is not a special case at line end.
23869   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23870   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23871   sed '=' <$as_myself |
23872     sed '
23873       N
23874       s,$,-,
23875       : loop
23876       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23877       t loop
23878       s,-$,,
23879       s,^['$as_cr_digits']*\n,,
23880     ' >$as_me.lineno &&
23881   chmod +x $as_me.lineno ||
23882     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23883 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23884    { (exit 1); exit 1; }; }
23885
23886   # Don't try to exec as it changes $[0], causing all sort of problems
23887   # (the dirname of $[0] is not the place where we might find the
23888   # original and so on.  Autoconf is especially sensible to this).
23889   . ./$as_me.lineno
23890   # Exit status is that of the last command.
23891   exit
23892 }
23893
23894
23895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23896   *c*,-n*) ECHO_N= ECHO_C='
23897 ' ECHO_T='      ' ;;
23898   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23899   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23900 esac
23901
23902 if expr a : '\(a\)' >/dev/null 2>&1; then
23903   as_expr=expr
23904 else
23905   as_expr=false
23906 fi
23907
23908 rm -f conf$$ conf$$.exe conf$$.file
23909 echo >conf$$.file
23910 if ln -s conf$$.file conf$$ 2>/dev/null; then
23911   # We could just check for DJGPP; but this test a) works b) is more generic
23912   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23913   if test -f conf$$.exe; then
23914     # Don't use ln at all; we don't have any links
23915     as_ln_s='cp -p'
23916   else
23917     as_ln_s='ln -s'
23918   fi
23919 elif ln conf$$.file conf$$ 2>/dev/null; then
23920   as_ln_s=ln
23921 else
23922   as_ln_s='cp -p'
23923 fi
23924 rm -f conf$$ conf$$.exe conf$$.file
23925
23926 if mkdir -p . 2>/dev/null; then
23927   as_mkdir_p=:
23928 else
23929   test -d ./-p && rmdir ./-p
23930   as_mkdir_p=false
23931 fi
23932
23933 as_executable_p="test -f"
23934
23935 # Sed expression to map a string onto a valid CPP name.
23936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23937
23938 # Sed expression to map a string onto a valid variable name.
23939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23940
23941
23942 # IFS
23943 # We need space, tab and new line, in precisely that order.
23944 as_nl='
23945 '
23946 IFS="   $as_nl"
23947
23948 # CDPATH.
23949 $as_unset CDPATH
23950
23951 exec 6>&1
23952
23953 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23954 # report actual input values of CONFIG_FILES etc. instead of their
23955 # values after options handling.  Logging --version etc. is OK.
23956 exec 5>>config.log
23957 {
23958   echo
23959   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23960 ## Running $as_me. ##
23961 _ASBOX
23962 } >&5
23963 cat >&5 <<_CSEOF
23964
23965 This file was extended by $as_me, which was
23966 generated by GNU Autoconf 2.59.  Invocation command line was
23967
23968   CONFIG_FILES    = $CONFIG_FILES
23969   CONFIG_HEADERS  = $CONFIG_HEADERS
23970   CONFIG_LINKS    = $CONFIG_LINKS
23971   CONFIG_COMMANDS = $CONFIG_COMMANDS
23972   $ $0 $@
23973
23974 _CSEOF
23975 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23976 echo >&5
23977 _ACEOF
23978
23979 # Files that config.status was made for.
23980 if test -n "$ac_config_files"; then
23981   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23982 fi
23983
23984 if test -n "$ac_config_headers"; then
23985   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23986 fi
23987
23988 if test -n "$ac_config_links"; then
23989   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23990 fi
23991
23992 if test -n "$ac_config_commands"; then
23993   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23994 fi
23995
23996 cat >>$CONFIG_STATUS <<\_ACEOF
23997
23998 ac_cs_usage="\
23999 \`$as_me' instantiates files from templates according to the
24000 current configuration.
24001
24002 Usage: $0 [OPTIONS] [FILE]...
24003
24004   -h, --help       print this help, then exit
24005   -V, --version    print version number, then exit
24006   -q, --quiet      do not print progress messages
24007   -d, --debug      don't remove temporary files
24008       --recheck    update $as_me by reconfiguring in the same conditions
24009   --file=FILE[:TEMPLATE]
24010                    instantiate the configuration file FILE
24011   --header=FILE[:TEMPLATE]
24012                    instantiate the configuration header FILE
24013
24014 Configuration files:
24015 $config_files
24016
24017 Configuration headers:
24018 $config_headers
24019
24020 Configuration commands:
24021 $config_commands
24022
24023 Report bugs to <bug-autoconf@gnu.org>."
24024 _ACEOF
24025
24026 cat >>$CONFIG_STATUS <<_ACEOF
24027 ac_cs_version="\\
24028 config.status
24029 configured by $0, generated by GNU Autoconf 2.59,
24030   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24031
24032 Copyright (C) 2003 Free Software Foundation, Inc.
24033 This config.status script is free software; the Free Software Foundation
24034 gives unlimited permission to copy, distribute and modify it."
24035 srcdir=$srcdir
24036 _ACEOF
24037
24038 cat >>$CONFIG_STATUS <<\_ACEOF
24039 # If no file are specified by the user, then we need to provide default
24040 # value.  By we need to know if files were specified by the user.
24041 ac_need_defaults=:
24042 while test $# != 0
24043 do
24044   case $1 in
24045   --*=*)
24046     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24047     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24048     ac_shift=:
24049     ;;
24050   -*)
24051     ac_option=$1
24052     ac_optarg=$2
24053     ac_shift=shift
24054     ;;
24055   *) # This is not an option, so the user has probably given explicit
24056      # arguments.
24057      ac_option=$1
24058      ac_need_defaults=false;;
24059   esac
24060
24061   case $ac_option in
24062   # Handling of the options.
24063 _ACEOF
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24066     ac_cs_recheck=: ;;
24067   --version | --vers* | -V )
24068     echo "$ac_cs_version"; exit 0 ;;
24069   --he | --h)
24070     # Conflict between --help and --header
24071     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24072 Try \`$0 --help' for more information." >&5
24073 echo "$as_me: error: ambiguous option: $1
24074 Try \`$0 --help' for more information." >&2;}
24075    { (exit 1); exit 1; }; };;
24076   --help | --hel | -h )
24077     echo "$ac_cs_usage"; exit 0 ;;
24078   --debug | --d* | -d )
24079     debug=: ;;
24080   --file | --fil | --fi | --f )
24081     $ac_shift
24082     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24083     ac_need_defaults=false;;
24084   --header | --heade | --head | --hea )
24085     $ac_shift
24086     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24087     ac_need_defaults=false;;
24088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24089   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24090     ac_cs_silent=: ;;
24091
24092   # This is an error.
24093   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24094 Try \`$0 --help' for more information." >&5
24095 echo "$as_me: error: unrecognized option: $1
24096 Try \`$0 --help' for more information." >&2;}
24097    { (exit 1); exit 1; }; } ;;
24098
24099   *) ac_config_targets="$ac_config_targets $1" ;;
24100
24101   esac
24102   shift
24103 done
24104
24105 ac_configure_extra_args=
24106
24107 if $ac_cs_silent; then
24108   exec 6>/dev/null
24109   ac_configure_extra_args="$ac_configure_extra_args --silent"
24110 fi
24111
24112 _ACEOF
24113 cat >>$CONFIG_STATUS <<_ACEOF
24114 if \$ac_cs_recheck; then
24115   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24116   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24117 fi
24118
24119 _ACEOF
24120
24121 cat >>$CONFIG_STATUS <<_ACEOF
24122 #
24123 # INIT-COMMANDS section.
24124 #
24125
24126 subdirs='$subdirs'
24127
24128 _ACEOF
24129
24130
24131
24132 cat >>$CONFIG_STATUS <<\_ACEOF
24133 for ac_config_target in $ac_config_targets
24134 do
24135   case "$ac_config_target" in
24136   # Handling of arguments.
24137   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24138   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24139   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24140   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24141   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24142   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24143   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24145    { (exit 1); exit 1; }; };;
24146   esac
24147 done
24148
24149 # If the user did not use the arguments to specify the items to instantiate,
24150 # then the envvar interface is used.  Set only those that are not.
24151 # We use the long form for the default assignment because of an extremely
24152 # bizarre bug on SunOS 4.1.3.
24153 if $ac_need_defaults; then
24154   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24155   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24156   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24157 fi
24158
24159 # Have a temporary directory for convenience.  Make it in the build tree
24160 # simply because there is no reason to put it here, and in addition,
24161 # creating and moving files from /tmp can sometimes cause problems.
24162 # Create a temporary directory, and hook for its removal unless debugging.
24163 $debug ||
24164 {
24165   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24166   trap '{ (exit 1); exit 1; }' 1 2 13 15
24167 }
24168
24169 # Create a (secure) tmp directory for tmp files.
24170
24171 {
24172   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24173   test -n "$tmp" && test -d "$tmp"
24174 }  ||
24175 {
24176   tmp=./confstat$$-$RANDOM
24177   (umask 077 && mkdir $tmp)
24178 } ||
24179 {
24180    echo "$me: cannot create a temporary directory in ." >&2
24181    { (exit 1); exit 1; }
24182 }
24183
24184 _ACEOF
24185
24186 cat >>$CONFIG_STATUS <<_ACEOF
24187
24188 #
24189 # CONFIG_FILES section.
24190 #
24191
24192 # No need to generate the scripts if there are no CONFIG_FILES.
24193 # This happens for instance when ./config.status config.h
24194 if test -n "\$CONFIG_FILES"; then
24195   # Protect against being on the right side of a sed subst in config.status.
24196   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24197    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24198 s,@SHELL@,$SHELL,;t t
24199 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24200 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24201 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24202 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24203 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24204 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24205 s,@exec_prefix@,$exec_prefix,;t t
24206 s,@prefix@,$prefix,;t t
24207 s,@program_transform_name@,$program_transform_name,;t t
24208 s,@bindir@,$bindir,;t t
24209 s,@sbindir@,$sbindir,;t t
24210 s,@libexecdir@,$libexecdir,;t t
24211 s,@datadir@,$datadir,;t t
24212 s,@sysconfdir@,$sysconfdir,;t t
24213 s,@sharedstatedir@,$sharedstatedir,;t t
24214 s,@localstatedir@,$localstatedir,;t t
24215 s,@libdir@,$libdir,;t t
24216 s,@includedir@,$includedir,;t t
24217 s,@oldincludedir@,$oldincludedir,;t t
24218 s,@infodir@,$infodir,;t t
24219 s,@mandir@,$mandir,;t t
24220 s,@build_alias@,$build_alias,;t t
24221 s,@host_alias@,$host_alias,;t t
24222 s,@target_alias@,$target_alias,;t t
24223 s,@DEFS@,$DEFS,;t t
24224 s,@ECHO_C@,$ECHO_C,;t t
24225 s,@ECHO_N@,$ECHO_N,;t t
24226 s,@ECHO_T@,$ECHO_T,;t t
24227 s,@LIBS@,$LIBS,;t t
24228 s,@build@,$build,;t t
24229 s,@build_cpu@,$build_cpu,;t t
24230 s,@build_vendor@,$build_vendor,;t t
24231 s,@build_os@,$build_os,;t t
24232 s,@host@,$host,;t t
24233 s,@host_cpu@,$host_cpu,;t t
24234 s,@host_vendor@,$host_vendor,;t t
24235 s,@host_os@,$host_os,;t t
24236 s,@target@,$target,;t t
24237 s,@target_cpu@,$target_cpu,;t t
24238 s,@target_vendor@,$target_vendor,;t t
24239 s,@target_os@,$target_os,;t t
24240 s,@target_noncanonical@,$target_noncanonical,;t t
24241 s,@build_libsubdir@,$build_libsubdir,;t t
24242 s,@build_subdir@,$build_subdir,;t t
24243 s,@host_subdir@,$host_subdir,;t t
24244 s,@target_subdir@,$target_subdir,;t t
24245 s,@GENINSRC@,$GENINSRC,;t t
24246 s,@CC@,$CC,;t t
24247 s,@CFLAGS@,$CFLAGS,;t t
24248 s,@LDFLAGS@,$LDFLAGS,;t t
24249 s,@CPPFLAGS@,$CPPFLAGS,;t t
24250 s,@ac_ct_CC@,$ac_ct_CC,;t t
24251 s,@EXEEXT@,$EXEEXT,;t t
24252 s,@OBJEXT@,$OBJEXT,;t t
24253 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24254 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24255 s,@CPP@,$CPP,;t t
24256 s,@EGREP@,$EGREP,;t t
24257 s,@loose_warn@,$loose_warn,;t t
24258 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
24259 s,@strict_warn@,$strict_warn,;t t
24260 s,@warn_cflags@,$warn_cflags,;t t
24261 s,@nocommon_flag@,$nocommon_flag,;t t
24262 s,@TREEBROWSER@,$TREEBROWSER,;t t
24263 s,@valgrind_path@,$valgrind_path,;t t
24264 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24265 s,@valgrind_command@,$valgrind_command,;t t
24266 s,@coverage_flags@,$coverage_flags,;t t
24267 s,@enable_multilib@,$enable_multilib,;t t
24268 s,@enable_decimal_float@,$enable_decimal_float,;t t
24269 s,@enable_fixed_point@,$enable_fixed_point,;t t
24270 s,@enable_shared@,$enable_shared,;t t
24271 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24272 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24273 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24274 s,@onestep@,$onestep,;t t
24275 s,@PKGVERSION@,$PKGVERSION,;t t
24276 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24277 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24278 s,@datarootdir@,$datarootdir,;t t
24279 s,@docdir@,$docdir,;t t
24280 s,@htmldir@,$htmldir,;t t
24281 s,@SET_MAKE@,$SET_MAKE,;t t
24282 s,@AWK@,$AWK,;t t
24283 s,@LN_S@,$LN_S,;t t
24284 s,@LN@,$LN,;t t
24285 s,@RANLIB@,$RANLIB,;t t
24286 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24287 s,@ranlib_flags@,$ranlib_flags,;t t
24288 s,@INSTALL@,$INSTALL,;t t
24289 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24290 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24291 s,@make_compare_target@,$make_compare_target,;t t
24292 s,@have_mktemp_command@,$have_mktemp_command,;t t
24293 s,@MAKEINFO@,$MAKEINFO,;t t
24294 s,@BUILD_INFO@,$BUILD_INFO,;t t
24295 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24296 s,@FLEX@,$FLEX,;t t
24297 s,@BISON@,$BISON,;t t
24298 s,@NM@,$NM,;t t
24299 s,@AR@,$AR,;t t
24300 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24301 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24302 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24303 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24304 s,@LIBICONV@,$LIBICONV,;t t
24305 s,@LTLIBICONV@,$LTLIBICONV,;t t
24306 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24307 s,@manext@,$manext,;t t
24308 s,@objext@,$objext,;t t
24309 s,@gthread_flags@,$gthread_flags,;t t
24310 s,@extra_modes_file@,$extra_modes_file,;t t
24311 s,@extra_opt_files@,$extra_opt_files,;t t
24312 s,@USE_NLS@,$USE_NLS,;t t
24313 s,@LIBINTL@,$LIBINTL,;t t
24314 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24315 s,@INCINTL@,$INCINTL,;t t
24316 s,@XGETTEXT@,$XGETTEXT,;t t
24317 s,@GMSGFMT@,$GMSGFMT,;t t
24318 s,@POSUB@,$POSUB,;t t
24319 s,@CATALOGS@,$CATALOGS,;t t
24320 s,@DATADIRNAME@,$DATADIRNAME,;t t
24321 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24322 s,@GENCAT@,$GENCAT,;t t
24323 s,@CATOBJEXT@,$CATOBJEXT,;t t
24324 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24325 s,@CROSS@,$CROSS,;t t
24326 s,@ALL@,$ALL,;t t
24327 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24328 s,@inhibit_libc@,$inhibit_libc,;t t
24329 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24330 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24331 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24332 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24333 s,@collect2@,$collect2,;t t
24334 s,@LIBTOOL@,$LIBTOOL,;t t
24335 s,@SED@,$SED,;t t
24336 s,@FGREP@,$FGREP,;t t
24337 s,@GREP@,$GREP,;t t
24338 s,@LD@,$LD,;t t
24339 s,@DUMPBIN@,$DUMPBIN,;t t
24340 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24341 s,@ac_ct_AR@,$ac_ct_AR,;t t
24342 s,@STRIP@,$STRIP,;t t
24343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24344 s,@lt_ECHO@,$lt_ECHO,;t t
24345 s,@objdir@,$objdir,;t t
24346 s,@enable_fast_install@,$enable_fast_install,;t t
24347 s,@gcc_cv_as@,$gcc_cv_as,;t t
24348 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24349 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24350 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24351 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24352 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24353 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24354 s,@libgcc_visibility@,$libgcc_visibility,;t t
24355 s,@GGC@,$GGC,;t t
24356 s,@zlibdir@,$zlibdir,;t t
24357 s,@zlibinc@,$zlibinc,;t t
24358 s,@MAINT@,$MAINT,;t t
24359 s,@gcc_tooldir@,$gcc_tooldir,;t t
24360 s,@dollar@,$dollar,;t t
24361 s,@slibdir@,$slibdir,;t t
24362 s,@subdirs@,$subdirs,;t t
24363 s,@srcdir@,$srcdir,;t t
24364 s,@all_compilers@,$all_compilers,;t t
24365 s,@all_gtfiles@,$all_gtfiles,;t t
24366 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24367 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24368 s,@all_languages@,$all_languages,;t t
24369 s,@all_selected_languages@,$all_selected_languages,;t t
24370 s,@build_exeext@,$build_exeext,;t t
24371 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24372 s,@build_xm_file_list@,$build_xm_file_list,;t t
24373 s,@build_xm_include_list@,$build_xm_include_list,;t t
24374 s,@build_xm_defines@,$build_xm_defines,;t t
24375 s,@build_file_translate@,$build_file_translate,;t t
24376 s,@check_languages@,$check_languages,;t t
24377 s,@cpp_install_dir@,$cpp_install_dir,;t t
24378 s,@xmake_file@,$xmake_file,;t t
24379 s,@tmake_file@,$tmake_file,;t t
24380 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24381 s,@extra_headers_list@,$extra_headers_list,;t t
24382 s,@extra_objs@,$extra_objs,;t t
24383 s,@extra_parts@,$extra_parts,;t t
24384 s,@extra_passes@,$extra_passes,;t t
24385 s,@extra_programs@,$extra_programs,;t t
24386 s,@float_h_file@,$float_h_file,;t t
24387 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24388 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24389 s,@host_exeext@,$host_exeext,;t t
24390 s,@host_xm_file_list@,$host_xm_file_list,;t t
24391 s,@host_xm_include_list@,$host_xm_include_list,;t t
24392 s,@host_xm_defines@,$host_xm_defines,;t t
24393 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24394 s,@install@,$install,;t t
24395 s,@lang_opt_files@,$lang_opt_files,;t t
24396 s,@lang_specs_files@,$lang_specs_files,;t t
24397 s,@lang_tree_files@,$lang_tree_files,;t t
24398 s,@local_prefix@,$local_prefix,;t t
24399 s,@md_file@,$md_file,;t t
24400 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24401 s,@out_file@,$out_file,;t t
24402 s,@out_object_file@,$out_object_file,;t t
24403 s,@thread_file@,$thread_file,;t t
24404 s,@tm_file_list@,$tm_file_list,;t t
24405 s,@tm_include_list@,$tm_include_list,;t t
24406 s,@tm_defines@,$tm_defines,;t t
24407 s,@tm_p_file_list@,$tm_p_file_list,;t t
24408 s,@tm_p_include_list@,$tm_p_include_list,;t t
24409 s,@xm_file_list@,$xm_file_list,;t t
24410 s,@xm_include_list@,$xm_include_list,;t t
24411 s,@xm_defines@,$xm_defines,;t t
24412 s,@c_target_objs@,$c_target_objs,;t t
24413 s,@cxx_target_objs@,$cxx_target_objs,;t t
24414 s,@target_cpu_default@,$target_cpu_default,;t t
24415 s,@GMPLIBS@,$GMPLIBS,;t t
24416 s,@GMPINC@,$GMPINC,;t t
24417 s,@LIBOBJS@,$LIBOBJS,;t t
24418 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24419 /@language_hooks@/r $language_hooks
24420 s,@language_hooks@,,;t t
24421 CEOF
24422
24423 _ACEOF
24424
24425   cat >>$CONFIG_STATUS <<\_ACEOF
24426   # Split the substitutions into bite-sized pieces for seds with
24427   # small command number limits, like on Digital OSF/1 and HP-UX.
24428   ac_max_sed_lines=48
24429   ac_sed_frag=1 # Number of current file.
24430   ac_beg=1 # First line for current file.
24431   ac_end=$ac_max_sed_lines # Line after last line for current file.
24432   ac_more_lines=:
24433   ac_sed_cmds=
24434   while $ac_more_lines; do
24435     if test $ac_beg -gt 1; then
24436       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24437     else
24438       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24439     fi
24440     if test ! -s $tmp/subs.frag; then
24441       ac_more_lines=false
24442     else
24443       # The purpose of the label and of the branching condition is to
24444       # speed up the sed processing (if there are no `@' at all, there
24445       # is no need to browse any of the substitutions).
24446       # These are the two extra sed commands mentioned above.
24447       (echo ':t
24448   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24449       if test -z "$ac_sed_cmds"; then
24450         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24451       else
24452         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24453       fi
24454       ac_sed_frag=`expr $ac_sed_frag + 1`
24455       ac_beg=$ac_end
24456       ac_end=`expr $ac_end + $ac_max_sed_lines`
24457     fi
24458   done
24459   if test -z "$ac_sed_cmds"; then
24460     ac_sed_cmds=cat
24461   fi
24462 fi # test -n "$CONFIG_FILES"
24463
24464 _ACEOF
24465 cat >>$CONFIG_STATUS <<\_ACEOF
24466 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24467   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24468   case $ac_file in
24469   - | *:- | *:-:* ) # input from stdin
24470         cat >$tmp/stdin
24471         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24472         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24473   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24475   * )   ac_file_in=$ac_file.in ;;
24476   esac
24477
24478   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24479   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24481          X"$ac_file" : 'X\(//\)[^/]' \| \
24482          X"$ac_file" : 'X\(//\)$' \| \
24483          X"$ac_file" : 'X\(/\)' \| \
24484          .     : '\(.\)' 2>/dev/null ||
24485 echo X"$ac_file" |
24486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24488           /^X\(\/\/\)$/{ s//\1/; q; }
24489           /^X\(\/\).*/{ s//\1/; q; }
24490           s/.*/./; q'`
24491   { if $as_mkdir_p; then
24492     mkdir -p "$ac_dir"
24493   else
24494     as_dir="$ac_dir"
24495     as_dirs=
24496     while test ! -d "$as_dir"; do
24497       as_dirs="$as_dir $as_dirs"
24498       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24500          X"$as_dir" : 'X\(//\)[^/]' \| \
24501          X"$as_dir" : 'X\(//\)$' \| \
24502          X"$as_dir" : 'X\(/\)' \| \
24503          .     : '\(.\)' 2>/dev/null ||
24504 echo X"$as_dir" |
24505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24507           /^X\(\/\/\)$/{ s//\1/; q; }
24508           /^X\(\/\).*/{ s//\1/; q; }
24509           s/.*/./; q'`
24510     done
24511     test ! -n "$as_dirs" || mkdir $as_dirs
24512   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24514    { (exit 1); exit 1; }; }; }
24515
24516   ac_builddir=.
24517
24518 if test "$ac_dir" != .; then
24519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24520   # A "../" for each directory in $ac_dir_suffix.
24521   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24522 else
24523   ac_dir_suffix= ac_top_builddir=
24524 fi
24525
24526 case $srcdir in
24527   .)  # No --srcdir option.  We are building in place.
24528     ac_srcdir=.
24529     if test -z "$ac_top_builddir"; then
24530        ac_top_srcdir=.
24531     else
24532        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24533     fi ;;
24534   [\\/]* | ?:[\\/]* )  # Absolute path.
24535     ac_srcdir=$srcdir$ac_dir_suffix;
24536     ac_top_srcdir=$srcdir ;;
24537   *) # Relative path.
24538     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24539     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24540 esac
24541
24542 # Do not use `cd foo && pwd` to compute absolute paths, because
24543 # the directories may not exist.
24544 case `pwd` in
24545 .) ac_abs_builddir="$ac_dir";;
24546 *)
24547   case "$ac_dir" in
24548   .) ac_abs_builddir=`pwd`;;
24549   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24550   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24551   esac;;
24552 esac
24553 case $ac_abs_builddir in
24554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24555 *)
24556   case ${ac_top_builddir}. in
24557   .) ac_abs_top_builddir=$ac_abs_builddir;;
24558   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24559   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24560   esac;;
24561 esac
24562 case $ac_abs_builddir in
24563 .) ac_abs_srcdir=$ac_srcdir;;
24564 *)
24565   case $ac_srcdir in
24566   .) ac_abs_srcdir=$ac_abs_builddir;;
24567   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24568   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24569   esac;;
24570 esac
24571 case $ac_abs_builddir in
24572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24573 *)
24574   case $ac_top_srcdir in
24575   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24576   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24577   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24578   esac;;
24579 esac
24580
24581
24582
24583   if test x"$ac_file" != x-; then
24584     { echo "$as_me:$LINENO: creating $ac_file" >&5
24585 echo "$as_me: creating $ac_file" >&6;}
24586     rm -f "$ac_file"
24587   fi
24588   # Let's still pretend it is `configure' which instantiates (i.e., don't
24589   # use $as_me), people would be surprised to read:
24590   #    /* config.h.  Generated by config.status.  */
24591   if test x"$ac_file" = x-; then
24592     configure_input=
24593   else
24594     configure_input="$ac_file.  "
24595   fi
24596   configure_input=$configure_input"Generated from `echo $ac_file_in |
24597                                      sed 's,.*/,,'` by configure."
24598
24599   # First look for the input files in the build tree, otherwise in the
24600   # src tree.
24601   ac_file_inputs=`IFS=:
24602     for f in $ac_file_in; do
24603       case $f in
24604       -) echo $tmp/stdin ;;
24605       [\\/$]*)
24606          # Absolute (can't be DOS-style, as IFS=:)
24607          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24608 echo "$as_me: error: cannot find input file: $f" >&2;}
24609    { (exit 1); exit 1; }; }
24610          echo "$f";;
24611       *) # Relative
24612          if test -f "$f"; then
24613            # Build tree
24614            echo "$f"
24615          elif test -f "$srcdir/$f"; then
24616            # Source tree
24617            echo "$srcdir/$f"
24618          else
24619            # /dev/null tree
24620            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24621 echo "$as_me: error: cannot find input file: $f" >&2;}
24622    { (exit 1); exit 1; }; }
24623          fi;;
24624       esac
24625     done` || { (exit 1); exit 1; }
24626 _ACEOF
24627 cat >>$CONFIG_STATUS <<_ACEOF
24628   sed "$ac_vpsub
24629 $extrasub
24630 _ACEOF
24631 cat >>$CONFIG_STATUS <<\_ACEOF
24632 :t
24633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24634 s,@configure_input@,$configure_input,;t t
24635 s,@srcdir@,$ac_srcdir,;t t
24636 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24637 s,@top_srcdir@,$ac_top_srcdir,;t t
24638 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24639 s,@builddir@,$ac_builddir,;t t
24640 s,@abs_builddir@,$ac_abs_builddir,;t t
24641 s,@top_builddir@,$ac_top_builddir,;t t
24642 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24643 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24644   rm -f $tmp/stdin
24645   if test x"$ac_file" != x-; then
24646     mv $tmp/out $ac_file
24647   else
24648     cat $tmp/out
24649     rm -f $tmp/out
24650   fi
24651
24652   # Run the commands associated with the file.
24653   case $ac_file in
24654     as ) chmod +x as ;;
24655     collect-ld ) chmod +x collect-ld ;;
24656     nm ) chmod +x nm ;;
24657   esac
24658 done
24659 _ACEOF
24660 cat >>$CONFIG_STATUS <<\_ACEOF
24661
24662 #
24663 # CONFIG_HEADER section.
24664 #
24665
24666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24668 #
24669 # ac_d sets the value in "#define NAME VALUE" lines.
24670 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24671 ac_dB='[         ].*$,\1#\2'
24672 ac_dC=' '
24673 ac_dD=',;t'
24674 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24675 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24676 ac_uB='$,\1#\2define\3'
24677 ac_uC=' '
24678 ac_uD=',;t'
24679
24680 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24681   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24682   case $ac_file in
24683   - | *:- | *:-:* ) # input from stdin
24684         cat >$tmp/stdin
24685         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24686         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24687   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24689   * )   ac_file_in=$ac_file.in ;;
24690   esac
24691
24692   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24693 echo "$as_me: creating $ac_file" >&6;}
24694
24695   # First look for the input files in the build tree, otherwise in the
24696   # src tree.
24697   ac_file_inputs=`IFS=:
24698     for f in $ac_file_in; do
24699       case $f in
24700       -) echo $tmp/stdin ;;
24701       [\\/$]*)
24702          # Absolute (can't be DOS-style, as IFS=:)
24703          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24704 echo "$as_me: error: cannot find input file: $f" >&2;}
24705    { (exit 1); exit 1; }; }
24706          # Do quote $f, to prevent DOS paths from being IFS'd.
24707          echo "$f";;
24708       *) # Relative
24709          if test -f "$f"; then
24710            # Build tree
24711            echo "$f"
24712          elif test -f "$srcdir/$f"; then
24713            # Source tree
24714            echo "$srcdir/$f"
24715          else
24716            # /dev/null tree
24717            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24718 echo "$as_me: error: cannot find input file: $f" >&2;}
24719    { (exit 1); exit 1; }; }
24720          fi;;
24721       esac
24722     done` || { (exit 1); exit 1; }
24723   # Remove the trailing spaces.
24724   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24725
24726 _ACEOF
24727
24728 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24729 # `conftest.undefs', that substitutes the proper values into
24730 # config.h.in to produce config.h.  The first handles `#define'
24731 # templates, and the second `#undef' templates.
24732 # And first: Protect against being on the right side of a sed subst in
24733 # config.status.  Protect against being in an unquoted here document
24734 # in config.status.
24735 rm -f conftest.defines conftest.undefs
24736 # Using a here document instead of a string reduces the quoting nightmare.
24737 # Putting comments in sed scripts is not portable.
24738 #
24739 # `end' is used to avoid that the second main sed command (meant for
24740 # 0-ary CPP macros) applies to n-ary macro definitions.
24741 # See the Autoconf documentation for `clear'.
24742 cat >confdef2sed.sed <<\_ACEOF
24743 s/[\\&,]/\\&/g
24744 s,[\\$`],\\&,g
24745 t clear
24746 : clear
24747 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24748 t end
24749 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24750 : end
24751 _ACEOF
24752 # If some macros were called several times there might be several times
24753 # the same #defines, which is useless.  Nevertheless, we may not want to
24754 # sort them, since we want the *last* AC-DEFINE to be honored.
24755 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24756 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24757 rm -f confdef2sed.sed
24758
24759 # This sed command replaces #undef with comments.  This is necessary, for
24760 # example, in the case of _POSIX_SOURCE, which is predefined and required
24761 # on some systems where configure will not decide to define it.
24762 cat >>conftest.undefs <<\_ACEOF
24763 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24764 _ACEOF
24765
24766 # Break up conftest.defines because some shells have a limit on the size
24767 # of here documents, and old seds have small limits too (100 cmds).
24768 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24769 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24770 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24771 echo '  :' >>$CONFIG_STATUS
24772 rm -f conftest.tail
24773 while grep . conftest.defines >/dev/null
24774 do
24775   # Write a limited-size here document to $tmp/defines.sed.
24776   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24777   # Speed up: don't consider the non `#define' lines.
24778   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24779   # Work around the forget-to-reset-the-flag bug.
24780   echo 't clr' >>$CONFIG_STATUS
24781   echo ': clr' >>$CONFIG_STATUS
24782   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24783   echo 'CEOF
24784   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24785   rm -f $tmp/in
24786   mv $tmp/out $tmp/in
24787 ' >>$CONFIG_STATUS
24788   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24789   rm -f conftest.defines
24790   mv conftest.tail conftest.defines
24791 done
24792 rm -f conftest.defines
24793 echo '  fi # grep' >>$CONFIG_STATUS
24794 echo >>$CONFIG_STATUS
24795
24796 # Break up conftest.undefs because some shells have a limit on the size
24797 # of here documents, and old seds have small limits too (100 cmds).
24798 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24799 rm -f conftest.tail
24800 while grep . conftest.undefs >/dev/null
24801 do
24802   # Write a limited-size here document to $tmp/undefs.sed.
24803   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24804   # Speed up: don't consider the non `#undef'
24805   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24806   # Work around the forget-to-reset-the-flag bug.
24807   echo 't clr' >>$CONFIG_STATUS
24808   echo ': clr' >>$CONFIG_STATUS
24809   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24810   echo 'CEOF
24811   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24812   rm -f $tmp/in
24813   mv $tmp/out $tmp/in
24814 ' >>$CONFIG_STATUS
24815   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24816   rm -f conftest.undefs
24817   mv conftest.tail conftest.undefs
24818 done
24819 rm -f conftest.undefs
24820
24821 cat >>$CONFIG_STATUS <<\_ACEOF
24822   # Let's still pretend it is `configure' which instantiates (i.e., don't
24823   # use $as_me), people would be surprised to read:
24824   #    /* config.h.  Generated by config.status.  */
24825   if test x"$ac_file" = x-; then
24826     echo "/* Generated by configure.  */" >$tmp/config.h
24827   else
24828     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24829   fi
24830   cat $tmp/in >>$tmp/config.h
24831   rm -f $tmp/in
24832   if test x"$ac_file" != x-; then
24833     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24834       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24835 echo "$as_me: $ac_file is unchanged" >&6;}
24836     else
24837       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24839          X"$ac_file" : 'X\(//\)[^/]' \| \
24840          X"$ac_file" : 'X\(//\)$' \| \
24841          X"$ac_file" : 'X\(/\)' \| \
24842          .     : '\(.\)' 2>/dev/null ||
24843 echo X"$ac_file" |
24844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24846           /^X\(\/\/\)$/{ s//\1/; q; }
24847           /^X\(\/\).*/{ s//\1/; q; }
24848           s/.*/./; q'`
24849       { if $as_mkdir_p; then
24850     mkdir -p "$ac_dir"
24851   else
24852     as_dir="$ac_dir"
24853     as_dirs=
24854     while test ! -d "$as_dir"; do
24855       as_dirs="$as_dir $as_dirs"
24856       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24858          X"$as_dir" : 'X\(//\)[^/]' \| \
24859          X"$as_dir" : 'X\(//\)$' \| \
24860          X"$as_dir" : 'X\(/\)' \| \
24861          .     : '\(.\)' 2>/dev/null ||
24862 echo X"$as_dir" |
24863     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24864           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24865           /^X\(\/\/\)$/{ s//\1/; q; }
24866           /^X\(\/\).*/{ s//\1/; q; }
24867           s/.*/./; q'`
24868     done
24869     test ! -n "$as_dirs" || mkdir $as_dirs
24870   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24871 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24872    { (exit 1); exit 1; }; }; }
24873
24874       rm -f $ac_file
24875       mv $tmp/config.h $ac_file
24876     fi
24877   else
24878     cat $tmp/config.h
24879     rm -f $tmp/config.h
24880   fi
24881 done
24882 _ACEOF
24883 cat >>$CONFIG_STATUS <<\_ACEOF
24884
24885 #
24886 # CONFIG_COMMANDS section.
24887 #
24888 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24889   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24890   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24891   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24892 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893          X"$ac_dest" : 'X\(//\)[^/]' \| \
24894          X"$ac_dest" : 'X\(//\)$' \| \
24895          X"$ac_dest" : 'X\(/\)' \| \
24896          .     : '\(.\)' 2>/dev/null ||
24897 echo X"$ac_dest" |
24898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24900           /^X\(\/\/\)$/{ s//\1/; q; }
24901           /^X\(\/\).*/{ s//\1/; q; }
24902           s/.*/./; q'`
24903   { if $as_mkdir_p; then
24904     mkdir -p "$ac_dir"
24905   else
24906     as_dir="$ac_dir"
24907     as_dirs=
24908     while test ! -d "$as_dir"; do
24909       as_dirs="$as_dir $as_dirs"
24910       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24912          X"$as_dir" : 'X\(//\)[^/]' \| \
24913          X"$as_dir" : 'X\(//\)$' \| \
24914          X"$as_dir" : 'X\(/\)' \| \
24915          .     : '\(.\)' 2>/dev/null ||
24916 echo X"$as_dir" |
24917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24919           /^X\(\/\/\)$/{ s//\1/; q; }
24920           /^X\(\/\).*/{ s//\1/; q; }
24921           s/.*/./; q'`
24922     done
24923     test ! -n "$as_dirs" || mkdir $as_dirs
24924   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24925 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24926    { (exit 1); exit 1; }; }; }
24927
24928   ac_builddir=.
24929
24930 if test "$ac_dir" != .; then
24931   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24932   # A "../" for each directory in $ac_dir_suffix.
24933   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24934 else
24935   ac_dir_suffix= ac_top_builddir=
24936 fi
24937
24938 case $srcdir in
24939   .)  # No --srcdir option.  We are building in place.
24940     ac_srcdir=.
24941     if test -z "$ac_top_builddir"; then
24942        ac_top_srcdir=.
24943     else
24944        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24945     fi ;;
24946   [\\/]* | ?:[\\/]* )  # Absolute path.
24947     ac_srcdir=$srcdir$ac_dir_suffix;
24948     ac_top_srcdir=$srcdir ;;
24949   *) # Relative path.
24950     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24951     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24952 esac
24953
24954 # Do not use `cd foo && pwd` to compute absolute paths, because
24955 # the directories may not exist.
24956 case `pwd` in
24957 .) ac_abs_builddir="$ac_dir";;
24958 *)
24959   case "$ac_dir" in
24960   .) ac_abs_builddir=`pwd`;;
24961   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24962   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24963   esac;;
24964 esac
24965 case $ac_abs_builddir in
24966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24967 *)
24968   case ${ac_top_builddir}. in
24969   .) ac_abs_top_builddir=$ac_abs_builddir;;
24970   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24971   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24972   esac;;
24973 esac
24974 case $ac_abs_builddir in
24975 .) ac_abs_srcdir=$ac_srcdir;;
24976 *)
24977   case $ac_srcdir in
24978   .) ac_abs_srcdir=$ac_abs_builddir;;
24979   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24980   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24981   esac;;
24982 esac
24983 case $ac_abs_builddir in
24984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24985 *)
24986   case $ac_top_srcdir in
24987   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24988   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24989   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24990   esac;;
24991 esac
24992
24993
24994   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24995 echo "$as_me: executing $ac_dest commands" >&6;}
24996   case $ac_dest in
24997     default )
24998 case ${CONFIG_HEADERS} in
24999   *auto-host.h:config.in*)
25000   echo > cstamp-h ;;
25001 esac
25002 # Make sure all the subdirs exist.
25003 for d in $subdirs doc build
25004 do
25005     test -d $d || mkdir $d
25006 done
25007  ;;
25008   esac
25009 done
25010 _ACEOF
25011
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25013
25014 { (exit 0); exit 0; }
25015 _ACEOF
25016 chmod +x $CONFIG_STATUS
25017 ac_clean_files=$ac_clean_files_save
25018
25019
25020 # configure is writing to config.log, and then calls config.status.
25021 # config.status does its own redirection, appending to config.log.
25022 # Unfortunately, on DOS this fails, as config.log is still kept open
25023 # by configure, so config.status won't be able to write to it; its
25024 # output is simply discarded.  So we exec the FD to /dev/null,
25025 # effectively closing config.log, so it can be properly (re)opened and
25026 # appended to by config.status.  When coming back to configure, we
25027 # need to make the FD available again.
25028 if test "$no_create" != yes; then
25029   ac_cs_success=:
25030   ac_config_status_args=
25031   test "$silent" = yes &&
25032     ac_config_status_args="$ac_config_status_args --quiet"
25033   exec 5>/dev/null
25034   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25035   exec 5>>config.log
25036   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25037   # would make configure fail if this is the last instruction.
25038   $ac_cs_success || { (exit 1); exit 1; }
25039 fi
25040