OSDN Git Service

2008-07-28 Richard Guenther <rguenther@suse.de>
[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 GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP loose_warn strict_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS BUILD_LDFLAGS STMP_FIXINC STMP_FIXPROTO collect2 LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN ac_ct_AR STRIP ac_ct_STRIP lt_ECHO objdir enable_fast_install gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines build_file_translate check_languages cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs fortran_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
462 ac_subst_files='language_hooks'
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923 ac_env_GMPLIBS_set=${GMPLIBS+set}
924 ac_env_GMPLIBS_value=$GMPLIBS
925 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
926 ac_cv_env_GMPLIBS_value=$GMPLIBS
927 ac_env_GMPINC_set=${GMPINC+set}
928 ac_env_GMPINC_value=$GMPINC
929 ac_cv_env_GMPINC_set=${GMPINC+set}
930 ac_cv_env_GMPINC_value=$GMPINC
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures this package to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000   --target=TARGET   configure for building compilers for TARGET [HOST]
1001 _ACEOF
1002 fi
1003
1004 if test -n "$ac_init_help"; then
1005
1006   cat <<\_ACEOF
1007
1008 Optional Features:
1009   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011   --enable-generated-files-in-srcdir
1012                           put copies of generated files in source dir
1013                           intended for creating source tarballs for users
1014                           without texinfo bison or flex.
1015   --enable-werror-always  enable -Werror despite compiler version
1016   --enable-checking=LIST
1017                           enable expensive run-time checks.  With LIST,
1018                           enable only specific categories of checks.
1019                           Categories are: yes,no,all,none,release.
1020                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1021                           rtlflag,rtl,runtime,tree,valgrind,types.
1022   --enable-coverage=LEVEL
1023                           enable compiler's code coverage collection.
1024                           Use to measure compiler performance and locate
1025                           unused parts of the compiler. With LEVEL, specify
1026                           optimization. Values are opt, noopt,
1027                           default is noopt
1028   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1029   --enable-multilib       enable library support for multiple ABIs
1030   --enable-__cxa_atexit   enable __cxa_atexit for C++
1031   --enable-decimal-float={no,yes,bid,dpd}
1032                         enable decimal float extension to C.  Selecting 'bid'
1033                         or 'dpd' choses which decimal floating point format
1034                         to use
1035   --enable-fixed-point    enable fixed-point arithmetic extension to C
1036   --enable-threads        enable thread usage for target GCC
1037   --enable-threads=LIB    use LIB thread package for target GCC
1038   --enable-tls            enable or disable generation of tls code
1039                           overriding the assembler check for tls support
1040   --enable-objc-gc        enable the use of Boehm's garbage collector with
1041                           the GNU Objective-C runtime
1042   --disable-shared        don't provide a shared libgcc
1043   --enable-intermodule    build the compiler in one step
1044   --enable-languages=LIST specify which front-ends to build
1045   --disable-rpath         do not hardcode runtime library paths
1046   --enable-initfini-array       use .init_array/.fini_array sections
1047   --enable-sjlj-exceptions
1048                           arrange to use setjmp/longjmp exception handling
1049   --enable-secureplt      enable -msecure-plt by default for PowerPC
1050   --enable-cld            enable -mcld by default for 32bit x86
1051   --disable-win32-registry
1052                           disable lookup of installation paths in the
1053                           Registry on Windows hosts
1054   --enable-win32-registry enable registry lookup (default)
1055   --enable-win32-registry=KEY
1056                           use KEY instead of GCC version as the last portion
1057                           of the registry key
1058   --enable-shared[=PKGS]
1059                           build shared libraries [default=yes]
1060   --enable-static[=PKGS]
1061                           build static libraries [default=yes]
1062   --enable-fast-install[=PKGS]
1063                           optimize for fast installation [default=yes]
1064   --disable-libtool-lock  avoid locking (might break parallel builds)
1065   --enable-maintainer-mode
1066                           enable make rules and dependencies not useful
1067                           (and sometimes confusing) to the casual installer
1068   --enable-version-specific-runtime-libs
1069                           specify that runtime libraries should be
1070                           installed in a compiler-specific directory
1071
1072 Optional Packages:
1073   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1074   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1075   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1076   --with-local-prefix=DIR specifies directory to put local include
1077   --with-gxx-include-dir=DIR
1078                           specifies directory to put g++ header files
1079   --with-cpp-install-dir=DIR
1080                           install the user visible C preprocessor in DIR
1081                           (relative to PREFIX) as well as PREFIX/bin
1082   --with-gnu-ld           arrange to work with GNU ld.
1083   --with-ld               arrange to use the specified ld (full pathname)
1084   --with-demangler-in-ld  try to use demangler in GNU ld.
1085   --with-gnu-as           arrange to work with GNU as
1086   --with-as               arrange to use the specified as (full pathname)
1087   --with-stabs            arrange to use stabs instead of host debug format
1088   --with-dwarf2           force the default debug format to be DWARF 2
1089   --with-build-sysroot=sysroot
1090                           use sysroot as the system root during the build
1091   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1092   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1093   --with-bugurl=URL       Direct users to URL to report a bug
1094   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1095   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1096   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1097   --with-system-libunwind use installed libunwind
1098   --with-pic              try to use only PIC/non-PIC objects [default=use
1099                           both]
1100   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1101   --with-long-double-128  Use 128-bit long double by default.
1102   --with-gc={page,zone}   choose the garbage collection mechanism to use
1103                           with the compiler
1104   --with-system-zlib      use installed libz
1105   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1106   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
1107   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
1108   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
1109
1110 Some influential environment variables:
1111   CC          C compiler command
1112   CFLAGS      C compiler flags
1113   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114               nonstandard directory <lib dir>
1115   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116               headers in a nonstandard directory <include dir>
1117   CPP         C preprocessor
1118   GMPLIBS     How to link GMP
1119   GMPINC      How to find GMP include files
1120
1121 Use these variables to override the choices made by `configure' or to help
1122 it to find libraries and programs with nonstandard names/locations.
1123
1124 _ACEOF
1125 fi
1126
1127 if test "$ac_init_help" = "recursive"; then
1128   # If there are subdirs, report their specific --help.
1129   ac_popdir=`pwd`
1130   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1131     test -d $ac_dir || continue
1132     ac_builddir=.
1133
1134 if test "$ac_dir" != .; then
1135   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1136   # A "../" for each directory in $ac_dir_suffix.
1137   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1138 else
1139   ac_dir_suffix= ac_top_builddir=
1140 fi
1141
1142 case $srcdir in
1143   .)  # No --srcdir option.  We are building in place.
1144     ac_srcdir=.
1145     if test -z "$ac_top_builddir"; then
1146        ac_top_srcdir=.
1147     else
1148        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1149     fi ;;
1150   [\\/]* | ?:[\\/]* )  # Absolute path.
1151     ac_srcdir=$srcdir$ac_dir_suffix;
1152     ac_top_srcdir=$srcdir ;;
1153   *) # Relative path.
1154     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1155     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1156 esac
1157
1158 # Do not use `cd foo && pwd` to compute absolute paths, because
1159 # the directories may not exist.
1160 case `pwd` in
1161 .) ac_abs_builddir="$ac_dir";;
1162 *)
1163   case "$ac_dir" in
1164   .) ac_abs_builddir=`pwd`;;
1165   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1166   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1167   esac;;
1168 esac
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *)
1172   case ${ac_top_builddir}. in
1173   .) ac_abs_top_builddir=$ac_abs_builddir;;
1174   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1175   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1176   esac;;
1177 esac
1178 case $ac_abs_builddir in
1179 .) ac_abs_srcdir=$ac_srcdir;;
1180 *)
1181   case $ac_srcdir in
1182   .) ac_abs_srcdir=$ac_abs_builddir;;
1183   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1184   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1185   esac;;
1186 esac
1187 case $ac_abs_builddir in
1188 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *)
1190   case $ac_top_srcdir in
1191   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1192   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1193   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194   esac;;
1195 esac
1196
1197     cd $ac_dir
1198     # Check for guested configure; otherwise get Cygnus style configure.
1199     if test -f $ac_srcdir/configure.gnu; then
1200       echo
1201       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1202     elif test -f $ac_srcdir/configure; then
1203       echo
1204       $SHELL $ac_srcdir/configure  --help=recursive
1205     elif test -f $ac_srcdir/configure.ac ||
1206            test -f $ac_srcdir/configure.in; then
1207       echo
1208       $ac_configure --help
1209     else
1210       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1211     fi
1212     cd $ac_popdir
1213   done
1214 fi
1215
1216 test -n "$ac_init_help" && exit 0
1217 if $ac_init_version; then
1218   cat <<\_ACEOF
1219
1220 Copyright (C) 2003 Free Software Foundation, Inc.
1221 This configure script is free software; the Free Software Foundation
1222 gives unlimited permission to copy, distribute and modify it.
1223 _ACEOF
1224   exit 0
1225 fi
1226 exec 5>config.log
1227 cat >&5 <<_ACEOF
1228 This file contains any messages produced by compilers while
1229 running configure, to aid debugging if configure makes a mistake.
1230
1231 It was created by $as_me, which was
1232 generated by GNU Autoconf 2.59.  Invocation command line was
1233
1234   $ $0 $@
1235
1236 _ACEOF
1237 {
1238 cat <<_ASUNAME
1239 ## --------- ##
1240 ## Platform. ##
1241 ## --------- ##
1242
1243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1248
1249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1250 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1251
1252 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1253 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1255 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1256 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1257 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1258 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1259
1260 _ASUNAME
1261
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263 for as_dir in $PATH
1264 do
1265   IFS=$as_save_IFS
1266   test -z "$as_dir" && as_dir=.
1267   echo "PATH: $as_dir"
1268 done
1269
1270 } >&5
1271
1272 cat >&5 <<_ACEOF
1273
1274
1275 ## ----------- ##
1276 ## Core tests. ##
1277 ## ----------- ##
1278
1279 _ACEOF
1280
1281
1282 # Keep a trace of the command line.
1283 # Strip out --no-create and --no-recursion so they do not pile up.
1284 # Strip out --silent because we don't want to record it for future runs.
1285 # Also quote any args containing shell meta-characters.
1286 # Make two passes to allow for proper duplicate-argument suppression.
1287 ac_configure_args=
1288 ac_configure_args0=
1289 ac_configure_args1=
1290 ac_sep=
1291 ac_must_keep_next=false
1292 for ac_pass in 1 2
1293 do
1294   for ac_arg
1295   do
1296     case $ac_arg in
1297     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1298     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299     | -silent | --silent | --silen | --sile | --sil)
1300       continue ;;
1301     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1303     esac
1304     case $ac_pass in
1305     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1306     2)
1307       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1308       if test $ac_must_keep_next = true; then
1309         ac_must_keep_next=false # Got value, back to normal.
1310       else
1311         case $ac_arg in
1312           *=* | --config-cache | -C | -disable-* | --disable-* \
1313           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1314           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1315           | -with-* | --with-* | -without-* | --without-* | --x)
1316             case "$ac_configure_args0 " in
1317               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1318             esac
1319             ;;
1320           -* ) ac_must_keep_next=true ;;
1321         esac
1322       fi
1323       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1324       # Get rid of the leading space.
1325       ac_sep=" "
1326       ;;
1327     esac
1328   done
1329 done
1330 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1331 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1332
1333 # When interrupted or exit'd, cleanup temporary files, and complete
1334 # config.log.  We remove comments because anyway the quotes in there
1335 # would cause problems or look ugly.
1336 # WARNING: Be sure not to use single quotes in there, as some shells,
1337 # such as our DU 5.0 friend, will then `close' the trap.
1338 trap 'exit_status=$?
1339   # Save into config.log some information that might help in debugging.
1340   {
1341     echo
1342
1343     cat <<\_ASBOX
1344 ## ---------------- ##
1345 ## Cache variables. ##
1346 ## ---------------- ##
1347 _ASBOX
1348     echo
1349     # The following way of writing the cache mishandles newlines in values,
1350 {
1351   (set) 2>&1 |
1352     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1353     *ac_space=\ *)
1354       sed -n \
1355         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1357       ;;
1358     *)
1359       sed -n \
1360         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1361       ;;
1362     esac;
1363 }
1364     echo
1365
1366     cat <<\_ASBOX
1367 ## ----------------- ##
1368 ## Output variables. ##
1369 ## ----------------- ##
1370 _ASBOX
1371     echo
1372     for ac_var in $ac_subst_vars
1373     do
1374       eval ac_val=$`echo $ac_var`
1375       echo "$ac_var='"'"'$ac_val'"'"'"
1376     done | sort
1377     echo
1378
1379     if test -n "$ac_subst_files"; then
1380       cat <<\_ASBOX
1381 ## ------------- ##
1382 ## Output files. ##
1383 ## ------------- ##
1384 _ASBOX
1385       echo
1386       for ac_var in $ac_subst_files
1387       do
1388         eval ac_val=$`echo $ac_var`
1389         echo "$ac_var='"'"'$ac_val'"'"'"
1390       done | sort
1391       echo
1392     fi
1393
1394     if test -s confdefs.h; then
1395       cat <<\_ASBOX
1396 ## ----------- ##
1397 ## confdefs.h. ##
1398 ## ----------- ##
1399 _ASBOX
1400       echo
1401       sed "/^$/d" confdefs.h | sort
1402       echo
1403     fi
1404     test "$ac_signal" != 0 &&
1405       echo "$as_me: caught signal $ac_signal"
1406     echo "$as_me: exit $exit_status"
1407   } >&5
1408   rm -f core *.core &&
1409   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1410     exit $exit_status
1411      ' 0
1412 for ac_signal in 1 2 13 15; do
1413   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1414 done
1415 ac_signal=0
1416
1417 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1418 rm -rf conftest* confdefs.h
1419 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1420 echo >confdefs.h
1421
1422 # Predefined preprocessor variables.
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_NAME "$PACKAGE_NAME"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1436 _ACEOF
1437
1438
1439 cat >>confdefs.h <<_ACEOF
1440 #define PACKAGE_STRING "$PACKAGE_STRING"
1441 _ACEOF
1442
1443
1444 cat >>confdefs.h <<_ACEOF
1445 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1446 _ACEOF
1447
1448
1449 # Let the site file select an alternate cache file if it wants to.
1450 # Prefer explicitly selected file to automatically selected ones.
1451 if test -z "$CONFIG_SITE"; then
1452   if test "x$prefix" != xNONE; then
1453     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1454   else
1455     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1456   fi
1457 fi
1458 for ac_site_file in $CONFIG_SITE; do
1459   if test -r "$ac_site_file"; then
1460     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1461 echo "$as_me: loading site script $ac_site_file" >&6;}
1462     sed 's/^/| /' "$ac_site_file" >&5
1463     . "$ac_site_file"
1464   fi
1465 done
1466
1467 if test -r "$cache_file"; then
1468   # Some versions of bash will fail to source /dev/null (special
1469   # files actually), so we avoid doing that.
1470   if test -f "$cache_file"; then
1471     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1472 echo "$as_me: loading cache $cache_file" >&6;}
1473     case $cache_file in
1474       [\\/]* | ?:[\\/]* ) . $cache_file;;
1475       *)                      . ./$cache_file;;
1476     esac
1477   fi
1478 else
1479   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1480 echo "$as_me: creating cache $cache_file" >&6;}
1481   >$cache_file
1482 fi
1483
1484 # Check that the precious variables saved in the cache have kept the same
1485 # value.
1486 ac_cache_corrupted=false
1487 for ac_var in `(set) 2>&1 |
1488                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1490   eval ac_new_set=\$ac_env_${ac_var}_set
1491   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1492   eval ac_new_val="\$ac_env_${ac_var}_value"
1493   case $ac_old_set,$ac_new_set in
1494     set,)
1495       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1497       ac_cache_corrupted=: ;;
1498     ,set)
1499       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1500 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1501       ac_cache_corrupted=: ;;
1502     ,);;
1503     *)
1504       if test "x$ac_old_val" != "x$ac_new_val"; then
1505         # differences in whitespace do not lead to failure.
1506         ac_old_val_w=`echo x $ac_old_val`
1507         ac_new_val_w=`echo x $ac_new_val`
1508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1509           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1510 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1511           ac_cache_corrupted=:
1512         else
1513           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1514 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1515           eval $ac_var=\$ac_old_val
1516         fi
1517         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1518 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1519         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1520 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1521       fi;;
1522   esac
1523   # Pass precious variables to config.status.
1524   if test "$ac_new_set" = set; then
1525     case $ac_new_val in
1526     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528     *) ac_arg=$ac_var=$ac_new_val ;;
1529     esac
1530     case " $ac_configure_args " in
1531       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1532       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533     esac
1534   fi
1535 done
1536 if $ac_cache_corrupted; then
1537   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1539   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1540 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1541   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1542 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1543    { (exit 1); exit 1; }; }
1544 fi
1545
1546 ac_ext=c
1547 ac_cpp='$CPP $CPPFLAGS'
1548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1575
1576
1577 gcc_version=`cat $srcdir/BASE-VER`
1578
1579 # Determine the host, build, and target systems
1580 ac_aux_dir=
1581 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582   if test -f $ac_dir/install-sh; then
1583     ac_aux_dir=$ac_dir
1584     ac_install_sh="$ac_aux_dir/install-sh -c"
1585     break
1586   elif test -f $ac_dir/install.sh; then
1587     ac_aux_dir=$ac_dir
1588     ac_install_sh="$ac_aux_dir/install.sh -c"
1589     break
1590   elif test -f $ac_dir/shtool; then
1591     ac_aux_dir=$ac_dir
1592     ac_install_sh="$ac_aux_dir/shtool install -c"
1593     break
1594   fi
1595 done
1596 if test -z "$ac_aux_dir"; then
1597   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599    { (exit 1); exit 1; }; }
1600 fi
1601 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604
1605 # Make sure we can run config.sub.
1606 $ac_config_sub sun4 >/dev/null 2>&1 ||
1607   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609    { (exit 1); exit 1; }; }
1610
1611 echo "$as_me:$LINENO: checking build system type" >&5
1612 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613 if test "${ac_cv_build+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_build_alias=$build_alias
1617 test -z "$ac_cv_build_alias" &&
1618   ac_cv_build_alias=`$ac_config_guess`
1619 test -z "$ac_cv_build_alias" &&
1620   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622    { (exit 1); exit 1; }; }
1623 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626    { (exit 1); exit 1; }; }
1627
1628 fi
1629 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630 echo "${ECHO_T}$ac_cv_build" >&6
1631 build=$ac_cv_build
1632 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637 echo "$as_me:$LINENO: checking host system type" >&5
1638 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639 if test "${ac_cv_host+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   ac_cv_host_alias=$host_alias
1643 test -z "$ac_cv_host_alias" &&
1644   ac_cv_host_alias=$ac_cv_build_alias
1645 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648    { (exit 1); exit 1; }; }
1649
1650 fi
1651 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652 echo "${ECHO_T}$ac_cv_host" >&6
1653 host=$ac_cv_host
1654 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659 echo "$as_me:$LINENO: checking target system type" >&5
1660 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1661 if test "${ac_cv_target+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   ac_cv_target_alias=$target_alias
1665 test "x$ac_cv_target_alias" = "x" &&
1666   ac_cv_target_alias=$ac_cv_host_alias
1667 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1668   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1670    { (exit 1); exit 1; }; }
1671
1672 fi
1673 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1674 echo "${ECHO_T}$ac_cv_target" >&6
1675 target=$ac_cv_target
1676 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1679
1680
1681 # The aliases save the names the user supplied, while $host etc.
1682 # will get canonicalized.
1683 test -n "$target_alias" &&
1684   test "$program_prefix$program_suffix$program_transform_name" = \
1685     NONENONEs,x,x, &&
1686   program_prefix=${target_alias}-
1687
1688 # Determine the noncanonical target name, for directory use.
1689  case ${build_alias} in
1690   "") build_noncanonical=${build} ;;
1691   *) build_noncanonical=${build_alias} ;;
1692 esac
1693
1694  case ${host_alias} in
1695   "") host_noncanonical=${build_noncanonical} ;;
1696   *) host_noncanonical=${host_alias} ;;
1697 esac
1698
1699  case ${target_alias} in
1700   "") target_noncanonical=${host_noncanonical} ;;
1701   *) target_noncanonical=${target_alias} ;;
1702 esac
1703
1704
1705
1706
1707 # Determine the target- and build-specific subdirectories
1708
1709 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1710 # have matching libraries, they should use host libraries: Makefile.tpl
1711 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1712 # However, they still use the build modules, because the corresponding
1713 # host modules (e.g. bison) are only built for the host when bootstrap
1714 # finishes. So:
1715 # - build_subdir is where we find build modules, and never changes.
1716 # - build_libsubdir is where we find build libraries, and can be overridden.
1717
1718 # Prefix 'build-' so this never conflicts with target_subdir.
1719 build_subdir="build-${build_noncanonical}"
1720
1721 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1722 if test "${with_build_libsubdir+set}" = set; then
1723   withval="$with_build_libsubdir"
1724   build_libsubdir="$withval"
1725 else
1726   build_libsubdir="$build_subdir"
1727 fi;
1728 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1729 if ( test $srcdir = . && test -d gcc ) \
1730    || test -d $srcdir/../host-${host_noncanonical}; then
1731   host_subdir="host-${host_noncanonical}"
1732 else
1733   host_subdir=.
1734 fi
1735 # No prefix.
1736 target_subdir=${target_noncanonical}
1737
1738
1739 # Set program_transform_name
1740 test "$program_prefix" != NONE &&
1741   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1742 # Use a double $ so make ignores it.
1743 test "$program_suffix" != NONE &&
1744   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1745 # Double any \ or $.  echo might interpret backslashes.
1746 # By default was `s,x,x', remove it if useless.
1747 cat <<\_ACEOF >conftest.sed
1748 s/[\\$]/&&/g;s/;s,x,x,$//
1749 _ACEOF
1750 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1751 rm conftest.sed
1752
1753
1754 # Check for bogus environment variables.
1755 # Test if LIBRARY_PATH contains the notation for the current directory
1756 # since this would lead to problems installing/building glibc.
1757 # LIBRARY_PATH contains the current directory if one of the following
1758 # is true:
1759 # - one of the terminals (":" and ";") is the first or last sign
1760 # - two terminals occur directly after each other
1761 # - the path contains an element with a dot in it
1762 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1763 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1764 case ${LIBRARY_PATH} in
1765   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1766     library_path_setting="contains current directory"
1767     ;;
1768   *)
1769     library_path_setting="ok"
1770     ;;
1771 esac
1772 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1773 echo "${ECHO_T}$library_path_setting" >&6
1774 if test "$library_path_setting" != "ok"; then
1775 { { echo "$as_me:$LINENO: error:
1776 *** LIBRARY_PATH shouldn't contain the current directory when
1777 *** building gcc. Please change the environment variable
1778 *** and run configure again." >&5
1779 echo "$as_me: error:
1780 *** LIBRARY_PATH shouldn't contain the current directory when
1781 *** building gcc. Please change the environment variable
1782 *** and run configure again." >&2;}
1783    { (exit 1); exit 1; }; }
1784 fi
1785
1786 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1787 # since this would lead to problems installing/building glibc.
1788 # GCC_EXEC_PREFIX contains the current directory if one of the following
1789 # is true:
1790 # - one of the terminals (":" and ";") is the first or last sign
1791 # - two terminals occur directly after each other
1792 # - the path contains an element with a dot in it
1793 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1794 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1795 case ${GCC_EXEC_PREFIX} in
1796   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1797     gcc_exec_prefix_setting="contains current directory"
1798     ;;
1799   *)
1800     gcc_exec_prefix_setting="ok"
1801     ;;
1802 esac
1803 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1804 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1805 if test "$gcc_exec_prefix_setting" != "ok"; then
1806 { { echo "$as_me:$LINENO: error:
1807 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1808 *** building gcc. Please change the environment variable
1809 *** and run configure again." >&5
1810 echo "$as_me: error:
1811 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1812 *** building gcc. Please change the environment variable
1813 *** and run configure again." >&2;}
1814    { (exit 1); exit 1; }; }
1815 fi
1816
1817 # -----------
1818 # Directories
1819 # -----------
1820
1821 # Specify the local prefix
1822 local_prefix=
1823
1824 # Check whether --with-local-prefix or --without-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826   withval="$with_local_prefix"
1827   case "${withval}" in
1828 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830    { (exit 1); exit 1; }; } ;;
1831 no)     ;;
1832 *)      local_prefix=$with_local_prefix ;;
1833 esac
1834 fi;
1835
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838         local_prefix=/usr/local
1839 fi
1840
1841 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1842 # passed in by the toplevel make and thus we'd get different behavior
1843 # depending on where we built the sources.
1844 gcc_gxx_include_dir=
1845 # Specify the g++ header file directory
1846
1847 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1848 if test "${with_gxx_include_dir+set}" = set; then
1849   withval="$with_gxx_include_dir"
1850   case "${withval}" in
1851 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1852 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1853    { (exit 1); exit 1; }; } ;;
1854 no)     ;;
1855 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1856 esac
1857 fi;
1858
1859 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1860 if test x${gcc_gxx_include_dir} = x; then
1861   if test x${enable_version_specific_runtime_libs} = xyes; then
1862     gcc_gxx_include_dir='${libsubdir}/include/c++'
1863   else
1864     libstdcxx_incdir='include/c++/$(version)'
1865     if test x$host != x$target; then
1866        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1867     fi
1868     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1869   fi
1870 fi
1871
1872
1873 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1874 if test "${with_cpp_install_dir+set}" = set; then
1875   withval="$with_cpp_install_dir"
1876   if test x$withval = xyes; then
1877   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1878 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1879    { (exit 1); exit 1; }; }
1880 elif test x$withval != xno; then
1881   cpp_install_dir=$withval
1882 fi
1883 fi;
1884
1885 # We would like to our source tree to be readonly.  However when releases or
1886 # pre-releases are generated, the flex/bison generated files as well as the
1887 # various formats of manuals need to be included along with the rest of the
1888 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1889 # just that.
1890
1891 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1892 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1893     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1894 if test "${enable_generated_files_in_srcdir+set}" = set; then
1895   enableval="$enable_generated_files_in_srcdir"
1896   generated_files_in_srcdir=$enableval
1897 else
1898   generated_files_in_srcdir=no
1899 fi;
1900
1901 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1902 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1903
1904 if test "$generated_files_in_srcdir" = "yes"; then
1905   GENINSRC=''
1906 else
1907   GENINSRC='#'
1908 fi
1909
1910
1911 # -------------------
1912 # Find default linker
1913 # -------------------
1914
1915 # With GNU ld
1916
1917 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1918 if test "${with_gnu_ld+set}" = set; then
1919   withval="$with_gnu_ld"
1920   gnu_ld_flag="$with_gnu_ld"
1921 else
1922   gnu_ld_flag=no
1923 fi;
1924
1925 # With pre-defined ld
1926
1927 # Check whether --with-ld or --without-ld was given.
1928 if test "${with_ld+set}" = set; then
1929   withval="$with_ld"
1930   DEFAULT_LINKER="$with_ld"
1931 fi;
1932 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1933   if test ! -x "$DEFAULT_LINKER"; then
1934     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1935 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1936    { (exit 1); exit 1; }; }
1937   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1938     gnu_ld_flag=yes
1939   fi
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1943 _ACEOF
1944
1945 fi
1946
1947 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define HAVE_GNU_LD $gnu_ld
1951 _ACEOF
1952
1953
1954 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1955 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1956 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1957   if test x"$gnu_ld_flag" = x"no"; then
1958     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1959 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1960   else
1961     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1962 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1963   fi
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 # With demangler in GNU ld
1970
1971 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1972 if test "${with_demangler_in_ld+set}" = set; then
1973   withval="$with_demangler_in_ld"
1974   demangler_in_ld="$with_demangler_in_ld"
1975 else
1976   demangler_in_ld=no
1977 fi;
1978
1979 # ----------------------
1980 # Find default assembler
1981 # ----------------------
1982
1983 # With GNU as
1984
1985 # Check whether --with-gnu-as or --without-gnu-as was given.
1986 if test "${with_gnu_as+set}" = set; then
1987   withval="$with_gnu_as"
1988   gas_flag="$with_gnu_as"
1989 else
1990   gas_flag=no
1991 fi;
1992
1993
1994 # Check whether --with-as or --without-as was given.
1995 if test "${with_as+set}" = set; then
1996   withval="$with_as"
1997   DEFAULT_ASSEMBLER="$with_as"
1998 fi;
1999 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2000   if test ! -x "$DEFAULT_ASSEMBLER"; then
2001     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
2002 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
2003    { (exit 1); exit 1; }; }
2004   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
2005     gas_flag=yes
2006   fi
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
2010 _ACEOF
2011
2012 fi
2013
2014 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
2015
2016 cat >>confdefs.h <<_ACEOF
2017 #define HAVE_GNU_AS $gnu_as
2018 _ACEOF
2019
2020
2021 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
2022 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
2023 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
2024   if test x"$gas_flag" = x"no"; then
2025     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
2026 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
2027   else
2028     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
2029 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
2030   fi
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 # ---------------
2037 # Find C compiler
2038 # ---------------
2039
2040 # If a non-executable a.out is present (e.g. created by GNU as above even if
2041 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
2042 # file, even when creating an executable, so an execution test fails.
2043 # Remove possible default executable files to avoid this.
2044 #
2045 # FIXME: This really belongs into AC_PROG_CC and can be removed once
2046 # Autoconf includes it.
2047 rm -f a.out a.exe b.out
2048
2049 # Find the native compiler
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 if test -n "$ac_tool_prefix"; then
2056   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2057 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2058 echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060 if test "${ac_cv_prog_CC+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   if test -n "$CC"; then
2064   ac_cv_prog_CC="$CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2068 do
2069   IFS=$as_save_IFS
2070   test -z "$as_dir" && as_dir=.
2071   for ac_exec_ext in '' $ac_executable_extensions; do
2072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075     break 2
2076   fi
2077 done
2078 done
2079
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087   echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091 fi
2092 if test -z "$ac_cv_prog_CC"; then
2093   ac_ct_CC=$CC
2094   # Extract the first word of "gcc", so it can be a program name with args.
2095 set dummy gcc; ac_word=$2
2096 echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2099   echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101   if test -n "$ac_ct_CC"; then
2102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111     ac_cv_prog_ac_ct_CC="gcc"
2112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117
2118 fi
2119 fi
2120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121 if test -n "$ac_ct_CC"; then
2122   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123 echo "${ECHO_T}$ac_ct_CC" >&6
2124 else
2125   echo "$as_me:$LINENO: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2127 fi
2128
2129   CC=$ac_ct_CC
2130 else
2131   CC="$ac_cv_prog_CC"
2132 fi
2133
2134 if test -z "$CC"; then
2135   if test -n "$ac_tool_prefix"; then
2136   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2137 set dummy ${ac_tool_prefix}cc; ac_word=$2
2138 echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140 if test "${ac_cv_prog_CC+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   if test -n "$CC"; then
2144   ac_cv_prog_CC="$CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153     ac_cv_prog_CC="${ac_tool_prefix}cc"
2154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155     break 2
2156   fi
2157 done
2158 done
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6
2166 else
2167   echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2169 fi
2170
2171 fi
2172 if test -z "$ac_cv_prog_CC"; then
2173   ac_ct_CC=$CC
2174   # Extract the first word of "cc", so it can be a program name with args.
2175 set dummy cc; ac_word=$2
2176 echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$ac_ct_CC"; then
2182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191     ac_cv_prog_ac_ct_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6
2204 else
2205   echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6
2207 fi
2208
2209   CC=$ac_ct_CC
2210 else
2211   CC="$ac_cv_prog_CC"
2212 fi
2213
2214 fi
2215 if test -z "$CC"; then
2216   # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$CC"; then
2224   ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226   ac_prog_rejected=no
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235        ac_prog_rejected=yes
2236        continue
2237      fi
2238     ac_cv_prog_CC="cc"
2239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244
2245 if test $ac_prog_rejected = yes; then
2246   # We found a bogon in the path, so make sure we never use it.
2247   set dummy $ac_cv_prog_CC
2248   shift
2249   if test $# != 0; then
2250     # We chose a different compiler from the bogus one.
2251     # However, it has the same basename, so the bogon will be chosen
2252     # first if we set CC to just the basename; use the full file name.
2253     shift
2254     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2255   fi
2256 fi
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6
2263 else
2264   echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6
2266 fi
2267
2268 fi
2269 if test -z "$CC"; then
2270   if test -n "$ac_tool_prefix"; then
2271   for ac_prog in cl
2272   do
2273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278   echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280   if test -n "$CC"; then
2281   ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292     break 2
2293   fi
2294 done
2295 done
2296
2297 fi
2298 fi
2299 CC=$ac_cv_prog_CC
2300 if test -n "$CC"; then
2301   echo "$as_me:$LINENO: result: $CC" >&5
2302 echo "${ECHO_T}$CC" >&6
2303 else
2304   echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2306 fi
2307
2308     test -n "$CC" && break
2309   done
2310 fi
2311 if test -z "$CC"; then
2312   ac_ct_CC=$CC
2313   for ac_prog in cl
2314 do
2315   # Extract the first word of "$ac_prog", so it can be a program name with args.
2316 set dummy $ac_prog; ac_word=$2
2317 echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   if test -n "$ac_ct_CC"; then
2323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328   IFS=$as_save_IFS
2329   test -z "$as_dir" && as_dir=.
2330   for ac_exec_ext in '' $ac_executable_extensions; do
2331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2332     ac_cv_prog_ac_ct_CC="$ac_prog"
2333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334     break 2
2335   fi
2336 done
2337 done
2338
2339 fi
2340 fi
2341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2342 if test -n "$ac_ct_CC"; then
2343   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2344 echo "${ECHO_T}$ac_ct_CC" >&6
2345 else
2346   echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 fi
2349
2350   test -n "$ac_ct_CC" && break
2351 done
2352
2353   CC=$ac_ct_CC
2354 fi
2355
2356 fi
2357
2358
2359 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2360 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: no acceptable C compiler found in \$PATH
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }; }
2366
2367 # Provide some information about the compiler.
2368 echo "$as_me:$LINENO:" \
2369      "checking for C compiler version" >&5
2370 ac_compiler=`set X $ac_compile; echo $2`
2371 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2372   (eval $ac_compiler --version </dev/null >&5) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }
2376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2377   (eval $ac_compiler -v </dev/null >&5) 2>&5
2378   ac_status=$?
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); }
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2382   (eval $ac_compiler -V </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386
2387 cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393
2394 int
2395 main ()
2396 {
2397
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 ac_clean_files_save=$ac_clean_files
2403 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2404 # Try to create an executable without -o first, disregard a.out.
2405 # It will help us diagnose broken compilers, and finding out an intuition
2406 # of exeext.
2407 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2408 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2409 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2410 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2411   (eval $ac_link_default) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; then
2415   # Find the output, starting from the most likely.  This scheme is
2416 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2417 # resort.
2418
2419 # Be careful to initialize this variable, since it used to be cached.
2420 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2421 ac_cv_exeext=
2422 # b.out is created by i960 compilers.
2423 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2424 do
2425   test -f "$ac_file" || continue
2426   case $ac_file in
2427     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2428         ;;
2429     conftest.$ac_ext )
2430         # This is the source file.
2431         ;;
2432     [ab].out )
2433         # We found the default executable, but exeext='' is most
2434         # certainly right.
2435         break;;
2436     *.* )
2437         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438         # FIXME: I believe we export ac_cv_exeext for Libtool,
2439         # but it would be cool to find out if it's true.  Does anybody
2440         # maintain Libtool? --akim.
2441         export ac_cv_exeext
2442         break;;
2443     * )
2444         break;;
2445   esac
2446 done
2447 else
2448   echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2450
2451 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2452 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: C compiler cannot create executables
2456 See \`config.log' for more details." >&2;}
2457    { (exit 77); exit 77; }; }; }
2458 fi
2459
2460 ac_exeext=$ac_cv_exeext
2461 echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6
2463
2464 # Check the compiler produces executables we can run.  If not, either
2465 # the compiler is broken, or we cross compile.
2466 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2467 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2468 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2469 # If not cross compiling, check that we can run a simple program.
2470 if test "$cross_compiling" != yes; then
2471   if { ac_try='./$ac_file'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; }; then
2477     cross_compiling=no
2478   else
2479     if test "$cross_compiling" = maybe; then
2480         cross_compiling=yes
2481     else
2482         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot run C compiled programs.
2488 If you meant to cross compile, use \`--host'.
2489 See \`config.log' for more details." >&2;}
2490    { (exit 1); exit 1; }; }; }
2491     fi
2492   fi
2493 fi
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2496
2497 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2498 ac_clean_files=$ac_clean_files_save
2499 # Check the compiler produces executables we can run.  If not, either
2500 # the compiler is broken, or we cross compile.
2501 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2502 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2503 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2504 echo "${ECHO_T}$cross_compiling" >&6
2505
2506 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2507 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509   (eval $ac_link) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2516 # `rm'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518   test -f "$ac_file" || continue
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2521     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522           export ac_cv_exeext
2523           break;;
2524     * ) break;;
2525   esac
2526 done
2527 else
2528   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534    { (exit 1); exit 1; }; }; }
2535 fi
2536
2537 rm -f conftest$ac_cv_exeext
2538 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 echo "${ECHO_T}$ac_cv_exeext" >&6
2540
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2546 if test "${ac_cv_objext+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566   (eval $ac_compile) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; then
2570   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574        break;;
2575   esac
2576 done
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2582 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587    { (exit 1); exit 1; }; }; }
2588 fi
2589
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2591 fi
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2595 ac_objext=$OBJEXT
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599   echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601   cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 int
2609 main ()
2610 {
2611 #ifndef __GNUC__
2612        choke me
2613 #endif
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621   (eval $ac_compile) 2>conftest.er1
2622   ac_status=$?
2623   grep -v '^ *+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } &&
2628          { ac_try='test -z "$ac_c_werror_flag"
2629                          || test ! -s conftest.err'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_compiler_gnu=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_compiler_gnu=no
2647 fi
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2650
2651 fi
2652 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2654 GCC=`test $ac_compiler_gnu = yes && echo yes`
2655 ac_test_CFLAGS=${CFLAGS+set}
2656 ac_save_CFLAGS=$CFLAGS
2657 CFLAGS="-g"
2658 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2660 if test "${ac_cv_prog_cc_g+set}" = set; then
2661   echo $ECHO_N "(cached) $ECHO_C" >&6
2662 else
2663   cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2680   (eval $ac_compile) 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } &&
2687          { ac_try='test -z "$ac_c_werror_flag"
2688                          || test ! -s conftest.err'
2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); }; } &&
2694          { ac_try='test -s conftest.$ac_objext'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   ac_cv_prog_cc_g=yes
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 ac_cv_prog_cc_g=no
2706 fi
2707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2708 fi
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711 if test "$ac_test_CFLAGS" = set; then
2712   CFLAGS=$ac_save_CFLAGS
2713 elif test $ac_cv_prog_cc_g = yes; then
2714   if test "$GCC" = yes; then
2715     CFLAGS="-g -O2"
2716   else
2717     CFLAGS="-g"
2718   fi
2719 else
2720   if test "$GCC" = yes; then
2721     CFLAGS="-O2"
2722   else
2723     CFLAGS=
2724   fi
2725 fi
2726 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   ac_cv_prog_cc_stdc=no
2732 ac_save_CC=$CC
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h.  */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h.  */
2739 #include <stdarg.h>
2740 #include <stdio.h>
2741 #include <sys/types.h>
2742 #include <sys/stat.h>
2743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2744 struct buf { int x; };
2745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746 static char *e (p, i)
2747      char **p;
2748      int i;
2749 {
2750   return p[i];
2751 }
2752 static char *f (char * (*g) (char **, int), char **p, ...)
2753 {
2754   char *s;
2755   va_list v;
2756   va_start (v,p);
2757   s = g (p, va_arg (v,int));
2758   va_end (v);
2759   return s;
2760 }
2761
2762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2763    function prototypes and stuff, but not '\xHH' hex character constants.
2764    These don't provoke an error unfortunately, instead are silently treated
2765    as 'x'.  The following induces an error, until -std1 is added to get
2766    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2767    array size at least.  It's necessary to write '\x00'==0 to get something
2768    that's true only with -std1.  */
2769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2770
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2777 int
2778 main ()
2779 {
2780 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2781   ;
2782   return 0;
2783 }
2784 _ACEOF
2785 # Don't try gcc -ansi; that turns off useful extensions and
2786 # breaks some systems' header files.
2787 # AIX                   -qlanglvl=ansi
2788 # Ultrix and OSF/1      -std1
2789 # HP-UX 10.20 and later -Ae
2790 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2791 # SVR4                  -Xc -D__EXTENSIONS__
2792 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2793 do
2794   CC="$ac_save_CC $ac_arg"
2795   rm -f conftest.$ac_objext
2796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797   (eval $ac_compile) 2>conftest.er1
2798   ac_status=$?
2799   grep -v '^ *+' conftest.er1 >conftest.err
2800   rm -f conftest.er1
2801   cat conftest.err >&5
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); } &&
2804          { ac_try='test -z "$ac_c_werror_flag"
2805                          || test ! -s conftest.err'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; } &&
2811          { ac_try='test -s conftest.$ac_objext'
2812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; }; then
2817   ac_cv_prog_cc_stdc=$ac_arg
2818 break
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 fi
2824 rm -f conftest.err conftest.$ac_objext
2825 done
2826 rm -f conftest.$ac_ext conftest.$ac_objext
2827 CC=$ac_save_CC
2828
2829 fi
2830
2831 case "x$ac_cv_prog_cc_stdc" in
2832   x|xno)
2833     echo "$as_me:$LINENO: result: none needed" >&5
2834 echo "${ECHO_T}none needed" >&6 ;;
2835   *)
2836     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2838     CC="$CC $ac_cv_prog_cc_stdc" ;;
2839 esac
2840
2841 # Some people use a C++ compiler to compile C.  Since we use `exit',
2842 # in C++ we need to declare it.  In case someone uses the same compiler
2843 # for both compiling C and C++ we need to have the C++ compiler decide
2844 # the declaration of exit, since it's the most demanding environment.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #ifndef __cplusplus
2847   choke me
2848 #endif
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852   (eval $ac_compile) 2>conftest.er1
2853   ac_status=$?
2854   grep -v '^ *+' conftest.er1 >conftest.err
2855   rm -f conftest.er1
2856   cat conftest.err >&5
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -z "$ac_c_werror_flag"
2860                          || test ! -s conftest.err'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; } &&
2866          { ac_try='test -s conftest.$ac_objext'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; }; then
2872   for ac_declaration in \
2873    '' \
2874    'extern "C" void std::exit (int) throw (); using std::exit;' \
2875    'extern "C" void std::exit (int); using std::exit;' \
2876    'extern "C" void exit (int) throw ();' \
2877    'extern "C" void exit (int);' \
2878    'void exit (int);'
2879 do
2880   cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h.  */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h.  */
2886 $ac_declaration
2887 #include <stdlib.h>
2888 int
2889 main ()
2890 {
2891 exit (42);
2892   ;
2893   return 0;
2894 }
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   :
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 continue
2924 fi
2925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 $ac_declaration
2933 int
2934 main ()
2935 {
2936 exit (42);
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_c_werror_flag"
2951                          || test ! -s conftest.err'
2952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953   (eval $ac_try) 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }; } &&
2957          { ac_try='test -s conftest.$ac_objext'
2958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959   (eval $ac_try) 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; }; then
2963   break
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 fi
2969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2970 done
2971 rm -f conftest*
2972 if test -n "$ac_declaration"; then
2973   echo '#ifdef __cplusplus' >>confdefs.h
2974   echo $ac_declaration      >>confdefs.h
2975   echo '#endif'             >>confdefs.h
2976 fi
2977
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 fi
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_ext=c
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989
2990 if test "x$CC" != xcc; then
2991   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2992 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2993 else
2994   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2995 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2996 fi
2997 set dummy $CC; ac_cc=`echo $2 |
2998                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2999 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 # Make sure it works both with $CC and with simple cc.
3018 # We do the test twice because some compilers refuse to overwrite an
3019 # existing .o file with -o, though they will create one.
3020 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3021 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027   (eval $ac_try) 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); };
3031 then
3032   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3033   if test "x$CC" != xcc; then
3034     # Test first that cc exists at all.
3035     if { ac_try='cc -c conftest.$ac_ext >&5'
3036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037   (eval $ac_try) 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }; }; then
3041       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3042       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048   (eval $ac_try) 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); };
3052       then
3053         # cc works too.
3054         :
3055       else
3056         # cc exists but doesn't like -o.
3057         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3058       fi
3059     fi
3060   fi
3061 else
3062   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3063 fi
3064 rm -f conftest*
3065
3066 fi
3067 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3068   echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 else
3071   echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3073
3074 cat >>confdefs.h <<\_ACEOF
3075 #define NO_MINUS_C_MINUS_O 1
3076 _ACEOF
3077
3078 fi
3079
3080 # expand $ac_aux_dir to an absolute path
3081 am_aux_dir=`cd $ac_aux_dir && pwd`
3082
3083 # FIXME: we rely on the cache variable name because
3084 # there is no other way.
3085 set dummy $CC
3086 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3087 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3088    # Losing compiler, so override with the script.
3089    # FIXME: It is wrong to rewrite CC.
3090    # But if we don't then we get into trouble of one sort or another.
3091    # A longer-term fix would be to have automake use am__CC in this case,
3092    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3093    CC="$am_aux_dir/compile $CC"
3094 fi
3095
3096
3097
3098
3099 if test -n "$ac_tool_prefix"; then
3100   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3102 echo "$as_me:$LINENO: checking for $ac_word" >&5
3103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3105   echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107   if test -n "$GNATBIND"; then
3108   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115   for ac_exec_ext in '' $ac_executable_extensions; do
3116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122 done
3123
3124 fi
3125 fi
3126 GNATBIND=$ac_cv_prog_GNATBIND
3127 if test -n "$GNATBIND"; then
3128   echo "$as_me:$LINENO: result: $GNATBIND" >&5
3129 echo "${ECHO_T}$GNATBIND" >&6
3130 else
3131   echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 fi
3134
3135 fi
3136 if test -z "$ac_cv_prog_GNATBIND"; then
3137   ac_ct_GNATBIND=$GNATBIND
3138   # Extract the first word of "gnatbind", so it can be a program name with args.
3139 set dummy gnatbind; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if test -n "$ac_ct_GNATBIND"; then
3146   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   for ac_exec_ext in '' $ac_executable_extensions; do
3154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160 done
3161
3162   test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3163 fi
3164 fi
3165 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3166 if test -n "$ac_ct_GNATBIND"; then
3167   echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3168 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174   GNATBIND=$ac_ct_GNATBIND
3175 else
3176   GNATBIND="$ac_cv_prog_GNATBIND"
3177 fi
3178
3179 if test -n "$ac_tool_prefix"; then
3180   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
3182 echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -n "$GNATMAKE"; then
3188   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
3198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203
3204 fi
3205 fi
3206 GNATMAKE=$ac_cv_prog_GNATMAKE
3207 if test -n "$GNATMAKE"; then
3208   echo "$as_me:$LINENO: result: $GNATMAKE" >&5
3209 echo "${ECHO_T}$GNATMAKE" >&6
3210 else
3211   echo "$as_me:$LINENO: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3213 fi
3214
3215 fi
3216 if test -z "$ac_cv_prog_GNATMAKE"; then
3217   ac_ct_GNATMAKE=$GNATMAKE
3218   # Extract the first word of "gnatmake", so it can be a program name with args.
3219 set dummy gnatmake; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$ac_ct_GNATMAKE"; then
3226   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242   test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
3243 fi
3244 fi
3245 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
3246 if test -n "$ac_ct_GNATMAKE"; then
3247   echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
3248 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254   GNATMAKE=$ac_ct_GNATMAKE
3255 else
3256   GNATMAKE="$ac_cv_prog_GNATMAKE"
3257 fi
3258
3259 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3260 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3261 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264   cat >conftest.adb <<EOF
3265 procedure conftest is begin null; end conftest;
3266 EOF
3267 acx_cv_cc_gcc_supports_ada=no
3268 # There is a bug in old released versions of GCC which causes the
3269 # driver to exit successfully when the appropriate language module
3270 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
3271 # Therefore we must check for the error message as well as an
3272 # unsuccessful exit.
3273 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
3274 # given a .adb file, but produce no object file.  So we must check
3275 # if an object file was really produced to guard against this.
3276 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
3277 if test x"$errors" = x && test -f conftest.$ac_objext; then
3278   acx_cv_cc_gcc_supports_ada=yes
3279 fi
3280 rm -f conftest.*
3281 fi
3282 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
3283 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
3284
3285 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
3286   have_gnat=yes
3287 else
3288   have_gnat=no
3289 fi
3290
3291
3292 # autoconf is lame and doesn't give us any substitution variable for this.
3293 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3294   NO_MINUS_C_MINUS_O=yes
3295 else
3296   OUTPUT_OPTION='-o $@'
3297 fi
3298
3299
3300
3301 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
3302 # optimizations to be activated explicitly by the toplevel.
3303 case "$CC" in
3304   */prev-gcc/xgcc*) ;;
3305   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
3306 esac
3307
3308
3309 # -------------------------
3310 # Check C compiler features
3311 # -------------------------
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3320 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3321 # On Suns, sometimes $CPP names a directory.
3322 if test -n "$CPP" && test -d "$CPP"; then
3323   CPP=
3324 fi
3325 if test -z "$CPP"; then
3326   if test "${ac_cv_prog_CPP+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329       # Double quotes because CPP needs to be expanded
3330     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3331     do
3332       ac_preproc_ok=false
3333 for ac_c_preproc_warn_flag in '' yes
3334 do
3335   # Use a header file that comes with gcc, so configuring glibc
3336   # with a fresh cross-compiler works.
3337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338   # <limits.h> exists even on freestanding compilers.
3339   # On the NeXT, cc -E runs the code through the compiler's parser,
3340   # not just through cpp. "Syntax error" is here to catch this case.
3341   cat >conftest.$ac_ext <<_ACEOF
3342 /* confdefs.h.  */
3343 _ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h.  */
3347 #ifdef __STDC__
3348 # include <limits.h>
3349 #else
3350 # include <assert.h>
3351 #endif
3352                      Syntax error
3353 _ACEOF
3354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } >/dev/null; then
3362   if test -s conftest.err; then
3363     ac_cpp_err=$ac_c_preproc_warn_flag
3364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3365   else
3366     ac_cpp_err=
3367   fi
3368 else
3369   ac_cpp_err=yes
3370 fi
3371 if test -z "$ac_cpp_err"; then
3372   :
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377   # Broken: fails on valid input.
3378 continue
3379 fi
3380 rm -f conftest.err conftest.$ac_ext
3381
3382   # OK, works on sane cases.  Now check whether non-existent headers
3383   # can be detected and how.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #include <ac_nonexistent.h>
3391 _ACEOF
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } >/dev/null; then
3400   if test -s conftest.err; then
3401     ac_cpp_err=$ac_c_preproc_warn_flag
3402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403   else
3404     ac_cpp_err=
3405   fi
3406 else
3407   ac_cpp_err=yes
3408 fi
3409 if test -z "$ac_cpp_err"; then
3410   # Broken: success on invalid input.
3411 continue
3412 else
3413   echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416   # Passes both tests.
3417 ac_preproc_ok=:
3418 break
3419 fi
3420 rm -f conftest.err conftest.$ac_ext
3421
3422 done
3423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3424 rm -f conftest.err conftest.$ac_ext
3425 if $ac_preproc_ok; then
3426   break
3427 fi
3428
3429     done
3430     ac_cv_prog_CPP=$CPP
3431
3432 fi
3433   CPP=$ac_cv_prog_CPP
3434 else
3435   ac_cv_prog_CPP=$CPP
3436 fi
3437 echo "$as_me:$LINENO: result: $CPP" >&5
3438 echo "${ECHO_T}$CPP" >&6
3439 ac_preproc_ok=false
3440 for ac_c_preproc_warn_flag in '' yes
3441 do
3442   # Use a header file that comes with gcc, so configuring glibc
3443   # with a fresh cross-compiler works.
3444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445   # <limits.h> exists even on freestanding compilers.
3446   # On the NeXT, cc -E runs the code through the compiler's parser,
3447   # not just through cpp. "Syntax error" is here to catch this case.
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454 #ifdef __STDC__
3455 # include <limits.h>
3456 #else
3457 # include <assert.h>
3458 #endif
3459                      Syntax error
3460 _ACEOF
3461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3463   ac_status=$?
3464   grep -v '^ *+' conftest.er1 >conftest.err
3465   rm -f conftest.er1
3466   cat conftest.err >&5
3467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468   (exit $ac_status); } >/dev/null; then
3469   if test -s conftest.err; then
3470     ac_cpp_err=$ac_c_preproc_warn_flag
3471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3472   else
3473     ac_cpp_err=
3474   fi
3475 else
3476   ac_cpp_err=yes
3477 fi
3478 if test -z "$ac_cpp_err"; then
3479   :
3480 else
3481   echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3483
3484   # Broken: fails on valid input.
3485 continue
3486 fi
3487 rm -f conftest.err conftest.$ac_ext
3488
3489   # OK, works on sane cases.  Now check whether non-existent headers
3490   # can be detected and how.
3491   cat >conftest.$ac_ext <<_ACEOF
3492 /* confdefs.h.  */
3493 _ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h.  */
3497 #include <ac_nonexistent.h>
3498 _ACEOF
3499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } >/dev/null; then
3507   if test -s conftest.err; then
3508     ac_cpp_err=$ac_c_preproc_warn_flag
3509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510   else
3511     ac_cpp_err=
3512   fi
3513 else
3514   ac_cpp_err=yes
3515 fi
3516 if test -z "$ac_cpp_err"; then
3517   # Broken: success on invalid input.
3518 continue
3519 else
3520   echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523   # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3526 fi
3527 rm -f conftest.err conftest.$ac_ext
3528
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then
3533   :
3534 else
3535   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541    { (exit 1); exit 1; }; }; }
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 echo "$as_me:$LINENO: checking for egrep" >&5
3552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3553 if test "${ac_cv_prog_egrep+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3557     then ac_cv_prog_egrep='grep -E'
3558     else ac_cv_prog_egrep='egrep'
3559     fi
3560 fi
3561 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3562 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3563  EGREP=$ac_cv_prog_egrep
3564
3565
3566 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3567 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3568 if test "${ac_cv_header_stdc+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h.  */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h.  */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592   (eval $ac_compile) 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } &&
3599          { ac_try='test -z "$ac_c_werror_flag"
3600                          || test ! -s conftest.err'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; } &&
3606          { ac_try='test -s conftest.$ac_objext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_header_stdc=yes
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 ac_cv_header_stdc=no
3618 fi
3619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620
3621 if test $ac_cv_header_stdc = yes; then
3622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3623   cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h.  */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h.  */
3629 #include <string.h>
3630
3631 _ACEOF
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633   $EGREP "memchr" >/dev/null 2>&1; then
3634   :
3635 else
3636   ac_cv_header_stdc=no
3637 fi
3638 rm -f conftest*
3639
3640 fi
3641
3642 if test $ac_cv_header_stdc = yes; then
3643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include <stdlib.h>
3651
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654   $EGREP "free" >/dev/null 2>&1; then
3655   :
3656 else
3657   ac_cv_header_stdc=no
3658 fi
3659 rm -f conftest*
3660
3661 fi
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665   if test "$cross_compiling" = yes; then
3666   :
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <ctype.h>
3675 #if ((' ' & 0x0FF) == 0x020)
3676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 #else
3679 # define ISLOWER(c) \
3680                    (('a' <= (c) && (c) <= 'i') \
3681                      || ('j' <= (c) && (c) <= 'r') \
3682                      || ('s' <= (c) && (c) <= 'z'))
3683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #endif
3685
3686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3687 int
3688 main ()
3689 {
3690   int i;
3691   for (i = 0; i < 256; i++)
3692     if (XOR (islower (i), ISLOWER (i))
3693         || toupper (i) != TOUPPER (i))
3694       exit(2);
3695   exit (0);
3696 }
3697 _ACEOF
3698 rm -f conftest$ac_exeext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3700   (eval $ac_link) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705   (eval $ac_try) 2>&5
3706   ac_status=$?
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; }; then
3709   :
3710 else
3711   echo "$as_me: program exited with status $ac_status" >&5
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 ( exit $ac_status )
3716 ac_cv_header_stdc=no
3717 fi
3718 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 fi
3721 fi
3722 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3724 if test $ac_cv_header_stdc = yes; then
3725
3726 cat >>confdefs.h <<\_ACEOF
3727 #define STDC_HEADERS 1
3728 _ACEOF
3729
3730 fi
3731
3732 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3743                   inttypes.h stdint.h unistd.h
3744 do
3745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3746 echo "$as_me:$LINENO: checking for $ac_header" >&5
3747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 $ac_includes_default
3758
3759 #include <$ac_header>
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3763   (eval $ac_compile) 2>conftest.er1
3764   ac_status=$?
3765   grep -v '^ *+' conftest.er1 >conftest.err
3766   rm -f conftest.er1
3767   cat conftest.err >&5
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); } &&
3770          { ac_try='test -z "$ac_c_werror_flag"
3771                          || test ! -s conftest.err'
3772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773   (eval $ac_try) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; } &&
3777          { ac_try='test -s conftest.$ac_objext'
3778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779   (eval $ac_try) 2>&5
3780   ac_status=$?
3781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782   (exit $ac_status); }; }; then
3783   eval "$as_ac_Header=yes"
3784 else
3785   echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 eval "$as_ac_Header=no"
3789 fi
3790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3795   cat >>confdefs.h <<_ACEOF
3796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3797 _ACEOF
3798
3799 fi
3800
3801 done
3802
3803
3804
3805   if test "${ac_cv_header_minix_config_h+set}" = set; then
3806   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3807 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3808 if test "${ac_cv_header_minix_config_h+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3812 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3813 else
3814   # Is the header compilable?
3815 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3816 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h.  */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h.  */
3823 $ac_includes_default
3824 #include <minix/config.h>
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3828   (eval $ac_compile) 2>conftest.er1
3829   ac_status=$?
3830   grep -v '^ *+' conftest.er1 >conftest.err
3831   rm -f conftest.er1
3832   cat conftest.err >&5
3833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834   (exit $ac_status); } &&
3835          { ac_try='test -z "$ac_c_werror_flag"
3836                          || test ! -s conftest.err'
3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838   (eval $ac_try) 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); }; } &&
3842          { ac_try='test -s conftest.$ac_objext'
3843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844   (eval $ac_try) 2>&5
3845   ac_status=$?
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); }; }; then
3848   ac_header_compiler=yes
3849 else
3850   echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_header_compiler=no
3854 fi
3855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3857 echo "${ECHO_T}$ac_header_compiler" >&6
3858
3859 # Is the header present?
3860 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3861 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868 #include <minix/config.h>
3869 _ACEOF
3870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } >/dev/null; then
3878   if test -s conftest.err; then
3879     ac_cpp_err=$ac_c_preproc_warn_flag
3880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3881   else
3882     ac_cpp_err=
3883   fi
3884 else
3885   ac_cpp_err=yes
3886 fi
3887 if test -z "$ac_cpp_err"; then
3888   ac_header_preproc=yes
3889 else
3890   echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893   ac_header_preproc=no
3894 fi
3895 rm -f conftest.err conftest.$ac_ext
3896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3897 echo "${ECHO_T}$ac_header_preproc" >&6
3898
3899 # So?  What about this header?
3900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3901   yes:no: )
3902     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3903 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3904     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3905 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3906     ac_header_preproc=yes
3907     ;;
3908   no:yes:* )
3909     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3910 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3911     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3912 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3913     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3914 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3915     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3916 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3917     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3918 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3919     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3920 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3921     (
3922       cat <<\_ASBOX
3923 ## ------------------------------------------ ##
3924 ## Report this to the AC_PACKAGE_NAME lists.  ##
3925 ## ------------------------------------------ ##
3926 _ASBOX
3927     ) |
3928       sed "s/^/$as_me: WARNING:     /" >&2
3929     ;;
3930 esac
3931 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3932 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3933 if test "${ac_cv_header_minix_config_h+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   ac_cv_header_minix_config_h=$ac_header_preproc
3937 fi
3938 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3939 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3940
3941 fi
3942 if test $ac_cv_header_minix_config_h = yes; then
3943   MINIX=yes
3944 else
3945   MINIX=
3946 fi
3947
3948
3949   if test "$MINIX" = yes; then
3950
3951 cat >>confdefs.h <<\_ACEOF
3952 #define _POSIX_SOURCE 1
3953 _ACEOF
3954
3955
3956 cat >>confdefs.h <<\_ACEOF
3957 #define _POSIX_1_SOURCE 2
3958 _ACEOF
3959
3960
3961 cat >>confdefs.h <<\_ACEOF
3962 #define _MINIX 1
3963 _ACEOF
3964
3965   fi
3966
3967
3968
3969   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3970 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3971 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3972   echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974   cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980
3981 #         define __EXTENSIONS__ 1
3982           $ac_includes_default
3983 int
3984 main ()
3985 {
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993   (eval $ac_compile) 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -z "$ac_c_werror_flag"
4001                          || test ! -s conftest.err'
4002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003   (eval $ac_try) 2>&5
4004   ac_status=$?
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); }; } &&
4007          { ac_try='test -s conftest.$ac_objext'
4008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009   (eval $ac_try) 2>&5
4010   ac_status=$?
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); }; }; then
4013   ac_cv_safe_to_define___extensions__=yes
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 ac_cv_safe_to_define___extensions__=no
4019 fi
4020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4023 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4024   test $ac_cv_safe_to_define___extensions__ = yes &&
4025     cat >>confdefs.h <<\_ACEOF
4026 #define __EXTENSIONS__ 1
4027 _ACEOF
4028
4029   cat >>confdefs.h <<\_ACEOF
4030 #define _ALL_SOURCE 1
4031 _ACEOF
4032
4033   cat >>confdefs.h <<\_ACEOF
4034 #define _GNU_SOURCE 1
4035 _ACEOF
4036
4037   cat >>confdefs.h <<\_ACEOF
4038 #define _POSIX_PTHREAD_SEMANTICS 1
4039 _ACEOF
4040
4041   cat >>confdefs.h <<\_ACEOF
4042 #define _TANDEM_SOURCE 1
4043 _ACEOF
4044
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4052 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055   CPP=
4056 fi
4057 if test -z "$CPP"; then
4058   if test "${ac_cv_prog_CPP+set}" = set; then
4059   echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061       # Double quotes because CPP needs to be expanded
4062     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063     do
4064       ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4066 do
4067   # Use a header file that comes with gcc, so configuring glibc
4068   # with a fresh cross-compiler works.
4069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070   # <limits.h> exists even on freestanding compilers.
4071   # On the NeXT, cc -E runs the code through the compiler's parser,
4072   # not just through cpp. "Syntax error" is here to catch this case.
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #ifdef __STDC__
4080 # include <limits.h>
4081 #else
4082 # include <assert.h>
4083 #endif
4084                      Syntax error
4085 _ACEOF
4086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4087   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4094   if test -s conftest.err; then
4095     ac_cpp_err=$ac_c_preproc_warn_flag
4096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4097   else
4098     ac_cpp_err=
4099   fi
4100 else
4101   ac_cpp_err=yes
4102 fi
4103 if test -z "$ac_cpp_err"; then
4104   :
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Broken: fails on valid input.
4110 continue
4111 fi
4112 rm -f conftest.err conftest.$ac_ext
4113
4114   # OK, works on sane cases.  Now check whether non-existent headers
4115   # can be detected and how.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <ac_nonexistent.h>
4123 _ACEOF
4124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } >/dev/null; then
4132   if test -s conftest.err; then
4133     ac_cpp_err=$ac_c_preproc_warn_flag
4134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4135   else
4136     ac_cpp_err=
4137   fi
4138 else
4139   ac_cpp_err=yes
4140 fi
4141 if test -z "$ac_cpp_err"; then
4142   # Broken: success on invalid input.
4143 continue
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148   # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4151 fi
4152 rm -f conftest.err conftest.$ac_ext
4153
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4158   break
4159 fi
4160
4161     done
4162     ac_cv_prog_CPP=$CPP
4163
4164 fi
4165   CPP=$ac_cv_prog_CPP
4166 else
4167   ac_cv_prog_CPP=$CPP
4168 fi
4169 echo "$as_me:$LINENO: result: $CPP" >&5
4170 echo "${ECHO_T}$CPP" >&6
4171 ac_preproc_ok=false
4172 for ac_c_preproc_warn_flag in '' yes
4173 do
4174   # Use a header file that comes with gcc, so configuring glibc
4175   # with a fresh cross-compiler works.
4176   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177   # <limits.h> exists even on freestanding compilers.
4178   # On the NeXT, cc -E runs the code through the compiler's parser,
4179   # not just through cpp. "Syntax error" is here to catch this case.
4180   cat >conftest.$ac_ext <<_ACEOF
4181 /* confdefs.h.  */
4182 _ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h.  */
4186 #ifdef __STDC__
4187 # include <limits.h>
4188 #else
4189 # include <assert.h>
4190 #endif
4191                      Syntax error
4192 _ACEOF
4193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4194   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } >/dev/null; then
4201   if test -s conftest.err; then
4202     ac_cpp_err=$ac_c_preproc_warn_flag
4203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4204   else
4205     ac_cpp_err=
4206   fi
4207 else
4208   ac_cpp_err=yes
4209 fi
4210 if test -z "$ac_cpp_err"; then
4211   :
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Broken: fails on valid input.
4217 continue
4218 fi
4219 rm -f conftest.err conftest.$ac_ext
4220
4221   # OK, works on sane cases.  Now check whether non-existent headers
4222   # can be detected and how.
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 #include <ac_nonexistent.h>
4230 _ACEOF
4231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } >/dev/null; then
4239   if test -s conftest.err; then
4240     ac_cpp_err=$ac_c_preproc_warn_flag
4241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242   else
4243     ac_cpp_err=
4244   fi
4245 else
4246   ac_cpp_err=yes
4247 fi
4248 if test -z "$ac_cpp_err"; then
4249   # Broken: success on invalid input.
4250 continue
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255   # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4265   :
4266 else
4267   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4268 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log' for more details." >&5
4271 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&2;}
4273    { (exit 1); exit 1; }; }; }
4274 fi
4275
4276 ac_ext=c
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 echo "$as_me:$LINENO: checking for inline" >&5
4283 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4284 if test "${ac_cv_c_inline+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_cv_c_inline=no
4288 for ac_kw in inline __inline__ __inline; do
4289   cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295 #ifndef __cplusplus
4296 typedef int foo_t;
4297 static $ac_kw foo_t static_foo () {return 0; }
4298 $ac_kw foo_t foo () {return 0; }
4299 #endif
4300
4301 _ACEOF
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304   (eval $ac_compile) 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } &&
4311          { ac_try='test -z "$ac_c_werror_flag"
4312                          || test ! -s conftest.err'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; } &&
4318          { ac_try='test -s conftest.$ac_objext'
4319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320   (eval $ac_try) 2>&5
4321   ac_status=$?
4322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323   (exit $ac_status); }; }; then
4324   ac_cv_c_inline=$ac_kw; break
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 done
4332
4333 fi
4334 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335 echo "${ECHO_T}$ac_cv_c_inline" >&6
4336
4337
4338 case $ac_cv_c_inline in
4339   inline | yes) ;;
4340   *)
4341     case $ac_cv_c_inline in
4342       no) ac_val=;;
4343       *) ac_val=$ac_cv_c_inline;;
4344     esac
4345     cat >>confdefs.h <<_ACEOF
4346 #ifndef __cplusplus
4347 #define inline $ac_val
4348 #endif
4349 _ACEOF
4350     ;;
4351 esac
4352
4353
4354 # sizeof(char) is 1 by definition.
4355 echo "$as_me:$LINENO: checking for void *" >&5
4356 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4357 if test "${ac_cv_type_void_p+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 $ac_includes_default
4367 int
4368 main ()
4369 {
4370 if ((void * *) 0)
4371   return 0;
4372 if (sizeof (void *))
4373   return 0;
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380   (eval $ac_compile) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag"
4388                          || test ! -s conftest.err'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; } &&
4394          { ac_try='test -s conftest.$ac_objext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_type_void_p=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ac_cv_type_void_p=no
4406 fi
4407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4410 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4411
4412 echo "$as_me:$LINENO: checking size of void *" >&5
4413 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4414 if test "${ac_cv_sizeof_void_p+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   if test "$ac_cv_type_void_p" = yes; then
4418   # The cast to unsigned long works around a bug in the HP C Compiler
4419   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4420   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4421   # This bug is HP SR number 8606223364.
4422   if test "$cross_compiling" = yes; then
4423   # Depending upon the size, compute the lo and hi bounds.
4424 cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430 $ac_includes_default
4431 int
4432 main ()
4433 {
4434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4435 test_array [0] = 0
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 rm -f conftest.$ac_objext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4443   (eval $ac_compile) 2>conftest.er1
4444   ac_status=$?
4445   grep -v '^ *+' conftest.er1 >conftest.err
4446   rm -f conftest.er1
4447   cat conftest.err >&5
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); } &&
4450          { ac_try='test -z "$ac_c_werror_flag"
4451                          || test ! -s conftest.err'
4452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453   (eval $ac_try) 2>&5
4454   ac_status=$?
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); }; } &&
4457          { ac_try='test -s conftest.$ac_objext'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; }; then
4463   ac_lo=0 ac_mid=0
4464   while :; do
4465     cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 $ac_includes_default
4472 int
4473 main ()
4474 {
4475 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4476 test_array [0] = 0
4477
4478   ;
4479   return 0;
4480 }
4481 _ACEOF
4482 rm -f conftest.$ac_objext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484   (eval $ac_compile) 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } &&
4491          { ac_try='test -z "$ac_c_werror_flag"
4492                          || test ! -s conftest.err'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; } &&
4498          { ac_try='test -s conftest.$ac_objext'
4499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500   (eval $ac_try) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   ac_hi=$ac_mid; break
4505 else
4506   echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4508
4509 ac_lo=`expr $ac_mid + 1`
4510                     if test $ac_lo -le $ac_mid; then
4511                       ac_lo= ac_hi=
4512                       break
4513                     fi
4514                     ac_mid=`expr 2 '*' $ac_mid + 1`
4515 fi
4516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4517   done
4518 else
4519   echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 $ac_includes_default
4529 int
4530 main ()
4531 {
4532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4533 test_array [0] = 0
4534
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541   (eval $ac_compile) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_c_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_hi=-1 ac_mid=-1
4562   while :; do
4563     cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 $ac_includes_default
4570 int
4571 main ()
4572 {
4573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4574 test_array [0] = 0
4575
4576   ;
4577   return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582   (eval $ac_compile) 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } &&
4589          { ac_try='test -z "$ac_c_werror_flag"
4590                          || test ! -s conftest.err'
4591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592   (eval $ac_try) 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest.$ac_objext'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; }; then
4602   ac_lo=$ac_mid; break
4603 else
4604   echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 ac_hi=`expr '(' $ac_mid ')' - 1`
4608                        if test $ac_mid -le $ac_hi; then
4609                          ac_lo= ac_hi=
4610                          break
4611                        fi
4612                        ac_mid=`expr 2 '*' $ac_mid`
4613 fi
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615   done
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 ac_lo= ac_hi=
4621 fi
4622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 # Binary search between lo and hi bounds.
4626 while test "x$ac_lo" != "x$ac_hi"; do
4627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4628   cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 $ac_includes_default
4635 int
4636 main ()
4637 {
4638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4639 test_array [0] = 0
4640
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647   (eval $ac_compile) 2>conftest.er1
4648   ac_status=$?
4649   grep -v '^ *+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); } &&
4654          { ac_try='test -z "$ac_c_werror_flag"
4655                          || test ! -s conftest.err'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; } &&
4661          { ac_try='test -s conftest.$ac_objext'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; }; then
4667   ac_hi=$ac_mid
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_lo=`expr '(' $ac_mid ')' + 1`
4673 fi
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 done
4676 case $ac_lo in
4677 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4678 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4679 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4681 See \`config.log' for more details." >&5
4682 echo "$as_me: error: cannot compute sizeof (void *), 77
4683 See \`config.log' for more details." >&2;}
4684    { (exit 1); exit 1; }; }; } ;;
4685 esac
4686 else
4687   if test "$cross_compiling" = yes; then
4688   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4689 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4691 See \`config.log' for more details." >&5
4692 echo "$as_me: error: cannot run test program while cross compiling
4693 See \`config.log' for more details." >&2;}
4694    { (exit 1); exit 1; }; }; }
4695 else
4696   cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702 $ac_includes_default
4703 long longval () { return (long) (sizeof (void *)); }
4704 unsigned long ulongval () { return (long) (sizeof (void *)); }
4705 #include <stdio.h>
4706 #include <stdlib.h>
4707 int
4708 main ()
4709 {
4710
4711   FILE *f = fopen ("conftest.val", "w");
4712   if (! f)
4713     exit (1);
4714   if (((long) (sizeof (void *))) < 0)
4715     {
4716       long i = longval ();
4717       if (i != ((long) (sizeof (void *))))
4718         exit (1);
4719       fprintf (f, "%ld\n", i);
4720     }
4721   else
4722     {
4723       unsigned long i = ulongval ();
4724       if (i != ((long) (sizeof (void *))))
4725         exit (1);
4726       fprintf (f, "%lu\n", i);
4727     }
4728   exit (ferror (f) || fclose (f) != 0);
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736   (eval $ac_link) 2>&5
4737   ac_status=$?
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_cv_sizeof_void_p=`cat conftest.val`
4746 else
4747   echo "$as_me: program exited with status $ac_status" >&5
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 ( exit $ac_status )
4752 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4753 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4755 See \`config.log' for more details." >&5
4756 echo "$as_me: error: cannot compute sizeof (void *), 77
4757 See \`config.log' for more details." >&2;}
4758    { (exit 1); exit 1; }; }; }
4759 fi
4760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4761 fi
4762 fi
4763 rm -f conftest.val
4764 else
4765   ac_cv_sizeof_void_p=0
4766 fi
4767 fi
4768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4769 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4770 cat >>confdefs.h <<_ACEOF
4771 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4772 _ACEOF
4773
4774
4775 echo "$as_me:$LINENO: checking for short" >&5
4776 echo $ECHO_N "checking for short... $ECHO_C" >&6
4777 if test "${ac_cv_type_short+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 $ac_includes_default
4787 int
4788 main ()
4789 {
4790 if ((short *) 0)
4791   return 0;
4792 if (sizeof (short))
4793   return 0;
4794   ;
4795   return 0;
4796 }
4797 _ACEOF
4798 rm -f conftest.$ac_objext
4799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800   (eval $ac_compile) 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_c_werror_flag"
4808                          || test ! -s conftest.err'
4809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810   (eval $ac_try) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; } &&
4814          { ac_try='test -s conftest.$ac_objext'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820   ac_cv_type_short=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_cv_type_short=no
4826 fi
4827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4830 echo "${ECHO_T}$ac_cv_type_short" >&6
4831
4832 echo "$as_me:$LINENO: checking size of short" >&5
4833 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4834 if test "${ac_cv_sizeof_short+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   if test "$ac_cv_type_short" = yes; then
4838   # The cast to unsigned long works around a bug in the HP C Compiler
4839   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4840   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4841   # This bug is HP SR number 8606223364.
4842   if test "$cross_compiling" = yes; then
4843   # Depending upon the size, compute the lo and hi bounds.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 $ac_includes_default
4851 int
4852 main ()
4853 {
4854 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4855 test_array [0] = 0
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863   (eval $ac_compile) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -z "$ac_c_werror_flag"
4871                          || test ! -s conftest.err'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; } &&
4877          { ac_try='test -s conftest.$ac_objext'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; }; then
4883   ac_lo=0 ac_mid=0
4884   while :; do
4885     cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4897
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904   (eval $ac_compile) 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag"
4912                          || test ! -s conftest.err'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; } &&
4918          { ac_try='test -s conftest.$ac_objext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_hi=$ac_mid; break
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_lo=`expr $ac_mid + 1`
4930                     if test $ac_lo -le $ac_mid; then
4931                       ac_lo= ac_hi=
4932                       break
4933                     fi
4934                     ac_mid=`expr 2 '*' $ac_mid + 1`
4935 fi
4936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937   done
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_includes_default
4949 int
4950 main ()
4951 {
4952 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4953 test_array [0] = 0
4954
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -z "$ac_c_werror_flag"
4969                          || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_hi=-1 ac_mid=-1
4982   while :; do
4983     cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 $ac_includes_default
4990 int
4991 main ()
4992 {
4993 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4994 test_array [0] = 0
4995
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 rm -f conftest.$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002   (eval $ac_compile) 2>conftest.er1
5003   ac_status=$?
5004   grep -v '^ *+' conftest.er1 >conftest.err
5005   rm -f conftest.er1
5006   cat conftest.err >&5
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -z "$ac_c_werror_flag"
5010                          || test ! -s conftest.err'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; } &&
5016          { ac_try='test -s conftest.$ac_objext'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; }; then
5022   ac_lo=$ac_mid; break
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_hi=`expr '(' $ac_mid ')' - 1`
5028                        if test $ac_mid -le $ac_hi; then
5029                          ac_lo= ac_hi=
5030                          break
5031                        fi
5032                        ac_mid=`expr 2 '*' $ac_mid`
5033 fi
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035   done
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 ac_lo= ac_hi=
5041 fi
5042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5043 fi
5044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 # Binary search between lo and hi bounds.
5046 while test "x$ac_lo" != "x$ac_hi"; do
5047   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 $ac_includes_default
5055 int
5056 main ()
5057 {
5058 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5059 test_array [0] = 0
5060
5061   ;
5062   return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } &&
5074          { ac_try='test -z "$ac_c_werror_flag"
5075                          || test ! -s conftest.err'
5076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077   (eval $ac_try) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; } &&
5081          { ac_try='test -s conftest.$ac_objext'
5082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083   (eval $ac_try) 2>&5
5084   ac_status=$?
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); }; }; then
5087   ac_hi=$ac_mid
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 ac_lo=`expr '(' $ac_mid ')' + 1`
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 done
5096 case $ac_lo in
5097 ?*) ac_cv_sizeof_short=$ac_lo;;
5098 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5099 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5101 See \`config.log' for more details." >&5
5102 echo "$as_me: error: cannot compute sizeof (short), 77
5103 See \`config.log' for more details." >&2;}
5104    { (exit 1); exit 1; }; }; } ;;
5105 esac
5106 else
5107   if test "$cross_compiling" = yes; then
5108   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5109 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5110 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot run test program while cross compiling
5113 See \`config.log' for more details." >&2;}
5114    { (exit 1); exit 1; }; }; }
5115 else
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 $ac_includes_default
5123 long longval () { return (long) (sizeof (short)); }
5124 unsigned long ulongval () { return (long) (sizeof (short)); }
5125 #include <stdio.h>
5126 #include <stdlib.h>
5127 int
5128 main ()
5129 {
5130
5131   FILE *f = fopen ("conftest.val", "w");
5132   if (! f)
5133     exit (1);
5134   if (((long) (sizeof (short))) < 0)
5135     {
5136       long i = longval ();
5137       if (i != ((long) (sizeof (short))))
5138         exit (1);
5139       fprintf (f, "%ld\n", i);
5140     }
5141   else
5142     {
5143       unsigned long i = ulongval ();
5144       if (i != ((long) (sizeof (short))))
5145         exit (1);
5146       fprintf (f, "%lu\n", i);
5147     }
5148   exit (ferror (f) || fclose (f) != 0);
5149
5150   ;
5151   return 0;
5152 }
5153 _ACEOF
5154 rm -f conftest$ac_exeext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5156   (eval $ac_link) 2>&5
5157   ac_status=$?
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161   (eval $ac_try) 2>&5
5162   ac_status=$?
5163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164   (exit $ac_status); }; }; then
5165   ac_cv_sizeof_short=`cat conftest.val`
5166 else
5167   echo "$as_me: program exited with status $ac_status" >&5
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171 ( exit $ac_status )
5172 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5173 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: cannot compute sizeof (short), 77
5177 See \`config.log' for more details." >&2;}
5178    { (exit 1); exit 1; }; }; }
5179 fi
5180 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5181 fi
5182 fi
5183 rm -f conftest.val
5184 else
5185   ac_cv_sizeof_short=0
5186 fi
5187 fi
5188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5189 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5190 cat >>confdefs.h <<_ACEOF
5191 #define SIZEOF_SHORT $ac_cv_sizeof_short
5192 _ACEOF
5193
5194
5195 echo "$as_me:$LINENO: checking for int" >&5
5196 echo $ECHO_N "checking for int... $ECHO_C" >&6
5197 if test "${ac_cv_type_int+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 $ac_includes_default
5207 int
5208 main ()
5209 {
5210 if ((int *) 0)
5211   return 0;
5212 if (sizeof (int))
5213   return 0;
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220   (eval $ac_compile) 2>conftest.er1
5221   ac_status=$?
5222   grep -v '^ *+' conftest.er1 >conftest.err
5223   rm -f conftest.er1
5224   cat conftest.err >&5
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); } &&
5227          { ac_try='test -z "$ac_c_werror_flag"
5228                          || test ! -s conftest.err'
5229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230   (eval $ac_try) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; } &&
5234          { ac_try='test -s conftest.$ac_objext'
5235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236   (eval $ac_try) 2>&5
5237   ac_status=$?
5238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239   (exit $ac_status); }; }; then
5240   ac_cv_type_int=yes
5241 else
5242   echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ac_cv_type_int=no
5246 fi
5247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248 fi
5249 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5250 echo "${ECHO_T}$ac_cv_type_int" >&6
5251
5252 echo "$as_me:$LINENO: checking size of int" >&5
5253 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5254 if test "${ac_cv_sizeof_int+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   if test "$ac_cv_type_int" = yes; then
5258   # The cast to unsigned long works around a bug in the HP C Compiler
5259   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5260   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5261   # This bug is HP SR number 8606223364.
5262   if test "$cross_compiling" = yes; then
5263   # Depending upon the size, compute the lo and hi bounds.
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h.  */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h.  */
5270 $ac_includes_default
5271 int
5272 main ()
5273 {
5274 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5275 test_array [0] = 0
5276
5277   ;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283   (eval $ac_compile) 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -z "$ac_c_werror_flag"
5291                          || test ! -s conftest.err'
5292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293   (eval $ac_try) 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; } &&
5297          { ac_try='test -s conftest.$ac_objext'
5298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299   (eval $ac_try) 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }; }; then
5303   ac_lo=0 ac_mid=0
5304   while :; do
5305     cat >conftest.$ac_ext <<_ACEOF
5306 /* confdefs.h.  */
5307 _ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h.  */
5311 $ac_includes_default
5312 int
5313 main ()
5314 {
5315 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5316 test_array [0] = 0
5317
5318   ;
5319   return 0;
5320 }
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5324   (eval $ac_compile) 2>conftest.er1
5325   ac_status=$?
5326   grep -v '^ *+' conftest.er1 >conftest.err
5327   rm -f conftest.er1
5328   cat conftest.err >&5
5329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330   (exit $ac_status); } &&
5331          { ac_try='test -z "$ac_c_werror_flag"
5332                          || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_hi=$ac_mid; break
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_lo=`expr $ac_mid + 1`
5350                     if test $ac_lo -le $ac_mid; then
5351                       ac_lo= ac_hi=
5352                       break
5353                     fi
5354                     ac_mid=`expr 2 '*' $ac_mid + 1`
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357   done
5358 else
5359   echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5373 test_array [0] = 0
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } &&
5388          { ac_try='test -z "$ac_c_werror_flag"
5389                          || test ! -s conftest.err'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; } &&
5395          { ac_try='test -s conftest.$ac_objext'
5396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397   (eval $ac_try) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); }; }; then
5401   ac_hi=-1 ac_mid=-1
5402   while :; do
5403     cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 $ac_includes_default
5410 int
5411 main ()
5412 {
5413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5414 test_array [0] = 0
5415
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422   (eval $ac_compile) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"
5430                          || test ! -s conftest.err'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; } &&
5436          { ac_try='test -s conftest.$ac_objext'
5437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438   (eval $ac_try) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   ac_lo=$ac_mid; break
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_hi=`expr '(' $ac_mid ')' - 1`
5448                        if test $ac_mid -le $ac_hi; then
5449                          ac_lo= ac_hi=
5450                          break
5451                        fi
5452                        ac_mid=`expr 2 '*' $ac_mid`
5453 fi
5454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455   done
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460 ac_lo= ac_hi=
5461 fi
5462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5465 # Binary search between lo and hi bounds.
5466 while test "x$ac_lo" != "x$ac_hi"; do
5467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 $ac_includes_default
5475 int
5476 main ()
5477 {
5478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5479 test_array [0] = 0
5480
5481   ;
5482   return 0;
5483 }
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487   (eval $ac_compile) 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } &&
5494          { ac_try='test -z "$ac_c_werror_flag"
5495                          || test ! -s conftest.err'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; } &&
5501          { ac_try='test -s conftest.$ac_objext'
5502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503   (eval $ac_try) 2>&5
5504   ac_status=$?
5505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); }; }; then
5507   ac_hi=$ac_mid
5508 else
5509   echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 ac_lo=`expr '(' $ac_mid ')' + 1`
5513 fi
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515 done
5516 case $ac_lo in
5517 ?*) ac_cv_sizeof_int=$ac_lo;;
5518 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5520 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5521 See \`config.log' for more details." >&5
5522 echo "$as_me: error: cannot compute sizeof (int), 77
5523 See \`config.log' for more details." >&2;}
5524    { (exit 1); exit 1; }; }; } ;;
5525 esac
5526 else
5527   if test "$cross_compiling" = yes; then
5528   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5529 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5531 See \`config.log' for more details." >&5
5532 echo "$as_me: error: cannot run test program while cross compiling
5533 See \`config.log' for more details." >&2;}
5534    { (exit 1); exit 1; }; }; }
5535 else
5536   cat >conftest.$ac_ext <<_ACEOF
5537 /* confdefs.h.  */
5538 _ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h.  */
5542 $ac_includes_default
5543 long longval () { return (long) (sizeof (int)); }
5544 unsigned long ulongval () { return (long) (sizeof (int)); }
5545 #include <stdio.h>
5546 #include <stdlib.h>
5547 int
5548 main ()
5549 {
5550
5551   FILE *f = fopen ("conftest.val", "w");
5552   if (! f)
5553     exit (1);
5554   if (((long) (sizeof (int))) < 0)
5555     {
5556       long i = longval ();
5557       if (i != ((long) (sizeof (int))))
5558         exit (1);
5559       fprintf (f, "%ld\n", i);
5560     }
5561   else
5562     {
5563       unsigned long i = ulongval ();
5564       if (i != ((long) (sizeof (int))))
5565         exit (1);
5566       fprintf (f, "%lu\n", i);
5567     }
5568   exit (ferror (f) || fclose (f) != 0);
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest$ac_exeext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5576   (eval $ac_link) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581   (eval $ac_try) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }; }; then
5585   ac_cv_sizeof_int=`cat conftest.val`
5586 else
5587   echo "$as_me: program exited with status $ac_status" >&5
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5590
5591 ( exit $ac_status )
5592 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5593 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5595 See \`config.log' for more details." >&5
5596 echo "$as_me: error: cannot compute sizeof (int), 77
5597 See \`config.log' for more details." >&2;}
5598    { (exit 1); exit 1; }; }; }
5599 fi
5600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5601 fi
5602 fi
5603 rm -f conftest.val
5604 else
5605   ac_cv_sizeof_int=0
5606 fi
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5609 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_INT $ac_cv_sizeof_int
5612 _ACEOF
5613
5614
5615 echo "$as_me:$LINENO: checking for long" >&5
5616 echo $ECHO_N "checking for long... $ECHO_C" >&6
5617 if test "${ac_cv_type_long+set}" = set; then
5618   echo $ECHO_N "(cached) $ECHO_C" >&6
5619 else
5620   cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h.  */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h.  */
5626 $ac_includes_default
5627 int
5628 main ()
5629 {
5630 if ((long *) 0)
5631   return 0;
5632 if (sizeof (long))
5633   return 0;
5634   ;
5635   return 0;
5636 }
5637 _ACEOF
5638 rm -f conftest.$ac_objext
5639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5640   (eval $ac_compile) 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -z "$ac_c_werror_flag"
5648                          || test ! -s conftest.err'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; } &&
5654          { ac_try='test -s conftest.$ac_objext'
5655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656   (eval $ac_try) 2>&5
5657   ac_status=$?
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); }; }; then
5660   ac_cv_type_long=yes
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 ac_cv_type_long=no
5666 fi
5667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 fi
5669 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5670 echo "${ECHO_T}$ac_cv_type_long" >&6
5671
5672 echo "$as_me:$LINENO: checking size of long" >&5
5673 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5674 if test "${ac_cv_sizeof_long+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   if test "$ac_cv_type_long" = yes; then
5678   # The cast to unsigned long works around a bug in the HP C Compiler
5679   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5680   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5681   # This bug is HP SR number 8606223364.
5682   if test "$cross_compiling" = yes; then
5683   # Depending upon the size, compute the lo and hi bounds.
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h.  */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h.  */
5690 $ac_includes_default
5691 int
5692 main ()
5693 {
5694 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5695 test_array [0] = 0
5696
5697   ;
5698   return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703   (eval $ac_compile) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } &&
5710          { ac_try='test -z "$ac_c_werror_flag"
5711                          || test ! -s conftest.err'
5712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713   (eval $ac_try) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; } &&
5717          { ac_try='test -s conftest.$ac_objext'
5718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719   (eval $ac_try) 2>&5
5720   ac_status=$?
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); }; }; then
5723   ac_lo=0 ac_mid=0
5724   while :; do
5725     cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 int
5733 main ()
5734 {
5735 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5736 test_array [0] = 0
5737
5738   ;
5739   return 0;
5740 }
5741 _ACEOF
5742 rm -f conftest.$ac_objext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744   (eval $ac_compile) 2>conftest.er1
5745   ac_status=$?
5746   grep -v '^ *+' conftest.er1 >conftest.err
5747   rm -f conftest.er1
5748   cat conftest.err >&5
5749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750   (exit $ac_status); } &&
5751          { ac_try='test -z "$ac_c_werror_flag"
5752                          || test ! -s conftest.err'
5753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754   (eval $ac_try) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_hi=$ac_mid; break
5765 else
5766   echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_lo=`expr $ac_mid + 1`
5770                     if test $ac_lo -le $ac_mid; then
5771                       ac_lo= ac_hi=
5772                       break
5773                     fi
5774                     ac_mid=`expr 2 '*' $ac_mid + 1`
5775 fi
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777   done
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 $ac_includes_default
5789 int
5790 main ()
5791 {
5792 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5793 test_array [0] = 0
5794
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801   (eval $ac_compile) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"
5809                          || test ! -s conftest.err'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; } &&
5815          { ac_try='test -s conftest.$ac_objext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_hi=-1 ac_mid=-1
5822   while :; do
5823     cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h.  */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h.  */
5829 $ac_includes_default
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5834 test_array [0] = 0
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842   (eval $ac_compile) 2>conftest.er1
5843   ac_status=$?
5844   grep -v '^ *+' conftest.er1 >conftest.err
5845   rm -f conftest.er1
5846   cat conftest.err >&5
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); } &&
5849          { ac_try='test -z "$ac_c_werror_flag"
5850                          || test ! -s conftest.err'
5851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852   (eval $ac_try) 2>&5
5853   ac_status=$?
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); }; } &&
5856          { ac_try='test -s conftest.$ac_objext'
5857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858   (eval $ac_try) 2>&5
5859   ac_status=$?
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); }; }; then
5862   ac_lo=$ac_mid; break
5863 else
5864   echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_hi=`expr '(' $ac_mid ')' - 1`
5868                        if test $ac_mid -le $ac_hi; then
5869                          ac_lo= ac_hi=
5870                          break
5871                        fi
5872                        ac_mid=`expr 2 '*' $ac_mid`
5873 fi
5874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875   done
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 ac_lo= ac_hi=
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 $ac_includes_default
5895 int
5896 main ()
5897 {
5898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5899 test_array [0] = 0
5900
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907   (eval $ac_compile) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   ac_hi=$ac_mid
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 ac_lo=`expr '(' $ac_mid ')' + 1`
5933 fi
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 done
5936 case $ac_lo in
5937 ?*) ac_cv_sizeof_long=$ac_lo;;
5938 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5939 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5941 See \`config.log' for more details." >&5
5942 echo "$as_me: error: cannot compute sizeof (long), 77
5943 See \`config.log' for more details." >&2;}
5944    { (exit 1); exit 1; }; }; } ;;
5945 esac
5946 else
5947   if test "$cross_compiling" = yes; then
5948   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5949 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: cannot run test program while cross compiling
5953 See \`config.log' for more details." >&2;}
5954    { (exit 1); exit 1; }; }; }
5955 else
5956   cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 $ac_includes_default
5963 long longval () { return (long) (sizeof (long)); }
5964 unsigned long ulongval () { return (long) (sizeof (long)); }
5965 #include <stdio.h>
5966 #include <stdlib.h>
5967 int
5968 main ()
5969 {
5970
5971   FILE *f = fopen ("conftest.val", "w");
5972   if (! f)
5973     exit (1);
5974   if (((long) (sizeof (long))) < 0)
5975     {
5976       long i = longval ();
5977       if (i != ((long) (sizeof (long))))
5978         exit (1);
5979       fprintf (f, "%ld\n", i);
5980     }
5981   else
5982     {
5983       unsigned long i = ulongval ();
5984       if (i != ((long) (sizeof (long))))
5985         exit (1);
5986       fprintf (f, "%lu\n", i);
5987     }
5988   exit (ferror (f) || fclose (f) != 0);
5989
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
6006 else
6007   echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ( exit $ac_status )
6012 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018    { (exit 1); exit 1; }; }; }
6019 fi
6020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 fi
6022 fi
6023 rm -f conftest.val
6024 else
6025   ac_cv_sizeof_long=0
6026 fi
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 _ACEOF
6033
6034
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h.  */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h.  */
6046 $ac_includes_default
6047 int
6048 main ()
6049 {
6050 if ((long long *) 0)
6051   return 0;
6052 if (sizeof (long long))
6053   return 0;
6054   ;
6055   return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060   (eval $ac_compile) 2>conftest.er1
6061   ac_status=$?
6062   grep -v '^ *+' conftest.er1 >conftest.err
6063   rm -f conftest.er1
6064   cat conftest.err >&5
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); } &&
6067          { ac_try='test -z "$ac_c_werror_flag"
6068                          || test ! -s conftest.err'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; } &&
6074          { ac_try='test -s conftest.$ac_objext'
6075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076   (eval $ac_try) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); }; }; then
6080   ac_cv_type_long_long=yes
6081 else
6082   echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6084
6085 ac_cv_type_long_long=no
6086 fi
6087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6090 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6091 if test $ac_cv_type_long_long = yes; then
6092
6093 cat >>confdefs.h <<_ACEOF
6094 #define HAVE_LONG_LONG 1
6095 _ACEOF
6096
6097 echo "$as_me:$LINENO: checking for long long" >&5
6098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6099 if test "${ac_cv_type_long_long+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 $ac_includes_default
6109 int
6110 main ()
6111 {
6112 if ((long long *) 0)
6113   return 0;
6114 if (sizeof (long long))
6115   return 0;
6116   ;
6117   return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122   (eval $ac_compile) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } &&
6129          { ac_try='test -z "$ac_c_werror_flag"
6130                          || test ! -s conftest.err'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; } &&
6136          { ac_try='test -s conftest.$ac_objext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   ac_cv_type_long_long=yes
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_type_long_long=no
6148 fi
6149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6150 fi
6151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6153
6154 echo "$as_me:$LINENO: checking size of long long" >&5
6155 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6156 if test "${ac_cv_sizeof_long_long+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   if test "$ac_cv_type_long_long" = yes; then
6160   # The cast to unsigned long works around a bug in the HP C Compiler
6161   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6162   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6163   # This bug is HP SR number 8606223364.
6164   if test "$cross_compiling" = yes; then
6165   # Depending upon the size, compute the lo and hi bounds.
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h.  */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h.  */
6172 $ac_includes_default
6173 int
6174 main ()
6175 {
6176 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6177 test_array [0] = 0
6178
6179   ;
6180   return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext
6184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6185   (eval $ac_compile) 2>conftest.er1
6186   ac_status=$?
6187   grep -v '^ *+' conftest.er1 >conftest.err
6188   rm -f conftest.er1
6189   cat conftest.err >&5
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -z "$ac_c_werror_flag"
6193                          || test ! -s conftest.err'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_lo=0 ac_mid=0
6206   while :; do
6207     cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213 $ac_includes_default
6214 int
6215 main ()
6216 {
6217 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6218 test_array [0] = 0
6219
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226   (eval $ac_compile) 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } &&
6233          { ac_try='test -z "$ac_c_werror_flag"
6234                          || test ! -s conftest.err'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; } &&
6240          { ac_try='test -s conftest.$ac_objext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_hi=$ac_mid; break
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 ac_lo=`expr $ac_mid + 1`
6252                     if test $ac_lo -le $ac_mid; then
6253                       ac_lo= ac_hi=
6254                       break
6255                     fi
6256                     ac_mid=`expr 2 '*' $ac_mid + 1`
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259   done
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283   (eval $ac_compile) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest.$ac_objext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_hi=-1 ac_mid=-1
6304   while :; do
6305     cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h.  */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h.  */
6311 $ac_includes_default
6312 int
6313 main ()
6314 {
6315 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6316 test_array [0] = 0
6317
6318   ;
6319   return 0;
6320 }
6321 _ACEOF
6322 rm -f conftest.$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324   (eval $ac_compile) 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } &&
6331          { ac_try='test -z "$ac_c_werror_flag"
6332                          || test ! -s conftest.err'
6333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334   (eval $ac_try) 2>&5
6335   ac_status=$?
6336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337   (exit $ac_status); }; } &&
6338          { ac_try='test -s conftest.$ac_objext'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }; then
6344   ac_lo=$ac_mid; break
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349 ac_hi=`expr '(' $ac_mid ')' - 1`
6350                        if test $ac_mid -le $ac_hi; then
6351                          ac_lo= ac_hi=
6352                          break
6353                        fi
6354                        ac_mid=`expr 2 '*' $ac_mid`
6355 fi
6356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6357   done
6358 else
6359   echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_lo= ac_hi=
6363 fi
6364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 # Binary search between lo and hi bounds.
6368 while test "x$ac_lo" != "x$ac_hi"; do
6369   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6370   cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h.  */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h.  */
6376 $ac_includes_default
6377 int
6378 main ()
6379 {
6380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6381 test_array [0] = 0
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389   (eval $ac_compile) 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } &&
6396          { ac_try='test -z "$ac_c_werror_flag"
6397                          || test ! -s conftest.err'
6398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6399   (eval $ac_try) 2>&5
6400   ac_status=$?
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); }; } &&
6403          { ac_try='test -s conftest.$ac_objext'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; }; then
6409   ac_hi=$ac_mid
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_lo=`expr '(' $ac_mid ')' + 1`
6415 fi
6416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6417 done
6418 case $ac_lo in
6419 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6420 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6421 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6423 See \`config.log' for more details." >&5
6424 echo "$as_me: error: cannot compute sizeof (long long), 77
6425 See \`config.log' for more details." >&2;}
6426    { (exit 1); exit 1; }; }; } ;;
6427 esac
6428 else
6429   if test "$cross_compiling" = yes; then
6430   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6431 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6433 See \`config.log' for more details." >&5
6434 echo "$as_me: error: cannot run test program while cross compiling
6435 See \`config.log' for more details." >&2;}
6436    { (exit 1); exit 1; }; }; }
6437 else
6438   cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 $ac_includes_default
6445 long longval () { return (long) (sizeof (long long)); }
6446 unsigned long ulongval () { return (long) (sizeof (long long)); }
6447 #include <stdio.h>
6448 #include <stdlib.h>
6449 int
6450 main ()
6451 {
6452
6453   FILE *f = fopen ("conftest.val", "w");
6454   if (! f)
6455     exit (1);
6456   if (((long) (sizeof (long long))) < 0)
6457     {
6458       long i = longval ();
6459       if (i != ((long) (sizeof (long long))))
6460         exit (1);
6461       fprintf (f, "%ld\n", i);
6462     }
6463   else
6464     {
6465       unsigned long i = ulongval ();
6466       if (i != ((long) (sizeof (long long))))
6467         exit (1);
6468       fprintf (f, "%lu\n", i);
6469     }
6470   exit (ferror (f) || fclose (f) != 0);
6471
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478   (eval $ac_link) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_sizeof_long_long=`cat conftest.val`
6488 else
6489   echo "$as_me: program exited with status $ac_status" >&5
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 ( exit $ac_status )
6494 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6495 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6497 See \`config.log' for more details." >&5
6498 echo "$as_me: error: cannot compute sizeof (long long), 77
6499 See \`config.log' for more details." >&2;}
6500    { (exit 1); exit 1; }; }; }
6501 fi
6502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 fi
6505 rm -f conftest.val
6506 else
6507   ac_cv_sizeof_long_long=0
6508 fi
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6511 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6512 cat >>confdefs.h <<_ACEOF
6513 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6514 _ACEOF
6515
6516
6517 fi
6518
6519 echo "$as_me:$LINENO: checking for __int64" >&5
6520 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6521 if test "${ac_cv_type___int64+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   cat >conftest.$ac_ext <<_ACEOF
6525 /* confdefs.h.  */
6526 _ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h.  */
6530 $ac_includes_default
6531 int
6532 main ()
6533 {
6534 if ((__int64 *) 0)
6535   return 0;
6536 if (sizeof (__int64))
6537   return 0;
6538   ;
6539   return 0;
6540 }
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544   (eval $ac_compile) 2>conftest.er1
6545   ac_status=$?
6546   grep -v '^ *+' conftest.er1 >conftest.err
6547   rm -f conftest.er1
6548   cat conftest.err >&5
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } &&
6551          { ac_try='test -z "$ac_c_werror_flag"
6552                          || test ! -s conftest.err'
6553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554   (eval $ac_try) 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560   (eval $ac_try) 2>&5
6561   ac_status=$?
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); }; }; then
6564   ac_cv_type___int64=yes
6565 else
6566   echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6568
6569 ac_cv_type___int64=no
6570 fi
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572 fi
6573 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6574 echo "${ECHO_T}$ac_cv_type___int64" >&6
6575 if test $ac_cv_type___int64 = yes; then
6576
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE___INT64 1
6579 _ACEOF
6580
6581 echo "$as_me:$LINENO: checking for __int64" >&5
6582 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
6583 if test "${ac_cv_type___int64+set}" = set; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 $ac_includes_default
6593 int
6594 main ()
6595 {
6596 if ((__int64 *) 0)
6597   return 0;
6598 if (sizeof (__int64))
6599   return 0;
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_c_werror_flag"
6614                          || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type___int64=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_type___int64=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
6636 echo "${ECHO_T}$ac_cv_type___int64" >&6
6637
6638 echo "$as_me:$LINENO: checking size of __int64" >&5
6639 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
6640 if test "${ac_cv_sizeof___int64+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   if test "$ac_cv_type___int64" = yes; then
6644   # The cast to unsigned long works around a bug in the HP C Compiler
6645   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6646   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6647   # This bug is HP SR number 8606223364.
6648   if test "$cross_compiling" = yes; then
6649   # Depending upon the size, compute the lo and hi bounds.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656 $ac_includes_default
6657 int
6658 main ()
6659 {
6660 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
6661 test_array [0] = 0
6662
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669   (eval $ac_compile) 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_c_werror_flag"
6677                          || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest.$ac_objext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_lo=0 ac_mid=0
6690   while :; do
6691     cat >conftest.$ac_ext <<_ACEOF
6692 /* confdefs.h.  */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h.  */
6697 $ac_includes_default
6698 int
6699 main ()
6700 {
6701 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6702 test_array [0] = 0
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext
6709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710   (eval $ac_compile) 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_c_werror_flag"
6718                          || test ! -s conftest.err'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; } &&
6724          { ac_try='test -s conftest.$ac_objext'
6725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726   (eval $ac_try) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; }; then
6730   ac_hi=$ac_mid; break
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_lo=`expr $ac_mid + 1`
6736                     if test $ac_lo -le $ac_mid; then
6737                       ac_lo= ac_hi=
6738                       break
6739                     fi
6740                     ac_mid=`expr 2 '*' $ac_mid + 1`
6741 fi
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743   done
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 $ac_includes_default
6755 int
6756 main ()
6757 {
6758 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
6759 test_array [0] = 0
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767   (eval $ac_compile) 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } &&
6774          { ac_try='test -z "$ac_c_werror_flag"
6775                          || test ! -s conftest.err'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; } &&
6781          { ac_try='test -s conftest.$ac_objext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_hi=-1 ac_mid=-1
6788   while :; do
6789     cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 $ac_includes_default
6796 int
6797 main ()
6798 {
6799 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
6800 test_array [0] = 0
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808   (eval $ac_compile) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -z "$ac_c_werror_flag"
6816                          || test ! -s conftest.err'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; } &&
6822          { ac_try='test -s conftest.$ac_objext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_lo=$ac_mid; break
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_hi=`expr '(' $ac_mid ')' - 1`
6834                        if test $ac_mid -le $ac_hi; then
6835                          ac_lo= ac_hi=
6836                          break
6837                        fi
6838                        ac_mid=`expr 2 '*' $ac_mid`
6839 fi
6840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841   done
6842 else
6843   echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846 ac_lo= ac_hi=
6847 fi
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6849 fi
6850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851 # Binary search between lo and hi bounds.
6852 while test "x$ac_lo" != "x$ac_hi"; do
6853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6854   cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860 $ac_includes_default
6861 int
6862 main ()
6863 {
6864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
6865 test_array [0] = 0
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873   (eval $ac_compile) 2>conftest.er1
6874   ac_status=$?
6875   grep -v '^ *+' conftest.er1 >conftest.err
6876   rm -f conftest.er1
6877   cat conftest.err >&5
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } &&
6880          { ac_try='test -z "$ac_c_werror_flag"
6881                          || test ! -s conftest.err'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; } &&
6887          { ac_try='test -s conftest.$ac_objext'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893   ac_hi=$ac_mid
6894 else
6895   echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_lo=`expr '(' $ac_mid ')' + 1`
6899 fi
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 done
6902 case $ac_lo in
6903 ?*) ac_cv_sizeof___int64=$ac_lo;;
6904 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6905 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6906 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6907 See \`config.log' for more details." >&5
6908 echo "$as_me: error: cannot compute sizeof (__int64), 77
6909 See \`config.log' for more details." >&2;}
6910    { (exit 1); exit 1; }; }; } ;;
6911 esac
6912 else
6913   if test "$cross_compiling" = yes; then
6914   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6915 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6917 See \`config.log' for more details." >&5
6918 echo "$as_me: error: cannot run test program while cross compiling
6919 See \`config.log' for more details." >&2;}
6920    { (exit 1); exit 1; }; }; }
6921 else
6922   cat >conftest.$ac_ext <<_ACEOF
6923 /* confdefs.h.  */
6924 _ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h.  */
6928 $ac_includes_default
6929 long longval () { return (long) (sizeof (__int64)); }
6930 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6931 #include <stdio.h>
6932 #include <stdlib.h>
6933 int
6934 main ()
6935 {
6936
6937   FILE *f = fopen ("conftest.val", "w");
6938   if (! f)
6939     exit (1);
6940   if (((long) (sizeof (__int64))) < 0)
6941     {
6942       long i = longval ();
6943       if (i != ((long) (sizeof (__int64))))
6944         exit (1);
6945       fprintf (f, "%ld\n", i);
6946     }
6947   else
6948     {
6949       unsigned long i = ulongval ();
6950       if (i != ((long) (sizeof (__int64))))
6951         exit (1);
6952       fprintf (f, "%lu\n", i);
6953     }
6954   exit (ferror (f) || fclose (f) != 0);
6955
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962   (eval $ac_link) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_cv_sizeof___int64=`cat conftest.val`
6972 else
6973   echo "$as_me: program exited with status $ac_status" >&5
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ( exit $ac_status )
6978 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6979 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6981 See \`config.log' for more details." >&5
6982 echo "$as_me: error: cannot compute sizeof (__int64), 77
6983 See \`config.log' for more details." >&2;}
6984    { (exit 1); exit 1; }; }; }
6985 fi
6986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 fi
6989 rm -f conftest.val
6990 else
6991   ac_cv_sizeof___int64=0
6992 fi
6993 fi
6994 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6995 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6996 cat >>confdefs.h <<_ACEOF
6997 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6998 _ACEOF
6999
7000
7001 fi
7002
7003
7004 # ---------------------
7005 # Warnings and checking
7006 # ---------------------
7007
7008 # Check $CC warning features (if it's GCC).
7009 # We want to use -pedantic, but we don't want warnings about
7010 # * 'long long'
7011 # * variadic macros
7012 # * overlong strings
7013 # So, we only use -pedantic if we can disable those warnings.
7014
7015 loose_warn=
7016 save_CFLAGS="$CFLAGS"
7017 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
7018           -Wmissing-prototypes -Wcast-qual; do
7019   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7020
7021   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7022 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7023 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   CFLAGS="$option"
7027     cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h.  */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h.  */
7033
7034 int
7035 main ()
7036 {
7037
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044   (eval $ac_compile) 2>conftest.er1
7045   ac_status=$?
7046   grep -v '^ *+' conftest.er1 >conftest.err
7047   rm -f conftest.er1
7048   cat conftest.err >&5
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); } &&
7051          { ac_try='test -z "$ac_c_werror_flag"
7052                          || test ! -s conftest.err'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; } &&
7058          { ac_try='test -s conftest.$ac_objext'
7059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060   (eval $ac_try) 2>&5
7061   ac_status=$?
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); }; }; then
7064   eval "$as_acx_Woption=yes"
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 eval "$as_acx_Woption=no"
7070 fi
7071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072
7073 fi
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7076   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7077   loose_warn="$loose_warn${loose_warn:+ }$option"
7078 fi
7079
7080   done
7081 CFLAGS="$save_CFLAGS"
7082
7083 strict_warn=
7084 save_CFLAGS="$CFLAGS"
7085 for option in -Wold-style-definition -Wc++-compat \
7086                           -Wmissing-format-attribute; do
7087   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7088
7089   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
7090 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
7091 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
7092   echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094   CFLAGS="$option"
7095     cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h.  */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h.  */
7101
7102 int
7103 main ()
7104 {
7105
7106   ;
7107   return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112   (eval $ac_compile) 2>conftest.er1
7113   ac_status=$?
7114   grep -v '^ *+' conftest.er1 >conftest.err
7115   rm -f conftest.er1
7116   cat conftest.err >&5
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } &&
7119          { ac_try='test -z "$ac_c_werror_flag"
7120                          || test ! -s conftest.err'
7121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122   (eval $ac_try) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); }; } &&
7126          { ac_try='test -s conftest.$ac_objext'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; }; then
7132   eval "$as_acx_Woption=yes"
7133 else
7134   echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 eval "$as_acx_Woption=no"
7138 fi
7139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140
7141 fi
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
7144   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
7145   strict_warn="$strict_warn${strict_warn:+ }$option"
7146 fi
7147
7148   done
7149 CFLAGS="$save_CFLAGS"
7150
7151 if test "$GCC" = yes; then
7152   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7153                                      -Wno-overlength-strings" >&5
7154 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
7155                                      -Wno-overlength-strings... $ECHO_C" >&6
7156 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   save_CFLAGS="$CFLAGS"
7160 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
7161                                      -Wno-overlength-strings"
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h.  */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h.  */
7168
7169 int
7170 main ()
7171 {
7172
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7179   (eval $ac_compile) 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -z "$ac_c_werror_flag"
7187                          || test ! -s conftest.err'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; } &&
7193          { ac_try='test -s conftest.$ac_objext'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
7205 fi
7206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7207 CFLAGS="$save_CFLAGS"
7208 fi
7209 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
7210 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
7211 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
7212   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
7213                                      -Wno-overlength-strings"
7214 fi
7215
7216
7217 fi
7218
7219
7220 # Check whether --enable-werror-always or --disable-werror-always was given.
7221 if test "${enable_werror_always+set}" = set; then
7222   enableval="$enable_werror_always"
7223
7224 else
7225   enable_werror_always=no
7226 fi;
7227 if test $enable_werror_always = yes; then
7228   strict_warn="$strict_warn${strict_warn:+ }-Werror"
7229 fi
7230
7231
7232
7233
7234 # The above macros do nothing if the compiler is not GCC.  However, the
7235 # Makefile has more goo to add other flags, so this variabl is used to
7236 # enables warnings only for GCC.
7237 warn_cflags=
7238 if test "x$GCC" = "xyes"; then
7239   warn_cflags='$(GCC_WARN_CFLAGS)'
7240 fi
7241
7242
7243 # Enable expensive internal checks
7244 is_release=
7245 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7246   is_release=yes
7247 fi
7248
7249 # Check whether --enable-checking or --disable-checking was given.
7250 if test "${enable_checking+set}" = set; then
7251   enableval="$enable_checking"
7252   ac_checking_flags="${enableval}"
7253 else
7254
7255 # Determine the default checks.
7256 if test x$is_release = x ; then
7257   ac_checking_flags=yes
7258 else
7259   ac_checking_flags=release
7260 fi
7261 fi;
7262 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7263 for check in release $ac_checking_flags
7264 do
7265         case $check in
7266         # these set all the flags to specific states
7267         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7268                         ac_fold_checking= ; ac_gc_checking=1 ;
7269                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7270                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7271                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7272                         ac_types_checking=1 ;;
7273         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7274                         ac_fold_checking= ; ac_gc_checking= ;
7275                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7276                         ac_rtlflag_checking= ; ac_runtime_checking= ;
7277                         ac_tree_checking= ; ac_valgrind_checking= ;
7278                         ac_types_checking= ;;
7279         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7280                         ac_fold_checking=1 ; ac_gc_checking=1 ;
7281                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7282                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7283                         ac_tree_checking=1 ; ac_valgrind_checking= ;
7284                         ac_types_checking=1 ;;
7285         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7286                         ac_fold_checking= ; ac_gc_checking= ;
7287                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7288                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7289                         ac_tree_checking= ; ac_valgrind_checking= ;
7290                         ac_types_checking= ;;
7291         # these enable particular checks
7292         assert)         ac_assert_checking=1 ;;
7293         df)             ac_df_checking=1 ;;
7294         fold)           ac_fold_checking=1 ;;
7295         gc)             ac_gc_checking=1 ;;
7296         gcac)           ac_gc_always_collect=1 ;;
7297         gimple)         ac_gimple_checking=1 ;;
7298         misc)           ac_checking=1 ;;
7299         rtl)            ac_rtl_checking=1 ;;
7300         rtlflag)        ac_rtlflag_checking=1 ;;
7301         runtime)        ac_runtime_checking=1 ;;
7302         tree)           ac_tree_checking=1 ;;
7303         types)          ac_types_checking=1 ;;
7304         valgrind)       ac_valgrind_checking=1 ;;
7305         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
7306 echo "$as_me: error: unknown check category $check" >&2;}
7307    { (exit 1); exit 1; }; } ;;
7308         esac
7309 done
7310 IFS="$ac_save_IFS"
7311
7312 nocommon_flag=""
7313 if test x$ac_checking != x ; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define ENABLE_CHECKING 1
7317 _ACEOF
7318
7319   nocommon_flag=-fno-common
7320 fi
7321
7322 if test x$ac_df_checking != x ; then
7323
7324 cat >>confdefs.h <<\_ACEOF
7325 #define ENABLE_DF_CHECKING 1
7326 _ACEOF
7327
7328 fi
7329 if test x$ac_assert_checking != x ; then
7330
7331 cat >>confdefs.h <<\_ACEOF
7332 #define ENABLE_ASSERT_CHECKING 1
7333 _ACEOF
7334
7335 fi
7336 if test x$ac_gimple_checking != x ; then
7337
7338 cat >>confdefs.h <<\_ACEOF
7339 #define ENABLE_GIMPLE_CHECKING 1
7340 _ACEOF
7341
7342 fi
7343
7344 if test x$ac_runtime_checking != x ; then
7345
7346 cat >>confdefs.h <<\_ACEOF
7347 #define ENABLE_RUNTIME_CHECKING 1
7348 _ACEOF
7349
7350 fi
7351 if test x$ac_tree_checking != x ; then
7352
7353 cat >>confdefs.h <<\_ACEOF
7354 #define ENABLE_TREE_CHECKING 1
7355 _ACEOF
7356
7357   TREEBROWSER=tree-browser.o
7358 fi
7359 if test x$ac_types_checking != x ; then
7360
7361 cat >>confdefs.h <<\_ACEOF
7362 #define ENABLE_TYPES_CHECKING 1
7363 _ACEOF
7364
7365 fi
7366
7367 if test x$ac_rtl_checking != x ; then
7368
7369 cat >>confdefs.h <<\_ACEOF
7370 #define ENABLE_RTL_CHECKING 1
7371 _ACEOF
7372
7373 fi
7374 if test x$ac_rtlflag_checking != x ; then
7375
7376 cat >>confdefs.h <<\_ACEOF
7377 #define ENABLE_RTL_FLAG_CHECKING 1
7378 _ACEOF
7379
7380 fi
7381 if test x$ac_gc_checking != x ; then
7382
7383 cat >>confdefs.h <<\_ACEOF
7384 #define ENABLE_GC_CHECKING 1
7385 _ACEOF
7386
7387 fi
7388 if test x$ac_gc_always_collect != x ; then
7389
7390 cat >>confdefs.h <<\_ACEOF
7391 #define ENABLE_GC_ALWAYS_COLLECT 1
7392 _ACEOF
7393
7394 fi
7395 if test x$ac_fold_checking != x ; then
7396
7397 cat >>confdefs.h <<\_ACEOF
7398 #define ENABLE_FOLD_CHECKING 1
7399 _ACEOF
7400
7401 fi
7402 valgrind_path_defines=
7403 valgrind_command=
7404
7405 if test "${ac_cv_header_valgrind_h+set}" = set; then
7406   echo "$as_me:$LINENO: checking for valgrind.h" >&5
7407 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7408 if test "${ac_cv_header_valgrind_h+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 fi
7411 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7412 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7413 else
7414   # Is the header compilable?
7415 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
7416 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 $ac_includes_default
7424 #include <valgrind.h>
7425 _ACEOF
7426 rm -f conftest.$ac_objext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428   (eval $ac_compile) 2>conftest.er1
7429   ac_status=$?
7430   grep -v '^ *+' conftest.er1 >conftest.err
7431   rm -f conftest.er1
7432   cat conftest.err >&5
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); } &&
7435          { ac_try='test -z "$ac_c_werror_flag"
7436                          || test ! -s conftest.err'
7437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438   (eval $ac_try) 2>&5
7439   ac_status=$?
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); }; } &&
7442          { ac_try='test -s conftest.$ac_objext'
7443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444   (eval $ac_try) 2>&5
7445   ac_status=$?
7446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); }; }; then
7448   ac_header_compiler=yes
7449 else
7450   echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7452
7453 ac_header_compiler=no
7454 fi
7455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6
7458
7459 # Is the header present?
7460 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
7461 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468 #include <valgrind.h>
7469 _ACEOF
7470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } >/dev/null; then
7478   if test -s conftest.err; then
7479     ac_cpp_err=$ac_c_preproc_warn_flag
7480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7481   else
7482     ac_cpp_err=
7483   fi
7484 else
7485   ac_cpp_err=yes
7486 fi
7487 if test -z "$ac_cpp_err"; then
7488   ac_header_preproc=yes
7489 else
7490   echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493   ac_header_preproc=no
7494 fi
7495 rm -f conftest.err conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7497 echo "${ECHO_T}$ac_header_preproc" >&6
7498
7499 # So?  What about this header?
7500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7501   yes:no: )
7502     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
7503 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
7505 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
7506     ac_header_preproc=yes
7507     ;;
7508   no:yes:* )
7509     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
7510 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
7511     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
7512 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
7513     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
7514 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
7515     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
7516 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7517     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
7518 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
7519     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
7520 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
7521     (
7522       cat <<\_ASBOX
7523 ## ------------------------------------------ ##
7524 ## Report this to the AC_PACKAGE_NAME lists.  ##
7525 ## ------------------------------------------ ##
7526 _ASBOX
7527     ) |
7528       sed "s/^/$as_me: WARNING:     /" >&2
7529     ;;
7530 esac
7531 echo "$as_me:$LINENO: checking for valgrind.h" >&5
7532 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
7533 if test "${ac_cv_header_valgrind_h+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   ac_cv_header_valgrind_h=$ac_header_preproc
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
7539 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
7540
7541 fi
7542 if test $ac_cv_header_valgrind_h = yes; then
7543   have_valgrind_h=yes
7544 else
7545   have_valgrind_h=no
7546 fi
7547
7548
7549
7550 if test x$ac_valgrind_checking != x ; then
7551   # It is certainly possible that there's valgrind but no valgrind.h.
7552   # GCC relies on making annotations so we must have both.
7553   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7554 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
7555   cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561 #include <valgrind/memcheck.h>
7562 #ifndef VALGRIND_DISCARD
7563 #error VALGRIND_DISCARD not defined
7564 #endif
7565 _ACEOF
7566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7568   ac_status=$?
7569   grep -v '^ *+' conftest.er1 >conftest.err
7570   rm -f conftest.er1
7571   cat conftest.err >&5
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } >/dev/null; then
7574   if test -s conftest.err; then
7575     ac_cpp_err=$ac_c_preproc_warn_flag
7576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7577   else
7578     ac_cpp_err=
7579   fi
7580 else
7581   ac_cpp_err=yes
7582 fi
7583 if test -z "$ac_cpp_err"; then
7584   gcc_cv_header_valgrind_memcheck_h=yes
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589   gcc_cv_header_valgrind_memcheck_h=no
7590 fi
7591 rm -f conftest.err conftest.$ac_ext
7592   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7593 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
7594   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7595 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
7596   cat >conftest.$ac_ext <<_ACEOF
7597 /* confdefs.h.  */
7598 _ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h.  */
7602 #include <memcheck.h>
7603 #ifndef VALGRIND_DISCARD
7604 #error VALGRIND_DISCARD not defined
7605 #endif
7606 _ACEOF
7607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7609   ac_status=$?
7610   grep -v '^ *+' conftest.er1 >conftest.err
7611   rm -f conftest.er1
7612   cat conftest.err >&5
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); } >/dev/null; then
7615   if test -s conftest.err; then
7616     ac_cpp_err=$ac_c_preproc_warn_flag
7617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7618   else
7619     ac_cpp_err=
7620   fi
7621 else
7622   ac_cpp_err=yes
7623 fi
7624 if test -z "$ac_cpp_err"; then
7625   gcc_cv_header_memcheck_h=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630   gcc_cv_header_memcheck_h=no
7631 fi
7632 rm -f conftest.err conftest.$ac_ext
7633   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
7634 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
7635
7636 # Prepare PATH_SEPARATOR.
7637 # The user is always right.
7638 if test "${PATH_SEPARATOR+set}" != set; then
7639   echo "#! /bin/sh" >conf$$.sh
7640   echo  "exit 0"   >>conf$$.sh
7641   chmod +x conf$$.sh
7642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7643     PATH_SEPARATOR=';'
7644   else
7645     PATH_SEPARATOR=:
7646   fi
7647   rm -f conf$$.sh
7648 fi
7649
7650 # Find out how to test for executable files. Don't use a zero-byte file,
7651 # as systems may use methods other than mode bits to determine executability.
7652 cat >conf$$.file <<_ASEOF
7653 #! /bin/sh
7654 exit 0
7655 _ASEOF
7656 chmod +x conf$$.file
7657 if test -x conf$$.file >/dev/null 2>&1; then
7658   ac_executable_p="test -x"
7659 else
7660   ac_executable_p="test -f"
7661 fi
7662 rm -f conf$$.file
7663
7664 # Extract the first word of "valgrind", so it can be a program name with args.
7665 set dummy valgrind; ac_word=$2
7666 echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7668 if test "${ac_cv_path_valgrind_path+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case "$valgrind_path" in
7672   [\\/]* | ?:[\\/]*)
7673     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7674     ;;
7675   *)
7676     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7677     for ac_dir in $PATH; do
7678       IFS="$ac_save_IFS"
7679       test -z "$ac_dir" && ac_dir=.
7680       for ac_exec_ext in '' $ac_executable_extensions; do
7681         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7682           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7683             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7684             break 2
7685           fi
7686         fi
7687       done
7688     done
7689     IFS="$ac_save_IFS"
7690     ;;
7691 esac
7692 fi
7693 valgrind_path="$ac_cv_path_valgrind_path"
7694 if test -n "$valgrind_path"; then
7695   echo "$as_me:$LINENO: result: $valgrind_path" >&5
7696 echo "${ECHO_T}$valgrind_path" >&6
7697 else
7698   echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7700 fi
7701
7702   if test "x$valgrind_path" = "x" \
7703     || (test $have_valgrind_h = no \
7704         && test $gcc_cv_header_memcheck_h = no \
7705         && test $gcc_cv_header_valgrind_memcheck_h = no); then
7706         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
7707 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
7708    { (exit 1); exit 1; }; }
7709   fi
7710   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7711   valgrind_command="$valgrind_path -q"
7712
7713 cat >>confdefs.h <<\_ACEOF
7714 #define ENABLE_VALGRIND_CHECKING 1
7715 _ACEOF
7716
7717   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7718
7719 cat >>confdefs.h <<\_ACEOF
7720 #define HAVE_VALGRIND_MEMCHECK_H 1
7721 _ACEOF
7722
7723   fi
7724   if test $gcc_cv_header_memcheck_h = yes; then
7725
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_MEMCHECK_H 1
7728 _ACEOF
7729
7730   fi
7731 fi
7732
7733
7734
7735 # Enable code coverage collection
7736 # Check whether --enable-coverage or --disable-coverage was given.
7737 if test "${enable_coverage+set}" = set; then
7738   enableval="$enable_coverage"
7739   case "${enableval}" in
7740   yes|noopt)
7741     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7742     ;;
7743   opt)
7744     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7745     ;;
7746   no)
7747     # a.k.a. --disable-coverage
7748     coverage_flags=""
7749     ;;
7750   *)
7751     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
7752 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
7753    { (exit 1); exit 1; }; }
7754     ;;
7755 esac
7756 else
7757   coverage_flags=""
7758 fi;
7759
7760
7761 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
7762 if test "${enable_gather_detailed_mem_stats+set}" = set; then
7763   enableval="$enable_gather_detailed_mem_stats"
7764
7765 else
7766   enable_gather_detailed_mem_stats=no
7767 fi;
7768 if test x$enable_gather_detailed_mem_stats = xyes ; then
7769
7770 cat >>confdefs.h <<\_ACEOF
7771 #define GATHER_STATISTICS 1
7772 _ACEOF
7773
7774 fi
7775
7776 # -------------------------------
7777 # Miscenalleous configure options
7778 # -------------------------------
7779
7780 # With stabs
7781
7782 # Check whether --with-stabs or --without-stabs was given.
7783 if test "${with_stabs+set}" = set; then
7784   withval="$with_stabs"
7785   stabs="$with_stabs"
7786 else
7787   stabs=no
7788 fi;
7789
7790 # Determine whether or not multilibs are enabled.
7791 # Check whether --enable-multilib or --disable-multilib was given.
7792 if test "${enable_multilib+set}" = set; then
7793   enableval="$enable_multilib"
7794
7795 else
7796   enable_multilib=yes
7797 fi;
7798
7799
7800 # Enable __cxa_atexit for C++.
7801 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7802 if test "${enable___cxa_atexit+set}" = set; then
7803   enableval="$enable___cxa_atexit"
7804
7805 fi;
7806
7807 # Enable C extension for decimal float if target supports it.
7808 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7809 if test "${enable_decimal_float+set}" = set; then
7810   enableval="$enable_decimal_float"
7811
7812   case $enable_decimal_float in
7813     yes | no | bid | dpd) ;;
7814     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7815 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
7816 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
7817 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
7818    { (exit 1); exit 1; }; } ;;
7819   esac
7820
7821 else
7822
7823   case $target in
7824     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7825       enable_decimal_float=yes
7826       ;;
7827     *)
7828       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7829 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7830       enable_decimal_float=no
7831       ;;
7832   esac
7833
7834 fi;
7835
7836 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7837
7838 cat >>confdefs.h <<_ACEOF
7839 #define ENABLE_DECIMAL_FLOAT $dfp
7840 _ACEOF
7841
7842
7843 # x86's use BID format instead of DPD
7844 case x$enable_decimal_float in
7845   xyes)
7846     case $target in
7847       i?86*-*-linux* | x86_64*-*-linux*)
7848         enable_decimal_float=bid
7849         ;;
7850       *)
7851         enable_decimal_float=dpd
7852         ;;
7853     esac
7854     ;;
7855   xno)
7856     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7857     # dependency on libdecnumber.
7858     enable_decimal_float=dpd
7859     ;;
7860 esac
7861
7862
7863 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7864
7865 cat >>confdefs.h <<_ACEOF
7866 #define ENABLE_DECIMAL_BID_FORMAT $bid
7867 _ACEOF
7868
7869
7870 # Enable C extension for fixed-point arithmetic.
7871 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7872 if test "${enable_fixed_point+set}" = set; then
7873   enableval="$enable_fixed_point"
7874
7875
7876 else
7877
7878   case $target in
7879     mips*-*-*)
7880       case $host in
7881         mips*-sgi-irix*)
7882           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7883 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7884           enable_fixed_point=no
7885           ;;
7886         *)
7887           enable_fixed_point=yes
7888           ;;
7889       esac
7890       ;;
7891     *)
7892       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7893 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7894       enable_fixed_point=no
7895       ;;
7896   esac
7897
7898 fi;
7899
7900
7901 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7902
7903 cat >>confdefs.h <<_ACEOF
7904 #define ENABLE_FIXED_POINT $fixedpoint
7905 _ACEOF
7906
7907
7908 # Enable threads
7909 # Pass with no value to take the default
7910 # Pass with a value to specify a thread package
7911 # Check whether --enable-threads or --disable-threads was given.
7912 if test "${enable_threads+set}" = set; then
7913   enableval="$enable_threads"
7914
7915 else
7916   enable_threads=''
7917 fi;
7918
7919 # Check whether --enable-tls or --disable-tls was given.
7920 if test "${enable_tls+set}" = set; then
7921   enableval="$enable_tls"
7922
7923   case $enable_tls in
7924     yes | no) ;;
7925     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7926 Valid choices are 'yes' and 'no'." >&5
7927 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7928 Valid choices are 'yes' and 'no'." >&2;}
7929    { (exit 1); exit 1; }; } ;;
7930   esac
7931
7932 else
7933   enable_tls=''
7934 fi;
7935
7936 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7937 if test "${enable_objc_gc+set}" = set; then
7938   enableval="$enable_objc_gc"
7939   if test x$enable_objc_gc = xno; then
7940         objc_boehm_gc=''
7941 else
7942         objc_boehm_gc=1
7943 fi
7944 else
7945   objc_boehm_gc=''
7946 fi;
7947
7948
7949 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7950 if test "${with_dwarf2+set}" = set; then
7951   withval="$with_dwarf2"
7952   dwarf2="$with_dwarf2"
7953 else
7954   dwarf2=no
7955 fi;
7956
7957 # Check whether --enable-shared or --disable-shared was given.
7958 if test "${enable_shared+set}" = set; then
7959   enableval="$enable_shared"
7960
7961   case $enable_shared in
7962   yes | no) ;;
7963   *)
7964     enable_shared=no
7965     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7966     for pkg in $enableval; do
7967       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7968         enable_shared=yes
7969       fi
7970     done
7971     IFS="$ac_save_ifs"
7972     ;;
7973   esac
7974
7975 else
7976   enable_shared=yes
7977 fi;
7978
7979
7980
7981 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7982 if test "${with_build_sysroot+set}" = set; then
7983   withval="$with_build_sysroot"
7984
7985 fi;
7986
7987
7988 # Check whether --with-sysroot or --without-sysroot was given.
7989 if test "${with_sysroot+set}" = set; then
7990   withval="$with_sysroot"
7991
7992  case ${with_sysroot} in
7993  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7994  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7995  esac
7996
7997  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7998  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7999
8000  if test "x$prefix" = xNONE; then
8001   test_prefix=/usr/local
8002  else
8003   test_prefix=$prefix
8004  fi
8005  if test "x$exec_prefix" = xNONE; then
8006   test_exec_prefix=$test_prefix
8007  else
8008   test_exec_prefix=$exec_prefix
8009  fi
8010  case ${TARGET_SYSTEM_ROOT} in
8011  "${test_prefix}"|"${test_prefix}/"*|\
8012  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
8013  '${prefix}'|'${prefix}/'*|\
8014  '${exec_prefix}'|'${exec_prefix}/'*)
8015    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
8016    TARGET_SYSTEM_ROOT_DEFINE="$t"
8017    ;;
8018  esac
8019
8020 else
8021
8022  TARGET_SYSTEM_ROOT=
8023  TARGET_SYSTEM_ROOT_DEFINE=
8024  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
8025
8026 fi;
8027
8028
8029
8030
8031 # Build with intermodule optimisations
8032 # Check whether --enable-intermodule or --disable-intermodule was given.
8033 if test "${enable_intermodule+set}" = set; then
8034   enableval="$enable_intermodule"
8035   case ${enable_intermodule} in
8036   yes) onestep="-onestep";;
8037   *) onestep="";;
8038 esac
8039 else
8040   onestep=""
8041 fi;
8042
8043
8044
8045
8046 # Check whether --with-pkgversion or --without-pkgversion was given.
8047 if test "${with_pkgversion+set}" = set; then
8048   withval="$with_pkgversion"
8049   case "$withval" in
8050       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8051 echo "$as_me: error: package version not specified" >&2;}
8052    { (exit 1); exit 1; }; } ;;
8053       no)  PKGVERSION= ;;
8054       *)   PKGVERSION="($withval) " ;;
8055      esac
8056 else
8057   PKGVERSION="(GCC) "
8058
8059 fi;
8060
8061
8062
8063
8064 # Check whether --with-bugurl or --without-bugurl was given.
8065 if test "${with_bugurl+set}" = set; then
8066   withval="$with_bugurl"
8067   case "$withval" in
8068       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8069 echo "$as_me: error: bug URL not specified" >&2;}
8070    { (exit 1); exit 1; }; } ;;
8071       no)  BUGURL=
8072            ;;
8073       *)   BUGURL="$withval"
8074            ;;
8075      esac
8076 else
8077   BUGURL="http://gcc.gnu.org/bugs.html"
8078
8079 fi;
8080   case ${BUGURL} in
8081   "")
8082     REPORT_BUGS_TO=
8083     REPORT_BUGS_TEXI=
8084     ;;
8085   *)
8086     REPORT_BUGS_TO="<$BUGURL>"
8087     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8088     ;;
8089   esac;
8090
8091
8092
8093
8094 # Sanity check enable_languages in case someone does not run the toplevel
8095 # configure # script.
8096 # Check whether --enable-languages or --disable-languages was given.
8097 if test "${enable_languages+set}" = set; then
8098   enableval="$enable_languages"
8099   case ,${enable_languages}, in
8100        ,,|,yes,)
8101                 # go safe -- we cannot be much sure without the toplevel
8102                 # configure's
8103                 # analysis of which target libs are present and usable
8104                 enable_languages=c
8105                 ;;
8106          *,all,*)
8107                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
8108 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
8109    { (exit 1); exit 1; }; }
8110                 ;;
8111         *,c,*)
8112                 ;;
8113         *)
8114                 enable_languages=c,${enable_languages}
8115                 ;;
8116 esac
8117 else
8118   enable_languages=c
8119 fi;
8120
8121 # Used by documentation targets
8122
8123
8124
8125
8126 # -------------------------
8127 # Checks for other programs
8128 # -------------------------
8129
8130 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8131 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8132 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8133 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   cat >conftest.make <<\_ACEOF
8137 all:
8138         @echo 'ac_maketemp="$(MAKE)"'
8139 _ACEOF
8140 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8141 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8142 if test -n "$ac_maketemp"; then
8143   eval ac_cv_prog_make_${ac_make}_set=yes
8144 else
8145   eval ac_cv_prog_make_${ac_make}_set=no
8146 fi
8147 rm -f conftest.make
8148 fi
8149 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8150   echo "$as_me:$LINENO: result: yes" >&5
8151 echo "${ECHO_T}yes" >&6
8152   SET_MAKE=
8153 else
8154   echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156   SET_MAKE="MAKE=${MAKE-make}"
8157 fi
8158
8159
8160 # Find some useful tools
8161 for ac_prog in gawk mawk nawk awk
8162 do
8163   # Extract the first word of "$ac_prog", so it can be a program name with args.
8164 set dummy $ac_prog; ac_word=$2
8165 echo "$as_me:$LINENO: checking for $ac_word" >&5
8166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8167 if test "${ac_cv_prog_AWK+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   if test -n "$AWK"; then
8171   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8172 else
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178   for ac_exec_ext in '' $ac_executable_extensions; do
8179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180     ac_cv_prog_AWK="$ac_prog"
8181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185 done
8186
8187 fi
8188 fi
8189 AWK=$ac_cv_prog_AWK
8190 if test -n "$AWK"; then
8191   echo "$as_me:$LINENO: result: $AWK" >&5
8192 echo "${ECHO_T}$AWK" >&6
8193 else
8194   echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6
8196 fi
8197
8198   test -n "$AWK" && break
8199 done
8200
8201 # We need awk to create options.c and options.h.
8202 # Bail out if it's missing.
8203 case ${AWK} in
8204   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
8205 echo "$as_me: error: can't build without awk, bailing out" >&2;}
8206    { (exit 1); exit 1; }; } ;;
8207 esac
8208
8209 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8211 if test "${gcc_cv_prog_LN_S+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   rm -f conftestdata_t
8215 echo >conftestdata_f
8216 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8217 then
8218   gcc_cv_prog_LN_S="ln -s"
8219 else
8220   if ln conftestdata_f conftestdata_t 2>/dev/null
8221   then
8222     gcc_cv_prog_LN_S=ln
8223   else
8224     if cp -p conftestdata_f conftestdata_t 2>/dev/null
8225     then
8226       gcc_cv_prog_LN_S="cp -p"
8227     else
8228       gcc_cv_prog_LN_S=cp
8229     fi
8230   fi
8231 fi
8232 rm -f conftestdata_f conftestdata_t
8233
8234 fi
8235 LN_S="$gcc_cv_prog_LN_S"
8236 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8237   echo "$as_me:$LINENO: result: yes" >&5
8238 echo "${ECHO_T}yes" >&6
8239 else
8240   if test "$gcc_cv_prog_LN_S" = "ln"; then
8241     echo "$as_me:$LINENO: result: no, using ln" >&5
8242 echo "${ECHO_T}no, using ln" >&6
8243   else
8244     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8245 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
8246   fi
8247 fi
8248
8249 echo "$as_me:$LINENO: checking whether ln works" >&5
8250 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
8251 if test "${acx_cv_prog_LN+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   rm -f conftestdata_t
8255 echo >conftestdata_f
8256 if ln conftestdata_f conftestdata_t 2>/dev/null
8257 then
8258   acx_cv_prog_LN=ln
8259 else
8260   acx_cv_prog_LN=no
8261 fi
8262 rm -f conftestdata_f conftestdata_t
8263
8264 fi
8265 if test $acx_cv_prog_LN = no; then
8266   LN="$LN_S"
8267   echo "$as_me:$LINENO: result: no, using $LN" >&5
8268 echo "${ECHO_T}no, using $LN" >&6
8269 else
8270   LN="$acx_cv_prog_LN"
8271   echo "$as_me:$LINENO: result: yes" >&5
8272 echo "${ECHO_T}yes" >&6
8273 fi
8274
8275 if test -n "$ac_tool_prefix"; then
8276   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_RANLIB+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   if test -n "$RANLIB"; then
8284   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289   IFS=$as_save_IFS
8290   test -z "$as_dir" && as_dir=.
8291   for ac_exec_ext in '' $ac_executable_extensions; do
8292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295     break 2
8296   fi
8297 done
8298 done
8299
8300 fi
8301 fi
8302 RANLIB=$ac_cv_prog_RANLIB
8303 if test -n "$RANLIB"; then
8304   echo "$as_me:$LINENO: result: $RANLIB" >&5
8305 echo "${ECHO_T}$RANLIB" >&6
8306 else
8307   echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8309 fi
8310
8311 fi
8312 if test -z "$ac_cv_prog_RANLIB"; then
8313   ac_ct_RANLIB=$RANLIB
8314   # Extract the first word of "ranlib", so it can be a program name with args.
8315 set dummy ranlib; ac_word=$2
8316 echo "$as_me:$LINENO: checking for $ac_word" >&5
8317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 else
8321   if test -n "$ac_ct_RANLIB"; then
8322   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329   for ac_exec_ext in '' $ac_executable_extensions; do
8330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331     ac_cv_prog_ac_ct_RANLIB="ranlib"
8332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336 done
8337
8338   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8339 fi
8340 fi
8341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8342 if test -n "$ac_ct_RANLIB"; then
8343   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8344 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8345 else
8346   echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6
8348 fi
8349
8350   RANLIB=$ac_ct_RANLIB
8351 else
8352   RANLIB="$ac_cv_prog_RANLIB"
8353 fi
8354
8355 case "${host}" in
8356 *-*-darwin*)
8357   # By default, the Darwin ranlib will not treat common symbols as
8358   # definitions when  building the archive table of contents.  Other
8359   # ranlibs do that; pass an option to the Darwin ranlib that makes
8360   # it behave similarly.
8361   ranlib_flags="-c"
8362   ;;
8363 *)
8364   ranlib_flags=""
8365 esac
8366
8367
8368 # Find a good install program.  We prefer a C program (faster),
8369 # so one script is as good as another.  But avoid the broken or
8370 # incompatible versions:
8371 # SysV /etc/install, /usr/sbin/install
8372 # SunOS /usr/etc/install
8373 # IRIX /sbin/install
8374 # AIX /bin/install
8375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8377 # ./install, which can be erroneously created by make from ./install.sh.
8378 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
8379 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
8380 if test -z "$INSTALL"; then
8381 if test "${ac_cv_path_install+set}" = set; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 else
8384     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8385   for ac_dir in $PATH; do
8386     # Account for people who put trailing slashes in PATH elements.
8387     case "$ac_dir/" in
8388     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8389     *)
8390       # OSF1 and SCO ODT 3.0 have their own names for install.
8391       for ac_prog in ginstall scoinst install; do
8392         if test -f $ac_dir/$ac_prog; then
8393           if test $ac_prog = install &&
8394             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8395             # AIX install.  It has an incompatible calling convention.
8396             # OSF/1 installbsd also uses dspmsg, but is usable.
8397             :
8398           else
8399             ac_cv_path_install="$ac_dir/$ac_prog -c"
8400             break 2
8401           fi
8402         fi
8403       done
8404       ;;
8405     esac
8406   done
8407   IFS="$ac_save_IFS"
8408
8409 fi
8410   if test "${ac_cv_path_install+set}" = set; then
8411     INSTALL="$ac_cv_path_install"
8412   else
8413     # As a last resort, use the slow shell script.  We don't cache a
8414     # path for INSTALL within a source directory, because that will
8415     # break other packages using the cache if that directory is
8416     # removed, or if the path is relative.
8417     INSTALL="$ac_install_sh"
8418   fi
8419 fi
8420 echo "$as_me:$LINENO: result: $INSTALL" >&5
8421 echo "${ECHO_T}$INSTALL" >&6
8422
8423 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8424 # It thinks the first close brace ends the variable substitution.
8425 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8426
8427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8428
8429
8430 # See if cmp has --ignore-initial.
8431 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
8432 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
8433 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
8434   echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436    echo abfoo >t1
8437   echo cdfoo >t2
8438   gcc_cv_prog_cmp_skip=slowcompare
8439   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8440     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8441       :
8442     else
8443       gcc_cv_prog_cmp_skip=gnucompare
8444     fi
8445   fi
8446   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8447     if cmp t1 t2 2 2 > /dev/null 2>&1; then
8448       if cmp t1 t2 1 1 > /dev/null 2>&1; then
8449         :
8450       else
8451         gcc_cv_prog_cmp_skip=fastcompare
8452       fi
8453     fi
8454   fi
8455   rm t1 t2
8456
8457 fi
8458 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
8459 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
8460 make_compare_target=$gcc_cv_prog_cmp_skip
8461
8462
8463
8464 # See if we have the mktemp command.
8465 # Extract the first word of "mktemp", so it can be a program name with args.
8466 set dummy mktemp; ac_word=$2
8467 echo "$as_me:$LINENO: checking for $ac_word" >&5
8468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8469 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
8470   echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472   if test -n "$have_mktemp_command"; then
8473   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8474 else
8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476 for as_dir in $PATH
8477 do
8478   IFS=$as_save_IFS
8479   test -z "$as_dir" && as_dir=.
8480   for ac_exec_ext in '' $ac_executable_extensions; do
8481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8482     ac_cv_prog_have_mktemp_command="yes"
8483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484     break 2
8485   fi
8486 done
8487 done
8488
8489   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8490 fi
8491 fi
8492 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8493 if test -n "$have_mktemp_command"; then
8494   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
8495 echo "${ECHO_T}$have_mktemp_command" >&6
8496 else
8497   echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 # See if makeinfo has been installed and is modern enough
8503 # that we can use it.
8504
8505   # Extract the first word of "makeinfo", so it can be a program name with args.
8506 set dummy makeinfo; ac_word=$2
8507 echo "$as_me:$LINENO: checking for $ac_word" >&5
8508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8509 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   if test -n "$MAKEINFO"; then
8513   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8514 else
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 for as_dir in $PATH
8517 do
8518   IFS=$as_save_IFS
8519   test -z "$as_dir" && as_dir=.
8520   for ac_exec_ext in '' $ac_executable_extensions; do
8521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8522     ac_cv_prog_MAKEINFO="makeinfo"
8523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524     break 2
8525   fi
8526 done
8527 done
8528
8529 fi
8530 fi
8531 MAKEINFO=$ac_cv_prog_MAKEINFO
8532 if test -n "$MAKEINFO"; then
8533   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
8534 echo "${ECHO_T}$MAKEINFO" >&6
8535 else
8536   echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6
8538 fi
8539
8540   if test -n "$MAKEINFO"; then
8541     # Found it, now check the version.
8542     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
8543 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
8544 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8548                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8549
8550                     case $ac_prog_version in
8551                       '')  gcc_cv_prog_makeinfo_modern=no;;
8552                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
8553                       *)   gcc_cv_prog_makeinfo_modern=no;;
8554                     esac
8555
8556 fi
8557 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
8558 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
8559   else
8560     gcc_cv_prog_makeinfo_modern=no
8561   fi
8562   if test $gcc_cv_prog_makeinfo_modern = no; then
8563     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8564   fi
8565
8566 if test $gcc_cv_prog_makeinfo_modern = no; then
8567   { echo "$as_me:$LINENO: WARNING:
8568 *** Makeinfo is missing or too old.
8569 *** Info documentation will not be built." >&5
8570 echo "$as_me: WARNING:
8571 *** Makeinfo is missing or too old.
8572 *** Info documentation will not be built." >&2;}
8573   BUILD_INFO=
8574 else
8575   BUILD_INFO=info
8576 fi
8577
8578
8579 # Is pod2man recent enough to regenerate manpages?
8580 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
8581 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
8582 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8583   echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6
8585   GENERATED_MANPAGES=generated-manpages
8586 else
8587   echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6
8589   GENERATED_MANPAGES=
8590 fi
8591
8592
8593 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8594
8595 # How about lex?
8596 for ac_prog in flex
8597 do
8598   # Extract the first word of "$ac_prog", so it can be a program name with args.
8599 set dummy $ac_prog; ac_word=$2
8600 echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8602 if test "${ac_cv_prog_FLEX+set}" = set; then
8603   echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605   if test -n "$FLEX"; then
8606   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611   IFS=$as_save_IFS
8612   test -z "$as_dir" && as_dir=.
8613   for ac_exec_ext in '' $ac_executable_extensions; do
8614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615     ac_cv_prog_FLEX="$ac_prog"
8616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8617     break 2
8618   fi
8619 done
8620 done
8621
8622 fi
8623 fi
8624 FLEX=$ac_cv_prog_FLEX
8625 if test -n "$FLEX"; then
8626   echo "$as_me:$LINENO: result: $FLEX" >&5
8627 echo "${ECHO_T}$FLEX" >&6
8628 else
8629   echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6
8631 fi
8632
8633   test -n "$FLEX" && break
8634 done
8635 test -n "$FLEX" || FLEX="$MISSING flex"
8636
8637
8638 # Bison?
8639 for ac_prog in bison
8640 do
8641   # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645 if test "${ac_cv_prog_BISON+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   if test -n "$BISON"; then
8649   ac_cv_prog_BISON="$BISON" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654   IFS=$as_save_IFS
8655   test -z "$as_dir" && as_dir=.
8656   for ac_exec_ext in '' $ac_executable_extensions; do
8657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658     ac_cv_prog_BISON="$ac_prog"
8659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8660     break 2
8661   fi
8662 done
8663 done
8664
8665 fi
8666 fi
8667 BISON=$ac_cv_prog_BISON
8668 if test -n "$BISON"; then
8669   echo "$as_me:$LINENO: result: $BISON" >&5
8670 echo "${ECHO_T}$BISON" >&6
8671 else
8672   echo "$as_me:$LINENO: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8674 fi
8675
8676   test -n "$BISON" && break
8677 done
8678 test -n "$BISON" || BISON="$MISSING bison"
8679
8680
8681 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
8682 # check for build == host before using them.
8683
8684 # NM
8685 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8686   && test -d ../binutils ; then
8687   NM='$(objdir)/../binutils/nm-new'
8688 else
8689   # Extract the first word of "nm", so it can be a program name with args.
8690 set dummy nm; ac_word=$2
8691 echo "$as_me:$LINENO: checking for $ac_word" >&5
8692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693 if test "${ac_cv_prog_NM+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   if test -n "$NM"; then
8697   ac_cv_prog_NM="$NM" # Let the user override the test.
8698 else
8699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700 for as_dir in $PATH
8701 do
8702   IFS=$as_save_IFS
8703   test -z "$as_dir" && as_dir=.
8704   for ac_exec_ext in '' $ac_executable_extensions; do
8705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706     ac_cv_prog_NM="nm"
8707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708     break 2
8709   fi
8710 done
8711 done
8712
8713   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8714 fi
8715 fi
8716 NM=$ac_cv_prog_NM
8717 if test -n "$NM"; then
8718   echo "$as_me:$LINENO: result: $NM" >&5
8719 echo "${ECHO_T}$NM" >&6
8720 else
8721   echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6
8723 fi
8724
8725 fi
8726
8727 # AR
8728 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8729   && test -d ../binutils ; then
8730   AR='$(objdir)/../binutils/ar'
8731 else
8732   # Extract the first word of "ar", so it can be a program name with args.
8733 set dummy ar; ac_word=$2
8734 echo "$as_me:$LINENO: checking for $ac_word" >&5
8735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736 if test "${ac_cv_prog_AR+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   if test -n "$AR"; then
8740   ac_cv_prog_AR="$AR" # Let the user override the test.
8741 else
8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743 for as_dir in $PATH
8744 do
8745   IFS=$as_save_IFS
8746   test -z "$as_dir" && as_dir=.
8747   for ac_exec_ext in '' $ac_executable_extensions; do
8748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749     ac_cv_prog_AR="ar"
8750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751     break 2
8752   fi
8753 done
8754 done
8755
8756   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8757 fi
8758 fi
8759 AR=$ac_cv_prog_AR
8760 if test -n "$AR"; then
8761   echo "$as_me:$LINENO: result: $AR" >&5
8762 echo "${ECHO_T}$AR" >&6
8763 else
8764   echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6
8766 fi
8767
8768 fi
8769
8770
8771 # --------------------
8772 # Checks for C headers
8773 # --------------------
8774
8775 # Need to reject headers which give warnings, so that the -Werror bootstrap
8776 # works later. *sigh*  This needs to come before all header checks.
8777
8778 ac_c_preproc_warn_flag=yes
8779
8780 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8782 if test "${ac_cv_header_stdc+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791 #include <stdlib.h>
8792 #include <stdarg.h>
8793 #include <string.h>
8794 #include <float.h>
8795
8796 int
8797 main ()
8798 {
8799
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8806   (eval $ac_compile) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -z "$ac_c_werror_flag"
8814                          || test ! -s conftest.err'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; } &&
8820          { ac_try='test -s conftest.$ac_objext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   ac_cv_header_stdc=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_header_stdc=no
8832 fi
8833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834
8835 if test $ac_cv_header_stdc = yes; then
8836   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8837   cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843 #include <string.h>
8844
8845 _ACEOF
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847   $EGREP "memchr" >/dev/null 2>&1; then
8848   :
8849 else
8850   ac_cv_header_stdc=no
8851 fi
8852 rm -f conftest*
8853
8854 fi
8855
8856 if test $ac_cv_header_stdc = yes; then
8857   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8858   cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 #include <stdlib.h>
8865
8866 _ACEOF
8867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8868   $EGREP "free" >/dev/null 2>&1; then
8869   :
8870 else
8871   ac_cv_header_stdc=no
8872 fi
8873 rm -f conftest*
8874
8875 fi
8876
8877 if test $ac_cv_header_stdc = yes; then
8878   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8879   if test "$cross_compiling" = yes; then
8880   :
8881 else
8882   cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 #include <ctype.h>
8889 #if ((' ' & 0x0FF) == 0x020)
8890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8892 #else
8893 # define ISLOWER(c) \
8894                    (('a' <= (c) && (c) <= 'i') \
8895                      || ('j' <= (c) && (c) <= 'r') \
8896                      || ('s' <= (c) && (c) <= 'z'))
8897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8898 #endif
8899
8900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8901 int
8902 main ()
8903 {
8904   int i;
8905   for (i = 0; i < 256; i++)
8906     if (XOR (islower (i), ISLOWER (i))
8907         || toupper (i) != TOUPPER (i))
8908       exit(2);
8909   exit (0);
8910 }
8911 _ACEOF
8912 rm -f conftest$ac_exeext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8914   (eval $ac_link) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   :
8924 else
8925   echo "$as_me: program exited with status $ac_status" >&5
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ( exit $ac_status )
8930 ac_cv_header_stdc=no
8931 fi
8932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8933 fi
8934 fi
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8938 if test $ac_cv_header_stdc = yes; then
8939
8940 cat >>confdefs.h <<\_ACEOF
8941 #define STDC_HEADERS 1
8942 _ACEOF
8943
8944 fi
8945
8946 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8947 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8948 if test "${ac_cv_header_time+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 #include <sys/types.h>
8958 #include <sys/time.h>
8959 #include <time.h>
8960
8961 int
8962 main ()
8963 {
8964 if ((struct tm *) 0)
8965 return 0;
8966   ;
8967   return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972   (eval $ac_compile) 2>conftest.er1
8973   ac_status=$?
8974   grep -v '^ *+' conftest.er1 >conftest.err
8975   rm -f conftest.er1
8976   cat conftest.err >&5
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } &&
8979          { ac_try='test -z "$ac_c_werror_flag"
8980                          || test ! -s conftest.err'
8981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982   (eval $ac_try) 2>&5
8983   ac_status=$?
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); }; } &&
8986          { ac_try='test -s conftest.$ac_objext'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; }; then
8992   ac_cv_header_time=yes
8993 else
8994   echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_cv_header_time=no
8998 fi
8999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9000 fi
9001 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9002 echo "${ECHO_T}$ac_cv_header_time" >&6
9003 if test $ac_cv_header_time = yes; then
9004
9005 cat >>confdefs.h <<\_ACEOF
9006 #define TIME_WITH_SYS_TIME 1
9007 _ACEOF
9008
9009 fi
9010
9011 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9012 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9013 if test "${gcc_cv_header_string+set}" = set; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022 #include <string.h>
9023 #include <strings.h>
9024 int
9025 main ()
9026 {
9027
9028   ;
9029   return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034   (eval $ac_compile) 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag"
9042                          || test ! -s conftest.err'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; } &&
9048          { ac_try='test -s conftest.$ac_objext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   gcc_cv_header_string=yes
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 gcc_cv_header_string=no
9060 fi
9061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
9064 echo "${ECHO_T}$gcc_cv_header_string" >&6
9065 if test $gcc_cv_header_string = yes; then
9066
9067 cat >>confdefs.h <<\_ACEOF
9068 #define STRING_WITH_STRINGS 1
9069 _ACEOF
9070
9071 fi
9072
9073 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9074 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9076   echo $ECHO_N "(cached) $ECHO_C" >&6
9077 else
9078   cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h.  */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h.  */
9084 #include <sys/types.h>
9085 #include <sys/wait.h>
9086 #ifndef WEXITSTATUS
9087 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9088 #endif
9089 #ifndef WIFEXITED
9090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9091 #endif
9092
9093 int
9094 main ()
9095 {
9096   int s;
9097   wait (&s);
9098   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9105   (eval $ac_compile) 2>conftest.er1
9106   ac_status=$?
9107   grep -v '^ *+' conftest.er1 >conftest.err
9108   rm -f conftest.er1
9109   cat conftest.err >&5
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } &&
9112          { ac_try='test -z "$ac_c_werror_flag"
9113                          || test ! -s conftest.err'
9114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115   (eval $ac_try) 2>&5
9116   ac_status=$?
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); }; } &&
9119          { ac_try='test -s conftest.$ac_objext'
9120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   ac_cv_header_sys_wait_h=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_cv_header_sys_wait_h=no
9131 fi
9132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9133 fi
9134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9135 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9136 if test $ac_cv_header_sys_wait_h = yes; then
9137
9138 cat >>confdefs.h <<\_ACEOF
9139 #define HAVE_SYS_WAIT_H 1
9140 _ACEOF
9141
9142 fi
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9167                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
9168                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
9169                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9170 do
9171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9172 echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9175   echo $ECHO_N "(cached) $ECHO_C" >&6
9176 else
9177   cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h.  */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h.  */
9183 #include <$ac_header>
9184 _ACEOF
9185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9187   ac_status=$?
9188   grep -v '^ *+' conftest.er1 >conftest.err
9189   rm -f conftest.er1
9190   cat conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } >/dev/null; then
9193   if test -s conftest.err; then
9194     ac_cpp_err=$ac_c_preproc_warn_flag
9195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9196   else
9197     ac_cpp_err=
9198   fi
9199 else
9200   ac_cpp_err=yes
9201 fi
9202 if test -z "$ac_cpp_err"; then
9203   eval "$as_ac_Header=yes"
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208   eval "$as_ac_Header=no"
9209 fi
9210 rm -f conftest.err conftest.$ac_ext
9211 fi
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215   cat >>confdefs.h <<_ACEOF
9216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217 _ACEOF
9218
9219 fi
9220 done
9221
9222
9223 # Check for thread headers.
9224 echo "$as_me:$LINENO: checking for thread.h" >&5
9225 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
9226 if test "${ac_cv_header_thread_h+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h.  */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h.  */
9235 #include <thread.h>
9236 _ACEOF
9237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9238   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } >/dev/null; then
9245   if test -s conftest.err; then
9246     ac_cpp_err=$ac_c_preproc_warn_flag
9247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9248   else
9249     ac_cpp_err=
9250   fi
9251 else
9252   ac_cpp_err=yes
9253 fi
9254 if test -z "$ac_cpp_err"; then
9255   ac_cv_header_thread_h=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260   ac_cv_header_thread_h=no
9261 fi
9262 rm -f conftest.err conftest.$ac_ext
9263 fi
9264 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
9265 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
9266 if test $ac_cv_header_thread_h = yes; then
9267   have_thread_h=yes
9268 else
9269   have_thread_h=
9270 fi
9271
9272 echo "$as_me:$LINENO: checking for pthread.h" >&5
9273 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9274 if test "${ac_cv_header_pthread_h+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277   cat >conftest.$ac_ext <<_ACEOF
9278 /* confdefs.h.  */
9279 _ACEOF
9280 cat confdefs.h >>conftest.$ac_ext
9281 cat >>conftest.$ac_ext <<_ACEOF
9282 /* end confdefs.h.  */
9283 #include <pthread.h>
9284 _ACEOF
9285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } >/dev/null; then
9293   if test -s conftest.err; then
9294     ac_cpp_err=$ac_c_preproc_warn_flag
9295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9296   else
9297     ac_cpp_err=
9298   fi
9299 else
9300   ac_cpp_err=yes
9301 fi
9302 if test -z "$ac_cpp_err"; then
9303   ac_cv_header_pthread_h=yes
9304 else
9305   echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308   ac_cv_header_pthread_h=no
9309 fi
9310 rm -f conftest.err conftest.$ac_ext
9311 fi
9312 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
9313 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9314 if test $ac_cv_header_pthread_h = yes; then
9315   have_pthread_h=yes
9316 else
9317   have_pthread_h=
9318 fi
9319
9320
9321 # These tests can't be done till we know if we have limits.h.
9322 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
9323 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
9324 if test "${gcc_cv_decl_char_bit+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h.  */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h.  */
9333 #ifdef HAVE_LIMITS_H
9334 #include <limits.h>
9335 #endif
9336 #ifdef CHAR_BIT
9337 found
9338 #endif
9339 _ACEOF
9340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9341   $EGREP "found" >/dev/null 2>&1; then
9342   gcc_cv_decl_char_bit=yes
9343 else
9344   gcc_cv_decl_char_bit=no
9345 fi
9346 rm -f conftest*
9347
9348
9349 fi
9350 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
9351 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
9352 if test $gcc_cv_decl_char_bit = no; then
9353   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
9354 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
9355 if test "${gcc_cv_c_nbby+set}" = set; then
9356   echo $ECHO_N "(cached) $ECHO_C" >&6
9357 else
9358   i=8
9359  gcc_cv_c_nbby=
9360  while test $i -lt 65; do
9361    cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h.  */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h.  */
9367
9368 int
9369 main ()
9370 {
9371 switch(0) {
9372   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9373   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9374   ; }
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>conftest.er1
9382   ac_status=$?
9383   grep -v '^ *+' conftest.er1 >conftest.err
9384   rm -f conftest.er1
9385   cat conftest.err >&5
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); } &&
9388          { ac_try='test -z "$ac_c_werror_flag"
9389                          || test ! -s conftest.err'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; } &&
9395          { ac_try='test -s conftest.$ac_objext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   gcc_cv_c_nbby=$i; break
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 fi
9407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9408    i=`expr $i + 1`
9409  done
9410  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9411
9412 fi
9413 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
9414 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
9415 if test $gcc_cv_c_nbby = failed; then
9416   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
9417 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
9418    { (exit 1); exit 1; }; }
9419 else
9420
9421 cat >>confdefs.h <<_ACEOF
9422 #define CHAR_BIT $gcc_cv_c_nbby
9423 _ACEOF
9424
9425 fi
9426 fi
9427 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9428 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9429 if test "${ac_cv_c_bigendian+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   # See if sys/param.h defines the BYTE_ORDER macro.
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 #include <sys/types.h>
9440 #include <sys/param.h>
9441
9442 int
9443 main ()
9444 {
9445 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9446  bogus endian macros
9447 #endif
9448
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455   (eval $ac_compile) 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -z "$ac_c_werror_flag"
9463                          || test ! -s conftest.err'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; } &&
9469          { ac_try='test -s conftest.$ac_objext'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   # It does; now see whether it defined to BIG_ENDIAN or not.
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 #include <sys/types.h>
9483 #include <sys/param.h>
9484
9485 int
9486 main ()
9487 {
9488 #if BYTE_ORDER != BIG_ENDIAN
9489  not big endian
9490 #endif
9491
9492   ;
9493   return 0;
9494 }
9495 _ACEOF
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498   (eval $ac_compile) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } &&
9505          { ac_try='test -z "$ac_c_werror_flag"
9506                          || test ! -s conftest.err'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; } &&
9512          { ac_try='test -s conftest.$ac_objext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   ac_cv_c_bigendian=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 ac_cv_c_bigendian=no
9524 fi
9525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 # It does not; compile a test program.
9531 if test "$cross_compiling" = yes; then
9532   # try to guess the endianness by grepping values into an object file
9533   ac_cv_c_bigendian=unknown
9534   cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9541 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9542 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9543 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9544 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9545 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9546 int
9547 main ()
9548 {
9549  _ascii (); _ebcdic ();
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556   (eval $ac_compile) 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -z "$ac_c_werror_flag"
9564                          || test ! -s conftest.err'
9565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566   (eval $ac_try) 2>&5
9567   ac_status=$?
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); }; } &&
9570          { ac_try='test -s conftest.$ac_objext'
9571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572   (eval $ac_try) 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9577   ac_cv_c_bigendian=yes
9578 fi
9579 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9580   if test "$ac_cv_c_bigendian" = unknown; then
9581     ac_cv_c_bigendian=no
9582   else
9583     # finding both strings is unlikely to happen, but who knows?
9584     ac_cv_c_bigendian=unknown
9585   fi
9586 fi
9587 else
9588   echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9590
9591 fi
9592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9593 else
9594   cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h.  */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h.  */
9600 int
9601 main ()
9602 {
9603   /* Are we little or big endian?  From Harbison&Steele.  */
9604   union
9605   {
9606     long l;
9607     char c[sizeof (long)];
9608   } u;
9609   u.l = 1;
9610   exit (u.c[sizeof (long) - 1] == 1);
9611 }
9612 _ACEOF
9613 rm -f conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615   (eval $ac_link) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_c_bigendian=no
9625 else
9626   echo "$as_me: program exited with status $ac_status" >&5
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ( exit $ac_status )
9631 ac_cv_c_bigendian=yes
9632 fi
9633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9634 fi
9635 fi
9636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9637 fi
9638 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9640 case $ac_cv_c_bigendian in
9641   yes)
9642
9643 cat >>confdefs.h <<\_ACEOF
9644 #define WORDS_BIGENDIAN 1
9645 _ACEOF
9646  ;;
9647   no)
9648      ;;
9649   *)
9650     { { echo "$as_me:$LINENO: error: unknown endianness
9651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9652 echo "$as_me: error: unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9654    { (exit 1); exit 1; }; } ;;
9655 esac
9656
9657
9658 # --------
9659 # UNSORTED
9660 # --------
9661
9662
9663 # These libraries may be used by collect2.
9664 # We may need a special search path to get them linked.
9665 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
9666 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
9667 if test "${gcc_cv_collect2_libs+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   save_LIBS="$LIBS"
9671 for libs in '' -lld -lmld \
9672                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9673                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9674 do
9675         LIBS="$libs"
9676         cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682
9683 /* Override any gcc2 internal prototype to avoid an error.  */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688    builtin and then its argument prototype would still apply.  */
9689 char ldopen ();
9690 int
9691 main ()
9692 {
9693 ldopen ();
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700   (eval $ac_link) 2>conftest.er1
9701   ac_status=$?
9702   grep -v '^ *+' conftest.er1 >conftest.err
9703   rm -f conftest.er1
9704   cat conftest.err >&5
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -z "$ac_c_werror_flag"
9708                          || test ! -s conftest.err'
9709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710   (eval $ac_try) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; } &&
9714          { ac_try='test -s conftest$ac_exeext'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   gcc_cv_collect2_libs="$libs"; break
9721 else
9722   echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 fi
9726 rm -f conftest.err conftest.$ac_objext \
9727       conftest$ac_exeext conftest.$ac_ext
9728 done
9729 LIBS="$save_LIBS"
9730 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9731 fi
9732 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
9733 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
9734 case $gcc_cv_collect2_libs in
9735         "none required")        ;;
9736         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9737 esac
9738
9739
9740 # When building Ada code on Alpha, we need exc_resume which is usually in
9741 # -lexc.  So test for it.
9742 save_LIBS="$LIBS"
9743 LIBS=
9744 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
9745 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
9746 if test "${ac_cv_search_exc_resume+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   ac_func_search_save_LIBS=$LIBS
9750 ac_cv_search_exc_resume=no
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any gcc2 internal prototype to avoid an error.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 /* We use char because int might match the return type of a gcc2
9763    builtin and then its argument prototype would still apply.  */
9764 char exc_resume ();
9765 int
9766 main ()
9767 {
9768 exc_resume ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9775   (eval $ac_link) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag"
9783                          || test ! -s conftest.err'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_search_exc_resume="none required"
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 fi
9801 rm -f conftest.err conftest.$ac_objext \
9802       conftest$ac_exeext conftest.$ac_ext
9803 if test "$ac_cv_search_exc_resume" = no; then
9804   for ac_lib in exc; do
9805     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9806     cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812
9813 /* Override any gcc2 internal prototype to avoid an error.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 /* We use char because int might match the return type of a gcc2
9818    builtin and then its argument prototype would still apply.  */
9819 char exc_resume ();
9820 int
9821 main ()
9822 {
9823 exc_resume ();
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830   (eval $ac_link) 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -z "$ac_c_werror_flag"
9838                          || test ! -s conftest.err'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; } &&
9844          { ac_try='test -s conftest$ac_exeext'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   ac_cv_search_exc_resume="-l$ac_lib"
9851 break
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 fi
9857 rm -f conftest.err conftest.$ac_objext \
9858       conftest$ac_exeext conftest.$ac_ext
9859   done
9860 fi
9861 LIBS=$ac_func_search_save_LIBS
9862 fi
9863 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9864 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9865 if test "$ac_cv_search_exc_resume" != no; then
9866   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9867
9868 fi
9869
9870 GNAT_LIBEXC="$LIBS"
9871 LIBS="$save_LIBS"
9872
9873
9874 # Some systems put ldexp and frexp in libm instead of libc; assume
9875 # they're both in the same place.  jcf-dump needs them.
9876 save_LIBS="$LIBS"
9877 LIBS=
9878 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9879 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9880 if test "${ac_cv_search_ldexp+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   ac_func_search_save_LIBS=$LIBS
9884 ac_cv_search_ldexp=no
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891
9892 /* Override any gcc2 internal prototype to avoid an error.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 /* We use char because int might match the return type of a gcc2
9897    builtin and then its argument prototype would still apply.  */
9898 char ldexp ();
9899 int
9900 main ()
9901 {
9902 ldexp ();
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909   (eval $ac_link) 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag"
9917                          || test ! -s conftest.err'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; } &&
9923          { ac_try='test -s conftest$ac_exeext'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_search_ldexp="none required"
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 fi
9935 rm -f conftest.err conftest.$ac_objext \
9936       conftest$ac_exeext conftest.$ac_ext
9937 if test "$ac_cv_search_ldexp" = no; then
9938   for ac_lib in m; do
9939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9940     cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946
9947 /* Override any gcc2 internal prototype to avoid an error.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952    builtin and then its argument prototype would still apply.  */
9953 char ldexp ();
9954 int
9955 main ()
9956 {
9957 ldexp ();
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964   (eval $ac_link) 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } &&
9971          { ac_try='test -z "$ac_c_werror_flag"
9972                          || test ! -s conftest.err'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; } &&
9978          { ac_try='test -s conftest$ac_exeext'
9979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980   (eval $ac_try) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); }; }; then
9984   ac_cv_search_ldexp="-l$ac_lib"
9985 break
9986 else
9987   echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 fi
9991 rm -f conftest.err conftest.$ac_objext \
9992       conftest$ac_exeext conftest.$ac_ext
9993   done
9994 fi
9995 LIBS=$ac_func_search_save_LIBS
9996 fi
9997 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9998 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9999 if test "$ac_cv_search_ldexp" != no; then
10000   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
10001
10002 fi
10003
10004 LDEXP_LIB="$LIBS"
10005 LIBS="$save_LIBS"
10006
10007
10008 # Use <inttypes.h> only if it exists,
10009 # doesn't clash with <sys/types.h>, and declares intmax_t.
10010 echo "$as_me:$LINENO: checking for inttypes.h" >&5
10011 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10012 if test "${gcc_cv_header_inttypes_h+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021 #include <sys/types.h>
10022 #include <inttypes.h>
10023 int
10024 main ()
10025 {
10026 intmax_t i = -1;
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033   (eval $ac_compile) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"
10041                          || test ! -s conftest.err'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; } &&
10047          { ac_try='test -s conftest.$ac_objext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   gcc_cv_header_inttypes_h=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 gcc_cv_header_inttypes_h=no
10059 fi
10060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10061 fi
10062
10063 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
10064 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
10065 if test $gcc_cv_header_inttypes_h = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_INTTYPES_H 1
10069 _ACEOF
10070
10071 fi
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
10109         sysconf strsignal getrusage nl_langinfo \
10110         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
10111         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
10112 do
10113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10114 echo "$as_me:$LINENO: checking for $ac_func" >&5
10115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10116 if eval "test \"\${$as_ac_var+set}\" = set"; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10127 #define $ac_func innocuous_$ac_func
10128
10129 /* System header to define __stub macros and hopefully few prototypes,
10130     which can conflict with char $ac_func (); below.
10131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132     <limits.h> exists even on freestanding compilers.  */
10133
10134 #ifdef __STDC__
10135 # include <limits.h>
10136 #else
10137 # include <assert.h>
10138 #endif
10139
10140 #undef $ac_func
10141
10142 /* Override any gcc2 internal prototype to avoid an error.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 {
10146 #endif
10147 /* We use char because int might match the return type of a gcc2
10148    builtin and then its argument prototype would still apply.  */
10149 char $ac_func ();
10150 /* The GNU C library defines this for functions which it implements
10151     to always fail with ENOSYS.  Some functions are actually named
10152     something starting with __ and the normal name is an alias.  */
10153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10154 choke me
10155 #else
10156 char (*f) () = $ac_func;
10157 #endif
10158 #ifdef __cplusplus
10159 }
10160 #endif
10161
10162 int
10163 main ()
10164 {
10165 return f != $ac_func;
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"
10180                          || test ! -s conftest.err'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; } &&
10186          { ac_try='test -s conftest$ac_exeext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   eval "$as_ac_var=yes"
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 eval "$as_ac_var=no"
10198 fi
10199 rm -f conftest.err conftest.$ac_objext \
10200       conftest$ac_exeext conftest.$ac_ext
10201 fi
10202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10204 if test `eval echo '${'$as_ac_var'}'` = yes; then
10205   cat >>confdefs.h <<_ACEOF
10206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10207 _ACEOF
10208
10209 fi
10210 done
10211
10212
10213 if test x$ac_cv_func_mbstowcs = xyes; then
10214   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
10215 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
10216 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
10217   echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219       if test "$cross_compiling" = yes; then
10220   gcc_cv_func_mbstowcs_works=yes
10221 else
10222   cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 #include <stdlib.h>
10229 int main()
10230 {
10231   mbstowcs(0, "", 0);
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237   (eval $ac_link) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242   (eval $ac_try) 2>&5
10243   ac_status=$?
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); }; }; then
10246   gcc_cv_func_mbstowcs_works=yes
10247 else
10248   echo "$as_me: program exited with status $ac_status" >&5
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 ( exit $ac_status )
10253 gcc_cv_func_mbstowcs_works=no
10254 fi
10255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10256 fi
10257 fi
10258 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
10259 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
10260   if test x$gcc_cv_func_mbstowcs_works = xyes; then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_WORKING_MBSTOWCS 1
10264 _ACEOF
10265
10266   fi
10267 fi
10268
10269 echo "$as_me:$LINENO: checking for ssize_t" >&5
10270 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10271 if test "${ac_cv_type_ssize_t+set}" = set; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h.  */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h.  */
10280 $ac_includes_default
10281 int
10282 main ()
10283 {
10284 if ((ssize_t *) 0)
10285   return 0;
10286 if (sizeof (ssize_t))
10287   return 0;
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext
10293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10294   (eval $ac_compile) 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -z "$ac_c_werror_flag"
10302                          || test ! -s conftest.err'
10303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304   (eval $ac_try) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); }; } &&
10308          { ac_try='test -s conftest.$ac_objext'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; }; then
10314   ac_cv_type_ssize_t=yes
10315 else
10316   echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_cv_type_ssize_t=no
10320 fi
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322 fi
10323 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10324 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10325 if test $ac_cv_type_ssize_t = yes; then
10326   :
10327 else
10328
10329 cat >>confdefs.h <<_ACEOF
10330 #define ssize_t int
10331 _ACEOF
10332
10333 fi
10334
10335 echo "$as_me:$LINENO: checking for caddr_t" >&5
10336 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
10337 if test "${ac_cv_type_caddr_t+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340   cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346 $ac_includes_default
10347 int
10348 main ()
10349 {
10350 if ((caddr_t *) 0)
10351   return 0;
10352 if (sizeof (caddr_t))
10353   return 0;
10354   ;
10355   return 0;
10356 }
10357 _ACEOF
10358 rm -f conftest.$ac_objext
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360   (eval $ac_compile) 2>conftest.er1
10361   ac_status=$?
10362   grep -v '^ *+' conftest.er1 >conftest.err
10363   rm -f conftest.er1
10364   cat conftest.err >&5
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); } &&
10367          { ac_try='test -z "$ac_c_werror_flag"
10368                          || test ! -s conftest.err'
10369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370   (eval $ac_try) 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest.$ac_objext'
10375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376   (eval $ac_try) 2>&5
10377   ac_status=$?
10378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379   (exit $ac_status); }; }; then
10380   ac_cv_type_caddr_t=yes
10381 else
10382   echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10384
10385 ac_cv_type_caddr_t=no
10386 fi
10387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10388 fi
10389 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
10390 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
10391 if test $ac_cv_type_caddr_t = yes; then
10392   :
10393 else
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define caddr_t char *
10397 _ACEOF
10398
10399 fi
10400
10401
10402 # Try to determine the array type of the second argument of getgroups
10403 # for the target system (int or gid_t).
10404 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10405 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10406 if test "${ac_cv_type_uid_t+set}" = set; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409   cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #include <sys/types.h>
10416
10417 _ACEOF
10418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10419   $EGREP "uid_t" >/dev/null 2>&1; then
10420   ac_cv_type_uid_t=yes
10421 else
10422   ac_cv_type_uid_t=no
10423 fi
10424 rm -f conftest*
10425
10426 fi
10427 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10428 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10429 if test $ac_cv_type_uid_t = no; then
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define uid_t int
10433 _ACEOF
10434
10435
10436 cat >>confdefs.h <<\_ACEOF
10437 #define gid_t int
10438 _ACEOF
10439
10440 fi
10441
10442 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
10443 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
10444 if test "${ac_cv_type_getgroups+set}" = set; then
10445   echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447   if test "$cross_compiling" = yes; then
10448   ac_cv_type_getgroups=cross
10449 else
10450   cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456 /* Thanks to Mike Rendell for this test.  */
10457 #include <sys/types.h>
10458 #define NGID 256
10459 #undef MAX
10460 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10461
10462 int
10463 main ()
10464 {
10465   gid_t gidset[NGID];
10466   int i, n;
10467   union { gid_t gval; long lval; }  val;
10468
10469   val.lval = -1;
10470   for (i = 0; i < NGID; i++)
10471     gidset[i] = val.gval;
10472   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10473                  gidset);
10474   /* Exit non-zero if getgroups seems to require an array of ints.  This
10475      happens when gid_t is short but getgroups modifies an array of ints.  */
10476   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
10477 }
10478 _ACEOF
10479 rm -f conftest$ac_exeext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481   (eval $ac_link) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_type_getgroups=gid_t
10491 else
10492   echo "$as_me: program exited with status $ac_status" >&5
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 ( exit $ac_status )
10497 ac_cv_type_getgroups=int
10498 fi
10499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10500 fi
10501 if test $ac_cv_type_getgroups = cross; then
10502         cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 #include <unistd.h>
10509
10510 _ACEOF
10511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10512   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
10513   ac_cv_type_getgroups=gid_t
10514 else
10515   ac_cv_type_getgroups=int
10516 fi
10517 rm -f conftest*
10518
10519 fi
10520 fi
10521 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
10522 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
10523
10524 cat >>confdefs.h <<_ACEOF
10525 #define GETGROUPS_T $ac_cv_type_getgroups
10526 _ACEOF
10527
10528
10529 if test "${target}" = "${build}"; then
10530   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
10531 else
10532   case "${target}" in
10533         # This condition may need some tweaking.  It should include all
10534         # targets where the array type of the second argument of getgroups
10535         # is int and the type of gid_t is not equivalent to int.
10536         *-*-sunos* | *-*-ultrix*)
10537                 TARGET_GETGROUPS_T=int
10538                 ;;
10539         *)
10540                 TARGET_GETGROUPS_T=gid_t
10541                 ;;
10542   esac
10543 fi
10544
10545
10546
10547 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10548 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10549 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10550   echo $ECHO_N "(cached) $ECHO_C" >&6
10551 else
10552   cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h.  */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h.  */
10558 #include <sys/mman.h>
10559 _ACEOF
10560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } >/dev/null; then
10568   if test -s conftest.err; then
10569     ac_cpp_err=$ac_c_preproc_warn_flag
10570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10571   else
10572     ac_cpp_err=
10573   fi
10574 else
10575   ac_cpp_err=yes
10576 fi
10577 if test -z "$ac_cpp_err"; then
10578   ac_cv_header_sys_mman_h=yes
10579 else
10580   echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10582
10583   ac_cv_header_sys_mman_h=no
10584 fi
10585 rm -f conftest.err conftest.$ac_ext
10586 fi
10587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10588 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10589 if test $ac_cv_header_sys_mman_h = yes; then
10590   gcc_header_sys_mman_h=yes
10591 else
10592   gcc_header_sys_mman_h=no
10593 fi
10594
10595 echo "$as_me:$LINENO: checking for mmap" >&5
10596 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10597 if test "${ac_cv_func_mmap+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10608 #define mmap innocuous_mmap
10609
10610 /* System header to define __stub macros and hopefully few prototypes,
10611     which can conflict with char mmap (); below.
10612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613     <limits.h> exists even on freestanding compilers.  */
10614
10615 #ifdef __STDC__
10616 # include <limits.h>
10617 #else
10618 # include <assert.h>
10619 #endif
10620
10621 #undef mmap
10622
10623 /* Override any gcc2 internal prototype to avoid an error.  */
10624 #ifdef __cplusplus
10625 extern "C"
10626 {
10627 #endif
10628 /* We use char because int might match the return type of a gcc2
10629    builtin and then its argument prototype would still apply.  */
10630 char mmap ();
10631 /* The GNU C library defines this for functions which it implements
10632     to always fail with ENOSYS.  Some functions are actually named
10633     something starting with __ and the normal name is an alias.  */
10634 #if defined (__stub_mmap) || defined (__stub___mmap)
10635 choke me
10636 #else
10637 char (*f) () = mmap;
10638 #endif
10639 #ifdef __cplusplus
10640 }
10641 #endif
10642
10643 int
10644 main ()
10645 {
10646 return f != mmap;
10647   ;
10648   return 0;
10649 }
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653   (eval $ac_link) 2>conftest.er1
10654   ac_status=$?
10655   grep -v '^ *+' conftest.er1 >conftest.err
10656   rm -f conftest.er1
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } &&
10660          { ac_try='test -z "$ac_c_werror_flag"
10661                          || test ! -s conftest.err'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; } &&
10667          { ac_try='test -s conftest$ac_exeext'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ac_cv_func_mmap=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_cv_func_mmap=no
10679 fi
10680 rm -f conftest.err conftest.$ac_objext \
10681       conftest$ac_exeext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10684 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10685 if test $ac_cv_func_mmap = yes; then
10686   gcc_func_mmap=yes
10687 else
10688   gcc_func_mmap=no
10689 fi
10690
10691 if test "$gcc_header_sys_mman_h" != yes \
10692  || test "$gcc_func_mmap" != yes; then
10693    gcc_cv_func_mmap_file=no
10694    gcc_cv_func_mmap_dev_zero=no
10695    gcc_cv_func_mmap_anon=no
10696 else
10697    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10698 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10699 if test "${gcc_cv_func_mmap_file+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   # Add a system to this blacklist if
10703    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10704    # memory area containing the same data that you'd get if you applied
10705    # read() to the same fd.  The only system known to have a problem here
10706    # is VMS, where text files have record structure.
10707    case "$host_os" in
10708      vms* | ultrix*)
10709         gcc_cv_func_mmap_file=no ;;
10710      *)
10711         gcc_cv_func_mmap_file=yes;;
10712    esac
10713 fi
10714 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
10715 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
10716    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10717 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10718 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   # Add a system to this blacklist if it has mmap() but /dev/zero
10722    # does not exist, or if mmapping /dev/zero does not give anonymous
10723    # zeroed pages with both the following properties:
10724    # 1. If you map N consecutive pages in with one call, and then
10725    #    unmap any subset of those pages, the pages that were not
10726    #    explicitly unmapped remain accessible.
10727    # 2. If you map two adjacent blocks of memory and then unmap them
10728    #    both at once, they must both go away.
10729    # Systems known to be in this category are Windows (all variants),
10730    # VMS, and Darwin.
10731    case "$host_os" in
10732      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10733         gcc_cv_func_mmap_dev_zero=no ;;
10734      *)
10735         gcc_cv_func_mmap_dev_zero=yes;;
10736    esac
10737 fi
10738 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
10739 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
10740
10741    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10742    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10743 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10744 if test "${gcc_cv_decl_map_anon+set}" = set; then
10745   echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747   cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h.  */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h.  */
10753 #include <sys/types.h>
10754 #include <sys/mman.h>
10755 #include <unistd.h>
10756
10757 #ifndef MAP_ANONYMOUS
10758 #define MAP_ANONYMOUS MAP_ANON
10759 #endif
10760
10761 int
10762 main ()
10763 {
10764 int n = MAP_ANONYMOUS;
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771   (eval $ac_compile) 2>conftest.er1
10772   ac_status=$?
10773   grep -v '^ *+' conftest.er1 >conftest.err
10774   rm -f conftest.er1
10775   cat conftest.err >&5
10776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777   (exit $ac_status); } &&
10778          { ac_try='test -z "$ac_c_werror_flag"
10779                          || test ! -s conftest.err'
10780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781   (eval $ac_try) 2>&5
10782   ac_status=$?
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); }; } &&
10785          { ac_try='test -s conftest.$ac_objext'
10786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787   (eval $ac_try) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); }; }; then
10791   gcc_cv_decl_map_anon=yes
10792 else
10793   echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10795
10796 gcc_cv_decl_map_anon=no
10797 fi
10798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10799 fi
10800 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
10801 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
10802
10803    if test $gcc_cv_decl_map_anon = no; then
10804      gcc_cv_func_mmap_anon=no
10805    else
10806      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10807 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10808 if test "${gcc_cv_func_mmap_anon+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   # Add a system to this blacklist if it has mmap() and MAP_ANON or
10812    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10813    # doesn't give anonymous zeroed pages with the same properties listed
10814    # above for use of /dev/zero.
10815    # Systems known to be in this category are Windows, VMS, and SCO Unix.
10816    case "$host_os" in
10817      vms* | cygwin* | pe | mingw* | sco* | udk* )
10818         gcc_cv_func_mmap_anon=no ;;
10819      *)
10820         gcc_cv_func_mmap_anon=yes;;
10821    esac
10822 fi
10823 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
10824 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
10825    fi
10826 fi
10827
10828 if test $gcc_cv_func_mmap_file = yes; then
10829
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_MMAP_FILE 1
10832 _ACEOF
10833
10834 fi
10835 if test $gcc_cv_func_mmap_dev_zero = yes; then
10836
10837 cat >>confdefs.h <<\_ACEOF
10838 #define HAVE_MMAP_DEV_ZERO 1
10839 _ACEOF
10840
10841 fi
10842 if test $gcc_cv_func_mmap_anon = yes; then
10843
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_MMAP_ANON 1
10846 _ACEOF
10847
10848 fi
10849
10850
10851 case "${host}" in
10852 *-*-*vms*)
10853   # Under VMS, vfork works very differently than on Unix. The standard test
10854   # won't work, and it isn't easily adaptable. It makes more sense to
10855   # just force it.
10856   ac_cv_func_vfork_works=yes
10857   ;;
10858 esac
10859 echo "$as_me:$LINENO: checking for pid_t" >&5
10860 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10861 if test "${ac_cv_type_pid_t+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
10864   cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870 $ac_includes_default
10871 int
10872 main ()
10873 {
10874 if ((pid_t *) 0)
10875   return 0;
10876 if (sizeof (pid_t))
10877   return 0;
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884   (eval $ac_compile) 2>conftest.er1
10885   ac_status=$?
10886   grep -v '^ *+' conftest.er1 >conftest.err
10887   rm -f conftest.er1
10888   cat conftest.err >&5
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); } &&
10891          { ac_try='test -z "$ac_c_werror_flag"
10892                          || test ! -s conftest.err'
10893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894   (eval $ac_try) 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); }; } &&
10898          { ac_try='test -s conftest.$ac_objext'
10899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900   (eval $ac_try) 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   ac_cv_type_pid_t=yes
10905 else
10906   echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 ac_cv_type_pid_t=no
10910 fi
10911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10912 fi
10913 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10915 if test $ac_cv_type_pid_t = yes; then
10916   :
10917 else
10918
10919 cat >>confdefs.h <<_ACEOF
10920 #define pid_t int
10921 _ACEOF
10922
10923 fi
10924
10925
10926
10927 for ac_header in unistd.h vfork.h
10928 do
10929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10930 echo "$as_me:$LINENO: checking for $ac_header" >&5
10931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 #include <$ac_header>
10942 _ACEOF
10943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } >/dev/null; then
10951   if test -s conftest.err; then
10952     ac_cpp_err=$ac_c_preproc_warn_flag
10953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10954   else
10955     ac_cpp_err=
10956   fi
10957 else
10958   ac_cpp_err=yes
10959 fi
10960 if test -z "$ac_cpp_err"; then
10961   eval "$as_ac_Header=yes"
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966   eval "$as_ac_Header=no"
10967 fi
10968 rm -f conftest.err conftest.$ac_ext
10969 fi
10970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10973   cat >>confdefs.h <<_ACEOF
10974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10975 _ACEOF
10976
10977 fi
10978 done
10979
10980
10981
10982 for ac_func in fork vfork
10983 do
10984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10985 echo "$as_me:$LINENO: checking for $ac_func" >&5
10986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10987 if eval "test \"\${$as_ac_var+set}\" = set"; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10998 #define $ac_func innocuous_$ac_func
10999
11000 /* System header to define __stub macros and hopefully few prototypes,
11001     which can conflict with char $ac_func (); below.
11002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11003     <limits.h> exists even on freestanding compilers.  */
11004
11005 #ifdef __STDC__
11006 # include <limits.h>
11007 #else
11008 # include <assert.h>
11009 #endif
11010
11011 #undef $ac_func
11012
11013 /* Override any gcc2 internal prototype to avoid an error.  */
11014 #ifdef __cplusplus
11015 extern "C"
11016 {
11017 #endif
11018 /* We use char because int might match the return type of a gcc2
11019    builtin and then its argument prototype would still apply.  */
11020 char $ac_func ();
11021 /* The GNU C library defines this for functions which it implements
11022     to always fail with ENOSYS.  Some functions are actually named
11023     something starting with __ and the normal name is an alias.  */
11024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11025 choke me
11026 #else
11027 char (*f) () = $ac_func;
11028 #endif
11029 #ifdef __cplusplus
11030 }
11031 #endif
11032
11033 int
11034 main ()
11035 {
11036 return f != $ac_func;
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11043   (eval $ac_link) 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } &&
11050          { ac_try='test -z "$ac_c_werror_flag"
11051                          || test ! -s conftest.err'
11052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053   (eval $ac_try) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; } &&
11057          { ac_try='test -s conftest$ac_exeext'
11058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059   (eval $ac_try) 2>&5
11060   ac_status=$?
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); }; }; then
11063   eval "$as_ac_var=yes"
11064 else
11065   echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068 eval "$as_ac_var=no"
11069 fi
11070 rm -f conftest.err conftest.$ac_objext \
11071       conftest$ac_exeext conftest.$ac_ext
11072 fi
11073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11075 if test `eval echo '${'$as_ac_var'}'` = yes; then
11076   cat >>confdefs.h <<_ACEOF
11077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11078 _ACEOF
11079
11080 fi
11081 done
11082
11083 if test "x$ac_cv_func_fork" = xyes; then
11084   echo "$as_me:$LINENO: checking for working fork" >&5
11085 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
11086 if test "${ac_cv_func_fork_works+set}" = set; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   if test "$cross_compiling" = yes; then
11090   ac_cv_func_fork_works=cross
11091 else
11092   cat >conftest.$ac_ext <<_ACEOF
11093 /* By Ruediger Kuhlmann. */
11094       #include <sys/types.h>
11095       #if HAVE_UNISTD_H
11096       # include <unistd.h>
11097       #endif
11098       /* Some systems only have a dummy stub for fork() */
11099       int main ()
11100       {
11101         if (fork() < 0)
11102           exit (1);
11103         exit (0);
11104       }
11105 _ACEOF
11106 rm -f conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108   (eval $ac_link) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113   (eval $ac_try) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); }; }; then
11117   ac_cv_func_fork_works=yes
11118 else
11119   echo "$as_me: program exited with status $ac_status" >&5
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123 ( exit $ac_status )
11124 ac_cv_func_fork_works=no
11125 fi
11126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127 fi
11128 fi
11129 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
11130 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
11131
11132 else
11133   ac_cv_func_fork_works=$ac_cv_func_fork
11134 fi
11135 if test "x$ac_cv_func_fork_works" = xcross; then
11136   case $host in
11137     *-*-amigaos* | *-*-msdosdjgpp*)
11138       # Override, as these systems have only a dummy fork() stub
11139       ac_cv_func_fork_works=no
11140       ;;
11141     *)
11142       ac_cv_func_fork_works=yes
11143       ;;
11144   esac
11145   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11146 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11147 fi
11148 ac_cv_func_vfork_works=$ac_cv_func_vfork
11149 if test "x$ac_cv_func_vfork" = xyes; then
11150   echo "$as_me:$LINENO: checking for working vfork" >&5
11151 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
11152 if test "${ac_cv_func_vfork_works+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155   if test "$cross_compiling" = yes; then
11156   ac_cv_func_vfork_works=cross
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164 /* Thanks to Paul Eggert for this test.  */
11165 #include <stdio.h>
11166 #include <stdlib.h>
11167 #include <sys/types.h>
11168 #include <sys/stat.h>
11169 #include <sys/wait.h>
11170 #if HAVE_UNISTD_H
11171 # include <unistd.h>
11172 #endif
11173 #if HAVE_VFORK_H
11174 # include <vfork.h>
11175 #endif
11176 /* On some sparc systems, changes by the child to local and incoming
11177    argument registers are propagated back to the parent.  The compiler
11178    is told about this with #include <vfork.h>, but some compilers
11179    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
11180    static variable whose address is put into a register that is
11181    clobbered by the vfork.  */
11182 static void
11183 #ifdef __cplusplus
11184 sparc_address_test (int arg)
11185 # else
11186 sparc_address_test (arg) int arg;
11187 #endif
11188 {
11189   static pid_t child;
11190   if (!child) {
11191     child = vfork ();
11192     if (child < 0) {
11193       perror ("vfork");
11194       _exit(2);
11195     }
11196     if (!child) {
11197       arg = getpid();
11198       write(-1, "", 0);
11199       _exit (arg);
11200     }
11201   }
11202 }
11203
11204 int
11205 main ()
11206 {
11207   pid_t parent = getpid ();
11208   pid_t child;
11209
11210   sparc_address_test (0);
11211
11212   child = vfork ();
11213
11214   if (child == 0) {
11215     /* Here is another test for sparc vfork register problems.  This
11216        test uses lots of local variables, at least as many local
11217        variables as main has allocated so far including compiler
11218        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
11219        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
11220        reuse the register of parent for one of the local variables,
11221        since it will think that parent can't possibly be used any more
11222        in this routine.  Assigning to the local variable will thus
11223        munge parent in the parent process.  */
11224     pid_t
11225       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11226       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11227     /* Convince the compiler that p..p7 are live; otherwise, it might
11228        use the same hardware register for all 8 local variables.  */
11229     if (p != p1 || p != p2 || p != p3 || p != p4
11230         || p != p5 || p != p6 || p != p7)
11231       _exit(1);
11232
11233     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11234        from child file descriptors.  If the child closes a descriptor
11235        before it execs or exits, this munges the parent's descriptor
11236        as well.  Test for this by closing stdout in the child.  */
11237     _exit(close(fileno(stdout)) != 0);
11238   } else {
11239     int status;
11240     struct stat st;
11241
11242     while (wait(&status) != child)
11243       ;
11244     exit(
11245          /* Was there some problem with vforking?  */
11246          child < 0
11247
11248          /* Did the child fail?  (This shouldn't happen.)  */
11249          || status
11250
11251          /* Did the vfork/compiler bug occur?  */
11252          || parent != getpid()
11253
11254          /* Did the file descriptor bug occur?  */
11255          || fstat(fileno(stdout), &st) != 0
11256          );
11257   }
11258 }
11259 _ACEOF
11260 rm -f conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262   (eval $ac_link) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   ac_cv_func_vfork_works=yes
11272 else
11273   echo "$as_me: program exited with status $ac_status" >&5
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ( exit $ac_status )
11278 ac_cv_func_vfork_works=no
11279 fi
11280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11281 fi
11282 fi
11283 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
11284 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
11285
11286 fi;
11287 if test "x$ac_cv_func_fork_works" = xcross; then
11288   ac_cv_func_vfork_works=$ac_cv_func_vfork
11289   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11290 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11291 fi
11292
11293 if test "x$ac_cv_func_vfork_works" = xyes; then
11294
11295 cat >>confdefs.h <<\_ACEOF
11296 #define HAVE_WORKING_VFORK 1
11297 _ACEOF
11298
11299 else
11300
11301 cat >>confdefs.h <<\_ACEOF
11302 #define vfork fork
11303 _ACEOF
11304
11305 fi
11306 if test "x$ac_cv_func_fork_works" = xyes; then
11307
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_WORKING_FORK 1
11310 _ACEOF
11311
11312 fi
11313
11314
11315
11316       if test "X$prefix" = "XNONE"; then
11317     acl_final_prefix="$ac_default_prefix"
11318   else
11319     acl_final_prefix="$prefix"
11320   fi
11321   if test "X$exec_prefix" = "XNONE"; then
11322     acl_final_exec_prefix='${prefix}'
11323   else
11324     acl_final_exec_prefix="$exec_prefix"
11325   fi
11326   acl_save_prefix="$prefix"
11327   prefix="$acl_final_prefix"
11328   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11329   prefix="$acl_save_prefix"
11330
11331
11332 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11333 if test "${with_gnu_ld+set}" = set; then
11334   withval="$with_gnu_ld"
11335   test "$withval" = no || with_gnu_ld=yes
11336 else
11337   with_gnu_ld=no
11338 fi;
11339 # Prepare PATH_SEPARATOR.
11340 # The user is always right.
11341 if test "${PATH_SEPARATOR+set}" != set; then
11342   echo "#! /bin/sh" >conf$$.sh
11343   echo  "exit 0"   >>conf$$.sh
11344   chmod +x conf$$.sh
11345   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11346     PATH_SEPARATOR=';'
11347   else
11348     PATH_SEPARATOR=:
11349   fi
11350   rm -f conf$$.sh
11351 fi
11352 ac_prog=ld
11353 if test "$GCC" = yes; then
11354   # Check if gcc -print-prog-name=ld gives a path.
11355   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11356 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
11357   case $host in
11358   *-*-mingw*)
11359     # gcc leaves a trailing carriage return which upsets mingw
11360     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11361   *)
11362     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11363   esac
11364   case $ac_prog in
11365     # Accept absolute paths.
11366     [\\/]* | [A-Za-z]:[\\/]*)
11367       re_direlt='/[^/][^/]*/\.\./'
11368       # Canonicalize the path of ld
11369       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11370       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11371         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11372       done
11373       test -z "$LD" && LD="$ac_prog"
11374       ;;
11375   "")
11376     # If it fails, then pretend we aren't using GCC.
11377     ac_prog=ld
11378     ;;
11379   *)
11380     # If it is relative, then search for the first ld in PATH.
11381     with_gnu_ld=unknown
11382     ;;
11383   esac
11384 elif test "$with_gnu_ld" = yes; then
11385   echo "$as_me:$LINENO: checking for GNU ld" >&5
11386 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11387 else
11388   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11389 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11390 fi
11391 if test "${acl_cv_path_LD+set}" = set; then
11392   echo $ECHO_N "(cached) $ECHO_C" >&6
11393 else
11394   if test -z "$LD"; then
11395   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11396   for ac_dir in $PATH; do
11397     test -z "$ac_dir" && ac_dir=.
11398     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11399       acl_cv_path_LD="$ac_dir/$ac_prog"
11400       # Check to see if the program is GNU ld.  I'd rather use --version,
11401       # but apparently some GNU ld's only accept -v.
11402       # Break only if it was the GNU/non-GNU ld that we prefer.
11403       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11404         test "$with_gnu_ld" != no && break
11405       else
11406         test "$with_gnu_ld" != yes && break
11407       fi
11408     fi
11409   done
11410   IFS="$ac_save_ifs"
11411 else
11412   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11413 fi
11414 fi
11415
11416 LD="$acl_cv_path_LD"
11417 if test -n "$LD"; then
11418   echo "$as_me:$LINENO: result: $LD" >&5
11419 echo "${ECHO_T}$LD" >&6
11420 else
11421   echo "$as_me:$LINENO: result: no" >&5
11422 echo "${ECHO_T}no" >&6
11423 fi
11424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11426    { (exit 1); exit 1; }; }
11427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11429 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11433 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11434   acl_cv_prog_gnu_ld=yes
11435 else
11436   acl_cv_prog_gnu_ld=no
11437 fi
11438 fi
11439 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11440 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
11441 with_gnu_ld=$acl_cv_prog_gnu_ld
11442
11443
11444
11445                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11446 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
11447 if test "${acl_cv_rpath+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450
11451     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11452     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11453     . ./conftest.sh
11454     rm -f ./conftest.sh
11455     acl_cv_rpath=done
11456
11457 fi
11458 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11459 echo "${ECHO_T}$acl_cv_rpath" >&6
11460   wl="$acl_cv_wl"
11461   libext="$acl_cv_libext"
11462   shlibext="$acl_cv_shlibext"
11463   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11464   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11465   hardcode_direct="$acl_cv_hardcode_direct"
11466   hardcode_minus_L="$acl_cv_hardcode_minus_L"
11467     # Check whether --enable-rpath or --disable-rpath was given.
11468 if test "${enable_rpath+set}" = set; then
11469   enableval="$enable_rpath"
11470   :
11471 else
11472   enable_rpath=yes
11473 fi;
11474
11475
11476
11477
11478
11479
11480
11481     use_additional=yes
11482
11483   acl_save_prefix="$prefix"
11484   prefix="$acl_final_prefix"
11485   acl_save_exec_prefix="$exec_prefix"
11486   exec_prefix="$acl_final_exec_prefix"
11487
11488     eval additional_includedir=\"$includedir\"
11489     eval additional_libdir=\"$libdir\"
11490
11491   exec_prefix="$acl_save_exec_prefix"
11492   prefix="$acl_save_prefix"
11493
11494
11495 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
11496 if test "${with_libiconv_prefix+set}" = set; then
11497   withval="$with_libiconv_prefix"
11498
11499     if test "X$withval" = "Xno"; then
11500       use_additional=no
11501     else
11502       if test "X$withval" = "X"; then
11503
11504   acl_save_prefix="$prefix"
11505   prefix="$acl_final_prefix"
11506   acl_save_exec_prefix="$exec_prefix"
11507   exec_prefix="$acl_final_exec_prefix"
11508
11509           eval additional_includedir=\"$includedir\"
11510           eval additional_libdir=\"$libdir\"
11511
11512   exec_prefix="$acl_save_exec_prefix"
11513   prefix="$acl_save_prefix"
11514
11515       else
11516         additional_includedir="$withval/include"
11517         additional_libdir="$withval/lib"
11518       fi
11519     fi
11520
11521 fi;
11522       LIBICONV=
11523   LTLIBICONV=
11524   INCICONV=
11525   rpathdirs=
11526   ltrpathdirs=
11527   names_already_handled=
11528   names_next_round='iconv '
11529   while test -n "$names_next_round"; do
11530     names_this_round="$names_next_round"
11531     names_next_round=
11532     for name in $names_this_round; do
11533       already_handled=
11534       for n in $names_already_handled; do
11535         if test "$n" = "$name"; then
11536           already_handled=yes
11537           break
11538         fi
11539       done
11540       if test -z "$already_handled"; then
11541         names_already_handled="$names_already_handled $name"
11542                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11543         eval value=\"\$HAVE_LIB$uppername\"
11544         if test -n "$value"; then
11545           if test "$value" = yes; then
11546             eval value=\"\$LIB$uppername\"
11547             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11548             eval value=\"\$LTLIB$uppername\"
11549             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11550           else
11551                                     :
11552           fi
11553         else
11554                               found_dir=
11555           found_la=
11556           found_so=
11557           found_a=
11558           if test $use_additional = yes; then
11559             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11560               found_dir="$additional_libdir"
11561               found_so="$additional_libdir/lib$name.$shlibext"
11562               if test -f "$additional_libdir/lib$name.la"; then
11563                 found_la="$additional_libdir/lib$name.la"
11564               fi
11565             else
11566               if test -f "$additional_libdir/lib$name.$libext"; then
11567                 found_dir="$additional_libdir"
11568                 found_a="$additional_libdir/lib$name.$libext"
11569                 if test -f "$additional_libdir/lib$name.la"; then
11570                   found_la="$additional_libdir/lib$name.la"
11571                 fi
11572               fi
11573             fi
11574           fi
11575           if test "X$found_dir" = "X"; then
11576             for x in $LDFLAGS $LTLIBICONV; do
11577
11578   acl_save_prefix="$prefix"
11579   prefix="$acl_final_prefix"
11580   acl_save_exec_prefix="$exec_prefix"
11581   exec_prefix="$acl_final_exec_prefix"
11582   eval x=\"$x\"
11583   exec_prefix="$acl_save_exec_prefix"
11584   prefix="$acl_save_prefix"
11585
11586               case "$x" in
11587                 -L*)
11588                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11589                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11590                     found_dir="$dir"
11591                     found_so="$dir/lib$name.$shlibext"
11592                     if test -f "$dir/lib$name.la"; then
11593                       found_la="$dir/lib$name.la"
11594                     fi
11595                   else
11596                     if test -f "$dir/lib$name.$libext"; then
11597                       found_dir="$dir"
11598                       found_a="$dir/lib$name.$libext"
11599                       if test -f "$dir/lib$name.la"; then
11600                         found_la="$dir/lib$name.la"
11601                       fi
11602                     fi
11603                   fi
11604                   ;;
11605               esac
11606               if test "X$found_dir" != "X"; then
11607                 break
11608               fi
11609             done
11610           fi
11611           if test "X$found_dir" != "X"; then
11612                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11613             if test "X$found_so" != "X"; then
11614                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11615                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11616               else
11617                                                                                 haveit=
11618                 for x in $ltrpathdirs; do
11619                   if test "X$x" = "X$found_dir"; then
11620                     haveit=yes
11621                     break
11622                   fi
11623                 done
11624                 if test -z "$haveit"; then
11625                   ltrpathdirs="$ltrpathdirs $found_dir"
11626                 fi
11627                                 if test "$hardcode_direct" = yes; then
11628                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11629                 else
11630                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11631                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11632                                                             haveit=
11633                     for x in $rpathdirs; do
11634                       if test "X$x" = "X$found_dir"; then
11635                         haveit=yes
11636                         break
11637                       fi
11638                     done
11639                     if test -z "$haveit"; then
11640                       rpathdirs="$rpathdirs $found_dir"
11641                     fi
11642                   else
11643                                                                                 haveit=
11644                     for x in $LDFLAGS $LIBICONV; do
11645
11646   acl_save_prefix="$prefix"
11647   prefix="$acl_final_prefix"
11648   acl_save_exec_prefix="$exec_prefix"
11649   exec_prefix="$acl_final_exec_prefix"
11650   eval x=\"$x\"
11651   exec_prefix="$acl_save_exec_prefix"
11652   prefix="$acl_save_prefix"
11653
11654                       if test "X$x" = "X-L$found_dir"; then
11655                         haveit=yes
11656                         break
11657                       fi
11658                     done
11659                     if test -z "$haveit"; then
11660                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11661                     fi
11662                     if test "$hardcode_minus_L" != no; then
11663                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11664                     else
11665                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11666                     fi
11667                   fi
11668                 fi
11669               fi
11670             else
11671               if test "X$found_a" != "X"; then
11672                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11673               else
11674                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11675               fi
11676             fi
11677                         additional_includedir=
11678             case "$found_dir" in
11679               */lib | */lib/)
11680                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11681                 additional_includedir="$basedir/include"
11682                 ;;
11683             esac
11684             if test "X$additional_includedir" != "X"; then
11685                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11686                 haveit=
11687                 if test "X$additional_includedir" = "X/usr/local/include"; then
11688                   if test -n "$GCC"; then
11689                     case $host_os in
11690                       linux*) haveit=yes;;
11691                     esac
11692                   fi
11693                 fi
11694                 if test -z "$haveit"; then
11695                   for x in $CPPFLAGS $INCICONV; do
11696
11697   acl_save_prefix="$prefix"
11698   prefix="$acl_final_prefix"
11699   acl_save_exec_prefix="$exec_prefix"
11700   exec_prefix="$acl_final_exec_prefix"
11701   eval x=\"$x\"
11702   exec_prefix="$acl_save_exec_prefix"
11703   prefix="$acl_save_prefix"
11704
11705                     if test "X$x" = "X-I$additional_includedir"; then
11706                       haveit=yes
11707                       break
11708                     fi
11709                   done
11710                   if test -z "$haveit"; then
11711                     if test -d "$additional_includedir"; then
11712                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11713                     fi
11714                   fi
11715                 fi
11716               fi
11717             fi
11718                         if test -n "$found_la"; then
11719                                                         save_libdir="$libdir"
11720               case "$found_la" in
11721                 */* | *\\*) . "$found_la" ;;
11722                 *) . "./$found_la" ;;
11723               esac
11724               libdir="$save_libdir"
11725                             for dep in $dependency_libs; do
11726                 case "$dep" in
11727                   -L*)
11728                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11729                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11730                       haveit=
11731                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11732                         if test -n "$GCC"; then
11733                           case $host_os in
11734                             linux*) haveit=yes;;
11735                           esac
11736                         fi
11737                       fi
11738                       if test -z "$haveit"; then
11739                         haveit=
11740                         for x in $LDFLAGS $LIBICONV; do
11741
11742   acl_save_prefix="$prefix"
11743   prefix="$acl_final_prefix"
11744   acl_save_exec_prefix="$exec_prefix"
11745   exec_prefix="$acl_final_exec_prefix"
11746   eval x=\"$x\"
11747   exec_prefix="$acl_save_exec_prefix"
11748   prefix="$acl_save_prefix"
11749
11750                           if test "X$x" = "X-L$additional_libdir"; then
11751                             haveit=yes
11752                             break
11753                           fi
11754                         done
11755                         if test -z "$haveit"; then
11756                           if test -d "$additional_libdir"; then
11757                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11758                           fi
11759                         fi
11760                         haveit=
11761                         for x in $LDFLAGS $LTLIBICONV; do
11762
11763   acl_save_prefix="$prefix"
11764   prefix="$acl_final_prefix"
11765   acl_save_exec_prefix="$exec_prefix"
11766   exec_prefix="$acl_final_exec_prefix"
11767   eval x=\"$x\"
11768   exec_prefix="$acl_save_exec_prefix"
11769   prefix="$acl_save_prefix"
11770
11771                           if test "X$x" = "X-L$additional_libdir"; then
11772                             haveit=yes
11773                             break
11774                           fi
11775                         done
11776                         if test -z "$haveit"; then
11777                           if test -d "$additional_libdir"; then
11778                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11779                           fi
11780                         fi
11781                       fi
11782                     fi
11783                     ;;
11784                   -R*)
11785                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11786                     if test "$enable_rpath" != no; then
11787                                                                   haveit=
11788                       for x in $rpathdirs; do
11789                         if test "X$x" = "X$dir"; then
11790                           haveit=yes
11791                           break
11792                         fi
11793                       done
11794                       if test -z "$haveit"; then
11795                         rpathdirs="$rpathdirs $dir"
11796                       fi
11797                                                                   haveit=
11798                       for x in $ltrpathdirs; do
11799                         if test "X$x" = "X$dir"; then
11800                           haveit=yes
11801                           break
11802                         fi
11803                       done
11804                       if test -z "$haveit"; then
11805                         ltrpathdirs="$ltrpathdirs $dir"
11806                       fi
11807                     fi
11808                     ;;
11809                   -l*)
11810                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11811                     ;;
11812                   *.la)
11813                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11814                     ;;
11815                   *)
11816                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11817                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11818                     ;;
11819                 esac
11820               done
11821             fi
11822           else
11823                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11824             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11825           fi
11826         fi
11827       fi
11828     done
11829   done
11830   if test "X$rpathdirs" != "X"; then
11831     if test -n "$hardcode_libdir_separator"; then
11832                         alldirs=
11833       for found_dir in $rpathdirs; do
11834         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11835       done
11836             acl_save_libdir="$libdir"
11837       libdir="$alldirs"
11838       eval flag=\"$hardcode_libdir_flag_spec\"
11839       libdir="$acl_save_libdir"
11840       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11841     else
11842             for found_dir in $rpathdirs; do
11843         acl_save_libdir="$libdir"
11844         libdir="$found_dir"
11845         eval flag=\"$hardcode_libdir_flag_spec\"
11846         libdir="$acl_save_libdir"
11847         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11848       done
11849     fi
11850   fi
11851   if test "X$ltrpathdirs" != "X"; then
11852             for found_dir in $ltrpathdirs; do
11853       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11854     done
11855   fi
11856
11857
11858
11859
11860
11861
11862
11863           am_save_CPPFLAGS="$CPPFLAGS"
11864
11865   for element in $INCICONV; do
11866     haveit=
11867     for x in $CPPFLAGS; do
11868
11869   acl_save_prefix="$prefix"
11870   prefix="$acl_final_prefix"
11871   acl_save_exec_prefix="$exec_prefix"
11872   exec_prefix="$acl_final_exec_prefix"
11873   eval x=\"$x\"
11874   exec_prefix="$acl_save_exec_prefix"
11875   prefix="$acl_save_prefix"
11876
11877       if test "X$x" = "X$element"; then
11878         haveit=yes
11879         break
11880       fi
11881     done
11882     if test -z "$haveit"; then
11883       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11884     fi
11885   done
11886
11887
11888   echo "$as_me:$LINENO: checking for iconv" >&5
11889 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11890 if test "${am_cv_func_iconv+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893
11894     am_cv_func_iconv="no, consider installing GNU libiconv"
11895     am_cv_lib_iconv=no
11896     cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 #include <stdlib.h>
11903 #include <iconv.h>
11904 int
11905 main ()
11906 {
11907 iconv_t cd = iconv_open("","");
11908        iconv(cd,NULL,NULL,NULL,NULL);
11909        iconv_close(cd);
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916   (eval $ac_link) 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } &&
11923          { ac_try='test -z "$ac_c_werror_flag"
11924                          || test ! -s conftest.err'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; } &&
11930          { ac_try='test -s conftest$ac_exeext'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; }; then
11936   am_cv_func_iconv=yes
11937 else
11938   echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 fi
11942 rm -f conftest.err conftest.$ac_objext \
11943       conftest$ac_exeext conftest.$ac_ext
11944     if test "$am_cv_func_iconv" != yes; then
11945       am_save_LIBS="$LIBS"
11946       LIBS="$LIBS $LIBICONV"
11947       cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 #include <stdlib.h>
11954 #include <iconv.h>
11955 int
11956 main ()
11957 {
11958 iconv_t cd = iconv_open("","");
11959          iconv(cd,NULL,NULL,NULL,NULL);
11960          iconv_close(cd);
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967   (eval $ac_link) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"
11975                          || test ! -s conftest.err'
11976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977   (eval $ac_try) 2>&5
11978   ac_status=$?
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); }; } &&
11981          { ac_try='test -s conftest$ac_exeext'
11982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983   (eval $ac_try) 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; }; then
11987   am_cv_lib_iconv=yes
11988         am_cv_func_iconv=yes
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 fi
11994 rm -f conftest.err conftest.$ac_objext \
11995       conftest$ac_exeext conftest.$ac_ext
11996       LIBS="$am_save_LIBS"
11997     fi
11998
11999 fi
12000 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12001 echo "${ECHO_T}$am_cv_func_iconv" >&6
12002   if test "$am_cv_func_iconv" = yes; then
12003
12004 cat >>confdefs.h <<\_ACEOF
12005 #define HAVE_ICONV 1
12006 _ACEOF
12007
12008   fi
12009   if test "$am_cv_lib_iconv" = yes; then
12010     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12011 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12012     echo "$as_me:$LINENO: result: $LIBICONV" >&5
12013 echo "${ECHO_T}$LIBICONV" >&6
12014   else
12015             CPPFLAGS="$am_save_CPPFLAGS"
12016     LIBICONV=
12017     LTLIBICONV=
12018   fi
12019
12020
12021
12022   if test "$am_cv_func_iconv" = yes; then
12023     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12024 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12025     if test "${am_cv_proto_iconv+set}" = set; then
12026   echo $ECHO_N "(cached) $ECHO_C" >&6
12027 else
12028
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
12036 #include <stdlib.h>
12037 #include <iconv.h>
12038 extern
12039 #ifdef __cplusplus
12040 "C"
12041 #endif
12042 #if defined(__STDC__) || defined(__cplusplus)
12043 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12044 #else
12045 size_t iconv();
12046 #endif
12047
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12058   (eval $ac_compile) 2>conftest.er1
12059   ac_status=$?
12060   grep -v '^ *+' conftest.er1 >conftest.err
12061   rm -f conftest.er1
12062   cat conftest.err >&5
12063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064   (exit $ac_status); } &&
12065          { ac_try='test -z "$ac_c_werror_flag"
12066                          || test ! -s conftest.err'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074   (eval $ac_try) 2>&5
12075   ac_status=$?
12076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077   (exit $ac_status); }; }; then
12078   am_cv_proto_iconv_arg1=""
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 am_cv_proto_iconv_arg1="const"
12084 fi
12085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12086       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);"
12087 fi
12088
12089     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12090     echo "$as_me:$LINENO: result: ${ac_t:-
12091          }$am_cv_proto_iconv" >&5
12092 echo "${ECHO_T}${ac_t:-
12093          }$am_cv_proto_iconv" >&6
12094
12095 cat >>confdefs.h <<_ACEOF
12096 #define ICONV_CONST $am_cv_proto_iconv_arg1
12097 _ACEOF
12098
12099   fi
12100
12101 # Until we have in-tree GNU iconv:
12102 LIBICONV_DEP=
12103
12104
12105
12106   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12107 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12108 if test "${am_cv_val_LC_MESSAGES+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 #include <locale.h>
12118 int
12119 main ()
12120 {
12121 return LC_MESSAGES
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_c_werror_flag"
12136                          || test ! -s conftest.err'
12137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138   (eval $ac_try) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   am_cv_val_LC_MESSAGES=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 am_cv_val_LC_MESSAGES=no
12154 fi
12155 rm -f conftest.err conftest.$ac_objext \
12156       conftest$ac_exeext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12159 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12160   if test $am_cv_val_LC_MESSAGES = yes; then
12161
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_LC_MESSAGES 1
12164 _ACEOF
12165
12166   fi
12167
12168
12169
12170   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12171 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12172 if test "${am_cv_langinfo_codeset+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h.  */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h.  */
12181 #include <langinfo.h>
12182 int
12183 main ()
12184 {
12185 char* cs = nl_langinfo(CODESET);
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192   (eval $ac_link) 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } &&
12199          { ac_try='test -z "$ac_c_werror_flag"
12200                          || test ! -s conftest.err'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   am_cv_langinfo_codeset=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 am_cv_langinfo_codeset=no
12218 fi
12219 rm -f conftest.err conftest.$ac_objext \
12220       conftest$ac_exeext conftest.$ac_ext
12221
12222 fi
12223 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12224 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12225   if test $am_cv_langinfo_codeset = yes; then
12226
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_LANGINFO_CODESET 1
12229 _ACEOF
12230
12231   fi
12232
12233
12234 # We will need to find libiberty.h and ansidecl.h
12235 saved_CFLAGS="$CFLAGS"
12236 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
12277         strsignal strstr strverscmp \
12278         errno snprintf vsnprintf vasprintf malloc realloc calloc \
12279         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
12280 do
12281   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12282 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12283 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12284 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293 #undef $ac_tr_decl
12294 #define $ac_tr_decl 1
12295
12296 #include "ansidecl.h"
12297 #include "system.h"
12298
12299 int
12300 main ()
12301 {
12302 #ifndef $ac_func
12303 char *(*pfn) = (char *(*)) $ac_func ;
12304 #endif
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311   (eval $ac_compile) 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag"
12319                          || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest.$ac_objext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   eval "gcc_cv_have_decl_$ac_func=yes"
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 eval "gcc_cv_have_decl_$ac_func=no"
12337 fi
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 fi
12340
12341 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12342   echo "$as_me:$LINENO: result: yes" >&5
12343 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12344 #define $ac_tr_decl 1
12345 _ACEOF
12346
12347 else
12348   echo "$as_me:$LINENO: result: no" >&5
12349 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12350 #define $ac_tr_decl 0
12351 _ACEOF
12352
12353 fi
12354
12355 done
12356
12357
12358
12359
12360
12361 for ac_func in getrlimit setrlimit getrusage
12362 do
12363   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 #undef $ac_tr_decl
12376 #define $ac_tr_decl 1
12377
12378 #include "ansidecl.h"
12379 #include "system.h"
12380 #ifdef HAVE_SYS_RESOURCE_H
12381 #include <sys/resource.h>
12382 #endif
12383
12384
12385 int
12386 main ()
12387 {
12388 #ifndef $ac_func
12389 char *(*pfn) = (char *(*)) $ac_func ;
12390 #endif
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397   (eval $ac_compile) 2>conftest.er1
12398   ac_status=$?
12399   grep -v '^ *+' conftest.er1 >conftest.err
12400   rm -f conftest.er1
12401   cat conftest.err >&5
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -z "$ac_c_werror_flag"
12405                          || test ! -s conftest.err'
12406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407   (eval $ac_try) 2>&5
12408   ac_status=$?
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); }; } &&
12411          { ac_try='test -s conftest.$ac_objext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   eval "gcc_cv_have_decl_$ac_func=yes"
12418 else
12419   echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12421
12422 eval "gcc_cv_have_decl_$ac_func=no"
12423 fi
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12425 fi
12426
12427 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12428   echo "$as_me:$LINENO: result: yes" >&5
12429 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12430 #define $ac_tr_decl 1
12431 _ACEOF
12432
12433 else
12434   echo "$as_me:$LINENO: result: no" >&5
12435 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12436 #define $ac_tr_decl 0
12437 _ACEOF
12438
12439 fi
12440
12441 done
12442
12443
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450
12451 #include "ansidecl.h"
12452 #include "system.h"
12453 #ifdef HAVE_SYS_RESOURCE_H
12454 #include <sys/resource.h>
12455 #endif
12456
12457 int
12458 main ()
12459 {
12460 rlim_t l = 0;
12461   ;
12462   return 0;
12463 }
12464 _ACEOF
12465 rm -f conftest.$ac_objext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467   (eval $ac_compile) 2>conftest.er1
12468   ac_status=$?
12469   grep -v '^ *+' conftest.er1 >conftest.err
12470   rm -f conftest.er1
12471   cat conftest.err >&5
12472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473   (exit $ac_status); } &&
12474          { ac_try='test -z "$ac_c_werror_flag"
12475                          || test ! -s conftest.err'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; } &&
12481          { ac_try='test -s conftest.$ac_objext'
12482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483   (eval $ac_try) 2>&5
12484   ac_status=$?
12485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486   (exit $ac_status); }; }; then
12487   :
12488 else
12489   echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492
12493 cat >>confdefs.h <<\_ACEOF
12494 #define rlim_t long
12495 _ACEOF
12496
12497 fi
12498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499
12500 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12501 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
12502 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
12503 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12504
12505 for ac_func in ldgetname
12506 do
12507   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12508 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12509 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12510 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12511   echo $ECHO_N "(cached) $ECHO_C" >&6
12512 else
12513   cat >conftest.$ac_ext <<_ACEOF
12514 /* confdefs.h.  */
12515 _ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h.  */
12519 #undef $ac_tr_decl
12520 #define $ac_tr_decl 1
12521
12522 #include "ansidecl.h"
12523 #include "system.h"
12524 #ifdef HAVE_LDFCN_H
12525 #undef FREAD
12526 #undef FWRITE
12527 #include <ldfcn.h>
12528 #endif
12529
12530
12531 int
12532 main ()
12533 {
12534 #ifndef $ac_func
12535 char *(*pfn) = (char *(*)) $ac_func ;
12536 #endif
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"
12551                          || test ! -s conftest.err'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; } &&
12557          { ac_try='test -s conftest.$ac_objext'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   eval "gcc_cv_have_decl_$ac_func=yes"
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 eval "gcc_cv_have_decl_$ac_func=no"
12569 fi
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 fi
12572
12573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12574   echo "$as_me:$LINENO: result: yes" >&5
12575 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12576 #define $ac_tr_decl 1
12577 _ACEOF
12578
12579 else
12580   echo "$as_me:$LINENO: result: no" >&5
12581 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12582 #define $ac_tr_decl 0
12583 _ACEOF
12584
12585 fi
12586
12587 done
12588
12589
12590
12591 for ac_func in times
12592 do
12593   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12594 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12595 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12596 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605 #undef $ac_tr_decl
12606 #define $ac_tr_decl 1
12607
12608 #include "ansidecl.h"
12609 #include "system.h"
12610 #ifdef HAVE_SYS_TIMES_H
12611 #include <sys/times.h>
12612 #endif
12613
12614
12615 int
12616 main ()
12617 {
12618 #ifndef $ac_func
12619 char *(*pfn) = (char *(*)) $ac_func ;
12620 #endif
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627   (eval $ac_compile) 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag"
12635                          || test ! -s conftest.err'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest.$ac_objext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   eval "gcc_cv_have_decl_$ac_func=yes"
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 eval "gcc_cv_have_decl_$ac_func=no"
12653 fi
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 fi
12656
12657 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12658   echo "$as_me:$LINENO: result: yes" >&5
12659 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12660 #define $ac_tr_decl 1
12661 _ACEOF
12662
12663 else
12664   echo "$as_me:$LINENO: result: no" >&5
12665 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12666 #define $ac_tr_decl 0
12667 _ACEOF
12668
12669 fi
12670
12671 done
12672
12673
12674
12675 for ac_func in sigaltstack
12676 do
12677   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12678 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
12679 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
12680 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 #undef $ac_tr_decl
12690 #define $ac_tr_decl 1
12691
12692 #include "ansidecl.h"
12693 #include "system.h"
12694 #include <signal.h>
12695
12696
12697 int
12698 main ()
12699 {
12700 #ifndef $ac_func
12701 char *(*pfn) = (char *(*)) $ac_func ;
12702 #endif
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709   (eval $ac_compile) 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag"
12717                          || test ! -s conftest.err'
12718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719   (eval $ac_try) 2>&5
12720   ac_status=$?
12721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722   (exit $ac_status); }; } &&
12723          { ac_try='test -s conftest.$ac_objext'
12724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725   (eval $ac_try) 2>&5
12726   ac_status=$?
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); }; }; then
12729   eval "gcc_cv_have_decl_$ac_func=yes"
12730 else
12731   echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12733
12734 eval "gcc_cv_have_decl_$ac_func=no"
12735 fi
12736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738
12739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12740   echo "$as_me:$LINENO: result: yes" >&5
12741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
12742 #define $ac_tr_decl 1
12743 _ACEOF
12744
12745 else
12746   echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
12748 #define $ac_tr_decl 0
12749 _ACEOF
12750
12751 fi
12752
12753 done
12754
12755
12756 # More time-related stuff.
12757 echo "$as_me:$LINENO: checking for struct tms" >&5
12758 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
12759 if test "${ac_cv_struct_tms+set}" = set; then
12760   echo $ECHO_N "(cached) $ECHO_C" >&6
12761 else
12762
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h.  */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h.  */
12769
12770 #include "ansidecl.h"
12771 #include "system.h"
12772 #ifdef HAVE_SYS_TIMES_H
12773 #include <sys/times.h>
12774 #endif
12775
12776 int
12777 main ()
12778 {
12779 struct tms tms;
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786   (eval $ac_compile) 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -z "$ac_c_werror_flag"
12794                          || test ! -s conftest.err'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest.$ac_objext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_cv_struct_tms=yes
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 ac_cv_struct_tms=no
12812 fi
12813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
12816 echo "${ECHO_T}$ac_cv_struct_tms" >&6
12817 if test $ac_cv_struct_tms = yes; then
12818
12819 cat >>confdefs.h <<\_ACEOF
12820 #define HAVE_STRUCT_TMS 1
12821 _ACEOF
12822
12823 fi
12824
12825 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12826 # revisit after autoconf 2.50.
12827 echo "$as_me:$LINENO: checking for clock_t" >&5
12828 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
12829 if test "${gcc_cv_type_clock_t+set}" = set; then
12830   echo $ECHO_N "(cached) $ECHO_C" >&6
12831 else
12832
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839
12840 #include "ansidecl.h"
12841 #include "system.h"
12842
12843 int
12844 main ()
12845 {
12846 clock_t x;
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12853   (eval $ac_compile) 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -z "$ac_c_werror_flag"
12861                          || test ! -s conftest.err'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; } &&
12867          { ac_try='test -s conftest.$ac_objext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   gcc_cv_type_clock_t=yes
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 gcc_cv_type_clock_t=no
12879 fi
12880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12881 fi
12882 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12883 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12884 if test $gcc_cv_type_clock_t = yes; then
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_CLOCK_T 1
12888 _ACEOF
12889
12890 fi
12891
12892 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12893 CFLAGS="$saved_CFLAGS"
12894
12895 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12896 if test "${enable_initfini_array+set}" = set; then
12897   enableval="$enable_initfini_array"
12898
12899 else
12900
12901 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12902 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12903 if test "${gcc_cv_initfini_array+set}" = set; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906     if test "$cross_compiling" = yes; then
12907   gcc_cv_initfini_array=no
12908 else
12909   cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915
12916 static int x = -1;
12917 int main (void) { return x; }
12918 int foo (void) { x = 0; }
12919 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12920 _ACEOF
12921 rm -f conftest$ac_exeext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923   (eval $ac_link) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928   (eval $ac_try) 2>&5
12929   ac_status=$?
12930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931   (exit $ac_status); }; }; then
12932   gcc_cv_initfini_array=yes
12933 else
12934   echo "$as_me: program exited with status $ac_status" >&5
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 ( exit $ac_status )
12939 gcc_cv_initfini_array=no
12940 fi
12941 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 fi
12944 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12945 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12946   enable_initfini_array=$gcc_cv_initfini_array
12947
12948 fi;
12949 if test $enable_initfini_array = yes; then
12950
12951 cat >>confdefs.h <<\_ACEOF
12952 #define HAVE_INITFINI_ARRAY 1
12953 _ACEOF
12954
12955 fi
12956
12957 # mkdir takes a single argument on some systems.
12958 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12959 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12960 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h.  */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h.  */
12969
12970 #include <sys/types.h>
12971 #ifdef HAVE_SYS_STAT_H
12972 # include <sys/stat.h>
12973 #endif
12974 #ifdef HAVE_UNISTD_H
12975 # include <unistd.h>
12976 #endif
12977 #ifdef HAVE_DIRECT_H
12978 # include <direct.h>
12979 #endif
12980 int
12981 main ()
12982 {
12983 mkdir ("foo", 0);
12984   ;
12985   return 0;
12986 }
12987 _ACEOF
12988 rm -f conftest.$ac_objext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990   (eval $ac_compile) 2>conftest.er1
12991   ac_status=$?
12992   grep -v '^ *+' conftest.er1 >conftest.err
12993   rm -f conftest.er1
12994   cat conftest.err >&5
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); } &&
12997          { ac_try='test -z "$ac_c_werror_flag"
12998                          || test ! -s conftest.err'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; } &&
13004          { ac_try='test -s conftest.$ac_objext'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   gcc_cv_mkdir_takes_one_arg=no
13011 else
13012   echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13014
13015 gcc_cv_mkdir_takes_one_arg=yes
13016 fi
13017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13018 fi
13019 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
13020 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
13021 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
13022
13023 cat >>confdefs.h <<\_ACEOF
13024 #define MKDIR_TAKES_ONE_ARG 1
13025 _ACEOF
13026
13027 fi
13028
13029
13030 # File extensions
13031 manext='.1'
13032 objext='.o'
13033
13034
13035
13036 # With Setjmp/Longjmp based exception handling.
13037 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13038 if test "${enable_sjlj_exceptions+set}" = set; then
13039   enableval="$enable_sjlj_exceptions"
13040   case $target in
13041   *-*-hpux10*)
13042     if test $enableval != yes; then
13043       { echo "$as_me:$LINENO: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
13044 echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
13045       enableval=yes
13046     fi
13047     ;;
13048 esac
13049 force_sjlj_exceptions=yes
13050 else
13051   case $target in
13052   *-*-hpux10*)
13053     force_sjlj_exceptions=yes
13054     enableval=yes
13055     ;;
13056   *)
13057     force_sjlj_exceptions=no
13058     ;;
13059 esac
13060 fi;
13061 if test $force_sjlj_exceptions = yes; then
13062   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
13066 _ACEOF
13067
13068 fi
13069
13070 # For platforms with the unwind ABI which includes an unwind library,
13071 # libunwind, we can choose to use the system libunwind.
13072
13073 # Check whether --with-system-libunwind or --without-system-libunwind was given.
13074 if test "${with_system_libunwind+set}" = set; then
13075   withval="$with_system_libunwind"
13076
13077 fi;
13078
13079 # config.gcc also contains tests of with_system_libunwind.
13080 if test x$with_system_libunwind = xyes; then
13081
13082 cat >>confdefs.h <<\_ACEOF
13083 #define HAVE_GETIPINFO 1
13084 _ACEOF
13085
13086 fi
13087
13088 # --------------------------------------------------------
13089 # Build, host, and target specific configuration fragments
13090 # --------------------------------------------------------
13091
13092 # Collect build-machine-specific information.
13093 . ${srcdir}/config.build
13094
13095 # Collect host-machine-specific information.
13096 . ${srcdir}/config.host
13097
13098 target_gtfiles=
13099
13100 # Collect target-machine-specific information.
13101 . ${srcdir}/config.gcc
13102
13103 extra_objs="${host_extra_objs} ${extra_objs}"
13104 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
13105
13106 # Default the target-machine variables that were not explicitly set.
13107 if test x"$tm_file" = x
13108 then tm_file=$cpu_type/$cpu_type.h; fi
13109
13110 if test x"$extra_headers" = x
13111 then extra_headers=; fi
13112
13113 if test x$md_file = x
13114 then md_file=$cpu_type/$cpu_type.md; fi
13115
13116 if test x$out_file = x
13117 then out_file=$cpu_type/$cpu_type.c; fi
13118
13119 if test x"$tmake_file" = x
13120 then tmake_file=$cpu_type/t-$cpu_type
13121 fi
13122
13123 if test x"$dwarf2" = xyes
13124 then tm_file="$tm_file tm-dwarf2.h"
13125 fi
13126
13127 # Say what files are being used for the output code and MD file.
13128 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
13129 echo "Using \`$srcdir/config/$md_file' as machine description file."
13130
13131 # If any of the xm_file variables contain nonexistent files, warn
13132 # about them and drop them.
13133
13134 bx=
13135 for x in $build_xm_file; do
13136   if    test -f $srcdir/config/$x
13137   then      bx="$bx $x"
13138   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13139 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13140   fi
13141 done
13142 build_xm_file="$bx"
13143
13144 hx=
13145 for x in $host_xm_file; do
13146   if    test -f $srcdir/config/$x
13147   then      hx="$hx $x"
13148   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13149 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13150   fi
13151 done
13152 host_xm_file="$hx"
13153
13154 tx=
13155 for x in $xm_file; do
13156   if    test -f $srcdir/config/$x
13157   then      tx="$tx $x"
13158   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
13159 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
13160   fi
13161 done
13162 xm_file="$tx"
13163
13164 count=a
13165 for f in $tm_file; do
13166         count=${count}x
13167 done
13168 if test $count = ax; then
13169         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
13170 else
13171         echo "Using the following target machine macro files:"
13172         for f in $tm_file; do
13173                 echo "  $srcdir/config/$f"
13174         done
13175 fi
13176
13177 if test x$need_64bit_hwint = xyes; then
13178
13179 cat >>confdefs.h <<\_ACEOF
13180 #define NEED_64BIT_HOST_WIDE_INT 1
13181 _ACEOF
13182
13183 fi
13184
13185 if test x$use_long_long_for_widest_fast_int = xyes; then
13186
13187 cat >>confdefs.h <<\_ACEOF
13188 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
13189 _ACEOF
13190
13191 fi
13192
13193 count=a
13194 for f in $host_xm_file; do
13195         count=${count}x
13196 done
13197 if test $count = a; then
13198         :
13199 elif test $count = ax; then
13200         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
13201 else
13202         echo "Using the following host machine macro files:"
13203         for f in $host_xm_file; do
13204                 echo "  $srcdir/config/$f"
13205         done
13206 fi
13207 echo "Using ${out_host_hook_obj} for host machine hooks."
13208
13209 if test "$host_xm_file" != "$build_xm_file"; then
13210         count=a
13211         for f in $build_xm_file; do
13212                 count=${count}x
13213         done
13214         if test $count = a; then
13215                 :
13216         elif test $count = ax; then
13217                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
13218         else
13219                 echo "Using the following build machine macro files:"
13220                 for f in $build_xm_file; do
13221                         echo "  $srcdir/config/$f"
13222                 done
13223         fi
13224 fi
13225
13226 case ${host} in
13227   powerpc*-*-darwin*)
13228     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
13229 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
13230 if test "${gcc_cv_mcontext_underscores+set}" = set; then
13231   echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233   cat >conftest.$ac_ext <<_ACEOF
13234
13235 #include <sys/cdefs.h>
13236 #include <sys/signal.h>
13237 #include <ucontext.h>
13238 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
13239
13240 _ACEOF
13241 rm -f conftest.$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243   (eval $ac_compile) 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -z "$ac_c_werror_flag"
13251                          || test ! -s conftest.err'
13252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253   (eval $ac_try) 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; } &&
13257          { ac_try='test -s conftest.$ac_objext'
13258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259   (eval $ac_try) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; }; then
13263   gcc_cv_mcontext_underscores=no
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 gcc_cv_mcontext_underscores=yes
13269 fi
13270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13271 fi
13272 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
13273 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
13274       if test $gcc_cv_mcontext_underscores = yes; then
13275
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAS_MCONTEXT_T_UNDERSCORES
13278 _ACEOF
13279
13280       fi
13281     ;;
13282 esac
13283
13284 # ---------
13285 # Threading
13286 # ---------
13287
13288 # Check if a valid thread package
13289 case ${enable_threads} in
13290   "" | no)
13291     # No threads
13292     target_thread_file='single'
13293     ;;
13294   yes)
13295     # default
13296     target_thread_file='single'
13297     ;;
13298   aix | dce | gnat | irix | posix | posix95 | rtems | \
13299   single | solaris | vxworks | win32 | mipssde)
13300     target_thread_file=${enable_threads}
13301     ;;
13302   *)
13303     echo "${enable_threads} is an unknown thread package" 1>&2
13304     exit 1
13305     ;;
13306 esac
13307
13308 if test x${thread_file} = x; then
13309   # No thread file set by target-specific clauses in config.gcc,
13310   # so use file chosen by default logic above
13311   thread_file=${target_thread_file}
13312 fi
13313
13314 # Make gthr-default.h if we have a thread file.
13315 gthread_flags=
13316 if test $thread_file != single; then
13317   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
13318   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
13319     rm -f gthr-default.h-t
13320   else
13321     mv -f gthr-default.h-t gthr-default.h
13322   fi
13323   gthread_flags=-DHAVE_GTHR_DEFAULT
13324 fi
13325
13326
13327 # --------
13328 # UNSORTED
13329 # --------
13330
13331 use_cxa_atexit=no
13332 if test x$enable___cxa_atexit = xyes || \
13333    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
13334   if test x$host = x$target; then
13335     case $host in
13336       # mingw32 doesn't have __cxa_atexit but uses atexit registration
13337       # keyed to flag_use_cxa_atexit
13338       *-*-mingw32*)
13339         use_cxa_atexit=yes
13340         ;;
13341       *)
13342         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
13343 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
13344 if test "${ac_cv_func___cxa_atexit+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h.  */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h.  */
13353 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
13354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13355 #define __cxa_atexit innocuous___cxa_atexit
13356
13357 /* System header to define __stub macros and hopefully few prototypes,
13358     which can conflict with char __cxa_atexit (); below.
13359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13360     <limits.h> exists even on freestanding compilers.  */
13361
13362 #ifdef __STDC__
13363 # include <limits.h>
13364 #else
13365 # include <assert.h>
13366 #endif
13367
13368 #undef __cxa_atexit
13369
13370 /* Override any gcc2 internal prototype to avoid an error.  */
13371 #ifdef __cplusplus
13372 extern "C"
13373 {
13374 #endif
13375 /* We use char because int might match the return type of a gcc2
13376    builtin and then its argument prototype would still apply.  */
13377 char __cxa_atexit ();
13378 /* The GNU C library defines this for functions which it implements
13379     to always fail with ENOSYS.  Some functions are actually named
13380     something starting with __ and the normal name is an alias.  */
13381 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
13382 choke me
13383 #else
13384 char (*f) () = __cxa_atexit;
13385 #endif
13386 #ifdef __cplusplus
13387 }
13388 #endif
13389
13390 int
13391 main ()
13392 {
13393 return f != __cxa_atexit;
13394   ;
13395   return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext conftest$ac_exeext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400   (eval $ac_link) 2>conftest.er1
13401   ac_status=$?
13402   grep -v '^ *+' conftest.er1 >conftest.err
13403   rm -f conftest.er1
13404   cat conftest.err >&5
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); } &&
13407          { ac_try='test -z "$ac_c_werror_flag"
13408                          || test ! -s conftest.err'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; } &&
13414          { ac_try='test -s conftest$ac_exeext'
13415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416   (eval $ac_try) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; }; then
13420   ac_cv_func___cxa_atexit=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_cv_func___cxa_atexit=no
13426 fi
13427 rm -f conftest.err conftest.$ac_objext \
13428       conftest$ac_exeext conftest.$ac_ext
13429 fi
13430 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
13431 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
13432 if test $ac_cv_func___cxa_atexit = yes; then
13433   use_cxa_atexit=yes
13434 else
13435   echo "__cxa_atexit can't be enabled on this target"
13436 fi
13437
13438         ;;
13439     esac
13440   else
13441     # We can't check for __cxa_atexit when building a cross, so assume
13442     # it is available
13443     use_cxa_atexit=yes
13444   fi
13445   if test x$use_cxa_atexit = xyes; then
13446
13447 cat >>confdefs.h <<\_ACEOF
13448 #define DEFAULT_USE_CXA_ATEXIT 2
13449 _ACEOF
13450
13451   fi
13452 fi
13453
13454 use_getipinfo=yes
13455 if test x$with_system_libunwind = xyes; then
13456    if test x$host = x$target; then
13457      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
13458 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
13459 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462   ac_func_search_save_LIBS=$LIBS
13463 ac_cv_search__Unwind_GetIPInfo=no
13464 cat >conftest.$ac_ext <<_ACEOF
13465 /* confdefs.h.  */
13466 _ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h.  */
13470
13471 /* Override any gcc2 internal prototype to avoid an error.  */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 /* We use char because int might match the return type of a gcc2
13476    builtin and then its argument prototype would still apply.  */
13477 char _Unwind_GetIPInfo ();
13478 int
13479 main ()
13480 {
13481 _Unwind_GetIPInfo ();
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13488   (eval $ac_link) 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -z "$ac_c_werror_flag"
13496                          || test ! -s conftest.err'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest$ac_exeext'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; }; then
13508   ac_cv_search__Unwind_GetIPInfo="none required"
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 fi
13514 rm -f conftest.err conftest.$ac_objext \
13515       conftest$ac_exeext conftest.$ac_ext
13516 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
13517   for ac_lib in unwind; do
13518     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13519     cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525
13526 /* Override any gcc2 internal prototype to avoid an error.  */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 /* We use char because int might match the return type of a gcc2
13531    builtin and then its argument prototype would still apply.  */
13532 char _Unwind_GetIPInfo ();
13533 int
13534 main ()
13535 {
13536 _Unwind_GetIPInfo ();
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543   (eval $ac_link) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest$ac_exeext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
13564 break
13565 else
13566   echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 fi
13570 rm -f conftest.err conftest.$ac_objext \
13571       conftest$ac_exeext conftest.$ac_ext
13572   done
13573 fi
13574 LIBS=$ac_func_search_save_LIBS
13575 fi
13576 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
13577 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
13578 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
13579   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
13580
13581 else
13582   use_getipinfo=no
13583 fi
13584
13585    fi
13586 fi
13587
13588 if test x$use_getipinfo = xyes; then
13589
13590 cat >>confdefs.h <<\_ACEOF
13591 #define HAVE_GETIPINFO 1
13592 _ACEOF
13593
13594 else
13595    echo "The system unwind library does not support _Unwind_GetIPInfo."
13596 fi
13597
13598 # Look for a file containing extra machine modes.
13599 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
13600   extra_modes_file='$(srcdir)'/config/${extra_modes}
13601
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define EXTRA_MODES_FILE "config/$extra_modes"
13605 _ACEOF
13606
13607 fi
13608
13609 # Convert extra_options into a form suitable for Makefile use.
13610 extra_opt_files=
13611 for f in $extra_options; do
13612   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
13613 done
13614
13615
13616 # auto-host.h is the file containing items generated by autoconf and is
13617 # the first file included by config.h.
13618 # If host=build, it is correct to have bconfig include auto-host.h
13619 # as well.  If host!=build, we are in error and need to do more
13620 # work to find out the build config parameters.
13621 if test x$host = x$build
13622 then
13623         build_auto=auto-host.h
13624 else
13625         # We create a subdir, then run autoconf in the subdir.
13626         # To prevent recursion we set host and build for the new
13627         # invocation of configure to the build for this invocation
13628         # of configure.
13629         tempdir=build.$$
13630         rm -rf $tempdir
13631         mkdir $tempdir
13632         cd $tempdir
13633         case ${srcdir} in
13634         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
13635         *) realsrcdir=../${srcdir};;
13636         esac
13637         saved_CFLAGS="${CFLAGS}"
13638         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13639         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13640         ${realsrcdir}/configure \
13641                 --enable-languages=${enable_languages-all} \
13642                 --target=$target_alias --host=$build_alias --build=$build_alias
13643         CFLAGS="${saved_CFLAGS}"
13644
13645         # We just finished tests for the build machine, so rename
13646         # the file auto-build.h in the gcc directory.
13647         mv auto-host.h ../auto-build.h
13648         cd ..
13649         rm -rf $tempdir
13650         build_auto=auto-build.h
13651 fi
13652
13653
13654 tm_file="${tm_file} defaults.h"
13655 tm_p_file="${tm_p_file} tm-preds.h"
13656 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13657 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13658 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13659 # put this back in temporarily.
13660 xm_file="auto-host.h ansidecl.h ${xm_file}"
13661
13662 # --------
13663 # UNSORTED
13664 # --------
13665
13666 # Compile in configure arguments.
13667 if test -f configargs.h ; then
13668         # Being re-configured.
13669         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13670         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13671 else
13672         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13673 fi
13674
13675 # Double all backslashes and backslash all quotes to turn
13676 # gcc_config_arguments into a C string.
13677 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13678 $gcc_config_arguments
13679 EOF
13680 gcc_config_arguments_str=`cat conftest.out`
13681 rm -f conftest.out
13682
13683 cat > configargs.h <<EOF
13684 /* Generated automatically. */
13685 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13686 static const char thread_model[] = "$thread_file";
13687
13688 static const struct {
13689   const char *name, *value;
13690 } configure_default_options[] = $configure_default_options;
13691 EOF
13692
13693 # Internationalization
13694 # If we haven't got the data from the intl directory,
13695 # assume NLS is disabled.
13696 USE_NLS=no
13697 LIBINTL=
13698 LIBINTL_DEP=
13699 INCINTL=
13700 XGETTEXT=
13701 GMSGFMT=
13702 POSUB=
13703
13704 if test -f  ../intl/config.intl; then
13705   .  ../intl/config.intl
13706 fi
13707 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13708 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13709 if test x"$USE_NLS" != xyes; then
13710   echo "$as_me:$LINENO: result: no" >&5
13711 echo "${ECHO_T}no" >&6
13712 else
13713   echo "$as_me:$LINENO: result: yes" >&5
13714 echo "${ECHO_T}yes" >&6
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define ENABLE_NLS 1
13718 _ACEOF
13719
13720
13721   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13722 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13723   # Look for .po and .gmo files in the source directory.
13724   CATALOGS=
13725   XLINGUAS=
13726   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13727     # If there aren't any .gmo files the shell will give us the
13728     # literal string "../path/to/srcdir/po/*.gmo" which has to be
13729     # weeded out.
13730     case "$cat" in *\**)
13731       continue;;
13732     esac
13733     # The quadruple backslash is collapsed to a double backslash
13734     # by the backticks, then collapsed again by the double quotes,
13735     # leaving us with one backslash in the sed expression (right
13736     # before the dot that mustn't act as a wildcard).
13737     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13738     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13739     # The user is allowed to set LINGUAS to a list of languages to
13740     # install catalogs for.  If it's empty that means "all of them."
13741     if test "x$LINGUAS" = x; then
13742       CATALOGS="$CATALOGS $cat"
13743       XLINGUAS="$XLINGUAS $lang"
13744     else
13745       case "$LINGUAS" in *$lang*)
13746         CATALOGS="$CATALOGS $cat"
13747         XLINGUAS="$XLINGUAS $lang"
13748         ;;
13749       esac
13750     fi
13751   done
13752   LINGUAS="$XLINGUAS"
13753   echo "$as_me:$LINENO: result: $LINGUAS" >&5
13754 echo "${ECHO_T}$LINGUAS" >&6
13755
13756
13757     DATADIRNAME=share
13758
13759   INSTOBJEXT=.mo
13760
13761   GENCAT=gencat
13762
13763   CATOBJEXT=.gmo
13764
13765 fi
13766
13767 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13768 # -liconv on the link line twice.
13769 case "$LIBINTL" in *$LIBICONV*)
13770         LIBICONV= ;;
13771 esac
13772
13773 # Check whether --enable-secureplt or --disable-secureplt was given.
13774 if test "${enable_secureplt+set}" = set; then
13775   enableval="$enable_secureplt"
13776
13777 fi;
13778
13779 # Check whether --enable-cld or --disable-cld was given.
13780 if test "${enable_cld+set}" = set; then
13781   enableval="$enable_cld"
13782
13783 else
13784   enable_cld=no
13785 fi;
13786
13787 # Windows32 Registry support for specifying GCC installation paths.
13788 # Check whether --enable-win32-registry or --disable-win32-registry was given.
13789 if test "${enable_win32_registry+set}" = set; then
13790   enableval="$enable_win32_registry"
13791
13792 fi;
13793
13794 case $host_os in
13795   win32 | pe | cygwin* | mingw32* | uwin*)
13796     if test "x$enable_win32_registry" != xno; then
13797       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
13798 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
13799 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   ac_func_search_save_LIBS=$LIBS
13803 ac_cv_search_RegOpenKeyExA=no
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h.  */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h.  */
13810
13811 /* Override any gcc2 internal prototype to avoid an error.  */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 /* We use char because int might match the return type of a gcc2
13816    builtin and then its argument prototype would still apply.  */
13817 char RegOpenKeyExA ();
13818 int
13819 main ()
13820 {
13821 RegOpenKeyExA ();
13822   ;
13823   return 0;
13824 }
13825 _ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828   (eval $ac_link) 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -z "$ac_c_werror_flag"
13836                          || test ! -s conftest.err'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; } &&
13842          { ac_try='test -s conftest$ac_exeext'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   ac_cv_search_RegOpenKeyExA="none required"
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 fi
13854 rm -f conftest.err conftest.$ac_objext \
13855       conftest$ac_exeext conftest.$ac_ext
13856 if test "$ac_cv_search_RegOpenKeyExA" = no; then
13857   for ac_lib in advapi32; do
13858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13859     cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h.  */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h.  */
13865
13866 /* Override any gcc2 internal prototype to avoid an error.  */
13867 #ifdef __cplusplus
13868 extern "C"
13869 #endif
13870 /* We use char because int might match the return type of a gcc2
13871    builtin and then its argument prototype would still apply.  */
13872 char RegOpenKeyExA ();
13873 int
13874 main ()
13875 {
13876 RegOpenKeyExA ();
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13883   (eval $ac_link) 2>conftest.er1
13884   ac_status=$?
13885   grep -v '^ *+' conftest.er1 >conftest.err
13886   rm -f conftest.er1
13887   cat conftest.err >&5
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); } &&
13890          { ac_try='test -z "$ac_c_werror_flag"
13891                          || test ! -s conftest.err'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest$ac_exeext'
13898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899   (eval $ac_try) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); }; }; then
13903   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13904 break
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909 fi
13910 rm -f conftest.err conftest.$ac_objext \
13911       conftest$ac_exeext conftest.$ac_ext
13912   done
13913 fi
13914 LIBS=$ac_func_search_save_LIBS
13915 fi
13916 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13917 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13918 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13919   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13920
13921 else
13922   enable_win32_registry=no
13923 fi
13924
13925     fi
13926
13927     if test "x$enable_win32_registry" != xno; then
13928
13929 cat >>confdefs.h <<\_ACEOF
13930 #define ENABLE_WIN32_REGISTRY 1
13931 _ACEOF
13932
13933
13934       if test "x$enable_win32_registry" != xyes \
13935          && test "x$enable_win32_registry" != x; then
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13939 _ACEOF
13940
13941       fi
13942     fi
13943   ;;
13944 esac
13945
13946 # Get an absolute path to the GCC top-level source directory
13947 holddir=`${PWDCMD-pwd}`
13948 cd $srcdir
13949 topdir=`${PWDCMD-pwd}`
13950 cd $holddir
13951
13952 # Conditionalize the makefile for this host machine.
13953 xmake_file=
13954 for f in ${host_xmake_file}
13955 do
13956         if test -f ${srcdir}/config/$f
13957         then
13958                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13959         fi
13960 done
13961
13962 # Conditionalize the makefile for this target machine.
13963 tmake_file_=
13964 for f in ${tmake_file}
13965 do
13966         if test -f ${srcdir}/config/$f
13967         then
13968                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13969         fi
13970 done
13971 tmake_file="${tmake_file_}"
13972
13973 # This is a terrible hack which will go away some day.
13974 host_cc_for_libada=${CC}
13975
13976
13977 out_object_file=`basename $out_file .c`.o
13978
13979 tm_file_list="options.h"
13980 tm_include_list="options.h"
13981 for f in $tm_file; do
13982   case $f in
13983     ./* )
13984        f=`echo $f | sed 's/^..//'`
13985        tm_file_list="${tm_file_list} $f"
13986        tm_include_list="${tm_include_list} $f"
13987        ;;
13988     defaults.h )
13989        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13990        tm_include_list="${tm_include_list} $f"
13991        ;;
13992     * )
13993        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13994        tm_include_list="${tm_include_list} config/$f"
13995        ;;
13996   esac
13997 done
13998
13999 tm_p_file_list=
14000 tm_p_include_list=
14001 for f in $tm_p_file; do
14002   case $f in
14003     tm-preds.h )
14004        tm_p_file_list="${tm_p_file_list} $f"
14005        tm_p_include_list="${tm_p_include_list} $f"
14006        ;;
14007     * )
14008        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
14009        tm_p_include_list="${tm_p_include_list} config/$f"
14010   esac
14011 done
14012
14013 xm_file_list=
14014 xm_include_list=
14015 for f in $xm_file; do
14016   case $f in
14017     ansidecl.h )
14018        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
14019        xm_include_list="${xm_include_list} $f"
14020        ;;
14021     auto-host.h )
14022        xm_file_list="${xm_file_list} $f"
14023        xm_include_list="${xm_include_list} $f"
14024        ;;
14025     * )
14026        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
14027        xm_include_list="${xm_include_list} config/$f"
14028        ;;
14029   esac
14030 done
14031
14032 host_xm_file_list=
14033 host_xm_include_list=
14034 for f in $host_xm_file; do
14035   case $f in
14036     ansidecl.h )
14037        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
14038        host_xm_include_list="${host_xm_include_list} $f"
14039        ;;
14040     auto-host.h )
14041        host_xm_file_list="${host_xm_file_list} $f"
14042        host_xm_include_list="${host_xm_include_list} $f"
14043        ;;
14044     * )
14045        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
14046        host_xm_include_list="${host_xm_include_list} config/$f"
14047        ;;
14048   esac
14049 done
14050
14051 build_xm_file_list=
14052 for f in $build_xm_file; do
14053   case $f in
14054     ansidecl.h )
14055        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
14056        build_xm_include_list="${build_xm_include_list} $f"
14057        ;;
14058     auto-build.h | auto-host.h )
14059        build_xm_file_list="${build_xm_file_list} $f"
14060        build_xm_include_list="${build_xm_include_list} $f"
14061        ;;
14062     * )
14063        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
14064        build_xm_include_list="${build_xm_include_list} config/$f"
14065        ;;
14066   esac
14067 done
14068
14069 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
14070 # cross-compiler which does not use the native headers and libraries.
14071 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
14072 CROSS=
14073 ALL=all.internal
14074 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14075
14076 if test "x$with_build_sysroot" != x; then
14077   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
14078 else
14079   # This value is used, even on a native system, because
14080   # CROSS_SYSTEM_HEADER_DIR is just
14081   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
14082   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
14083 fi
14084
14085 if test x$host != x$target
14086 then
14087         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
14088         ALL=all.cross
14089         SYSTEM_HEADER_DIR=$build_system_header_dir
14090         case "$host","$target" in
14091         # Darwin crosses can use the host system's libraries and headers,
14092         # because of the fat library support.  Of course, it must be the
14093         # same version of Darwin on both sides.  Allow the user to
14094         # just say --target=foo-darwin without a version number to mean
14095         # "the version on this system".
14096             *-*-darwin*,*-*-darwin*)
14097                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
14098                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
14099                 if test $hostos = $targetos -o $targetos = darwin ; then
14100                     CROSS=
14101                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
14102                     with_headers=yes
14103                 fi
14104                 ;;
14105
14106             i?86-*-*,x86_64-*-* \
14107             | powerpc*-*-*,powerpc64*-*-*)
14108                 CROSS="$CROSS -DNATIVE_CROSS" ;;
14109         esac
14110 elif test "x$TARGET_SYSTEM_ROOT" != x; then
14111         SYSTEM_HEADER_DIR=$build_system_header_dir
14112 fi
14113
14114 # If this is a cross-compiler that does not
14115 # have its own set of headers then define
14116 # inhibit_libc
14117
14118 # If this is using newlib, without having the headers available now,
14119 # then define inhibit_libc in LIBGCC2_CFLAGS.
14120 # This prevents libgcc2 from containing any code which requires libc
14121 # support.
14122 : ${inhibit_libc=false}
14123 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
14124        test x$with_newlib = xyes ; } &&
14125      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
14126        inhibit_libc=true
14127 fi
14128
14129
14130 # When building gcc with a cross-compiler, we need to adjust things so
14131 # that the generator programs are still built with the native compiler.
14132 # Also, we cannot run fixincludes or fix-header.
14133
14134 # These are the normal (build=host) settings:
14135 CC_FOR_BUILD='$(CC)'
14136 BUILD_CFLAGS='$(ALL_CFLAGS)'
14137 BUILD_LDFLAGS='$(LDFLAGS)'
14138 STMP_FIXINC=stmp-fixinc
14139
14140 # Possibly disable fixproto, on a per-target basis.
14141 case ${use_fixproto} in
14142   no)
14143     STMP_FIXPROTO=
14144     ;;
14145   yes)
14146     STMP_FIXPROTO=stmp-fixproto
14147     ;;
14148 esac
14149
14150
14151 # And these apply if build != host, or we are generating coverage data
14152 if test x$build != x$host || test "x$coverage_flags" != x
14153 then
14154     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
14155     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
14156
14157     if test "x$TARGET_SYSTEM_ROOT" = x; then
14158         if test "x$STMP_FIXPROTO" != x; then
14159           STMP_FIXPROTO=stmp-install-fixproto
14160         fi
14161     fi
14162 fi
14163
14164 # Expand extra_headers to include complete path.
14165 # This substitutes for lots of t-* files.
14166 extra_headers_list=
14167 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
14168 for file in ${extra_headers} ; do
14169   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
14170 done
14171
14172 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
14173 if test x"$use_gcc_tgmath" = xyes
14174 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
14175 fi
14176
14177 # Define collect2 in Makefile.
14178 case $host_can_use_collect2 in
14179   no) collect2= ;;
14180   *) collect2='collect2$(exeext)' ;;
14181 esac
14182
14183
14184 # Add a definition of USE_COLLECT2 if system wants one.
14185 case $use_collect2 in
14186   no) use_collect2= ;;
14187   "") ;;
14188   *)
14189     host_xm_defines="${host_xm_defines} USE_COLLECT2"
14190     xm_defines="${xm_defines} USE_COLLECT2"
14191     case $host_can_use_collect2 in
14192       no)
14193         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
14194 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
14195    { (exit 1); exit 1; }; }
14196         ;;
14197     esac
14198     ;;
14199 esac
14200
14201 # ---------------------------
14202 # Assembler & linker features
14203 # ---------------------------
14204
14205 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
14206 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
14207 # However when ld-new is first executed from the build tree, libtool will
14208 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
14209 # to the build tree.  While doing this we need to use the previous-stage
14210 # linker, or we have an infinite loop.  The presence of a shell script as
14211 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
14212 # the gcc/collect-ld script.  So we need to know how libtool works, or
14213 # exec-tool will fail.
14214
14215
14216
14217
14218 macro_version='2.1a'
14219 macro_revision='1.2435'
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232 ltmain="$ac_aux_dir/ltmain.sh"
14233
14234 # Set options
14235
14236 enable_dlopen=no
14237
14238
14239 enable_win32_dll=no
14240
14241
14242 # Check whether --enable-shared or --disable-shared was given.
14243 if test "${enable_shared+set}" = set; then
14244   enableval="$enable_shared"
14245   p=${PACKAGE-default}
14246     case $enableval in
14247     yes) enable_shared=yes ;;
14248     no) enable_shared=no ;;
14249     *)
14250       enable_shared=no
14251       # Look at the argument we got.  We use all the common list separators.
14252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14253       for pkg in $enableval; do
14254         IFS="$lt_save_ifs"
14255         if test "X$pkg" = "X$p"; then
14256           enable_shared=yes
14257         fi
14258       done
14259       IFS="$lt_save_ifs"
14260       ;;
14261     esac
14262 else
14263   enable_shared=yes
14264 fi;
14265
14266
14267
14268
14269
14270
14271
14272
14273 # Check whether --enable-static or --disable-static was given.
14274 if test "${enable_static+set}" = set; then
14275   enableval="$enable_static"
14276   p=${PACKAGE-default}
14277     case $enableval in
14278     yes) enable_static=yes ;;
14279     no) enable_static=no ;;
14280     *)
14281      enable_static=no
14282       # Look at the argument we got.  We use all the common list separators.
14283       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14284       for pkg in $enableval; do
14285         IFS="$lt_save_ifs"
14286         if test "X$pkg" = "X$p"; then
14287           enable_static=yes
14288         fi
14289       done
14290       IFS="$lt_save_ifs"
14291       ;;
14292     esac
14293 else
14294   enable_static=yes
14295 fi;
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 # Check whether --with-pic or --without-pic was given.
14306 if test "${with_pic+set}" = set; then
14307   withval="$with_pic"
14308   pic_mode="$withval"
14309 else
14310   pic_mode=default
14311 fi;
14312
14313 test -z "$pic_mode" && pic_mode=default
14314
14315
14316
14317
14318
14319
14320
14321 # Check whether --enable-fast-install or --disable-fast-install was given.
14322 if test "${enable_fast_install+set}" = set; then
14323   enableval="$enable_fast_install"
14324   p=${PACKAGE-default}
14325     case $enableval in
14326     yes) enable_fast_install=yes ;;
14327     no) enable_fast_install=no ;;
14328     *)
14329       enable_fast_install=no
14330       # Look at the argument we got.  We use all the common list separators.
14331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14332       for pkg in $enableval; do
14333         IFS="$lt_save_ifs"
14334         if test "X$pkg" = "X$p"; then
14335           enable_fast_install=yes
14336         fi
14337       done
14338       IFS="$lt_save_ifs"
14339       ;;
14340     esac
14341 else
14342   enable_fast_install=yes
14343 fi;
14344
14345
14346
14347
14348
14349
14350
14351
14352 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14353 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14354 if test "${lt_cv_path_SED+set}" = set; then
14355   echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357   # Loop through the user's path and test for sed and gsed.
14358 # Then use that list of sed's as ones to test for truncation.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14361 do
14362   IFS=$as_save_IFS
14363   test -z "$as_dir" && as_dir=.
14364   for lt_ac_prog in sed gsed; do
14365     for ac_exec_ext in '' $ac_executable_extensions; do
14366       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14367         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14368       fi
14369     done
14370   done
14371 done
14372 IFS=$as_save_IFS
14373 lt_ac_max=0
14374 lt_ac_count=0
14375 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14376 # along with /bin/sed that truncates output.
14377 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14378   test ! -f $lt_ac_sed && continue
14379   cat /dev/null > conftest.in
14380   lt_ac_count=0
14381   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14382   # Check for GNU sed and select it if it is found.
14383   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14384     lt_cv_path_SED=$lt_ac_sed
14385     break
14386   fi
14387   while true; do
14388     cat conftest.in conftest.in >conftest.tmp
14389     mv conftest.tmp conftest.in
14390     cp conftest.in conftest.nl
14391     echo >>conftest.nl
14392     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14393     cmp -s conftest.out conftest.nl || break
14394     # 10000 chars as input seems more than enough
14395     test $lt_ac_count -gt 10 && break
14396     lt_ac_count=`expr $lt_ac_count + 1`
14397     if test $lt_ac_count -gt $lt_ac_max; then
14398       lt_ac_max=$lt_ac_count
14399       lt_cv_path_SED=$lt_ac_sed
14400     fi
14401   done
14402 done
14403
14404 fi
14405
14406 SED=$lt_cv_path_SED
14407
14408 echo "$as_me:$LINENO: result: $SED" >&5
14409 echo "${ECHO_T}$SED" >&6
14410
14411 test -z "$SED" && SED=sed
14412 Xsed="$SED -e 1s/^X//"
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424 echo "$as_me:$LINENO: checking for fgrep" >&5
14425 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
14426 if test "${ac_cv_prog_fgrep+set}" = set; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
14430     then ac_cv_prog_fgrep='grep -F'
14431     else ac_cv_prog_fgrep='fgrep'
14432     fi
14433 fi
14434 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
14435 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
14436  FGREP=$ac_cv_prog_fgrep
14437
14438
14439 test -z "$GREP" && GREP=grep
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14460 if test "${with_gnu_ld+set}" = set; then
14461   withval="$with_gnu_ld"
14462   test "$withval" = no || with_gnu_ld=yes
14463 else
14464   with_gnu_ld=no
14465 fi;
14466 ac_prog=ld
14467 if test "$GCC" = yes; then
14468   # Check if gcc -print-prog-name=ld gives a path.
14469   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14471   case $host in
14472   *-*-mingw*)
14473     # gcc leaves a trailing carriage return which upsets mingw
14474     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14475   *)
14476     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14477   esac
14478   case $ac_prog in
14479     # Accept absolute paths.
14480     [\\/]* | ?:[\\/]*)
14481       re_direlt='/[^/][^/]*/\.\./'
14482       # Canonicalize the pathname of ld
14483       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14484       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14485         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14486       done
14487       test -z "$LD" && LD="$ac_prog"
14488       ;;
14489   "")
14490     # If it fails, then pretend we aren't using GCC.
14491     ac_prog=ld
14492     ;;
14493   *)
14494     # If it is relative, then search for the first ld in PATH.
14495     with_gnu_ld=unknown
14496     ;;
14497   esac
14498 elif test "$with_gnu_ld" = yes; then
14499   echo "$as_me:$LINENO: checking for GNU ld" >&5
14500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14501 else
14502   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14504 fi
14505 if test "${lt_cv_path_LD+set}" = set; then
14506   echo $ECHO_N "(cached) $ECHO_C" >&6
14507 else
14508   if test -z "$LD"; then
14509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14510   for ac_dir in $PATH; do
14511     IFS="$lt_save_ifs"
14512     test -z "$ac_dir" && ac_dir=.
14513     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14514       lt_cv_path_LD="$ac_dir/$ac_prog"
14515       # Check to see if the program is GNU ld.  I'd rather use --version,
14516       # but apparently some variants of GNU ld only accept -v.
14517       # Break only if it was the GNU/non-GNU ld that we prefer.
14518       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14519       *GNU* | *'with BFD'*)
14520         test "$with_gnu_ld" != no && break
14521         ;;
14522       *)
14523         test "$with_gnu_ld" != yes && break
14524         ;;
14525       esac
14526     fi
14527   done
14528   IFS="$lt_save_ifs"
14529 else
14530   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14531 fi
14532 fi
14533
14534 LD="$lt_cv_path_LD"
14535 if test -n "$LD"; then
14536   echo "$as_me:$LINENO: result: $LD" >&5
14537 echo "${ECHO_T}$LD" >&6
14538 else
14539   echo "$as_me:$LINENO: result: no" >&5
14540 echo "${ECHO_T}no" >&6
14541 fi
14542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14544    { (exit 1); exit 1; }; }
14545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14551 case `$LD -v 2>&1 </dev/null` in
14552 *GNU* | *'with BFD'*)
14553   lt_cv_prog_gnu_ld=yes
14554   ;;
14555 *)
14556   lt_cv_prog_gnu_ld=no
14557   ;;
14558 esac
14559 fi
14560 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14562 with_gnu_ld=$lt_cv_prog_gnu_ld
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
14574 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
14575 if test "${lt_cv_path_NM+set}" = set; then
14576   echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578   if test -n "$NM"; then
14579   # Let the user override the test.
14580   lt_cv_path_NM="$NM"
14581 else
14582   lt_nm_to_check="${ac_tool_prefix}nm"
14583   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14584     lt_nm_to_check="$lt_nm_to_check nm"
14585   fi
14586   for lt_tmp_nm in $lt_nm_to_check; do
14587     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14588     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14589       IFS="$lt_save_ifs"
14590       test -z "$ac_dir" && ac_dir=.
14591       tmp_nm="$ac_dir/$lt_tmp_nm"
14592       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14593         # Check to see if the nm accepts a BSD-compat flag.
14594         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14595         #   nm: unknown option "B" ignored
14596         # Tru64's nm complains that /dev/null is an invalid object file
14597         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14598         */dev/null* | *'Invalid file or object type'*)
14599           lt_cv_path_NM="$tmp_nm -B"
14600           break
14601           ;;
14602         *)
14603           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14604           */dev/null*)
14605             lt_cv_path_NM="$tmp_nm -p"
14606             break
14607             ;;
14608           *)
14609             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14610             continue # so that we can try to find one that supports BSD flags
14611             ;;
14612           esac
14613           ;;
14614         esac
14615       fi
14616     done
14617     IFS="$lt_save_ifs"
14618   done
14619   : ${lt_cv_path_NM=no}
14620 fi
14621 fi
14622 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14623 echo "${ECHO_T}$lt_cv_path_NM" >&6
14624 if test "$lt_cv_path_NM" != "no"; then
14625   NM="$lt_cv_path_NM"
14626 else
14627   # Didn't find any BSD compatible name lister, look for dumpbin.
14628   if test -n "$ac_tool_prefix"; then
14629   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14630   do
14631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14633 echo "$as_me:$LINENO: checking for $ac_word" >&5
14634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14635 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   if test -n "$DUMPBIN"; then
14639   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14640 else
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14643 do
14644   IFS=$as_save_IFS
14645   test -z "$as_dir" && as_dir=.
14646   for ac_exec_ext in '' $ac_executable_extensions; do
14647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14648     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14650     break 2
14651   fi
14652 done
14653 done
14654
14655 fi
14656 fi
14657 DUMPBIN=$ac_cv_prog_DUMPBIN
14658 if test -n "$DUMPBIN"; then
14659   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
14660 echo "${ECHO_T}$DUMPBIN" >&6
14661 else
14662   echo "$as_me:$LINENO: result: no" >&5
14663 echo "${ECHO_T}no" >&6
14664 fi
14665
14666     test -n "$DUMPBIN" && break
14667   done
14668 fi
14669 if test -z "$DUMPBIN"; then
14670   ac_ct_DUMPBIN=$DUMPBIN
14671   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
14672 do
14673   # Extract the first word of "$ac_prog", so it can be a program name with args.
14674 set dummy $ac_prog; ac_word=$2
14675 echo "$as_me:$LINENO: checking for $ac_word" >&5
14676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14677 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   if test -n "$ac_ct_DUMPBIN"; then
14681   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14682 else
14683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14684 for as_dir in $PATH
14685 do
14686   IFS=$as_save_IFS
14687   test -z "$as_dir" && as_dir=.
14688   for ac_exec_ext in '' $ac_executable_extensions; do
14689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14690     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14692     break 2
14693   fi
14694 done
14695 done
14696
14697 fi
14698 fi
14699 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14700 if test -n "$ac_ct_DUMPBIN"; then
14701   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
14702 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
14703 else
14704   echo "$as_me:$LINENO: result: no" >&5
14705 echo "${ECHO_T}no" >&6
14706 fi
14707
14708   test -n "$ac_ct_DUMPBIN" && break
14709 done
14710 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
14711
14712   DUMPBIN=$ac_ct_DUMPBIN
14713 fi
14714
14715
14716   if test "$DUMPBIN" != ":"; then
14717     NM="$DUMPBIN"
14718   fi
14719 fi
14720 test -z "$NM" && NM=nm
14721
14722
14723
14724
14725
14726
14727 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
14728 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
14729 if test "${lt_cv_nm_interface+set}" = set; then
14730   echo $ECHO_N "(cached) $ECHO_C" >&6
14731 else
14732   lt_cv_nm_interface="BSD nm"
14733   echo "int some_variable = 0;" > conftest.$ac_ext
14734   (eval echo "\"\$as_me:14734: $ac_compile\"" >&5)
14735   (eval "$ac_compile" 2>conftest.err)
14736   cat conftest.err >&5
14737   (eval echo "\"\$as_me:14737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14738   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14739   cat conftest.err >&5
14740   (eval echo "\"\$as_me:14740: output\"" >&5)
14741   cat conftest.out >&5
14742   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14743     lt_cv_nm_interface="MS dumpbin"
14744   fi
14745   rm -f conftest*
14746 fi
14747 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
14748 echo "${ECHO_T}$lt_cv_nm_interface" >&6
14749
14750 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14752 LN_S=$as_ln_s
14753 if test "$LN_S" = "ln -s"; then
14754   echo "$as_me:$LINENO: result: yes" >&5
14755 echo "${ECHO_T}yes" >&6
14756 else
14757   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14758 echo "${ECHO_T}no, using $LN_S" >&6
14759 fi
14760
14761 # find the maximum length of command line arguments
14762 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14763 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14764 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767     i=0
14768   teststring="ABCD"
14769
14770   case $build_os in
14771   msdosdjgpp*)
14772     # On DJGPP, this test can blow up pretty badly due to problems in libc
14773     # (any single argument exceeding 2000 bytes causes a buffer overrun
14774     # during glob expansion).  Even if it were fixed, the result of this
14775     # check would be larger than it should be.
14776     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14777     ;;
14778
14779   gnu*)
14780     # Under GNU Hurd, this test is not required because there is
14781     # no limit to the length of command line arguments.
14782     # Libtool will interpret -1 as no limit whatsoever
14783     lt_cv_sys_max_cmd_len=-1;
14784     ;;
14785
14786   cygwin* | mingw*)
14787     # On Win9x/ME, this test blows up -- it succeeds, but takes
14788     # about 5 minutes as the teststring grows exponentially.
14789     # Worse, since 9x/ME are not pre-emptively multitasking,
14790     # you end up with a "frozen" computer, even though with patience
14791     # the test eventually succeeds (with a max line length of 256k).
14792     # Instead, let's just punt: use the minimum linelength reported by
14793     # all of the supported platforms: 8192 (on NT/2K/XP).
14794     lt_cv_sys_max_cmd_len=8192;
14795     ;;
14796
14797   amigaos*)
14798     # On AmigaOS with pdksh, this test takes hours, literally.
14799     # So we just punt and use a minimum line length of 8192.
14800     lt_cv_sys_max_cmd_len=8192;
14801     ;;
14802
14803   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14804     # This has been around since 386BSD, at least.  Likely further.
14805     if test -x /sbin/sysctl; then
14806       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14807     elif test -x /usr/sbin/sysctl; then
14808       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14809     else
14810       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14811     fi
14812     # And add a safety zone
14813     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14814     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14815     ;;
14816
14817   interix*)
14818     # We know the value 262144 and hardcode it with a safety zone (like BSD)
14819     lt_cv_sys_max_cmd_len=196608
14820     ;;
14821
14822   osf*)
14823     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14824     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14825     # nice to cause kernel panics so lets avoid the loop below.
14826     # First set a reasonable default.
14827     lt_cv_sys_max_cmd_len=16384
14828     #
14829     if test -x /sbin/sysconfig; then
14830       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14831         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14832       esac
14833     fi
14834     ;;
14835   sco3.2v5*)
14836     lt_cv_sys_max_cmd_len=102400
14837     ;;
14838   sysv5* | sco5v6* | sysv4.2uw2*)
14839     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14840     if test -n "$kargmax"; then
14841       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
14842     else
14843       lt_cv_sys_max_cmd_len=32768
14844     fi
14845     ;;
14846   *)
14847     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
14848     if test -n $lt_cv_sys_max_cmd_len; then
14849       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14850       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14851     else
14852       # Make teststring a little bigger before we do anything with it.
14853       # a 1K string should be a reasonable start.
14854       for i in 1 2 3 4 5 6 7 8 ; do
14855         teststring=$teststring$teststring
14856       done
14857       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14858       # If test is not a shell built-in, we'll probably end up computing a
14859       # maximum length that is only half of the actual maximum length, but
14860       # we can't tell.
14861       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
14862                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
14863               test $i != 17 # 1/2 MB should be enough
14864       do
14865         i=`expr $i + 1`
14866         teststring=$teststring$teststring
14867       done
14868       # Only check the string length outside the loop.
14869       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14870       teststring=
14871       # Add a significant safety factor because C++ compilers can tack on
14872       # massive amounts of additional arguments before passing them to the
14873       # linker.  It appears as though 1/2 is a usable value.
14874       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14875     fi
14876     ;;
14877   esac
14878
14879 fi
14880
14881 if test -n $lt_cv_sys_max_cmd_len ; then
14882   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14883 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14884 else
14885   echo "$as_me:$LINENO: result: none" >&5
14886 echo "${ECHO_T}none" >&6
14887 fi
14888 max_cmd_len=$lt_cv_sys_max_cmd_len
14889
14890
14891
14892
14893
14894
14895
14896 : ${CP="cp -f"}
14897 : ${MV="mv -f"}
14898 : ${RM="rm -f"}
14899
14900 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
14901 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
14902 # Try some XSI features
14903 xsi_shell=no
14904 ( _lt_dummy="a/b/c"
14905   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14906       = c,a/b,, ) >/dev/null 2>&1 \
14907   && xsi_shell=yes
14908 echo "$as_me:$LINENO: result: $xsi_shell" >&5
14909 echo "${ECHO_T}$xsi_shell" >&6
14910
14911
14912 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
14913 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
14914 lt_shell_append=no
14915 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14916     >/dev/null 2>&1 \
14917   && lt_shell_append=yes
14918 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
14919 echo "${ECHO_T}$lt_shell_append" >&6
14920
14921
14922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14923   lt_unset=unset
14924 else
14925   lt_unset=false
14926 fi
14927
14928
14929
14930
14931
14932 # test EBCDIC or ASCII
14933 case `echo X|tr X '\101'` in
14934  A) # ASCII based system
14935     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14936   lt_SP2NL='tr \040 \012'
14937   lt_NL2SP='tr \015\012 \040\040'
14938   ;;
14939  *) # EBCDIC based system
14940   lt_SP2NL='tr \100 \n'
14941   lt_NL2SP='tr \r\n \100\100'
14942   ;;
14943 esac
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14954 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14955 if test "${lt_cv_ld_reload_flag+set}" = set; then
14956   echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958   lt_cv_ld_reload_flag='-r'
14959 fi
14960 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14961 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14962 reload_flag=$lt_cv_ld_reload_flag
14963 case $reload_flag in
14964 "" | " "*) ;;
14965 *) reload_flag=" $reload_flag" ;;
14966 esac
14967 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14968 case $host_os in
14969   darwin*)
14970     if test "$GCC" = yes; then
14971       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14972     else
14973       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14974     fi
14975     ;;
14976 esac
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
14988 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
14989 if test "${lt_cv_deplibs_check_method+set}" = set; then
14990   echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992   lt_cv_file_magic_cmd='$MAGIC_CMD'
14993 lt_cv_file_magic_test_file=
14994 lt_cv_deplibs_check_method='unknown'
14995 # Need to set the preceding variable on all platforms that support
14996 # interlibrary dependencies.
14997 # 'none' -- dependencies not supported.
14998 # `unknown' -- same as none, but documents that we really don't know.
14999 # 'pass_all' -- all dependencies passed with no checks.
15000 # 'test_compile' -- check by making test program.
15001 # 'file_magic [[regex]]' -- check by looking for files in library path
15002 # which responds to the $file_magic_cmd with a given extended regex.
15003 # If you have `file' or equivalent on your system and you're not sure
15004 # whether `pass_all' will *always* work, you probably want this one.
15005
15006 case $host_os in
15007 aix[4-9]*)
15008   lt_cv_deplibs_check_method=pass_all
15009   ;;
15010
15011 beos*)
15012   lt_cv_deplibs_check_method=pass_all
15013   ;;
15014
15015 bsdi[45]*)
15016   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15017   lt_cv_file_magic_cmd='/usr/bin/file -L'
15018   lt_cv_file_magic_test_file=/shlib/libc.so
15019   ;;
15020
15021 cygwin*)
15022   # func_win32_libid is a shell function defined in ltmain.sh
15023   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15024   lt_cv_file_magic_cmd='func_win32_libid'
15025   ;;
15026
15027 mingw* | pw32*)
15028   # Base MSYS/MinGW do not provide the 'file' command needed by
15029   # func_win32_libid shell function, so use a weaker test based on 'objdump',
15030   # unless we find 'file', for example because we are cross-compiling.
15031   if ( file / ) >/dev/null 2>&1; then
15032     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15033     lt_cv_file_magic_cmd='func_win32_libid'
15034   else
15035     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
15036     lt_cv_file_magic_cmd='$OBJDUMP -f'
15037   fi
15038   ;;
15039
15040 darwin* | rhapsody*)
15041   lt_cv_deplibs_check_method=pass_all
15042   ;;
15043
15044 freebsd* | dragonfly*)
15045   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15046     case $host_cpu in
15047     i*86 )
15048       # Not sure whether the presence of OpenBSD here was a mistake.
15049       # Let's accept both of them until this is cleared up.
15050       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15051       lt_cv_file_magic_cmd=/usr/bin/file
15052       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15053       ;;
15054     esac
15055   else
15056     lt_cv_deplibs_check_method=pass_all
15057   fi
15058   ;;
15059
15060 gnu*)
15061   lt_cv_deplibs_check_method=pass_all
15062   ;;
15063
15064 hpux10.20* | hpux11*)
15065   lt_cv_file_magic_cmd=/usr/bin/file
15066   case $host_cpu in
15067   ia64*)
15068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15069     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15070     ;;
15071   hppa*64*)
15072     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]'
15073     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15074     ;;
15075   *)
15076     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15077     lt_cv_file_magic_test_file=/usr/lib/libc.sl
15078     ;;
15079   esac
15080   ;;
15081
15082 interix[3-9]*)
15083   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15084   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15085   ;;
15086
15087 irix5* | irix6* | nonstopux*)
15088   case $LD in
15089   *-32|*"-32 ") libmagic=32-bit;;
15090   *-n32|*"-n32 ") libmagic=N32;;
15091   *-64|*"-64 ") libmagic=64-bit;;
15092   *) libmagic=never-match;;
15093   esac
15094   lt_cv_deplibs_check_method=pass_all
15095   ;;
15096
15097 # This must be Linux ELF.
15098 linux* | k*bsd*-gnu)
15099   lt_cv_deplibs_check_method=pass_all
15100   ;;
15101
15102 netbsd*)
15103   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15105   else
15106     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15107   fi
15108   ;;
15109
15110 newos6*)
15111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15112   lt_cv_file_magic_cmd=/usr/bin/file
15113   lt_cv_file_magic_test_file=/usr/lib/libnls.so
15114   ;;
15115
15116 *nto* | *qnx*)
15117   lt_cv_deplibs_check_method=pass_all
15118   ;;
15119
15120 openbsd*)
15121   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15123   else
15124     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15125   fi
15126   ;;
15127
15128 osf3* | osf4* | osf5*)
15129   lt_cv_deplibs_check_method=pass_all
15130   ;;
15131
15132 rdos*)
15133   lt_cv_deplibs_check_method=pass_all
15134   ;;
15135
15136 solaris*)
15137   lt_cv_deplibs_check_method=pass_all
15138   ;;
15139
15140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15141   lt_cv_deplibs_check_method=pass_all
15142   ;;
15143
15144 sysv4 | sysv4.3*)
15145   case $host_vendor in
15146   motorola)
15147     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]'
15148     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15149     ;;
15150   ncr)
15151     lt_cv_deplibs_check_method=pass_all
15152     ;;
15153   sequent)
15154     lt_cv_file_magic_cmd='/bin/file'
15155     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15156     ;;
15157   sni)
15158     lt_cv_file_magic_cmd='/bin/file'
15159     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15160     lt_cv_file_magic_test_file=/lib/libc.so
15161     ;;
15162   siemens)
15163     lt_cv_deplibs_check_method=pass_all
15164     ;;
15165   pc)
15166     lt_cv_deplibs_check_method=pass_all
15167     ;;
15168   esac
15169   ;;
15170
15171 tpf*)
15172   lt_cv_deplibs_check_method=pass_all
15173   ;;
15174 esac
15175
15176 fi
15177 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15178 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15179 file_magic_cmd=$lt_cv_file_magic_cmd
15180 deplibs_check_method=$lt_cv_deplibs_check_method
15181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194 if test -n "$ac_tool_prefix"; then
15195   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15196 set dummy ${ac_tool_prefix}ar; ac_word=$2
15197 echo "$as_me:$LINENO: checking for $ac_word" >&5
15198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15199 if test "${ac_cv_prog_AR+set}" = set; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   if test -n "$AR"; then
15203   ac_cv_prog_AR="$AR" # Let the user override the test.
15204 else
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 for as_dir in $PATH
15207 do
15208   IFS=$as_save_IFS
15209   test -z "$as_dir" && as_dir=.
15210   for ac_exec_ext in '' $ac_executable_extensions; do
15211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15212     ac_cv_prog_AR="${ac_tool_prefix}ar"
15213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15214     break 2
15215   fi
15216 done
15217 done
15218
15219 fi
15220 fi
15221 AR=$ac_cv_prog_AR
15222 if test -n "$AR"; then
15223   echo "$as_me:$LINENO: result: $AR" >&5
15224 echo "${ECHO_T}$AR" >&6
15225 else
15226   echo "$as_me:$LINENO: result: no" >&5
15227 echo "${ECHO_T}no" >&6
15228 fi
15229
15230 fi
15231 if test -z "$ac_cv_prog_AR"; then
15232   ac_ct_AR=$AR
15233   # Extract the first word of "ar", so it can be a program name with args.
15234 set dummy ar; ac_word=$2
15235 echo "$as_me:$LINENO: checking for $ac_word" >&5
15236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   if test -n "$ac_ct_AR"; then
15241   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15242 else
15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244 for as_dir in $PATH
15245 do
15246   IFS=$as_save_IFS
15247   test -z "$as_dir" && as_dir=.
15248   for ac_exec_ext in '' $ac_executable_extensions; do
15249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15250     ac_cv_prog_ac_ct_AR="ar"
15251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15252     break 2
15253   fi
15254 done
15255 done
15256
15257   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
15258 fi
15259 fi
15260 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15261 if test -n "$ac_ct_AR"; then
15262   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15263 echo "${ECHO_T}$ac_ct_AR" >&6
15264 else
15265   echo "$as_me:$LINENO: result: no" >&5
15266 echo "${ECHO_T}no" >&6
15267 fi
15268
15269   AR=$ac_ct_AR
15270 else
15271   AR="$ac_cv_prog_AR"
15272 fi
15273
15274 test -z "$AR" && AR=ar
15275 test -z "$AR_FLAGS" && AR_FLAGS=cru
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287 if test -n "$ac_tool_prefix"; then
15288   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15289 set dummy ${ac_tool_prefix}strip; ac_word=$2
15290 echo "$as_me:$LINENO: checking for $ac_word" >&5
15291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15292 if test "${ac_cv_prog_STRIP+set}" = set; then
15293   echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295   if test -n "$STRIP"; then
15296   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15297 else
15298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15299 for as_dir in $PATH
15300 do
15301   IFS=$as_save_IFS
15302   test -z "$as_dir" && as_dir=.
15303   for ac_exec_ext in '' $ac_executable_extensions; do
15304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15305     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15307     break 2
15308   fi
15309 done
15310 done
15311
15312 fi
15313 fi
15314 STRIP=$ac_cv_prog_STRIP
15315 if test -n "$STRIP"; then
15316   echo "$as_me:$LINENO: result: $STRIP" >&5
15317 echo "${ECHO_T}$STRIP" >&6
15318 else
15319   echo "$as_me:$LINENO: result: no" >&5
15320 echo "${ECHO_T}no" >&6
15321 fi
15322
15323 fi
15324 if test -z "$ac_cv_prog_STRIP"; then
15325   ac_ct_STRIP=$STRIP
15326   # Extract the first word of "strip", so it can be a program name with args.
15327 set dummy strip; ac_word=$2
15328 echo "$as_me:$LINENO: checking for $ac_word" >&5
15329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15330 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   if test -n "$ac_ct_STRIP"; then
15334   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15335 else
15336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337 for as_dir in $PATH
15338 do
15339   IFS=$as_save_IFS
15340   test -z "$as_dir" && as_dir=.
15341   for ac_exec_ext in '' $ac_executable_extensions; do
15342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15343     ac_cv_prog_ac_ct_STRIP="strip"
15344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15345     break 2
15346   fi
15347 done
15348 done
15349
15350   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
15351 fi
15352 fi
15353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15354 if test -n "$ac_ct_STRIP"; then
15355   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15356 echo "${ECHO_T}$ac_ct_STRIP" >&6
15357 else
15358   echo "$as_me:$LINENO: result: no" >&5
15359 echo "${ECHO_T}no" >&6
15360 fi
15361
15362   STRIP=$ac_ct_STRIP
15363 else
15364   STRIP="$ac_cv_prog_STRIP"
15365 fi
15366
15367 test -z "$STRIP" && STRIP=:
15368
15369
15370
15371
15372
15373
15374 if test -n "$ac_tool_prefix"; then
15375   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15376 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15377 echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15379 if test "${ac_cv_prog_RANLIB+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   if test -n "$RANLIB"; then
15383   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15384 else
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15387 do
15388   IFS=$as_save_IFS
15389   test -z "$as_dir" && as_dir=.
15390   for ac_exec_ext in '' $ac_executable_extensions; do
15391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15394     break 2
15395   fi
15396 done
15397 done
15398
15399 fi
15400 fi
15401 RANLIB=$ac_cv_prog_RANLIB
15402 if test -n "$RANLIB"; then
15403   echo "$as_me:$LINENO: result: $RANLIB" >&5
15404 echo "${ECHO_T}$RANLIB" >&6
15405 else
15406   echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15408 fi
15409
15410 fi
15411 if test -z "$ac_cv_prog_RANLIB"; then
15412   ac_ct_RANLIB=$RANLIB
15413   # Extract the first word of "ranlib", so it can be a program name with args.
15414 set dummy ranlib; ac_word=$2
15415 echo "$as_me:$LINENO: checking for $ac_word" >&5
15416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   if test -n "$ac_ct_RANLIB"; then
15421   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15422 else
15423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15424 for as_dir in $PATH
15425 do
15426   IFS=$as_save_IFS
15427   test -z "$as_dir" && as_dir=.
15428   for ac_exec_ext in '' $ac_executable_extensions; do
15429   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15430     ac_cv_prog_ac_ct_RANLIB="ranlib"
15431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15432     break 2
15433   fi
15434 done
15435 done
15436
15437   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15438 fi
15439 fi
15440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15441 if test -n "$ac_ct_RANLIB"; then
15442   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15443 echo "${ECHO_T}$ac_ct_RANLIB" >&6
15444 else
15445   echo "$as_me:$LINENO: result: no" >&5
15446 echo "${ECHO_T}no" >&6
15447 fi
15448
15449   RANLIB=$ac_ct_RANLIB
15450 else
15451   RANLIB="$ac_cv_prog_RANLIB"
15452 fi
15453
15454 test -z "$RANLIB" && RANLIB=:
15455
15456
15457
15458
15459
15460
15461 # Determine commands to create old-style static archives.
15462 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
15463 old_postinstall_cmds='chmod 644 $oldlib'
15464 old_postuninstall_cmds=
15465
15466 if test -n "$RANLIB"; then
15467   case $host_os in
15468   openbsd*)
15469     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15470     ;;
15471   *)
15472     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15473     ;;
15474   esac
15475   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15476 fi
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511 # If no C compiler was specified, use CC.
15512 LTCC=${LTCC-"$CC"}
15513
15514 # If no C compiler flags were specified, use CFLAGS.
15515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15516
15517 # Allow CC to be a program name with arguments.
15518 compiler=$CC
15519
15520
15521 # Check for command to grab the raw symbol name followed by C symbol from nm.
15522 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
15523 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
15524 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
15525   echo $ECHO_N "(cached) $ECHO_C" >&6
15526 else
15527
15528 # These are sane defaults that work on at least a few old systems.
15529 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
15530
15531 # Character class describing NM global symbol codes.
15532 symcode='[BCDEGRST]'
15533
15534 # Regexp to match symbols that can be accessed directly from C.
15535 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15536
15537 # Define system-specific variables.
15538 case $host_os in
15539 aix*)
15540   symcode='[BCDT]'
15541   ;;
15542 cygwin* | mingw* | pw32*)
15543   symcode='[ABCDGISTW]'
15544   ;;
15545 hpux*)
15546   if test "$host_cpu" = ia64; then
15547     symcode='[ABCDEGRST]'
15548   fi
15549   ;;
15550 irix* | nonstopux*)
15551   symcode='[BCDEGRST]'
15552   ;;
15553 osf*)
15554   symcode='[BCDEGQRST]'
15555   ;;
15556 solaris*)
15557   symcode='[BDRT]'
15558   ;;
15559 sco3.2v5*)
15560   symcode='[DT]'
15561   ;;
15562 sysv4.2uw2*)
15563   symcode='[DT]'
15564   ;;
15565 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15566   symcode='[ABDT]'
15567   ;;
15568 sysv4)
15569   symcode='[DFNSTU]'
15570   ;;
15571 esac
15572
15573 # If we're using GNU nm, then use its standard symbol codes.
15574 case `$NM -V 2>&1` in
15575 *GNU* | *'with BFD'*)
15576   symcode='[ABCDGIRSTW]' ;;
15577 esac
15578
15579 # Transform an extracted symbol line into a proper C declaration.
15580 # Some systems (esp. on ia64) link data and code symbols differently,
15581 # so use this general approach.
15582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15583
15584 # Transform an extracted symbol line into symbol name and symbol address
15585 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
15586
15587 # Handle CRLF in mingw tool chain
15588 opt_cr=
15589 case $build_os in
15590 mingw*)
15591   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15592   ;;
15593 esac
15594
15595 # Try without a prefix underscore, then with it.
15596 for ac_symprfx in "" "_"; do
15597
15598   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15599   symxfrm="\\1 $ac_symprfx\\2 \\2"
15600
15601   # Write the raw and C identifiers.
15602   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15603     # Fake it for dumpbin and say T for any non-static function
15604     # and D for any global variable.
15605     # Also find C++ and __fastcall symbols from MSVC++,
15606     # which start with @ or ?.
15607     lt_cv_sys_global_symbol_pipe="$AWK '"\
15608 "     {last_section=section; section=\$ 3};"\
15609 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15610 "     \$ 0!~/External *\|/{next};"\
15611 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15612 "     {if(hide[section]) next};"\
15613 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15614 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15615 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
15616 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15617 "     ' prfx=^$ac_symprfx"
15618   else
15619     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15620   fi
15621
15622   # Check to see that the pipe works correctly.
15623   pipe_works=no
15624
15625   rm -f conftest*
15626   cat > conftest.$ac_ext <<_LT_EOF
15627 #ifdef __cplusplus
15628 extern "C" {
15629 #endif
15630 char nm_test_var;
15631 void nm_test_func(void);
15632 void nm_test_func(void){}
15633 #ifdef __cplusplus
15634 }
15635 #endif
15636 int main(){nm_test_var='a';nm_test_func();return(0);}
15637 _LT_EOF
15638
15639   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640   (eval $ac_compile) 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; then
15644     # Now try to grab the symbols.
15645     nlist=conftest.nm
15646     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
15647   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } && test -s "$nlist"; then
15651       # Try sorting and uniquifying the output.
15652       if sort "$nlist" | uniq > "$nlist"T; then
15653         mv -f "$nlist"T "$nlist"
15654       else
15655         rm -f "$nlist"T
15656       fi
15657
15658       # Make sure that we snagged all the symbols we need.
15659       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15660         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15661           cat <<_LT_EOF > conftest.$ac_ext
15662 #ifdef __cplusplus
15663 extern "C" {
15664 #endif
15665
15666 _LT_EOF
15667           # Now generate the symbol file.
15668           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15669
15670           cat <<_LT_EOF >> conftest.$ac_ext
15671
15672 /* The mapping between symbol names and symbols.  */
15673 const struct {
15674   const char *name;
15675   void       *address;
15676 }
15677 lt__PROGRAM__LTX_preloaded_symbols[] =
15678 {
15679   { "@PROGRAM@", (void *) 0 },
15680 _LT_EOF
15681           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15682           cat <<\_LT_EOF >> conftest.$ac_ext
15683   {0, (void *) 0}
15684 };
15685
15686 /* This works around a problem in FreeBSD linker */
15687 #ifdef FREEBSD_WORKAROUND
15688 static const void *lt_preloaded_setup() {
15689   return lt__PROGRAM__LTX_preloaded_symbols;
15690 }
15691 #endif
15692
15693 #ifdef __cplusplus
15694 }
15695 #endif
15696 _LT_EOF
15697           # Now try linking the two files.
15698           mv conftest.$ac_objext conftstm.$ac_objext
15699           lt_save_LIBS="$LIBS"
15700           lt_save_CFLAGS="$CFLAGS"
15701           LIBS="conftstm.$ac_objext"
15702           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15703           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704   (eval $ac_link) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } && test -s conftest${ac_exeext}; then
15708             pipe_works=yes
15709           fi
15710           LIBS="$lt_save_LIBS"
15711           CFLAGS="$lt_save_CFLAGS"
15712         else
15713           echo "cannot find nm_test_func in $nlist" >&5
15714         fi
15715       else
15716         echo "cannot find nm_test_var in $nlist" >&5
15717       fi
15718     else
15719       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15720     fi
15721   else
15722     echo "$progname: failed program was:" >&5
15723     cat conftest.$ac_ext >&5
15724   fi
15725   rm -f conftest* conftst*
15726
15727   # Do not use the global_symbol_pipe unless it works.
15728   if test "$pipe_works" = yes; then
15729     break
15730   else
15731     lt_cv_sys_global_symbol_pipe=
15732   fi
15733 done
15734
15735 fi
15736
15737 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15738   lt_cv_sys_global_symbol_to_cdecl=
15739 fi
15740 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15741   echo "$as_me:$LINENO: result: failed" >&5
15742 echo "${ECHO_T}failed" >&6
15743 else
15744   echo "$as_me:$LINENO: result: ok" >&5
15745 echo "${ECHO_T}ok" >&6
15746 fi
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15765 if test "${enable_libtool_lock+set}" = set; then
15766   enableval="$enable_libtool_lock"
15767
15768 fi;
15769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15770
15771 # Some flags need to be propagated to the compiler or linker for good
15772 # libtool support.
15773 case $host in
15774 ia64-*-hpux*)
15775   # Find out which ABI we are using.
15776   echo 'int i;' > conftest.$ac_ext
15777   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778   (eval $ac_compile) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; then
15782     case `/usr/bin/file conftest.$ac_objext` in
15783       *ELF-32*)
15784         HPUX_IA64_MODE="32"
15785         ;;
15786       *ELF-64*)
15787         HPUX_IA64_MODE="64"
15788         ;;
15789     esac
15790   fi
15791   rm -rf conftest*
15792   ;;
15793 *-*-irix6*)
15794   # Find out which ABI we are using.
15795   echo '#line 15795 "configure"' > conftest.$ac_ext
15796   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797   (eval $ac_compile) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; then
15801     if test "$lt_cv_prog_gnu_ld" = yes; then
15802       case `/usr/bin/file conftest.$ac_objext` in
15803         *32-bit*)
15804           LD="${LD-ld} -melf32bsmip"
15805           ;;
15806         *N32*)
15807           LD="${LD-ld} -melf32bmipn32"
15808           ;;
15809         *64-bit*)
15810           LD="${LD-ld} -melf64bmip"
15811         ;;
15812       esac
15813     else
15814       case `/usr/bin/file conftest.$ac_objext` in
15815         *32-bit*)
15816           LD="${LD-ld} -32"
15817           ;;
15818         *N32*)
15819           LD="${LD-ld} -n32"
15820           ;;
15821         *64-bit*)
15822           LD="${LD-ld} -64"
15823           ;;
15824       esac
15825     fi
15826   fi
15827   rm -rf conftest*
15828   ;;
15829
15830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15831 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15832   # Find out which ABI we are using.
15833   echo 'int i;' > conftest.$ac_ext
15834   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835   (eval $ac_compile) 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; then
15839     case `/usr/bin/file conftest.o` in
15840       *32-bit*)
15841         case $host in
15842           x86_64-*kfreebsd*-gnu)
15843             LD="${LD-ld} -m elf_i386_fbsd"
15844             ;;
15845           x86_64-*linux*)
15846             LD="${LD-ld} -m elf_i386"
15847             ;;
15848           ppc64-*linux*|powerpc64-*linux*)
15849             LD="${LD-ld} -m elf32ppclinux"
15850             ;;
15851           s390x-*linux*)
15852             LD="${LD-ld} -m elf_s390"
15853             ;;
15854           sparc64-*linux*)
15855             LD="${LD-ld} -m elf32_sparc"
15856             ;;
15857         esac
15858         ;;
15859       *64-bit*)
15860         case $host in
15861           x86_64-*kfreebsd*-gnu)
15862             LD="${LD-ld} -m elf_x86_64_fbsd"
15863             ;;
15864           x86_64-*linux*)
15865             LD="${LD-ld} -m elf_x86_64"
15866             ;;
15867           ppc*-*linux*|powerpc*-*linux*)
15868             LD="${LD-ld} -m elf64ppc"
15869             ;;
15870           s390*-*linux*|s390*-*tpf*)
15871             LD="${LD-ld} -m elf64_s390"
15872             ;;
15873           sparc*-*linux*)
15874             LD="${LD-ld} -m elf64_sparc"
15875             ;;
15876         esac
15877         ;;
15878     esac
15879   fi
15880   rm -rf conftest*
15881   ;;
15882
15883 *-*-sco3.2v5*)
15884   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15885   SAVE_CFLAGS="$CFLAGS"
15886   CFLAGS="$CFLAGS -belf"
15887   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15888 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15889 if test "${lt_cv_cc_needs_belf+set}" = set; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   ac_ext=c
15893 ac_cpp='$CPP $CPPFLAGS'
15894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15897
15898      cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904
15905 int
15906 main ()
15907 {
15908
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915   (eval $ac_link) 2>conftest.er1
15916   ac_status=$?
15917   grep -v '^ *+' conftest.er1 >conftest.err
15918   rm -f conftest.er1
15919   cat conftest.err >&5
15920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921   (exit $ac_status); } &&
15922          { ac_try='test -z "$ac_c_werror_flag"
15923                          || test ! -s conftest.err'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; } &&
15929          { ac_try='test -s conftest$ac_exeext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   lt_cv_cc_needs_belf=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 lt_cv_cc_needs_belf=no
15941 fi
15942 rm -f conftest.err conftest.$ac_objext \
15943       conftest$ac_exeext conftest.$ac_ext
15944      ac_ext=c
15945 ac_cpp='$CPP $CPPFLAGS'
15946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15949
15950 fi
15951 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15952 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15953   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15954     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15955     CFLAGS="$SAVE_CFLAGS"
15956   fi
15957   ;;
15958 sparc*-*solaris*)
15959   # Find out which ABI we are using.
15960   echo 'int i;' > conftest.$ac_ext
15961   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15962   (eval $ac_compile) 2>&5
15963   ac_status=$?
15964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965   (exit $ac_status); }; then
15966     case `/usr/bin/file conftest.o` in
15967     *64-bit*)
15968       case $lt_cv_prog_gnu_ld in
15969       yes*) LD="${LD-ld} -m elf64_sparc" ;;
15970       *)    LD="${LD-ld} -64" ;;
15971       esac
15972       ;;
15973     esac
15974   fi
15975   rm -rf conftest*
15976   ;;
15977 esac
15978
15979 need_locks="$enable_libtool_lock"
15980
15981
15982 for ac_header in dlfcn.h
15983 do
15984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15985 echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   cat >conftest.$ac_ext <<_ACEOF
15991 /* confdefs.h.  */
15992 _ACEOF
15993 cat confdefs.h >>conftest.$ac_ext
15994 cat >>conftest.$ac_ext <<_ACEOF
15995 /* end confdefs.h.  */
15996 #include <$ac_header>
15997 _ACEOF
15998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } >/dev/null; then
16006   if test -s conftest.err; then
16007     ac_cpp_err=$ac_c_preproc_warn_flag
16008     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16009   else
16010     ac_cpp_err=
16011   fi
16012 else
16013   ac_cpp_err=yes
16014 fi
16015 if test -z "$ac_cpp_err"; then
16016   eval "$as_ac_Header=yes"
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021   eval "$as_ac_Header=no"
16022 fi
16023 rm -f conftest.err conftest.$ac_ext
16024 fi
16025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16028   cat >>confdefs.h <<_ACEOF
16029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16030 _ACEOF
16031
16032 fi
16033 done
16034
16035
16036
16037 # This can be used to rebuild libtool when needed
16038 LIBTOOL_DEPS="$ltmain"
16039
16040 # Always use our own libtool.
16041 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067 test -z "$LN_S" && LN_S="ln -s"
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082 if test -n "${ZSH_VERSION+set}" ; then
16083    setopt NO_GLOB_SUBST
16084 fi
16085
16086 echo "$as_me:$LINENO: checking for objdir" >&5
16087 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16088 if test "${lt_cv_objdir+set}" = set; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 else
16091   rm -f .libs 2>/dev/null
16092 mkdir .libs 2>/dev/null
16093 if test -d .libs; then
16094   lt_cv_objdir=.libs
16095 else
16096   # MS-DOS does not allow filenames that begin with a dot.
16097   lt_cv_objdir=_libs
16098 fi
16099 rmdir .libs 2>/dev/null
16100 fi
16101 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16102 echo "${ECHO_T}$lt_cv_objdir" >&6
16103 objdir=$lt_cv_objdir
16104
16105
16106
16107
16108
16109 cat >>confdefs.h <<_ACEOF
16110 #define LT_OBJDIR "$lt_cv_objdir/"
16111 _ACEOF
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129 case $host_os in
16130 aix3*)
16131   # AIX sometimes has problems with the GCC collect2 program.  For some
16132   # reason, if we set the COLLECT_NAMES environment variable, the problems
16133   # vanish in a puff of smoke.
16134   if test "X${COLLECT_NAMES+set}" != Xset; then
16135     COLLECT_NAMES=
16136     export COLLECT_NAMES
16137   fi
16138   ;;
16139 esac
16140
16141 # Sed substitution that helps us do robust quoting.  It backslashifies
16142 # metacharacters that are still active within double-quoted strings.
16143 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
16144
16145 # Same as above, but do not quote variable references.
16146 double_quote_subst='s/\(["`\\]\)/\\\1/g'
16147
16148 # Sed substitution to delay expansion of an escaped shell variable in a
16149 # double_quote_subst'ed string.
16150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16151
16152 # Sed substitution to delay expansion of an escaped single quote.
16153 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
16154
16155 # Sed substitution to avoid accidental globbing in evaled expressions
16156 no_glob_subst='s/\*/\\\*/g'
16157
16158 # Global variables:
16159 ofile=libtool
16160 can_build_shared=yes
16161
16162 # All known linkers require a `.a' archive for static linking (except MSVC,
16163 # which needs '.lib').
16164 libext=a
16165
16166 with_gnu_ld="$lt_cv_prog_gnu_ld"
16167
16168 old_CC="$CC"
16169 old_CFLAGS="$CFLAGS"
16170
16171 # Set sane defaults for various variables
16172 test -z "$CC" && CC=cc
16173 test -z "$LTCC" && LTCC=$CC
16174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16175 test -z "$LD" && LD=ld
16176 test -z "$ac_objext" && ac_objext=o
16177
16178 for cc_temp in $compiler""; do
16179   case $cc_temp in
16180     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16181     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16182     \-*) ;;
16183     *) break;;
16184   esac
16185 done
16186 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16187
16188
16189 # Only perform the check for file, if the check method requires it
16190 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16191 case $deplibs_check_method in
16192 file_magic*)
16193   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16194     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16195 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16196 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16197   echo $ECHO_N "(cached) $ECHO_C" >&6
16198 else
16199   case $MAGIC_CMD in
16200 [\\/*] |  ?:[\\/]*)
16201   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16202   ;;
16203 *)
16204   lt_save_MAGIC_CMD="$MAGIC_CMD"
16205   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16206   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16207   for ac_dir in $ac_dummy; do
16208     IFS="$lt_save_ifs"
16209     test -z "$ac_dir" && ac_dir=.
16210     if test -f $ac_dir/${ac_tool_prefix}file; then
16211       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16212       if test -n "$file_magic_test_file"; then
16213         case $deplibs_check_method in
16214         "file_magic "*)
16215           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16216           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16217           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16218             $EGREP "$file_magic_regex" > /dev/null; then
16219             :
16220           else
16221             cat <<_LT_EOF 1>&2
16222
16223 *** Warning: the command libtool uses to detect shared libraries,
16224 *** $file_magic_cmd, produces output that libtool cannot recognize.
16225 *** The result is that libtool may fail to recognize shared libraries
16226 *** as such.  This will affect the creation of libtool libraries that
16227 *** depend on shared libraries, but programs linked with such libtool
16228 *** libraries will work regardless of this problem.  Nevertheless, you
16229 *** may want to report the problem to your system manager and/or to
16230 *** bug-libtool@gnu.org
16231
16232 _LT_EOF
16233           fi ;;
16234         esac
16235       fi
16236       break
16237     fi
16238   done
16239   IFS="$lt_save_ifs"
16240   MAGIC_CMD="$lt_save_MAGIC_CMD"
16241   ;;
16242 esac
16243 fi
16244
16245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16246 if test -n "$MAGIC_CMD"; then
16247   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16248 echo "${ECHO_T}$MAGIC_CMD" >&6
16249 else
16250   echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6
16252 fi
16253
16254
16255
16256
16257
16258 if test -z "$lt_cv_path_MAGIC_CMD"; then
16259   if test -n "$ac_tool_prefix"; then
16260     echo "$as_me:$LINENO: checking for file" >&5
16261 echo $ECHO_N "checking for file... $ECHO_C" >&6
16262 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   case $MAGIC_CMD in
16266 [\\/*] |  ?:[\\/]*)
16267   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16268   ;;
16269 *)
16270   lt_save_MAGIC_CMD="$MAGIC_CMD"
16271   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16272   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16273   for ac_dir in $ac_dummy; do
16274     IFS="$lt_save_ifs"
16275     test -z "$ac_dir" && ac_dir=.
16276     if test -f $ac_dir/file; then
16277       lt_cv_path_MAGIC_CMD="$ac_dir/file"
16278       if test -n "$file_magic_test_file"; then
16279         case $deplibs_check_method in
16280         "file_magic "*)
16281           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16282           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16283           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16284             $EGREP "$file_magic_regex" > /dev/null; then
16285             :
16286           else
16287             cat <<_LT_EOF 1>&2
16288
16289 *** Warning: the command libtool uses to detect shared libraries,
16290 *** $file_magic_cmd, produces output that libtool cannot recognize.
16291 *** The result is that libtool may fail to recognize shared libraries
16292 *** as such.  This will affect the creation of libtool libraries that
16293 *** depend on shared libraries, but programs linked with such libtool
16294 *** libraries will work regardless of this problem.  Nevertheless, you
16295 *** may want to report the problem to your system manager and/or to
16296 *** bug-libtool@gnu.org
16297
16298 _LT_EOF
16299           fi ;;
16300         esac
16301       fi
16302       break
16303     fi
16304   done
16305   IFS="$lt_save_ifs"
16306   MAGIC_CMD="$lt_save_MAGIC_CMD"
16307   ;;
16308 esac
16309 fi
16310
16311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16312 if test -n "$MAGIC_CMD"; then
16313   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16314 echo "${ECHO_T}$MAGIC_CMD" >&6
16315 else
16316   echo "$as_me:$LINENO: result: no" >&5
16317 echo "${ECHO_T}no" >&6
16318 fi
16319
16320
16321   else
16322     MAGIC_CMD=:
16323   fi
16324 fi
16325
16326   fi
16327   ;;
16328 esac
16329
16330 # Use C for the default configuration in the libtool script
16331
16332 lt_save_CC="$CC"
16333 ac_ext=c
16334 ac_cpp='$CPP $CPPFLAGS'
16335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16338
16339
16340 # Source file extension for C test sources.
16341 ac_ext=c
16342
16343 # Object file extension for compiled C test sources.
16344 objext=o
16345 objext=$objext
16346
16347 # Code to be used in simple compile tests
16348 lt_simple_compile_test_code="int some_variable = 0;"
16349
16350 # Code to be used in simple link tests
16351 lt_simple_link_test_code='int main(){return(0);}'
16352
16353
16354
16355
16356
16357
16358
16359 # If no C compiler was specified, use CC.
16360 LTCC=${LTCC-"$CC"}
16361
16362 # If no C compiler flags were specified, use CFLAGS.
16363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16364
16365 # Allow CC to be a program name with arguments.
16366 compiler=$CC
16367
16368 # Save the default compiler, since it gets overwritten when the other
16369 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16370 compiler_DEFAULT=$CC
16371
16372 # save warnings/boilerplate of simple test code
16373 ac_outfile=conftest.$ac_objext
16374 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16375 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16376 _lt_compiler_boilerplate=`cat conftest.err`
16377 $RM conftest*
16378
16379 ac_outfile=conftest.$ac_objext
16380 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16381 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16382 _lt_linker_boilerplate=`cat conftest.err`
16383 $RM conftest*
16384
16385
16386 ## CAVEAT EMPTOR:
16387 ## There is no encapsulation within the following macros, do not change
16388 ## the running order or otherwise move them around unless you know exactly
16389 ## what you are doing...
16390 if test -n "$compiler"; then
16391
16392 lt_prog_compiler_no_builtin_flag=
16393
16394 if test "$GCC" = yes; then
16395   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16396
16397   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16398 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16399 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   lt_cv_prog_compiler_rtti_exceptions=no
16403    ac_outfile=conftest.$ac_objext
16404    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16405    lt_compiler_flag="-fno-rtti -fno-exceptions"
16406    # Insert the option either (1) after the last *FLAGS variable, or
16407    # (2) before a word containing "conftest.", or (3) at the end.
16408    # Note that $ac_compile itself does not contain backslashes and begins
16409    # with a dollar sign (not a hyphen), so the echo should work correctly.
16410    # The option is referenced via a variable to avoid confusing sed.
16411    lt_compile=`echo "$ac_compile" | $SED \
16412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414    -e 's:$: $lt_compiler_flag:'`
16415    (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
16416    (eval "$lt_compile" 2>conftest.err)
16417    ac_status=$?
16418    cat conftest.err >&5
16419    echo "$as_me:16419: \$? = $ac_status" >&5
16420    if (exit $ac_status) && test -s "$ac_outfile"; then
16421      # The compiler can only warn and ignore the option if not recognized
16422      # So say no if there are warnings other than the usual output.
16423      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16424      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16425      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16426        lt_cv_prog_compiler_rtti_exceptions=yes
16427      fi
16428    fi
16429    $RM conftest*
16430
16431 fi
16432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16433 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16434
16435 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16436     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16437 else
16438     :
16439 fi
16440
16441 fi
16442
16443
16444
16445
16446
16447
16448   lt_prog_compiler_wl=
16449 lt_prog_compiler_pic=
16450 lt_prog_compiler_static=
16451
16452 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16454
16455   if test "$GCC" = yes; then
16456     lt_prog_compiler_wl='-Wl,'
16457     lt_prog_compiler_static='-static'
16458
16459     case $host_os in
16460       aix*)
16461       # All AIX code is PIC.
16462       if test "$host_cpu" = ia64; then
16463         # AIX 5 now supports IA64 processor
16464         lt_prog_compiler_static='-Bstatic'
16465       fi
16466       ;;
16467
16468     amigaos*)
16469       if test "$host_cpu" = m68k; then
16470         # FIXME: we need at least 68020 code to build shared libraries, but
16471         # adding the `-m68020' flag to GCC prevents building anything better,
16472         # like `-m68040'.
16473         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16474       fi
16475       ;;
16476
16477     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16478       # PIC is the default for these OSes.
16479       ;;
16480
16481     mingw* | cygwin* | pw32* | os2*)
16482       # This hack is so that the source file can tell whether it is being
16483       # built for inclusion in a dll (and should export symbols for example).
16484       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16485       # (--disable-auto-import) libraries
16486       lt_prog_compiler_pic='-DDLL_EXPORT'
16487       ;;
16488
16489     darwin* | rhapsody*)
16490       # PIC is the default on this platform
16491       # Common symbols not allowed in MH_DYLIB files
16492       lt_prog_compiler_pic='-fno-common'
16493       ;;
16494
16495     hpux*)
16496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16497       # not for PA HP-UX.
16498       case $host_cpu in
16499       hppa*64*|ia64*)
16500         # +Z the default
16501         ;;
16502       *)
16503         lt_prog_compiler_pic='-fPIC'
16504         ;;
16505       esac
16506       ;;
16507
16508     interix[3-9]*)
16509       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16510       # Instead, we relocate shared libraries at runtime.
16511       ;;
16512
16513     msdosdjgpp*)
16514       # Just because we use GCC doesn't mean we suddenly get shared libraries
16515       # on systems that don't support them.
16516       lt_prog_compiler_can_build_shared=no
16517       enable_shared=no
16518       ;;
16519
16520     *nto* | *qnx*)
16521       # QNX uses GNU C++, but need to define -shared option too, otherwise
16522       # it will coredump.
16523       lt_prog_compiler_pic='-fPIC -shared'
16524       ;;
16525
16526     sysv4*MP*)
16527       if test -d /usr/nec; then
16528         lt_prog_compiler_pic=-Kconform_pic
16529       fi
16530       ;;
16531
16532     *)
16533       lt_prog_compiler_pic='-fPIC'
16534       ;;
16535     esac
16536   else
16537     # PORTME Check for flag to pass linker flags through the system compiler.
16538     case $host_os in
16539     aix*)
16540       lt_prog_compiler_wl='-Wl,'
16541       if test "$host_cpu" = ia64; then
16542         # AIX 5 now supports IA64 processor
16543         lt_prog_compiler_static='-Bstatic'
16544       else
16545         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16546       fi
16547       ;;
16548     darwin*)
16549       # PIC is the default on this platform
16550       # Common symbols not allowed in MH_DYLIB files
16551       case $cc_basename in
16552       xlc*)
16553         lt_prog_compiler_pic='-qnocommon'
16554         lt_prog_compiler_wl='-Wl,'
16555         ;;
16556       esac
16557       ;;
16558
16559     mingw* | cygwin* | pw32* | os2*)
16560       # This hack is so that the source file can tell whether it is being
16561       # built for inclusion in a dll (and should export symbols for example).
16562       lt_prog_compiler_pic='-DDLL_EXPORT'
16563       ;;
16564
16565     hpux9* | hpux10* | hpux11*)
16566       lt_prog_compiler_wl='-Wl,'
16567       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16568       # not for PA HP-UX.
16569       case $host_cpu in
16570       hppa*64*|ia64*)
16571         # +Z the default
16572         ;;
16573       *)
16574         lt_prog_compiler_pic='+Z'
16575         ;;
16576       esac
16577       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16578       lt_prog_compiler_static='${wl}-a ${wl}archive'
16579       ;;
16580
16581     irix5* | irix6* | nonstopux*)
16582       lt_prog_compiler_wl='-Wl,'
16583       # PIC (with -KPIC) is the default.
16584       lt_prog_compiler_static='-non_shared'
16585       ;;
16586
16587     linux* | k*bsd*-gnu)
16588       case $cc_basename in
16589       icc* | ecc*)
16590         lt_prog_compiler_wl='-Wl,'
16591         lt_prog_compiler_pic='-KPIC'
16592         lt_prog_compiler_static='-static'
16593         ;;
16594       pgcc* | pgf77* | pgf90* | pgf95*)
16595         # Portland Group compilers (*not* the Pentium gcc compiler,
16596         # which looks to be a dead project)
16597         lt_prog_compiler_wl='-Wl,'
16598         lt_prog_compiler_pic='-fpic'
16599         lt_prog_compiler_static='-Bstatic'
16600         ;;
16601       ccc*)
16602         lt_prog_compiler_wl='-Wl,'
16603         # All Alpha code is PIC.
16604         lt_prog_compiler_static='-non_shared'
16605         ;;
16606       *)
16607         case `$CC -V 2>&1 | sed 5q` in
16608         *Sun\ C*)
16609           # Sun C 5.9
16610           lt_prog_compiler_pic='-KPIC'
16611           lt_prog_compiler_static='-Bstatic'
16612           lt_prog_compiler_wl='-Wl,'
16613           ;;
16614         *Sun\ F*)
16615           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16616           lt_prog_compiler_pic='-KPIC'
16617           lt_prog_compiler_static='-Bstatic'
16618           lt_prog_compiler_wl=''
16619           ;;
16620         esac
16621         ;;
16622       esac
16623       ;;
16624
16625     newsos6)
16626       lt_prog_compiler_pic='-KPIC'
16627       lt_prog_compiler_static='-Bstatic'
16628       ;;
16629
16630     *nto* | *qnx*)
16631       # QNX uses GNU C++, but need to define -shared option too, otherwise
16632       # it will coredump.
16633       lt_prog_compiler_pic='-fPIC -shared'
16634       ;;
16635
16636     osf3* | osf4* | osf5*)
16637       lt_prog_compiler_wl='-Wl,'
16638       # All OSF/1 code is PIC.
16639       lt_prog_compiler_static='-non_shared'
16640       ;;
16641
16642     rdos*)
16643       lt_prog_compiler_static='-non_shared'
16644       ;;
16645
16646     solaris*)
16647       lt_prog_compiler_pic='-KPIC'
16648       lt_prog_compiler_static='-Bstatic'
16649       case $cc_basename in
16650       f77* | f90* | f95*)
16651         lt_prog_compiler_wl='-Qoption ld ';;
16652       *)
16653         lt_prog_compiler_wl='-Wl,';;
16654       esac
16655       ;;
16656
16657     sunos4*)
16658       lt_prog_compiler_wl='-Qoption ld '
16659       lt_prog_compiler_pic='-PIC'
16660       lt_prog_compiler_static='-Bstatic'
16661       ;;
16662
16663     sysv4 | sysv4.2uw2* | sysv4.3*)
16664       lt_prog_compiler_wl='-Wl,'
16665       lt_prog_compiler_pic='-KPIC'
16666       lt_prog_compiler_static='-Bstatic'
16667       ;;
16668
16669     sysv4*MP*)
16670       if test -d /usr/nec ;then
16671         lt_prog_compiler_pic='-Kconform_pic'
16672         lt_prog_compiler_static='-Bstatic'
16673       fi
16674       ;;
16675
16676     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16677       lt_prog_compiler_wl='-Wl,'
16678       lt_prog_compiler_pic='-KPIC'
16679       lt_prog_compiler_static='-Bstatic'
16680       ;;
16681
16682     unicos*)
16683       lt_prog_compiler_wl='-Wl,'
16684       lt_prog_compiler_can_build_shared=no
16685       ;;
16686
16687     uts4*)
16688       lt_prog_compiler_pic='-pic'
16689       lt_prog_compiler_static='-Bstatic'
16690       ;;
16691
16692     *)
16693       lt_prog_compiler_can_build_shared=no
16694       ;;
16695     esac
16696   fi
16697
16698 case $host_os in
16699   # For platforms which do not support PIC, -DPIC is meaningless:
16700   *djgpp*)
16701     lt_prog_compiler_pic=
16702     ;;
16703   *)
16704     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16705     ;;
16706 esac
16707 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
16709
16710
16711
16712
16713
16714
16715 #
16716 # Check to make sure the PIC flag actually works.
16717 #
16718 if test -n "$lt_prog_compiler_pic"; then
16719   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
16721 if test "${lt_prog_compiler_pic_works+set}" = set; then
16722   echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724   lt_prog_compiler_pic_works=no
16725    ac_outfile=conftest.$ac_objext
16726    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16727    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16728    # Insert the option either (1) after the last *FLAGS variable, or
16729    # (2) before a word containing "conftest.", or (3) at the end.
16730    # Note that $ac_compile itself does not contain backslashes and begins
16731    # with a dollar sign (not a hyphen), so the echo should work correctly.
16732    # The option is referenced via a variable to avoid confusing sed.
16733    lt_compile=`echo "$ac_compile" | $SED \
16734    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16735    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16736    -e 's:$: $lt_compiler_flag:'`
16737    (eval echo "\"\$as_me:16737: $lt_compile\"" >&5)
16738    (eval "$lt_compile" 2>conftest.err)
16739    ac_status=$?
16740    cat conftest.err >&5
16741    echo "$as_me:16741: \$? = $ac_status" >&5
16742    if (exit $ac_status) && test -s "$ac_outfile"; then
16743      # The compiler can only warn and ignore the option if not recognized
16744      # So say no if there are warnings other than the usual output.
16745      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16746      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16747      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16748        lt_prog_compiler_pic_works=yes
16749      fi
16750    fi
16751    $RM conftest*
16752
16753 fi
16754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
16756
16757 if test x"$lt_prog_compiler_pic_works" = xyes; then
16758     case $lt_prog_compiler_pic in
16759      "" | " "*) ;;
16760      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16761      esac
16762 else
16763     lt_prog_compiler_pic=
16764      lt_prog_compiler_can_build_shared=no
16765 fi
16766
16767 fi
16768
16769
16770
16771
16772
16773
16774 #
16775 # Check to make sure the static flag actually works.
16776 #
16777 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16778 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16779 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16780 if test "${lt_prog_compiler_static_works+set}" = set; then
16781   echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783   lt_prog_compiler_static_works=no
16784    save_LDFLAGS="$LDFLAGS"
16785    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16786    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16787    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16788      # The linker can only warn and ignore the option if not recognized
16789      # So say no if there are warnings
16790      if test -s conftest.err; then
16791        # Append any errors to the config.log.
16792        cat conftest.err 1>&5
16793        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16794        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16795        if diff conftest.exp conftest.er2 >/dev/null; then
16796          lt_prog_compiler_static_works=yes
16797        fi
16798      else
16799        lt_prog_compiler_static_works=yes
16800      fi
16801    fi
16802    $RM conftest*
16803    LDFLAGS="$save_LDFLAGS"
16804
16805 fi
16806 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
16807 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
16808
16809 if test x"$lt_prog_compiler_static_works" = xyes; then
16810     :
16811 else
16812     lt_prog_compiler_static=
16813 fi
16814
16815
16816
16817
16818
16819
16820
16821   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16822 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16823 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826   lt_cv_prog_compiler_c_o=no
16827    $RM -r conftest 2>/dev/null
16828    mkdir conftest
16829    cd conftest
16830    mkdir out
16831    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16832
16833    lt_compiler_flag="-o out/conftest2.$ac_objext"
16834    # Insert the option either (1) after the last *FLAGS variable, or
16835    # (2) before a word containing "conftest.", or (3) at the end.
16836    # Note that $ac_compile itself does not contain backslashes and begins
16837    # with a dollar sign (not a hyphen), so the echo should work correctly.
16838    lt_compile=`echo "$ac_compile" | $SED \
16839    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16840    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16841    -e 's:$: $lt_compiler_flag:'`
16842    (eval echo "\"\$as_me:16842: $lt_compile\"" >&5)
16843    (eval "$lt_compile" 2>out/conftest.err)
16844    ac_status=$?
16845    cat out/conftest.err >&5
16846    echo "$as_me:16846: \$? = $ac_status" >&5
16847    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16848    then
16849      # The compiler can only warn and ignore the option if not recognized
16850      # So say no if there are warnings
16851      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16852      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16853      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16854        lt_cv_prog_compiler_c_o=yes
16855      fi
16856    fi
16857    chmod u+w . 2>&5
16858    $RM conftest*
16859    # SGI C++ compiler will create directory out/ii_files/ for
16860    # template instantiation
16861    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16862    $RM out/* && rmdir out
16863    cd ..
16864    $RM -r conftest
16865    $RM conftest*
16866
16867 fi
16868 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16869 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16870
16871
16872
16873
16874
16875
16876   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
16879   echo $ECHO_N "(cached) $ECHO_C" >&6
16880 else
16881   lt_cv_prog_compiler_c_o=no
16882    $RM -r conftest 2>/dev/null
16883    mkdir conftest
16884    cd conftest
16885    mkdir out
16886    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16887
16888    lt_compiler_flag="-o out/conftest2.$ac_objext"
16889    # Insert the option either (1) after the last *FLAGS variable, or
16890    # (2) before a word containing "conftest.", or (3) at the end.
16891    # Note that $ac_compile itself does not contain backslashes and begins
16892    # with a dollar sign (not a hyphen), so the echo should work correctly.
16893    lt_compile=`echo "$ac_compile" | $SED \
16894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16896    -e 's:$: $lt_compiler_flag:'`
16897    (eval echo "\"\$as_me:16897: $lt_compile\"" >&5)
16898    (eval "$lt_compile" 2>out/conftest.err)
16899    ac_status=$?
16900    cat out/conftest.err >&5
16901    echo "$as_me:16901: \$? = $ac_status" >&5
16902    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16903    then
16904      # The compiler can only warn and ignore the option if not recognized
16905      # So say no if there are warnings
16906      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16907      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16908      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16909        lt_cv_prog_compiler_c_o=yes
16910      fi
16911    fi
16912    chmod u+w . 2>&5
16913    $RM conftest*
16914    # SGI C++ compiler will create directory out/ii_files/ for
16915    # template instantiation
16916    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16917    $RM out/* && rmdir out
16918    cd ..
16919    $RM -r conftest
16920    $RM conftest*
16921
16922 fi
16923 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
16924 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
16925
16926
16927
16928
16929 hard_links="nottested"
16930 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16931   # do not overwrite the value of need_locks provided by the user
16932   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16933 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16934   hard_links=yes
16935   $RM conftest*
16936   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16937   touch conftest.a
16938   ln conftest.a conftest.b 2>&5 || hard_links=no
16939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16940   echo "$as_me:$LINENO: result: $hard_links" >&5
16941 echo "${ECHO_T}$hard_links" >&6
16942   if test "$hard_links" = no; then
16943     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16944 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16945     need_locks=warn
16946   fi
16947 else
16948   need_locks=no
16949 fi
16950
16951
16952
16953
16954
16955
16956   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16957 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16958
16959   runpath_var=
16960   allow_undefined_flag=
16961   always_export_symbols=no
16962   archive_cmds=
16963   archive_expsym_cmds=
16964   compiler_needs_object=no
16965   enable_shared_with_static_runtimes=no
16966   export_dynamic_flag_spec=
16967   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16968   hardcode_automatic=no
16969   hardcode_direct=no
16970   hardcode_direct_absolute=no
16971   hardcode_libdir_flag_spec=
16972   hardcode_libdir_flag_spec_ld=
16973   hardcode_libdir_separator=
16974   hardcode_minus_L=no
16975   hardcode_shlibpath_var=unsupported
16976   inherit_rpath=no
16977   link_all_deplibs=unknown
16978   module_cmds=
16979   module_expsym_cmds=
16980   old_archive_from_new_cmds=
16981   old_archive_from_expsyms_cmds=
16982   thread_safe_flag_spec=
16983   whole_archive_flag_spec=
16984   # include_expsyms should be a list of space-separated symbols to be *always*
16985   # included in the symbol list
16986   include_expsyms=
16987   # exclude_expsyms can be an extended regexp of symbols to exclude
16988   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16989   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16990   # as well as any symbol that contains `d'.
16991   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
16992   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16993   # platforms (ab)use it in PIC code, but their linkers get confused if
16994   # the symbol is explicitly referenced.  Since portable code cannot
16995   # rely on this symbol name, it's probably fine to never include it in
16996   # preloaded symbol tables.
16997   extract_expsyms_cmds=
16998
16999   case $host_os in
17000   cygwin* | mingw* | pw32*)
17001     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17002     # When not using gcc, we currently assume that we are using
17003     # Microsoft Visual C++.
17004     if test "$GCC" != yes; then
17005       with_gnu_ld=no
17006     fi
17007     ;;
17008   interix*)
17009     # we just hope/assume this is gcc and not c89 (= MSVC++)
17010     with_gnu_ld=yes
17011     ;;
17012   openbsd*)
17013     with_gnu_ld=no
17014     ;;
17015   esac
17016
17017   ld_shlibs=yes
17018   if test "$with_gnu_ld" = yes; then
17019     # If archive_cmds runs LD, not CC, wlarc should be empty
17020     wlarc='${wl}'
17021
17022     # Set some defaults for GNU ld with shared library support. These
17023     # are reset later if shared libraries are not supported. Putting them
17024     # here allows them to be overridden if necessary.
17025     runpath_var=LD_RUN_PATH
17026     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17027     export_dynamic_flag_spec='${wl}--export-dynamic'
17028     # ancient GNU ld didn't support --whole-archive et. al.
17029     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17030       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17031     else
17032       whole_archive_flag_spec=
17033     fi
17034     supports_anon_versioning=no
17035     case `$LD -v 2>&1` in
17036       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17037       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17038       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17039       *\ 2.11.*) ;; # other 2.11 versions
17040       *) supports_anon_versioning=yes ;;
17041     esac
17042
17043     # See if GNU ld supports shared libraries.
17044     case $host_os in
17045     aix[3-9]*)
17046       # On AIX/PPC, the GNU linker is very broken
17047       if test "$host_cpu" != ia64; then
17048         ld_shlibs=no
17049         cat <<_LT_EOF 1>&2
17050
17051 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17052 *** to be unable to reliably create shared libraries on AIX.
17053 *** Therefore, libtool is disabling shared libraries support.  If you
17054 *** really care for shared libraries, you may want to modify your PATH
17055 *** so that a non-GNU linker is found, and then restart.
17056
17057 _LT_EOF
17058       fi
17059       ;;
17060
17061     amigaos*)
17062       if test "$host_cpu" = m68k; then
17063         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)'
17064         hardcode_libdir_flag_spec='-L$libdir'
17065         hardcode_minus_L=yes
17066       fi
17067
17068       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17069       # that the semantics of dynamic libraries on AmigaOS, at least up
17070       # to version 4, is to share data among multiple programs linked
17071       # with the same dynamic library.  Since this doesn't match the
17072       # behavior of shared libraries on other platforms, we can't use
17073       # them.
17074       ld_shlibs=no
17075       ;;
17076
17077     beos*)
17078       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17079         allow_undefined_flag=unsupported
17080         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17081         # support --undefined.  This deserves some investigation.  FIXME
17082         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17083       else
17084         ld_shlibs=no
17085       fi
17086       ;;
17087
17088     cygwin* | mingw* | pw32*)
17089       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17090       # as there is no search path for DLLs.
17091       hardcode_libdir_flag_spec='-L$libdir'
17092       allow_undefined_flag=unsupported
17093       always_export_symbols=no
17094       enable_shared_with_static_runtimes=yes
17095       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17096
17097       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17098         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17099         # If the export-symbols file already is a .def file (1st line
17100         # is EXPORTS), use it as is; otherwise, prepend...
17101         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17102           cp $export_symbols $output_objdir/$soname.def;
17103         else
17104           echo EXPORTS > $output_objdir/$soname.def;
17105           cat $export_symbols >> $output_objdir/$soname.def;
17106         fi~
17107         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17108       else
17109         ld_shlibs=no
17110       fi
17111       ;;
17112
17113     interix[3-9]*)
17114       hardcode_direct=no
17115       hardcode_shlibpath_var=no
17116       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17117       export_dynamic_flag_spec='${wl}-E'
17118       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17119       # Instead, shared libraries are loaded at an image base (0x10000000 by
17120       # default) and relocated if they conflict, which is a slow very memory
17121       # consuming and fragmenting process.  To avoid this, we pick a random,
17122       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17123       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17124       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17125       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'
17126       ;;
17127
17128     gnu* | linux* | tpf* | k*bsd*-gnu)
17129       tmp_diet=no
17130       if test "$host_os" = linux-dietlibc; then
17131         case $cc_basename in
17132           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17133         esac
17134       fi
17135       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17136          && test "$tmp_diet" = no
17137       then
17138         tmp_addflag=
17139         case $cc_basename,$host_cpu in
17140         pgcc*)                          # Portland Group C compiler
17141           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'
17142           tmp_addflag=' $pic_flag'
17143           ;;
17144         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17145           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'
17146           tmp_addflag=' $pic_flag -Mnomain' ;;
17147         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17148           tmp_addflag=' -i_dynamic' ;;
17149         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17150           tmp_addflag=' -i_dynamic -nofor_main' ;;
17151         ifc* | ifort*)                  # Intel Fortran compiler
17152           tmp_addflag=' -nofor_main' ;;
17153         esac
17154         case `$CC -V 2>&1 | sed 5q` in
17155         *Sun\ C*)                       # Sun C 5.9
17156           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'
17157           compiler_needs_object=yes
17158           tmp_sharedflag='-G' ;;
17159         *Sun\ F*)                       # Sun Fortran 8.3
17160           tmp_sharedflag='-G' ;;
17161         *)
17162           tmp_sharedflag='-shared' ;;
17163         esac
17164         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17165
17166         if test "x$supports_anon_versioning" = xyes; then
17167           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17168             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17169             echo "local: *; };" >> $output_objdir/$libname.ver~
17170             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17171         fi
17172       else
17173         ld_shlibs=no
17174       fi
17175       ;;
17176
17177     netbsd*)
17178       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17179         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17180         wlarc=
17181       else
17182         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17183         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17184       fi
17185       ;;
17186
17187     solaris*)
17188       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17189         ld_shlibs=no
17190         cat <<_LT_EOF 1>&2
17191
17192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17193 *** create shared libraries on Solaris systems.  Therefore, libtool
17194 *** is disabling shared libraries support.  We urge you to upgrade GNU
17195 *** binutils to release 2.9.1 or newer.  Another option is to modify
17196 *** your PATH or compiler configuration so that the native linker is
17197 *** used, and then restart.
17198
17199 _LT_EOF
17200       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17202         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17203       else
17204         ld_shlibs=no
17205       fi
17206       ;;
17207
17208     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17209       case `$LD -v 2>&1` in
17210         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17211         ld_shlibs=no
17212         cat <<_LT_EOF 1>&2
17213
17214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17215 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17216 *** is disabling shared libraries support.  We urge you to upgrade GNU
17217 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17218 *** your PATH or compiler configuration so that the native linker is
17219 *** used, and then restart.
17220
17221 _LT_EOF
17222         ;;
17223         *)
17224           # For security reasons, it is highly recommended that you always
17225           # use absolute paths for naming shared libraries, and exclude the
17226           # DT_RUNPATH tag from executables and libraries.  But doing so
17227           # requires that you compile everything twice, which is a pain.
17228           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17229             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17230             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17232           else
17233             ld_shlibs=no
17234           fi
17235         ;;
17236       esac
17237       ;;
17238
17239     sunos4*)
17240       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17241       wlarc=
17242       hardcode_direct=yes
17243       hardcode_shlibpath_var=no
17244       ;;
17245
17246     *)
17247       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17250       else
17251         ld_shlibs=no
17252       fi
17253       ;;
17254     esac
17255
17256     if test "$ld_shlibs" = no; then
17257       runpath_var=
17258       hardcode_libdir_flag_spec=
17259       export_dynamic_flag_spec=
17260       whole_archive_flag_spec=
17261     fi
17262   else
17263     # PORTME fill in a description of your system's linker (not GNU ld)
17264     case $host_os in
17265     aix3*)
17266       allow_undefined_flag=unsupported
17267       always_export_symbols=yes
17268       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'
17269       # Note: this linker hardcodes the directories in LIBPATH if there
17270       # are no directories specified by -L.
17271       hardcode_minus_L=yes
17272       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17273         # Neither direct hardcoding nor static linking is supported with a
17274         # broken collect2.
17275         hardcode_direct=unsupported
17276       fi
17277       ;;
17278
17279     aix[4-9]*)
17280       if test "$host_cpu" = ia64; then
17281         # On IA64, the linker does run time linking by default, so we don't
17282         # have to do anything special.
17283         aix_use_runtimelinking=no
17284         exp_sym_flag='-Bexport'
17285         no_entry_flag=""
17286       else
17287         # If we're using GNU nm, then we don't want the "-C" option.
17288         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17289         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17290           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'
17291         else
17292           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'
17293         fi
17294         aix_use_runtimelinking=no
17295
17296         # Test if we are trying to use run time linking or normal
17297         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17298         # need to do runtime linking.
17299         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17300           for ld_flag in $LDFLAGS; do
17301           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17302             aix_use_runtimelinking=yes
17303             break
17304           fi
17305           done
17306           ;;
17307         esac
17308
17309         exp_sym_flag='-bexport'
17310         no_entry_flag='-bnoentry'
17311       fi
17312
17313       # When large executables or shared objects are built, AIX ld can
17314       # have problems creating the table of contents.  If linking a library
17315       # or program results in "error TOC overflow" add -mminimal-toc to
17316       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17317       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17318
17319       archive_cmds=''
17320       hardcode_direct=yes
17321       hardcode_direct_absolute=yes
17322       hardcode_libdir_separator=':'
17323       link_all_deplibs=yes
17324       file_list_spec='${wl}-f,'
17325
17326       if test "$GCC" = yes; then
17327         case $host_os in aix4.[012]|aix4.[012].*)
17328         # We only want to do this on AIX 4.2 and lower, the check
17329         # below for broken collect2 doesn't work under 4.3+
17330           collect2name=`${CC} -print-prog-name=collect2`
17331           if test -f "$collect2name" &&
17332            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17333           then
17334           # We have reworked collect2
17335           :
17336           else
17337           # We have old collect2
17338           hardcode_direct=unsupported
17339           # It fails to find uninstalled libraries when the uninstalled
17340           # path is not listed in the libpath.  Setting hardcode_minus_L
17341           # to unsupported forces relinking
17342           hardcode_minus_L=yes
17343           hardcode_libdir_flag_spec='-L$libdir'
17344           hardcode_libdir_separator=
17345           fi
17346           ;;
17347         esac
17348         shared_flag='-shared'
17349         if test "$aix_use_runtimelinking" = yes; then
17350           shared_flag="$shared_flag "'${wl}-G'
17351         fi
17352       else
17353         # not using gcc
17354         if test "$host_cpu" = ia64; then
17355         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17356         # chokes on -Wl,-G. The following line is correct:
17357           shared_flag='-G'
17358         else
17359           if test "$aix_use_runtimelinking" = yes; then
17360             shared_flag='${wl}-G'
17361           else
17362             shared_flag='${wl}-bM:SRE'
17363           fi
17364         fi
17365       fi
17366
17367       # It seems that -bexpall does not export symbols beginning with
17368       # underscore (_), so it is better to generate a list of symbols to export.
17369       always_export_symbols=yes
17370       if test "$aix_use_runtimelinking" = yes; then
17371         # Warning - without using the other runtime loading flags (-brtl),
17372         # -berok will link without error, but may produce a broken library.
17373         allow_undefined_flag='-berok'
17374         # Determine the default libpath from the value encoded in an
17375         # empty executable.
17376         cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382
17383 int
17384 main ()
17385 {
17386
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393   (eval $ac_link) 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } &&
17400          { ac_try='test -z "$ac_c_werror_flag"
17401                          || test ! -s conftest.err'
17402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403   (eval $ac_try) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413
17414 lt_aix_libpath_sed='
17415     /Import File Strings/,/^$/ {
17416         /^0/ {
17417             s/^0  *\(.*\)$/\1/
17418             p
17419         }
17420     }'
17421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$aix_libpath"; then
17424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17425 fi
17426 else
17427   echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430 fi
17431 rm -f conftest.err conftest.$ac_objext \
17432       conftest$ac_exeext conftest.$ac_ext
17433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17434
17435         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17436         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"
17437       else
17438         if test "$host_cpu" = ia64; then
17439           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17440           allow_undefined_flag="-z nodefs"
17441           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"
17442         else
17443          # Determine the default libpath from the value encoded in an
17444          # empty executable.
17445          cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 int
17453 main ()
17454 {
17455
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462   (eval $ac_link) 2>conftest.er1
17463   ac_status=$?
17464   grep -v '^ *+' conftest.er1 >conftest.err
17465   rm -f conftest.er1
17466   cat conftest.err >&5
17467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468   (exit $ac_status); } &&
17469          { ac_try='test -z "$ac_c_werror_flag"
17470                          || test ! -s conftest.err'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; } &&
17476          { ac_try='test -s conftest$ac_exeext'
17477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478   (eval $ac_try) 2>&5
17479   ac_status=$?
17480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481   (exit $ac_status); }; }; then
17482
17483 lt_aix_libpath_sed='
17484     /Import File Strings/,/^$/ {
17485         /^0/ {
17486             s/^0  *\(.*\)$/\1/
17487             p
17488         }
17489     }'
17490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17491 # Check for a 64-bit object if we didn't find anything.
17492 if test -z "$aix_libpath"; then
17493   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17494 fi
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 fi
17500 rm -f conftest.err conftest.$ac_objext \
17501       conftest$ac_exeext conftest.$ac_ext
17502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17503
17504          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17505           # Warning - without using the other run time loading flags,
17506           # -berok will link without error, but may produce a broken library.
17507           no_undefined_flag=' ${wl}-bernotok'
17508           allow_undefined_flag=' ${wl}-berok'
17509           # Exported symbols can be pulled into shared objects from archives
17510           whole_archive_flag_spec='$convenience'
17511           archive_cmds_need_lc=yes
17512           # This is similar to how AIX traditionally builds its shared libraries.
17513           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'
17514         fi
17515       fi
17516       ;;
17517
17518     amigaos*)
17519       if test "$host_cpu" = m68k; then
17520         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)'
17521         hardcode_libdir_flag_spec='-L$libdir'
17522         hardcode_minus_L=yes
17523       fi
17524       # see comment about different semantics on the GNU ld section
17525       ld_shlibs=no
17526       ;;
17527
17528     bsdi[45]*)
17529       export_dynamic_flag_spec=-rdynamic
17530       ;;
17531
17532     cygwin* | mingw* | pw32*)
17533       # When not using gcc, we currently assume that we are using
17534       # Microsoft Visual C++.
17535       # hardcode_libdir_flag_spec is actually meaningless, as there is
17536       # no search path for DLLs.
17537       hardcode_libdir_flag_spec=' '
17538       allow_undefined_flag=unsupported
17539       # Tell ltmain to make .lib files, not .a files.
17540       libext=lib
17541       # Tell ltmain to make .dll files, not .so files.
17542       shrext_cmds=".dll"
17543       # FIXME: Setting linknames here is a bad hack.
17544       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17545       # The linker will automatically build a .lib file if we build a DLL.
17546       old_archive_from_new_cmds='true'
17547       # FIXME: Should let the user specify the lib program.
17548       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17549       fix_srcfile_path='`cygpath -w "$srcfile"`'
17550       enable_shared_with_static_runtimes=yes
17551       ;;
17552
17553     darwin* | rhapsody*)
17554       case $host_os in
17555       rhapsody* | darwin1.[012])
17556         allow_undefined_flag='${wl}-undefined ${wl}suppress'
17557         ;;
17558       *) # Darwin 1.3 on
17559         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
17560         10.[012])
17561           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17562           ;;
17563         10.*)
17564           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17565           ;;
17566         esac
17567         ;;
17568       esac
17569       archive_cmds_need_lc=no
17570       hardcode_direct=no
17571       hardcode_automatic=yes
17572       hardcode_shlibpath_var=unsupported
17573       whole_archive_flag_spec=''
17574       link_all_deplibs=yes
17575       if test "$GCC" = yes ; then
17576         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
17577   echo $ECHO_N "(cached) $ECHO_C" >&6
17578 else
17579   lt_cv_apple_cc_single_mod=no
17580         if test -z "${LT_MULTI_MODULE}"; then
17581           # By default we will add the -single_module flag. You can override
17582           # by either setting the environment variable LT_MULTI_MODULE
17583           # non-empty at configure time, or by adding -multi-module to the
17584           # link flags.
17585           echo "int foo(void){return 1;}" > conftest.c
17586           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17587               -dynamiclib ${wl}-single_module conftest.c
17588           if test -f libconftest.dylib; then
17589               lt_cv_apple_cc_single_mod=yes
17590               rm libconftest.dylib
17591           fi
17592           rm conftest.$ac_ext
17593         fi
17594 fi
17595
17596         output_verbose_link_cmd=echo
17597         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
17598           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17599           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}'
17600         else
17601           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17602           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}'
17603         fi
17604         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17605         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}'
17606       else
17607         case $cc_basename in
17608         xlc*)
17609           output_verbose_link_cmd=echo
17610           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
17611           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17612           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17613           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}'
17614           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}'
17615           ;;
17616         *)
17617           ld_shlibs=no
17618           ;;
17619         esac
17620       fi
17621       ;;
17622
17623     dgux*)
17624       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625       hardcode_libdir_flag_spec='-L$libdir'
17626       hardcode_shlibpath_var=no
17627       ;;
17628
17629     freebsd1*)
17630       ld_shlibs=no
17631       ;;
17632
17633     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17634     # support.  Future versions do this automatically, but an explicit c++rt0.o
17635     # does not break anything, and helps significantly (at the cost of a little
17636     # extra space).
17637     freebsd2.2*)
17638       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17639       hardcode_libdir_flag_spec='-R$libdir'
17640       hardcode_direct=yes
17641       hardcode_shlibpath_var=no
17642       ;;
17643
17644     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17645     freebsd2*)
17646       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17647       hardcode_direct=yes
17648       hardcode_minus_L=yes
17649       hardcode_shlibpath_var=no
17650       ;;
17651
17652     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17653     freebsd* | dragonfly*)
17654       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17655       hardcode_libdir_flag_spec='-R$libdir'
17656       hardcode_direct=yes
17657       hardcode_shlibpath_var=no
17658       ;;
17659
17660     hpux9*)
17661       if test "$GCC" = yes; then
17662         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'
17663       else
17664         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'
17665       fi
17666       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17667       hardcode_libdir_separator=:
17668       hardcode_direct=yes
17669
17670       # hardcode_minus_L: Not really in the search PATH,
17671       # but as the default location of the library.
17672       hardcode_minus_L=yes
17673       export_dynamic_flag_spec='${wl}-E'
17674       ;;
17675
17676     hpux10*)
17677       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17678         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17679       else
17680         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17681       fi
17682       if test "$with_gnu_ld" = no; then
17683         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17684         hardcode_libdir_flag_spec_ld='+b $libdir'
17685         hardcode_libdir_separator=:
17686         hardcode_direct=yes
17687         hardcode_direct_absolute=yes
17688         export_dynamic_flag_spec='${wl}-E'
17689         # hardcode_minus_L: Not really in the search PATH,
17690         # but as the default location of the library.
17691         hardcode_minus_L=yes
17692       fi
17693       ;;
17694
17695     hpux11*)
17696       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17697         case $host_cpu in
17698         hppa*64*)
17699           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17700           ;;
17701         ia64*)
17702           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17703           ;;
17704         *)
17705           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17706           ;;
17707         esac
17708       else
17709         case $host_cpu in
17710         hppa*64*)
17711           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17712           ;;
17713         ia64*)
17714           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17715           ;;
17716         *)
17717           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17718           ;;
17719         esac
17720       fi
17721       if test "$with_gnu_ld" = no; then
17722         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17723         hardcode_libdir_separator=:
17724
17725         case $host_cpu in
17726         hppa*64*|ia64*)
17727           hardcode_direct=no
17728           hardcode_shlibpath_var=no
17729           ;;
17730         *)
17731           hardcode_direct=yes
17732           hardcode_direct_absolute=yes
17733           export_dynamic_flag_spec='${wl}-E'
17734
17735           # hardcode_minus_L: Not really in the search PATH,
17736           # but as the default location of the library.
17737           hardcode_minus_L=yes
17738           ;;
17739         esac
17740       fi
17741       ;;
17742
17743     irix5* | irix6* | nonstopux*)
17744       if test "$GCC" = yes; then
17745         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'
17746         # Try to use the -exported_symbol ld option, if it does not
17747         # work, assume that -exports_file does not work either and
17748         # implicitly export all symbols.
17749         save_LDFLAGS="$LDFLAGS"
17750         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17751         cat >conftest.$ac_ext <<_ACEOF
17752 int foo(void) {}
17753 _ACEOF
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756   (eval $ac_link) 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } &&
17763          { ac_try='test -z "$ac_c_werror_flag"
17764                          || test ! -s conftest.err'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; } &&
17770          { ac_try='test -s conftest$ac_exeext'
17771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772   (eval $ac_try) 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   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'
17777
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 fi
17783 rm -f conftest.err conftest.$ac_objext \
17784       conftest$ac_exeext conftest.$ac_ext
17785         LDFLAGS="$save_LDFLAGS"
17786       else
17787         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'
17788         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'
17789       fi
17790       archive_cmds_need_lc='no'
17791       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17792       hardcode_libdir_separator=:
17793       inherit_rpath=yes
17794       link_all_deplibs=yes
17795       ;;
17796
17797     netbsd*)
17798       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17799         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17800       else
17801         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17802       fi
17803       hardcode_libdir_flag_spec='-R$libdir'
17804       hardcode_direct=yes
17805       hardcode_shlibpath_var=no
17806       ;;
17807
17808     newsos6)
17809       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17810       hardcode_direct=yes
17811       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17812       hardcode_libdir_separator=:
17813       hardcode_shlibpath_var=no
17814       ;;
17815
17816     *nto* | *qnx*)
17817       ;;
17818
17819     openbsd*)
17820       hardcode_direct=yes
17821       hardcode_shlibpath_var=no
17822       hardcode_direct_absolute=yes
17823       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17825         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17826         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17827         export_dynamic_flag_spec='${wl}-E'
17828       else
17829         case $host_os in
17830         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17831           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17832           hardcode_libdir_flag_spec='-R$libdir'
17833           ;;
17834         *)
17835           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17836           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17837           ;;
17838         esac
17839       fi
17840       ;;
17841
17842     os2*)
17843       hardcode_libdir_flag_spec='-L$libdir'
17844       hardcode_minus_L=yes
17845       allow_undefined_flag=unsupported
17846       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'
17847       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17848       ;;
17849
17850     osf3*)
17851       if test "$GCC" = yes; then
17852         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17853         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'
17854       else
17855         allow_undefined_flag=' -expect_unresolved \*'
17856         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'
17857       fi
17858       archive_cmds_need_lc='no'
17859       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17860       hardcode_libdir_separator=:
17861       ;;
17862
17863     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17864       if test "$GCC" = yes; then
17865         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17866         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'
17867         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17868       else
17869         allow_undefined_flag=' -expect_unresolved \*'
17870         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'
17871         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~
17872         $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'
17873
17874         # Both c and cxx compiler support -rpath directly
17875         hardcode_libdir_flag_spec='-rpath $libdir'
17876       fi
17877       archive_cmds_need_lc='no'
17878       hardcode_libdir_separator=:
17879       ;;
17880
17881     solaris*)
17882       no_undefined_flag=' -z defs'
17883       if test "$GCC" = yes; then
17884         wlarc='${wl}'
17885         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17887           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17888       else
17889         case `$CC -V 2>&1` in
17890         *"Compilers 5.0"*)
17891           wlarc=''
17892           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17894           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17895           ;;
17896         *)
17897           wlarc='${wl}'
17898           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17899           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17900           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17901           ;;
17902         esac
17903       fi
17904       hardcode_libdir_flag_spec='-R$libdir'
17905       hardcode_shlibpath_var=no
17906       case $host_os in
17907       solaris2.[0-5] | solaris2.[0-5].*) ;;
17908       *)
17909         # The compiler driver will combine and reorder linker options,
17910         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17911         # but is careful enough not to reorder.
17912         # Supported since Solaris 2.6 (maybe 2.5.1?)
17913         if test "$GCC" = yes; then
17914           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17915         else
17916           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17917         fi
17918         ;;
17919       esac
17920       link_all_deplibs=yes
17921       ;;
17922
17923     sunos4*)
17924       if test "x$host_vendor" = xsequent; then
17925         # Use $CC to link under sequent, because it throws in some extra .o
17926         # files that make .init and .fini sections work.
17927         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17928       else
17929         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17930       fi
17931       hardcode_libdir_flag_spec='-L$libdir'
17932       hardcode_direct=yes
17933       hardcode_minus_L=yes
17934       hardcode_shlibpath_var=no
17935       ;;
17936
17937     sysv4)
17938       case $host_vendor in
17939         sni)
17940           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941           hardcode_direct=yes # is this really true???
17942         ;;
17943         siemens)
17944           ## LD is ld it makes a PLAMLIB
17945           ## CC just makes a GrossModule.
17946           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17947           reload_cmds='$CC -r -o $output$reload_objs'
17948           hardcode_direct=no
17949         ;;
17950         motorola)
17951           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17952           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17953         ;;
17954       esac
17955       runpath_var='LD_RUN_PATH'
17956       hardcode_shlibpath_var=no
17957       ;;
17958
17959     sysv4.3*)
17960       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17961       hardcode_shlibpath_var=no
17962       export_dynamic_flag_spec='-Bexport'
17963       ;;
17964
17965     sysv4*MP*)
17966       if test -d /usr/nec; then
17967         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17968         hardcode_shlibpath_var=no
17969         runpath_var=LD_RUN_PATH
17970         hardcode_runpath_var=yes
17971         ld_shlibs=yes
17972       fi
17973       ;;
17974
17975     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17976       no_undefined_flag='${wl}-z,text'
17977       archive_cmds_need_lc=no
17978       hardcode_shlibpath_var=no
17979       runpath_var='LD_RUN_PATH'
17980
17981       if test "$GCC" = yes; then
17982         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17983         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17984       else
17985         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17986         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17987       fi
17988       ;;
17989
17990     sysv5* | sco3.2v5* | sco5v6*)
17991       # Note: We can NOT use -z defs as we might desire, because we do not
17992       # link with -lc, and that would cause any symbols used from libc to
17993       # always be unresolved, which means just about no library would
17994       # ever link correctly.  If we're not using GNU ld we use -z text
17995       # though, which does catch some bad symbols but isn't as heavy-handed
17996       # as -z defs.
17997       no_undefined_flag='${wl}-z,text'
17998       allow_undefined_flag='${wl}-z,nodefs'
17999       archive_cmds_need_lc=no
18000       hardcode_shlibpath_var=no
18001       hardcode_libdir_flag_spec='${wl}-R,$libdir'
18002       hardcode_libdir_separator=':'
18003       link_all_deplibs=yes
18004       export_dynamic_flag_spec='${wl}-Bexport'
18005       runpath_var='LD_RUN_PATH'
18006
18007       if test "$GCC" = yes; then
18008         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18009         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18010       else
18011         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18013       fi
18014       ;;
18015
18016     uts4*)
18017       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018       hardcode_libdir_flag_spec='-L$libdir'
18019       hardcode_shlibpath_var=no
18020       ;;
18021
18022     *)
18023       ld_shlibs=no
18024       ;;
18025     esac
18026
18027     if test x$host_vendor = xsni; then
18028       case $host in
18029       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18030         export_dynamic_flag_spec='${wl}-Blargedynsym'
18031         ;;
18032       esac
18033     fi
18034   fi
18035
18036 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18037 echo "${ECHO_T}$ld_shlibs" >&6
18038 test "$ld_shlibs" = no && can_build_shared=no
18039
18040 with_gnu_ld=$with_gnu_ld
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056 #
18057 # Do we need to explicitly link libc?
18058 #
18059 case "x$archive_cmds_need_lc" in
18060 x|xyes)
18061   # Assume -lc should be added
18062   archive_cmds_need_lc=yes
18063
18064   if test "$enable_shared" = yes && test "$GCC" = yes; then
18065     case $archive_cmds in
18066     *'~'*)
18067       # FIXME: we may have to deal with multi-command sequences.
18068       ;;
18069     '$CC '*)
18070       # Test whether the compiler implicitly links with -lc since on some
18071       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18072       # to ld, don't add -lc before -lgcc.
18073       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18074 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18075       $RM conftest*
18076       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18077
18078       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18079   (eval $ac_compile) 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); } 2>conftest.err; then
18083         soname=conftest
18084         lib=conftest
18085         libobjs=conftest.$ac_objext
18086         deplibs=
18087         wl=$lt_prog_compiler_wl
18088         pic_flag=$lt_prog_compiler_pic
18089         compiler_flags=-v
18090         linker_flags=-v
18091         verstring=
18092         output_objdir=.
18093         libname=conftest
18094         lt_save_allow_undefined_flag=$allow_undefined_flag
18095         allow_undefined_flag=
18096         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18097   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }
18101         then
18102           archive_cmds_need_lc=no
18103         else
18104           archive_cmds_need_lc=yes
18105         fi
18106         allow_undefined_flag=$lt_save_allow_undefined_flag
18107       else
18108         cat conftest.err 1>&5
18109       fi
18110       $RM conftest*
18111       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18112 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18113       ;;
18114     esac
18115   fi
18116   ;;
18117 esac
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18277 withGCC=$GCC
18278 if test "$withGCC" = yes; then
18279   case $host_os in
18280     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18281     *) lt_awk_arg="/^libraries:/" ;;
18282   esac
18283   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18284   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
18285     # if the path contains ";" then we assume it to be the separator
18286     # otherwise default to the standard path separator (i.e. ":") - it is
18287     # assumed that no part of a normal pathname contains ";" but that should
18288     # okay in the real world where ";" in dirpaths is itself problematic.
18289     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
18290   else
18291     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18292   fi
18293   # Ok, now we have the path, separated by spaces, we can step through it
18294   # and add multilib dir if necessary.
18295   lt_tmp_lt_search_path_spec=
18296   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18297   for lt_sys_path in $lt_search_path_spec; do
18298     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18299       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18300     else
18301       test -d "$lt_sys_path" && \
18302         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18303     fi
18304   done
18305   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
18306 BEGIN {RS=" "; FS="/|\n";} {
18307   lt_foo="";
18308   lt_count=0;
18309   for (lt_i = NF; lt_i > 0; lt_i--) {
18310     if ($lt_i != "" && $lt_i != ".") {
18311       if ($lt_i == "..") {
18312         lt_count++;
18313       } else {
18314         if (lt_count == 0) {
18315           lt_foo="/" $lt_i lt_foo;
18316         } else {
18317           lt_count--;
18318         }
18319       }
18320     }
18321   }
18322   if (lt_foo != "") { lt_freq[lt_foo]++; }
18323   if (lt_freq[lt_foo] == 1) { print lt_foo; }
18324 }'`
18325   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
18326 else
18327   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18328 fi
18329 library_names_spec=
18330 libname_spec='lib$name'
18331 soname_spec=
18332 shrext_cmds=".so"
18333 postinstall_cmds=
18334 postuninstall_cmds=
18335 finish_cmds=
18336 finish_eval=
18337 shlibpath_var=
18338 shlibpath_overrides_runpath=unknown
18339 version_type=none
18340 dynamic_linker="$host_os ld.so"
18341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18342 need_lib_prefix=unknown
18343 hardcode_into_libs=no
18344
18345 # when you set need_version to no, make sure it does not cause -set_version
18346 # flags to be left without arguments
18347 need_version=unknown
18348
18349 case $host_os in
18350 aix3*)
18351   version_type=linux
18352   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18353   shlibpath_var=LIBPATH
18354
18355   # AIX 3 has no versioning support, so we append a major version to the name.
18356   soname_spec='${libname}${release}${shared_ext}$major'
18357   ;;
18358
18359 aix[4-9]*)
18360   version_type=linux
18361   need_lib_prefix=no
18362   need_version=no
18363   hardcode_into_libs=yes
18364   if test "$host_cpu" = ia64; then
18365     # AIX 5 supports IA64
18366     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18367     shlibpath_var=LD_LIBRARY_PATH
18368   else
18369     # With GCC up to 2.95.x, collect2 would create an import file
18370     # for dependence libraries.  The import file would start with
18371     # the line `#! .'.  This would cause the generated library to
18372     # depend on `.', always an invalid library.  This was fixed in
18373     # development snapshots of GCC prior to 3.0.
18374     case $host_os in
18375       aix4 | aix4.[01] | aix4.[01].*)
18376       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18377            echo ' yes '
18378            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18379         :
18380       else
18381         can_build_shared=no
18382       fi
18383       ;;
18384     esac
18385     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18386     # soname into executable. Probably we can add versioning support to
18387     # collect2, so additional links can be useful in future.
18388     if test "$aix_use_runtimelinking" = yes; then
18389       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18390       # instead of lib<name>.a to let people know that these are not
18391       # typical AIX shared libraries.
18392       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393     else
18394       # We preserve .a as extension for shared libraries through AIX4.2
18395       # and later when we are not doing run time linking.
18396       library_names_spec='${libname}${release}.a $libname.a'
18397       soname_spec='${libname}${release}${shared_ext}$major'
18398     fi
18399     shlibpath_var=LIBPATH
18400   fi
18401   ;;
18402
18403 amigaos*)
18404   if test "$host_cpu" = m68k; then
18405     library_names_spec='$libname.ixlibrary $libname.a'
18406     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18407     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'
18408   else
18409     dynamic_linker=no
18410   fi
18411   ;;
18412
18413 beos*)
18414   library_names_spec='${libname}${shared_ext}'
18415   dynamic_linker="$host_os ld.so"
18416   shlibpath_var=LIBRARY_PATH
18417   ;;
18418
18419 bsdi[45]*)
18420   version_type=linux
18421   need_version=no
18422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18423   soname_spec='${libname}${release}${shared_ext}$major'
18424   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18425   shlibpath_var=LD_LIBRARY_PATH
18426   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18427   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18428   # the default ld.so.conf also contains /usr/contrib/lib and
18429   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18430   # libtool to hard-code these into programs
18431   ;;
18432
18433 cygwin* | mingw* | pw32*)
18434   version_type=windows
18435   shrext_cmds=".dll"
18436   need_version=no
18437   need_lib_prefix=no
18438
18439   case $withGCC,$host_os in
18440   yes,cygwin* | yes,mingw* | yes,pw32*)
18441     library_names_spec='$libname.dll.a'
18442     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18443     postinstall_cmds='base_file=`basename \${file}`~
18444       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18445       dldir=$destdir/`dirname \$dlpath`~
18446       test -d \$dldir || mkdir -p \$dldir~
18447       $install_prog $dir/$dlname \$dldir/$dlname~
18448       chmod a+x \$dldir/$dlname~
18449       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18450         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18451       fi'
18452     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18453       dlpath=$dir/\$dldll~
18454        $RM \$dlpath'
18455     shlibpath_overrides_runpath=yes
18456
18457     case $host_os in
18458     cygwin*)
18459       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18460       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18462       ;;
18463     mingw*)
18464       # MinGW DLLs use traditional 'lib' prefix
18465       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18467       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18468         # It is most probably a Windows format PATH printed by
18469         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18470         # path with ; separators, and with drive letters. We can handle the
18471         # drive letters (cygwin fileutils understands them), so leave them,
18472         # especially as we might pass files found there to a mingw objdump,
18473         # which wouldn't understand a cygwinified path. Ahh.
18474         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18475       else
18476         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18477       fi
18478       ;;
18479     pw32*)
18480       # pw32 DLLs use 'pw' prefix rather than 'lib'
18481       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18482       ;;
18483     esac
18484     ;;
18485
18486   *)
18487     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18488     ;;
18489   esac
18490   dynamic_linker='Win32 ld.exe'
18491   # FIXME: first we should search . and the directory the executable is in
18492   shlibpath_var=PATH
18493   ;;
18494
18495 darwin* | rhapsody*)
18496   dynamic_linker="$host_os dyld"
18497   version_type=darwin
18498   need_lib_prefix=no
18499   need_version=no
18500   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18501   soname_spec='${libname}${release}${major}$shared_ext'
18502   shlibpath_overrides_runpath=yes
18503   shlibpath_var=DYLD_LIBRARY_PATH
18504   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18505
18506   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18507   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18508   ;;
18509
18510 dgux*)
18511   version_type=linux
18512   need_lib_prefix=no
18513   need_version=no
18514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18515   soname_spec='${libname}${release}${shared_ext}$major'
18516   shlibpath_var=LD_LIBRARY_PATH
18517   ;;
18518
18519 freebsd1*)
18520   dynamic_linker=no
18521   ;;
18522
18523 freebsd* | dragonfly*)
18524   # DragonFly does not have aout.  When/if they implement a new
18525   # versioning mechanism, adjust this.
18526   if test -x /usr/bin/objformat; then
18527     objformat=`/usr/bin/objformat`
18528   else
18529     case $host_os in
18530     freebsd[123]*) objformat=aout ;;
18531     *) objformat=elf ;;
18532     esac
18533   fi
18534   version_type=freebsd-$objformat
18535   case $version_type in
18536     freebsd-elf*)
18537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18538       need_version=no
18539       need_lib_prefix=no
18540       ;;
18541     freebsd-*)
18542       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18543       need_version=yes
18544       ;;
18545   esac
18546   shlibpath_var=LD_LIBRARY_PATH
18547   case $host_os in
18548   freebsd2*)
18549     shlibpath_overrides_runpath=yes
18550     ;;
18551   freebsd3.[01]* | freebsdelf3.[01]*)
18552     shlibpath_overrides_runpath=yes
18553     hardcode_into_libs=yes
18554     ;;
18555   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18556   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18557     shlibpath_overrides_runpath=no
18558     hardcode_into_libs=yes
18559     ;;
18560   *) # from 4.6 on, and DragonFly
18561     shlibpath_overrides_runpath=yes
18562     hardcode_into_libs=yes
18563     ;;
18564   esac
18565   ;;
18566
18567 gnu*)
18568   version_type=linux
18569   need_lib_prefix=no
18570   need_version=no
18571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18572   soname_spec='${libname}${release}${shared_ext}$major'
18573   shlibpath_var=LD_LIBRARY_PATH
18574   hardcode_into_libs=yes
18575   ;;
18576
18577 hpux9* | hpux10* | hpux11*)
18578   # Give a soname corresponding to the major version so that dld.sl refuses to
18579   # link against other versions.
18580   version_type=sunos
18581   need_lib_prefix=no
18582   need_version=no
18583   case $host_cpu in
18584   ia64*)
18585     shrext_cmds='.so'
18586     hardcode_into_libs=yes
18587     dynamic_linker="$host_os dld.so"
18588     shlibpath_var=LD_LIBRARY_PATH
18589     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18590     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18591     soname_spec='${libname}${release}${shared_ext}$major'
18592     if test "X$HPUX_IA64_MODE" = X32; then
18593       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18594     else
18595       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18596     fi
18597     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18598     ;;
18599   hppa*64*)
18600     shrext_cmds='.sl'
18601     hardcode_into_libs=yes
18602     dynamic_linker="$host_os dld.sl"
18603     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18604     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18606     soname_spec='${libname}${release}${shared_ext}$major'
18607     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18609     ;;
18610   *)
18611     shrext_cmds='.sl'
18612     dynamic_linker="$host_os dld.sl"
18613     shlibpath_var=SHLIB_PATH
18614     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18616     soname_spec='${libname}${release}${shared_ext}$major'
18617     ;;
18618   esac
18619   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18620   postinstall_cmds='chmod 555 $lib'
18621   ;;
18622
18623 interix[3-9]*)
18624   version_type=linux
18625   need_lib_prefix=no
18626   need_version=no
18627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18628   soname_spec='${libname}${release}${shared_ext}$major'
18629   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18630   shlibpath_var=LD_LIBRARY_PATH
18631   shlibpath_overrides_runpath=no
18632   hardcode_into_libs=yes
18633   ;;
18634
18635 irix5* | irix6* | nonstopux*)
18636   case $host_os in
18637     nonstopux*) version_type=nonstopux ;;
18638     *)
18639         if test "$lt_cv_prog_gnu_ld" = yes; then
18640                 version_type=linux
18641         else
18642                 version_type=irix
18643         fi ;;
18644   esac
18645   need_lib_prefix=no
18646   need_version=no
18647   soname_spec='${libname}${release}${shared_ext}$major'
18648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18649   case $host_os in
18650   irix5* | nonstopux*)
18651     libsuff= shlibsuff=
18652     ;;
18653   *)
18654     case $LD in # libtool.m4 will add one of these switches to LD
18655     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18656       libsuff= shlibsuff= libmagic=32-bit;;
18657     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18658       libsuff=32 shlibsuff=N32 libmagic=N32;;
18659     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18660       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18661     *) libsuff= shlibsuff= libmagic=never-match;;
18662     esac
18663     ;;
18664   esac
18665   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18666   shlibpath_overrides_runpath=no
18667   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18668   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18669   hardcode_into_libs=yes
18670   ;;
18671
18672 # No shared lib support for Linux oldld, aout, or coff.
18673 linux*oldld* | linux*aout* | linux*coff*)
18674   dynamic_linker=no
18675   ;;
18676
18677 # This must be Linux ELF.
18678 linux* | k*bsd*-gnu)
18679   version_type=linux
18680   need_lib_prefix=no
18681   need_version=no
18682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683   soname_spec='${libname}${release}${shared_ext}$major'
18684   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18685   shlibpath_var=LD_LIBRARY_PATH
18686   shlibpath_overrides_runpath=no
18687   # Some binutils ld are patched to set DT_RUNPATH
18688   save_LDFLAGS=$LDFLAGS
18689   save_libdir=$libdir
18690   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18691        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18692   cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698
18699 int
18700 main ()
18701 {
18702
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709   (eval $ac_link) 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } &&
18716          { ac_try='test -z "$ac_c_werror_flag"
18717                          || test ! -s conftest.err'
18718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719   (eval $ac_try) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; } &&
18723          { ac_try='test -s conftest$ac_exeext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
18730   shlibpath_overrides_runpath=yes
18731 fi
18732
18733 else
18734   echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 fi
18738 rm -f conftest.err conftest.$ac_objext \
18739       conftest$ac_exeext conftest.$ac_ext
18740   LDFLAGS=$save_LDFLAGS
18741   libdir=$save_libdir
18742
18743   # This implies no fast_install, which is unacceptable.
18744   # Some rework will be needed to allow for fast_install
18745   # before this can be enabled.
18746   hardcode_into_libs=yes
18747
18748   # Append ld.so.conf contents to the search path
18749   if test -f /etc/ld.so.conf; then
18750     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' ' '`
18751     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18752   fi
18753
18754   # We used to test for /lib/ld.so.1 and disable shared libraries on
18755   # powerpc, because MkLinux only supported shared libraries with the
18756   # GNU dynamic linker.  Since this was broken with cross compilers,
18757   # most powerpc-linux boxes support dynamic linking these days and
18758   # people can always --disable-shared, the test was removed, and we
18759   # assume the GNU/Linux dynamic linker is in use.
18760   dynamic_linker='GNU/Linux ld.so'
18761   ;;
18762
18763 netbsd*)
18764   version_type=sunos
18765   need_lib_prefix=no
18766   need_version=no
18767   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18769     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18770     dynamic_linker='NetBSD (a.out) ld.so'
18771   else
18772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18773     soname_spec='${libname}${release}${shared_ext}$major'
18774     dynamic_linker='NetBSD ld.elf_so'
18775   fi
18776   shlibpath_var=LD_LIBRARY_PATH
18777   shlibpath_overrides_runpath=yes
18778   hardcode_into_libs=yes
18779   ;;
18780
18781 newsos6)
18782   version_type=linux
18783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18784   shlibpath_var=LD_LIBRARY_PATH
18785   shlibpath_overrides_runpath=yes
18786   ;;
18787
18788 *nto* | *qnx*)
18789   version_type=qnx
18790   need_lib_prefix=no
18791   need_version=no
18792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18793   soname_spec='${libname}${release}${shared_ext}$major'
18794   shlibpath_var=LD_LIBRARY_PATH
18795   shlibpath_overrides_runpath=no
18796   hardcode_into_libs=yes
18797   dynamic_linker='ldqnx.so'
18798   ;;
18799
18800 openbsd*)
18801   version_type=sunos
18802   sys_lib_dlsearch_path_spec="/usr/lib"
18803   need_lib_prefix=no
18804   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18805   case $host_os in
18806     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18807     *)                          need_version=no  ;;
18808   esac
18809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18811   shlibpath_var=LD_LIBRARY_PATH
18812   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18813     case $host_os in
18814       openbsd2.[89] | openbsd2.[89].*)
18815         shlibpath_overrides_runpath=no
18816         ;;
18817       *)
18818         shlibpath_overrides_runpath=yes
18819         ;;
18820       esac
18821   else
18822     shlibpath_overrides_runpath=yes
18823   fi
18824   ;;
18825
18826 os2*)
18827   libname_spec='$name'
18828   shrext_cmds=".dll"
18829   need_lib_prefix=no
18830   library_names_spec='$libname${shared_ext} $libname.a'
18831   dynamic_linker='OS/2 ld.exe'
18832   shlibpath_var=LIBPATH
18833   ;;
18834
18835 osf3* | osf4* | osf5*)
18836   version_type=osf
18837   need_lib_prefix=no
18838   need_version=no
18839   soname_spec='${libname}${release}${shared_ext}$major'
18840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841   shlibpath_var=LD_LIBRARY_PATH
18842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18843   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18844   ;;
18845
18846 rdos*)
18847   dynamic_linker=no
18848   ;;
18849
18850 solaris*)
18851   version_type=linux
18852   need_lib_prefix=no
18853   need_version=no
18854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18855   soname_spec='${libname}${release}${shared_ext}$major'
18856   shlibpath_var=LD_LIBRARY_PATH
18857   shlibpath_overrides_runpath=yes
18858   hardcode_into_libs=yes
18859   # ldd complains unless libraries are executable
18860   postinstall_cmds='chmod +x $lib'
18861   ;;
18862
18863 sunos4*)
18864   version_type=sunos
18865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18866   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18867   shlibpath_var=LD_LIBRARY_PATH
18868   shlibpath_overrides_runpath=yes
18869   if test "$with_gnu_ld" = yes; then
18870     need_lib_prefix=no
18871   fi
18872   need_version=yes
18873   ;;
18874
18875 sysv4 | sysv4.3*)
18876   version_type=linux
18877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878   soname_spec='${libname}${release}${shared_ext}$major'
18879   shlibpath_var=LD_LIBRARY_PATH
18880   case $host_vendor in
18881     sni)
18882       shlibpath_overrides_runpath=no
18883       need_lib_prefix=no
18884       runpath_var=LD_RUN_PATH
18885       ;;
18886     siemens)
18887       need_lib_prefix=no
18888       ;;
18889     motorola)
18890       need_lib_prefix=no
18891       need_version=no
18892       shlibpath_overrides_runpath=no
18893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18894       ;;
18895   esac
18896   ;;
18897
18898 sysv4*MP*)
18899   if test -d /usr/nec ;then
18900     version_type=linux
18901     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18902     soname_spec='$libname${shared_ext}.$major'
18903     shlibpath_var=LD_LIBRARY_PATH
18904   fi
18905   ;;
18906
18907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18908   version_type=freebsd-elf
18909   need_lib_prefix=no
18910   need_version=no
18911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18912   soname_spec='${libname}${release}${shared_ext}$major'
18913   shlibpath_var=LD_LIBRARY_PATH
18914   shlibpath_overrides_runpath=yes
18915   hardcode_into_libs=yes
18916   if test "$with_gnu_ld" = yes; then
18917     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18918   else
18919     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18920     case $host_os in
18921       sco3.2v5*)
18922         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18923         ;;
18924     esac
18925   fi
18926   sys_lib_dlsearch_path_spec='/usr/lib'
18927   ;;
18928
18929 tpf*)
18930   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18931   version_type=linux
18932   need_lib_prefix=no
18933   need_version=no
18934   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18935   shlibpath_var=LD_LIBRARY_PATH
18936   shlibpath_overrides_runpath=no
18937   hardcode_into_libs=yes
18938   ;;
18939
18940 uts4*)
18941   version_type=linux
18942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18943   soname_spec='${libname}${release}${shared_ext}$major'
18944   shlibpath_var=LD_LIBRARY_PATH
18945   ;;
18946
18947 *)
18948   dynamic_linker=no
18949   ;;
18950 esac
18951 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18952 echo "${ECHO_T}$dynamic_linker" >&6
18953 test "$dynamic_linker" = no && can_build_shared=no
18954
18955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18956 if test "$GCC" = yes; then
18957   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18958 fi
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19047 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19048 hardcode_action=
19049 if test -n "$hardcode_libdir_flag_spec" ||
19050    test -n "$runpath_var" ||
19051    test "X$hardcode_automatic" = "Xyes" ; then
19052
19053   # We can hardcode non-existent directories.
19054   if test "$hardcode_direct" != no &&
19055      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19056      # have to relink, otherwise we might link with an installed library
19057      # when we should be linking with a yet-to-be-installed one
19058      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19059      test "$hardcode_minus_L" != no; then
19060     # Linking always hardcodes the temporary library directory.
19061     hardcode_action=relink
19062   else
19063     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19064     hardcode_action=immediate
19065   fi
19066 else
19067   # We cannot hardcode anything, or else we can only hardcode existing
19068   # directories.
19069   hardcode_action=unsupported
19070 fi
19071 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19072 echo "${ECHO_T}$hardcode_action" >&6
19073
19074 if test "$hardcode_action" = relink ||
19075    test "$inherit_rpath" = yes; then
19076   # Fast installation is not supported
19077   enable_fast_install=no
19078 elif test "$shlibpath_overrides_runpath" = yes ||
19079      test "$enable_shared" = no; then
19080   # Fast installation is not necessary
19081   enable_fast_install=needless
19082 fi
19083
19084
19085
19086
19087
19088
19089   if test "x$enable_dlopen" != xyes; then
19090   enable_dlopen=unknown
19091   enable_dlopen_self=unknown
19092   enable_dlopen_self_static=unknown
19093 else
19094   lt_cv_dlopen=no
19095   lt_cv_dlopen_libs=
19096
19097   case $host_os in
19098   beos*)
19099     lt_cv_dlopen="load_add_on"
19100     lt_cv_dlopen_libs=
19101     lt_cv_dlopen_self=yes
19102     ;;
19103
19104   mingw* | pw32*)
19105     lt_cv_dlopen="LoadLibrary"
19106     lt_cv_dlopen_libs=
19107     ;;
19108
19109   cygwin*)
19110     lt_cv_dlopen="dlopen"
19111     lt_cv_dlopen_libs=
19112     ;;
19113
19114   darwin*)
19115   # if libdl is installed we need to link against it
19116     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19117 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19119   echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121   ac_check_lib_save_LIBS=$LIBS
19122 LIBS="-ldl  $LIBS"
19123 cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129
19130 /* Override any gcc2 internal prototype to avoid an error.  */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 /* We use char because int might match the return type of a gcc2
19135    builtin and then its argument prototype would still apply.  */
19136 char dlopen ();
19137 int
19138 main ()
19139 {
19140 dlopen ();
19141   ;
19142   return 0;
19143 }
19144 _ACEOF
19145 rm -f conftest.$ac_objext conftest$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147   (eval $ac_link) 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } &&
19154          { ac_try='test -z "$ac_c_werror_flag"
19155                          || test ! -s conftest.err'
19156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157   (eval $ac_try) 2>&5
19158   ac_status=$?
19159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160   (exit $ac_status); }; } &&
19161          { ac_try='test -s conftest$ac_exeext'
19162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163   (eval $ac_try) 2>&5
19164   ac_status=$?
19165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166   (exit $ac_status); }; }; then
19167   ac_cv_lib_dl_dlopen=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 ac_cv_lib_dl_dlopen=no
19173 fi
19174 rm -f conftest.err conftest.$ac_objext \
19175       conftest$ac_exeext conftest.$ac_ext
19176 LIBS=$ac_check_lib_save_LIBS
19177 fi
19178 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19180 if test $ac_cv_lib_dl_dlopen = yes; then
19181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19182 else
19183
19184     lt_cv_dlopen="dyld"
19185     lt_cv_dlopen_libs=
19186     lt_cv_dlopen_self=yes
19187
19188 fi
19189
19190     ;;
19191
19192   *)
19193     echo "$as_me:$LINENO: checking for shl_load" >&5
19194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19195 if test "${ac_cv_func_shl_load+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19206 #define shl_load innocuous_shl_load
19207
19208 /* System header to define __stub macros and hopefully few prototypes,
19209     which can conflict with char shl_load (); below.
19210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19211     <limits.h> exists even on freestanding compilers.  */
19212
19213 #ifdef __STDC__
19214 # include <limits.h>
19215 #else
19216 # include <assert.h>
19217 #endif
19218
19219 #undef shl_load
19220
19221 /* Override any gcc2 internal prototype to avoid an error.  */
19222 #ifdef __cplusplus
19223 extern "C"
19224 {
19225 #endif
19226 /* We use char because int might match the return type of a gcc2
19227    builtin and then its argument prototype would still apply.  */
19228 char shl_load ();
19229 /* The GNU C library defines this for functions which it implements
19230     to always fail with ENOSYS.  Some functions are actually named
19231     something starting with __ and the normal name is an alias.  */
19232 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19233 choke me
19234 #else
19235 char (*f) () = shl_load;
19236 #endif
19237 #ifdef __cplusplus
19238 }
19239 #endif
19240
19241 int
19242 main ()
19243 {
19244 return f != shl_load;
19245   ;
19246   return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext conftest$ac_exeext
19250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19251   (eval $ac_link) 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } &&
19258          { ac_try='test -z "$ac_c_werror_flag"
19259                          || test ! -s conftest.err'
19260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261   (eval $ac_try) 2>&5
19262   ac_status=$?
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); }; } &&
19265          { ac_try='test -s conftest$ac_exeext'
19266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267   (eval $ac_try) 2>&5
19268   ac_status=$?
19269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); }; }; then
19271   ac_cv_func_shl_load=yes
19272 else
19273   echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 ac_cv_func_shl_load=no
19277 fi
19278 rm -f conftest.err conftest.$ac_objext \
19279       conftest$ac_exeext conftest.$ac_ext
19280 fi
19281 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19282 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19283 if test $ac_cv_func_shl_load = yes; then
19284   lt_cv_dlopen="shl_load"
19285 else
19286   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19287 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19288 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19289   echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291   ac_check_lib_save_LIBS=$LIBS
19292 LIBS="-ldld  $LIBS"
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299
19300 /* Override any gcc2 internal prototype to avoid an error.  */
19301 #ifdef __cplusplus
19302 extern "C"
19303 #endif
19304 /* We use char because int might match the return type of a gcc2
19305    builtin and then its argument prototype would still apply.  */
19306 char shl_load ();
19307 int
19308 main ()
19309 {
19310 shl_load ();
19311   ;
19312   return 0;
19313 }
19314 _ACEOF
19315 rm -f conftest.$ac_objext conftest$ac_exeext
19316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19317   (eval $ac_link) 2>conftest.er1
19318   ac_status=$?
19319   grep -v '^ *+' conftest.er1 >conftest.err
19320   rm -f conftest.er1
19321   cat conftest.err >&5
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -z "$ac_c_werror_flag"
19325                          || test ! -s conftest.err'
19326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327   (eval $ac_try) 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); }; } &&
19331          { ac_try='test -s conftest$ac_exeext'
19332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333   (eval $ac_try) 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; }; then
19337   ac_cv_lib_dld_shl_load=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ac_cv_lib_dld_shl_load=no
19343 fi
19344 rm -f conftest.err conftest.$ac_objext \
19345       conftest$ac_exeext conftest.$ac_ext
19346 LIBS=$ac_check_lib_save_LIBS
19347 fi
19348 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19349 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19350 if test $ac_cv_lib_dld_shl_load = yes; then
19351   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19352 else
19353   echo "$as_me:$LINENO: checking for dlopen" >&5
19354 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19355 if test "${ac_cv_func_dlopen+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   cat >conftest.$ac_ext <<_ACEOF
19359 /* confdefs.h.  */
19360 _ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h.  */
19364 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19366 #define dlopen innocuous_dlopen
19367
19368 /* System header to define __stub macros and hopefully few prototypes,
19369     which can conflict with char dlopen (); below.
19370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371     <limits.h> exists even on freestanding compilers.  */
19372
19373 #ifdef __STDC__
19374 # include <limits.h>
19375 #else
19376 # include <assert.h>
19377 #endif
19378
19379 #undef dlopen
19380
19381 /* Override any gcc2 internal prototype to avoid an error.  */
19382 #ifdef __cplusplus
19383 extern "C"
19384 {
19385 #endif
19386 /* We use char because int might match the return type of a gcc2
19387    builtin and then its argument prototype would still apply.  */
19388 char dlopen ();
19389 /* The GNU C library defines this for functions which it implements
19390     to always fail with ENOSYS.  Some functions are actually named
19391     something starting with __ and the normal name is an alias.  */
19392 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19393 choke me
19394 #else
19395 char (*f) () = dlopen;
19396 #endif
19397 #ifdef __cplusplus
19398 }
19399 #endif
19400
19401 int
19402 main ()
19403 {
19404 return f != dlopen;
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411   (eval $ac_link) 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag"
19419                          || test ! -s conftest.err'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; } &&
19425          { ac_try='test -s conftest$ac_exeext'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   ac_cv_func_dlopen=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_cv_func_dlopen=no
19437 fi
19438 rm -f conftest.err conftest.$ac_objext \
19439       conftest$ac_exeext conftest.$ac_ext
19440 fi
19441 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19442 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19443 if test $ac_cv_func_dlopen = yes; then
19444   lt_cv_dlopen="dlopen"
19445 else
19446   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19449   echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451   ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-ldl  $LIBS"
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459
19460 /* Override any gcc2 internal prototype to avoid an error.  */
19461 #ifdef __cplusplus
19462 extern "C"
19463 #endif
19464 /* We use char because int might match the return type of a gcc2
19465    builtin and then its argument prototype would still apply.  */
19466 char dlopen ();
19467 int
19468 main ()
19469 {
19470 dlopen ();
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 rm -f conftest.$ac_objext conftest$ac_exeext
19476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19477   (eval $ac_link) 2>conftest.er1
19478   ac_status=$?
19479   grep -v '^ *+' conftest.er1 >conftest.err
19480   rm -f conftest.er1
19481   cat conftest.err >&5
19482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483   (exit $ac_status); } &&
19484          { ac_try='test -z "$ac_c_werror_flag"
19485                          || test ! -s conftest.err'
19486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487   (eval $ac_try) 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); }; } &&
19491          { ac_try='test -s conftest$ac_exeext'
19492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493   (eval $ac_try) 2>&5
19494   ac_status=$?
19495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496   (exit $ac_status); }; }; then
19497   ac_cv_lib_dl_dlopen=yes
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 ac_cv_lib_dl_dlopen=no
19503 fi
19504 rm -f conftest.err conftest.$ac_objext \
19505       conftest$ac_exeext conftest.$ac_ext
19506 LIBS=$ac_check_lib_save_LIBS
19507 fi
19508 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19510 if test $ac_cv_lib_dl_dlopen = yes; then
19511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19512 else
19513   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19514 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19516   echo $ECHO_N "(cached) $ECHO_C" >&6
19517 else
19518   ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lsvld  $LIBS"
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526
19527 /* Override any gcc2 internal prototype to avoid an error.  */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 /* We use char because int might match the return type of a gcc2
19532    builtin and then its argument prototype would still apply.  */
19533 char dlopen ();
19534 int
19535 main ()
19536 {
19537 dlopen ();
19538   ;
19539   return 0;
19540 }
19541 _ACEOF
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19544   (eval $ac_link) 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } &&
19551          { ac_try='test -z "$ac_c_werror_flag"
19552                          || test ! -s conftest.err'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; } &&
19558          { ac_try='test -s conftest$ac_exeext'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564   ac_cv_lib_svld_dlopen=yes
19565 else
19566   echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_cv_lib_svld_dlopen=no
19570 fi
19571 rm -f conftest.err conftest.$ac_objext \
19572       conftest$ac_exeext conftest.$ac_ext
19573 LIBS=$ac_check_lib_save_LIBS
19574 fi
19575 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19577 if test $ac_cv_lib_svld_dlopen = yes; then
19578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19579 else
19580   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   ac_check_lib_save_LIBS=$LIBS
19586 LIBS="-ldld  $LIBS"
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h.  */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h.  */
19593
19594 /* Override any gcc2 internal prototype to avoid an error.  */
19595 #ifdef __cplusplus
19596 extern "C"
19597 #endif
19598 /* We use char because int might match the return type of a gcc2
19599    builtin and then its argument prototype would still apply.  */
19600 char dld_link ();
19601 int
19602 main ()
19603 {
19604 dld_link ();
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19611   (eval $ac_link) 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -z "$ac_c_werror_flag"
19619                          || test ! -s conftest.err'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; } &&
19625          { ac_try='test -s conftest$ac_exeext'
19626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627   (eval $ac_try) 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631   ac_cv_lib_dld_dld_link=yes
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_cv_lib_dld_dld_link=no
19637 fi
19638 rm -f conftest.err conftest.$ac_objext \
19639       conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19641 fi
19642 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19643 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19644 if test $ac_cv_lib_dld_dld_link = yes; then
19645   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19646 fi
19647
19648
19649 fi
19650
19651
19652 fi
19653
19654
19655 fi
19656
19657
19658 fi
19659
19660
19661 fi
19662
19663     ;;
19664   esac
19665
19666   if test "x$lt_cv_dlopen" != xno; then
19667     enable_dlopen=yes
19668   else
19669     enable_dlopen=no
19670   fi
19671
19672   case $lt_cv_dlopen in
19673   dlopen)
19674     save_CPPFLAGS="$CPPFLAGS"
19675     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19676
19677     save_LDFLAGS="$LDFLAGS"
19678     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19679
19680     save_LIBS="$LIBS"
19681     LIBS="$lt_cv_dlopen_libs $LIBS"
19682
19683     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19684 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19685 if test "${lt_cv_dlopen_self+set}" = set; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688           if test "$cross_compiling" = yes; then :
19689   lt_cv_dlopen_self=cross
19690 else
19691   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19692   lt_status=$lt_dlunknown
19693   cat > conftest.$ac_ext <<_LT_EOF
19694 #line 19694 "configure"
19695 #include "confdefs.h"
19696
19697 #if HAVE_DLFCN_H
19698 #include <dlfcn.h>
19699 #endif
19700
19701 #include <stdio.h>
19702
19703 #ifdef RTLD_GLOBAL
19704 #  define LT_DLGLOBAL           RTLD_GLOBAL
19705 #else
19706 #  ifdef DL_GLOBAL
19707 #    define LT_DLGLOBAL         DL_GLOBAL
19708 #  else
19709 #    define LT_DLGLOBAL         0
19710 #  endif
19711 #endif
19712
19713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19714    find out it does not work in some platform. */
19715 #ifndef LT_DLLAZY_OR_NOW
19716 #  ifdef RTLD_LAZY
19717 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19718 #  else
19719 #    ifdef DL_LAZY
19720 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19721 #    else
19722 #      ifdef RTLD_NOW
19723 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19724 #      else
19725 #        ifdef DL_NOW
19726 #          define LT_DLLAZY_OR_NOW      DL_NOW
19727 #        else
19728 #          define LT_DLLAZY_OR_NOW      0
19729 #        endif
19730 #      endif
19731 #    endif
19732 #  endif
19733 #endif
19734
19735 #ifdef __cplusplus
19736 extern "C" void exit (int);
19737 #endif
19738
19739 void fnord() { int i=42;}
19740 int main ()
19741 {
19742   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19743   int status = $lt_dlunknown;
19744
19745   if (self)
19746     {
19747       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19748       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19749       /* dlclose (self); */
19750     }
19751   else
19752     puts (dlerror ());
19753
19754     exit (status);
19755 }
19756 _LT_EOF
19757   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19758   (eval $ac_link) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19762     (./conftest; exit; ) >&5 2>/dev/null
19763     lt_status=$?
19764     case x$lt_status in
19765       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19766       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19767       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19768     esac
19769   else :
19770     # compilation failed
19771     lt_cv_dlopen_self=no
19772   fi
19773 fi
19774 rm -fr conftest*
19775
19776
19777 fi
19778 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19779 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19780
19781     if test "x$lt_cv_dlopen_self" = xyes; then
19782       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19783       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19784 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19785 if test "${lt_cv_dlopen_self_static+set}" = set; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788           if test "$cross_compiling" = yes; then :
19789   lt_cv_dlopen_self_static=cross
19790 else
19791   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19792   lt_status=$lt_dlunknown
19793   cat > conftest.$ac_ext <<_LT_EOF
19794 #line 19794 "configure"
19795 #include "confdefs.h"
19796
19797 #if HAVE_DLFCN_H
19798 #include <dlfcn.h>
19799 #endif
19800
19801 #include <stdio.h>
19802
19803 #ifdef RTLD_GLOBAL
19804 #  define LT_DLGLOBAL           RTLD_GLOBAL
19805 #else
19806 #  ifdef DL_GLOBAL
19807 #    define LT_DLGLOBAL         DL_GLOBAL
19808 #  else
19809 #    define LT_DLGLOBAL         0
19810 #  endif
19811 #endif
19812
19813 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19814    find out it does not work in some platform. */
19815 #ifndef LT_DLLAZY_OR_NOW
19816 #  ifdef RTLD_LAZY
19817 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19818 #  else
19819 #    ifdef DL_LAZY
19820 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19821 #    else
19822 #      ifdef RTLD_NOW
19823 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19824 #      else
19825 #        ifdef DL_NOW
19826 #          define LT_DLLAZY_OR_NOW      DL_NOW
19827 #        else
19828 #          define LT_DLLAZY_OR_NOW      0
19829 #        endif
19830 #      endif
19831 #    endif
19832 #  endif
19833 #endif
19834
19835 #ifdef __cplusplus
19836 extern "C" void exit (int);
19837 #endif
19838
19839 void fnord() { int i=42;}
19840 int main ()
19841 {
19842   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19843   int status = $lt_dlunknown;
19844
19845   if (self)
19846     {
19847       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19848       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19849       /* dlclose (self); */
19850     }
19851   else
19852     puts (dlerror ());
19853
19854     exit (status);
19855 }
19856 _LT_EOF
19857   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19858   (eval $ac_link) 2>&5
19859   ac_status=$?
19860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19862     (./conftest; exit; ) >&5 2>/dev/null
19863     lt_status=$?
19864     case x$lt_status in
19865       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19866       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19867       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19868     esac
19869   else :
19870     # compilation failed
19871     lt_cv_dlopen_self_static=no
19872   fi
19873 fi
19874 rm -fr conftest*
19875
19876
19877 fi
19878 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19879 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19880     fi
19881
19882     CPPFLAGS="$save_CPPFLAGS"
19883     LDFLAGS="$save_LDFLAGS"
19884     LIBS="$save_LIBS"
19885     ;;
19886   esac
19887
19888   case $lt_cv_dlopen_self in
19889   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19890   *) enable_dlopen_self=unknown ;;
19891   esac
19892
19893   case $lt_cv_dlopen_self_static in
19894   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19895   *) enable_dlopen_self_static=unknown ;;
19896   esac
19897 fi
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915 striplib=
19916 old_striplib=
19917 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19918 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19919 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19920   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19921   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19922   echo "$as_me:$LINENO: result: yes" >&5
19923 echo "${ECHO_T}yes" >&6
19924 else
19925 # FIXME - insert some real tests, host_os isn't really good enough
19926   case $host_os in
19927   darwin*)
19928     if test -n "$STRIP" ; then
19929       striplib="$STRIP -x"
19930       old_striplib="$STRIP -S"
19931       echo "$as_me:$LINENO: result: yes" >&5
19932 echo "${ECHO_T}yes" >&6
19933     else
19934       echo "$as_me:$LINENO: result: no" >&5
19935 echo "${ECHO_T}no" >&6
19936     fi
19937     ;;
19938   *)
19939     echo "$as_me:$LINENO: result: no" >&5
19940 echo "${ECHO_T}no" >&6
19941     ;;
19942   esac
19943 fi
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956   # Report which library types will actually be built
19957   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19959   echo "$as_me:$LINENO: result: $can_build_shared" >&5
19960 echo "${ECHO_T}$can_build_shared" >&6
19961
19962   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19964   test "$can_build_shared" = "no" && enable_shared=no
19965
19966   # On AIX, shared libraries and static libraries use the same namespace, and
19967   # are all built from PIC.
19968   case $host_os in
19969   aix3*)
19970     test "$enable_shared" = yes && enable_static=no
19971     if test -n "$RANLIB"; then
19972       archive_cmds="$archive_cmds~\$RANLIB \$lib"
19973       postinstall_cmds='$RANLIB $lib'
19974     fi
19975     ;;
19976
19977   aix[4-9]*)
19978     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19979       test "$enable_shared" = yes && enable_static=no
19980     fi
19981     ;;
19982   esac
19983   echo "$as_me:$LINENO: result: $enable_shared" >&5
19984 echo "${ECHO_T}$enable_shared" >&6
19985
19986   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19987 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19988   # Make sure either enable_shared or enable_static is yes.
19989   test "$enable_shared" = yes || enable_static=yes
19990   echo "$as_me:$LINENO: result: $enable_static" >&5
19991 echo "${ECHO_T}$enable_static" >&6
19992
19993
19994
19995
19996 fi
19997 ac_ext=c
19998 ac_cpp='$CPP $CPPFLAGS'
19999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20002
20003 CC="$lt_save_CC"
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020 # Only expand once:
20021
20022
20023
20024
20025
20026 # Identify the assembler which will work hand-in-glove with the newly
20027 # built GCC, so that we can examine its features.  This is the assembler
20028 # which will be driven by the driver program.
20029 #
20030 # If build != host, and we aren't building gas in-tree, we identify a
20031 # build->target assembler and hope that it will have the same features
20032 # as the host->target assembler we'll be using.
20033 gcc_cv_gas_major_version=
20034 gcc_cv_gas_minor_version=
20035 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20036
20037 if test "${gcc_cv_as+set}" = set; then
20038   :
20039 else
20040
20041 if test -x "$DEFAULT_ASSEMBLER"; then
20042         gcc_cv_as="$DEFAULT_ASSEMBLER"
20043 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20044      && test -f ../gas/Makefile \
20045      && test x$build = x$host; then
20046         gcc_cv_as=../gas/as-new$build_exeext
20047 elif test -x as$build_exeext; then
20048         # Build using assembler in the current directory.
20049         gcc_cv_as=./as$build_exeext
20050 elif test -x $AS_FOR_TARGET; then
20051         gcc_cv_as="$AS_FOR_TARGET"
20052 else
20053         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20054 set dummy $AS_FOR_TARGET; ac_word=$2
20055 echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20057 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
20058   echo $ECHO_N "(cached) $ECHO_C" >&6
20059 else
20060   case $gcc_cv_as in
20061   [\\/]* | ?:[\\/]*)
20062   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20063   ;;
20064   *)
20065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 for as_dir in $PATH
20067 do
20068   IFS=$as_save_IFS
20069   test -z "$as_dir" && as_dir=.
20070   for ac_exec_ext in '' $ac_executable_extensions; do
20071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20072     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20074     break 2
20075   fi
20076 done
20077 done
20078
20079   ;;
20080 esac
20081 fi
20082 gcc_cv_as=$ac_cv_path_gcc_cv_as
20083
20084 if test -n "$gcc_cv_as"; then
20085   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20086 echo "${ECHO_T}$gcc_cv_as" >&6
20087 else
20088   echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6
20090 fi
20091
20092 fi
20093 fi
20094
20095
20096 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20097
20098 case "$ORIGINAL_AS_FOR_TARGET" in
20099   ./as | ./as$build_exeext) ;;
20100   *)           ac_config_files="$ac_config_files as:exec-tool.in"
20101  ;;
20102 esac
20103
20104 echo "$as_me:$LINENO: checking what assembler to use" >&5
20105 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
20106 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20107   # Single tree build which includes gas.  We want to prefer it
20108   # over whatever linker top-level may have detected, since
20109   # we'll use what we're building after installation anyway.
20110   echo "$as_me:$LINENO: result: newly built gas" >&5
20111 echo "${ECHO_T}newly built gas" >&6
20112   in_tree_gas=yes
20113   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20114 for f in $gcc_cv_as_bfd_srcdir/configure \
20115          $gcc_cv_as_gas_srcdir/configure \
20116          $gcc_cv_as_gas_srcdir/configure.in \
20117          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20118   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20119   if test x$gcc_cv_gas_version != x; then
20120     break
20121   fi
20122 done
20123 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20124 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20125 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20126 case $gcc_cv_gas_patch_version in
20127   "") gcc_cv_gas_patch_version="0" ;;
20128 esac
20129 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20130                             + $gcc_cv_gas_minor_version \) \* 1000 \
20131                             + $gcc_cv_gas_patch_version`
20132
20133   in_tree_gas_is_elf=no
20134   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20135      || (grep 'obj_format = multi' ../gas/Makefile \
20136          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20137   then
20138     in_tree_gas_is_elf=yes
20139   fi
20140 else
20141   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
20142 echo "${ECHO_T}$gcc_cv_as" >&6
20143   in_tree_gas=no
20144 fi
20145
20146 # Identify the linker which will work hand-in-glove with the newly
20147 # built GCC, so that we can examine its features.  This is the linker
20148 # which will be driven by the driver program.
20149 #
20150 # If build != host, and we aren't building gas in-tree, we identify a
20151 # build->target linker and hope that it will have the same features
20152 # as the host->target linker we'll be using.
20153 gcc_cv_gld_major_version=
20154 gcc_cv_gld_minor_version=
20155 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20156 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20157
20158 if test "${gcc_cv_ld+set}" = set; then
20159   :
20160 else
20161
20162 if test -x "$DEFAULT_LINKER"; then
20163         gcc_cv_ld="$DEFAULT_LINKER"
20164 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20165      && test -f ../ld/Makefile \
20166      && test x$build = x$host; then
20167         gcc_cv_ld=../ld/ld-new$build_exeext
20168 elif test -x collect-ld$build_exeext; then
20169         # Build using linker in the current directory.
20170         gcc_cv_ld=./collect-ld$build_exeext
20171 elif test -x $LD_FOR_TARGET; then
20172         gcc_cv_ld="$LD_FOR_TARGET"
20173 else
20174         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20175 set dummy $LD_FOR_TARGET; ac_word=$2
20176 echo "$as_me:$LINENO: checking for $ac_word" >&5
20177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20178 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
20179   echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181   case $gcc_cv_ld in
20182   [\\/]* | ?:[\\/]*)
20183   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20184   ;;
20185   *)
20186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20187 for as_dir in $PATH
20188 do
20189   IFS=$as_save_IFS
20190   test -z "$as_dir" && as_dir=.
20191   for ac_exec_ext in '' $ac_executable_extensions; do
20192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20193     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20195     break 2
20196   fi
20197 done
20198 done
20199
20200   ;;
20201 esac
20202 fi
20203 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20204
20205 if test -n "$gcc_cv_ld"; then
20206   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20207 echo "${ECHO_T}$gcc_cv_ld" >&6
20208 else
20209   echo "$as_me:$LINENO: result: no" >&5
20210 echo "${ECHO_T}no" >&6
20211 fi
20212
20213 fi
20214 fi
20215
20216
20217 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20218
20219 case "$ORIGINAL_LD_FOR_TARGET" in
20220   ./collect-ld | ./collect-ld$build_exeext) ;;
20221   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20222  ;;
20223 esac
20224
20225 echo "$as_me:$LINENO: checking what linker to use" >&5
20226 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
20227 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20228         # Single tree build which includes ld.  We want to prefer it
20229         # over whatever linker top-level may have detected, since
20230         # we'll use what we're building after installation anyway.
20231         echo "$as_me:$LINENO: result: newly built ld" >&5
20232 echo "${ECHO_T}newly built ld" >&6
20233         in_tree_ld=yes
20234         in_tree_ld_is_elf=no
20235         if (grep 'EMUL = .*elf' ../ld/Makefile \
20236             || grep 'EMUL = .*linux' ../ld/Makefile \
20237             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20238           in_tree_ld_is_elf=yes
20239         fi
20240         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
20241         do
20242                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20243                 if test x$gcc_cv_gld_version != x; then
20244                         break
20245                 fi
20246         done
20247         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20248         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20249 else
20250         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
20251 echo "${ECHO_T}$gcc_cv_ld" >&6
20252         in_tree_ld=no
20253 fi
20254
20255 # Figure out what nm we will be using.
20256 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20257 if test "${gcc_cv_nm+set}" = set; then
20258   :
20259 else
20260
20261 if test -f $gcc_cv_binutils_srcdir/configure.in \
20262      && test -f ../binutils/Makefile \
20263      && test x$build = x$host; then
20264         gcc_cv_nm=../binutils/nm-new$build_exeext
20265 elif test -x nm$build_exeext; then
20266         gcc_cv_nm=./nm$build_exeext
20267 elif test -x $NM_FOR_TARGET; then
20268         gcc_cv_nm="$NM_FOR_TARGET"
20269 else
20270         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20271 set dummy $NM_FOR_TARGET; ac_word=$2
20272 echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20274 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   case $gcc_cv_nm in
20278   [\\/]* | ?:[\\/]*)
20279   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20280   ;;
20281   *)
20282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20284 do
20285   IFS=$as_save_IFS
20286   test -z "$as_dir" && as_dir=.
20287   for ac_exec_ext in '' $ac_executable_extensions; do
20288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20289     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20291     break 2
20292   fi
20293 done
20294 done
20295
20296   ;;
20297 esac
20298 fi
20299 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20300
20301 if test -n "$gcc_cv_nm"; then
20302   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20303 echo "${ECHO_T}$gcc_cv_nm" >&6
20304 else
20305   echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6
20307 fi
20308
20309 fi
20310 fi
20311
20312
20313 echo "$as_me:$LINENO: checking what nm to use" >&5
20314 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
20315 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20316         # Single tree build which includes binutils.
20317         echo "$as_me:$LINENO: result: newly built nm" >&5
20318 echo "${ECHO_T}newly built nm" >&6
20319         in_tree_nm=yes
20320 else
20321         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
20322 echo "${ECHO_T}$gcc_cv_nm" >&6
20323         in_tree_nm=no
20324 fi
20325
20326 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20327
20328 case "$ORIGINAL_NM_FOR_TARGET" in
20329   ./nm | ./nm$build_exeext) ;;
20330   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
20331  ;;
20332 esac
20333
20334
20335 # Figure out what objdump we will be using.
20336 if test "${gcc_cv_objdump+set}" = set; then
20337   :
20338 else
20339
20340 if test -f $gcc_cv_binutils_srcdir/configure.in \
20341      && test -f ../binutils/Makefile \
20342      && test x$build = x$host; then
20343         # Single tree build which includes binutils.
20344         gcc_cv_objdump=../binutils/objdump$build_exeext
20345 elif test -x objdump$build_exeext; then
20346         gcc_cv_objdump=./objdump$build_exeext
20347 elif test -x $OBJDUMP_FOR_TARGET; then
20348         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20349 else
20350         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20351 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20352 echo "$as_me:$LINENO: checking for $ac_word" >&5
20353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20354 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
20355   echo $ECHO_N "(cached) $ECHO_C" >&6
20356 else
20357   case $gcc_cv_objdump in
20358   [\\/]* | ?:[\\/]*)
20359   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20360   ;;
20361   *)
20362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20363 for as_dir in $PATH
20364 do
20365   IFS=$as_save_IFS
20366   test -z "$as_dir" && as_dir=.
20367   for ac_exec_ext in '' $ac_executable_extensions; do
20368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20369     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20371     break 2
20372   fi
20373 done
20374 done
20375
20376   ;;
20377 esac
20378 fi
20379 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20380
20381 if test -n "$gcc_cv_objdump"; then
20382   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20383 echo "${ECHO_T}$gcc_cv_objdump" >&6
20384 else
20385   echo "$as_me:$LINENO: result: no" >&5
20386 echo "${ECHO_T}no" >&6
20387 fi
20388
20389 fi
20390 fi
20391
20392
20393 echo "$as_me:$LINENO: checking what objdump to use" >&5
20394 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
20395 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20396         # Single tree build which includes binutils.
20397         echo "$as_me:$LINENO: result: newly built objdump" >&5
20398 echo "${ECHO_T}newly built objdump" >&6
20399 elif test x$gcc_cv_objdump = x; then
20400         echo "$as_me:$LINENO: result: not found" >&5
20401 echo "${ECHO_T}not found" >&6
20402 else
20403         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
20404 echo "${ECHO_T}$gcc_cv_objdump" >&6
20405 fi
20406
20407 # Figure out what assembler alignment features are present.
20408 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
20409 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
20410 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   gcc_cv_as_balign_and_p2align=no
20414     if test $in_tree_gas = yes; then
20415     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20416   then gcc_cv_as_balign_and_p2align=yes
20417 fi
20418   elif test x$gcc_cv_as != x; then
20419     echo '.balign 4
20420 .p2align 2' > conftest.s
20421     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }
20427     then
20428         gcc_cv_as_balign_and_p2align=yes
20429     else
20430       echo "configure: failed program was" >&5
20431       cat conftest.s >&5
20432     fi
20433     rm -f conftest.o conftest.s
20434   fi
20435 fi
20436 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
20437 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
20438 if test $gcc_cv_as_balign_and_p2align = yes; then
20439
20440 cat >>confdefs.h <<\_ACEOF
20441 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
20442 _ACEOF
20443
20444 fi
20445
20446 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
20447 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
20448 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
20449   echo $ECHO_N "(cached) $ECHO_C" >&6
20450 else
20451   gcc_cv_as_max_skip_p2align=no
20452     if test $in_tree_gas = yes; then
20453     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20454   then gcc_cv_as_max_skip_p2align=yes
20455 fi
20456   elif test x$gcc_cv_as != x; then
20457     echo '.p2align 4,,7' > conftest.s
20458     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }
20464     then
20465         gcc_cv_as_max_skip_p2align=yes
20466     else
20467       echo "configure: failed program was" >&5
20468       cat conftest.s >&5
20469     fi
20470     rm -f conftest.o conftest.s
20471   fi
20472 fi
20473 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
20474 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
20475 if test $gcc_cv_as_max_skip_p2align = yes; then
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
20479 _ACEOF
20480
20481 fi
20482
20483 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
20484 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
20485 if test "${gcc_cv_as_literal16+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   gcc_cv_as_literal16=no
20489     if test $in_tree_gas = yes; then
20490     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20491   then gcc_cv_as_literal16=yes
20492 fi
20493   elif test x$gcc_cv_as != x; then
20494     echo '.literal16' > conftest.s
20495     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497   (eval $ac_try) 2>&5
20498   ac_status=$?
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); }; }
20501     then
20502         gcc_cv_as_literal16=yes
20503     else
20504       echo "configure: failed program was" >&5
20505       cat conftest.s >&5
20506     fi
20507     rm -f conftest.o conftest.s
20508   fi
20509 fi
20510 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
20511 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
20512 if test $gcc_cv_as_literal16 = yes; then
20513
20514 cat >>confdefs.h <<\_ACEOF
20515 #define HAVE_GAS_LITERAL16 1
20516 _ACEOF
20517
20518 fi
20519
20520 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
20521 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
20522 if test "${gcc_cv_as_subsection_m1+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525   gcc_cv_as_subsection_m1=no
20526     if test $in_tree_gas = yes; then
20527     if test $in_tree_gas_is_elf = yes \
20528   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20529   then gcc_cv_as_subsection_m1=yes
20530 fi
20531   elif test x$gcc_cv_as != x; then
20532     echo 'conftest_label1: .word 0
20533 .subsection -1
20534 conftest_label2: .word 0
20535 .previous' > conftest.s
20536     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }
20542     then
20543         if test x$gcc_cv_nm != x; then
20544     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20545     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20546     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20547     then :
20548     else gcc_cv_as_subsection_m1=yes
20549     fi
20550     rm -f conftest.nm1 conftest.nm2
20551   fi
20552     else
20553       echo "configure: failed program was" >&5
20554       cat conftest.s >&5
20555     fi
20556     rm -f conftest.o conftest.s
20557   fi
20558 fi
20559 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
20560 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
20561 if test $gcc_cv_as_subsection_m1 = yes; then
20562
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_GAS_SUBSECTION_ORDERING 1
20565 _ACEOF
20566
20567 fi
20568
20569 echo "$as_me:$LINENO: checking assembler for .weak" >&5
20570 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
20571 if test "${gcc_cv_as_weak+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   gcc_cv_as_weak=no
20575     if test $in_tree_gas = yes; then
20576     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20577   then gcc_cv_as_weak=yes
20578 fi
20579   elif test x$gcc_cv_as != x; then
20580     echo '      .weak foobar' > conftest.s
20581     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583   (eval $ac_try) 2>&5
20584   ac_status=$?
20585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); }; }
20587     then
20588         gcc_cv_as_weak=yes
20589     else
20590       echo "configure: failed program was" >&5
20591       cat conftest.s >&5
20592     fi
20593     rm -f conftest.o conftest.s
20594   fi
20595 fi
20596 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
20597 echo "${ECHO_T}$gcc_cv_as_weak" >&6
20598 if test $gcc_cv_as_weak = yes; then
20599
20600 cat >>confdefs.h <<\_ACEOF
20601 #define HAVE_GAS_WEAK 1
20602 _ACEOF
20603
20604 fi
20605
20606 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
20607 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
20608 if test "${gcc_cv_as_weakref+set}" = set; then
20609   echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611   gcc_cv_as_weakref=no
20612     if test $in_tree_gas = yes; then
20613     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20614   then gcc_cv_as_weakref=yes
20615 fi
20616   elif test x$gcc_cv_as != x; then
20617     echo '      .weakref foobar, barfnot' > 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         gcc_cv_as_weakref=yes
20626     else
20627       echo "configure: failed program was" >&5
20628       cat conftest.s >&5
20629     fi
20630     rm -f conftest.o conftest.s
20631   fi
20632 fi
20633 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
20634 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
20635 if test $gcc_cv_as_weakref = yes; then
20636
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_GAS_WEAKREF 1
20639 _ACEOF
20640
20641 fi
20642
20643 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
20644 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
20645 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
20646   echo $ECHO_N "(cached) $ECHO_C" >&6
20647 else
20648   gcc_cv_as_nsubspa_comdat=no
20649     if test $in_tree_gas = yes; then
20650     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20651   then gcc_cv_as_nsubspa_comdat=yes
20652 fi
20653   elif test x$gcc_cv_as != x; then
20654     echo '      .SPACE $TEXT$
20655         .NSUBSPA $CODE$,COMDAT' > conftest.s
20656     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658   (eval $ac_try) 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }
20662     then
20663         gcc_cv_as_nsubspa_comdat=yes
20664     else
20665       echo "configure: failed program was" >&5
20666       cat conftest.s >&5
20667     fi
20668     rm -f conftest.o conftest.s
20669   fi
20670 fi
20671 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
20672 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
20673 if test $gcc_cv_as_nsubspa_comdat = yes; then
20674
20675 cat >>confdefs.h <<\_ACEOF
20676 #define HAVE_GAS_NSUBSPA_COMDAT 1
20677 _ACEOF
20678
20679 fi
20680
20681 # .hidden needs to be supported in both the assembler and the linker,
20682 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20683 # This is irritatingly difficult to feature test for; we have to check the
20684 # date string after the version number.  If we've got an in-tree
20685 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20686 # to be safe.
20687 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20688 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
20689 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
20690 if test "${gcc_cv_as_hidden+set}" = set; then
20691   echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693   gcc_cv_as_hidden=no
20694     if test $in_tree_gas = yes; then
20695     if test $in_tree_gas_is_elf = yes \
20696   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20697   then gcc_cv_as_hidden=yes
20698 fi
20699   elif test x$gcc_cv_as != x; then
20700     echo '      .hidden foobar
20701 foobar:' > conftest.s
20702     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704   (eval $ac_try) 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; }
20708     then
20709         gcc_cv_as_hidden=yes
20710     else
20711       echo "configure: failed program was" >&5
20712       cat conftest.s >&5
20713     fi
20714     rm -f conftest.o conftest.s
20715   fi
20716 fi
20717 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
20718 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
20719
20720
20721 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
20722 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
20723 if test "${gcc_cv_ld_hidden+set}" = set; then
20724   echo $ECHO_N "(cached) $ECHO_C" >&6
20725 else
20726   if test $in_tree_ld = yes ; then
20727   gcc_cv_ld_hidden=no
20728   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 \
20729      && test $in_tree_ld_is_elf = yes; then
20730      gcc_cv_ld_hidden=yes
20731   fi
20732 else
20733   gcc_cv_ld_hidden=yes
20734   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20735   if echo "$ld_ver" | grep GNU > /dev/null; then
20736     ld_vers=`echo $ld_ver | sed -n \
20737         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20738     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'`
20739     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20740     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20741     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20742     if test 0"$ld_date" -lt 20020404; then
20743       if test -n "$ld_date"; then
20744         # If there was date string, but was earlier than 2002-04-04, fail
20745         gcc_cv_ld_hidden=no
20746       elif test -z "$ld_vers"; then
20747         # If there was no date string nor ld version number, something is wrong
20748         gcc_cv_ld_hidden=no
20749       else
20750         test -z "$ld_vers_patch" && ld_vers_patch=0
20751         if test "$ld_vers_major" -lt 2; then
20752           gcc_cv_ld_hidden=no
20753         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20754           gcc_cv_ld_hidden="no"
20755         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20756           gcc_cv_ld_hidden=no
20757         fi
20758       fi
20759     fi
20760   else
20761     case "${target}" in
20762       hppa64*-*-hpux* | ia64*-*-hpux*)
20763         gcc_cv_ld_hidden=yes
20764         ;;
20765       *)
20766         gcc_cv_ld_hidden=no
20767         ;;
20768     esac
20769   fi
20770 fi
20771 fi
20772 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
20773 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
20774 libgcc_visibility=no
20775
20776
20777 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20778   libgcc_visibility=yes
20779
20780 cat >>confdefs.h <<\_ACEOF
20781 #define HAVE_GAS_HIDDEN 1
20782 _ACEOF
20783
20784 fi
20785
20786 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20787 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
20788 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
20789 if test "${gcc_cv_as_leb128+set}" = set; then
20790   echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792   gcc_cv_as_leb128=no
20793     if test $in_tree_gas = yes; then
20794     if test $in_tree_gas_is_elf = yes \
20795   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20796   then gcc_cv_as_leb128=yes
20797 fi
20798   elif test x$gcc_cv_as != x; then
20799     echo '      .data
20800         .uleb128 L2 - L1
20801 L1:
20802         .uleb128 1280
20803         .sleb128 -1010
20804 L2:' > conftest.s
20805     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }
20811     then
20812         # GAS versions before 2.11 do not support uleb128,
20813   # despite appearing to.
20814   # ??? There exists an elf-specific test that will crash
20815   # the assembler.  Perhaps it's better to figure out whether
20816   # arbitrary sections are supported and try the test.
20817   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20818   if echo "$as_ver" | grep GNU > /dev/null; then
20819     as_vers=`echo $as_ver | sed -n \
20820         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20821     as_major=`expr "$as_vers" : '\([0-9]*\)'`
20822     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20823     if test $as_major -eq 2 && test $as_minor -lt 11
20824     then :
20825     else gcc_cv_as_leb128=yes
20826     fi
20827   fi
20828     else
20829       echo "configure: failed program was" >&5
20830       cat conftest.s >&5
20831     fi
20832     rm -f conftest.o conftest.s
20833   fi
20834 fi
20835 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
20836 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
20837 if test $gcc_cv_as_leb128 = yes; then
20838
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_AS_LEB128 1
20841 _ACEOF
20842
20843 fi
20844
20845 # GAS versions up to and including 2.11.0 may mis-optimize
20846 # .eh_frame data.
20847 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
20848 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
20849 if test "${gcc_cv_as_eh_frame+set}" = set; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852   gcc_cv_as_eh_frame=no
20853     if test $in_tree_gas = yes; then
20854     if test $in_tree_gas_is_elf = yes \
20855   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20856   then gcc_cv_as_eh_frame=yes
20857 fi
20858   elif test x$gcc_cv_as != x; then
20859     echo '      .text
20860 .LFB1:
20861         .4byte  0
20862 .L1:
20863         .4byte  0
20864 .LFE1:
20865         .section        .eh_frame,"aw",@progbits
20866 __FRAME_BEGIN__:
20867         .4byte  .LECIE1-.LSCIE1
20868 .LSCIE1:
20869         .4byte  0x0
20870         .byte   0x1
20871         .ascii "z\0"
20872         .byte   0x1
20873         .byte   0x78
20874         .byte   0x1a
20875         .byte   0x0
20876         .byte   0x4
20877         .4byte  1
20878         .p2align 1
20879 .LECIE1:
20880 .LSFDE1:
20881         .4byte  .LEFDE1-.LASFDE1
20882 .LASFDE1:
20883         .4byte  .LASFDE1-__FRAME_BEGIN__
20884         .4byte  .LFB1
20885         .4byte  .LFE1-.LFB1
20886         .byte   0x4
20887         .4byte  .LFE1-.LFB1
20888         .byte   0x4
20889         .4byte  .L1-.LFB1
20890 .LEFDE1:' > conftest.s
20891     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
20892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893   (eval $ac_try) 2>&5
20894   ac_status=$?
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); }; }
20897     then
20898           cat > conftest.lit <<EOF
20899  0000 10000000 00000000 017a0001 781a0004  .........z..x...
20900  0010 01000000 12000000 18000000 00000000  ................
20901  0020 08000000 04080000 0044               .........D      
20902 EOF
20903 cat > conftest.big <<EOF
20904  0000 00000010 00000000 017a0001 781a0004  .........z..x...
20905  0010 00000001 00000012 00000018 00000000  ................
20906  0020 00000008 04000000 0844               .........D      
20907 EOF
20908   # If the assembler didn't choke, and we can objdump,
20909   # and we got the correct data, then succeed.
20910   # The text in the here-document typically retains its unix-style line
20911   # endings, while the output of objdump will use host line endings.
20912   # Therefore, use diff -b for the comparisons.
20913   if test x$gcc_cv_objdump != x \
20914   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
20915      | tail -3 > conftest.got \
20916   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
20917     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
20918   then
20919     gcc_cv_as_eh_frame=yes
20920   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
20921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922   (eval $ac_try) 2>&5
20923   ac_status=$?
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); }; }; then
20926     gcc_cv_as_eh_frame=buggy
20927   else
20928     # Uh oh, what do we do now?
20929     gcc_cv_as_eh_frame=no
20930   fi
20931     else
20932       echo "configure: failed program was" >&5
20933       cat conftest.s >&5
20934     fi
20935     rm -f conftest.o conftest.s
20936   fi
20937 fi
20938 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
20939 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
20940
20941
20942 if test $gcc_cv_as_eh_frame = buggy; then
20943
20944 cat >>confdefs.h <<\_ACEOF
20945 #define USE_AS_TRADITIONAL_FORMAT 1
20946 _ACEOF
20947
20948 fi
20949
20950 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20951 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20952 if test "${gcc_cv_as_shf_merge+set}" = set; then
20953   echo $ECHO_N "(cached) $ECHO_C" >&6
20954 else
20955   gcc_cv_as_shf_merge=no
20956     if test $in_tree_gas = yes; then
20957     if test $in_tree_gas_is_elf = yes \
20958   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20959   then gcc_cv_as_shf_merge=yes
20960 fi
20961   elif test x$gcc_cv_as != x; then
20962     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
20963     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965   (eval $ac_try) 2>&5
20966   ac_status=$?
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); }; }
20969     then
20970         gcc_cv_as_shf_merge=yes
20971     else
20972       echo "configure: failed program was" >&5
20973       cat conftest.s >&5
20974     fi
20975     rm -f conftest.o conftest.s
20976   fi
20977 fi
20978 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
20979 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
20980
20981 if test $gcc_cv_as_shf_merge = no; then
20982   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
20983 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
20984 if test "${gcc_cv_as_shf_merge+set}" = set; then
20985   echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987   gcc_cv_as_shf_merge=no
20988     if test $in_tree_gas = yes; then
20989     if test $in_tree_gas_is_elf = yes \
20990   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
20991   then gcc_cv_as_shf_merge=yes
20992 fi
20993   elif test x$gcc_cv_as != x; then
20994     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
20995     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
20996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997   (eval $ac_try) 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); }; }
21001     then
21002         gcc_cv_as_shf_merge=yes
21003     else
21004       echo "configure: failed program was" >&5
21005       cat conftest.s >&5
21006     fi
21007     rm -f conftest.o conftest.s
21008   fi
21009 fi
21010 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
21011 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
21012
21013 fi
21014
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21017 _ACEOF
21018
21019
21020 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21021 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21022 if test "${gcc_cv_as_comdat_group+set}" = set; then
21023   echo $ECHO_N "(cached) $ECHO_C" >&6
21024 else
21025   gcc_cv_as_comdat_group=no
21026     if test $in_tree_gas = yes; then
21027     if test $in_tree_gas_is_elf = yes \
21028   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21029   then gcc_cv_as_comdat_group=yes
21030 fi
21031   elif test x$gcc_cv_as != x; then
21032     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21033     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; }
21039     then
21040         gcc_cv_as_comdat_group=yes
21041     else
21042       echo "configure: failed program was" >&5
21043       cat conftest.s >&5
21044     fi
21045     rm -f conftest.o conftest.s
21046   fi
21047 fi
21048 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
21049 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
21050
21051 if test $gcc_cv_as_comdat_group = yes; then
21052   gcc_cv_as_comdat_group_percent=no
21053 else
21054  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
21055 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
21056 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059   gcc_cv_as_comdat_group_percent=no
21060     if test $in_tree_gas = yes; then
21061     if test $in_tree_gas_is_elf = yes \
21062   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21063   then gcc_cv_as_comdat_group_percent=yes
21064 fi
21065   elif test x$gcc_cv_as != x; then
21066     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21067     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069   (eval $ac_try) 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; }
21073     then
21074         gcc_cv_as_comdat_group_percent=yes
21075     else
21076       echo "configure: failed program was" >&5
21077       cat conftest.s >&5
21078     fi
21079     rm -f conftest.o conftest.s
21080   fi
21081 fi
21082 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
21083 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
21084
21085 fi
21086 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
21087   comdat_group=yes
21088   if test 0"$ld_date" -lt 20050308; then
21089     if test -n "$ld_date"; then
21090       # If there was date string, but was earlier than 2005-03-08, fail
21091       comdat_group=no
21092     elif test "$ld_vers_major" -lt 2; then
21093       comdat_group=no
21094     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21095       comdat_group=no
21096     fi
21097   fi
21098 else
21099   # assume linkers other than GNU ld don't support COMDAT group
21100   comdat_group=no
21101 fi
21102 if test $comdat_group = no; then
21103   gcc_cv_as_comdat_group=no
21104   gcc_cv_as_comdat_group_percent=no
21105 fi
21106
21107 cat >>confdefs.h <<_ACEOF
21108 #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`
21109 _ACEOF
21110
21111
21112 # Thread-local storage - the check is heavily parametrized.
21113 conftest_s=
21114 tls_first_major=
21115 tls_first_minor=
21116 tls_as_opt=
21117 case "$target" in
21118   alpha*-*-*)
21119     conftest_s='
21120         .section ".tdata","awT",@progbits
21121 foo:    .long   25
21122         .text
21123         ldq     $27,__tls_get_addr($29)         !literal!1
21124         lda     $16,foo($29)                    !tlsgd!1
21125         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
21126         ldq     $27,__tls_get_addr($29)         !literal!2
21127         lda     $16,foo($29)                    !tlsldm!2
21128         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
21129         ldq     $1,foo($29)                     !gotdtprel
21130         ldah    $2,foo($29)                     !dtprelhi
21131         lda     $3,foo($2)                      !dtprello
21132         lda     $4,foo($29)                     !dtprel
21133         ldq     $1,foo($29)                     !gottprel
21134         ldah    $2,foo($29)                     !tprelhi
21135         lda     $3,foo($2)                      !tprello
21136         lda     $4,foo($29)                     !tprel'
21137         tls_first_major=2
21138         tls_first_minor=13
21139         tls_as_opt=--fatal-warnings
21140         ;;
21141   frv*-*-*)
21142     conftest_s='
21143         .section ".tdata","awT",@progbits
21144 x:      .long   25
21145         .text
21146         call    #gettlsoff(x)'
21147         tls_first_major=2
21148         tls_first_minor=14
21149         ;;
21150   hppa*-*-linux*)
21151     conftest_s='
21152 t1:     .reg    %r20
21153 t2:     .reg    %r21
21154 gp:     .reg    %r19
21155         .section ".tdata","awT",@progbits
21156 foo:    .long   25
21157         .text
21158         .align  4
21159         addil LT%foo-$tls_gdidx$,gp
21160         ldo RT%foo-$tls_gdidx$(%r1),%arg0
21161         b __tls_get_addr
21162         nop
21163         addil LT%foo-$tls_ldidx$,gp
21164         b __tls_get_addr
21165         ldo RT%foo-$tls_ldidx$(%r1),%arg0
21166         addil LR%foo-$tls_dtpoff$,%ret0
21167         ldo RR%foo-$tls_dtpoff$(%r1),%t1
21168         mfctl %cr27,%t1
21169         addil LT%foo-$tls_ieoff$,gp
21170         ldw RT%foo-$tls_ieoff$(%r1),%t2
21171         add %t1,%t2,%t3
21172         mfctl %cr27,%t1
21173         addil LR%foo-$tls_leoff$,%t1
21174         ldo RR%foo-$tls_leoff$(%r1),%t2'
21175         tls_first_major=2
21176         tls_first_minor=15
21177         tls_as_opt=--fatal-warnings
21178         ;;
21179   arm*-*-*)
21180     conftest_s='
21181         .section ".tdata","awT",%progbits
21182 foo:    .long   25
21183         .text
21184 .word foo(gottpoff)
21185 .word foo(tpoff)
21186 .word foo(tlsgd)
21187 .word foo(tlsldm)
21188 .word foo(tlsldo)'
21189         tls_first_major=2
21190         tls_first_minor=17
21191         ;;
21192   i[34567]86-*-*)
21193     conftest_s='
21194         .section ".tdata","awT",@progbits
21195 foo:    .long   25
21196         .text
21197         movl    %gs:0, %eax
21198         leal    foo@TLSGD(,%ebx,1), %eax
21199         leal    foo@TLSLDM(%ebx), %eax
21200         leal    foo@DTPOFF(%eax), %edx
21201         movl    foo@GOTTPOFF(%ebx), %eax
21202         subl    foo@GOTTPOFF(%ebx), %eax
21203         addl    foo@GOTNTPOFF(%ebx), %eax
21204         movl    foo@INDNTPOFF, %eax
21205         movl    $foo@TPOFF, %eax
21206         subl    $foo@TPOFF, %eax
21207         leal    foo@NTPOFF(%ecx), %eax'
21208         tls_first_major=2
21209         tls_first_minor=14
21210         tls_as_opt=--fatal-warnings
21211         ;;
21212   x86_64-*-*)
21213     conftest_s='
21214         .section ".tdata","awT",@progbits
21215 foo:    .long   25
21216         .text
21217         movq    %fs:0, %rax
21218         leaq    foo@TLSGD(%rip), %rdi
21219         leaq    foo@TLSLD(%rip), %rdi
21220         leaq    foo@DTPOFF(%rax), %rdx
21221         movq    foo@GOTTPOFF(%rip), %rax
21222         movq    $foo@TPOFF, %rax'
21223         tls_first_major=2
21224         tls_first_minor=14
21225         tls_as_opt=--fatal-warnings
21226         ;;
21227   ia64-*-*)
21228     conftest_s='
21229         .section ".tdata","awT",@progbits
21230 foo:    data8   25
21231         .text
21232         addl    r16 = @ltoff(@dtpmod(foo#)), gp
21233         addl    r17 = @ltoff(@dtprel(foo#)), gp
21234         addl    r18 = @ltoff(@tprel(foo#)), gp
21235         addl    r19 = @dtprel(foo#), gp
21236         adds    r21 = @dtprel(foo#), r13
21237         movl    r23 = @dtprel(foo#)
21238         addl    r20 = @tprel(foo#), gp
21239         adds    r22 = @tprel(foo#), r13
21240         movl    r24 = @tprel(foo#)'
21241         tls_first_major=2
21242         tls_first_minor=13
21243         tls_as_opt=--fatal-warnings
21244         ;;
21245   mips*-*-*)
21246     conftest_s='
21247         .section .tdata,"awT",@progbits
21248 x:
21249         .word 2
21250         .text
21251         addiu $4, $28, %tlsgd(x)
21252         addiu $4, $28, %tlsldm(x)
21253         lui $4, %dtprel_hi(x)
21254         addiu $4, $4, %dtprel_lo(x)
21255         lw $4, %gottprel(x)($28)
21256         lui $4, %tprel_hi(x)
21257         addiu $4, $4, %tprel_lo(x)'
21258         tls_first_major=2
21259         tls_first_minor=16
21260         tls_as_opt='-32 --fatal-warnings'
21261         ;;
21262   powerpc-*-*)
21263     conftest_s='
21264         .section ".tdata","awT",@progbits
21265         .align 2
21266 ld0:    .space 4
21267 ld1:    .space 4
21268 x1:     .space 4
21269 x2:     .space 4
21270 x3:     .space 4
21271         .text
21272         addi 3,31,ld0@got@tlsgd
21273         bl __tls_get_addr
21274         addi 3,31,x1@got@tlsld
21275         bl __tls_get_addr
21276         addi 9,3,x1@dtprel
21277         addis 9,3,x2@dtprel@ha
21278         addi 9,9,x2@dtprel@l
21279         lwz 9,x3@got@tprel(31)
21280         add 9,9,x@tls
21281         addi 9,2,x1@tprel
21282         addis 9,2,x2@tprel@ha
21283         addi 9,9,x2@tprel@l'
21284         tls_first_major=2
21285         tls_first_minor=14
21286         tls_as_opt="-a32 --fatal-warnings"
21287         ;;
21288   powerpc64-*-*)
21289     conftest_s='
21290         .section ".tdata","awT",@progbits
21291         .align 3
21292 ld0:    .space 8
21293 ld1:    .space 8
21294 x1:     .space 8
21295 x2:     .space 8
21296 x3:     .space 8
21297         .text
21298         addi 3,2,ld0@got@tlsgd
21299         bl .__tls_get_addr
21300         nop
21301         addi 3,2,ld1@toc
21302         bl .__tls_get_addr
21303         nop
21304         addi 3,2,x1@got@tlsld
21305         bl .__tls_get_addr
21306         nop
21307         addi 9,3,x1@dtprel
21308         bl .__tls_get_addr
21309         nop
21310         addis 9,3,x2@dtprel@ha
21311         addi 9,9,x2@dtprel@l
21312         bl .__tls_get_addr
21313         nop
21314         ld 9,x3@got@dtprel(2)
21315         add 9,9,3
21316         bl .__tls_get_addr
21317         nop'
21318         tls_first_major=2
21319         tls_first_minor=14
21320         tls_as_opt="-a64 --fatal-warnings"
21321         ;;
21322   s390-*-*)
21323     conftest_s='
21324         .section ".tdata","awT",@progbits
21325 foo:    .long   25
21326         .text
21327         .long   foo@TLSGD
21328         .long   foo@TLSLDM
21329         .long   foo@DTPOFF
21330         .long   foo@NTPOFF
21331         .long   foo@GOTNTPOFF
21332         .long   foo@INDNTPOFF
21333         l       %r1,foo@GOTNTPOFF(%r12)
21334         l       %r1,0(%r1):tls_load:foo
21335         bas     %r14,0(%r1,%r13):tls_gdcall:foo
21336         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
21337         tls_first_major=2
21338         tls_first_minor=14
21339         tls_as_opt="-m31 --fatal-warnings"
21340         ;;
21341   s390x-*-*)
21342     conftest_s='
21343         .section ".tdata","awT",@progbits
21344 foo:    .long   25
21345         .text
21346         .quad   foo@TLSGD
21347         .quad   foo@TLSLDM
21348         .quad   foo@DTPOFF
21349         .quad   foo@NTPOFF
21350         .quad   foo@GOTNTPOFF
21351         lg      %r1,foo@GOTNTPOFF(%r12)
21352         larl    %r1,foo@INDNTPOFF
21353         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
21354         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21355         tls_first_major=2
21356         tls_first_minor=14
21357         tls_as_opt="-m64 -Aesame --fatal-warnings"
21358         ;;
21359   sh-*-* | sh[34]-*-*)
21360     conftest_s='
21361         .section ".tdata","awT",@progbits
21362 foo:    .long   25
21363         .text
21364         .long   foo@TLSGD
21365         .long   foo@TLSLDM
21366         .long   foo@DTPOFF
21367         .long   foo@GOTTPOFF
21368         .long   foo@TPOFF'
21369         tls_first_major=2
21370         tls_first_minor=13
21371         tls_as_opt=--fatal-warnings
21372         ;;
21373   sparc*-*-*)
21374     case "$target" in
21375       sparc*-sun-solaris2.[56789]*)
21376         # TLS was introduced in the Solaris 9 4/04 release but
21377         # we do not enable it by default on Solaris 9 either.
21378         if test "x$enable_tls" = xyes ; then
21379           on_solaris=yes
21380         else
21381           enable_tls=no;
21382         fi
21383         ;;
21384       sparc*-sun-solaris2.*)
21385         on_solaris=yes
21386         ;;
21387       *)
21388         on_solaris=no
21389         ;;
21390     esac
21391     if test x$on_solaris = xyes && test x$gas_flag = xno; then
21392       conftest_s='
21393         .section ".tdata",#alloc,#write,#tls
21394 foo:    .long   25
21395         .text
21396         sethi   %tgd_hi22(foo), %o0
21397         add     %o0, %tgd_lo10(foo), %o1
21398         add     %l7, %o1, %o0, %tgd_add(foo)
21399         call    __tls_get_addr, %tgd_call(foo)
21400         sethi   %tldm_hi22(foo), %l1
21401         add     %l1, %tldm_lo10(foo), %l2
21402         add     %l7, %l2, %o0, %tldm_add(foo)
21403         call    __tls_get_addr, %tldm_call(foo)
21404         sethi   %tldo_hix22(foo), %l3
21405         xor     %l3, %tldo_lox10(foo), %l4
21406         add     %o0, %l4, %l5, %tldo_add(foo)
21407         sethi   %tie_hi22(foo), %o3
21408         add     %o3, %tie_lo10(foo), %o3
21409         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21410         add     %g7, %o2, %o4, %tie_add(foo)
21411         sethi   %tle_hix22(foo), %l1
21412         xor     %l1, %tle_lox10(foo), %o5
21413         ld      [%g7 + %o5], %o1'
21414         tls_first_major=0
21415         tls_first_minor=0
21416     else
21417       conftest_s='
21418         .section ".tdata","awT",@progbits
21419 foo:    .long   25
21420         .text
21421         sethi   %tgd_hi22(foo), %o0
21422         add     %o0, %tgd_lo10(foo), %o1
21423         add     %l7, %o1, %o0, %tgd_add(foo)
21424         call    __tls_get_addr, %tgd_call(foo)
21425         sethi   %tldm_hi22(foo), %l1
21426         add     %l1, %tldm_lo10(foo), %l2
21427         add     %l7, %l2, %o0, %tldm_add(foo)
21428         call    __tls_get_addr, %tldm_call(foo)
21429         sethi   %tldo_hix22(foo), %l3
21430         xor     %l3, %tldo_lox10(foo), %l4
21431         add     %o0, %l4, %l5, %tldo_add(foo)
21432         sethi   %tie_hi22(foo), %o3
21433         add     %o3, %tie_lo10(foo), %o3
21434         ld      [%l7 + %o3], %o2, %tie_ld(foo)
21435         add     %g7, %o2, %o4, %tie_add(foo)
21436         sethi   %tle_hix22(foo), %l1
21437         xor     %l1, %tle_lox10(foo), %o5
21438         ld      [%g7 + %o5], %o1'
21439         tls_first_major=2
21440         tls_first_minor=14
21441         tls_as_opt="-32 --fatal-warnings"
21442       fi
21443         ;;
21444 esac
21445 set_have_as_tls=no
21446 if test "x$enable_tls" = xno ; then
21447   : # TLS explicitly disabled.
21448 elif test "x$enable_tls" = xyes ; then
21449   set_have_as_tls=yes # TLS explicitly enabled.
21450 elif test -z "$tls_first_major"; then
21451   : # If we don't have a check, assume no support.
21452 else
21453   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
21454 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
21455 if test "${gcc_cv_as_tls+set}" = set; then
21456   echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458   gcc_cv_as_tls=no
21459     if test $in_tree_gas = yes; then
21460     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21461   then gcc_cv_as_tls=yes
21462 fi
21463   elif test x$gcc_cv_as != x; then
21464     echo "$conftest_s" > conftest.s
21465     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467   (eval $ac_try) 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }
21471     then
21472         gcc_cv_as_tls=yes
21473     else
21474       echo "configure: failed program was" >&5
21475       cat conftest.s >&5
21476     fi
21477     rm -f conftest.o conftest.s
21478   fi
21479 fi
21480 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
21481 echo "${ECHO_T}$gcc_cv_as_tls" >&6
21482 if test $gcc_cv_as_tls = yes; then
21483   set_have_as_tls=yes
21484 fi
21485 fi
21486 if test $set_have_as_tls = yes ; then
21487
21488 cat >>confdefs.h <<\_ACEOF
21489 #define HAVE_AS_TLS 1
21490 _ACEOF
21491
21492 fi
21493
21494 # Target-specific assembler checks.
21495
21496 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
21497 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
21498 gcc_cv_ld_static_dynamic=no
21499 if test $in_tree_ld = yes ; then
21500   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
21501     gcc_cv_ld_static_dynamic=yes
21502   fi
21503 elif test x$gcc_cv_ld != x; then
21504         # Check if linker supports -Bstatic/-Bdynamic option
21505         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21506           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21507                 gcc_cv_ld_static_dynamic=yes
21508         fi
21509 fi
21510 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21511
21512 cat >>confdefs.h <<\_ACEOF
21513 #define HAVE_LD_STATIC_DYNAMIC 1
21514 _ACEOF
21515
21516 fi
21517 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
21518 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
21519
21520 if test x"$demangler_in_ld" = xyes; then
21521   echo "$as_me:$LINENO: checking linker --demangle support" >&5
21522 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
21523   gcc_cv_ld_demangle=no
21524   if test $in_tree_ld = yes; then
21525     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 \
21526       gcc_cv_ld_demangle=yes
21527     fi
21528   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21529     # Check if the GNU linker supports --demangle option
21530     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21531       gcc_cv_ld_demangle=yes
21532     fi
21533   fi
21534   if test x"$gcc_cv_ld_demangle" = xyes; then
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_LD_DEMANGLE 1
21538 _ACEOF
21539
21540   fi
21541   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
21542 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
21543 fi
21544
21545 case "$target" in
21546   # All TARGET_ABI_OSF targets.
21547   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21548     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
21549 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
21550 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553   gcc_cv_as_alpha_explicit_relocs=no
21554     if test $in_tree_gas = yes; then
21555     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21556   then gcc_cv_as_alpha_explicit_relocs=yes
21557 fi
21558   elif test x$gcc_cv_as != x; then
21559     echo '      .set nomacro
21560         .text
21561         extbl   $3, $2, $3      !lituse_bytoff!1
21562         ldq     $2, a($29)      !literal!1
21563         ldq     $4, b($29)      !literal!2
21564         ldq_u   $3, 0($2)       !lituse_base!1
21565         ldq     $27, f($29)     !literal!5
21566         jsr     $26, ($27), f   !lituse_jsr!5
21567         ldah    $29, 0($26)     !gpdisp!3
21568         lda     $0, c($29)      !gprel
21569         ldah    $1, d($29)      !gprelhigh
21570         lda     $1, d($1)       !gprellow
21571         lda     $29, 0($29)     !gpdisp!3' > conftest.s
21572     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574   (eval $ac_try) 2>&5
21575   ac_status=$?
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); }; }
21578     then
21579         gcc_cv_as_alpha_explicit_relocs=yes
21580     else
21581       echo "configure: failed program was" >&5
21582       cat conftest.s >&5
21583     fi
21584     rm -f conftest.o conftest.s
21585   fi
21586 fi
21587 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21588 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
21589 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21590
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_AS_EXPLICIT_RELOCS 1
21593 _ACEOF
21594
21595 fi
21596     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
21597 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
21598 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
21599   echo $ECHO_N "(cached) $ECHO_C" >&6
21600 else
21601   gcc_cv_as_alpha_jsrdirect_relocs=no
21602     if test $in_tree_gas = yes; then
21603     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21604   then gcc_cv_as_alpha_jsrdirect_relocs=yes
21605 fi
21606   elif test x$gcc_cv_as != x; then
21607     echo '      .set nomacro
21608         .text
21609         ldq     $27, a($29)     !literal!1
21610         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
21611     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; }
21617     then
21618         gcc_cv_as_alpha_jsrdirect_relocs=yes
21619     else
21620       echo "configure: failed program was" >&5
21621       cat conftest.s >&5
21622     fi
21623     rm -f conftest.o conftest.s
21624   fi
21625 fi
21626 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21627 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
21628 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21629
21630 cat >>confdefs.h <<\_ACEOF
21631 #define HAVE_AS_JSRDIRECT_RELOCS 1
21632 _ACEOF
21633
21634 fi
21635     ;;
21636
21637   cris-*-*)
21638     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
21639 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
21640 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
21641   echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643   gcc_cv_as_cris_no_mul_bug=no
21644     if test $in_tree_gas = yes; then
21645     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21646   then gcc_cv_as_cris_no_mul_bug=yes
21647 fi
21648   elif test x$gcc_cv_as != x; then
21649     echo '.text' > conftest.s
21650     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652   (eval $ac_try) 2>&5
21653   ac_status=$?
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); }; }
21656     then
21657         gcc_cv_as_cris_no_mul_bug=yes
21658     else
21659       echo "configure: failed program was" >&5
21660       cat conftest.s >&5
21661     fi
21662     rm -f conftest.o conftest.s
21663   fi
21664 fi
21665 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
21666 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
21667 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21668
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
21671 _ACEOF
21672
21673 fi
21674     ;;
21675
21676   sparc*-*-*)
21677     echo "$as_me:$LINENO: checking assembler for .register" >&5
21678 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
21679 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
21680   echo $ECHO_N "(cached) $ECHO_C" >&6
21681 else
21682   gcc_cv_as_sparc_register_op=no
21683   if test x$gcc_cv_as != x; then
21684     echo '.register %g2, #scratch' > conftest.s
21685     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687   (eval $ac_try) 2>&5
21688   ac_status=$?
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); }; }
21691     then
21692         gcc_cv_as_sparc_register_op=yes
21693     else
21694       echo "configure: failed program was" >&5
21695       cat conftest.s >&5
21696     fi
21697     rm -f conftest.o conftest.s
21698   fi
21699 fi
21700 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
21701 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
21702 if test $gcc_cv_as_sparc_register_op = yes; then
21703
21704 cat >>confdefs.h <<\_ACEOF
21705 #define HAVE_AS_REGISTER_PSEUDO_OP 1
21706 _ACEOF
21707
21708 fi
21709
21710     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
21711 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
21712 if test "${gcc_cv_as_sparc_relax+set}" = set; then
21713   echo $ECHO_N "(cached) $ECHO_C" >&6
21714 else
21715   gcc_cv_as_sparc_relax=no
21716   if test x$gcc_cv_as != x; then
21717     echo '.text' > conftest.s
21718     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720   (eval $ac_try) 2>&5
21721   ac_status=$?
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); }; }
21724     then
21725         gcc_cv_as_sparc_relax=yes
21726     else
21727       echo "configure: failed program was" >&5
21728       cat conftest.s >&5
21729     fi
21730     rm -f conftest.o conftest.s
21731   fi
21732 fi
21733 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
21734 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
21735 if test $gcc_cv_as_sparc_relax = yes; then
21736
21737 cat >>confdefs.h <<\_ACEOF
21738 #define HAVE_AS_RELAX_OPTION 1
21739 _ACEOF
21740
21741 fi
21742
21743     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
21744 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
21745 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 else
21748   gcc_cv_as_sparc_ua_pcrel=no
21749   if test x$gcc_cv_as != x; then
21750     echo '.text
21751 foo:
21752         nop
21753 .data
21754 .align 4
21755 .byte 0
21756 .uaword %r_disp32(foo)' > conftest.s
21757     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21759   (eval $ac_try) 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; }
21763     then
21764         if test x$gcc_cv_ld != x \
21765        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
21766          gcc_cv_as_sparc_ua_pcrel=yes
21767        fi
21768        rm -f conftest
21769     else
21770       echo "configure: failed program was" >&5
21771       cat conftest.s >&5
21772     fi
21773     rm -f conftest.o conftest.s
21774   fi
21775 fi
21776 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
21777 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
21778 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
21779
21780 cat >>confdefs.h <<\_ACEOF
21781 #define HAVE_AS_SPARC_UA_PCREL 1
21782 _ACEOF
21783
21784
21785       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
21786 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
21787 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
21788   echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790   gcc_cv_as_sparc_ua_pcrel_hidden=no
21791   if test x$gcc_cv_as != x; then
21792     echo '.data
21793 .align 4
21794 .byte 0x31
21795 .uaword %r_disp32(foo)
21796 .byte 0x32, 0x33, 0x34
21797 .global foo
21798 .hidden foo
21799 foo:
21800 .skip 4' > conftest.s
21801     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
21802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803   (eval $ac_try) 2>&5
21804   ac_status=$?
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); }; }
21807     then
21808         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
21809          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
21810          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
21811             | grep ' 31000000 07323334' > /dev/null 2>&1; then
21812             if $gcc_cv_objdump -R conftest 2> /dev/null \
21813                | grep 'DISP32' > /dev/null 2>&1; then
21814                 :
21815             else
21816                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
21817             fi
21818          fi
21819          rm -f conftest
21820     else
21821       echo "configure: failed program was" >&5
21822       cat conftest.s >&5
21823     fi
21824     rm -f conftest.o conftest.s
21825   fi
21826 fi
21827 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
21828 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
21829 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
21830
21831 cat >>confdefs.h <<\_ACEOF
21832 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
21833 _ACEOF
21834
21835 fi
21836
21837 fi # unaligned pcrel relocs
21838
21839     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
21840 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
21841 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
21842   echo $ECHO_N "(cached) $ECHO_C" >&6
21843 else
21844   gcc_cv_as_sparc_offsetable_lo10=no
21845   if test x$gcc_cv_as != x; then
21846     echo '.text
21847         or %g1, %lo(ab) + 12, %g1
21848         or %g1, %lo(ab + 12), %g1' > conftest.s
21849     if { ac_try='$gcc_cv_as -xarch=v9 -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         if test x$gcc_cv_objdump != x \
21857        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
21858           | grep ' 82106000 82106000' > /dev/null 2>&1; then
21859          gcc_cv_as_sparc_offsetable_lo10=yes
21860        fi
21861     else
21862       echo "configure: failed program was" >&5
21863       cat conftest.s >&5
21864     fi
21865     rm -f conftest.o conftest.s
21866   fi
21867 fi
21868 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
21869 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
21870 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
21871
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_AS_OFFSETABLE_LO10 1
21874 _ACEOF
21875
21876 fi
21877     ;;
21878
21879   i[34567]86-*-* | x86_64-*-*)
21880     case $target_os in
21881       cygwin* | pe | mingw32*)
21882         # Used for DWARF 2 in PE
21883         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
21884 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
21885 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888   gcc_cv_as_ix86_pe_secrel32=no
21889     if test $in_tree_gas = yes; then
21890     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21891   then gcc_cv_as_ix86_pe_secrel32=yes
21892 fi
21893   elif test x$gcc_cv_as != x; then
21894     echo '.text
21895 foo:    nop
21896 .data
21897         .secrel32 foo' > conftest.s
21898     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900   (eval $ac_try) 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }
21904     then
21905         if test x$gcc_cv_ld != x \
21906            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
21907              gcc_cv_as_ix86_pe_secrel32=yes
21908            fi
21909            rm -f conftest
21910     else
21911       echo "configure: failed program was" >&5
21912       cat conftest.s >&5
21913     fi
21914     rm -f conftest.o conftest.s
21915   fi
21916 fi
21917 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
21918 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
21919 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
21920
21921 cat >>confdefs.h <<\_ACEOF
21922 #define HAVE_GAS_PE_SECREL32_RELOC 1
21923 _ACEOF
21924
21925 fi
21926         ;;
21927     esac
21928
21929     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
21930 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
21931 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
21932   echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934   gcc_cv_as_ix86_filds_fists=no
21935     if test $in_tree_gas = yes; then
21936     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21937   then gcc_cv_as_ix86_filds_fists=yes
21938 fi
21939   elif test x$gcc_cv_as != x; then
21940     echo 'filds mem; fists mem' > conftest.s
21941     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943   (eval $ac_try) 2>&5
21944   ac_status=$?
21945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946   (exit $ac_status); }; }
21947     then
21948         gcc_cv_as_ix86_filds_fists=yes
21949     else
21950       echo "configure: failed program was" >&5
21951       cat conftest.s >&5
21952     fi
21953     rm -f conftest.o conftest.s
21954   fi
21955 fi
21956 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
21957 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
21958 if test $gcc_cv_as_ix86_filds_fists = yes; then
21959
21960 cat >>confdefs.h <<\_ACEOF
21961 #define HAVE_GAS_FILDS_FISTS 1
21962 _ACEOF
21963
21964 fi
21965
21966     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
21967 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
21968 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
21969   echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971   gcc_cv_as_ix86_cmov_sun_syntax=no
21972   if test x$gcc_cv_as != x; then
21973     echo 'cmovl.l %edx, %eax' > conftest.s
21974     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; }
21980     then
21981         gcc_cv_as_ix86_cmov_sun_syntax=yes
21982     else
21983       echo "configure: failed program was" >&5
21984       cat conftest.s >&5
21985     fi
21986     rm -f conftest.o conftest.s
21987   fi
21988 fi
21989 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
21990 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
21991 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
21995 _ACEOF
21996
21997 fi
21998
21999     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
22000 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
22001 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004   gcc_cv_as_ix86_ffreep=no
22005   if test x$gcc_cv_as != x; then
22006     echo 'ffreep %st(1)' > conftest.s
22007     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }
22013     then
22014         gcc_cv_as_ix86_ffreep=yes
22015     else
22016       echo "configure: failed program was" >&5
22017       cat conftest.s >&5
22018     fi
22019     rm -f conftest.o conftest.s
22020   fi
22021 fi
22022 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
22023 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
22024 if test $gcc_cv_as_ix86_ffreep = yes; then
22025
22026 cat >>confdefs.h <<\_ACEOF
22027 #define HAVE_AS_IX86_FFREEP 1
22028 _ACEOF
22029
22030 fi
22031
22032     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
22033 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
22034 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
22035   echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037   gcc_cv_as_ix86_sahf=no
22038   if test x$gcc_cv_as != x; then
22039     echo 'sahf' > conftest.s
22040     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042   (eval $ac_try) 2>&5
22043   ac_status=$?
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); }; }
22046     then
22047         gcc_cv_as_ix86_sahf=yes
22048     else
22049       echo "configure: failed program was" >&5
22050       cat conftest.s >&5
22051     fi
22052     rm -f conftest.o conftest.s
22053   fi
22054 fi
22055 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
22056 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
22057 if test $gcc_cv_as_ix86_sahf = yes; then
22058
22059 cat >>confdefs.h <<\_ACEOF
22060 #define HAVE_AS_IX86_SAHF 1
22061 _ACEOF
22062
22063 fi
22064
22065     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
22066 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
22067 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
22068   echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070   gcc_cv_as_ix86_diff_sect_delta=no
22071   if test x$gcc_cv_as != x; then
22072     echo '.section .rodata
22073 .L1:
22074         .long .L2-.L1
22075         .long .L3-.L1
22076         .text
22077 .L3:    nop
22078 .L2:    nop' > conftest.s
22079     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081   (eval $ac_try) 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; }
22085     then
22086         gcc_cv_as_ix86_diff_sect_delta=yes
22087     else
22088       echo "configure: failed program was" >&5
22089       cat conftest.s >&5
22090     fi
22091     rm -f conftest.o conftest.s
22092   fi
22093 fi
22094 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22095 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
22096 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22097
22098 cat >>confdefs.h <<\_ACEOF
22099 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
22100 _ACEOF
22101
22102 fi
22103
22104     # This one is used unconditionally by i386.[ch]; it is to be defined
22105     # to 1 if the feature is present, 0 otherwise.
22106     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
22107 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
22108 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
22109   echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111   gcc_cv_as_ix86_gotoff_in_data=no
22112     if test $in_tree_gas = yes; then
22113     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22114   then gcc_cv_as_ix86_gotoff_in_data=yes
22115 fi
22116   elif test x$gcc_cv_as != x; then
22117     echo '      .text
22118 .L0:
22119         nop
22120         .data
22121         .long .L0@GOTOFF' > conftest.s
22122     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }
22128     then
22129         gcc_cv_as_ix86_gotoff_in_data=yes
22130     else
22131       echo "configure: failed program was" >&5
22132       cat conftest.s >&5
22133     fi
22134     rm -f conftest.o conftest.s
22135   fi
22136 fi
22137 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22138 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
22139
22140
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22143 _ACEOF
22144
22145     ;;
22146
22147   ia64*-*-*)
22148     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
22149 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
22150 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22154     if test $in_tree_gas = yes; then
22155     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22156   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22157 fi
22158   elif test x$gcc_cv_as != x; then
22159     echo '      .text
22160         addl r15 = @ltoffx(x#), gp
22161         ;;
22162         ld8.mov r16 = [r15], x#' > conftest.s
22163     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165   (eval $ac_try) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); }; }
22169     then
22170         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22171     else
22172       echo "configure: failed program was" >&5
22173       cat conftest.s >&5
22174     fi
22175     rm -f conftest.o conftest.s
22176   fi
22177 fi
22178 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22179 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
22180 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22181
22182 cat >>confdefs.h <<\_ACEOF
22183 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
22184 _ACEOF
22185
22186 fi
22187
22188     ;;
22189
22190   powerpc*-*-*)
22191     case $target in
22192       *-*-aix*) conftest_s='    .machine "pwr5"
22193         .csect .text[PR]
22194         mfcr 3,128';;
22195       *-*-darwin*)
22196         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
22197 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
22198 if test "${gcc_cv_as_machine_directive+set}" = set; then
22199   echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201   gcc_cv_as_machine_directive=no
22202   if test x$gcc_cv_as != x; then
22203     echo '      .machine ppc7400' > conftest.s
22204     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206   (eval $ac_try) 2>&5
22207   ac_status=$?
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); }; }
22210     then
22211         gcc_cv_as_machine_directive=yes
22212     else
22213       echo "configure: failed program was" >&5
22214       cat conftest.s >&5
22215     fi
22216     rm -f conftest.o conftest.s
22217   fi
22218 fi
22219 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
22220 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
22221
22222         if test x$gcc_cv_as_machine_directive != xyes; then
22223           echo "*** This target requires an assembler supporting \".machine\"" >&2
22224           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22225           test x$build = x$target && exit 1
22226         fi
22227         conftest_s='    .text
22228         mfcr r3,128';;
22229       *) conftest_s='   .machine power4
22230         .text
22231         mfcr 3,128';;
22232     esac
22233
22234     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
22235 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
22236 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
22237   echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239   gcc_cv_as_powerpc_mfcrf=no
22240     if test $in_tree_gas = yes; then
22241     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22242   then gcc_cv_as_powerpc_mfcrf=yes
22243 fi
22244   elif test x$gcc_cv_as != x; then
22245     echo "$conftest_s" > conftest.s
22246     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248   (eval $ac_try) 2>&5
22249   ac_status=$?
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); }; }
22252     then
22253         gcc_cv_as_powerpc_mfcrf=yes
22254     else
22255       echo "configure: failed program was" >&5
22256       cat conftest.s >&5
22257     fi
22258     rm -f conftest.o conftest.s
22259   fi
22260 fi
22261 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
22262 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
22263 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22264
22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_AS_MFCRF 1
22267 _ACEOF
22268
22269 fi
22270
22271     case $target in
22272       *-*-aix*) conftest_s='    .machine "pwr5"
22273         .csect .text[PR]
22274         popcntb 3,3';;
22275       *) conftest_s='   .machine power5
22276         .text
22277         popcntb 3,3';;
22278     esac
22279
22280     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
22281 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
22282 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
22283   echo $ECHO_N "(cached) $ECHO_C" >&6
22284 else
22285   gcc_cv_as_powerpc_popcntb=no
22286     if test $in_tree_gas = yes; then
22287     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22288   then gcc_cv_as_powerpc_popcntb=yes
22289 fi
22290   elif test x$gcc_cv_as != x; then
22291     echo "$conftest_s" > conftest.s
22292     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294   (eval $ac_try) 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; }
22298     then
22299         gcc_cv_as_powerpc_popcntb=yes
22300     else
22301       echo "configure: failed program was" >&5
22302       cat conftest.s >&5
22303     fi
22304     rm -f conftest.o conftest.s
22305   fi
22306 fi
22307 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
22308 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
22309 if test $gcc_cv_as_powerpc_popcntb = yes; then
22310
22311 cat >>confdefs.h <<\_ACEOF
22312 #define HAVE_AS_POPCNTB 1
22313 _ACEOF
22314
22315 fi
22316
22317     case $target in
22318       *-*-aix*) conftest_s='    .machine "pwr5x"
22319         .csect .text[PR]
22320         frin 1,1';;
22321       *) conftest_s='   .machine power5
22322         .text
22323         frin 1,1';;
22324     esac
22325
22326     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
22327 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
22328 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
22329   echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331   gcc_cv_as_powerpc_fprnd=no
22332     if test $in_tree_gas = yes; then
22333     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22334   then gcc_cv_as_powerpc_fprnd=yes
22335 fi
22336   elif test x$gcc_cv_as != x; then
22337     echo "$conftest_s" > conftest.s
22338     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340   (eval $ac_try) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }; }
22344     then
22345         gcc_cv_as_powerpc_fprnd=yes
22346     else
22347       echo "configure: failed program was" >&5
22348       cat conftest.s >&5
22349     fi
22350     rm -f conftest.o conftest.s
22351   fi
22352 fi
22353 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
22354 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
22355 if test $gcc_cv_as_powerpc_fprnd = yes; then
22356
22357 cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_AS_FPRND 1
22359 _ACEOF
22360
22361 fi
22362
22363     case $target in
22364       *-*-aix*) conftest_s='    .machine "pwr6"
22365         .csect .text[PR]
22366         mffgpr 1,3';;
22367       *) conftest_s='   .machine power6
22368         .text
22369         mffgpr 1,3';;
22370     esac
22371
22372     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
22373 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
22374 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   gcc_cv_as_powerpc_mfpgpr=no
22378     if test $in_tree_gas = yes; then
22379     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22380   then gcc_cv_as_powerpc_mfpgpr=yes
22381 fi
22382   elif test x$gcc_cv_as != x; then
22383     echo "$conftest_s" > conftest.s
22384     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }
22390     then
22391         gcc_cv_as_powerpc_mfpgpr=yes
22392     else
22393       echo "configure: failed program was" >&5
22394       cat conftest.s >&5
22395     fi
22396     rm -f conftest.o conftest.s
22397   fi
22398 fi
22399 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22400 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
22401 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AS_MFPGPR 1
22405 _ACEOF
22406
22407 fi
22408
22409     case $target in
22410       *-*-aix*) conftest_s='    .csect .text[PR]
22411 LCF..0:
22412         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22413       *-*-darwin*)
22414         conftest_s='    .text
22415 LCF0:
22416         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22417       *) conftest_s='   .text
22418 .LCF0:
22419         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22420     esac
22421
22422     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
22423 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
22424 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   gcc_cv_as_powerpc_rel16=no
22428     if test $in_tree_gas = yes; then
22429     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22430   then gcc_cv_as_powerpc_rel16=yes
22431 fi
22432   elif test x$gcc_cv_as != x; then
22433     echo "$conftest_s" > conftest.s
22434     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436   (eval $ac_try) 2>&5
22437   ac_status=$?
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); }; }
22440     then
22441         gcc_cv_as_powerpc_rel16=yes
22442     else
22443       echo "configure: failed program was" >&5
22444       cat conftest.s >&5
22445     fi
22446     rm -f conftest.o conftest.s
22447   fi
22448 fi
22449 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
22450 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
22451 if test $gcc_cv_as_powerpc_rel16 = yes; then
22452
22453 cat >>confdefs.h <<\_ACEOF
22454 #define HAVE_AS_REL16 1
22455 _ACEOF
22456
22457 fi
22458
22459     case $target in
22460       *-*-aix*) conftest_s='    .machine "pwr6"
22461         .csect .text[PR]
22462         cmpb 3,4,5';;
22463       *) conftest_s='   .machine power6
22464         .text
22465         cmpb 3,4,5';;
22466     esac
22467
22468     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
22469 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
22470 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
22471   echo $ECHO_N "(cached) $ECHO_C" >&6
22472 else
22473   gcc_cv_as_powerpc_cmpb=no
22474     if test $in_tree_gas = yes; then
22475     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22476   then gcc_cv_as_powerpc_cmpb=yes
22477 fi
22478   elif test x$gcc_cv_as != x; then
22479     echo "$conftest_s" > conftest.s
22480     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482   (eval $ac_try) 2>&5
22483   ac_status=$?
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); }; }
22486     then
22487         gcc_cv_as_powerpc_cmpb=yes
22488     else
22489       echo "configure: failed program was" >&5
22490       cat conftest.s >&5
22491     fi
22492     rm -f conftest.o conftest.s
22493   fi
22494 fi
22495 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
22496 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
22497 if test $gcc_cv_as_powerpc_cmpb = yes; then
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_AS_CMPB 1
22501 _ACEOF
22502
22503 fi
22504
22505     case $target in
22506       *-*-aix*) conftest_s='    .machine "pwr6"
22507         .csect .text[PR]
22508         dadd 1,2,3';;
22509       *) conftest_s='   .machine power6
22510         .text
22511         dadd 1,2,3';;
22512     esac
22513
22514     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
22515 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
22516 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519   gcc_cv_as_powerpc_dfp=no
22520     if test $in_tree_gas = yes; then
22521     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
22522   then gcc_cv_as_powerpc_dfp=yes
22523 fi
22524   elif test x$gcc_cv_as != x; then
22525     echo "$conftest_s" > conftest.s
22526     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528   (eval $ac_try) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; }
22532     then
22533         gcc_cv_as_powerpc_dfp=yes
22534     else
22535       echo "configure: failed program was" >&5
22536       cat conftest.s >&5
22537     fi
22538     rm -f conftest.o conftest.s
22539   fi
22540 fi
22541 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
22542 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
22543 if test $gcc_cv_as_powerpc_dfp = yes; then
22544
22545 cat >>confdefs.h <<\_ACEOF
22546 #define HAVE_AS_DFP 1
22547 _ACEOF
22548
22549 fi
22550
22551     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22552 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22553 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
22554   echo $ECHO_N "(cached) $ECHO_C" >&6
22555 else
22556   gcc_cv_as_powerpc_gnu_attribute=no
22557     if test $in_tree_gas = yes; then
22558     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22559   then gcc_cv_as_powerpc_gnu_attribute=yes
22560 fi
22561   elif test x$gcc_cv_as != x; then
22562     echo '.gnu_attribute 4,1' > conftest.s
22563     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565   (eval $ac_try) 2>&5
22566   ac_status=$?
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); }; }
22569     then
22570         gcc_cv_as_powerpc_gnu_attribute=yes
22571     else
22572       echo "configure: failed program was" >&5
22573       cat conftest.s >&5
22574     fi
22575     rm -f conftest.o conftest.s
22576   fi
22577 fi
22578 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
22579 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
22580 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
22581
22582 cat >>confdefs.h <<\_ACEOF
22583 #define HAVE_AS_GNU_ATTRIBUTE 1
22584 _ACEOF
22585
22586 fi
22587     ;;
22588
22589   mips*-*-*)
22590     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
22591 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
22592 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   gcc_cv_as_mips_explicit_relocs=no
22596     if test $in_tree_gas = yes; then
22597     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22598   then gcc_cv_as_mips_explicit_relocs=yes
22599 fi
22600   elif test x$gcc_cv_as != x; then
22601     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
22602     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }
22608     then
22609         gcc_cv_as_mips_explicit_relocs=yes
22610     else
22611       echo "configure: failed program was" >&5
22612       cat conftest.s >&5
22613     fi
22614     rm -f conftest.o conftest.s
22615   fi
22616 fi
22617 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
22618 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
22619 if test $gcc_cv_as_mips_explicit_relocs = yes; then
22620   if test x$target_cpu_default = x
22621        then target_cpu_default=MASK_EXPLICIT_RELOCS
22622        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
22623        fi
22624 fi
22625     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
22626 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
22627 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630   gcc_cv_as_mips_no_shared=no
22631     if test $in_tree_gas = yes; then
22632     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22633   then gcc_cv_as_mips_no_shared=yes
22634 fi
22635   elif test x$gcc_cv_as != x; then
22636     echo 'nop' > conftest.s
22637     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
22638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }
22643     then
22644         gcc_cv_as_mips_no_shared=yes
22645     else
22646       echo "configure: failed program was" >&5
22647       cat conftest.s >&5
22648     fi
22649     rm -f conftest.o conftest.s
22650   fi
22651 fi
22652 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
22653 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
22654 if test $gcc_cv_as_mips_no_shared = yes; then
22655
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_AS_NO_SHARED 1
22658 _ACEOF
22659
22660 fi
22661
22662     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
22663 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
22664 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
22665   echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667   gcc_cv_as_mips_gnu_attribute=no
22668     if test $in_tree_gas = yes; then
22669     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22670   then gcc_cv_as_mips_gnu_attribute=yes
22671 fi
22672   elif test x$gcc_cv_as != x; then
22673     echo '.gnu_attribute 4,1' > conftest.s
22674     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676   (eval $ac_try) 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; }
22680     then
22681         gcc_cv_as_mips_gnu_attribute=yes
22682     else
22683       echo "configure: failed program was" >&5
22684       cat conftest.s >&5
22685     fi
22686     rm -f conftest.o conftest.s
22687   fi
22688 fi
22689 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
22690 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
22691 if test $gcc_cv_as_mips_gnu_attribute = yes; then
22692
22693 cat >>confdefs.h <<\_ACEOF
22694 #define HAVE_AS_GNU_ATTRIBUTE 1
22695 _ACEOF
22696
22697 fi
22698
22699     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
22700 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
22701 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
22702   echo $ECHO_N "(cached) $ECHO_C" >&6
22703 else
22704   gcc_cv_as_mips_dtprelword=no
22705     if test $in_tree_gas = yes; then
22706     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22707   then gcc_cv_as_mips_dtprelword=yes
22708 fi
22709   elif test x$gcc_cv_as != x; then
22710     echo '.section .tdata,"awT",@progbits
22711 x:
22712         .word 2
22713         .text
22714         .dtprelword x+0x8000' > conftest.s
22715     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717   (eval $ac_try) 2>&5
22718   ac_status=$?
22719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720   (exit $ac_status); }; }
22721     then
22722         gcc_cv_as_mips_dtprelword=yes
22723     else
22724       echo "configure: failed program was" >&5
22725       cat conftest.s >&5
22726     fi
22727     rm -f conftest.o conftest.s
22728   fi
22729 fi
22730 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
22731 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
22732 if test $gcc_cv_as_mips_dtprelword = yes; then
22733
22734 cat >>confdefs.h <<\_ACEOF
22735 #define HAVE_AS_DTPRELWORD 1
22736 _ACEOF
22737
22738 fi
22739     ;;
22740 esac
22741
22742 # Mips and HP-UX need the GNU assembler.
22743 # Linux on IA64 might be able to use the Intel assembler.
22744
22745 case "$target" in
22746   mips*-*-* | *-*-hpux* )
22747     if test x$gas_flag = xyes \
22748        || test x"$host" != x"$build" \
22749        || test ! -x "$gcc_cv_as" \
22750        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
22751       :
22752     else
22753       echo "*** This configuration requires the GNU assembler" >&2
22754       exit 1
22755     fi
22756     ;;
22757 esac
22758
22759 # ??? Not all targets support dwarf2 debug_line, even within a version
22760 # of gas.  Moreover, we need to emit a valid instruction to trigger any
22761 # info to the output file.  So, as supported targets are added to gas 2.11,
22762 # add some instruction here to (also) show we expect this might work.
22763 # ??? Once 2.11 is released, probably need to add first known working
22764 # version to the per-target configury.
22765 case "$target" in
22766   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
22767   | x86_64*-*-* | hppa*-*-* | arm*-*-* \
22768   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* \
22769   | spu-*-* | fido*-*-*)
22770     insn="nop"
22771     ;;
22772   ia64*-*-* | s390*-*-*)
22773     insn="nop 0"
22774     ;;
22775   mmix-*-*)
22776     insn="swym 0"
22777     ;;
22778 esac
22779 if test x"$insn" != x; then
22780  conftest_s="\
22781         .file 1 \"conftest.s\"
22782         .loc 1 3 0
22783         $insn"
22784  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
22785 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
22786 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
22787   echo $ECHO_N "(cached) $ECHO_C" >&6
22788 else
22789   gcc_cv_as_dwarf2_debug_line=no
22790     if test $in_tree_gas = yes; then
22791     if test $in_tree_gas_is_elf = yes \
22792   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22793   then gcc_cv_as_dwarf2_debug_line=yes
22794 fi
22795   elif test x$gcc_cv_as != x; then
22796     echo "$conftest_s" > conftest.s
22797     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799   (eval $ac_try) 2>&5
22800   ac_status=$?
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); }; }
22803     then
22804         if test x$gcc_cv_objdump != x \
22805    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
22806       | grep debug_line > /dev/null 2>&1; then
22807      gcc_cv_as_dwarf2_debug_line=yes
22808    fi
22809     else
22810       echo "configure: failed program was" >&5
22811       cat conftest.s >&5
22812     fi
22813     rm -f conftest.o conftest.s
22814   fi
22815 fi
22816 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
22817 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
22818
22819
22820 # The .debug_line file table must be in the exact order that
22821 # we specified the files, since these indices are also used
22822 # by DW_AT_decl_file.  Approximate this test by testing if
22823 # the assembler bitches if the same index is assigned twice.
22824  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
22825 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
22826 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829   gcc_cv_as_dwarf2_file_buggy=no
22830   if test x$gcc_cv_as != x; then
22831     echo '      .file 1 "foo.s"
22832         .file 1 "bar.s"' > conftest.s
22833     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
22834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835   (eval $ac_try) 2>&5
22836   ac_status=$?
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); }; }
22839     then
22840         gcc_cv_as_dwarf2_file_buggy=yes
22841     else
22842       echo "configure: failed program was" >&5
22843       cat conftest.s >&5
22844     fi
22845     rm -f conftest.o conftest.s
22846   fi
22847 fi
22848 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
22849 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
22850
22851
22852  if test $gcc_cv_as_dwarf2_debug_line = yes \
22853  && test $gcc_cv_as_dwarf2_file_buggy = no; then
22854
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_AS_DWARF2_DEBUG_LINE 1
22857 _ACEOF
22858
22859  fi
22860
22861  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
22862 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
22863 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
22864   echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866   gcc_cv_as_gdwarf2_flag=no
22867     if test $in_tree_gas = yes; then
22868     if test $in_tree_gas_is_elf = yes \
22869   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22870   then gcc_cv_as_gdwarf2_flag=yes
22871 fi
22872   elif test x$gcc_cv_as != x; then
22873     echo "$insn" > conftest.s
22874     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
22875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876   (eval $ac_try) 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }
22880     then
22881         gcc_cv_as_gdwarf2_flag=yes
22882     else
22883       echo "configure: failed program was" >&5
22884       cat conftest.s >&5
22885     fi
22886     rm -f conftest.o conftest.s
22887   fi
22888 fi
22889 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
22890 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
22891 if test $gcc_cv_as_gdwarf2_flag = yes; then
22892
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
22895 _ACEOF
22896
22897 fi
22898
22899  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
22900 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
22901 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   gcc_cv_as_gstabs_flag=no
22905     if test $in_tree_gas = yes; then
22906     if test $in_tree_gas_is_elf = yes \
22907   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22908   then gcc_cv_as_gstabs_flag=yes
22909 fi
22910   elif test x$gcc_cv_as != x; then
22911     echo "$insn" > conftest.s
22912     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }
22918     then
22919         # The native Solaris 9/Intel assembler doesn't understand --gstabs
22920    # and warns about it, but still exits successfully.  So check for
22921    # this.
22922    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
22923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924   (eval $ac_try) 2>&5
22925   ac_status=$?
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); }; }
22928    then :
22929    else gcc_cv_as_gstabs_flag=yes
22930    fi
22931     else
22932       echo "configure: failed program was" >&5
22933       cat conftest.s >&5
22934     fi
22935     rm -f conftest.o conftest.s
22936   fi
22937 fi
22938 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
22939 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
22940 if test $gcc_cv_as_gstabs_flag = yes; then
22941
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
22944 _ACEOF
22945
22946 fi
22947
22948  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
22949 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
22950 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   gcc_cv_as_debug_prefix_map_flag=no
22954     if test $in_tree_gas = yes; then
22955     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22956   then gcc_cv_as_debug_prefix_map_flag=yes
22957 fi
22958   elif test x$gcc_cv_as != x; then
22959     echo "$insn" > conftest.s
22960     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; }
22966     then
22967         gcc_cv_as_debug_prefix_map_flag=yes
22968     else
22969       echo "configure: failed program was" >&5
22970       cat conftest.s >&5
22971     fi
22972     rm -f conftest.o conftest.s
22973   fi
22974 fi
22975 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
22976 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
22977 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
22978
22979 cat >>confdefs.h <<\_ACEOF
22980 #define HAVE_AS_DEBUG_PREFIX_MAP 1
22981 _ACEOF
22982
22983 fi
22984 fi
22985
22986 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
22987 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
22988 if test "${gcc_cv_as_line_zero+set}" = set; then
22989   echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991   gcc_cv_as_line_zero=no
22992   if test $in_tree_gas = yes; then
22993     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
22994   then gcc_cv_as_line_zero=yes
22995 fi
22996   elif test "x$gcc_cv_as" != x; then
22997     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
22998     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
22999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000   (eval $ac_try) 2>&5
23001   ac_status=$?
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); }; } &&
23004        test "x`cat conftest.out`" = x
23005     then
23006       gcc_cv_as_line_zero=yes
23007     else
23008       echo "configure: failed program was" >&5
23009       cat conftest.s >&5
23010       echo "configure: error output was" >&5
23011       cat conftest.out >&5
23012     fi
23013     rm -f conftest.o conftest.s conftest.out
23014   fi
23015 fi
23016 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
23017 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
23018 if test "x$gcc_cv_as_line_zero" = xyes; then
23019
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_AS_LINE_ZERO 1
23022 _ACEOF
23023
23024 fi
23025
23026 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
23027 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
23028 gcc_cv_ld_ro_rw_mix=unknown
23029 if test $in_tree_ld = yes ; then
23030   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 \
23031      && test $in_tree_ld_is_elf = yes; then
23032     gcc_cv_ld_ro_rw_mix=read-write
23033   fi
23034 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23035   echo '.section myfoosect, "a"' > conftest1.s
23036   echo '.section myfoosect, "aw"' > conftest2.s
23037   echo '.byte 1' >> conftest2.s
23038   echo '.section myfoosect, "a"' > conftest3.s
23039   echo '.byte 0' >> conftest3.s
23040   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
23041      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
23042      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
23043      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23044         conftest2.o conftest3.o > /dev/null 2>&1; then
23045     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
23046                          | sed -e '/myfoosect/!d' -e N`
23047     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23048       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23049         gcc_cv_ld_ro_rw_mix=read-only
23050       else
23051         gcc_cv_ld_ro_rw_mix=read-write
23052       fi
23053     fi
23054   fi
23055   rm -f conftest.* conftest[123].*
23056 fi
23057 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23058
23059 cat >>confdefs.h <<\_ACEOF
23060 #define HAVE_LD_RO_RW_SECTION_MIXING 1
23061 _ACEOF
23062
23063 fi
23064 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
23065 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
23066
23067 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
23068 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
23069 gcc_cv_ld_eh_frame_hdr=no
23070 if test $in_tree_ld = yes ; then
23071   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 \
23072      && test $in_tree_ld_is_elf = yes; then
23073     gcc_cv_ld_eh_frame_hdr=yes
23074   fi
23075 elif test x$gcc_cv_ld != x; then
23076         # Check if linker supports --eh-frame-hdr option
23077         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23078                 gcc_cv_ld_eh_frame_hdr=yes
23079         fi
23080 fi
23081
23082 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23083
23084 cat >>confdefs.h <<\_ACEOF
23085 #define HAVE_LD_EH_FRAME_HDR 1
23086 _ACEOF
23087
23088 fi
23089 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
23090 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
23091
23092 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
23093 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
23094 gcc_cv_ld_pie=no
23095 if test $in_tree_ld = yes ; then
23096   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 \
23097      && test $in_tree_ld_is_elf = yes; then
23098     gcc_cv_ld_pie=yes
23099   fi
23100 elif test x$gcc_cv_ld != x; then
23101         # Check if linker supports -pie option
23102         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23103                 gcc_cv_ld_pie=yes
23104         fi
23105 fi
23106 if test x"$gcc_cv_ld_pie" = xyes; then
23107
23108 cat >>confdefs.h <<\_ACEOF
23109 #define HAVE_LD_PIE 1
23110 _ACEOF
23111
23112 fi
23113 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
23114 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
23115
23116 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
23117 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
23118 gcc_cv_ld_eh_gc_sections=no
23119 if test $in_tree_ld = yes ; then
23120   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 \
23121      && test $in_tree_ld_is_elf = yes; then
23122     gcc_cv_ld_eh_gc_sections=yes
23123   fi
23124 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23125   cat > conftest.s <<EOF
23126         .section        .text
23127 .globl _start
23128         .type _start, @function
23129 _start:
23130         .long foo
23131         .size _start, .-_start
23132         .section        .text.foo,"ax",@progbits
23133         .type foo, @function
23134 foo:
23135         .long 0
23136         .size foo, .-foo
23137         .section        .gcc_except_table.foo,"a",@progbits
23138 .L0:
23139         .long 0
23140         .section        .eh_frame,"a",@progbits
23141         .long .L0
23142 EOF
23143   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23144     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23145          | grep "gc-sections option ignored" > /dev/null; then
23146       gcc_cv_ld_eh_gc_sections=no
23147     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23148       gcc_cv_ld_eh_gc_sections=yes
23149       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23150       if test x$gcc_cv_as_comdat_group != xyes; then
23151         gcc_cv_ld_eh_gc_sections=no
23152         cat > conftest.s <<EOF
23153         .section        .text
23154 .globl _start
23155         .type _start, @function
23156 _start:
23157         .long foo
23158         .size _start, .-_start
23159         .section        .gnu.linkonce.t.foo,"ax",@progbits
23160         .type foo, @function
23161 foo:
23162         .long 0
23163         .size foo, .-foo
23164         .section        .gcc_except_table.foo,"a",@progbits
23165 .L0:
23166         .long 0
23167         .section        .eh_frame,"a",@progbits
23168         .long .L0
23169 EOF
23170         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23171           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23172                | grep "gc-sections option ignored" > /dev/null; then
23173             gcc_cv_ld_eh_gc_sections=no
23174           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23175             gcc_cv_ld_eh_gc_sections=yes
23176           fi
23177         fi
23178       fi
23179     fi
23180   fi
23181   rm -f conftest.s conftest.o conftest
23182 fi
23183 case "$target" in
23184   hppa*-*-linux*)
23185     # ??? This apparently exposes a binutils bug with PC-relative relocations.
23186     gcc_cv_ld_eh_gc_sections=no
23187     ;;
23188 esac
23189 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23190
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_LD_EH_GC_SECTIONS 1
23193 _ACEOF
23194
23195 fi
23196 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
23197 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
23198
23199 # --------
23200 # UNSORTED
23201 # --------
23202
23203 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
23204 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
23205 if test "${gcc_cv_ld_as_needed+set}" = set; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   gcc_cv_ld_as_needed=no
23209 if test $in_tree_ld = yes ; then
23210   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 \
23211      && test $in_tree_ld_is_elf = yes; then
23212     gcc_cv_ld_as_needed=yes
23213   fi
23214 elif test x$gcc_cv_ld != x; then
23215         # Check if linker supports --as-needed and --no-as-needed options
23216         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23217                 gcc_cv_ld_as_needed=yes
23218         fi
23219 fi
23220
23221 fi
23222 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
23223 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
23224 if test x"$gcc_cv_ld_as_needed" = xyes; then
23225
23226 cat >>confdefs.h <<\_ACEOF
23227 #define HAVE_LD_AS_NEEDED 1
23228 _ACEOF
23229
23230 fi
23231
23232 case "$target:$tm_file" in
23233   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23234     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
23235 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
23236 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
23237   echo $ECHO_N "(cached) $ECHO_C" >&6
23238 else
23239   gcc_cv_ld_no_dot_syms=no
23240     if test $in_tree_ld = yes ; then
23241       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
23242         gcc_cv_ld_no_dot_syms=yes
23243       fi
23244     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23245       cat > conftest1.s <<EOF
23246         .text
23247         bl .foo
23248 EOF
23249       cat > conftest2.s <<EOF
23250         .section ".opd","aw"
23251         .align 3
23252         .globl foo
23253         .type foo,@function
23254 foo:
23255         .quad .LEfoo,.TOC.@tocbase,0
23256         .text
23257 .LEfoo:
23258         blr
23259         .size foo,.-.LEfoo
23260 EOF
23261       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23262          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23263          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23264         gcc_cv_ld_no_dot_syms=yes
23265       fi
23266       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23267     fi
23268
23269 fi
23270 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
23271 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
23272     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23273
23274 cat >>confdefs.h <<\_ACEOF
23275 #define HAVE_LD_NO_DOT_SYMS 1
23276 _ACEOF
23277
23278     fi
23279     ;;
23280 esac
23281
23282 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
23283 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
23284 if test "${gcc_cv_ld_sysroot+set}" = set; then
23285   echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287   gcc_cv_ld_sysroot=no
23288   if test $in_tree_ld = yes ; then
23289       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
23290         gcc_cv_ld_sysroot=yes
23291       fi
23292   elif test x$gcc_cv_ld != x; then
23293     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23294       gcc_cv_ld_sysroot=yes
23295     fi
23296   fi
23297 fi
23298 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
23299 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
23300 if test x"$gcc_cv_ld_sysroot" = xyes; then
23301
23302 cat >>confdefs.h <<\_ACEOF
23303 #define HAVE_LD_SYSROOT 1
23304 _ACEOF
23305
23306 fi
23307
23308 if test x$with_sysroot = x && test x$host = x$target \
23309    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23310    && test "$prefix" != "NONE"; then
23311
23312 cat >>confdefs.h <<_ACEOF
23313 #define PREFIX_INCLUDE_DIR "$prefix/include"
23314 _ACEOF
23315
23316 fi
23317
23318 # Test for stack protector support in target C library.
23319 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
23320 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
23321 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
23322   echo $ECHO_N "(cached) $ECHO_C" >&6
23323 else
23324   gcc_cv_libc_provides_ssp=no
23325     case "$target" in
23326        *-*-linux*)
23327       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23328         if test "x$with_sysroot" = x; then
23329           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23330         elif test "x$with_build_sysroot" != "x"; then
23331           glibc_header_dir="${with_build_sysroot}/usr/include"
23332         elif test "x$with_sysroot" = xyes; then
23333           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23334         else
23335           glibc_header_dir="${with_sysroot}/usr/include"
23336         fi
23337       else
23338         glibc_header_dir=/usr/include
23339       fi
23340       # glibc 2.4 and later provides __stack_chk_fail and
23341       # either __stack_chk_guard, or TLS access to stack guard canary.
23342       if test -f $glibc_header_dir/features.h \
23343          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
23344             $glibc_header_dir/features.h > /dev/null; then
23345         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
23346            $glibc_header_dir/features.h > /dev/null; then
23347           gcc_cv_libc_provides_ssp=yes
23348         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
23349              $glibc_header_dir/features.h > /dev/null \
23350              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
23351              $glibc_header_dir/features.h > /dev/null; then
23352           gcc_cv_libc_provides_ssp=yes
23353         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
23354              $glibc_header_dir/features.h > /dev/null && \
23355              test -f $glibc_header_dir/bits/uClibc_config.h && \
23356              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
23357              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23358           gcc_cv_libc_provides_ssp=yes
23359         fi
23360       fi
23361         ;;
23362        *-*-darwin*)
23363          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
23364 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
23365 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368   cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
23375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23376 #define __stack_chk_fail innocuous___stack_chk_fail
23377
23378 /* System header to define __stub macros and hopefully few prototypes,
23379     which can conflict with char __stack_chk_fail (); below.
23380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23381     <limits.h> exists even on freestanding compilers.  */
23382
23383 #ifdef __STDC__
23384 # include <limits.h>
23385 #else
23386 # include <assert.h>
23387 #endif
23388
23389 #undef __stack_chk_fail
23390
23391 /* Override any gcc2 internal prototype to avoid an error.  */
23392 #ifdef __cplusplus
23393 extern "C"
23394 {
23395 #endif
23396 /* We use char because int might match the return type of a gcc2
23397    builtin and then its argument prototype would still apply.  */
23398 char __stack_chk_fail ();
23399 /* The GNU C library defines this for functions which it implements
23400     to always fail with ENOSYS.  Some functions are actually named
23401     something starting with __ and the normal name is an alias.  */
23402 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
23403 choke me
23404 #else
23405 char (*f) () = __stack_chk_fail;
23406 #endif
23407 #ifdef __cplusplus
23408 }
23409 #endif
23410
23411 int
23412 main ()
23413 {
23414 return f != __stack_chk_fail;
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421   (eval $ac_link) 2>conftest.er1
23422   ac_status=$?
23423   grep -v '^ *+' conftest.er1 >conftest.err
23424   rm -f conftest.er1
23425   cat conftest.err >&5
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); } &&
23428          { ac_try='test -z "$ac_c_werror_flag"
23429                          || test ! -s conftest.err'
23430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431   (eval $ac_try) 2>&5
23432   ac_status=$?
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); }; } &&
23435          { ac_try='test -s conftest$ac_exeext'
23436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437   (eval $ac_try) 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); }; }; then
23441   ac_cv_func___stack_chk_fail=yes
23442 else
23443   echo "$as_me: failed program was:" >&5
23444 sed 's/^/| /' conftest.$ac_ext >&5
23445
23446 ac_cv_func___stack_chk_fail=no
23447 fi
23448 rm -f conftest.err conftest.$ac_objext \
23449       conftest$ac_exeext conftest.$ac_ext
23450 fi
23451 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
23452 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
23453 if test $ac_cv_func___stack_chk_fail = yes; then
23454   gcc_cv_libc_provides_ssp=yes
23455 else
23456   echo "no __stack_chk_fail on this target"
23457 fi
23458
23459         ;;
23460   *) gcc_cv_libc_provides_ssp=no ;;
23461     esac
23462 fi
23463 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
23464 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
23465
23466 if test x$gcc_cv_libc_provides_ssp = xyes; then
23467
23468 cat >>confdefs.h <<\_ACEOF
23469 #define TARGET_LIBC_PROVIDES_SSP 1
23470 _ACEOF
23471
23472 fi
23473
23474 # Check if TFmode long double should be used by default or not.
23475 # Some glibc targets used DFmode long double, but with glibc 2.4
23476 # and later they can use TFmode.
23477 case "$target" in
23478   powerpc*-*-linux* | \
23479   powerpc*-*-gnu* | \
23480   sparc*-*-linux* | \
23481   s390*-*-linux* | \
23482   alpha*-*-linux*)
23483
23484 # Check whether --with-long-double-128 or --without-long-double-128 was given.
23485 if test "${with_long_double_128+set}" = set; then
23486   withval="$with_long_double_128"
23487   gcc_cv_target_ldbl128="$with_long_double_128"
23488 else
23489   gcc_cv_target_ldbl128=no
23490       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23491         if test "x$with_sysroot" = x; then
23492           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23493         elif test "x$with_build_sysroot" != "x"; then
23494           glibc_header_dir="${with_build_sysroot}/usr/include"
23495         elif test "x$with_sysroot" = xyes; then
23496           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23497         else
23498           glibc_header_dir="${with_sysroot}/usr/include"
23499         fi
23500       else
23501         glibc_header_dir=/usr/include
23502       fi
23503       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23504         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23505       && gcc_cv_target_ldbl128=yes
23506
23507 fi;
23508     ;;
23509 esac
23510 if test x$gcc_cv_target_ldbl128 = xyes; then
23511
23512 cat >>confdefs.h <<\_ACEOF
23513 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
23514 _ACEOF
23515
23516 fi
23517
23518 # Find out what GC implementation we want, or may, use.
23519
23520 # Check whether --with-gc or --without-gc was given.
23521 if test "${with_gc+set}" = set; then
23522   withval="$with_gc"
23523   case "$withval" in
23524   page)
23525     GGC=ggc-$withval
23526     ;;
23527   zone)
23528     GGC=ggc-$withval
23529
23530 cat >>confdefs.h <<\_ACEOF
23531 #define GGC_ZONE 1
23532 _ACEOF
23533
23534     ;;
23535   *)
23536     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
23537 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
23538    { (exit 1); exit 1; }; }
23539     ;;
23540 esac
23541 else
23542   GGC=ggc-page
23543 fi;
23544
23545 echo "Using $GGC for garbage collection."
23546
23547 # Use the system's zlib library.
23548 zlibdir=-L../zlib
23549 zlibinc="-I\$(srcdir)/../zlib"
23550
23551 # Check whether --with-system-zlib or --without-system-zlib was given.
23552 if test "${with_system_zlib+set}" = set; then
23553   withval="$with_system_zlib"
23554   zlibdir=
23555 zlibinc=
23556
23557 fi;
23558
23559
23560
23561
23562 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23563 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23564     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23565 if test "${enable_maintainer_mode+set}" = set; then
23566   enableval="$enable_maintainer_mode"
23567   maintainer_mode=$enableval
23568 else
23569   maintainer_mode=no
23570 fi;
23571
23572 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
23573 echo "${ECHO_T}$maintainer_mode" >&6
23574
23575 if test "$maintainer_mode" = "yes"; then
23576   MAINT=''
23577 else
23578   MAINT='#'
23579 fi
23580
23581 # --------------
23582 # Language hooks
23583 # --------------
23584
23585 # Make empty files to contain the specs and options for each language.
23586 # Then add #include lines to for a compiler that has specs and/or options.
23587
23588 subdirs=
23589 lang_opt_files=
23590 lang_specs_files=
23591 lang_tree_files=
23592 # These (without "all_") are set in each config-lang.in.
23593 # `language' must be a single word so is spelled singularly.
23594 all_languages=
23595 all_compilers=
23596 all_outputs='Makefile gccbug libada-mk'
23597 # List of language makefile fragments.
23598 all_lang_makefrags=
23599 # List of language subdirectory makefiles.  Deprecated.
23600 all_lang_makefiles=
23601 # Additional files for gengtype
23602 all_gtfiles="$target_gtfiles"
23603
23604 # These are the languages that are set in --enable-languages,
23605 # and are available in the GCC tree.
23606 all_selected_languages=
23607
23608 # Add the language fragments.
23609 # Languages are added via two mechanisms.  Some information must be
23610 # recorded in makefile variables, these are defined in config-lang.in.
23611 # We accumulate them and plug them into the main Makefile.
23612 # The other mechanism is a set of hooks for each of the main targets
23613 # like `clean', `install', etc.
23614
23615 language_hooks="Make-hooks"
23616
23617 for lang in ${srcdir}/*/config-lang.in
23618 do
23619         test "$lang" = "${srcdir}/*/config-lang.in" && continue
23620
23621         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
23622         if test "x$lang_alias" = x
23623         then
23624               echo "$lang doesn't set \$language." 1>&2
23625               exit 1
23626         fi
23627         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
23628         subdirs="$subdirs $subdir"
23629
23630         # $gcc_subdir is where the gcc integration files are to be found
23631         # for a language, both for internal compiler purposes (compiler
23632         # sources implementing front-end to GCC tree converters), and for
23633         # build infrastructure purposes (Make-lang.in, etc.)
23634         #
23635         # This will be <subdir> (relative to $srcdir) if a line like
23636         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
23637         # is found in <langdir>/config-lang.in, and will remain <langdir>
23638         # otherwise.
23639         #
23640         # Except for the language alias (fetched above), the regular
23641         # "config-lang.in" contents are always retrieved from $gcc_subdir,
23642         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
23643         # only this and the language alias.
23644
23645         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
23646         if [ "$gcc_subdir" = "" ]; then
23647            gcc_subdir="$subdir"
23648         fi
23649
23650         case ",$enable_languages," in
23651         *,$lang_alias,*)
23652             all_selected_languages="$all_selected_languages $lang_alias"
23653             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
23654                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
23655             fi
23656             ;;
23657         esac
23658
23659         language=
23660         boot_language=
23661         compilers=
23662         outputs=
23663         gtfiles=
23664         subdir_requires=
23665         . ${srcdir}/$gcc_subdir/config-lang.in
23666         if test "x$language" = x
23667         then
23668                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
23669                 exit 1
23670         fi
23671
23672         ok=:
23673         case ",$enable_languages," in
23674                 *,$lang_alias,*) ;;
23675                 *)
23676                         for i in $subdir_requires; do
23677                                 test -f "${srcdir}/$i/config-lang.in" && continue
23678                                 ok=false
23679                                 break
23680                         done
23681                 ;;
23682         esac
23683         $ok || continue
23684
23685         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
23686         if test -f $srcdir/$gcc_subdir/lang.opt; then
23687             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
23688         fi
23689         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
23690             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
23691         fi
23692         if test -f ${srcdir}/$gcc_subdir/Makefile.in
23693                 then all_lang_makefiles="$gcc_subdir/Makefile"
23694         fi
23695         all_languages="$all_languages $language"
23696         all_compilers="$all_compilers $compilers"
23697         all_outputs="$all_outputs $outputs"
23698         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
23699 done
23700
23701 # Pick up gtfiles for c
23702 gtfiles=
23703 . ${srcdir}/c-config-lang.in
23704 all_gtfiles="$all_gtfiles [c] $gtfiles"
23705
23706 check_languages=
23707 for language in $all_selected_languages
23708 do
23709         check_languages="$check_languages check-$language"
23710 done
23711
23712 # We link each language in with a set of hooks, reached indirectly via
23713 # lang.${target}.  Only do so for selected languages.
23714
23715 rm -f Make-hooks
23716 touch Make-hooks
23717 target_list="all.cross start.encap rest.encap tags \
23718         install-common install-man install-info install-pdf dvi pdf \
23719         html uninstall info man srcextra srcman srcinfo \
23720         mostlyclean clean distclean maintainer-clean"
23721
23722 for t in $target_list
23723 do
23724         x=
23725         for lang in $all_selected_languages
23726         do
23727                 x="$x $lang.$t"
23728         done
23729         echo "lang.$t: $x" >> Make-hooks
23730 done
23731
23732 # --------
23733 # UNSORTED
23734 # --------
23735
23736 # Create .gdbinit.
23737
23738 echo "dir ." > .gdbinit
23739 echo "dir ${srcdir}" >> .gdbinit
23740 if test x$gdb_needs_out_file_path = xyes
23741 then
23742         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
23743 fi
23744 if test "x$subdirs" != x; then
23745         for s in $subdirs
23746         do
23747                 echo "dir ${srcdir}/$s" >> .gdbinit
23748         done
23749 fi
23750 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
23751
23752 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
23753
23754
23755
23756 # Find a directory in which to install a shared libgcc.
23757
23758 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
23759 if test "${enable_version_specific_runtime_libs+set}" = set; then
23760   enableval="$enable_version_specific_runtime_libs"
23761
23762 fi;
23763
23764
23765 # Check whether --with-slibdir or --without-slibdir was given.
23766 if test "${with_slibdir+set}" = set; then
23767   withval="$with_slibdir"
23768   slibdir="$with_slibdir"
23769 else
23770   if test "${enable_version_specific_runtime_libs+set}" = set; then
23771   slibdir='$(libsubdir)'
23772 elif test "$host" != "$target"; then
23773   slibdir='$(build_tooldir)/lib'
23774 else
23775   slibdir='$(libdir)'
23776 fi
23777 fi;
23778
23779
23780
23781 # Check whether --with-datarootdir or --without-datarootdir was given.
23782 if test "${with_datarootdir+set}" = set; then
23783   withval="$with_datarootdir"
23784   datarootdir="\${prefix}/$with_datarootdir"
23785 else
23786   datarootdir='$(prefix)/share'
23787 fi;
23788
23789
23790
23791 # Check whether --with-docdir or --without-docdir was given.
23792 if test "${with_docdir+set}" = set; then
23793   withval="$with_docdir"
23794   docdir="\${prefix}/$with_docdir"
23795 else
23796   docdir='$(datarootdir)'
23797 fi;
23798
23799
23800
23801 # Check whether --with-htmldir or --without-htmldir was given.
23802 if test "${with_htmldir+set}" = set; then
23803   withval="$with_htmldir"
23804   htmldir="\${prefix}/$with_htmldir"
23805 else
23806   htmldir='$(docdir)'
23807 fi;
23808
23809
23810 # Substitute configuration variables
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868 # Echo link setup.
23869 if test x${build} = x${host} ; then
23870   if test x${host} = x${target} ; then
23871     echo "Links are now set up to build a native compiler for ${target}." 1>&2
23872   else
23873     echo "Links are now set up to build a cross-compiler" 1>&2
23874     echo " from ${host} to ${target}." 1>&2
23875   fi
23876 else
23877   if test x${host} = x${target} ; then
23878     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
23879     echo " for ${target}." 1>&2
23880   else
23881     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
23882     echo " from ${host} to ${target}." 1>&2
23883   fi
23884 fi
23885
23886
23887
23888
23889 # Configure the subdirectories
23890 # AC_CONFIG_SUBDIRS($subdirs)
23891
23892 # Create the Makefile
23893 # and configure language subdirectories
23894           ac_config_files="$ac_config_files $all_outputs"
23895
23896
23897           ac_config_commands="$ac_config_commands default"
23898
23899 cat >confcache <<\_ACEOF
23900 # This file is a shell script that caches the results of configure
23901 # tests run on this system so they can be shared between configure
23902 # scripts and configure runs, see configure's option --config-cache.
23903 # It is not useful on other systems.  If it contains results you don't
23904 # want to keep, you may remove or edit it.
23905 #
23906 # config.status only pays attention to the cache file if you give it
23907 # the --recheck option to rerun configure.
23908 #
23909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23911 # following values.
23912
23913 _ACEOF
23914
23915 # The following way of writing the cache mishandles newlines in values,
23916 # but we know of no workaround that is simple, portable, and efficient.
23917 # So, don't put newlines in cache variables' values.
23918 # Ultrix sh set writes to stderr and can't be redirected directly,
23919 # and sets the high bit in the cache file unless we assign to the vars.
23920 {
23921   (set) 2>&1 |
23922     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23923     *ac_space=\ *)
23924       # `set' does not quote correctly, so add quotes (double-quote
23925       # substitution turns \\\\ into \\, and sed turns \\ into \).
23926       sed -n \
23927         "s/'/'\\\\''/g;
23928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23929       ;;
23930     *)
23931       # `set' quotes correctly as required by POSIX, so do not add quotes.
23932       sed -n \
23933         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23934       ;;
23935     esac;
23936 } |
23937   sed '
23938      t clear
23939      : clear
23940      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23941      t end
23942      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23943      : end' >>confcache
23944 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23945   if test -w $cache_file; then
23946     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23947     cat confcache >$cache_file
23948   else
23949     echo "not updating unwritable cache $cache_file"
23950   fi
23951 fi
23952 rm -f confcache
23953
23954 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23955 # Let make expand exec_prefix.
23956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23957
23958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23960 # trailing colons and then remove the whole line if VPATH becomes empty
23961 # (actually we leave an empty line to preserve line numbers).
23962 if test "x$srcdir" = x.; then
23963   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23964 s/:*\$(srcdir):*/:/;
23965 s/:*\${srcdir}:*/:/;
23966 s/:*@srcdir@:*/:/;
23967 s/^\([^=]*=[     ]*\):*/\1/;
23968 s/:*$//;
23969 s/^[^=]*=[       ]*$//;
23970 }'
23971 fi
23972
23973 DEFS=-DHAVE_CONFIG_H
23974
23975 ac_libobjs=
23976 ac_ltlibobjs=
23977 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23978   # 1. Remove the extension, and $U if already installed.
23979   ac_i=`echo "$ac_i" |
23980          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23981   # 2. Add them.
23982   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23983   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23984 done
23985 LIBOBJS=$ac_libobjs
23986
23987 LTLIBOBJS=$ac_ltlibobjs
23988
23989
23990
23991 : ${CONFIG_STATUS=./config.status}
23992 ac_clean_files_save=$ac_clean_files
23993 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23994 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23995 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23996 cat >$CONFIG_STATUS <<_ACEOF
23997 #! $SHELL
23998 # Generated by $as_me.
23999 # Run this file to recreate the current configuration.
24000 # Compiler output produced by configure, useful for debugging
24001 # configure, is in config.log if it exists.
24002
24003 debug=false
24004 ac_cs_recheck=false
24005 ac_cs_silent=false
24006 SHELL=\${CONFIG_SHELL-$SHELL}
24007 _ACEOF
24008
24009 cat >>$CONFIG_STATUS <<\_ACEOF
24010 ## --------------------- ##
24011 ## M4sh Initialization.  ##
24012 ## --------------------- ##
24013
24014 # Be Bourne compatible
24015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24016   emulate sh
24017   NULLCMD=:
24018   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24019   # is contrary to our usage.  Disable this feature.
24020   alias -g '${1+"$@"}'='"$@"'
24021 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24022   set -o posix
24023 fi
24024 DUALCASE=1; export DUALCASE # for MKS sh
24025
24026 # Support unset when possible.
24027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24028   as_unset=unset
24029 else
24030   as_unset=false
24031 fi
24032
24033
24034 # Work around bugs in pre-3.0 UWIN ksh.
24035 $as_unset ENV MAIL MAILPATH
24036 PS1='$ '
24037 PS2='> '
24038 PS4='+ '
24039
24040 # NLS nuisances.
24041 for as_var in \
24042   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24043   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24044   LC_TELEPHONE LC_TIME
24045 do
24046   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24047     eval $as_var=C; export $as_var
24048   else
24049     $as_unset $as_var
24050   fi
24051 done
24052
24053 # Required to use basename.
24054 if expr a : '\(a\)' >/dev/null 2>&1; then
24055   as_expr=expr
24056 else
24057   as_expr=false
24058 fi
24059
24060 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24061   as_basename=basename
24062 else
24063   as_basename=false
24064 fi
24065
24066
24067 # Name of the executable.
24068 as_me=`$as_basename "$0" ||
24069 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24070          X"$0" : 'X\(//\)$' \| \
24071          X"$0" : 'X\(/\)$' \| \
24072          .     : '\(.\)' 2>/dev/null ||
24073 echo X/"$0" |
24074     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24075           /^X\/\(\/\/\)$/{ s//\1/; q; }
24076           /^X\/\(\/\).*/{ s//\1/; q; }
24077           s/.*/./; q'`
24078
24079
24080 # PATH needs CR, and LINENO needs CR and PATH.
24081 # Avoid depending upon Character Ranges.
24082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24085 as_cr_digits='0123456789'
24086 as_cr_alnum=$as_cr_Letters$as_cr_digits
24087
24088 # The user is always right.
24089 if test "${PATH_SEPARATOR+set}" != set; then
24090   echo "#! /bin/sh" >conf$$.sh
24091   echo  "exit 0"   >>conf$$.sh
24092   chmod +x conf$$.sh
24093   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24094     PATH_SEPARATOR=';'
24095   else
24096     PATH_SEPARATOR=:
24097   fi
24098   rm -f conf$$.sh
24099 fi
24100
24101
24102   as_lineno_1=$LINENO
24103   as_lineno_2=$LINENO
24104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24105   test "x$as_lineno_1" != "x$as_lineno_2" &&
24106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24107   # Find who we are.  Look in the path if we contain no path at all
24108   # relative or not.
24109   case $0 in
24110     *[\\/]* ) as_myself=$0 ;;
24111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24112 for as_dir in $PATH
24113 do
24114   IFS=$as_save_IFS
24115   test -z "$as_dir" && as_dir=.
24116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24117 done
24118
24119        ;;
24120   esac
24121   # We did not find ourselves, most probably we were run as `sh COMMAND'
24122   # in which case we are not to be found in the path.
24123   if test "x$as_myself" = x; then
24124     as_myself=$0
24125   fi
24126   if test ! -f "$as_myself"; then
24127     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24129    { (exit 1); exit 1; }; }
24130   fi
24131   case $CONFIG_SHELL in
24132   '')
24133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24135 do
24136   IFS=$as_save_IFS
24137   test -z "$as_dir" && as_dir=.
24138   for as_base in sh bash ksh sh5; do
24139          case $as_dir in
24140          /*)
24141            if ("$as_dir/$as_base" -c '
24142   as_lineno_1=$LINENO
24143   as_lineno_2=$LINENO
24144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24145   test "x$as_lineno_1" != "x$as_lineno_2" &&
24146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24149              CONFIG_SHELL=$as_dir/$as_base
24150              export CONFIG_SHELL
24151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24152            fi;;
24153          esac
24154        done
24155 done
24156 ;;
24157   esac
24158
24159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24160   # uniformly replaced by the line number.  The first 'sed' inserts a
24161   # line-number line before each line; the second 'sed' does the real
24162   # work.  The second script uses 'N' to pair each line-number line
24163   # with the numbered line, and appends trailing '-' during
24164   # substitution so that $LINENO is not a special case at line end.
24165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24167   sed '=' <$as_myself |
24168     sed '
24169       N
24170       s,$,-,
24171       : loop
24172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24173       t loop
24174       s,-$,,
24175       s,^['$as_cr_digits']*\n,,
24176     ' >$as_me.lineno &&
24177   chmod +x $as_me.lineno ||
24178     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24180    { (exit 1); exit 1; }; }
24181
24182   # Don't try to exec as it changes $[0], causing all sort of problems
24183   # (the dirname of $[0] is not the place where we might find the
24184   # original and so on.  Autoconf is especially sensible to this).
24185   . ./$as_me.lineno
24186   # Exit status is that of the last command.
24187   exit
24188 }
24189
24190
24191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24192   *c*,-n*) ECHO_N= ECHO_C='
24193 ' ECHO_T='      ' ;;
24194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24196 esac
24197
24198 if expr a : '\(a\)' >/dev/null 2>&1; then
24199   as_expr=expr
24200 else
24201   as_expr=false
24202 fi
24203
24204 rm -f conf$$ conf$$.exe conf$$.file
24205 echo >conf$$.file
24206 if ln -s conf$$.file conf$$ 2>/dev/null; then
24207   # We could just check for DJGPP; but this test a) works b) is more generic
24208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24209   if test -f conf$$.exe; then
24210     # Don't use ln at all; we don't have any links
24211     as_ln_s='cp -p'
24212   else
24213     as_ln_s='ln -s'
24214   fi
24215 elif ln conf$$.file conf$$ 2>/dev/null; then
24216   as_ln_s=ln
24217 else
24218   as_ln_s='cp -p'
24219 fi
24220 rm -f conf$$ conf$$.exe conf$$.file
24221
24222 if mkdir -p . 2>/dev/null; then
24223   as_mkdir_p=:
24224 else
24225   test -d ./-p && rmdir ./-p
24226   as_mkdir_p=false
24227 fi
24228
24229 as_executable_p="test -f"
24230
24231 # Sed expression to map a string onto a valid CPP name.
24232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24233
24234 # Sed expression to map a string onto a valid variable name.
24235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24236
24237
24238 # IFS
24239 # We need space, tab and new line, in precisely that order.
24240 as_nl='
24241 '
24242 IFS="   $as_nl"
24243
24244 # CDPATH.
24245 $as_unset CDPATH
24246
24247 exec 6>&1
24248
24249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24250 # report actual input values of CONFIG_FILES etc. instead of their
24251 # values after options handling.  Logging --version etc. is OK.
24252 exec 5>>config.log
24253 {
24254   echo
24255   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24256 ## Running $as_me. ##
24257 _ASBOX
24258 } >&5
24259 cat >&5 <<_CSEOF
24260
24261 This file was extended by $as_me, which was
24262 generated by GNU Autoconf 2.59.  Invocation command line was
24263
24264   CONFIG_FILES    = $CONFIG_FILES
24265   CONFIG_HEADERS  = $CONFIG_HEADERS
24266   CONFIG_LINKS    = $CONFIG_LINKS
24267   CONFIG_COMMANDS = $CONFIG_COMMANDS
24268   $ $0 $@
24269
24270 _CSEOF
24271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24272 echo >&5
24273 _ACEOF
24274
24275 # Files that config.status was made for.
24276 if test -n "$ac_config_files"; then
24277   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24278 fi
24279
24280 if test -n "$ac_config_headers"; then
24281   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24282 fi
24283
24284 if test -n "$ac_config_links"; then
24285   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24286 fi
24287
24288 if test -n "$ac_config_commands"; then
24289   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24290 fi
24291
24292 cat >>$CONFIG_STATUS <<\_ACEOF
24293
24294 ac_cs_usage="\
24295 \`$as_me' instantiates files from templates according to the
24296 current configuration.
24297
24298 Usage: $0 [OPTIONS] [FILE]...
24299
24300   -h, --help       print this help, then exit
24301   -V, --version    print version number, then exit
24302   -q, --quiet      do not print progress messages
24303   -d, --debug      don't remove temporary files
24304       --recheck    update $as_me by reconfiguring in the same conditions
24305   --file=FILE[:TEMPLATE]
24306                    instantiate the configuration file FILE
24307   --header=FILE[:TEMPLATE]
24308                    instantiate the configuration header FILE
24309
24310 Configuration files:
24311 $config_files
24312
24313 Configuration headers:
24314 $config_headers
24315
24316 Configuration commands:
24317 $config_commands
24318
24319 Report bugs to <bug-autoconf@gnu.org>."
24320 _ACEOF
24321
24322 cat >>$CONFIG_STATUS <<_ACEOF
24323 ac_cs_version="\\
24324 config.status
24325 configured by $0, generated by GNU Autoconf 2.59,
24326   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24327
24328 Copyright (C) 2003 Free Software Foundation, Inc.
24329 This config.status script is free software; the Free Software Foundation
24330 gives unlimited permission to copy, distribute and modify it."
24331 srcdir=$srcdir
24332 _ACEOF
24333
24334 cat >>$CONFIG_STATUS <<\_ACEOF
24335 # If no file are specified by the user, then we need to provide default
24336 # value.  By we need to know if files were specified by the user.
24337 ac_need_defaults=:
24338 while test $# != 0
24339 do
24340   case $1 in
24341   --*=*)
24342     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24343     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24344     ac_shift=:
24345     ;;
24346   -*)
24347     ac_option=$1
24348     ac_optarg=$2
24349     ac_shift=shift
24350     ;;
24351   *) # This is not an option, so the user has probably given explicit
24352      # arguments.
24353      ac_option=$1
24354      ac_need_defaults=false;;
24355   esac
24356
24357   case $ac_option in
24358   # Handling of the options.
24359 _ACEOF
24360 cat >>$CONFIG_STATUS <<\_ACEOF
24361   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24362     ac_cs_recheck=: ;;
24363   --version | --vers* | -V )
24364     echo "$ac_cs_version"; exit 0 ;;
24365   --he | --h)
24366     # Conflict between --help and --header
24367     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24368 Try \`$0 --help' for more information." >&5
24369 echo "$as_me: error: ambiguous option: $1
24370 Try \`$0 --help' for more information." >&2;}
24371    { (exit 1); exit 1; }; };;
24372   --help | --hel | -h )
24373     echo "$ac_cs_usage"; exit 0 ;;
24374   --debug | --d* | -d )
24375     debug=: ;;
24376   --file | --fil | --fi | --f )
24377     $ac_shift
24378     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24379     ac_need_defaults=false;;
24380   --header | --heade | --head | --hea )
24381     $ac_shift
24382     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24383     ac_need_defaults=false;;
24384   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24385   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24386     ac_cs_silent=: ;;
24387
24388   # This is an error.
24389   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24390 Try \`$0 --help' for more information." >&5
24391 echo "$as_me: error: unrecognized option: $1
24392 Try \`$0 --help' for more information." >&2;}
24393    { (exit 1); exit 1; }; } ;;
24394
24395   *) ac_config_targets="$ac_config_targets $1" ;;
24396
24397   esac
24398   shift
24399 done
24400
24401 ac_configure_extra_args=
24402
24403 if $ac_cs_silent; then
24404   exec 6>/dev/null
24405   ac_configure_extra_args="$ac_configure_extra_args --silent"
24406 fi
24407
24408 _ACEOF
24409 cat >>$CONFIG_STATUS <<_ACEOF
24410 if \$ac_cs_recheck; then
24411   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24412   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24413 fi
24414
24415 _ACEOF
24416
24417 cat >>$CONFIG_STATUS <<_ACEOF
24418 #
24419 # INIT-COMMANDS section.
24420 #
24421
24422 subdirs='$subdirs'
24423
24424 _ACEOF
24425
24426
24427
24428 cat >>$CONFIG_STATUS <<\_ACEOF
24429 for ac_config_target in $ac_config_targets
24430 do
24431   case "$ac_config_target" in
24432   # Handling of arguments.
24433   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
24434   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
24435   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
24436   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
24437   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24438   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
24439   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24440 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24441    { (exit 1); exit 1; }; };;
24442   esac
24443 done
24444
24445 # If the user did not use the arguments to specify the items to instantiate,
24446 # then the envvar interface is used.  Set only those that are not.
24447 # We use the long form for the default assignment because of an extremely
24448 # bizarre bug on SunOS 4.1.3.
24449 if $ac_need_defaults; then
24450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24453 fi
24454
24455 # Have a temporary directory for convenience.  Make it in the build tree
24456 # simply because there is no reason to put it here, and in addition,
24457 # creating and moving files from /tmp can sometimes cause problems.
24458 # Create a temporary directory, and hook for its removal unless debugging.
24459 $debug ||
24460 {
24461   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24462   trap '{ (exit 1); exit 1; }' 1 2 13 15
24463 }
24464
24465 # Create a (secure) tmp directory for tmp files.
24466
24467 {
24468   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24469   test -n "$tmp" && test -d "$tmp"
24470 }  ||
24471 {
24472   tmp=./confstat$$-$RANDOM
24473   (umask 077 && mkdir $tmp)
24474 } ||
24475 {
24476    echo "$me: cannot create a temporary directory in ." >&2
24477    { (exit 1); exit 1; }
24478 }
24479
24480 _ACEOF
24481
24482 cat >>$CONFIG_STATUS <<_ACEOF
24483
24484 #
24485 # CONFIG_FILES section.
24486 #
24487
24488 # No need to generate the scripts if there are no CONFIG_FILES.
24489 # This happens for instance when ./config.status config.h
24490 if test -n "\$CONFIG_FILES"; then
24491   # Protect against being on the right side of a sed subst in config.status.
24492   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24493    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24494 s,@SHELL@,$SHELL,;t t
24495 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24496 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24497 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24498 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24499 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24500 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24501 s,@exec_prefix@,$exec_prefix,;t t
24502 s,@prefix@,$prefix,;t t
24503 s,@program_transform_name@,$program_transform_name,;t t
24504 s,@bindir@,$bindir,;t t
24505 s,@sbindir@,$sbindir,;t t
24506 s,@libexecdir@,$libexecdir,;t t
24507 s,@datadir@,$datadir,;t t
24508 s,@sysconfdir@,$sysconfdir,;t t
24509 s,@sharedstatedir@,$sharedstatedir,;t t
24510 s,@localstatedir@,$localstatedir,;t t
24511 s,@libdir@,$libdir,;t t
24512 s,@includedir@,$includedir,;t t
24513 s,@oldincludedir@,$oldincludedir,;t t
24514 s,@infodir@,$infodir,;t t
24515 s,@mandir@,$mandir,;t t
24516 s,@build_alias@,$build_alias,;t t
24517 s,@host_alias@,$host_alias,;t t
24518 s,@target_alias@,$target_alias,;t t
24519 s,@DEFS@,$DEFS,;t t
24520 s,@ECHO_C@,$ECHO_C,;t t
24521 s,@ECHO_N@,$ECHO_N,;t t
24522 s,@ECHO_T@,$ECHO_T,;t t
24523 s,@LIBS@,$LIBS,;t t
24524 s,@build@,$build,;t t
24525 s,@build_cpu@,$build_cpu,;t t
24526 s,@build_vendor@,$build_vendor,;t t
24527 s,@build_os@,$build_os,;t t
24528 s,@host@,$host,;t t
24529 s,@host_cpu@,$host_cpu,;t t
24530 s,@host_vendor@,$host_vendor,;t t
24531 s,@host_os@,$host_os,;t t
24532 s,@target@,$target,;t t
24533 s,@target_cpu@,$target_cpu,;t t
24534 s,@target_vendor@,$target_vendor,;t t
24535 s,@target_os@,$target_os,;t t
24536 s,@target_noncanonical@,$target_noncanonical,;t t
24537 s,@build_libsubdir@,$build_libsubdir,;t t
24538 s,@build_subdir@,$build_subdir,;t t
24539 s,@host_subdir@,$host_subdir,;t t
24540 s,@target_subdir@,$target_subdir,;t t
24541 s,@GENINSRC@,$GENINSRC,;t t
24542 s,@CC@,$CC,;t t
24543 s,@CFLAGS@,$CFLAGS,;t t
24544 s,@LDFLAGS@,$LDFLAGS,;t t
24545 s,@CPPFLAGS@,$CPPFLAGS,;t t
24546 s,@ac_ct_CC@,$ac_ct_CC,;t t
24547 s,@EXEEXT@,$EXEEXT,;t t
24548 s,@OBJEXT@,$OBJEXT,;t t
24549 s,@GNATBIND@,$GNATBIND,;t t
24550 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
24551 s,@GNATMAKE@,$GNATMAKE,;t t
24552 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
24553 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
24554 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
24555 s,@CPP@,$CPP,;t t
24556 s,@EGREP@,$EGREP,;t t
24557 s,@loose_warn@,$loose_warn,;t t
24558 s,@strict_warn@,$strict_warn,;t t
24559 s,@warn_cflags@,$warn_cflags,;t t
24560 s,@nocommon_flag@,$nocommon_flag,;t t
24561 s,@TREEBROWSER@,$TREEBROWSER,;t t
24562 s,@valgrind_path@,$valgrind_path,;t t
24563 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
24564 s,@valgrind_command@,$valgrind_command,;t t
24565 s,@coverage_flags@,$coverage_flags,;t t
24566 s,@enable_multilib@,$enable_multilib,;t t
24567 s,@enable_decimal_float@,$enable_decimal_float,;t t
24568 s,@enable_fixed_point@,$enable_fixed_point,;t t
24569 s,@enable_shared@,$enable_shared,;t t
24570 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24571 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24572 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
24573 s,@onestep@,$onestep,;t t
24574 s,@PKGVERSION@,$PKGVERSION,;t t
24575 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
24576 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
24577 s,@datarootdir@,$datarootdir,;t t
24578 s,@docdir@,$docdir,;t t
24579 s,@htmldir@,$htmldir,;t t
24580 s,@SET_MAKE@,$SET_MAKE,;t t
24581 s,@AWK@,$AWK,;t t
24582 s,@LN_S@,$LN_S,;t t
24583 s,@LN@,$LN,;t t
24584 s,@RANLIB@,$RANLIB,;t t
24585 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24586 s,@ranlib_flags@,$ranlib_flags,;t t
24587 s,@INSTALL@,$INSTALL,;t t
24588 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24589 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24590 s,@make_compare_target@,$make_compare_target,;t t
24591 s,@have_mktemp_command@,$have_mktemp_command,;t t
24592 s,@MAKEINFO@,$MAKEINFO,;t t
24593 s,@BUILD_INFO@,$BUILD_INFO,;t t
24594 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
24595 s,@FLEX@,$FLEX,;t t
24596 s,@BISON@,$BISON,;t t
24597 s,@NM@,$NM,;t t
24598 s,@AR@,$AR,;t t
24599 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
24600 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
24601 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
24602 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
24603 s,@LIBICONV@,$LIBICONV,;t t
24604 s,@LTLIBICONV@,$LTLIBICONV,;t t
24605 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
24606 s,@manext@,$manext,;t t
24607 s,@objext@,$objext,;t t
24608 s,@gthread_flags@,$gthread_flags,;t t
24609 s,@extra_modes_file@,$extra_modes_file,;t t
24610 s,@extra_opt_files@,$extra_opt_files,;t t
24611 s,@USE_NLS@,$USE_NLS,;t t
24612 s,@LIBINTL@,$LIBINTL,;t t
24613 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24614 s,@INCINTL@,$INCINTL,;t t
24615 s,@XGETTEXT@,$XGETTEXT,;t t
24616 s,@GMSGFMT@,$GMSGFMT,;t t
24617 s,@POSUB@,$POSUB,;t t
24618 s,@CATALOGS@,$CATALOGS,;t t
24619 s,@DATADIRNAME@,$DATADIRNAME,;t t
24620 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24621 s,@GENCAT@,$GENCAT,;t t
24622 s,@CATOBJEXT@,$CATOBJEXT,;t t
24623 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
24624 s,@CROSS@,$CROSS,;t t
24625 s,@ALL@,$ALL,;t t
24626 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
24627 s,@inhibit_libc@,$inhibit_libc,;t t
24628 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
24629 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
24630 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
24631 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
24632 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
24633 s,@collect2@,$collect2,;t t
24634 s,@LIBTOOL@,$LIBTOOL,;t t
24635 s,@SED@,$SED,;t t
24636 s,@FGREP@,$FGREP,;t t
24637 s,@GREP@,$GREP,;t t
24638 s,@LD@,$LD,;t t
24639 s,@DUMPBIN@,$DUMPBIN,;t t
24640 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
24641 s,@ac_ct_AR@,$ac_ct_AR,;t t
24642 s,@STRIP@,$STRIP,;t t
24643 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24644 s,@lt_ECHO@,$lt_ECHO,;t t
24645 s,@objdir@,$objdir,;t t
24646 s,@enable_fast_install@,$enable_fast_install,;t t
24647 s,@gcc_cv_as@,$gcc_cv_as,;t t
24648 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
24649 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
24650 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
24651 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
24652 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
24653 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
24654 s,@libgcc_visibility@,$libgcc_visibility,;t t
24655 s,@GGC@,$GGC,;t t
24656 s,@zlibdir@,$zlibdir,;t t
24657 s,@zlibinc@,$zlibinc,;t t
24658 s,@MAINT@,$MAINT,;t t
24659 s,@gcc_tooldir@,$gcc_tooldir,;t t
24660 s,@dollar@,$dollar,;t t
24661 s,@slibdir@,$slibdir,;t t
24662 s,@subdirs@,$subdirs,;t t
24663 s,@srcdir@,$srcdir,;t t
24664 s,@all_compilers@,$all_compilers,;t t
24665 s,@all_gtfiles@,$all_gtfiles,;t t
24666 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
24667 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
24668 s,@all_languages@,$all_languages,;t t
24669 s,@all_selected_languages@,$all_selected_languages,;t t
24670 s,@build_exeext@,$build_exeext,;t t
24671 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
24672 s,@build_xm_file_list@,$build_xm_file_list,;t t
24673 s,@build_xm_include_list@,$build_xm_include_list,;t t
24674 s,@build_xm_defines@,$build_xm_defines,;t t
24675 s,@build_file_translate@,$build_file_translate,;t t
24676 s,@check_languages@,$check_languages,;t t
24677 s,@cpp_install_dir@,$cpp_install_dir,;t t
24678 s,@xmake_file@,$xmake_file,;t t
24679 s,@tmake_file@,$tmake_file,;t t
24680 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
24681 s,@extra_headers_list@,$extra_headers_list,;t t
24682 s,@extra_objs@,$extra_objs,;t t
24683 s,@extra_parts@,$extra_parts,;t t
24684 s,@extra_passes@,$extra_passes,;t t
24685 s,@extra_programs@,$extra_programs,;t t
24686 s,@float_h_file@,$float_h_file,;t t
24687 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
24688 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
24689 s,@host_exeext@,$host_exeext,;t t
24690 s,@host_xm_file_list@,$host_xm_file_list,;t t
24691 s,@host_xm_include_list@,$host_xm_include_list,;t t
24692 s,@host_xm_defines@,$host_xm_defines,;t t
24693 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
24694 s,@install@,$install,;t t
24695 s,@lang_opt_files@,$lang_opt_files,;t t
24696 s,@lang_specs_files@,$lang_specs_files,;t t
24697 s,@lang_tree_files@,$lang_tree_files,;t t
24698 s,@local_prefix@,$local_prefix,;t t
24699 s,@md_file@,$md_file,;t t
24700 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
24701 s,@out_file@,$out_file,;t t
24702 s,@out_object_file@,$out_object_file,;t t
24703 s,@thread_file@,$thread_file,;t t
24704 s,@tm_file_list@,$tm_file_list,;t t
24705 s,@tm_include_list@,$tm_include_list,;t t
24706 s,@tm_defines@,$tm_defines,;t t
24707 s,@tm_p_file_list@,$tm_p_file_list,;t t
24708 s,@tm_p_include_list@,$tm_p_include_list,;t t
24709 s,@xm_file_list@,$xm_file_list,;t t
24710 s,@xm_include_list@,$xm_include_list,;t t
24711 s,@xm_defines@,$xm_defines,;t t
24712 s,@c_target_objs@,$c_target_objs,;t t
24713 s,@cxx_target_objs@,$cxx_target_objs,;t t
24714 s,@fortran_target_objs@,$fortran_target_objs,;t t
24715 s,@target_cpu_default@,$target_cpu_default,;t t
24716 s,@GMPLIBS@,$GMPLIBS,;t t
24717 s,@GMPINC@,$GMPINC,;t t
24718 s,@LIBOBJS@,$LIBOBJS,;t t
24719 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24720 /@language_hooks@/r $language_hooks
24721 s,@language_hooks@,,;t t
24722 CEOF
24723
24724 _ACEOF
24725
24726   cat >>$CONFIG_STATUS <<\_ACEOF
24727   # Split the substitutions into bite-sized pieces for seds with
24728   # small command number limits, like on Digital OSF/1 and HP-UX.
24729   ac_max_sed_lines=48
24730   ac_sed_frag=1 # Number of current file.
24731   ac_beg=1 # First line for current file.
24732   ac_end=$ac_max_sed_lines # Line after last line for current file.
24733   ac_more_lines=:
24734   ac_sed_cmds=
24735   while $ac_more_lines; do
24736     if test $ac_beg -gt 1; then
24737       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24738     else
24739       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24740     fi
24741     if test ! -s $tmp/subs.frag; then
24742       ac_more_lines=false
24743     else
24744       # The purpose of the label and of the branching condition is to
24745       # speed up the sed processing (if there are no `@' at all, there
24746       # is no need to browse any of the substitutions).
24747       # These are the two extra sed commands mentioned above.
24748       (echo ':t
24749   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24750       if test -z "$ac_sed_cmds"; then
24751         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24752       else
24753         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24754       fi
24755       ac_sed_frag=`expr $ac_sed_frag + 1`
24756       ac_beg=$ac_end
24757       ac_end=`expr $ac_end + $ac_max_sed_lines`
24758     fi
24759   done
24760   if test -z "$ac_sed_cmds"; then
24761     ac_sed_cmds=cat
24762   fi
24763 fi # test -n "$CONFIG_FILES"
24764
24765 _ACEOF
24766 cat >>$CONFIG_STATUS <<\_ACEOF
24767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24769   case $ac_file in
24770   - | *:- | *:-:* ) # input from stdin
24771         cat >$tmp/stdin
24772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24776   * )   ac_file_in=$ac_file.in ;;
24777   esac
24778
24779   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24780   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24782          X"$ac_file" : 'X\(//\)[^/]' \| \
24783          X"$ac_file" : 'X\(//\)$' \| \
24784          X"$ac_file" : 'X\(/\)' \| \
24785          .     : '\(.\)' 2>/dev/null ||
24786 echo X"$ac_file" |
24787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24788           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24789           /^X\(\/\/\)$/{ s//\1/; q; }
24790           /^X\(\/\).*/{ s//\1/; q; }
24791           s/.*/./; q'`
24792   { if $as_mkdir_p; then
24793     mkdir -p "$ac_dir"
24794   else
24795     as_dir="$ac_dir"
24796     as_dirs=
24797     while test ! -d "$as_dir"; do
24798       as_dirs="$as_dir $as_dirs"
24799       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24801          X"$as_dir" : 'X\(//\)[^/]' \| \
24802          X"$as_dir" : 'X\(//\)$' \| \
24803          X"$as_dir" : 'X\(/\)' \| \
24804          .     : '\(.\)' 2>/dev/null ||
24805 echo X"$as_dir" |
24806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24807           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24808           /^X\(\/\/\)$/{ s//\1/; q; }
24809           /^X\(\/\).*/{ s//\1/; q; }
24810           s/.*/./; q'`
24811     done
24812     test ! -n "$as_dirs" || mkdir $as_dirs
24813   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24815    { (exit 1); exit 1; }; }; }
24816
24817   ac_builddir=.
24818
24819 if test "$ac_dir" != .; then
24820   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24821   # A "../" for each directory in $ac_dir_suffix.
24822   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24823 else
24824   ac_dir_suffix= ac_top_builddir=
24825 fi
24826
24827 case $srcdir in
24828   .)  # No --srcdir option.  We are building in place.
24829     ac_srcdir=.
24830     if test -z "$ac_top_builddir"; then
24831        ac_top_srcdir=.
24832     else
24833        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24834     fi ;;
24835   [\\/]* | ?:[\\/]* )  # Absolute path.
24836     ac_srcdir=$srcdir$ac_dir_suffix;
24837     ac_top_srcdir=$srcdir ;;
24838   *) # Relative path.
24839     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24840     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24841 esac
24842
24843 # Do not use `cd foo && pwd` to compute absolute paths, because
24844 # the directories may not exist.
24845 case `pwd` in
24846 .) ac_abs_builddir="$ac_dir";;
24847 *)
24848   case "$ac_dir" in
24849   .) ac_abs_builddir=`pwd`;;
24850   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24851   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24852   esac;;
24853 esac
24854 case $ac_abs_builddir in
24855 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24856 *)
24857   case ${ac_top_builddir}. in
24858   .) ac_abs_top_builddir=$ac_abs_builddir;;
24859   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24860   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24861   esac;;
24862 esac
24863 case $ac_abs_builddir in
24864 .) ac_abs_srcdir=$ac_srcdir;;
24865 *)
24866   case $ac_srcdir in
24867   .) ac_abs_srcdir=$ac_abs_builddir;;
24868   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24869   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24870   esac;;
24871 esac
24872 case $ac_abs_builddir in
24873 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24874 *)
24875   case $ac_top_srcdir in
24876   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24877   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24878   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24879   esac;;
24880 esac
24881
24882
24883
24884   if test x"$ac_file" != x-; then
24885     { echo "$as_me:$LINENO: creating $ac_file" >&5
24886 echo "$as_me: creating $ac_file" >&6;}
24887     rm -f "$ac_file"
24888   fi
24889   # Let's still pretend it is `configure' which instantiates (i.e., don't
24890   # use $as_me), people would be surprised to read:
24891   #    /* config.h.  Generated by config.status.  */
24892   if test x"$ac_file" = x-; then
24893     configure_input=
24894   else
24895     configure_input="$ac_file.  "
24896   fi
24897   configure_input=$configure_input"Generated from `echo $ac_file_in |
24898                                      sed 's,.*/,,'` by configure."
24899
24900   # First look for the input files in the build tree, otherwise in the
24901   # src tree.
24902   ac_file_inputs=`IFS=:
24903     for f in $ac_file_in; do
24904       case $f in
24905       -) echo $tmp/stdin ;;
24906       [\\/$]*)
24907          # Absolute (can't be DOS-style, as IFS=:)
24908          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24909 echo "$as_me: error: cannot find input file: $f" >&2;}
24910    { (exit 1); exit 1; }; }
24911          echo "$f";;
24912       *) # Relative
24913          if test -f "$f"; then
24914            # Build tree
24915            echo "$f"
24916          elif test -f "$srcdir/$f"; then
24917            # Source tree
24918            echo "$srcdir/$f"
24919          else
24920            # /dev/null tree
24921            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24922 echo "$as_me: error: cannot find input file: $f" >&2;}
24923    { (exit 1); exit 1; }; }
24924          fi;;
24925       esac
24926     done` || { (exit 1); exit 1; }
24927 _ACEOF
24928 cat >>$CONFIG_STATUS <<_ACEOF
24929   sed "$ac_vpsub
24930 $extrasub
24931 _ACEOF
24932 cat >>$CONFIG_STATUS <<\_ACEOF
24933 :t
24934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24935 s,@configure_input@,$configure_input,;t t
24936 s,@srcdir@,$ac_srcdir,;t t
24937 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24938 s,@top_srcdir@,$ac_top_srcdir,;t t
24939 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24940 s,@builddir@,$ac_builddir,;t t
24941 s,@abs_builddir@,$ac_abs_builddir,;t t
24942 s,@top_builddir@,$ac_top_builddir,;t t
24943 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24944 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24945   rm -f $tmp/stdin
24946   if test x"$ac_file" != x-; then
24947     mv $tmp/out $ac_file
24948   else
24949     cat $tmp/out
24950     rm -f $tmp/out
24951   fi
24952
24953   # Run the commands associated with the file.
24954   case $ac_file in
24955     as ) chmod +x as ;;
24956     collect-ld ) chmod +x collect-ld ;;
24957     nm ) chmod +x nm ;;
24958   esac
24959 done
24960 _ACEOF
24961 cat >>$CONFIG_STATUS <<\_ACEOF
24962
24963 #
24964 # CONFIG_HEADER section.
24965 #
24966
24967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24969 #
24970 # ac_d sets the value in "#define NAME VALUE" lines.
24971 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24972 ac_dB='[         ].*$,\1#\2'
24973 ac_dC=' '
24974 ac_dD=',;t'
24975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24976 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24977 ac_uB='$,\1#\2define\3'
24978 ac_uC=' '
24979 ac_uD=',;t'
24980
24981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24982   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24983   case $ac_file in
24984   - | *:- | *:-:* ) # input from stdin
24985         cat >$tmp/stdin
24986         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24987         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24988   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24989         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24990   * )   ac_file_in=$ac_file.in ;;
24991   esac
24992
24993   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24994 echo "$as_me: creating $ac_file" >&6;}
24995
24996   # First look for the input files in the build tree, otherwise in the
24997   # src tree.
24998   ac_file_inputs=`IFS=:
24999     for f in $ac_file_in; do
25000       case $f in
25001       -) echo $tmp/stdin ;;
25002       [\\/$]*)
25003          # Absolute (can't be DOS-style, as IFS=:)
25004          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25005 echo "$as_me: error: cannot find input file: $f" >&2;}
25006    { (exit 1); exit 1; }; }
25007          # Do quote $f, to prevent DOS paths from being IFS'd.
25008          echo "$f";;
25009       *) # Relative
25010          if test -f "$f"; then
25011            # Build tree
25012            echo "$f"
25013          elif test -f "$srcdir/$f"; then
25014            # Source tree
25015            echo "$srcdir/$f"
25016          else
25017            # /dev/null tree
25018            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25019 echo "$as_me: error: cannot find input file: $f" >&2;}
25020    { (exit 1); exit 1; }; }
25021          fi;;
25022       esac
25023     done` || { (exit 1); exit 1; }
25024   # Remove the trailing spaces.
25025   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25026
25027 _ACEOF
25028
25029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25030 # `conftest.undefs', that substitutes the proper values into
25031 # config.h.in to produce config.h.  The first handles `#define'
25032 # templates, and the second `#undef' templates.
25033 # And first: Protect against being on the right side of a sed subst in
25034 # config.status.  Protect against being in an unquoted here document
25035 # in config.status.
25036 rm -f conftest.defines conftest.undefs
25037 # Using a here document instead of a string reduces the quoting nightmare.
25038 # Putting comments in sed scripts is not portable.
25039 #
25040 # `end' is used to avoid that the second main sed command (meant for
25041 # 0-ary CPP macros) applies to n-ary macro definitions.
25042 # See the Autoconf documentation for `clear'.
25043 cat >confdef2sed.sed <<\_ACEOF
25044 s/[\\&,]/\\&/g
25045 s,[\\$`],\\&,g
25046 t clear
25047 : clear
25048 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25049 t end
25050 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25051 : end
25052 _ACEOF
25053 # If some macros were called several times there might be several times
25054 # the same #defines, which is useless.  Nevertheless, we may not want to
25055 # sort them, since we want the *last* AC-DEFINE to be honored.
25056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25058 rm -f confdef2sed.sed
25059
25060 # This sed command replaces #undef with comments.  This is necessary, for
25061 # example, in the case of _POSIX_SOURCE, which is predefined and required
25062 # on some systems where configure will not decide to define it.
25063 cat >>conftest.undefs <<\_ACEOF
25064 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25065 _ACEOF
25066
25067 # Break up conftest.defines because some shells have a limit on the size
25068 # of here documents, and old seds have small limits too (100 cmds).
25069 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25070 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25071 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25072 echo '  :' >>$CONFIG_STATUS
25073 rm -f conftest.tail
25074 while grep . conftest.defines >/dev/null
25075 do
25076   # Write a limited-size here document to $tmp/defines.sed.
25077   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25078   # Speed up: don't consider the non `#define' lines.
25079   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25080   # Work around the forget-to-reset-the-flag bug.
25081   echo 't clr' >>$CONFIG_STATUS
25082   echo ': clr' >>$CONFIG_STATUS
25083   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25084   echo 'CEOF
25085   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25086   rm -f $tmp/in
25087   mv $tmp/out $tmp/in
25088 ' >>$CONFIG_STATUS
25089   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25090   rm -f conftest.defines
25091   mv conftest.tail conftest.defines
25092 done
25093 rm -f conftest.defines
25094 echo '  fi # grep' >>$CONFIG_STATUS
25095 echo >>$CONFIG_STATUS
25096
25097 # Break up conftest.undefs because some shells have a limit on the size
25098 # of here documents, and old seds have small limits too (100 cmds).
25099 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25100 rm -f conftest.tail
25101 while grep . conftest.undefs >/dev/null
25102 do
25103   # Write a limited-size here document to $tmp/undefs.sed.
25104   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25105   # Speed up: don't consider the non `#undef'
25106   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25107   # Work around the forget-to-reset-the-flag bug.
25108   echo 't clr' >>$CONFIG_STATUS
25109   echo ': clr' >>$CONFIG_STATUS
25110   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25111   echo 'CEOF
25112   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25113   rm -f $tmp/in
25114   mv $tmp/out $tmp/in
25115 ' >>$CONFIG_STATUS
25116   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25117   rm -f conftest.undefs
25118   mv conftest.tail conftest.undefs
25119 done
25120 rm -f conftest.undefs
25121
25122 cat >>$CONFIG_STATUS <<\_ACEOF
25123   # Let's still pretend it is `configure' which instantiates (i.e., don't
25124   # use $as_me), people would be surprised to read:
25125   #    /* config.h.  Generated by config.status.  */
25126   if test x"$ac_file" = x-; then
25127     echo "/* Generated by configure.  */" >$tmp/config.h
25128   else
25129     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25130   fi
25131   cat $tmp/in >>$tmp/config.h
25132   rm -f $tmp/in
25133   if test x"$ac_file" != x-; then
25134     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25135       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25136 echo "$as_me: $ac_file is unchanged" >&6;}
25137     else
25138       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25140          X"$ac_file" : 'X\(//\)[^/]' \| \
25141          X"$ac_file" : 'X\(//\)$' \| \
25142          X"$ac_file" : 'X\(/\)' \| \
25143          .     : '\(.\)' 2>/dev/null ||
25144 echo X"$ac_file" |
25145     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25146           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25147           /^X\(\/\/\)$/{ s//\1/; q; }
25148           /^X\(\/\).*/{ s//\1/; q; }
25149           s/.*/./; q'`
25150       { if $as_mkdir_p; then
25151     mkdir -p "$ac_dir"
25152   else
25153     as_dir="$ac_dir"
25154     as_dirs=
25155     while test ! -d "$as_dir"; do
25156       as_dirs="$as_dir $as_dirs"
25157       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25159          X"$as_dir" : 'X\(//\)[^/]' \| \
25160          X"$as_dir" : 'X\(//\)$' \| \
25161          X"$as_dir" : 'X\(/\)' \| \
25162          .     : '\(.\)' 2>/dev/null ||
25163 echo X"$as_dir" |
25164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25166           /^X\(\/\/\)$/{ s//\1/; q; }
25167           /^X\(\/\).*/{ s//\1/; q; }
25168           s/.*/./; q'`
25169     done
25170     test ! -n "$as_dirs" || mkdir $as_dirs
25171   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25173    { (exit 1); exit 1; }; }; }
25174
25175       rm -f $ac_file
25176       mv $tmp/config.h $ac_file
25177     fi
25178   else
25179     cat $tmp/config.h
25180     rm -f $tmp/config.h
25181   fi
25182 done
25183 _ACEOF
25184 cat >>$CONFIG_STATUS <<\_ACEOF
25185
25186 #
25187 # CONFIG_COMMANDS section.
25188 #
25189 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25190   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25191   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25192   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25193 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194          X"$ac_dest" : 'X\(//\)[^/]' \| \
25195          X"$ac_dest" : 'X\(//\)$' \| \
25196          X"$ac_dest" : 'X\(/\)' \| \
25197          .     : '\(.\)' 2>/dev/null ||
25198 echo X"$ac_dest" |
25199     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201           /^X\(\/\/\)$/{ s//\1/; q; }
25202           /^X\(\/\).*/{ s//\1/; q; }
25203           s/.*/./; q'`
25204   { if $as_mkdir_p; then
25205     mkdir -p "$ac_dir"
25206   else
25207     as_dir="$ac_dir"
25208     as_dirs=
25209     while test ! -d "$as_dir"; do
25210       as_dirs="$as_dir $as_dirs"
25211       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25212 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25213          X"$as_dir" : 'X\(//\)[^/]' \| \
25214          X"$as_dir" : 'X\(//\)$' \| \
25215          X"$as_dir" : 'X\(/\)' \| \
25216          .     : '\(.\)' 2>/dev/null ||
25217 echo X"$as_dir" |
25218     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25219           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25220           /^X\(\/\/\)$/{ s//\1/; q; }
25221           /^X\(\/\).*/{ s//\1/; q; }
25222           s/.*/./; q'`
25223     done
25224     test ! -n "$as_dirs" || mkdir $as_dirs
25225   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25226 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25227    { (exit 1); exit 1; }; }; }
25228
25229   ac_builddir=.
25230
25231 if test "$ac_dir" != .; then
25232   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25233   # A "../" for each directory in $ac_dir_suffix.
25234   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25235 else
25236   ac_dir_suffix= ac_top_builddir=
25237 fi
25238
25239 case $srcdir in
25240   .)  # No --srcdir option.  We are building in place.
25241     ac_srcdir=.
25242     if test -z "$ac_top_builddir"; then
25243        ac_top_srcdir=.
25244     else
25245        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25246     fi ;;
25247   [\\/]* | ?:[\\/]* )  # Absolute path.
25248     ac_srcdir=$srcdir$ac_dir_suffix;
25249     ac_top_srcdir=$srcdir ;;
25250   *) # Relative path.
25251     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25252     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25253 esac
25254
25255 # Do not use `cd foo && pwd` to compute absolute paths, because
25256 # the directories may not exist.
25257 case `pwd` in
25258 .) ac_abs_builddir="$ac_dir";;
25259 *)
25260   case "$ac_dir" in
25261   .) ac_abs_builddir=`pwd`;;
25262   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25263   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25264   esac;;
25265 esac
25266 case $ac_abs_builddir in
25267 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25268 *)
25269   case ${ac_top_builddir}. in
25270   .) ac_abs_top_builddir=$ac_abs_builddir;;
25271   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25272   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25273   esac;;
25274 esac
25275 case $ac_abs_builddir in
25276 .) ac_abs_srcdir=$ac_srcdir;;
25277 *)
25278   case $ac_srcdir in
25279   .) ac_abs_srcdir=$ac_abs_builddir;;
25280   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25281   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25282   esac;;
25283 esac
25284 case $ac_abs_builddir in
25285 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25286 *)
25287   case $ac_top_srcdir in
25288   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25289   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25290   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25291   esac;;
25292 esac
25293
25294
25295   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25296 echo "$as_me: executing $ac_dest commands" >&6;}
25297   case $ac_dest in
25298     default )
25299 case ${CONFIG_HEADERS} in
25300   *auto-host.h:config.in*)
25301   echo > cstamp-h ;;
25302 esac
25303 # Make sure all the subdirs exist.
25304 for d in $subdirs doc build
25305 do
25306     test -d $d || mkdir $d
25307 done
25308  ;;
25309   esac
25310 done
25311 _ACEOF
25312
25313 cat >>$CONFIG_STATUS <<\_ACEOF
25314
25315 { (exit 0); exit 0; }
25316 _ACEOF
25317 chmod +x $CONFIG_STATUS
25318 ac_clean_files=$ac_clean_files_save
25319
25320
25321 # configure is writing to config.log, and then calls config.status.
25322 # config.status does its own redirection, appending to config.log.
25323 # Unfortunately, on DOS this fails, as config.log is still kept open
25324 # by configure, so config.status won't be able to write to it; its
25325 # output is simply discarded.  So we exec the FD to /dev/null,
25326 # effectively closing config.log, so it can be properly (re)opened and
25327 # appended to by config.status.  When coming back to configure, we
25328 # need to make the FD available again.
25329 if test "$no_create" != yes; then
25330   ac_cs_success=:
25331   ac_config_status_args=
25332   test "$silent" = yes &&
25333     ac_config_status_args="$ac_config_status_args --quiet"
25334   exec 5>/dev/null
25335   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25336   exec 5>>config.log
25337   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25338   # would make configure fail if this is the last instruction.
25339   $ac_cs_success || { (exit 1); exit 1; }
25340 fi
25341